PageSourceSearch

https://cyclix.ch/17.0bb3f9df1f088899.js

js cyclix.ch collected 2026-10-08 08:30:27 UTC 1,358,326 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcyclix_app=self.webpackChunkcyclix_app||[]).push([[17],{6885:(Ne,ce,P)=>{P.d(ce,{k:()=>M});var M=function(V){return V[V.NotSet=0]="NotSet",V[V.All=1]="All",V[V.InProgress=2]="InProgress",V[V.Draft=3]="Draft",V[V.Closed=4]="Closed",V[V.Completed=5]="Completed",V[V.Archive=6]="Archive",V[V.Refused=7]="Refused",V}(M||{})},317:(Ne,ce,P)=>{P.d(ce,{i:()=>M});var M=function(V){return V.Default="i18n.app.pages.customer.service-request.sort-by.default",V.Oldest="i18n.app.pages.customer.service-request.sort-by.oldest",V.Newest="i18n.app.pages.customer.service-request.sort-by.newest",V}(M||{})},17:(Ne,ce,P)=>{P.r(ce),P.d(ce,{CustomerServiceRequestModule:()=>Oa});var M=P(177),V=P(2791),I=P(8359),x=P(980),A=P(7673),w=P(1291),F=P(1639),m=P(9462),n=P(4438),R=P(246),D=P(9979);let j=(()=>{class h{constructor(l){this.client=l}getAllCurrencies(){return this.client.getByPageAndPageSizeAndApiVersion(void 0)}static#e=this.\u0275fac=function(g){return new(g||h)(n.KVO(w.rz))};static#t=this.\u0275prov=n.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Me=(()=>{class h{constructor(l){this.client=l}getAllServiceDefinitions(){return this.client.getByApiVersion(void 0)}static#e=this.\u0275fac=function(g){return new(g||h)(n.KVO(w.PJ))};static#t=this.\u0275prov=n.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();var Ae=P(8896);let et=(()=>{class h{constructor(l,g,C,y,Q){this.brandService=l,this.bikeTypeService=g,this.currencyService=C,this.serviceDefinitionService=y,this.eMotorsService=Q,this.brands=[],this.bikeTypes=[],this.eMotors=[],this.currencies=[],this.serviceDefinitions=[],this.getAllCurrencies(),this.getAllServiceDefinitions()}getBikeInformation(){this.getAllEMotors(),this.getAllBrands(),this.getAllBikeTypes()}getAllEMotors(){this.eMotorsService.getAllEMotors().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.eMotors=l?.results||this.eMotors,this.eMotors.sort((C,y)=>C.name&&y.name?C.name.localeCompare(y.name):0);const g=new w.id({name:"Unknown/Unlisted brand"});this.eMotors.unshift(g)})}getAllBrands(){this.brandService.getAllBrands().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.brands=l?.results||this.brands,this.brands=l?.results?l?.results.sort((g,C)=>"Unknown/Unlisted brand"===g.name?-1:"Unknown/Unlisted brand"===C.name?1:g.name&&C.name?g.name>C.name?1:-1:0):this.brands})}getAllBikeTypes(){this.bikeTypeService.getAllBikeTypes().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.bikeTypes=l?.results||this.bikeTypes,this.bikeTypes.sort((g,C)=>g.name&&C.name?g.name.localeCompare(C.name):0)})}getAllCurrencies(){this.currencyService.getAllCurrencies().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.currencies=l?.results||this.currencies})}getAllServiceDefinitions(){this.serviceDefinitionService.getAllServiceDefinitions().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.serviceDefinitions=l||this.serviceDefinitions,this.serviceDefinitions=this.serviceDefinitions.sort((g,C)=>void 0!==g.position&&void 0!==C.position?g.position-C.position:0)})}static#e=this.\u0275fac=function(g){return new(g||h)(n.rXU(R.j),n.rXU(D.J),n.rXU(j),n.rXU(Me),n.rXU(Ae.W))};static#t=this.\u0275cmp=n.VBU({type:h,selectors:[["app-base"]],decls:2,vars:0,template:function(g,C){1&g&&(n.j41(0,"p"),n.EFF(1,"base works!"),n.k0s())}})}return h})();var K=function(h){return h[h.NotSet=0]="NotSet",h[h.About=1]="About",h[h.Price=2]="Price",h[h.Problem=3]="Problem",h[h.Address=4]="Address",h[h.Summary=5]="Summary",h}(K||{}),ne=P(7306),qe=P(5714),ie=P(6967),Z=P(6158),N=P(3657),$=P(4385),T=P(2809),pe=P(638),Y=P(9173),ae=P(1394),z=P(6445),Pe=P(289),ze=P(3572),we=P(5812),Ot=P(9830),Te=P(9417),lt=P(7660),Et=P(3465),En=P(470),Co=P(3256),an=P(5517),Re=P(5511),mo=P(9203),xt=P(9896),Ie=P(7018),k=P(8036),De=P(9938),it=P(3955),ln=P(1246);let fe=(()=>{class h{transform(l){return null!==l&&l?l%1!=0?l.toFixed(2):l.toString():""}static#e=this.\u0275fac=function(g){return new(g||h)};static#t=this.\u0275pipe=n.EJ8({name:"price",type:h,pure:!0,standalone:!0})}return h})();const ke=h=>({"county-list-open":h}),Gt=(h,_,l)=>({"selected-text":h,"checked-text":_,"un-checked-text":l}),Se=()=>({standalone:!0}),Rt=h=>({"un-active":h}),Wi=h=>({"max-width":h}),fo=h=>({"service-selected":h});function Oo(h,_){1&h&&(n.j41(0,"div",164),n.EFF(1,"1"),n.k0s())}function ll(h,_){1&h&&(n.j41(0,"div",165),n.qSk(),n.j41(1,"svg",166),n.nrm(2,"path",167),n.k0s()())}function U(h,_){1&h&&(n.j41(0,"div",164),n.EFF(1,"2"),n.k0s())}function Ye(h,_){1&h&&(n.j41(0,"div",165),n.qSk(),n.j41(1,"svg",166),n.nrm(2,"path",167),n.k0s()())}function Oe(h,_){1&h&&(n.j41(0,"div",164),n.EFF(1,"3"),n.k0s())}function xo(h,_){1&h&&(n.j41(0,"div",165),n.qSk(),n.j41(1,"svg",166),n.nrm(2,"path",167),n.k0s()())}function Pt(h,_){1&h&&(n.j41(0,"div",164),n.EFF(1,"4"),n.k0s())}function Po(h,_){1&h&&(n.j41(0,"div",165),n.qSk(),n.j41(1,"svg",166),n.nrm(2,"path",167),n.k0s()())}function bo(h,_){1&h&&(n.j41(0,"p",168),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.bikes.nickName.description")))}function Ki(h,_){1&h&&(n.j41(0,"div",164),n.EFF(1,"5"),n.k0s())}function Mo(h,_){1&h&&(n.j41(0,"div",165),n.qSk(),n.j41(1,"svg",166),n.nrm(2,"path",167),n.k0s()())}function wo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",169)(1,"div",170),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.scrollToPrevious())}),n.qSk(),n.j41(2,"svg",171),n.nrm(3,"path",172),n.k0s()(),n.joV(),n.j41(4,"div",173),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.scrollToNext())}),n.qSk(),n.j41(5,"svg",171),n.nrm(6,"path",174),n.k0s()()()}if(2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngClass",n.eq3(2,Rt,l.isActiveDot(1))),n.R7$(3),n.Y8G("ngClass",n.eq3(4,Rt,l.isActiveDot(l.sliderDots.length)))}}function So(h,_){if(1&h&&n.nrm(0,"img",184),2&h){const l=n.XpG().$implicit,g=n.XpG(3);
1n.FS9("src",g.getPicture(l.bikeAvatar),n.B4B)}}function Xi(h,_){1&h&&(n.qSk(),n.j41(0,"svg",185),n.nrm(1,"path",186)(2,"path",187)(3,"path",188)(4,"path",189),n.k0s())}function di(h,_){if(1&h&&(n.j41(0,"div",190)(1,"p"),n.EFF(2),n.k0s()()),2&h){const l=n.XpG().$implicit;n.R7$(2),n.JRh(l.nickname)}}function yo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",191)(1,"div",192),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(3);return n.Njj(y.selectBike(C))}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&h&&(n.R7$(2),n.JRh(n.bMT(3,1,"i18n.app.pages.service-request.navigation.choose")))}function Yi(h,_){1&h&&(n.j41(0,"div",191)(1,"div",193),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&h&&(n.R7$(2),n.JRh(n.bMT(3,1,"i18n.app.pages.service-request.navigation.selected")))}function Ji(h,_){if(1&h&&(n.j41(0,"div",177)(1,"div",178),n.DNE(2,So,1,1,"img",179)(3,Xi,5,0,"svg",180),n.k0s(),n.DNE(4,di,3,1,"div",137),n.j41(5,"div",181)(6,"div",70)(7,"div",139),n.EFF(8),n.k0s(),n.j41(9,"div",182),n.EFF(10),n.k0s()(),n.DNE(11,yo,4,3,"div",183)(12,Yi,4,3,"div",183),n.k0s()()),2&h){const l=_.$implicit,g=n.XpG(3);n.R7$(2),n.Y8G("ngIf",l.bikeAvatar),n.R7$(),n.Y8G("ngIf",!l.bikeAvatar),n.R7$(),n.Y8G("ngIf",l.nickname),n.R7$(4),n.JRh(l.model),n.R7$(2),n.JRh(null==l.brand?null:l.brand.name),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.bikeId!==l.id&&g.bike99SelectedId!==l.id&&!g.bike99Selected||g.customerServiceRequestInput.bikeId!==l.id&&void 0!==g.bike99SelectedId&&!g.bike99Selected||g.customerServiceRequestInput.bikeId!==l.id&&g.bike99SelectedId!==l.id&&g.bike99Selected),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.bikeId===l.id||g.bike99SelectedId===l.id&&g.bike99Selected)}}function Zi(h,_){if(1&h&&(n.j41(0,"div",175),n.DNE(1,Ji,13,7,"div",176),n.k0s()),2&h){const l=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,Wi,l.aboutContainerWidth+"px")),n.R7$(),n.Y8G("ngForOf",l.bikes)}}function Eo(h,_){if(1&h&&n.nrm(0,"div",196),2&h){const l=_.$implicit,g=n.XpG(3);n.Y8G("ngClass",g.isActiveDot(l)?"active-dot":"un-active-dot")}}function Ro(h,_){if(1&h&&(n.j41(0,"div",194),n.DNE(1,Eo,1,1,"div",195),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngForOf",l.sliderDots)}}function Io(h,_){1&h&&(n.j41(0,"div",197),n.qSk(),n.j41(1,"svg",198),n.nrm(2,"path",199)(3,"path",200)(4,"path",201)(5,"path",202)(6,"path",203),n.k0s(),n.joV(),n.j41(7,"div",40),n.EFF(8),n.nI1(9,"translate"),n.k0s()()),2&h&&(n.R7$(8),n.JRh(n.bMT(9,1,"oops, there is nothing here yet")))}function ge(h,_){1&h&&n.nrm(0,"div",69)}function me(h,_){1&h&&(n.j41(0,"div",210),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.bikes.chose-bike.label")))}function bt(h,_){1&h&&(n.j41(0,"div",210),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.bikes.chose-bike.label.exist")))}function Rn(h,_){if(1&h){const l=n.RV6();n.j41(0,"app-bike-search",211),n.bIt("searchTermChange",function(C){const y=n.eBV(l).onSearchChange;return n.Njj(y(C))}),n.k0s()}2&h&&n.Y8G("options",_.options)}function It(h,_){if(1&h&&(n.j41(0,"div",204)(1,"div",205),n.DNE(2,me,3,3,"div",206)(3,bt,3,3,"div",206),n.j41(4,"div",207),n.EFF(5),n.nI1(6,"translate"),n.k0s()(),n.j41(7,"div",208),n.DNE(8,Rn,1,1,"app-bike-search",209),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngIf",l.bikes&&0===l.bikes.length),n.R7$(),n.Y8G("ngIf",l.bikes&&l.bikes.length>0),n.R7$(2),n.JRh(n.bMT(6,3,"i18n.app.pages.customer.bikes.chose-bike.description"))}}function cn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",218)(1,"dx-select-box",219),n.nI1(2,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(3);return n.DH7(y.customerServiceRequestInput.bikeModel.brandId,C)||(y.customerServiceRequestInput.bikeModel.brandId=C),n.Njj(C)}),n.k0s()()}if(2&h){const l=n.XpG(3);n.R7$(),n.FS9("placeholder",n.bMT(2,4,"i18n.app.pages.customer.bikes.brand")),n.Y8G("searchEnabled",!0),n.R50("ngModel",l.customerServiceRequestInput.bikeModel.brandId),n.Y8G("dataSource",l.brands)}}function ct(h,_){if(1&h){const l=n.RV6();n.j41(0,"input",220),n.nI1(1,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(3);return n.DH7(y.customerServiceRequestInput.bikeModel.model,C)||(y.customerServiceRequestInput.bikeModel.model=C),n.Njj(C)}),n.k0s()}if(2&h){const l=n.XpG(3);n.FS9("placeholder",n.bMT(1,2,"i18n.app.pages.customer.bikes.model")),n.R50("ngModel",l.customerServiceRequestInput.bikeModel.model)}}function dn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",212)(1,"div",213)(2,"input",214),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(2);return n.DH7(y.customBike,C)||(y.customBike=C),n.Njj(C)}),n.bIt("ngModelChange",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.customEdit())}),n.k0s(),n.j41(3,"div",215)(4,"p",7),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"p",70),n.EFF(8),n.nI1(9,"translate"),n.k0s()()(),n.DNE(10,cn,3,6,"div",216)(11,ct,2,4,"
1input",217),n.k0s()}if(2&h){const l=n.XpG(2);n.R7$(2),n.R50("ngModel",l.customBike),n.R7$(3),n.JRh(n.bMT(6,5,"i18n.app.pages.customer.bikes.custom-bike.label")),n.R7$(3),n.JRh(n.bMT(9,7,"i18n.app.pages.customer.bikes.custom-bike.description")),n.R7$(2),n.Y8G("ngIf",l.customBike),n.R7$(),n.Y8G("ngIf",l.customBike)}}function In(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",218)(1,"dx-select-box",225),n.nI1(2,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(3);return n.DH7(y.customerServiceRequestInput.bikeModel.bikeTypeId,C)||(y.customerServiceRequestInput.bikeModel.bikeTypeId=C),n.Njj(C)}),n.k0s()()}if(2&h){const l=n.XpG(3);n.R7$(),n.FS9("placeholder",n.bMT(2,4,"i18n.app.pages.customer.bikes.bike-type")),n.Y8G("searchEnabled",!0),n.R50("ngModel",l.customerServiceRequestInput.bikeModel.bikeTypeId),n.Y8G("dataSource",l.bikeTypes)}}function dt(h,_){if(1&h){const l=n.RV6();n.j41(0,"input",226),n.nI1(1,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(3);return n.DH7(y.customerServiceRequestInput.bikeModel.year,C)||(y.customerServiceRequestInput.bikeModel.year=C),n.Njj(C)}),n.k0s()}if(2&h){const l=n.XpG(3);n.FS9("placeholder",n.bMT(1,3,"i18n.app.pages.customer.bikes.year")),n.Y8G("min",0),n.R50("ngModel",l.customerServiceRequestInput.bikeModel.year)}}function Ao(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",218)(1,"dx-select-box",230),n.nI1(2,"translate"),n.mxI("valueChange",function(C){n.eBV(l);const y=n.XpG(4);return y.customerServiceRequestInput.bikeModel&&(n.DH7(y.customerServiceRequestInput.bikeModel.eMotorId,C)||(y.customerServiceRequestInput.bikeModel.eMotorId=C)),n.Njj(C)}),n.k0s()()}if(2&h){const l=n.XpG(4);n.R7$(),n.FS9("placeholder",n.bMT(2,4,"i18n.app.pages.customer.bikes.chose-e-motor")),n.Y8G("searchEnabled",!0),n.R50("value",l.customerServiceRequestInput.bikeModel&&l.customerServiceRequestInput.bikeModel.eMotorId),n.Y8G("dataSource",l.eMotors)}}function cl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",227)(1,"div",228)(2,"input",214),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(3);return y.customerServiceRequestInput.bikeModel&&(n.DH7(y.customerServiceRequestInput.bikeModel.isEBike,C)||(y.customerServiceRequestInput.bikeModel.isEBike=C)),n.Njj(C)}),n.k0s(),n.j41(3,"div",229),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.DNE(6,Ao,3,6,"div",216),n.k0s()}if(2&h){const l=n.XpG(3);n.R7$(2),n.R50("ngModel",l.customerServiceRequestInput.bikeModel&&l.customerServiceRequestInput.bikeModel.isEBike),n.R7$(2),n.JRh(n.bMT(5,3,"i18n.app.pages.service-request.block1.eBike-title")),n.R7$(2),n.Y8G("ngIf",(null==l.customerServiceRequestInput.bikeModel?null:l.customerServiceRequestInput.bikeModel.isEBike)&&l.customBike)}}function Qi(h,_){if(1&h&&(n.j41(0,"div",221),n.DNE(1,In,3,6,"div",216),n.j41(2,"div",222),n.DNE(3,dt,2,5,"input",223),n.k0s(),n.DNE(4,cl,7,5,"div",224),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngIf",l.customBike),n.R7$(2),n.Y8G("ngIf",l.customBike),n.R7$(),n.Y8G("ngIf",l.customBike)}}function To(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",231)(1,"p",232),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.showAddBikedOptions=!0)}),n.EFF(2,"+"),n.k0s(),n.j41(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s()()}2&h&&(n.R7$(4),n.JRh(n.bMT(5,1,"i18n.app.pages.service-request.block2.add-bike")))}function ko(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",246),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.isServicePackageComparisonPopup=!0)}),n.qSk(),n.j41(1,"svg",235),n.nrm(2,"path",247)(3,"path",248)(4,"path",249)(5,"path",250),n.k0s(),n.joV(),n.j41(6,"p"),n.EFF(7),n.nI1(8,"translate"),n.k0s()()}2&h&&(n.R7$(7),n.JRh(n.bMT(8,1,"i18n.app.pages.customer.service-request.compare-service.button")))}function Fo(h,_){1&h&&n.nrm(0,"div",149)}function ui(h,_){if(1&h&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&h){const l=n.XpG(3).$implicit;n.R7$(),n.JRh(null==l.currency?null:l.currency.isoCode)}}function pi(h,_){if(1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h){const l=n.XpG(3).$implicit;n.R7$(),n.Lme("",null==l.currency?null:l.currency.isoCode,"/",n.bMT(2,2,"i18n.app.pages.customer.service-request.hour"),"")}}function At(h,_){if(1&h&&(n.j41(0,"div",76),n.EFF(1),n.DNE(2,ui,2,1,"p",244)(3,pi,3,4,"p",244),n.j41(4,"p",251),n.EFF(5),n.nI1(6,"translate"),n.k0s()()),2&h){const l=n.XpG(2).$implicit,g=n.XpG(2);
1n.R7$(),n.SpI("~",l.price," "),n.R7$(),n.Y8G("ngIf",!l.isCustom),n.R7$(),n.Y8G("ngIf",l.isCustom),n.R7$(2),n.Lme("+",100*g.appConfig.Config.CYCLIX_FEE,"% ",n.bMT(6,5,"i18n.app.pages.customer.service-request.cyclix-fee"),"")}}function Do(h,_){if(1&h&&(n.j41(0,"div",74)(1,"p",75),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,At,7,7,"div",151),n.k0s()),2&h){const l=n.XpG().$implicit;n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.shop.service-request.info.estimate-price")),n.R7$(2),n.Y8G("ngIf",l.price)}}function Vo(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.service-request.navigation.choose")))}function Lo(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.service-request.navigation.selected")))}function qo(h,_){1&h&&n.nrm(0,"div",252)}function Bo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",233),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(2);return n.Njj(y.selectService(C))}),n.j41(1,"div")(2,"div",234),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.isServicePackageComparisonPopup=!0)}),n.qSk(),n.j41(3,"svg",235),n.nrm(4,"path",236)(5,"path",237)(6,"path",238)(7,"path",239),n.k0s()(),n.joV(),n.j41(8,"p",67),n.EFF(9),n.nI1(10,"multilingualPropertyTranslate"),n.k0s(),n.j41(11,"p",68),n.EFF(12),n.nI1(13,"multilingualPropertyTranslate"),n.k0s(),n.nrm(14,"div",69),n.j41(15,"p",70),n.EFF(16),n.nI1(17,"multilingualPropertyTranslate"),n.k0s()(),n.j41(18,"div",73),n.DNE(19,ko,9,3,"div",240)(20,Fo,1,0,"div",241)(21,Do,5,4,"div",242),n.j41(22,"div",243),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(2);return n.Njj(y.selectService(C))}),n.DNE(23,Vo,3,3,"p",244)(24,Lo,3,3,"p",244)(25,qo,1,0,"div",245),n.k0s()()()}if(2&h){const l=_.$implicit,g=n.XpG(2);n.Y8G("ngClass",n.eq3(17,fo,g.customerServiceRequestInput.serviceDefinitionId==l.id)),n.R7$(9),n.JRh(n.bMT(10,11,l.title)),n.R7$(3),n.JRh(n.bMT(13,13,l.serviceType)),n.R7$(4),n.JRh(n.bMT(17,15,l.description)),n.R7$(3),n.Y8G("ngIf",!l.isCustom),n.R7$(),n.Y8G("ngIf",!l.isCustom),n.R7$(),n.Y8G("ngIf",l.price),n.R7$(),n.Y8G("ngClass",g.customerServiceRequestInput.serviceDefinitionId===l.id?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.serviceDefinitionId!==l.id),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.serviceDefinitionId===l.id),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.serviceDefinitionId===l.id)}}function No(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.service-request.navigation.choose")))}function er(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.service-request.navigation.selected")))}function zo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",243),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.customerServiceRequestInput.pickUpService=!C.customerServiceRequestInput.pickUpService)}),n.DNE(1,No,3,3,"p",244)(2,er,3,3,"p",244),n.k0s()}if(2&h){const l=n.XpG(2);n.Y8G("ngClass",l.customerServiceRequestInput.pickUpService?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!l.customerServiceRequestInput.pickUpService),n.R7$(),n.Y8G("ngIf",l.customerServiceRequestInput.pickUpService)}}function tr(h,_){1&h&&(n.j41(0,"div",253),n.qSk(),n.j41(1,"svg",254),n.nrm(2,"path",255),n.k0s(),n.joV(),n.j41(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s()()),2&h&&(n.R7$(4),n.JRh(n.bMT(5,1,"i18n.app.pages.customer.service-request.delivery-unavailable")))}function Go(h,_){1&h&&(n.j41(0,"p",256),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.uploading-count")))}function Ho(h,_){if(1&h&&n.nrm(0,"img",263),2&h){const l=n.XpG().fileItem,g=n.XpG(2);n.Y8G("src",g.getComponentFile(l.file.name).filePreview,n.B4B)}}function jo(h,_){if(1&h&&n.nrm(0,"video",264),2&h){const l=n.XpG().fileItem,g=n.XpG(2);n.Y8G("src",g.getComponentFile(l.file.name).filePreview,n.B4B)}}function Uo(h,_){if(1&h){const l=n.RV6();n.DNE(0,Ho,1,1,"img",257)(1,jo,1,1,"video",258),n.j41(2,"div",259),n.bIt("click",function(){const C=n.eBV(l).fileItem;n.XpG();const y=n.sdS(150);return n.Njj(y.removeFile(C))}),n.qSk(),n.j41(3,"svg",260),n.nrm(4,"path",261)(5,"path",262),n.k0s()()}if(2&h){const l=_.fileItem,g=n.XpG(2);n.Y8G("ngIf",g.getComponentFile(l.file.name)&&g.getComponentFile(l.file.name).isImage),n.R7$(),n.Y8G("ngIf",g.getComponentFile(l.file.name)&&!g.getComponentFile(l.file.name).isImage)}}function nr(h,_){1&h&&(n.j41(0,"div",265),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.step.three.no-images")))}function ir(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",266)(1,"div",267)(2,"div",268),n.EFF(3,"CHF"),n.k0s(),n.j41(4,"input",269),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG(2);return n.DH7(y.customerServiceRequestInput.spendingLimit,C)||(y.customerServiceRequestInput.spendingLimit=C),n.Njj(C)}),n.k0s()(),n.j41(5,"p",7),n.EFF(6),n.nI1(7,"translate"),n.k0s()()}if(2&h){const l=n.XpG(2);n.R7$(4),n.Y8G("min",0),n.R50("ngModel",l.customerServiceRequestInput.spendingLimit),n.R7$(2),n.JRh(n.bMT(7,3,"i18n.app.pages.service-request.block3.max-money-title"))}}
1function gi(h,_){if(1&h&&(n.j41(0,"div",142),n.EFF(1),n.nI1(2,"multilingualPropertyTranslate"),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.SEQ("",l.customer.address.street,", ",l.customer.address.streetNumber,", ",l.customer.address.city,", ",l.customer.address.zipcode,", ",n.bMT(2,7,null==l.customer.address.country?null:l.customer.address.country.name),", +",null==l.customer.address.mobilePhoneCountry?null:l.customer.address.mobilePhoneCountry.numberCode,"",l.customer.address.mobilePhone,"")}}function rr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",275),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.openEditProfileAddress())}),n.qSk(),n.j41(1,"svg",276),n.nrm(2,"path",277)(3,"path",278),n.k0s()()}}function or(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",270)(1,"div",213)(2,"input",271),n.bIt("click",function(C){n.eBV(l);const y=n.XpG(2);return n.Njj(y.onToggleClick(C))}),n.k0s(),n.j41(3,"p",272),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openEditProfileAddress())}),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",273)(7,"div",41),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.DNE(10,gi,3,9,"div",11),n.k0s(),n.DNE(11,rr,4,0,"div",274),n.k0s()}if(2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("checked",!l.useCustomAddress),n.R7$(2),n.JRh(n.bMT(5,5,"i18n.app.module.servicerequest.edit")),n.R7$(4),n.JRh(n.bMT(9,7,"i18n.app.pages.service-request.block4.request-address-title")),n.R7$(2),n.Y8G("ngIf",!(null!=l.addressEdit&&l.addressEdit.countryId)),n.R7$(),n.Y8G("ngIf",!(null!=l.addressEdit&&l.addressEdit.countryId))}}function sr(h,_){if(1&h&&(n.j41(0,"div",142),n.EFF(1),n.nI1(2,"multilingualPropertyTranslate"),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.SEQ("",l.customAddress.street,", ",l.customAddress.streetNumber,", ",l.customAddress.city,", ",l.customAddress.zipcode,", ",n.bMT(2,7,l.getCountById(l.customAddress.countryId).name),", +",null==l.customAddress.mobilePhoneCountry?null:l.customAddress.mobilePhoneCountry.numberCode,"",l.customAddress.mobilePhone,"")}}function $o(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",275),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.openEditCustomAddress())}),n.qSk(),n.j41(1,"svg",276),n.nrm(2,"path",277)(3,"path",278),n.k0s()()}}function Wo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",270)(1,"div",213)(2,"input",271),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.changeAddress())}),n.k0s(),n.j41(3,"p",272),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openEditCustomAddress())}),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",273)(7,"div",41),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.DNE(10,sr,3,9,"div",11),n.k0s(),n.DNE(11,$o,4,0,"div",274),n.j41(12,"div",279),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.deleteCustomAddress())}),n.qSk(),n.j41(13,"svg",280),n.nrm(14,"path",281)(15,"path",282),n.k0s()()()}if(2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("checked",l.useCustomAddress),n.R7$(2),n.JRh(n.bMT(5,5,"i18n.app.module.servicerequest.edit")),n.R7$(4),n.JRh(n.bMT(9,7,"i18n.app.pages.service-request.block4.request-address-title-custom")),n.R7$(2),n.Y8G("ngIf",!(null!=l.addressEdit&&l.addressEdit.countryId)),n.R7$(),n.Y8G("ngIf",!(null!=l.addressEdit&&l.addressEdit.countryId))}}function q(h,_){if(1&h){const l=n.RV6();n.j41(0,"app-address-search",283),n.bIt("searchTermChange",function(C){const y=n.eBV(l).onSearchChange;return n.Njj(y(C))}),n.k0s()}if(2&h){const l=_.options,g=n.XpG(2);n.Y8G("options",l)("countries",g.countries)}}function ar(h,_){if(1&h&&(n.j41(0,"div",142),n.qSk(),n.j41(1,"svg",284),n.nrm(2,"path",285),n.k0s(),n.joV(),n.j41(3,"div",286)(4,"p"),n.EFF(5),n.k0s(),n.j41(6,"p"),n.EFF(7),n.k0s(),n.j41(8,"p"),n.EFF(9),n.k0s(),n.j41(10,"p"),n.EFF(11),n.nI1(12,"multilingualPropertyTranslate"),n.k0s()()()),2&h){const l=n.XpG(2);n.R7$(5),n.Lme("",l.addressEdit.street,", ",l.addressEdit.streetNumber,""),n.R7$(2),n.JRh(l.addressEdit.city),n.R7$(2),n.JRh(l.addressEdit.zipcode),n.R7$(2),n.JRh(n.bMT(12,5,null==l.addressEdit.country?null:l.addressEdit.country.name))}}function Ko(h,_){1&h&&(n.j41(0,"div",8),n.EFF(1,"*"),n.k0s())}function Xo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",289),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(3);return n.Njj(y.selectCountry(C))}),n.nrm(1,"img",290),n.j41(2,"div",164),n.EFF(3),n.k0s()()}if(2&h){const l=_.$implicit;n.R7$(),n.FS9("src",l.flagImage,n.B4B),n.R7$(2),n.SpI("+",l.numberCode,"")}}function Yo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",287),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.selectCountryPopUp=!1)}),n.DNE(1,Xo,4,2,"div",288),n.k0s()}if(2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngForOf",l.countries)}}function Jo(h,_){1&h&&n.nrm(0,"div",69)}function Zo(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",291),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openCustomAddressCreate())}),n.j41(1,"p",292),n.EFF(2,"+"),n.k0s(),n.j41(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s()()}2&h&&(n.R7$(4),n.JRh(n.bMT(5,1,"i18n.app.pages.service-request.block4.add-address")))}function Qo(h,_){1&h&&(n.qSk(),n.j41(0,"svg",293),n.nrm(1,"path",186)(2,"path",187)(3,"path",188)(4,"path",189),n.k0s())}function un(h,_){if(1&h&&n.nrm(0,"img",294),2&h){const l=n.XpG(2);
1n.FS9("src",l.getPicture(null==l.customerServiceRequestInput.bikeModel?null:l.customerServiceRequestInput.bikeModel.bikeAvatar),n.B4B)}}function hi(h,_){if(1&h&&(n.j41(0,"p",190),n.EFF(1),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.SpI('"',null==l.customerServiceRequestInput.bikeModel?null:l.customerServiceRequestInput.bikeModel.nickname,'"')}}function H(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.not-selected")))}function An(h,_){if(1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"price"),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.Lme("",null==l.customerServiceRequestInput.currency?null:l.customerServiceRequestInput.currency.isoCode," ",n.bMT(2,2,l.customerServiceRequestInput.spendingLimit),"")}}function _i(h,_){if(1&h&&(n.j41(0,"div",266)(1,"p",41),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,H,3,3,"p",244)(5,An,3,4,"p",244),n.k0s()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,3,"i18n.app.pages.customer.service-request.cost-cover")),n.R7$(2),n.Y8G("ngIf",!l.customerServiceRequestInput.spendingLimit),n.R7$(),n.Y8G("ngIf",l.customerServiceRequestInput.spendingLimit)}}function lr(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.SpI("/",n.bMT(2,1,"i18n.app.pages.customer.service-request.hour"),""))}function cr(h,_){if(1&h&&(n.j41(0,"div",76),n.EFF(1),n.DNE(2,lr,3,3,"p",244),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Lme("~",null==l.customerServiceRequestInput.serviceDefinition?null:l.customerServiceRequestInput.serviceDefinition.price," ",null==l.customerServiceRequestInput.serviceDefinition||null==l.customerServiceRequestInput.serviceDefinition.currency?null:l.customerServiceRequestInput.serviceDefinition.currency.isoCode,""),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequestInput.serviceDefinition?null:l.customerServiceRequestInput.serviceDefinition.isCustom)}}function Tn(h,_){if(1&h&&(n.j41(0,"div",145)(1,"div",146)(2,"p",147),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"p",148),n.EFF(6),n.nI1(7,"translate"),n.k0s()(),n.nrm(8,"div",149),n.j41(9,"p",150),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.j41(12,"p",76),n.EFF(13),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(3),n.JRh(n.bMT(4,5,"i18n.app.pages.shop.profile.pickupService")),n.R7$(3),n.JRh(n.bMT(7,7,"i18n.app.pages.customer.service-request.pay-service.delivery")),n.R7$(4),n.JRh(n.bMT(11,9,"i18n.app.pages.shop.service-request.info.fix-price")),n.R7$(3),n.Lme("",l.appConfig.Config.DELIVERY_PRICE_IN_CHF," ",null==l.customerServiceRequestInput.serviceDefinition||null==l.customerServiceRequestInput.serviceDefinition.currency?null:l.customerServiceRequestInput.serviceDefinition.currency.isoCode,"")}}function kn(h,_){1&h&&n.nrm(0,"div",69)}function dr(h,_){if(1&h&&n.nrm(0,"img",302),2&h){const l=n.XpG().$implicit;n.FS9("src",l.filePreview,n.B4B)}}function ur(h,_){if(1&h&&n.nrm(0,"video",303),2&h){const l=n.XpG().$implicit;n.Y8G("src",l.filePreview,n.B4B)}}function pr(h,_){if(1&h&&(n.j41(0,"div",299),n.DNE(1,dr,1,1,"img",300)(2,ur,1,1,"video",301),n.k0s()),2&h){const l=_.$implicit,g=_.index,C=n.XpG(3);n.R7$(),n.Y8G("ngIf",l.isImage&&(g<2||C.showAllMedia)),n.R7$(),n.Y8G("ngIf",!l.isImage&&(g<2||C.showAllMedia))}}function Tt(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",304),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.showAllMedia=!0)}),n.qSk(),n.j41(1,"svg",305)(2,"g",306),n.nrm(3,"path",307)(4,"path",308)(5,"path",309),n.k0s(),n.j41(6,"defs")(7,"clipPath",310),n.nrm(8,"rect",311),n.k0s()()(),n.joV(),n.j41(9,"div",40),n.EFF(10),n.nI1(11,"translate"),n.k0s()()}if(2&h){const l=n.XpG(3);n.R7$(10),n.Lme("",n.bMT(11,2,"i18n.app.pages.customer.service-request.show-all-images")," +",l.componentFiles.length-2,"")}}function vi(h,_){if(1&h&&(n.j41(0,"div",295)(1,"p",41),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",90),n.EFF(5),n.k0s(),n.j41(6,"div",296),n.DNE(7,pr,3,2,"div",297)(8,Tt,12,4,"div",298),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,4,"i18n.app.pages.customer.service-request.problem-description-description")),n.R7$(3),n.JRh(l.customerServiceRequestInput.description),n.R7$(2),n.Y8G("ngForOf",l.componentFiles),n.R7$(),n.Y8G("ngIf",l.componentFiles.length>2&&!l.showAllMedia)}}function gr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",312),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.goToPrevious())}),n.qSk(),n.j41(1,"svg",313),n.nrm(2,"path",314),n.k0s(),n.joV(),n.j41(3,"p",315),n.EFF(4),n.nI1(5,"translate"),n.k0s()()}2&h&&(n.R7$(4),n.JRh(n.bMT(5,1,"i18n.app.pages.selection.back")))}function Fn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",316),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.goToNextStep())}),n.j41(1,"p",315),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.qSk(),n.j41(4,"svg",317),n.nrm(5,"path",318),n.k0s(),n.j41(6,"svg",319),n.nrm(7,"path",320),n.k0s()()}if(2&h){const l=n.XpG(2);n.Y8G("ngClass",l.validNexButton()?"active-button":"un-active-button"),n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.selection.status.button"))}}function pn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",321),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.submit())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.submit")))}function Ht(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",27)(1,"div",28)(2,"div",29)(3,"div",30),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.About))}),n.nrm(4,"div",31),n.j41(5,"div",32),n.EFF(6),n.nI1(7,"translate"),n.k0s()(),n.j41(8,"div",30),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Address))}),n.nrm(9,"div",31),n.j41(10,"div",32),n.EFF(11),n.nI1(12,"translate"),n.k0s()(),n.j41(13,"div",30),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Price))}),n.nrm(14,"div",31),n.j41(15,"div",32),n.EFF(16),n.nI1(17,"translate"),n.k0s()(),n.j41(18,"div",30),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Problem))}),n.nrm(19,"div",31),n.j41(20,"div",32),n.EFF(21),n.nI1(22,"translate"),n.k0s()(),n.j41(23,"div",33),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Summary))}),n.nrm(24,"div",31),n.j41(25,"div",32),n.EFF(26),n.nI1(27,"translate"),n.k0s()()()(),n.j41(28,"div",34)(29,"div",35),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.About))}),n.DNE(30,Oo,2,0,"div",36)(31,ll,3,0,"div",37),n.j41(32,"div",38),n.EFF(33),n.nI1(34,"translate"),n.k0s(),n.nrm(35,"div",39),n.k0s(),n.j41(36,"div",35),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Address))}),n.DNE(37,U,2,0,"div",36)(38,Ye,3,0,"div",37),n.j41(39,"div",40),n.EFF(40),n.nI1(41,"translate"),n.k0s(),n.nrm(42,"div",39),n.k0s(),n.j41(43,"div",35),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Price))}),n.DNE(44,Oe,2,0,"div",36)(45,xo,3,0,"div",37),n.j41(46,"div",40),n.EFF(47),n.nI1(48,"translate"),n.k0s(),n.nrm(49,"div",39),n.k0s(),n.j41(50,"div",35),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Problem))}),n.DNE(51,Pt,2,0,"div",36)(52,Po,3,0,"div",37),n.j41(53,"div",40)(54,"p",41),n.EFF(55),n.nI1(56,"translate"),n.k0s(),n.DNE(57,bo,3,3,"p",42),n.k0s(),n.nrm(58,"div",39),n.k0s(),n.j41(59,"div",35),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goToSection(C.CreateCreateServiceRequestSectionsEnum.Summary))}),n.DNE(60,Ki,2,0,"div",36)(61,Mo,3,0,"div",37),n.j41(62,"div",40),n.EFF(63),n.nI1(64,"translate"),n.k0s(),n.nrm(65,"div",39),n.k0s()(),n.j41(66,"div",43)(67,"div",44)(68,"div",41),n.EFF(69),n.nI1(70,"translate"),n.k0s(),n.j41(71,"div",45)(72,"div",46)(73,"div",47)(74,"div",48)(75,"a",49),n.EFF(76),n.n
1I1(77,"translate"),n.k0s(),n.j41(78,"a",50),n.EFF(79),n.nI1(80,"translate"),n.k0s()(),n.DNE(81,wo,7,6,"div",51),n.k0s(),n.DNE(82,Zi,2,4,"div",52)(83,Ro,2,1,"div",53)(84,Io,10,3,"div",54),n.k0s(),n.DNE(85,ge,1,0,"div",10)(86,It,9,5,"div",55)(87,dn,12,9,"div",56)(88,Qi,5,3,"div",57)(89,To,6,3,"div",58),n.k0s()(),n.j41(90,"div",59)(91,"p",41),n.EFF(92),n.nI1(93,"translate"),n.k0s(),n.j41(94,"p",60),n.EFF(95),n.nI1(96,"translate"),n.k0s(),n.j41(97,"div",61),n.DNE(98,Bo,26,19,"div",62),n.k0s(),n.nrm(99,"div",63),n.j41(100,"p",64),n.EFF(101),n.nI1(102,"translate"),n.k0s(),n.j41(103,"div",65)(104,"div",66)(105,"div")(106,"p",67),n.EFF(107),n.nI1(108,"translate"),n.k0s(),n.j41(109,"p",68),n.EFF(110),n.nI1(111,"translate"),n.k0s(),n.nrm(112,"div",69),n.j41(113,"div",70)(114,"div",71)(115,"div",72),n.EFF(116),n.nI1(117,"translate"),n.k0s()()()(),n.j41(118,"div",73)(119,"div",74)(120,"p",75),n.EFF(121),n.nI1(122,"translate"),n.k0s(),n.j41(123,"div",76),n.EFF(124),n.k0s()(),n.DNE(125,zo,3,3,"div",77)(126,tr,6,3,"div",78),n.k0s()()()(),n.j41(127,"div",79)(128,"div",80)(129,"p",81),n.EFF(130),n.nI1(131,"translate"),n.k0s(),n.j41(132,"p",82),n.EFF(133),n.nI1(134,"translate"),n.qSk(),n.j41(135,"svg",83)(136,"g",84),n.nrm(137,"path",85)(138,"path",86),n.k0s(),n.j41(139,"defs")(140,"clipPath",87),n.nrm(141,"rect",88),n.k0s()()()()(),n.joV(),n.j41(142,"div",89)(143,"div",90)(144,"textarea",91),n.nI1(145,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return n.DH7(y.customerServiceRequestInput.description,C)||(y.customerServiceRequestInput.description=C),n.Njj(C)}),n.EFF(146,"          "),n.k0s()(),n.j41(147,"div",92)(148,"div",93)(149,"ngx-awesome-uploader",94,0)(151,"div",95),n.qSk(),n.j41(152,"svg",96),n.nrm(153,"path",97)(154,"path",98),n.k0s(),n.joV(),n.j41(155,"div",99)(156,"div",100)(157,"p",101),n.EFF(158),n.nI1(159,"translate"),n.k0s(),n.j41(160,"p",102),n.EFF(161),n.nI1(162,"translate"),n.k0s()(),n.j41(163,"p",103),n.EFF(164,"SVG, PNG, JPG, GIF, HEIF, MOV, MP4"),n.k0s()(),n.DNE(165,Go,3,3,"p",104),n.k0s(),n.j41(166,"div",105),n.qSk(),n.j41(167,"svg",106),n.nrm(168,"path",107)(169,"path",108)(170,"path",109)(171,"path",110),n.k0s()()(),n.DNE(172,Uo,6,2,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(174,nr,3,3,"div",111),n.k0s()(),n.DNE(175,ir,8,5,"div",112),n.k0s(),n.joV(),n.j41(176,"div",113)(177,"div",114),n.EFF(178),n.nI1(179,"translate"),n.k0s(),n.DNE(180,or,12,9,"div",115)(181,Wo,16,9,"div",115),n.j41(182,"div",116)(183,"div",6)(184,"div",7),n.EFF(185),n.nI1(186,"translate"),n.j41(187,"div",8),n.EFF(188,"*"),n.k0s()(),n.DNE(189,q,1,2,"app-address-search",9),n.k0s(),n.nrm(190,"div",69),n.DNE(191,ar,13,7,"div",11),n.j41(192,"div",117)(193,"div",118)(194,"div",7),n.EFF(195),n.nI1(196,"translate"),n.DNE(197,Ko,2,0,"div",119),n.k0s(),n.j41(198,"div",120)(199,"div",13),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.selectCountryPopUp=!C.selectCountryPopUp)}),n.nrm(200,"img",14),n.j41(201,"div",15),n.EFF(202),n.k0s(),n.qSk(),n.j41(203,"svg",16),n.nrm(204,"path",17),n.k0s()(),n.joV(),n.j41(205,"input",121),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return y.addressEdit&&(n.DH7(y.addressEdit.mobilePhone,C)||(y.addressEdit.mobilePhone=C)),n.Njj(C)}),n.bIt("input",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.filteringPhoneNumber())}),n.k0s(),n.DNE(206,Yo,2,1,"div",19),n.k0s()()(),n.j41(207,"div",122)(208,"div",123),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.updateCustomAddress())}),n.EFF(209),n.nI1(210,"translate"),n.k0s(),n.j41(211,"div",124),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.closeEditAddress())}),n.EFF(212),n.nI1(213,"translate"),n.k0s()()(),n.DNE(214,Jo,1,0,"div",10)(215,Zo,6,3,"div",125),n.k0s(),n.j41(216,"div",126)(217,"div",127)(218,"p",41),n.EFF(219),n.nI1(220,"translate"),n.k0s()(),n.j41(221,"div",128),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.openCalendar())}),n.j41(222,"dx-date-box",129),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return n.DH7(y.customerServiceRequestInput.requestedPickUpDate,C)||(y.customerServiceRequestInput.requestedPickUpDate=C),n.Njj(C)}),n.k0s()()(),n.j41(223,"div",130)(224,"p",131),n.EFF(225),n.nI1(226,"translate"),n.k0s(),n.j41(227,"div",132)(228,"div",133),n.DNE(229,Qo,5,0,"svg",134)(230,un,1,1,"img",135),n.j41(231,"div",136),n.DNE(232,hi,2,1,"p",137),n.j41(233,"p",138),n.EFF(234),n.k0s(),n.j41(235,"p",139),n.EFF(236),n.k0s()()(),n.j41(237,"div",140)(238,"p",141),n.EFF(239),n.nI1(240,"translate"),n.k0s(),n.j41(241,"div",142)(242,"p"),n.EFF(243),n.nI1(244,"multilingualPropertyTranslate"),n.k0s(),n.j41(245,"p"),n.EFF(246),n.k0s()()(),n.DNE(247,_i,6,5,"div",112),n.k0s(),n.nrm(248,"div",69),n.j41(249,"div",143)(250,"p",144),n.EFF(251),n.nI1(252,"translate"),n.k0s(),n.j41(253,"div",61)(254,"div",145)(255,"div",146)(256,"p",147),n.EFF(257),n.nI1(258,"multilingualPropertyTranslate"),n.k0s(),n.j41(259,"p",148),n.EFF(260),n.n
1I1(261,"multilingualPropertyTranslate"),n.k0s()(),n.nrm(262,"div",149),n.j41(263,"p",150),n.EFF(264),n.nI1(265,"translate"),n.k0s(),n.DNE(266,cr,3,3,"div",151),n.k0s(),n.DNE(267,Tn,14,11,"div",152),n.k0s()(),n.DNE(268,kn,1,0,"div",10)(269,vi,9,6,"div",153),n.nrm(270,"div",69),n.j41(271,"div",154)(272,"p",41),n.EFF(273),n.nI1(274,"translate"),n.k0s(),n.j41(275,"p",155),n.EFF(276),n.nI1(277,"customDate"),n.k0s()(),n.nrm(278,"div",69),n.j41(279,"div",156)(280,"div",41),n.EFF(281),n.nI1(282,"translate"),n.k0s(),n.j41(283,"div",157)(284,"dx-check-box",158),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return n.DH7(y.acceptTerms,C)||(y.acceptTerms=C),n.Njj(C)}),n.k0s(),n.j41(285,"p",40),n.EFF(286),n.nI1(287,"translate"),n.j41(288,"a",159),n.EFF(289),n.nI1(290,"translate"),n.k0s()()()()(),n.j41(291,"div",160),n.DNE(292,gr,6,3,"div",161)(293,Fn,8,4,"div",162)(294,pn,3,3,"div",163),n.k0s()()()}if(2&h){const l=n.sdS(173),g=n.XpG();n.R7$(3),n.Y8G("ngClass",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.About)||g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.About?"selected-section":"un-selected-section"),n.R7$(2),n.Y8G("ngClass",n.sMw(221,Gt,g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.About,g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.About),!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.About)&&g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.About)),n.R7$(),n.JRh(n.bMT(7,135,"i18n.app.pages.service-request.navigation.about")),n.R7$(2),n.Y8G("ngClass",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Address)||g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Address?"selected-section":"un-selected-section"),n.R7$(2),n.Y8G("ngClass",n.sMw(225,Gt,g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Address,g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Address),!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Address)&&g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.Address)),n.R7$(),n.JRh(n.bMT(12,137,"i18n.app.pages.service-request.navigation.address")),n.R7$(2),n.Y8G("ngClass",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Price)||g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Price?"selected-section":"un-selected-section"),n.R7$(2),n.Y8G("ngClass",n.sMw(229,Gt,g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Price,g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Price),!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Price)&&g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.Price)),n.R7$(),n.JRh(n.bMT(17,139,"i18n.app.pages.service-request.navigation.price")),n.R7$(2),n.Y8G("ngClass",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Problem)||g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Problem?"selected-section":"un-selected-section"),n.R7$(2),n.Y8G("ngClass",n.sMw(233,Gt,g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Problem,g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Problem),!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Problem)&&g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.Problem)),n.R7$(),n.JRh(n.bMT(22,141,"i18n.app.pages.service-request.navigation.problem")),n.R7$(2),n.Y8G("ngClass",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Summary)||g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Summary?"selected-section":"un-selected-section"),n.R7$(2),n.Y8G("ngClass",n.sMw(237,Gt,g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Summary,g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Summary),!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Summary)&&g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.Summary)),n.R7$(),n.JRh(n.bMT(27,143,"i18n.app.pages.customer.service-request.summary")),n.R7$(3),n.Y8G("ngClass",g.selectedSection==g.CreateCreateServiceRequestSectionsEnum.About?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.About)),n.R7$(),n.Y8G("ngIf",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.About)),n.R7$(2),n.JRh(n.bMT(34,145,"i18n.app.pages.service-request.navigation.about")),n.R7$(3),n.Y8G("ngClass",g.selectedSection==g.CreateCreateServiceRequestSectionsEnum.Address?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Address)),n.R7$(),n.Y8G("ngIf",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Address)),n.R7$(2),n.JRh(n.bMT(41,147,"i18n.app.pages.service-request.navigation.address")),n.R7$(3),n.Y8G("ngClass",g.selectedSection==g.CreateCreateServiceRequestSectionsEnum.Price?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Price)),n.R7$(),n.Y8G("ngIf",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Price)),n.R7$(2),n.JRh(n.bMT(48,149,"i18n.app.pages.service-request.navigation.price")),n.R7$(3),n.Y8G("ngClass",g.selectedSection==g.CreateCreateServiceRequestSectionsEnum.Problem?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Problem)),n.R7$(),n.Y8G("ngIf",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Problem)),n.R7$(3),n.JRh(n.bMT(56,151,"i18n.app.pages.service-request.navigation.problem")),n.R7$(2),n.Y8G("ngIf",g.isProblemOption()),n.R7$(2),n.Y8G("ngClass",g.selectedSection==g.CreateCreateServiceRequestSectionsEnum.Summary?"selected":"un-selected"),n.R7$(),n.Y8G("ngIf",!g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Summary)),n.R7$(),n.Y8G("ngIf",g.isSectionChecked(g.CreateCreateServiceRequestSectionsEnum.Summary)),n.R7$(2),n.JRh(n.bMT(64,153,"i18n.app.pages.customer.service-request.summary")),n.R7$(4),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.About?"show":"hide"),n.R7$(2),n.JRh(n.bMT(70,155,"i18n.app.pages.service-request.title")),n.R7$(7),n.JRh(n.bMT(77,157,"i18n.app.pages.customer.service-request.chose-bike")),n.R7$(3),n.JRh(n.bMT(80,159,"i18n.app.pages.customer.service-request.chose-bike-descriptions")),n.R7$(2),n.Y8G("ngIf",g.sliderDots.length>1),n.R7$(),n.Y8G("ngIf",g.bikes&&g.bikes.length>0),n.R7$(),n.Y8G("ngIf",g.sliderDots.length>1),n.R7$(),n.Y8G("ngIf",g.bikes&&0==g.bikes.length),n.R7$(),n.Y8G("ngIf",g.showAddBikedOptions),n.R7$(),n.Y8G("ngIf",g.showAddBikedOptions),n.R7$(),n.Y8G("ngIf",g.showAddBikedOptions),n.R7$(),n.Y8G("ngIf",g.customBike&&g.showAddBikedOptions),n.R7$(),n.Y8G("ngIf",!g.showAddBikedOptions&&g.bikes),n.R7$(),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Price?"show":"hide"),n.R7$(2),n.JRh(n.bMT(93,161,"i18n.app.pages.customer.service-request.chose-package")),n.R7$(3),n.JRh(n.bMT(96,163,"i18n.app.pages.customer.service-request.chose-package.sub-title")),n.R7$(3),n.Y8G("ngForOf",g.serviceDefinitions),n.R7$(3),n.JRh(n.bMT(102,165,"i18n.app.pages.customer.profile.additional-services")),n.R7$(6),n.JRh(n.bMT(108,167,"i18n.app.pages.customer.service-request.pick-up-service")),n.R7$(3),n.JRh(n.bMT(111,169,"i18n.app.pages.customer.service-request.pay-service.delivery")),n.R7$(6),n.JRh(n.bMT(117,171,"i18n.app.pages.customer.service-request.pick-up.title")),n.R7$(5),n.JRh(n.bMT(122,173,"i18n.app.pages.shop.service-request.info.fix-price")),n.R7$(3),n.Lme("",g.appConfig.Config.DELIVERY_PRICE_IN_CHF," ",null==g.customerServiceRequestInput.currency?null:g.customerServiceRequestInput.currency.isoCode,""),n.R7$(),n.Y8G("ngIf",g.checkIfPickUpServiceAvailable()),n.R7$(),n.Y8G("ngIf",!g.checkIfPickUpServiceAvailable()),n.R7$(),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Problem?"show":"hide"),n.R7$(3),n.JRh(n.bMT(131,175,"i18n.app.pages.service-request.block3-title")),n.R7$(3),n.SpI("",n.bMT(134,177,"i18n.app.pages.service-request.block3.title-phone")," "),n.R7$(11),n.FS9("placeholder",n.bMT(145,179,"i18n.app.pages.service-request.block3.input-placeholder")),n.R50("ngModel",g.customerServiceRequestInput.description),n.R7$(5),n.Y8G("adapter",g.adapter)("fileMaxSize",50)("fileMaxCount",5)("fileExtensions",g.allowedExtensions)("itemTemplate",l)("customValidator",g.checkIfFileAlreadyExist),n.R7$(9),n.JRh(n.bMT(159,181,"i18n.app.pages.service-request.block3.upload-file-title")),n.R7$(3),n.JRh(n.bMT(162,183,"i18n.app.pages.service-request.block3.upload-file-title2")),n.R7$(4),n.Y8G("ngIf",0===g.mediaService.files.length),n.R7$(9),n.Y8G("ngIf",0===g.mediaService.files.length),n.R7$(),n.Y8G("ngIf",null==g.customerServiceRequestInput.serviceDefinition?null:g.customerServiceRequestInput.serviceDefinition.isCustom),n.R7$(),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Address?"show":"hide"),n.R7$(2),n.JRh(n.bMT(179,185,"i18n.app.pages.service-request.block4.title")),n.R7$(2),n.Y8G("ngIf",g.customer.address),n.R7$(),n.Y8G("ngIf",g.customAddress),n.R7$(),n.Y8G("ngClass",g.addressEdit.countryId?"show":"hide"),n.R7$(3),n.JRh(n.bMT(186,187,"i18n.app.pages.service-request.navigation.address")),n.R7$(6),n.Y8G("ngIf",g.addressEdit.zipcode),n.R7$(4),n.JRh(n.bMT(196,189,"i18n.app.pages.shop.profile.mobilePhone")),n.R7$(2),n.Y8G("ngIf",0===(null==g.addressEdit.mobilePhone?null:g.addressEdit.mobilePhone.length)),n.R7$(3),n.FS9("src",null==g.addressEdit.mobilePhoneCountry?null:g.addressEdit.mobilePhoneCountry.flagImage,n.B4B),n.R7$(2),n.SpI("+",null==g.addressEdit.mobilePhoneCountry?null:g.addressEdit.mobilePhoneCountry.numberCode,""),n.R7$(),n.Y8G("ngClass",n.eq3(241,ke,g.selectCountryPopUp)),n.R7$(2),n.R50("ngModel",g.addressEdit&&g.addressEdit.mobilePhone),n.R7$(),n.Y8G("ngIf",g.selectCountryPopUp),n.R7$(3),n.JRh(n.bMT(210,191,"i18n.app.pages.offered.button.save")),n.R7$(3),n.JRh(n.bMT(213,193,"i18n.app.pages.customer.bikes.cancel")),n.R7$(2),n.Y8G("ngIf",!(g.customAddress||null!=g.addressEdit&&g.addressEdit.countryId)),n.R7$(),n.Y8G("ngIf",!(g.customAddress||null!=g.addressEdit&&g.addressEdit.countryId)),n.R7$(),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Address?"show":"hide"),n.R7$(3),n.JRh(n.bMT(220,195,"i18n.app.pages.service-request.block5.request-date-title")),n.R7$(3),n.R50("ngModel",g.customerServiceRequestInput.requestedPickUpDate),n.Y8G("ngModelOptions",n.lJ4(243,Se))("disabledDates",g.disabledDates)("min",g.minDate),n.R7$(),n.Y8G("ngClass",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Summary?"show":"hide"),n.R7$(2),n.JRh(n.bMT(226,197,"i18n.app.pages.customer.service-request.summary")),n.R7$(4),n.Y8G("ngIf",!(null!=g.customerServiceRequestInput.bikeModel&&g.customerServiceRequestInput.bikeModel.bikeAvatar)),n.R7$(),n.Y8G("ngIf",null==g.customerServiceRequestInput.bikeModel?null:g.customerServiceRequestInput.bikeModel.bikeAvatar),n.R7$(2),n.Y8G("ngIf",null==g.customerServiceRequestInput.bikeModel?null:g.customerServiceRequestInput.bikeModel.nickname),n.R7$(2),n.JRh(null==g.customerServiceRequestInput.bikeModel?null:g.customerServiceRequestInput.bikeModel.model),n.R7$(2),n.JRh(null==g.customerServiceRequestInput.bikeModel?null:g.customerServiceRequestInput.bikeModel.brandName),n.R7$(3),n.JRh(n.bMT(240,199,"i18n.app.pages.customer.service-request.address-phone")),n.R7$(4),n.SjE("",null==g.customerServiceRequestInput.address?null:g.customerServiceRequestInput.address.street,", ",null==g.customerServiceRequestInput.address?null:g.customerServiceRequestInput.address.streetNumber,", ",null==g.customerServiceRequestInput.address?null:g.customerServiceRequestInput.address.city,", ",null==g.customerServiceRequestInput.address?null:g.customerServiceRequestInput.address.zipcode,", ",n.bMT(244,201,null==g.customerServiceRequestInput.address||null==g.customerServiceRequestInput.address.country?null:g.customerServiceRequestInput.address.country.name),""),n.R7$(3),n.Lme("+",null==g.customerServiceRequestInput.address||null==g.customerServiceRequestInput.address.mobilePhoneCountry?null:g.customerServiceRequestInput.address.mobilePhoneCountry.numberCode,"",null==g.customerServiceRequestInput.address?null:g.customerServiceRequestInput.address.mobilePhone,""),n.R7$(),n.Y8G("ngIf",null==g.customerServiceRequestInput.serviceDefinition?null:g.customerServiceRequestInput.serviceDefinition.isCustom),n.R7$(4),n.JRh(n.bMT(252,203,"i18n.app.pages.customer.service-request.overview.services")),n.R7$(6),n.JRh(n.bMT(258,205,null==g.customerServiceRequestInput.serviceDefinition?null:g.customerServiceRequestInput.serviceDefinition.title)),n.R7$(3),n.SpI("",n.bMT(261,207,null==g.customerServiceRequestInput.serviceDefinition?null:g.customerServiceRequestInput.serviceDefinition.serviceType)," "),n.R7$(4),n.JRh(n.bMT(265,209,"i18n.app.pages.shop.service-request.info.estimate-cost")),n.R7$(2),n.Y8G("ngIf",null==g.customerServiceRequestInput.serviceDefinition?null:g.customerServiceRequestInput.serviceDefinition.price),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.pickUpService),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.description||g.componentFiles.length>0),n.R7$(),n.Y8G("ngIf",g.customerServiceRequestInput.description||g.componentFiles.length>0),n.R7$(4),n.JRh(n.bMT(274,211,"i18n.app.pages.customer.service-request.overview.pickupdate")),n.R7$(3),n.JRh(n.bMT(277,213,g.customerServiceRequestInput.requestedPickUpDate)),n.R7$(5),n.JRh(n.bMT(282,215,"i18n.app.pages.service-request.block5.conditions-title")),n.R7$(3),n.R50("ngModel",g.acceptTerms),n.R7$(2),n.JRh(n.bMT(287,217,"i18n.app.pages.service-request.block5.conditions-accept")),n.R7$(3),n.JRh(n.bMT(290,219,"i18n.app.pages.service-request.block5.conditions-title")),n.R7$(3),n.Y8G("ngIf",g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.About),n.R7$(),n.Y8G("ngIf",g.selectedSection!==g.CreateCreateServiceRequestSectionsEnum.Summary),n.R7$(),n.Y8G("ngIf",g.selectedSection===g.CreateCreateServiceRequestSectionsEnum.Summary)}}function Dn(h,_){if(1&h){const l=n.RV6();n.j41(0,"app-address-search",283),n.bIt("searchTermChange",function(C){const y=n.eBV(l).onSearchChange;return n.Njj(y(C))}),n.k0s()}if(2&h){const l=_.options,g=n.XpG();n.Y8G("options",l)("countries",g.countries)}}function hr(h,_){1&h&&n.nrm(0,"div",69)}function _r(h,_){if(1&h&&(n.j41(0,"div",142),n.qSk(),n.j41(1,"svg",284),n.nrm(2,"path",285),n.k0s(),n.joV(),n.j41(3,"div",286)(4,"p"),n.EFF(5),n.k0s(),n.j41(6,"p"),n.EFF(7),n.k0s(),n.j41(8,"p"),n.EFF(9),n.k0s(),n.j41(10,"p"),n.EFF(11),n.nI1(12,"multilingualPropertyTranslate"),n.k0s()()()),2&h){const l=n.XpG();n.R7$(5),n.Lme("",l.addressEdit.street,", ",l.addressEdit.streetNumber,""),n.R7$(2),n.JRh(l.addressEdit.city),n.R7$(2),n.JRh(l.addressEdit.zipcode),n.R7$(2),n.JRh(n.bMT(12,5,null==l.addressEdit.country?null:l.addressEdit.country.name))}}function vr(h,_){1&h&&n.nrm(0,"div",69)}function Ci(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",289),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(2);return n.Njj(y.selectCountry(C))}),n.nrm(1,"img",290),n.j41(2,"div",164),n.EFF(3),n.k0s()()}if(2&h){const l=_.$implicit;n.R7$(),n.FS9("src",l.flagImage,n.B4B),n.R7$(2),n.SpI("+",l.numberCode,"")}}function Cr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",287),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.selectCountryPopUp=!1)}),n.DNE(1,Ci,4,2,"div",288),n.k0s()}if(2&h){const l=n.XpG();n.R7$(),n.Y8G("ngForOf",l.countries)}}function Ce(h,_){1&h&&n.nrm(0,"div",322)}function ut(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",323),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isAddPhotosPoUp=!1)}),n.qSk(),n.j41(1,"svg",324),n.nrm(2,"circle",325)(3,"path",326)(4,"path",327)(5,"path",328)(6,"path",329),n.k0s(),n.joV(),n.j41(7,"p",41),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"p",60),n.EFF(11),n.nI1(12,"translate"),n.k0s(),n.j41(13,"div",330),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.addPhoto())}),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.j41(16,"div",331),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.dontAddPhoto())}),n.EFF(17),n.nI1(18,"translate"),n.k0s()()}2&h&&(n.R7$(8),n.JRh(n.bMT(9,4,"i18n.app.pages.customer.service-request.add-photo-title")),n.R7$(3),n.JRh(n.bMT(12,6,"i18n.app.pages.customer.service-request.add-photo-sub-title")),n.R7$(3),n.JRh(n.bMT(15,8,"i18n.app.pages.customer
1.service-request.add-photo")),n.R7$(3),n.JRh(n.bMT(18,10,"i18n.app.pages.customer.service-request.dont-add-photo")))}function X(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",332)(1,"div",333),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goBack())}),n.qSk(),n.j41(2,"svg",334),n.nrm(3,"path",335),n.k0s(),n.joV(),n.j41(4,"p",40),n.EFF(5),n.nI1(6,"translate"),n.k0s()(),n.j41(7,"div",336)(8,"div",337)(9,"div",338),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.j41(12,"div",339)(13,"p"),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.j41(16,"p"),n.EFF(17),n.nI1(18,"translate"),n.k0s()(),n.j41(19,"div",340),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goBack())}),n.EFF(20),n.nI1(21,"translate"),n.k0s()(),n.j41(22,"div",299),n.nrm(23,"img",341),n.k0s(),n.nrm(24,"img",342),n.k0s()()}2&h&&(n.R7$(5),n.JRh(n.bMT(6,5,"i18n.app.pages.customer.service-request.back-navigation")),n.R7$(5),n.JRh(n.bMT(11,7,"i18n.app.pages.service-request.submitted")),n.R7$(4),n.JRh(n.bMT(15,9,"i18n.app.pages.success-service-request.text")),n.R7$(3),n.JRh(n.bMT(18,11,"i18n.app.pages.success-service-request.text-2")),n.R7$(3),n.JRh(n.bMT(21,13,"i18n.app.pages.success-service-request.navigate")))}let de=(()=>{class h extends et{constructor(l,g,C,y,Q,le,Fe,ye,wt,Jt,Dt,dd,ki,xa,ud,pd,gd,hd,_d,vd,Fi){super(le,Q,ye,Fe,Fi),this.router=l,this.customerServiceRequestService=g,this.mediaService=C,this.loaderService=y,this.bikeTypeService=Q,this.brandService=le,this.serviceDefinitionService=Fe,this.currencyService=ye,this.countryService=wt,this.bikeService=Jt,this.activatedRoute=Dt,this.customerService=dd,this.toastService=ki,this.spokes99BikesService=xa,this.el=ud,this.change=pd,this.burgerMenuService=gd,this.appConfig=hd,this.mapService=_d,this.authService=vd,this.eMotorsService=Fi,this.adapter=new ne.R(this.mediaService,this.loaderService),this.customerServiceRequestInput=new w.S0,this.allowedExtensions=["jpg","jpeg","gif","png","mp4","mov","avi","wmv","webm","svg"],this.minDate=new Date,this.subscription=new I.yU,this.countries=[],this.bikeIdFromQuery="",this.selectedSection=K.About,this.componentFiles=[],this.customer=new w.EQ,this.addressEdit=new w.g3,this.customBike=!1,this.selectCountryPopUp=!1,this.useCustomAddress=!1,this.successRequest=!1,this.acceptTerms=!0,this.aboutContainerWidth=0,this.sliderDots=[],this.sectionCheckedList=[],this.showAllMedia=!1,this.isAddPhotosPoUp=!1,this.isServicePackageComparisonPopup=!1,this.bike99Selected=!1,this.showAddBikedOptions=!1,this.disabledDates=Pa=>{const Wr=Pa.date.getDay();return 0===Wr||1===Wr},this.CreateCreateServiceRequestSectionsEnum=K,this.console=console,this.window=window}ngOnInit(){this.authService.checkCustomerProfile(),this.getAllCountries(),this.customerServiceRequestInput.isDraft=!1,this.customerServiceRequestInput.bikeModel=new w.zZ,this.selectBikeFromQuery(),this.mediaService.mediaAssignment=w.Wf.CustomerServiceRequest,this.mediaService.mediaId=F.q.create().toString(),this.getCustomer(),this.burgerMenuService.hideUserRole(),this.onAddressChange(),this.subscribeMediaSelect(),this.subscribeToBikeSelect(),this.setMinDate()}ngAfterViewInit(){this.selectedSection=K.About}getAllCurrencies(){this.currencyService.getAllCurrencies().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.currencies=l?.results||this.currencies,this.customerServiceRequestInput.currencyId=this.currencies[0].id,this.customerServiceRequestInput.currency=this.currencies[0]})}subscribeMediaSelect(){this.subscription.add(this.mediaService.componentFiles$.subscribe(l=>{this.componentFiles.some(g=>g.fileName==l.fileName)?this.componentFiles=this.componentFiles.filter(g=>g.fileName!=l.fileName):this.componentFiles.push(l)}))}subscribeToBikeSelect(){this.subscription.add(this.spokes99BikesService.selectedBike.subscribe(l=>{l.bike99SpokesId=F.q.create().toString(),this.bikes=this.bikes?.filter(C=>C.id!==this.bike99SelectedId);const g=new w.$V({id:l.bike99SpokesId,brand:new w.hZ({name:l.brandName}),model:l.model,bikeAvatar:l.bikeAvatar,isEBike:l.isEBike,year:l.year});this.bikes?.unshift(g),this.bike99SelectedId=l.bike99SpokesId,this.customerServiceRequestInput.bikeModel=l,this.customBike=!1,this.bike99Selected=!0,this.customerServiceRequestInput.bikeId=void 0,l.eMotorName&&(this.customerServiceRequestInput.bikeModel.eMotorId=this.eMotors.find(C=>C.name===l.eMotorName)?.id),this.customerServiceRequestInput.bikeModel.brandId=this.brands.find(C=>C.name===l.brandName)?.id}))}getCustomer(){this.customerService.getCustomerByUserAuthId().subscribe(l=>{this.customer=l,this.customerServiceRequestInput.address=l.address})}checkIfPickUpServiceAvailable(){return this.useCustomAddress?"Z\xfcrich"===this.customAddress?.city:"Z\xfcrich"===this.customerServiceRequestInput.address?.city}goBack(){this.router.navigate(["customer/service-requests"])}isProblemOption(){const l=this.serviceDefinitions.find(g=>"Custom"==g.title?.en);return this.customerServiceRequestInput.serviceDefinitionId!==l?.id&&this.customerServiceRequestInput.serviceDefinitionId&&this.customerServiceRequestInput.serviceDefinitionId?.length>0}openCustomAddressCreate(){const l=this.countries.find(g=>"CH"===g.isoCode);this.addressEdit=new w.g3({mobilePhoneCountryId:l?.id,countryId:l?.id,mobilePhoneCountry:l})}openEditProfileAddress(){this.addressEdit=Object.assign({},this.customer.address)}openEditCustomAddress(){this.addressEdit=this.customAddress}updateCustomAddress(){this.addressEdit.streetNumber&&this.addressEdit.street&&this.addressEdit.mobilePhone&&this.addressEdit.mobilePhoneCountryId?(this.customAddress=this.addressEdit,this.addressEdit=new w.g3,this.useCustomAddress=!0,this.customerServiceRequestInput.address=this.customAddress):this.showErrorPopUp()}setMinDate(){const l=new Date;for(l.getHours()>=17?this.minDate.setDate(l.getDate()+4):this.minDate.setDate(l.getDate()+3),this.minDate.getDay();0===this.minDate.getDay()||1===this.minDate.getDay();)this.minDate.setDate(this.minDate.getDate()+1);this.customerServiceRequestInput.requestedPickUpDate=this.minDate}closeEditAddress(){this.addressEdit=new w.g3}getCountById(l){return this.countries.find(g=>g.id==l)}changeAddress(){this.useCustomAddress=!this.useCustomAddress,this.customerServiceRequestInput.address=this.useCustomAddress?this.customAddress:this.customer.address}deleteCustomAddress(){this.addressEdit=new w.g3,this.customAddress=void 0,this.useCustomAddress=!1,this.customerServiceRequestInput.address=this.customer.address}onToggleClick(l){null==this.customAddress?(this.toastService.showToast("i18n.app.pages.customer.service-request.address-required",qe.m.Fail),l.preventDefault(),l.stopImmediatePropagation()):this.changeAddress()}getSliderDotsCount(){this.bikes&&(this.sliderDots=Array.from({length:252*this.bikes.length/this.aboutContainerWidth+1},(g,C)=>C+1))}getAboutContainerWidth(){this.aboutContainerWidth=this.el.nativeElement.querySelector(".about-container").offsetWidth}scrollToNext(){const l=this.el.nativeElement.querySelector(".bikes");l&&(l.scrollTo({left:l.scrollLeft+this.aboutContainerWidth,behavior:"smooth"}),setTimeout(()=>{this.change.markForCheck()},400))}scrollToPrevious(){const l=this.el.nativeElement.querySelector(".bikes");l&&(l.scrollTo({left:l.scrollLeft-this.aboutContainerWidth,behavior:"smooth"}),setTimeout(()=>{this.change.markForCheck()},400))}isActiveDot(l){const g=this.el.nativeElement.querySelector(".bikes");return!!g&&Math.floor((g.scrollLeft+this.aboutContainerWidth-5)/this.aboutContainerWidth+1)===l}getAllCountries(){this.countryService.getAllCountries().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.countries=l?.results||this.countries})}getComponentFile(l){return this.componentFiles.find(g=>g.fileName==l)}customEdit(){0===this.brands.length&&this.getBikeInformation(),this.customerServiceRequestInput.bikeId=void 0,this.customerServiceRequestInput.bikeModel=new w.zZ,this.bike99Selected=!1,this.bike99SelectedId=void 0}submit(){if(this.acceptTerms){this.customerServiceRequestInput.mediaId=this.mediaService.mediaId.toString();let l="";this.eMotors.length>0&&(l=this.eMotors[0].id),this.customerServiceRequestInput.bikeModel&&this.customerServiceRequestInput.bikeModel.eMotorId===l&&(this.customerServiceRequestInput.bikeModel.eMotorId=void 0,this.customerServiceRequestInput.bikeModel.eMotorName=void 0),this.createServiceRequest
1()}else this.showErrorPopUp()}selectBikeFromQuery(){this.activatedRoute.queryParams.subscribe(l=>{this.bikeIdFromQuery=l.bikeId,this.getBikes()})}onAddressChange(){this.subscription.add(this.mapService.$newAddress.subscribe(l=>{const g=this.addressEdit;this.addressEdit=l,(g.mobilePhone||g.mobilePhoneCountryId)&&(this.addressEdit.mobilePhone=g.mobilePhone,this.addressEdit.mobilePhoneCountryId=g.mobilePhoneCountryId,this.addressEdit.mobilePhoneCountry=g.mobilePhoneCountry)}))}checkIfFileAlreadyExist(l){return(0,A.of)(!this.componentFiles?.some(g=>g.fileName===l.name))}createServiceRequest(){0===this.mediaService.uploadingMedia.length?this.customerServiceRequestService.createCustomerServiceRequest(this.customerServiceRequestInput).pipe((0,x.j)(()=>!1)).subscribe(()=>{this.successRequest=!0,window.scroll({top:0,left:0,behavior:"smooth"})}):this.toastService.showToast("i18n.app.pages.customer.service-request.media-not-download",qe.m.Fail)}saveAsDraft(){this.customerServiceRequestInput.isDraft=!0,this.submit()}goToSection(l){let g=!1;switch(l){case K.About:g=!0;break;case K.Address:this.aboutValidator()&&(g=!0,this.sectionCheckedList.push(K.About));break;case K.Price:this.isSectionChecked(K.About)&&(g=!0,this.sectionCheckedList.push(K.Address));break;case K.Problem:this.isSectionChecked(K.About)&&this.isSectionChecked(K.Address)&&this.customerServiceRequestInput.serviceDefinitionId&&(g=!0,this.sectionCheckedList.push(K.Price));break;case K.Summary:0==this.customerServiceRequestInput.serviceDefinition?.isCustom&&(this.sectionCheckedList.push(K.Price),this.sectionCheckedList.push(K.Problem)),this.isSectionChecked(K.About)&&this.isSectionChecked(K.Price)&&this.isSectionChecked(K.Problem)&&(g=!0,this.sectionCheckedList.push(K.Problem))}this.isSectionChecked(l)||g?this.selectedSection=l:this.showErrorPopUp()}openCalendar(){this.dateBox.opened=!0}filteringPhoneNumber(){this.addressEdit&&this.addressEdit.mobilePhone&&"0"===this.addressEdit.mobilePhone.charAt(0)&&(this.addressEdit.mobilePhone=this.addressEdit.mobilePhone.slice(1))}removeLeadingZero(){const l=document.getElementById("phoneInputField"),g=l.value;if(g.length>1&&"0"===g[1]&&this.addressEdit){const C=g[0]+g.slice(2);l.value=C,this.addressEdit.mobilePhone=C}}selectCountry(l){(this.addressEdit&&this.addressEdit.mobilePhoneCountry||this.addressEdit)&&(this.addressEdit.mobilePhoneCountry=l,this.addressEdit.mobilePhoneCountryId=l.id),this.selectCountryPopUp=!1}getPicture(l){return l?l.startsWith("https:")?l:"data:image/png;base64,"+l:""}getBikes(){this.bikeService.getBikesByAuth0Id().subscribe(l=>
1{if(this.bikes=l,this.getAboutContainerWidth(),this.getSliderDotsCount(),this.showAddBikedOptions=l.length<=0,this.bikeIdFromQuery){const g=this.bikes.find(C=>C.id===this.bikeIdFromQuery);if(g){const C=this.bikes.indexOf(g);-1!==C&&(this.bikes.splice(C,1),this.bikes.unshift(g)),this.selectBike(g)}else this.customBike=!1}})}aboutValidator(){return this.customerServiceRequestInput.bikeId||this.customerServiceRequestInput.bikeModel?.model&&this.customerServiceRequestInput.bikeModel?.bikeTypeName&&this.customerServiceRequestInput.bikeModel?.brandName||this.customerServiceRequestInput.bikeModel?.brandId&&this.customerServiceRequestInput.bikeModel.bikeTypeId&&this.customerServiceRequestInput.bikeModel.model}problemValidator(){const l=this.serviceDefinitions.find(g=>"Custom"==g.title?.en);return this.customerServiceRequestInput.serviceDefinitionId===l?.id&&!this.customerServiceRequestInput.description}goToNextStep(){switch(this.selectedSection){case K.About:this.aboutValidator()?(this.sectionCheckedList.push(K.About),this.selectedSection=K.Address):this.showErrorPopUp();break;case K.Address:this.sectionCheckedList.push(K.Address),this.selectedSection=K.Price;break;case K.Price:this.customerServiceRequestInput.serviceDefinitionId?(this.sectionCheckedList.push(K.Price),!1===this.customerServiceRequestInput.serviceDefinition?.isCustom?this.isAddPhotosPoUp=!0:this.selectedSection=K.Problem):this.showErrorPopUp();break;case K.Problem:this.problemValidator()?this.showErrorPopUp():(this.sectionCheckedList.push(K.Problem),this.selectedSection=K.Summary)}window.scroll({top:0,left:0,behavior:"smooth"})}addPhoto(){this.selectedSection=K.Problem,this.isAddPhotosPoUp=!1}dontAddPhoto(){this.sectionCheckedList.push(K.Problem),this.selectedSection=K.Summary,this.isAddPhotosPoUp=!1}selectService(l){this.customerServiceRequestInput.serviceDefinitionId=l.id,this.customerServiceRequestInput.serviceDefinition=l,this.customerServiceRequestInput.serviceDefinition.isCustom&&(this.sectionCheckedList=this.sectionCheckedList.filter(g=>g!==K.Problem))}isSectionChecked(l){return!!this.sectionCheckedList.find(g=>g===l)}validNexButton(){let l=!1;switch(this.selectedSection){case K.About:this.aboutValidator()&&(l=!0);break;case K.Price:this.customerServiceRequestInput.serviceDefinitionId&&(l=!0);break;case K.Problem:this.problemValidator()||(l=!0);break;case K.Address:l=!0}return l}goToPrevious(){switch(this.selectedSection){case K.Price:this.selectedSection=K.Address;break;case K.Problem:this.selectedSection=K.Price;break;case K.Address:this.selectedSection=K.About;break;case K.Summary:this.selectedSection=K.Problem}window.scroll({top:0,left:0,behavior:"smooth"})}showErrorPopUp(){this.toastService.showToast("i18n.app.pages.service-request.error",qe.m.Fail)}selectBike(l){this.customerServiceRequestInput.bikeId=l.id,this.customerServiceRequestInput.bikeModel=new w.zZ,this.customerServiceRequestInput.bikeModel.isEBike=l.isEBike,this.customerServiceRequestInput.bikeModel.bikeTypeId=l.bikeTypeId,this.customerServiceRequestInput.bikeModel.brandId=l.brandId,this.customerServiceRequestInput.bikeModel.model=l.model,this.customerServiceRequestInput.bikeModel.brandName=l.brand?.name,this.customerServiceRequestInput.bikeModel.bikeAvatar=l.bikeAvatar,this.customerServiceRequestInput.bikeModel.nickname=l.nickname,this.customBike=!1,this.bike99Selected=!1}ngOnDestroy(){this.subscription.unsubscribe(),this.burgerMenuService.shopUserRole()}static#e=this.\u0275fac=function(g){return new(g||h)(n.rXU(V.Ix),n.rXU(ie.s),n.rXU(Z.u),n.rXU(N.Z),n.rXU(D.J),n.rXU(R.j),n.rXU(Me),n.rXU(j),n.rXU($.o),n.rXU(T.Q),n.rXU(V.nX),n.rXU(pe.m),n.rXU(Y.f),n.rXU(ae.j),n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(z.o),n.rXU(Pe.o),n.rXU(ze.u),n.rXU(we.u),n.rXU(Ae.W))};static#t=this.\u0275cmp=n.VBU({type:h,selectors:[["app-create-service-request"]],viewQuery:function(g,C){if(1&g&&n.GBs(m.z,5),2&g){let y;n.mGM(y=n.lsd())&&(C.dateBox=y.first)}},features:[n.Vt3],decls:34,vars:27,consts:[["uploader",""],["itemTemplate",""],["class","create-request-container",4,"ngIf"],[1,"backdrop",3,"ngClass"],[1,"add-address-container",3,"ngClass"],[1,"input-fields",3,"ngClass"],[1,"address-box"],[1,"label"],[1,"red-star"],[3,"options","countries","searchTermChange",4,"appAddressSearch"],["class","underline",4,"ngIf"],["class","address",4,"ngIf"],[1,"box-input","phone-number"],[1,"selected-country",3,"click"],[1,"selected-flag",3,"src"],[1,"selected-number"],["xmlns","http://www.w3.org/2000/svg","width","10","height","6","viewBox","0 0 10 6","fill","none",3,"ngClass"],["d","M1 1L5 5L9 1","stroke","black"],["mask","(00) 000-00-000","placeholder","___-___-____","type","text","id","phoneInputField",1,"input-field","mobile-number-input",3,"ngModelChange","input","ngModel"],["class","mobile-countries",3,"clickOutside",4,"ngIf"],[1,"options"],[1,"save-button","flex-center","cursor_pointer",3,"click"],[1,"cancel-button","flex-center","cursor_pointer",3,"click"],["class","backdrop",4,"ngIf"],["class","add-photo-modal flex-center",3,"clickOutside",4,"ngIf"],["class","success-request-container",4,"ngIf"],[3,"closePopup","isServicePackageComparisonPopup"],[1,"create-request-container"],[1,"ph
1one-navigation"],[1,"sections-container"],[1,"section",3,"click","ngClass"],[1,"circle"],[1,"section-link",3,"ngClass"],[1,"section","date-link",3,"click","ngClass"],[1,"navigation-container"],[1,"link",3,"click","ngClass"],["class","number",4,"ngIf"],["class","checked-icon",4,"ngIf"],[1,"text","selected-text"],[1,"selected-box"],[1,"text"],[1,"title"],["class","optional",4,"ngIf"],[1,"service-content"],[1,"about-container",3,"ngClass"],[1,"about"],[1,"my-bikes-label-container"],[1,"label-container"],[1,"from-bike"],["href","customer/bikes",1,"label"],["href","customer/bikes",1,"description"],["class","slide-navigation",4,"ngIf"],["class","bikes mt-10",3,"ngStyle",4,"ngIf"],["class","dots",4,"ngIf"],["class","no-bikes",4,"ngIf"],["class","bike-search-container",4,"ngIf"],["class","bike-model",4,"ngIf"],["class","custom-bike-container",4,"ngIf"],["class","add-bike",4,"ngIf"],[1,"price-container",3,"ngClass"],[1,"sub-title"],[1,"services"],["class","service",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"additional-services-underline"],[1,"additional-services-title"],[1,"additional-services","services"],[1,"pick-up-service","service"],[1,"service-title"],[1,"service-type"],[1,"underline"],[1,"description"],[1,"description-item"],[1,"item"],[1,"price-select"],[1,"estimated-price-container"],[1,"estimated-price-label"],[1,"price"],["class","select-button flex-center",3,"ngClass","click",4,"ngIf"],["class","delivery-unavailable",4,"ngIf"],[1,"problem-container",3,"ngClass"],[1,"title-container"],[1,"title-text"],[1,"phone-label"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","viewBox","0 0 22 22","fill","none",1,"symbol-icon"],["clip-path","url(#clip0_2753_1537)"],["d","M22 11C22 4.92487 17.0751 0 11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11Z","fill","#231F20"],["d","M7.20312 8.42693C7.20312 7.9462 7.35747 7.45912 7.66616 6.9657C7.97484 6.47227 8.42524 6.06361 9.01735 5.73971C9.60952 5.41601 10.3003 5.25408 11.0896 5.25391C11.8233 5.25391 12.4711 5.38929 13.0329 5.66005C13.5948 5.93081 14.0288 6.29898 14.3349 6.76456C14.6359 7.21347 14.7959 7.74217 14.7941 8.28269C14.7941 8.71283 14.7067 9.08986 14.532 9.41375C14.3682 9.72324 14.1583 10.0061 13.9096 10.2525C13.6692 10.4879 13.2378 10.8839 12.6154 11.4405C12.4699 11.5707 12.3318 11.7088 12.2017 11.8542C12.1118 11.9534 12.0341 12.0631 11.9702 12.1808C11.9212 12.2753 11.8817 12.3744 11.8526 12.4768C11.8247 12.5755 11.7829 12.7488 11.7273 12.9967C11.6311 13.5231 11.33 13.7863 10.824 13.7862C10.7017 13.7893 10.58 13.7681 10.466 13.7238C10.3519 13.6795 10.2479 13.613 10.1598 13.5281C9.98007 13.3562 9.89025 13.1007 9.8903 12.7614C9.8903 12.3364 9.95608 11.9683 10.0876 11.6572C10.2131 11.3553 10.3904 11.0777 10.6114 10.8369C10.8905 10.5426 11.1844 10.2627 11.4919 9.99813C11.8158 9.71479 12.0498 9.50098 12.1942 9.35669C12.3374 9.21375 12.46 9.05151 12.5584 8.87467C12.6569 8.69843 12.7079 8.49964 12.7064 8.29777C12.7094 8.10451 12.6706 7.91289 12.5927 7.73602C12.5147 7.55915 12.3995 7.40121 12.2548 7.27301C11.9536 6.9948 11.5653 6.85564 11.0896 6.85552C10.5329 6.85552 10.1231 6.99589 9.85997 7.27662C9.59689 7.55735 9.37419 7.97104 9.19189 8.51768C9.01981 9.08988 8.69342 9.37598 8.21272 9.37598C8.07887 9.37866 7.94593 9.35338 7.82241 9.30175C7.69888 9.25012 7.58749 9.17328 7.49536 9.07615C7.30053 8.87617 7.20312 8.65977 7.20312 8.42693ZM10.9075 16.7465C10.6101 16.7507 10.3218 16.6438 10.0991 16.4467C9.86872 16.2468 9.75358 15.9672 9.75366 15.6079C9.75045 15.4579 9.77848 15.3089 9.83597 15.1704C9.89347 15.0319 9.97916 14.9068 10.0876 14.8032C10.1953 14.6965 10.3234 14.6126 10.4643 14.5565C10.6052 14.5004 10.7559 14.4732 10.9075 14.4767C11.0566 14.4745 11.2047 14.5023 11.3429 14.5584C11.4811 14.6145 11.6066 14.6977 11.7121 14.8032C11.8175 14.9087 11.9008 15.0342 11.9568 15.1725C12.0129 15.3107 12.0406 15.4587 12.0384 15.6079C12.0384 15.9622 11.9245 16.2405 11.6968 16.4428C11.4816 16.6404 11.1996 16.7489 10.9075 16.7465Z","fill","white"],["id","clip0_2753_1537"],["width","22","height","22","fill","white"],[1,"problem-pictures"],[1,"problem"],["type","text",1,"problem-input",3,"ngModelChange","placeholder","ngModel"],[1,"pictures-container"],[1,"file-uploader"],["accept","image/*,video/*",1,"file-uploader-custom",3,"adapter","fileMaxSize","fileMaxCount","fileExtensions","itemTemplate","customValidator"],[1,"dropzoneTemplate"],["xmlns","http://www.w3.org/2000/svg","width","12","height","10","viewBox","0 0 12 10","fill","none"],["d","M9.99818 3.69166C9.44357 1.48226 7.20293 0.140795 4.99353 0.695407C3.26693 1.12884 2.01323 2.62111 1.88406 4.39656C0.658104 4.59874 -0.171846 5.75645 0.0303279 6.9824C0.2100
151 8.07229 1.15443 8.87046 2.25902 8.86608H4.13382V8.11616H2.25902C1.43068 8.11616 0.759179 7.44466 0.759179 6.61632C0.759179 5.78799 1.43068 5.11649 2.25902 5.11649C2.46611 5.11649 2.63398 4.94862 2.63398 4.74153C2.6321 2.87777 4.14148 1.36537 6.00524 1.36351C7.6186 1.3619 9.00742 2.50248 9.31951 4.08535C9.35032 4.24339 9.47858 4.36413 9.63822 4.38531C10.6633 4.53129 11.3759 5.48062 11.23 6.50569C11.0989 7.42617 10.313 8.11152 9.38325 8.11616H7.88341V8.86608H9.38325C10.8328 8.8617 12.0044 7.68301 12 6.23342C11.9963 5.02675 11.1704 3.97801 9.99818 3.69166Z","fill","#989898"],["d","M5.74203 5.22623L4.24219 6.72607L4.77088 7.25476L5.63329 6.3961V9.99197H6.38321V6.3961L7.24186 7.25476L7.77056 6.72607L6.27072 5.22623C6.12446 5.08084 5.88828 5.08084 5.74203 5.22623Z","fill","#989898"],[1,"text-container"],[1,"upload-title"],[1,"upload-text","orange"],[1,"upload-text"],[1,"allowed"],["class","uploading-count",4,"ngIf"],[1,"phone-icon"],["xmlns","http://www.w3.org/2000/svg","width","15","height","15","viewBox","0 0 15 15","fill","none"],["d","M14.4969 12.0001H12.9953V10.4986C12.9953 10.3658 12.9426 10.2385 12.8487 10.1446C12.7548 10.0508 12.6275 9.99805 12.4948 9.99805C12.362 9.99805 12.2347 10.0508 12.1409 10.1446C12.047 10.2385 11.9943 10.3658 11.9943 10.4986V12.0001H10.4927C10.36 12.0001 10.2327 12.0529 10.1388 12.1467C10.0449 12.2406 9.99219 12.3679 9.99219 12.5006C9.99219 12.6334 10.0449 12.7607 10.1388 12.8546C10.2327 12.9484 10.36 13.0012 10.4927 13.0012H11.9943V14.5027C11.9943 14.6355 12.047 14.7628 12.1409 14.8566C12.2347 14.9505 12.362 15.0032 12.4948 15.0032C12.6275 15.0032 12.7548 14.9505 12.8487 14.8566C12.9426 14.7628 12.9953 14.6355 12.9953 14.5027V13.0012H14.4969C14.6296 13.0012 14.7569 12.9484 14.8508 12.8546C14.9447 12.7607 14.9974 12.6334 14.9974 12.5006C14.9974 12.3679 14.9447 12.2406 14.8508 12.1467C14.7569 12.0529 14.6296 12.0001 14.4969 12.0001Z","fill","#989898"],["d","M8.49217 12.0002H2.48593C2.35319 12.0002 2.22588 11.9475 2.13201 11.8536C2.03815 11.7597 1.98541 11.6324 1.98541 11.4997V2.49033C1.98541 2.35758 2.03815 2.23027 2.13201 2.13641C2.22588 2.04254 2.35319 1.98981 2.48593 1.98981H11.4953C11.628 1.98981 11.7553 2.04254 11.8492 2.13641C11.9431 2.23027 11.9958 2.35758 11.9958 2.49033V8.49656C11.9958 8.62931 12.0485 8.75662 12.1424 8.85049C12.2363 8.94435 12.3636 8.99708 12.4963 8.99708C12.6291 8.99708 12.7564 8.94435 12.8502 8.85049C12.9441 8.75662 12.9968 8.62931 12.9968 8.49656V2.49033C12.9968 2.09209 12.8386 1.71016 12.5571 1.42857C12.2755 1.14697 11.8935 0.98877 11.4953 0.98877H2.48593C2.0877 0.98877 1.70577 1.14697 1.42417 1.42857C1.14257 1.71016 0.984375 2.09209 0.984375 2.49033V11.4997C0.984375 11.8979 1.14257 12.2798 1.42417 12.5614C1.70577 12.843 2.0877 13.0012 2.48593 13.0012H8.49217C8.62492 13.0012 8.75223 12.9485 8.84609 12.8546C8.93996 12.7608 8.99269 12.6335 8.99269 12.5007C8.99269 12.368 8.93996 12.2407 8.84609 12.1468C8.75223 12.0529 8.62492 12.0002 8.49217 12.0002Z","fill","#989898"],["d","M5.48567 5.49332C6.17675 5.49332 6.73697 4.9331 6.73697 4.24202C6.73697 3.55095 6.17675 2.99072 5.48567 2.99072C4.7946 2.99072 4.23438 3.55095 4.23438 4.24202C4.23438 4.9331 4.7946 5.49332 5.48567 5.49332Z","fill","#989898"],["d","M3.63005 7.13985L2.98438 7.79052V10.9989H10.9927V7.79052L8.84546 5.63829C8.79893 5.59137 8.74357 5.55414 8.68258 5.52873C8.62159 5.50332 8.55617 5.49023 8.49009 5.49023C8.42402 5.49023 8.3586 5.50332 8.2976 5.52873C8.23661 5.55414 8.18125 5.59137 8.13472 5.63829L5.48697 8.29104L4.34078 7.13985C4.29425 7.09293 4.2389 7.0557 4.1779 7.03029C4.11691 7.00488 4.05149 6.99179 3.98541 6.99179C3.91934 6.99179 3.85392 7.00488 3.79293 7.03029C3.73193 7.0557 3.67658 7.09293 3.63005 7.13985Z","fill","#989898"],["class","no-images",4,"ngIf"],["class","cost-cover-container",4,"ngIf"],[1,"address-container",3,"ngClass"],[1,"address-title"],["class","profile-address-container",4,"ngIf"],[1,"address-edit-container",3,"ngClass"],[1,"country-mobile"],[1,"phone-number-container"],["class","red-star",4,"ngIf"],[1,"phone-number","box-input"],["mask","(00) 000-00-00","id","mobile-number","placeholder","__-___-____","type","text",1,"input-field","mobile-number-input",3,"ngModelChange","input","ngModel"],[1,"options-buttons"],[1,"save","flex-center","cursor_pointer",3,"click"],[1,"cancel","cursor_pointer",3,"click"],["class","add-address",3,"click",4,"ngIf"],[1,"date-container",3,"ngClass"],[1,"date-title-container"],[1,"date",3,"click"],["invali
1dDateMessage","The date must have the following format: MM/dd/yyyy","displayFormat","dd.MM.yyyy",3,"ngModelChange","ngModel","ngModelOptions","disabledDates","min"],[1,"summary-container",3,"ngClass"],[1,"summary-container-title"],[1,"bike-information__address"],[1,"bike-information-container"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 42 42","fill","none",4,"ngIf"],["class","bike-image","alt","",3,"src",4,"ngIf"],[1,"bike-information"],["class","nickname",4,"ngIf"],[1,"model"],[1,"brand"],[1,"summary-address-container"],[1,"summary-address-title"],[1,"address"],[1,"services-container"],[1,"services-container-title"],[1,"service"],[1,"service-name"],[1,"name"],[1,"type"],[1,"service-underline"],[1,"price-title"],["class","price",4,"ngIf"],["class","service",4,"ngIf"],["class","summary-problem-container",4,"ngIf"],[1,"pick-up-date"],[1,"date"],[1,"terms-container"],[1,"accept-container"],["id","check",3,"ngModelChange","ngModel"],["href","/terms","target","_blank",1,"terms-link"],[1,"options-container"],["class","back-button flex-center option-button cursor_pointer",3,"click",4,"ngIf"],["class","next-button cursor_pointer flex-center option-button",3,"ngClass","click",4,"ngIf"],["class","submit-button flex-center option-button cursor_pointer",3,"click",4,"ngIf"],[1,"number"],[1,"checked-icon"],["xmlns","http://www.w3.org/2000/svg","width","11","height","8","viewBox","0 0 11 8","fill","none"],["d","M10.6618 1.95645L4.87498 7.66865C4.64328 7.88564 4.35394 8 4.0533 8C3.75266 8 3.46332 7.88564 3.23162 7.66865L0.338222 4.81255C-0.11274
11 4.36684 -0.112741 3.63608 0.338222 3.19038C0.789186 2.74467 1.53062 2.74467 1.98158 3.19038L4.0533 5.24654L9.01842 0.33428C9.46938 -0.111427 10.2108 -0.111427 10.6618 0.33428C11.1127 0.779988 11.1127 1.51075 10.6618 1.95645Z","fill","white"],[1,"optional"],[1,"slide-navigation"],[1,"previous","circle","flex-center","cursor_pointer",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","9","height","14","viewBox","0 0 9 14","fill","none"],["d","M7.99999 12.3016L2 6.65081L7.99999 1","stroke","#FF5E3A","stroke-width","2"],[1,"next","circle","flex-center","cursor_pointer",3,"click","ngClass"],["d","M1.50001 1.3492L7.5 7.00001L1.50001 12.6508","stroke","#FF5E3A","stroke-width","2"],[1,"bikes","mt-10",3,"ngStyle"],["class","bike cursor_pointer",4,"ngFor","ngForOf"],[1,"bike","cursor_pointer"],[1,"picture-container","flex-center"],["class","picture",3,"src",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","42","height","42","viewBox","0 0 42 42","fill","none",4,"ngIf"],[1,"bike-details"],[1,"bike-type"],["class","edit-button-container cursor_pointer",4,"ngIf"],[1,"picture",3,"src"],["xmlns","http://www.w3.org/2000/svg","width","42","height","42","viewBox","0 0 42 42","fill","none"],["d","M40.5 33H36V28.5C36 28.1022 35.842 27.7206 35.5607 27.4393C35.2794 27.158 34.8978 27 34.5 27C34.1022 27 33.7206 27.158 33.4393 27.4393C33.158 27.7206 33 28.1022 33 28.5V33H28.5C28.1022 33 27.7206 33.158 27.4393 33.4393C27.158 33.7206 27 34.1022 27 34.5C27 34.8978 27.158 35.2794 27.4393 35.5607C27.7206 35.842 28.1022 36 28.5 36H33V40.5C33 40.8978 33.158 41.2794 33.4393 41.5607C33.7206 41.842 34.1022 42 34.5 42C34.8978 42 35.2794 41.842 35.5607 41.5607C35.842 41.2794 36 40.8978 36 40.5V36H40.5C40.8978 36 41.2794 35.842 41.5607 35.5607C41.842 35.2794 42 34.8978 42 34.5C42 34.1022 41.842 33.7206 41.5607 33.4393C41.2794 33.158 40.8978 33 40.5 33Z","fill","#989898"],["d","M22.5 33H4.5C4.10218 33 3.72064 32.842 3.43934 32.5607C3.15804 32.2794 3 31.8978 3 31.5V4.5C3 4.10218 3.15804 3.72064 3.43934 3.43934C3.72064 3.15804 4.10218 3 4.5 3H31.5C31.8978 3 32.2794 3.15804 32.5607 3.43934C32.842 3.72064 33 4.10218 33 4.5V22.5C33 22.8978 33.158 23.2794 33.4393 23.5607C33.7206 23.842 34.1022 24 34.5 24C34.8978 24 35.2794 23.842 35.5607 23.5607C35.842 23.2794 36 22.8978 36 22.5V4.5C36 3.30653 35.5259 2.16193 34.682 1.31802C33.8381 0.474106 32.6935 0 31.5 0H4.5C3.30653 0 2.16193 0.474106 1.31802 1.31802C0.474106 2.16193 0 3.30653 0 4.5V31.5C0 32.6935 0.474106 33.8381 1.31802 34.682C2.16193 35.5259 3.30653 36 4.5 36H22.5C22.8978 36 23.2794 35.842 23.5607 35.5607C23.842 35.2794 24 34.8978 24 34.5C24 34.1022 23.842 33.7206 23.5607 33.4393C23.2794 33.158 22.8978 33 22.5 33Z","fill","#989898"],["d","M13.5 13.5C15.5711 13.5 17.25 11.8211 17.25 9.75C17.25 7.67893 15.5711 6 13.5 6C11.4289 6 9.75 7.67893 9.75 9.75C9.75 11.8211 11.4289 13.5 13.5 13.5Z","fill","#989898"],["d","M7.935 18.435L6 20.385V30H30V20.385L23.565 13.935C23.4256 13.7944 23.2597 13.6828 23.0769 13.6067C22.8941 13.5305 22.698 13.4913 22.5 13.4913C22.302 13.4913 22.1059 13.5305 21.9231 13.6067C21.7403 13.6828 21.5744 13.7944 21.435 13.935L13.5 21.885L10.065 18.435C9.92556 18.2944 9.75965 18.1828 9.57687 18.1067C9.39408 18.0305 9.19802 17.9913 9 17.9913C8.80198 17.9913 8.60592 18.0305 8.42313 18.1067C8.24035 18.1828 8.07444 18.2944 7.935 18.435Z","fill","#989898"],[1,"nickname"],[1,"edit-button-container","cursor_pointer"],[1,"edit-button",3,"click"],[1,"edit-button","selected"],[1,"dots"],["class","dot",3,"ngClass",4,"ngFor","ngForOf"],[1,"dot",3,"ngClass"],[1,"no-bikes"],["xmlns","http://www.w3.org/2000/svg","width","59","height","52","viewBox","0 0 59 52","fill","none"],["d","M25.9523 20.3594C25.829 20.9676 26.2222 21.5606 26.8305 21.6838L29.8201 22.2894C31.3262 22.5162 31.6635 20.4065 30.2663 20.0866L27.2767 19.4811C26.6687 19.3579 26.0756 19.7512 25.9523 20.3594Z","fill","#CED3DB"],["d","M56.5783 18.2675C55.2628 17.4034 53.5399 17.6237 52.4827 18.7913C50.8675 20.5722 49.2501 21.6308 47.9291 21.7721C45.3638 22.0461 43.7312 23.9802 43.4202 27.0934C43.4077 27.1325 43.3967 27.1725 43.3884 27.2137L43.0499 28.884C41.571 26.6682 39.3359 24.8381 36.9513 23.9126C38.0838 23.0288 39.0958 21.9376 39.9297 20.6665C41.882 20.9602 43.7495 19.6691 44.1458 17.7123C44.3897 16.508 44.0369 15.3319 43.2841 14.4862C43.1724 9.97842 41.9513 
16.45058 39.6507 3.99567C37.9168 2.14579 35.5639 0.90912 32.657 0.320284C29.7418 -0.270237 27.0862 -0.0433557 24.764 0.994074C21.6745 2.37447 19.1686 5.17863 17.311 9.33228C16.3631 9.83739 15.6453 10.7485 15.4136 11.8926C15.2153 12.871 15.4101 13.868 15.9617 14.6999C16.4781 15.4784 17.2492 16.0252 18.1478 16.2546C18.6914 19.2262 20.1583 21.8158 22.2209 23.6503C19.5889 24.4424 17.1069 26.3706 15.514 28.7991L15.1935 27.2178C14.9139 24.032 13.2727 22.0497 10.6739 21.7721C9.35248 21.6307 7.73521 20.5721 6.12052 18.7919C5.06275 17.6237 3.34007 17.4033 2.02496 18.2671C1.1262 18.8565 0.589844 19.8491 0.589844 20.9222C0.589844 21.3839 0.688845 21.8314 0.883475 22.2516C1.9045 24.4603 4.52482 27.7706 6.74902 29.6976L8.83725 41.311C9.28584 43.9423 11.5475 45.8513 14.2173 45.8513C15.7593 45.8513 17.236 45.1948 18.2691 44.0501L18.6438 43.6348V44.9995V48.9779C18.6438 50.2174 19.6523 51.2258 20.8917 51.2258H24.2375C24.8581 51.2258 25.3613 50.7227 25.3613 50.1021C25.3613 49.4814 24.8581 48.9783 24.2375 48.9783L20.8913 48.9779V44.9995V38.6993C20.8913 38.0787 20.3881 37.5756 19.7676 37.5756C19.147 37.5756 18.6438 38.0787 18.6438 38.6993V40.2802L16.6006 42.5444C15.9929 43.2176 15.1243 43.6039 14.2173 43.6039C12.6457 43.6039 11.3145 42.4791 11.052 40.9295C11.0513 40.9257 11.0508 40.922 11.05 40.9182L8.97715 29.3893L13.2037 28.7162L14.3422 34.3345C14.4655 34.9429 15.0588 35.3358 15.6667 35.2127C16.2749 35.0894 16.6681 34.4965 16.5448 33.8882L16.2559 32.4622C17.1762 29.2622 20.2193 26.4014 23.3153 25.6802C23.4908 27.1365 24.1485 28.4807 25.1856 29.4896C26.3067 30.5801 27.769 31.1808 29.3034 31.1808C32.3389 31.1808 34.828 28.8467 35.204 25.704C36.5742 26.0434 37.9731 26.8077 39.2314 27.9193C40.7182 29.2327 41.8377 30.896 42.3179 32.4969L42.036 33.8881C41.9127 34.4963 42.3059 35.0893 42.9141 35.2126C43.522 35.3357 44.1154 34.9428 44.2386 34.3344L45.3771 28.7161L49.6037 29.3892L47.5306 40.918C47.5298 40.9218 47.5291 40.9255 47.5286 40.9294C47.2662 42.479 45.935 43.6037 44.3634 43.6037C43.4564 43.6037 42.5876 43.2175 41.98 42.5443L39.9369 40.2802V38.6993C39.9369 38.0787 39.4337 37.5756 38.8131 37.5756C38.1926 37.5756 37.6894 38.0787 37.6894 38.6993L37.689 48.9784H34.3317C33.7112 48.9784 33.208 49.4815 33.208 50.1022C33.208 50.7228 33.7112 51.2259 34.3317 51.2259H37.689C38.9284 51.2259 39.9369 50.2175 39.9369 48.978V43.6349L40.3115 44.0501C41.3446 45.1948 42.8215 45.8513 44.3634 45.8513C47.0333 45.8513 49.2949 43.9423 49.7433 41.311L51.8276 29.7197C54.0573 27.7961 56.6938 24.4688 57.7184 22.2526C57.9134 21.8314 58.0124 21.384 58.0124 20.9223C58.0125 19.8491 57.4762 18.8565 56.5783 18.2675ZM7.50967 27.3472C5.68945 25.5859 3.71416 23.0187 2.92316 21.3074C2.86619 21.1846 2.83731 21.055 2.83731 20.9222C2.83731 20.6089 2.99429 20.3189 3.25792 20.146C3.6419 19.8937 4.14499 19.9588 4.45492 20.3011C5.85981 21.8501 8.0376 23.7503 10.4347 24.0069C11.6929 24.1412 12.4914 24.9805 12.82 26.5014L7.50967 27.3472ZM25.6805 3.04601C27.5931 2.19152 29.7286 2.02049 32.2104 2.52291C34.6851 3.02421 36.5823 4.00871 38.0103 5.53249C39.717 7.35338 40.7088 9.96415 40.9719 13.3044C40.9691 13.3047 40.9664 13.3052 40.9636 13.3055C38.9934 13.1081 36.5195 12.3565 34.29 11.2709C31.8581 10.0869 29.9262 8.61197 28.9897 7.22438C28.627 6.6869 28.0486 6.33259 27.4028 6.25213C26.7516 6.17122 26.0978 6.37529 25.6091 6.81208C24.5388 7.7686 22.4414 9.25553 19.9555 9.02044C21.4924 6.06581 23.4131 4.05917 25.6805 3.04601ZM20.2474 15.1146C20.1801 14.5482 19.6998 14.1235 19.1319 14.1235C17.1515 14.1038 17.0832 11.306 18.9856 11.1488C22.6584 11.864 25.6482 9.79155 27.1071 8.48791C27.1157 8.48004 27.1257 8.48206 27.1272 8.48217C29.6317 12.1919 36.4241 15.1868 40.9715 15.5643C41.0969 15.6078 41.3097 15.7129 41.4765 15.8586C41.8595 16.1984 42.0526 16.7251 41.9431 17.2664C41.78 18.0714 40.9923 18.5937 40.1873 18.4307C40.0807 18.4091 39.975 18.3751 39.8734 18.3297C39.3454 18.0939 38.725 18.297 38.4387 18.7993C36.1698 22.7804 31.9343 24.906 27.8986 24.0888C23.863 23.2713 20.7884 19.6649 20.2474 15.1146ZM29.3034 28.9333C27.5124 28.9333 25.9703 27.5666 25.6004 25.7403C26.1957 25.9755 26.8138 26.162 27.4523 26.2913C28.177 26.4381 28.9055 26.5094 29.6309 26.5094C30.7243 26.5093 31.8091 26.3459 32.8579 26.0352C32.4102 27.7327 30.9917 28.9333 29.3034 28.9333ZM55.6788 21.3085C54.8876 23.0199 52.9106 25.5889 51.0893 27.3501L45.7816 26.5048C46.1098 24.9818 46.9086 24.1414 48.1678 24.0069C50.5647 23.7504 52.7425 21.8502 54.1479 20.3006C54.4575 19.9588 54.9605 19.8938 55.345 20.1464C55.608 20.3189 55.765 20.6089 55.765 20.9222C55.7651 21.055 55.7362 21.1846 55.6788 21.3085Z","fill","#CED3DB"],["d","M25.7683 15.14C26.3889 15.14 26.892 14.6369 26.892 14.0163C26.892 13.395
17 26.3889 12.8926 25.7683 12.8926C25.1476 12.8926 24.6445 13.3957 24.6445 14.0163C24.6445 14.6369 25.1476 15.14 25.7683 15.14Z","fill","#CED3DB"],["d","M33.7917 16.765C34.4123 16.765 34.9154 16.2619 34.9154 15.6413C34.9154 15.0207 34.4123 14.5176 33.7917 14.5176C33.1711 14.5176 32.668 15.0207 32.668 15.6413C32.668 16.2619 33.1711 16.765 33.7917 16.765Z","fill","#CED3DB"],["d","M29.2644 51.2255C29.885 51.2255 30.3881 50.7224 30.3881 50.1018C30.3881 49.4811 29.885 48.978 29.2644 48.978C28.6437 48.978 28.1406 49.4811 28.1406 50.1018C28.1406 50.7224 28.6437 51.2255 29.2644 51.2255Z","fill","#CED3DB"],[1,"bike-search-container"],[1,"bike-search-title-container"],["class","bike-search-title",4,"ngIf"],[1,"bike-search-text"],[1,"search-box"],["class","input-field-dx",3,"options","searchTermChange",4,"appBikeSearch"],[1,"bike-search-title"],[1,"input-field-dx",3,"searchTermChange","options"],[1,"bike-model"],[1,"switch-container","custom-bike-switcher"],["type","checkbox","role","switch","name","toggle",1,"toggle",3,"ngModelChange","ngModel"],[1,"custom-bike-text"],["class","input-field-dx",4,"ngIf"],["class","model input-field","type","text",3,"placeholder","ngModel","ngModelChange",4,"ngIf"],[1,"input-field-dx"],["displayExpr","name","valueExpr","id",3,"ngModelChange","placeholder","searchEnabled","ngModel","dataSource"],["type","text",1,"model","input-field",3,"ngModelChange","placeholder","ngModel"],[1,"custom-bike-container"],[1,"year"],["appNumericInput","","class","year input-field","type","number",3,"min","ngModel","placeholder","ngModelChange",4,"ngIf"],["class","e-bike-container",4,"ngIf"],["valueExpr","id","displayExpr","name",3,"ngModelChange","placeholder","searchEnabled","ngModel","dataSource"],["appNumericInput","","type","number",1,"year","input-field",3,"ngModelChange","min","ngModel","placeholder"],[1,"e-bike-container"],[1,"switch-container","e-bike"],[1,"custom-bike-text","label"],["displayExpr","name","valueExpr","id",3,"valueChange","placeholder","searchEnabled","value","dataSource"],[1,"add-bike"],[1,"plus",3,"click"],[1,"service",3,"click","ngClass"],[1,"compare-service-phone",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","10","height","10","viewBox","0 0 10 10","fill","none"],["d","M8.20837 2.45935C8.16886 2.3857 8.12026 2.33444 8.04548 2.30615L5.87718 1.46617C5.88539 1.21548 5.80004 0.962091 5.62055 0.77127C5.25132 0.378071 4.63454 0.409542 4.30516 0.857118L2.14018 0.0185878C2.13999 0.01838 2.13979 0.01838 2.13979 0.01838C1.98814 -0.039282 1.83533 0.0461716 1.77828 0.171161L0.40625 3.07089H1.06229L2.04136 1.00138L3.03235 3.07089H3.68994L2.63861 0.875203L4.11903 1.4487C4.12511 1.8493 4.36557 2.18829 4.70554 2.31634V8.3723C4.70554 8.54441 4.83678 8.6841 4.9985 8.6841C5.16021 8.6841 5.29146 8.54441 5.29146 8.3723V2.31634C5.43417 2.26283 5.56247 2.17071 5.66293 2.04673L7.53671 2.7726L6.30334 5.38028H6.95938L7.94666 3.29289L8.93471 5.38028H9.59075L8.20837 2.45935ZM5.20631 1.65449C5.09166 1.77651 4.90534 1.77651 4.79069 1.65449C4.67605 1.53247 4.67605 1.33417 4.79069 1.21215C4.90534 1.09014 5.09166 1.09014 5.20631 1.21215C5.32113 1.3343
16 5.32132 1.53208 5.20631 1.65449Z","fill","black"],["d","M5.34392 8.07812H4.65404C3.8217 8.07812 3.14453 8.79882 3.14453 9.68468C3.14453 9.85687 3.2757 9.99648 3.43749 9.99648H6.56045C6.72224 9.99648 6.85341 9.85687 6.85341 9.68468C6.85341 8.79882 6.17626 8.07812 5.34392 8.07812Z","fill","black"],["d","M9.7079 6H6.1914C6.02961 6 5.89844 6.1396 5.89844 6.3118C5.89844 7.51557 6.81861 8.49491 7.94965 8.49491C9.08069 8.49491 10.0009 7.51557 10.0009 6.3118C10.0009 6.1396 9.86969 6 9.7079 6Z","fill","black"],["d","M3.81044 3.69531H0.29296C0.131168 3.69531 0 3.83492 0 4.00711C0 5.21117 0.920383 6.19074 2.0517 6.19074C3.18301 6.19074 4.1034 5.21117 4.1034 4.00711C4.1034 3.83492 3.97223 3.69531 3.81044 3.69531Z","fill","black"],["class","compare-service",3,"click",4,"ngIf"],["class","service-underline",4,"ngIf"],["class","estimated-price-container",4,"ngIf"],[1,"select-button","flex-center",3,"click","ngClass"],[4,"ngIf"],["class","dot",4,"ngIf"],[1,"compare-service",3,"click"],["d","M8.21082 2.31033C8.17132 2.24114 8.12274 2.19299 8.04797 2.16641L5.88007 1.37733C5.88828 1.14183 5.80294 0.903795 5.62349 0.724536C5.25433 0.355162 4.63767 0.384726 4.30834 0.805183L2.14377 0.0174616C2.14357 0.0172663 2.14338 0.0172663 2.14338 0.0172663C1.99175 -0.0369018 1.83897 0.0433739 1.78193 0.16079L0.410156 2.88481H1.06607L2.04496 0.940701L3.03576 2.88481H3.69324L2.6421 0.822171L4.12225 1.36092C4.12832 1.73725 4.36874 2.0557 4.70865 2.17598V7.86499C4.70865 8.02668 4.83987 8.1579 5.00155 8.1579C5.16324 8.1579 5.29446 8.02668 5.29446 7.86499V2.17598C5.43714 2.12572 5.56542 2.03918 5.66586 1.92272L7.53929 2.6046L6.30615 5.05427H6.96207L7.94916 3.09336L8.93703 5.05427H9.59295L8.21082 2.31033ZM5.20932 1.55424C5.0947 1.66886 4.90841 1.66886 4.79378 1.55424C4.67916 1.43962 4.67916 1.25333 4.79378 1.1387C4.90841 1.02408 5.0947 1.02408 5.20932 1.1387C5.32412 1.2535 5.32432 1.43925 5.20932 1.55424Z","fill","black"],["d","M5.34351 7.59375H4.65376C3.82157 7.59375 3.14453 8.27077 3.14453 9.10296C3.14453 9.26472 3.27567 9.39586 3.43744 9.39586H6.55981C6.72158 9.39586 6.85272 9.26472 6.85272 9.10296C6.85272 8.27077 6.1757 7.59375 5.34351 7.59375Z","fill","black"],["d","M9.70719 5.64062H6.19134C6.02958 5.64062 5.89844 5.77177 5.89844 5.93353C5.89844 7.06436 6.81844 7.98436 7.94927 7.98436C9.0801 7.98436 10.0001 7.06436 10.0001 5.93353C10.0001 5.77177 9.86895 5.64062 9.70719 5.64062Z","fill","black"],["d","M3.80973 3.46875H0.292906C0.131144 3.46875 0 3.59989 0 3.76166C0 4.89276 0.920212 5.81297 2.05132 5.81297C3.18242 5.81297 4.10263 4.89276 4.10263 3.76166C4.10263 3.59989 3.97149 3.46875 3.80973 3.46875Z","fill","black"],[1,"fee"],[1,"dot"],[1,"delivery-unavailable"],["xmlns","http://www.w3.org/2000/svg","width","25","height","25","viewBox","0 0 25 25","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5 25C19.4036 25 25 19.4036 25 12.5C25 5.59644 19.4036 0 12.5 0C5.59644 0 0 5.59644 0 12.5C0 19.4036 5.59644 25 12.5 25ZM13.7599 5.77718H11.2197L11.6229 14.5467H13.3768L13.7599 5.77718ZM11.381 18.861C11.6901 19.1566 12.0665 19.3045 12.51 19.3045C12.9535 19.3045 13.3231 19.1566 13.6188 18.861C13.9144 18.5653 14.0623 18.1957 14.0623 17.7522C14.0623 17.2952 13.9144 16.9189 13.6188 16.6232C13.3231 16.3275 12.9535 16.1797 12.51 16.1797C12.0665 16.1797 11.6901 16.3275 11.381 16.6232C11.0853 16.9189 10.9375 17.2952 10.9375 17.7522C10.9375 18.1957 11.0853 18.5653 11.381 18.861Z","fill","#DC5A54"],[1,"uploading-count"],["class","uploaded-media",3,"src",4,"ngIf"],["class","uploaded-media","controls","",3,"src",4,"ngIf"],[1,"delete-icon","flex-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","11","height","14","viewBox","0 0 11 14","fill","none",1,"delete-svg"],["d","M9.94231 1.69231H7.61538V1.26923C7.61538 0.568245 7.04714 0 6.34615 0H4.65385C3.95286 0 3.38462 0.568245 3.38462 1.26923V1.69231H1.05769C0.473555 1.69231 0 2.16586 0 2.75V3.59615C0 3.82982 0.189406 4.01923 0.423077 4.01923H10.5769C10.8106 4.01923 11 3.82982 11 3.59615V2.75C11 2.16586 10.5264 1.69231 9.94231 1.69231ZM4.23077 1.26923C4.23077 1.03601 4.42063 0.846154 4.65385 0.846154H6.34615C6.57938 0.846154 6.76923 1.03601 6.76923 1.26923V1.69231H4.23077V1.26923Z","fill","black"],["d","M0.804081 4.86523C0.728588 4.86523 0.668432 4.92833 0.672028 5.00374L1.02107 12.3294C1.05333 13.0073 1.6102 13.5383 2.28871 13.5383H8.71366C9.39217 13.5383 9.94905 13.0073 9.98131 12.3294L10.3303 5.00374C10.3339 4.92833 10.2738 4.86523 10.1983 4.86523H0.804081Z
1M7.19349 5.92293C7.19349 5.68918 7.38282 5.49985 7.61657 5.49985C7.85032 5.49985 8.03965 5.68918 8.03965 5.92293V11.4229C8.03965 11.6567 7.85032 11.846 7.61657 11.846C7.38282 11.846 7.19349 11.6567 7.19349 11.4229V5.92293ZM5.07811 5.92293C5.07811 5.68918 5.26744 5.49985 5.50119 5.49985C5.73494 5.49985 5.92426 5.68918 5.92426 5.92293V11.4229C5.92426 11.6567 5.73494 11.846 5.50119 11.846C5.26744 11.846 5.07811 11.6567 5.07811 11.4229V5.92293ZM2.96273 5.92293C2.96273 5.68918 3.15205 5.49985 3.3858 5.49985C3.61955 5.49985 3.80888 5.68918 3.80888 5.92293V11.4229C3.80888 11.6567 3.61955 11.846 3.3858 11.846C3.15205 11.846 2.96273 11.6567 2.96273 11.4229V5.92293Z","fill","black"],[1,"uploaded-media",3,"src"],["controls","",1,"uploaded-media",3,"src"],[1,"no-images"],[1,"cost-cover-container"],[1,"cost-cover-input"],[1,"currency"],["type","number","appNumericInput","","placeholder","___",3,"ngModelChange","min","ngModel"],[1,"profile-address-container"],["type","checkbox","role","switch","name","toggle",1,"toggle",3,"click","checked"],[1,"edit-phone",3,"click"],[1,"profile-address"],["class","edit-icon flex-center cursor_pointer",3,"click",4,"ngIf"],[1,"edit-icon","flex-center","cursor_pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none"],["d","M9.72464 5.20199C9.53053 5.20199 9.37315 5.35936 9.37315 5.55348V10.7087C9.37315 11.0317 9.11035 11.2945 8.78733 11.2945H1.28881C0.965786 11.2945 0.702986 11.0317 0.702986 10.7087V3.21019C0.702986 2.88717 0.965786 2.62437 1.28881 2.62437H6.44404C6.63816 2.62437 6.79553 2.467 6.79553 2.27288C6.79553 2.07876 6.63816 1.92139 6.44404 1.92139H1.28881C0.578159 1.92139 0 2.49955 0 3.21019V10.7087C0 11.4194 0.578159 11.9975 1.28881 11.9975H8.78733C9.49798 11.9975 10.0761 11.4194 10.0761 10.7087V5.55348C10.0761 5.35936 9.91876 5.20199 9.72464 5.20199Z","fill","black"],["d","M11.7624 0.902623L11.0996 0.239824C10.7799 -0.0799413 10.2595 -0.0799413 9.93973 0.239824L4.63751 5.54208C4.58844 5.59114 4.555 5.65364 4.54136 5.72169L4.20995 7.37865C4.18692 7.49389 4.22298 7.61303 4.3061 7.69612C4.37267 7.76269 4.46235 7.79908 4.55462 7.79908C4.57757 7.79908 4.60062 7.79683 4.62354 7.79226L6.2805 7.46085C6.34855 7.44724 6.41105 7.41378 6.46012 7.36471L11.7624 2.06248C11.7624 2.06248 11.7624 2.06248 11.7624 2.06246C12.0822 1.74272 12.0822 1.22241 11.7624 0.902623ZM6.0383 6.79238L5.00271 6.99953L5.20986 5.96394L9.52549 1.64823L10.354 2.47673L6.0383 6.79238ZM11.2653 1.5654L10.8511 1.97964L10.0226 1.15115L10.4368 0.736929C10.4825 0.691235 10.5568 0.691211 10.6025 0.736905L11.2653 1.3997C11.311 1.44538 11.311 1.51973 11.2653 1.5654Z","fill","black"],[1,"delete-icon","edit-icon","flex-center","cursor_pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","10","height","12","viewBox","0 0 10 12","fill","none"],["d","M9.0626 1.50002H7.00008V1.12501C7.00008 0.503677 6.4964 0 5.87506 0H4.37505C3.75371 0 3.25003 0.503677 3.25003 1.12501V1.50002H1.18751C0.669747 1.50002 0.25 1.91976 0.25 2.43753V3.18754C0.25 3.39466 0.417885 3.56254 0.625004 3.56254H9.6251C9.83222 3.56254 10.0001 3.39466 10.0001 3.18754V2.43753C10.0001 1.91976 9.58036 1.50002 9.0626 1.50002ZM4.00004 1.12501C4.00004 0.918292 4.16832 0.750008 4.37505 0.750008H5.87506C6.08178 0.750008 6.25007 0.918292 6.25007 1.12501V1.50002H4.00004V1.12501Z","fill","#DC5A54"],["d","M0.960934 4.31244C0.894019 4.31244 0.840698 4.36836 0.843886 4.43521L1.15326 10.9285C1.18186 11.5294 1.67546 12 2.27687 12H7.97178C8.57319 12 9.06679 11.5294 9.09539 10.9285L9.40476 4.43521C9.40795 4.36836 9.35463 4.31244 9.28771 4.31244H0.960934ZM6.62434 5.24995C6.62434 5.04276 6.79216 4.87495 6.99935 4.87495C7.20654 4.87495 7.37435 5.04276 7.37435 5.24995V10.125C7.37435 10.3322 7.20654 10.5 6.99935 10.5C6.79216 10.5 6.62434 10.3322 6.62434 10.125V5.24995ZM4.74932 5.24995C4.74932 5.04276 4.91713 4.87495 5.12432 4.87495C5.33151 4.87495 5.49933 5.04276 5.49933 5.24995V10.125C5.49933 10.3322 5.33151 10.5 5.12432 10.5C4.91713 10.5 4.74932 10.3322 4.74932 10.125V5.24995ZM2.8743 5.24995C2.8743 5.04276 3.04211 4.87495 3.2493 4.87495C3.45649 4.87495 3.62431 5.04276 3.62431 5.24995V10.125C3.62431 10.3322 3.45649 10.5 3.2493 10.5C3.04211 10.5 2.8743 10.3322 2.8743 10.125V5.24995Z","fill","#DC5A54"],[3,"searchTermChange","options","countries"],["xmlns","http://www.w3.org/2000/svg","width","12","height","15","viewBox","0 0 12 15","fill","none"],["d","M5.90425 0C2.78425 0 0.246094 2.53816 0.246094 5.65776C0.246094 10.1495 5.29715 14.6617 5.51228 14.852
1C5.62478 14.9507 5.76451 15 5.90425 15C6.04951 15 6.19478 14.9467 6.30807 14.8405C6.52241 14.64 11.5624 9.87947 11.5624 5.65816C11.5624 2.53855 9.02346 0 5.90425 0ZM5.90425 8.35579C4.41412 8.35579 3.20662 7.1475 3.20662 5.65855C3.20662 4.16961 4.41412 2.96132 5.90425 2.96132C7.39359 2.96132 8.60109 4.16921 8.60109 5.65855C8.60109 7.14789 7.39359 8.35579 5.90425 8.35579Z","fill","#989898"],[1,"address-value"],[1,"mobile-countries",3,"clickOutside"],["class","mobile-country cursor_pointer",3,"click",4,"ngFor","ngForOf"],[1,"mobile-country","cursor_pointer",3,"click"],[1,"flag",3,"src"],[1,"add-address",3,"click"],[1,"plus"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 42 42","fill","none"],["alt","",1,"bike-image",3,"src"],[1,"summary-problem-container"],[1,"images"],["class","image-container",4,"ngFor","ngForOf"],["class","show-all",3,"click",4,"ngIf"],[1,"image-container"],["class","image",3,"src",4,"ngIf"],["class","image","controls","",3,"src",4,"ngIf"],[1,"image",3,"src"],["controls","",1,"image",3,"src"],[1,"show-all",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","17","viewBox","0 0 17 17","fill","none"],["clip-path","url(#clip0_3347_1187)"],["d","M15.5573 4.38009H15.4115C15.3261 3.64885 14.7377 3.06909 14.0023 2.99814C13.9179 2.20982 13.2491 1.59375 12.4389 1.59375H2.40426C1.06134 1.59375 -0.03125 2.68634 -0.03125 4.02913V11.065C-0.03125 11.8809 0.593126 12.5534 1.38896 12.6303C1.47249 13.4102 2.12812 14.0211 2.92669 14.0339C2.92876 14.1723 2.95042 14.3059 2.98972 14.432C3.16858 15.0062 3.70528 15.4242 4.33756 15.4242H15.5573C16.3356 15.4242 16.9688 14.791 16.9688 14.0128V5.79162C16.9688 5.01329 16.3356 4.38009 15.5573 4.38009ZM16.3047 5.79162V11.2283L14.8604 10.1372C14.4657 9.83917 13.932 9.8345 13.5323 10.1257L11.7052 11.4569L8.22091 7.86474C7.80587 7.43673 7.13052 7.4104 6.68345 7.80495L3.59023 10.534V5.79162C3.59023 5.37943 3.92551 5.04416 4.33756 5.04416H15.5573C15.9694 5.04416 16.3047 5.37943 16.3047 5.79162ZM16.3047 14.0127C16.3047 14.4248 15.9694 14.7601 15.5574 14.7601H4.33756C4.00281 14.7601 3.71864 14.5387 3.62395 14.2347C3.60204 14.1645 3.59023 14.09 3.59023 14.0128V11.4194L7.12287 8.30287C7.30354 8.14334 7.57643 8.15397 7.74426 8.32699L9.31675 9.94824C9.31675 9.94837 9.31675 9.94837 9.31688 9.94837L12.4467 13.1752C12.5118 13.2424 12.5983 13.2761 12.6851 13.2761C12.7683 13.2761 12.8517 13.245 12.9162 13.1824C13.0477 13.0547 13.0509 12.8446 12.9233 12.7129L12.1721 11.9384L13.9233 10.6625C14.0849 10.5447 14.3006 10.5465 14.4601 10.667L16.3047 12.0604V14.0127ZM2.04395 12.4618V4.62224C2.04395 4.58891 2.04564 4.55584 2.04901 4.52341C2.09855 4.03613 2.51139 3.65468 3.01151 3.65468H7.07294C7.25633 3.65468 7.40497 3.50605 7.40497 3.32265C7.40497 3.13925 7.25633 2.99062 7.07294 2.99062H3.01151C2.11178 2.99062 1.37989 3.72252 1.37989 4.62224V11.9594C0.955637 11.883 0.632814 11.511 0.632814 11.065V4.02913C0.632814 3.05249 1.42749 2.25781 2.40426 2.25781H12.4389C12.8796 2.25781 13.2481 2.57337 13.3302 2.99062H9.72919C9.5458 2.99062 9.39716 3.13925 9.39716 3.32265C9.39716 3.50605 9.5458 3.65468 9.72919 3.65468H13.6793H13.6797H13.85C14.2881 3.65468 14.6549 3.96661 14.7399 4.38009H4.33756C3.55936 4.38009 2.92617 5.01329 2.92617 5.79162V11.2694V11.2696V13.3699C2.43733 13.356 2.04395 12.954 2.04395 12.4618Z","fill","#989898"],["d","M12.8663 6.39551C12.0827 6.39551 11.4453 7.03298 11.4453 7.81637C11.4453 8.59989 12.0828 9.23736 12.8663 9.23736C13.6497 9.23736 14.2872 8.59989 14.2872 7.81637C14.2872 7.03298 13.6497 6.39551 12.8663 6.39551ZM12.8663 8.5733C12.4489 8.5733 12.1094 8.23375 12.1094 7.8165C12.1094 7.39913 12.4489 7.05957 12.8663 7.05957C13.2835 7.05957 13.6231 7.39913 13.6231 7.8165C13.6231 8.23375 13.2835 8.5733 12.8663 8.5733Z","fill","#989898"],["d","M8.09196 3.44976C8.10026 3.46974 8.1105 3.48893 8.12244 3.50696C8.1345 3.52512 8.14838 3.54211 8.16368 3.55741C8.17899 3.57259 8.19585 3.5866 8.21413 3.59892C8.23203 3.61085 8.25162 3.6211 8.27159 3.6294C8.29144 3.6377 8.31245 3.64405 8.33372 3.64833C8.35486 3.65261 8.37678 3.65469 8.39844 3.65469C8.42036 3.65469 8.44189 3.65261 8.46355 3.64833C8.48469 3.64405 8.50531 3.6377 8.52554 3.6294C8.54552 3.6211 8.56471 3.61085 8.58274 3.59892C8.6009 3.5866 8.61789 3.57259 8.6332 3.55741C8.64876 3.54211 8.66238 3.52512 8.6747 3.50696C8.68663 3.48893 8.69688 3.46974 8.70518 3.44976C8.71348 3.42953 8.71983 3.40865 8.72411 3.38777C8.72839 3.36611 8.73047 3.34419 8.73047 3.32266C8.73047 3.301 8.72839 3.27908 8.72411 3.25794C8.71983 3.23667 8.71348 3.21565 8.70518 3.19581C8.69688 3.17558 8.68663 3.15625 8.6747 3.13835C8.66238 3.12007 8.64876 3.1032 8.6332 3.0879C8.61789 3.0726 8.6009 3.05872 8.58274 3.04666C8.56471 3.03472 8.54552 3.02448 8.52554 3.01618C8.50531 3.00788 8.48469 3.001
152 8.46355 2.99724C8.42062 2.98855 8.37652 2.98855 8.33372 2.99724C8.31245 3.00152 8.29144 3.00788 8.27159 3.01618C8.25162 3.02448 8.23203 3.03472 8.21413 3.04666C8.19585 3.05872 8.17899 3.0726 8.16368 3.0879C8.14838 3.1032 8.1345 3.12007 8.12244 3.13835C8.1105 3.15625 8.10026 3.17558 8.09196 3.19581C8.08366 3.21565 8.0773 3.23667 8.07302 3.25794C8.06874 3.27908 8.06641 3.301 8.06641 3.32266C8.06641 3.34419 8.06874 3.36611 8.07302 3.38777C8.0773 3.40865 8.08366 3.42953 8.09196 3.44976Z","fill","#989898"],["id","clip0_3347_1187"],["width","17","height","17","fill","white"],[1,"back-button","flex-center","option-button","cursor_pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","12","viewBox","0 0 16 12","fill","none",1,"icon"],["d","M0.46967 5.46967C0.176777 5.76256 0.176777 6.23744 0.46967 6.53033L5.24264 11.3033C5.53553 11.5962 6.01041 11.5962 6.3033 11.3033C6.59619 11.0104 6.59619 10.5355 6.3033 10.2426L2.06066 6L6.3033 1.75736C6.59619 1.46447 6.59619 0.989592 6.3033 0.696698C6.01041 0.403805 5.53553 0.403805 5.24264 0.696698L0.46967 5.46967ZM16 5.25L1 5.25L1 6.75L16 6.75L16 5.25Z","fill","#989898"],[1,"button-text"],[1,"next-button","cursor_pointer","flex-center","option-button",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","16","height","12","viewBox","0 0 16 12","fill","none",1,"icon-un-active","icon"],["d","M15.5303 6.53033C15.8232 6.23744 15.8232 5.76256 15.5303 5.46967L10.7574 0.696699C10.4645 0.403806 9.98959 0.403806 9.6967 0.696699C9.40381 0.989593 9.40381 1.46447 9.6967 1.75736L13.9393 6L9.6967 10.2426C9.40381 10.5355 9.40381 11.0104 9.6967 11.3033C9.98959 11.5962 10.4645 11.5962 10.7574 11.3033L15.5303 6.53033ZM0 6.75H15V5.25H0V6.75Z","fill","#989898"],["xmlns","http://www.w3.org/2000/svg","width","16","height","12","viewBox","0 0 16 12","fill","none",1,"icon-active","icon","option-button"],["d","M15.5303 6.53033C15.8232 6.23744 15.8232 5.76256 15.5303 5.46967L10.7574 0.696699C10.4645 0.403806 9.98959 0.403806 9.6967 0.696699C9.40381 0.989593 9.40381 1.46447 9.6967 1.75736L13.9393 6L9.6967 10.2426C9.40381 10.5355 9.40381 11.0104 9.6967 11.3033C9.98959 11.5962 10.4645 11.5962 10.7574 11.3033L15.5303 6.53033ZM0 6.75H15V5.25H0V6.75Z","fill","white"],[1,"submit-button","flex-center","option-button","cursor_pointer",3,"click"],[1,"backdrop"],[1,"add-photo-modal","flex-center",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","49","height","49","viewBox","0 0 49 49","fill","none"],["opacity","0.2","cx","24.5","cy","24.5","r","24.5","fill","#FF5E3A"],["d","M35.2865 32.7184H33.1448V30.5767C33.1448 30.3874 33.0695 30.2058 32.9357 30.0719C32.8018 29.938 32.6202 29.8628 32.4309 29.8628C32.2415 29.8628 32.0599 29.938 31.926 30.0719C31.7922 30.2058 31.717 30.3874 31.717 30.5767V32.7184H29.5752C29.3859 32.7184 29.2043 32.7936 29.0704 32.9275C28.9365 33.0614 28.8613 33.243 28.8613 33.4323C28.8613 33.6217 28.9365 33.8032 29.0704 33.9371C29.2043 34.071 29.3859 34.1462 29.5752 34.1462H31.717V36.2879C31.717 36.4773 31.7922 36.6589 31.926 36.7928C32.0599 36.9266 32.2415 37.0019 32.4309 37.0019C32.6202 37.0019 32.8018 36.9266 32.9357 36.7928C33.0695 36.6589 33.1448 36.4773 33.1448 36.2879V34.1462H35.2865C35.4758 34.1462 35.6574 34.071 35.7913 33.9371C35.9252 33.8032 36.0004 33.6217 36.0004 33.4323C36.0004 33.243 35.9252 33.0614 35.7913 32.9275C35.6574 32.7936 35.4758 32.7184 35.2865 32.7184Z","fill","#FF5E3A"],["d","M26.7223 32.7186H18.1554C17.966 32.7186 17.7845 32.6434 17.6506 32.5095C17.5167 32.3756 17.4415 32.1941 17.4415 32.0047V19.1544C17.4415 18.9651 17.5167 18.7835 17.6506 18.6496C17.7845 18.5157 17.966 18.4405 18.1554 18.4405H31.0057C31.195 18.4405 31.3766 18.5157 31.5105 18.6496C31.6444 18.7835 31.7196 18.9651 31.7196 19.1544V27.7213C31.7196 27.9106 31.7948 28.0922 31.9287 28.2261C32.0626 28.36 32.2442 28.4352 32.4335 28.4352C32.6228 28.4352 32.8044 28.36 32.9383 28.2261C33.0722 28.0922 33.1474 27.9106 33.1474 27.7213V19.1544C33.1474 18.5864 32.9218 18.0416 32.5201 17.64C32.1185 17.2383 31.5737 17.0127 31.0057 17.0127H18.1554C17.5874 17.0127 17.0426 17.2383 16.641 17.64C16.2393 18.0416 16.0137 18.5864 16.0137 19.1544V32.0047C16.0137 32.5727 16.2393 33.1175 16.641 33.5191C17.0426 33.9208 17.5874 34.1464 18.1554 34.1464H26.7223C26.9116 34.1464 27.0932 34.0712 27.2271 33.9373C27.361 33.8035 27.4362 33.6219 27.4362 33.4325C27.4362 33.2432 27.361 33.0616 27.2271 32.9277C27.0932 32.7938 26.9116 32.7186 26.7223 32.7186Z","fill","#FF5E3A"],["d","M22.4391 23.4377C23.4248 23.4377 24.2238 22.6386 24.2238 21.6529C24.2238 20.6672 23.4248 19.8682 22.4391 19.8682C21.4534 19.8682 20.6543 20.6672 20.6543 21.6529C20.6543 22.6386 21.4534 23.4377 22.4391 23.4377Z","fill","#FF5E3A"],["d","M19.7881 25.786L18.8672 26.7141V31.2902H30.2897V26.7141L27.227 23.6443C27.1607 23.5774 27.0817 23.5243 26.9947 23.488C26.9077 23.4518 26.8144 23.4331 26.7202 23.4331C26.6259 23.4331 26.5326 23.4518 26.4456 23.488C26.3586 23.5243 26.2796 23.5774 26.2133 23.6443L22.4367 27.428L20.8019 25.786C20.7355 25.7191 20.6565 25.666 20.5696 25.6297C20.4826 25.5935 20.3892 25.5748 20.295 25.5748C20.2008 25.5748 20.1074 25.5935 20.0204 25.6297C19.9335 25.666 19.8545 25.7191 19.7881 25.786Z","fill","#FF5E3A"],[1,"add-photo","flex-center","cursor_pointer",3,"click"],[1,"dont-add-photo","cursor_pointer",3,"click"],[1,"success-request-container"],[1,"back-navigation",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","8","viewBox","0 0 17 8","fill","none",1,"phone-icon"],["d","M0.646446 3.64645C0.451183 3.84171 0.451183 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.73079 7.34027 4.73079 7.02369 4.53553 6.82843L1.70711 4L4.535
153 1.17157C4.73079 0.976311 4.73079 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM17 3.5L1 3.5V4.5L17 4.5V3.5Z","fill","#989898"],[1,"success-request"],[1,"success-request-text"],[1,"success-request-title"],[1,"success-description","flex-center"],[1,"go-to-services","flex-center","cursor_pointer",3,"click"],["src","assets/images/success-submitted-csr-phone.svg",1,"phone"],["src","assets/images/success-submitted-csr.svg",1,"pc"]],template:function(g,C){1&g&&(n.DNE(0,Ht,295,244,"div",2),n.nrm(1,"div",3),n.j41(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),n.EFF(6),n.nI1(7,"translate"),n.j41(8,"div",8),n.EFF(9,"*"),n.k0s()(),n.DNE(10,Dn,1,2,"app-address-search",9),n.k0s(),n.DNE(11,hr,1,0,"div",10)(12,_r,13,7,"div",11)(13,vr,1,0,"div",10),n.j41(14,"div",12)(15,"div",13),n.bIt("click",function(){return C.selectCountryPopUp=!C.selectCountryPopUp}),n.nrm(16,"img",14),n.j41(17,"div",15),n.EFF(18),n.k0s(),n.qSk(),n.j41(19,"svg",16),n.nrm(20,"path",17),n.k0s()(),n.joV(),n.j41(21,"input",18),n.mxI("ngModelChange",function(Q){return n.DH7(C.addressEdit.mobilePhone,Q)||(C.addressEdit.mobilePhone=Q),Q}),n.bIt("input",function(){return C.removeLeadingZero()}),n.k0s(),n.DNE(22,Cr,2,1,"div",19),n.k0s(),n.j41(23,"div",20)(24,"div",21),n.bIt("click",function(){return C.updateCustomAddress()}),n.EFF(25),n.nI1(26,"translate"),n.k0s(),n.j41(27,"div",22),n.bIt("click",function(){return C.closeEditAddress()}),n.EFF(28),n.nI1(29,"translate"),n.k0s()()()(),n.DNE(30,Ce,1,0,"div",23)(31,ut,19,12,"div",24)(32,X,25,15,"div",25),n.j41(33,"app-service-package-comparison",26),n.bIt("closePopup",function(){return C.isServicePackageComparisonPopup=!1}),n.k0s()),2&g&&(n.Y8G("ngIf",!C.successRequest),n.R7$(),n.Y8G("ngClass",C.addressEdit.countryId&&C.window.innerWidth<=580?"show":"hide"),n.R7$(),n.Y8G("ngClass",C.addressEdit.countryId&&C.window.innerWidth<=580?"show":"hide"),n.R7$(),n.Y8G("ngClass",C.addressEdit.countryId&&C.window.innerWidth<=580?"show":"hide"),n.R7$(3),n.JRh(n.bMT(7,19,"i18n.app.pages.service-request.navigation.address")),n.R7$(5),n.Y8G("ngIf",C.addressEdit.zipcode),n.R7$(),n.Y8G("ngIf",C.addressEdit.zipcode),n.R7$(),n.Y8G("ngIf",C.addressEdit.zipcode),n.R7$(3),n.FS9("src",null==C.addressEdit.mobilePhoneCountry?null:C.addressEdit.mobilePhoneCountry.flagImage,n.B4B),n.R7$(2),n.SpI("+",null==C.addressEdit.mobilePhoneCountry?null:C.addressEdit.mobilePhoneCountry.numberCode,""),n.R7$(),n.Y8G("ngClass",n.eq3(25,ke,C.selectCountryPopUp)),n.R7$(2),n.R50("ngModel",C.addressEdit.mobilePhone),n.R7$(),n.Y8G("ngIf",C.selectCountryPopUp),n.R7$(3),n.JRh(n.bMT(26,21,"i18n.app.pages.offered.button.save")),n.R7$(3),n.JRh(n.bMT(29,23,"i18n.app.pages.customer.bikes.cancel")),n.R7$(2),n.Y8G("ngIf",C.isAddPhotosPoUp),n.R7$(),n.Y8G("ngIf",C.isAddPhotosPoUp),n.R7$(),n.Y8G("ngIf",C.successRequest),n.R7$(),n.Y8G("isServicePackageComparisonPopup",C.isServicePackageComparisonPopup))},dependencies:[M.YU,M.Sq,M.bT,M.B3,Ot.Zr,Te.me,Te.Q0,Te.Zm,Te.BC,Te.VZ,Te.vS,lt.z,Et.n,En.T,Co.O,an.O,Re.A,mo.N,xt.F,Ie.l,m.z,k.mu,De.z,it.D9,ln.g,fe],styles:['.create-request-container[_ngcontent-%COMP%]{display:flex;padding:0 32px 50px;min-height:100svh;width:100%;column-gap:35px}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]{display:none;justify-content:center;margin-top:24px;flex-direction:column;align-items:center}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]{max-width:320px;width:100%;display:flex;justify-content:space-between}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:33px;width:20px}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]{width:11px;height:11px;border-radius:50%}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]:after{margin-top:5px;display:flex;content:"";width:80px}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .selected-section[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{background:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .selected-section[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]:after{border-bottom:1px solid #FF5E3A}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .un-selected-section[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{background:#989898}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .un-selected-section[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]:after{border-bottom:1px solid #989898}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .checked-text[_ngcontent-%COMP%]{color:#ff5e3a;font-size:10px}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .un-checked-text[_ngcontent-%COMP%]{color:#989898;font-size:10px}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .selected-text[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:500;color:#000}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .sections-container[_ngcontent-%COMP%]   .date-link[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]:after{display:none}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]   .circles-container[_ngcontent-%COMP%]{display:flex;align-items:center}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]{border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;height:-moz-fit-content;height:fit-content}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{cursor:pointer;position:relative;width:256px;height:70px;display:flex;align-items:center;padding:0 21px;column-gap:19px;border-bottom:1px solid #F6F4F3}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]:last-child{border-bottom:unset}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:50%;font-size:17px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .checked-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:var(--color-theme);width:31px;height:31px;border-radius:50%}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:20px;display:flex;flex-direction:column;justify-content:center}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{color:#989898;font-size:13px}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .selected-box[_ngcontent-%COMP%]{position:absolute;top:9px;left:0;width:4px;height:52px;flex-shrink:0;border-radius:0 3px 3px 0;background:#ff5e3a}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:var(--color-theme);color:var(--color-white)}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .selected-box[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .un-selected[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#ececec}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .un-selected[_ngcontent-%COMP%]   .selected-box[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]{width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]{flex-direction:column;border-radius:10px;background:#fff}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:82px;border-bottom:1px solid #CED3DB;font-size:20px;font-weight:500;display:flex;align-items:center;padding-left:42px;padding-right:32px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]{padding:35px 42px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:661px;flex-wrap:wrap;row-gap:15px;column-gap:20px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .bike-search-title-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .bike-search-title-container[_ngcontent-%COMP%]   .bike-search-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .bike-search-title-container[_ngcontent-%COMP%]   .bike-search-text[_ngcontent-%COMP%]{color:#989898;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .search-box[_ngcontent-%COMP%]{max-width:321px;width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]{margin-top:45px;display:flex;justify-content:space-between;flex-wrap:wrap;row-gap:14px;max-width:661px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]   .custom-bike-switcher[_ngcontent-%COMP%]   .custom-bike-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]   .bike-year-label[_ngcontent-%COMP%]{margin-top:174px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .custom-bike-container[_ngcontent-%COMP%]{margin-top:15px;max-width:661px;display:flex;flex-direction:column;row-gap:15px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .custom-bike-container[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;row-gap:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .custom-bike-container[_ngcontent-%COMP%]   .e-bike-container[_ngcontent-%COMP%]{row-gap:12px;flex-wrap:wrap;display:flex;align-items:center;justify-content:space-between}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .add-bike[_ngcontent-%COMP%]{display:flex;margin-top:30px;margin-bottom:20px;align-items:center;flex-direction:column;row-gap:5px;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .add-bike[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;align-items:center;width:35px;height:35px;font-size:18px;border-radius:50%;box-shadow:3px 3px 16.9px #bebebe40}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:24px 0;border-bottom:1px dashed #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .slide-navigation[_ngcontent-%COMP%]{display:flex;column-gap:7px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .slide-navigation[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]{width:32px;height:32px;border-radius:50%;box-shadow:3px 3px 16.9px #a1a1a140}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .slide-navigation[_ngcontent-%COMP%]   .un-active[_ngcontent-%COMP%]{opacity:35%;filter:invert(84%) sepia(8%) saturate(0%) hue-rotate(234deg) brightness(90%) contrast(89%)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .from-bike[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--color-black)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .from-bike[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{text-decoration:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--color-black);text-decoration:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]{display:flex;overflow-x:scroll;column-gap:20px;padding-top:26px;padding-bottom:26px;padding-left:42px;margin-left:-42px;-ms-overflow-style:none;scrollbar-width:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]{border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;width:242px;min-width:242px;height:300px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:20px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]{width:100%;height:125px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{border-radius:10px 10px 0 0;object-fit:contain;padding-top:15px;width:100%;height:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .nickname[_ngcontent-%COMP%]{margin-left:11px;width:117px;height:23px;min-height:23px;border-radius:6px;background:#f6f4f3;margin-top:15px;color:#989898;padding-left:8px;display:flex;align-items:center;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .nickname[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-left:13px;color:#000;margin-top:13px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{font-size:20px;font-weight:500;height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .bike-type[_ngcontent-%COMP%]{margin-top:3px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .edit-button-container[_ngcontent-%COMP%]{width:100%;padding:0 11px;margin-top:20px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .edit-button-container[_ngcontent-%COMP%]   .edit-button[_ngcontent-%COMP%]{border-radius:24px;border:1px solid var(--color-theme);display:flex;height:40px;padding:6px 12px;justify-content:center;align-items:center;gap:6px;flex-shrink:0;color:var(--color-theme);font-size:16px;font-style:normal;font-weight:500;line-height:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .edit-button-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{color:var(--color-white);background:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .dots[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;column-gap:7px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .dots[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{width:6px;height:6px;flex-shrink:0;border-radius:6px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .dots[_ngcontent-%COMP%]   .active-dot[_ng
1content-%COMP%]{background:#ff5e3a}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .dots[_ngcontent-%COMP%]   .un-active-dot[_ngcontent-%COMP%]{background:#d9d9d9}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .no-bikes[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;row-gap:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .no-bikes[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#ced3db;text-align:center;font-size:18.271px;font-weight:500;max-width:142px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]{padding-left:20px;font-size:16px;width:321px;height:51px;flex-shrink:0;border-radius:10px;border:1px solid #CED3DB;margin-left:auto}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]::placeholder{color:#999}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field-dx[_ngcontent-%COMP%]{max-width:321px;width:100%;margin-left:auto}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#989898;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{flex-direction:column;border-radius:10px;background:#fff;padding:52px 42px 35px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;font-style:normal;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{margin-top:3px;color:#989898;max-width:840px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{margin-top:30px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));column-gap:25px;row-gap:25px;min-height:-moz-fit-content;min-height:fit-content}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{height:450px;flex-shrink:0;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;padding:25px 30px 36px;display:flex;flex-direction:column;justify-content:space-between;position:relative}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .compare-service-phone[_ngcontent-%COMP%]{display:none;align-items:center;justify-content:center;position:absolute;top:13px;right:16px;width:22px;height:22px;border-radius:7px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-type[_ngcontent-%COMP%]{margin-top:-4px;color:#999;font-size:16px;height:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin-top:12px;width:100%;border-bottom:1px solid #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-top:8px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .description-item[_ngcontent-%COMP%]{display:flex;column-gap:10px;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .description-item[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]{margin-top:5px;width:9px;height:9px;border-radius:50%;fill:#ff5e3a}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .compare-service[_ngcontent-%COMP%]{cursor:pointer;column-gap:7px;width:-moz-fit-content;width:fit-content;display:flex;align-items:center;border-radius:7px;background:#fff;padding:0 10px;min-width:-moz-fit-content;min-width:fit-content;height:22px;font-size:12px;box-shadow:3px 3px 16.9px 2px #a1a1a140}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .service-underline[_ngcontent-%COMP%]{margin:15px 0;border-bottom:1px #CED3DB dashed}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .estimated-price-container[_ngcontent-%COMP%]   .estimated-price-label[_ngcontent-%COMP%]{color:#989898;font-size:13px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .estimated-price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{display:flex;font-size:24px;font-weight:500;align-items:center;column-gap:5px;flex-wrap:wrap}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .estimated-price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .fee[_ngcontent-%COMP%]{font-weight:400;width:max-content;height:15px;border-radius:4px;padding:0 5px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;color:#989898;font-size:11px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]{cursor:pointer;margin-top:30px;width:100%;height:40px;border-radius:24px;border:1px solid #FF5E3A;font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .delivery-unavailable[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;row-gap:7px;color:#dc5a54;font-size:16px;font-weight:500;margin-top:15px;margin-bottom:-8px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background:#ff5e3a;color:var(--color-white)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .un-selected[_ngcontent-%COMP%]{color:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service-selected[_ngcontent-%COMP%]{border:1px solid #FF5E3A}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services-underline[_ngcontent-%COMP%]{margin:35px 0;border-bottom:1px solid #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services[_ngcontent-%COMP%]{margin-top:30px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin-top:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]   .service-title[_ngcontent-%COMP%]{color:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]{flex-direction:column;border-radius:10px;background:var(--color-white);padding:52px 42px 35px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;font-size:20px;column-gap:19px;font-weight:500;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .phone-label[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]{margin-top:50px;display:flex;flex-direction:column;row-gap:15px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]{width:100%;max-width:670px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]   .problem-input[_ngcontent-%COMP%]{padding:20px;resize:none;width:100%;height:184px;border-radius:10px;border:1px solid #CED3DB;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]   .problem-input[_ngcontent-%COMP%]::placeholder{color:#989898;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:100%;flex-grow:1}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .no-images[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]{height:100%;width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]{overflow:unset;width:100%;flex-direction:row;max-width:100%;align-items:flex-start}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper{width:136px;padding:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper ngx-file-drop{background:#fff;padding:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper ngx-file-drop   #dropZone{margin:0;width:136px;min-height:107px;height:107px;border-radius:11px;border:1px dashed #CED3DB;background:#fff;padding:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     ngx-file-preview-container{flex-wrap:wrap;margin-left:15px;background:none;flex-direction:row;overflow:scroll;row-gap:10px;column-gap:10px;-ms-overflow-style:none;scrollbar-width:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     ngx-file-preview-container::-webkit-scrollbar{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     ngx-file-preview-container ngx-file-preview-item{border-radius:11px;border:1px solid #CED3DB;width:136px;max-width:136px;padding:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]{margin-top:10px;text-align:center;color:#989898}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .upload-title[_ngcontent-%COMP%]{display:flex;flex-direction:column;column-gap:3px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .upload-title[_ngcontent-%COMP%]   .orange[_ngcontent-%COMP%]{color:var(--color-theme)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .upload-title[_ngcontent-%COMP%]   .upload-text[_ngcontent-%COMP%]{font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .allowed[_ngcontent-%COMP%]{margin-top:5px;font-size:9px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .uploading-count[_ngcontent-%COMP%]{position:absolute;
1left:-11px;top:94px;color:#989898;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .uploaded-media[_ngcontent-%COMP%]{border-radius:10px;width:100%;height:107px;object-fit:cover;position:relative}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]{position:absolute;width:27px;height:27px;flex-shrink:0;border-radius:6px;background:#fff;top:12px;right:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]{margin-top:45px;display:flex;column-gap:16px;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .cost-cover-input[_ngcontent-%COMP%]{display:flex;align-items:center;column-gap:4px;width:120px;height:51px;border-radius:10px;border:1px solid #CED3DB;padding:2px 5px 2px 15px;font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .cost-cover-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;font-weight:500;height:100%;width:100%;border:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .cost-cover-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{margin-left:10px;color:var(--color-dark-ocean);font-size:20px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]{flex-direction:column;border-radius:10px;background:#fff;padding:52px 42px 35px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]{margin-top:30px;display:flex;column-gap:10px;align-items:flex-start}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .custom-bike-switcher[_ngcontent-%COMP%]   .edit-phone[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]{margin-left:15px;display:flex;flex-direction:column;row-gap:5px;max-width:250px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{color:#989898;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%]{margin-top:-4px;width:30px;height:30px;flex-shrink:0;border-radius:50%;box-shadow:3px 3px 16.9px #a1a1a140}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #CED3DB;margin-top:35px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]{margin-top:35px;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .address-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{display:flex;column-gap:11px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .country-mobile[_ngcontent-%COMP%]{margin-top:15px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:35px 0;border:1px dashed #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:flex;column-gap:5px;font-size:16px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .red-star[_ng
1content-%COMP%]{color:#db0202}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .options-buttons[_ngcontent-%COMP%]{margin-top:35px;display:flex;column-gap:21px;font-size:16px;font-weight:500;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]   .options-buttons[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{width:176px;height:46px;border-radius:24px;background:#5fba34;color:#fff}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .add-address[_ngcontent-%COMP%]{display:flex;column-gap:3px;margin-top:35px;font-size:16px;font-weight:500;cursor:pointer}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]{margin-top:15px;flex-direction:column;padding:52px 42px 35px;border-radius:10px;background:#fff;height:-moz-fit-content;height:fit-content}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .date-title-container[_ngcontent-%COMP%]{font-size:20px;font-weight:500;display:flex;column-gap:17px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{margin-top:25px;width:307px;height:49px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:35px 0;border-bottom:1px solid #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]{width:100%;padding:42px;border-radius:10px;background:var(--color-white);flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-container-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]{margin-top:30px;display:flex;column-gap:77px;flex-wrap:wrap;row-gap:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]{display:flex;column-gap:17px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;max-width:83px;max-height:44px;border-radius:5px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .nickname[_ngcontent-%COMP%]{margin-bottom:6px;color:#aca7a5;font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .summary-address-container[_ngcontent-%COMP%]   .summary-address-title[_ngcontent-%COMP%]{color:#aca7a5;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .summary-address-container[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{margin-top:6px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:6px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#989898;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:25px 0;border-bottom:1px dashed #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services-container-title[_ngcontent-%COMP%]{color:#989898}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{display:flex;column-gap:11px;margin-top:11px;flex-wrap:wrap;row-gap:11px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;padding:15px;width:148px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-name[_ng
1content-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-name[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{color:#999;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-underline[_ngcontent-%COMP%]{margin:5px 0;border-bottom:1px solid #CED3DB}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-title[_ngcontent-%COMP%]{color:#989898;font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{display:flex;font-size:14px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-problem-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#989898;letter-spacing:-.7px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-problem-container[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]{margin-top:10px;display:flex;flex-wrap:wrap;column-gap:11px;row-gap:15px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-problem-container[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{border-radius:6px;max-width:126px;min-width:126px;max-height:70px;width:100%;height:100%;object-fit:cover}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-problem-container[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]   .show-all[_ngcontent-%COMP%]{row-gap:4px;margin-left:5px;font-size:13px;display:flex;align-items:center;justify-content:center;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .pick-up-date[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;color:#989898}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .pick-up-date[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{margin-top:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]{margin-top:30px;display:flex}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:15px;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]   .terms-link[_ngcontent-%COMP%]{margin-left:4px;color:#ff5e3a;font-size:16px;text-decoration:underline}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]{margin-top:35px;display:flex;column-gap:15px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{width:139px;height:52px;flex-shrink:0;border-radius:39px;background:#ececec;font-size:16px;font-weight:700;column-gap:17px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .next-button[_ngcontent-%COMP%]{column-gap:17px;font-size:16px;font-weight:700;width:175px;height:52px;border-radius:39px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .un-active-button[_ngcontent-%COMP%]{color:#989898;background:#ececec}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .un-active-button[_ngcontent-%COMP%]   .icon-active[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .un-active-button[_ngcontent-%COMP%]   .icon-un-active[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .active-button[_ngcontent-%COMP%]{background:#ff5e3a;color:#fff}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .active-button[_ngcontent-%COMP%]   .icon-active[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .active-button[_ngcontent-%COMP%]   .icon-un-active[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{width:139px;height:52px;flex-shrink:0;border-radius:39px;background:#ff5e3a;color:#fff;font-size:16px;font-weight:700}.create-request-container[_ngcontent-%COMP%]   .symbol-icon[_ngcontent-%COMP%]{min-width:18px;min-height:18px;margin-left:5px}.create-request-container[_ngcontent-%COMP%]     .dx-texteditor.dx-editor-filled{width:100%;height:51px;background:unset;border-radius:10px;border:1px solid #CED3DB}.box-input[_ngcontent-%COMP%]{position:relative;margin-top:14px;border-radius:10px;border:1px solid #CED3DB;width:337px;height:49px;display:flex;align-items:center;padding-left:10px;font-size:16px}.box-input[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]{padding-left:10px;border-top-right-radius:10px;border-bottom-right-radius:10px;width:100%;height:100%;border:none;background:none;-webkit-box-shadow:0 0 0 1000px white inset}.box-input[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]:focus{outline-width:0}.box-input[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]::placeholder{color:#999}.phone-number[_ngcontent-%COMP%]{position:relative;padding-left:0}.phone-number[_ngcontent-%COMP%]   .selected-country[_ngcontent-%COMP%]{width:92px;height:47px;flex-shrink:0;border-radius:9px 0 0 9px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;column-gap:8px}.phone-number[_ngcontent-%COMP%]   .selected-country[_ngcontent-%COMP%]   .selected-flag[_ngcontent-%COMP%]{width:16px}.phone-number[_ngcontent-%COMP%]   .mobile-countries[_ngcontent-%COMP%]{position:absolute;top:60px;left:1px;border-radius:10px;background:#fff;width:-moz-fit-content;width:fit-content;box-shadow:3px 3px 16.9px 2px #a1a1a140;padding:21px;z-index:10;row-gap:21px;
1display:flex;flex-direction:column;max-height:100px;overflow-y:scroll}.phone-number[_ngcontent-%COMP%]   .mobile-countries[_ngcontent-%COMP%]   .mobile-country[_ngcontent-%COMP%]{display:flex;column-gap:7px;align-items:center}.phone-number[_ngcontent-%COMP%]   .mobile-countries[_ngcontent-%COMP%]   .mobile-country[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{width:17px}.phone-number[_ngcontent-%COMP%]   .mobile-countries[_ngcontent-%COMP%]   .mobile-country[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{font-size:16px}.phone-number[_ngcontent-%COMP%]   .mobile-number-input[_ngcontent-%COMP%]{padding-left:10px}.show[_ngcontent-%COMP%]{display:flex}.hide[_ngcontent-%COMP%]{display:none}.backdrop[_ngcontent-%COMP%]{opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:20}.add-photo-modal[_ngcontent-%COMP%]{z-index:21;inset:0;margin:auto;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;flex-direction:column;position:fixed;max-width:407px;height:-moz-fit-content;height:fit-content;padding-top:26px;padding-bottom:20px}.add-photo-modal[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-top:20px;font-size:16px;font-weight:700;text-align:center}.add-photo-modal[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{text-align:center;padding:0 32px;margin-top:5px}.add-photo-modal[_ngcontent-%COMP%]   .add-photo[_ngcontent-%COMP%]{border-radius:24px;background:#ff5e3a;color:var(--color-white);font-size:16px;font-weight:500;padding:0 32px;max-width:-moz-fit-content;max-width:fit-content;margin-top:40px;height:40px}.add-photo-modal[_ngcontent-%COMP%]   .dont-add-photo[_ngcontent-%COMP%]{margin-top:12px;color:#989898;font-size:16px;font-weight:500;text-decoration-line:underline}.add-address-container[_ngcontent-%COMP%]{z-index:21;height:-moz-fit-content;height:fit-content;position:fixed;inset:0;margin:auto 10px;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;padding:24px 16px}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]{flex-direction:column;row-gap:8px;width:100%}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .address-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .address-box[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:flex;column-gap:5px;font-size:16px;font-weight:500}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .address-box[_ngcontent-%COMP%]   .red-star[_ngcontent-%COMP%]{color:#db0202}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{display:flex;column-gap:11px}.add-address-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:16px 0;border-bottom:1px dashed #CED3DB}.add-address-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:24px;width:100%;display:flex;align-items:center;flex-direction:column;row-gap:11px}.add-address-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .save-button[_ngcontent-%COMP%]{width:125px;height:36px;border-radius:24px;background:#5fba34;color:var(--color-white)}.add-address-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{font-size:13px;font-weight:500}.success-request-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.success-request-container[_ngcontent-%COMP%]   .back-navigation[_ngcontent-%COMP%]{display:none}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]{margin-top:60px;position:relative}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]{position:absolute;inset:32px 0 0;margin-left:auto;margin-right:auto;display:flex;flex-direction:column;align-items:center;max-width:600px}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .success-request-title[_ngcontent-%COMP%]{font-size:40px;font-weight:700}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .success-description[_ngcontent-%COMP%]{text-align:center;font-size:16px;font-style:normal;font-weight:400;color:var(--color-dark-ocean);margin-top:15px;align-items:center;flex-direction:column}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .go-to-services[_ngcontent-%COMP%]{margin-top:30px;width:-moz-fit-content;width:fit-content;padding:0 20px;height:40px;border-radius:24px;border:1px solid #FF5E3A;background:#ff5e3a;color:var(--color-white);background:var(--color-theme);font-size:16px}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:none}@media (max-width: 1080px){.create-request-container[_ngcontent-%COMP%]{column-gap:25px}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{width:210px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{padding-left:30px;padding-right:18px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]{padding:35px 30px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]{flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field-dx[_ngcontent-%COMP%]{margin-left:unset}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .custom-bike-container[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{align-items:baseline;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .add-bike[_ngcontent-%COMP%]{margin-top:15px;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .add-bike[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]{font-size:14px;width:28px;height:28px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .slide-navigation[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]{padding:52px 30px 35px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper ngx-file-drop   #dropZone{height:90px;padding:unset;display:flex;justify-content:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .uploading-count[_ngcontent-%COMP%]{top:110px;left:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]{padding:52px 30px 35px}}@media (max-width: 980px){.create-request-container[_ngcontent-%COMP%]{padding:0 18px 50px;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;padding:0 20px;height:53px}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .checked-icon[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{align-items:center;font-size:16px}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   .selected-box[_ngcontent-%COMP%]{top:unset;margin-left:auto;margin-right:auto;left:0;right:0;bottom:0;width:46px;height:3px;flex-shrink:0;border-radius:3px 3px 0 0;background:#ff5e3a}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .un-selected[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#989898}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]{margin-top:22px}}@media (max-width: 770px){.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{grid-template-columns:unset}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{width:350px}}@media (max-width: 580px){.create-request-container[_ngcontent-%COMP%]{padding:0;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .phone-navigation[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]{min-height:calc(100svh - 139px);background:#f6f4f3;margin-top:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .dots[_ngcontent-%COMP%]{margin-bottom:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]{flex-direction:column;row-gap:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .bike-search-title-container[_ngcontent-%COMP%]   .bike-search-title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .search-box[_ngcontent-%COMP%]{max-width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-search-container[_ngcontent-%COMP%]   .bike-search-text[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]{margin-top:26px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .bike-model[_ngcontent-%COMP%]   .switch-container[_ngcontent-%COMP%]{justify-content:space-between;width:100%;flex-direction:row-reverse}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:0 0 24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]{padding-top:12px;padding-left:24px;margin-left:-24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]{width:270px;height:190px;position:relative;padding-bottom:13px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]{height:128px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .nickname[_ng
1content-%COMP%]{margin:0;position:absolute;top:0;left:14px;font-size:10px;border-radius:0 0 6px 6px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]{justify-content:space-between;display:flex;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{max-width:105px;margin-top:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .bike-type[_ngcontent-%COMP%]{margin-top:-4px;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .edit-button-container[_ngcontent-%COMP%]{width:130px;margin-top:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .bikes[_ngcontent-%COMP%]   .bike[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .edit-button-container[_ngcontent-%COMP%]   .edit-button[_ngcontent-%COMP%]{height:30px;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .no-bikes[_ngcontent-%COMP%]{margin:24px 0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .my-bikes-label-container[_ngcontent-%COMP%]   .no-bikes[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{row-gap:8px;font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .e-bike[_ngcontent-%COMP%]{width:100%;justify-content:space-between;flex-direction:row-reverse}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]{font-size:14px;width:100%;height:49px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]::placeholder{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .input-field-dx[_ngcontent-%COMP%]{max-width:100%;width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{line-height:14px;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .about-container[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{margin-top:12px;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));column-gap:10px;row-gap:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{width:unset;height:370px;padding:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .compare-service-phone[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-title[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-type[_ngcontent-%COMP%]{height:11px;font-size:11px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .description-item[_ngcontent-%COMP%]{font-size:13px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .description-item[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]{height:7px;width:7pxxx}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .compare-service[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .service-underline[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .estimated-price-container[_ngcontent-%COMP%]   .estimated-price-label[_ngcontent-%COMP%]{font-size:11px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .estimated-price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]{margin-top:16px;font-size:14px;height:30px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .select-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{max-width:20px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-select[_ngcontent-%COMP%]   .delivery-unavailable[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services-title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]{min-width:220px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .additional-services[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]   .service-type[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .phone-label[_ngcontent-%COMP%]{display:flex;font-size:12px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]{margin-top:14px;row-gap:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]   .problem-input[_ngcontent-%COMP%]{padding:16px;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]   .problem-input[_ngcontent-%COMP%]::placeholder{color:#989898;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]{display:flex;align-items:center;column-gap:15px;max-width:unset;min-width:unset;height:unset}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .no-images[_ngcontent-%COMP%]{display:flex;color:#989898}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]{width:unset}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]{flex-direction:row}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper{height:50px;width:50px;padding:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper ngx-file-drop{padding:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     .file-drop-wrapper ngx-file-drop   #dropZone{height:50px;min-height:50px;width:50px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     ngx-file-preview-container{background:none;flex-direction:row;row-gap:5px;margin-left:8px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .file-uploader-custom[_ngcontent-%COMP%]     ngx-file-preview-container ngx-file-preview-item{margin-bottom:0;width:88px;height:50px;padding:0;border:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]{height:50px;width:50px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .dropzoneTemplate[_ngcontent-%COMP%]   .uploading-count[_ngcontent-%COMP%]{font-size:10px;width:max-content;left:0;top:53px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .uploaded-media[_ngcontent-%COMP%]{width:88px;height:49px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]{top:0;right:0;width:88px;height:49px;flex-shrink:0;border-radius:6px;opacity:.7;background:#4c4c4c}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]   .delete-svg[_ngcontent-%COMP%]{filter:invert(100%) sepia(66%) saturate(2%) hue-rotate(125deg) brightness(107%) contrast(100%)}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .problem-pictures[_ngcontent-%COMP%]   .pictures-container[_ngcontent-%COMP%]   .file-uploader[_ngcontent-%COMP%]   .phone-icon[_ngcontent-%COMP%]{display:flex}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]{margin-top:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .cost-cover-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .currency[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .problem-container[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:24px 16px;margin-top:14px;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;justify-content:space-between}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .custom-bike-switcher[_ngcontent-%COMP%]{display:flex;flex-direction:column}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .custom-bike-switcher[_ngcontent-%COMP%]   .edit-phone[_ngcontent-%COMP%]{margin-top:20px;
1display:flex;color:#989898;font-size:13px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]{margin-left:0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .profile-address[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{font-size:14px;max-width:181px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .profile-address-container[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .address-edit-container[_ngcontent-%COMP%]{max-height:1px;overflow:hidden}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .add-address[_ngcontent-%COMP%]{margin-top:16px;flex-direction:column;row-gap:8px;font-size:14px;font-weight:400;width:100%;align-items:center}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .add-address[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;box-shadow:3px 3px 16.9px #bebebe40}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .date-title-container[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{width:100%}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .date-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:24px 0}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]{padding:24px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-container-title[_ngcontent-%COMP%]{font-size:16px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-containe[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .summary-address-container[_ngcontent-%COMP%]   .summary-address-title[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-containe[_ngcontent-%COMP%]   .bike-information__address[_ngcontent-%COMP%]   .cost-cover-container[_ngcontent-%COMP%]   title[_ngcontent-%COMP%]{font-size:10px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services-container-title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .summary-problem-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]{margin-top:18px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .summary-container[_ngcontent-%COMP%]   .terms-container[_ngcontent-%COMP%]   .accept-container[_ngcontent-%COMP%]   .terms-link[_ngcontent-%COMP%]{font-size:14px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]{margin-top:0;width:100%;column-gap:7px;justify-content:center;background:#fff;height:100px}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .option-button[_ngcontent-%COMP%]{height:35px;border-radius:24px;padding:0 32px;width:-moz-fit-content;width:fit-content;font-size:13px;font-weight:500}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .options-container[_ngcontent-%COMP%]   .option-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:none}.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .symbol-icon[_ngcontent-%COMP%]{max-width:10px;min-width:10px;width:10px;max-height:10px;min-height:10px;height:10px}.success-request-container[_ngcontent-%COMP%]{flex-direction:column}.success-request-container[_ngcontent-%COMP%]   .back-navigation[_ngcontent-%COMP%]{align-items:center;margin-top:32px;padding:0 28px;display:flex;column-gap:10px;color:#989898}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]{top:0}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .success-request-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .success-description[_ngcontent-%COMP%]{max-width:217px;font-size:12px;font-style:normal;font-weight:400}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .success-request-text[_ngcontent-%COMP%]   .go-to-services[_ngcontent-%COMP%]{min-height:30px;margin-top:220px}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:flex}.success-request-container[_ngcontent-%COMP%]   .success-request[_ngcontent-%COMP%]   .pc[_ngcontent-%COMP%]{display:none}.add-photo-modal[_ngcontent-%COMP%]{padding:32px;width:335px}.add-photo-modal[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.add-photo-modal[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{font-size:13px}.add-photo-modal[_ngcontent-%COMP%]   .add-photo[_ngcontent-%COMP%]{height:30px;font-size:14px}.add-photo-modal[_ngcontent-%COMP%]   .dont-add-photo[_ngcontent-%COMP%]{font-weight:400}  .dx-texteditor.dx-editor-filled{height:49px}  .dx-selectbox .dx-texteditor-input:read-only{font-size:14px}.box-input[_ngcontent-%COMP%]{margin-top:7px;width:100%}}@media (max-width: 400px){.create-request-container[_ngcontent-%COMP%]   .service-content[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{height:270px}}  .dx-calendar-body thead th{font-weight:400;font-size:12px;padding-left:10px;color:#989898}  .dx-checkbox-icon{width:18px;height:18px;border:2px solid #a6a6a6;border-radius:3px}  .dx-calendar-cell span{border-radius:6px;width:25px;height:25px}  .dx-calendar-cell.dx-calendar-contoured-date span{box-shadow:unset}  .dx-texteditor.dx-editor-filled{background:none;width:100%}  .dx-datebox-calendar.dx-dropdowneditor-active.dx-editor-filled{background:unset}  .dx-calendar-navigator .dx-button .dx-button-text{font-size:14px;font-weight:500;color:#000}  .dx-icon-chevronright:before{color:#000}  .dx-icon-chevronleft:before{color:#989898}  .dx-dropdowneditor-overlay.dx-popup-wrapper .dx-overlay-content{border-radius:10px;margin-top:10px}.switch-container[_ngcontent-%COMP%]{display:flex;font-size:14px;column-gap:12px;align-items:center}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%], .switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:before, .switch-container[_ngcontent-%COMP%]   .slot__label[_ngcontent-%COMP%], .switch-container[_ngcontent-%COMP%]   .curtain[_ngcontent-%COMP%]{transition-property:background-color,transform,visibility;transition-duration:.25s;transition-timing-function:ease-in,cubic-bezier(.6,.2,.4,1.5),linear}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:before, .switch-container[_ngcontent-%COMP%]   .slot[_ngcontent-%COMP%], .switch-container[_ngcontent-%COMP%]   .slot__label[_ngcontent-%COMP%]{display:block}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:before, .switch-container[_ngcontent-%COMP%]   .curtain[_ngcontent-%COMP%]{position:absolute}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]{background:#989898;border-radius:50px;cursor:pointer;position:relative;width:42px;height:22px;appearance:none;-webkit-tap-highlight-color:transparent}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:focus{outline:transparent}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:before{background:var(--color-white);border-radius:50%;content:"";top:2px;left:2px;width:18px;height:18px}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:checked:before{transform:translate(20px)}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:checked{background:var(--color-theme)}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:checked ~ .slot[_ngcontent-%COMP%]   .slot__label[_ngcontent-%COMP%], .switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]   .slot__label[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-50%) scaleY(0)}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:checked ~ .slot[_ngcontent-%COMP%]   .slot__label[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-100%) scaleY(1)}.switch-container[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]:checked ~ .curtain[_ngcontent-%COMP%]{transform:scale
1X(1)}']})}return h})();var ue=P(738),Ve=function(h){return h[h.UnSet=0]="UnSet",h[h.Information=1]="Information",h[h.Reviews=2]="Reviews",h[h.OpenHours=3]="OpenHours",h}(Ve||{}),jt=P(5383),Vn=P(2999),es=P(5832),mr=P(7733);const Ge=h=>({"star-selected":h});function Ln(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",11),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.approveShop(!0))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.approve")))}function fr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",11),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.approveShop(!1))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.un-approve")))}function ts(h,_){if(1&h&&(n.j41(0,"div",9),n.DNE(1,Ln,3,3,"div",10)(2,fr,3,3,"div",10),n.k0s()),2&h){const l=n.XpG();n.R7$(),n.Y8G("ngIf",!l.shopProfile.approved),n.R7$(),n.Y8G("ngIf",l.shopProfile.approved)}}function dl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",40),n.qSk(),n.j41(1,"svg",41),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(3);return n.Njj(y.deleteImage(C.id))}),n.nrm(2,"path",42)(3,"path",43),n.k0s()()}}function ns(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",37)(1,"img",38),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(3);return n.Njj(y.selectedMediaIdToDelete=C.id)}),n.k0s(),n.DNE(2,dl,4,0,"div",39),n.k0s()}if(2&h){const l=_.$implicit,g=n.XpG(3);n.R7$(),n.Mz_("src","data:image/png;base64,",l.thumbnail,"",n.B4B),n.R7$(),n.Y8G("ngIf",g.selectedMediaIdToDelete===l.id&&g.isAdmin)}}function W(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.un-approved")))}function Lu(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.approved")))}function is(h,_){if(1&h&&(n.j41(0,"div",44)(1,"div",45),n.DNE(2,W,3,3,"p",46)(3,Lu,3,3,"p",46),n.k0s()()),2&h){const l=n.XpG(3);n.R7$(),n.Y8G("ngClass",l.shopProfile.approved?"green-block":"red-block"),n.R7$(),n.Y8G("ngIf",!l.shopProfile.approved),n.R7$(),n.Y8G("ngIf",l.shopProfile.approved)}}function qn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",47),n.qSk(),n.j41(1,"svg",48)(2,"path",49),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.shopProfile.rating=1)}),n.k0s()(),n.j41(3,"svg",50),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.shopProfile.rating=2)}),n.nrm(4,"path",51),n.k0s(),n.j41(5,"svg",50),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.shopProfile.rating=3)}),n.nrm(6,"path",51),n.k0s(),n.j41(7,"svg",50),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.shopProfile.rating=4)}),n.nrm(8,"path",51),n.k0s(),n.j41(9,"svg",50),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.shopProfile.rating=5)}),n.nrm(10,"path",51),n.k0s()()}if(2&h){const l=n.XpG(3);n.R7$(2),n.Y8G("ngClass",n.eq3(5,Ge,l.shopProfile.rating>=1&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(7,Ge,l.shopProfile.rating>=2&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(9,Ge,l.shopProfile.rating>=3&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(11,Ge,l.shopProfile.rating>=4&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(13,Ge,5===l.shopProfile.rating))}}function pt(h,_){if(1&h&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&h){const l=n.XpG(4);n.R7$(),n.Lme("+",null==l.shopProfile.address||null==l.shopProfile.address.phoneCountry?null:l.shopProfile.address.phoneCountry.numberCode,"",null==l.shopProfile.address?null:l.shopProfile.address.phone,"")}}function ul(h,_){if(1&h&&(n.j41(0,"div",61)(1,"a",81),n.EFF(2),n.k0s()()),2&h){const l=n.XpG(4);n.R7$(),n.Mz_("href","mailto:",l.shopProfile.email,"",n.B4B),n.R7$(),n.JRh(l.shopProfile.email)}}function rs(h,_){if(1&h&&(n.j41(0,"div",52)(1,"div",53),n.qSk(),n.j41(2,"svg",54),n.nrm(3,"path",55),n.k0s(),n.joV(),n.j41(4,"p",56),n.EFF(5),n.k0s()(),n.j41(6,"div",57),n.qSk(),n.j41(7,"svg",58),n.nrm(8,"path",59),n.k0s(),n.joV(),n.j41(9,"div",60)(10,"p"),n.EFF(11),n.k0s(),n.DNE(12,pt,2,2,"p",46),n.k0s()(),n.j41(13,"div",61),n.qSk(),n.j41(14,"svg",58),n.nrm(15,"path",62)(16,"path",63)(17,"path",64)(18,"path",65)(19,"path",66)(20,"path",67)(21,"path",68)(22,"path",69)(23,"path",70)(24,"path",71)(25,"path",72)(26,"path",73)(27,"path",74)(28,"path",75)(29,"path",76)(30,"path",77)(31,"path",78),n.k0s(),n.joV(),n.j41(32,"a",79),n.EFF(33),n.k0s()(),n.DNE(34,ul,3,3,"div",80),n.k0s()),2&h){const l=n.XpG(3);n.R7$(5),n.LHq("",null==l.shopProfile.address?null:l.shopProfile.address.street,", ",null==l.shopProfile.address?null:l.shopProfile.address.streetNumber,", ",null==l.shopProfile.address?null:l.shopProfile.address.city,", ",null==l.shopProfile.address?null:l.shopProfile.address.zipcode,""),n.R7$(6),n.Lme("+",null==l.shopProfile.address||null==l.shopProfile.address.mobilePhoneCountry?null:l.shopProfile.address.mobilePhoneCountry.numberCode,"",null==l.shopProfile.address?null:l.shopProfile.address.mobilePhone,""),n.R7$(),n.Y8G("ngIf",null==l.shopProfile.address?null:l.shopProfile.address.phone),n.R7$(20),n.FS9("href",l.shopProfile.website,n.B4B),n.R7$(),n.JRh(l.shopProfile.website),n.R7$(),n.Y8G("ngIf",l.isAdmin)}}function mi(h,_){if(1&h&&(n.j41(0,"div",82)(1,"p"),n.EFF(2),n.k0s(),n.qSk(),n.j41(3,"svg",83),n.nrm(4,"path",84),n.k0s()()),2&h){const l=_.$implicit;n.R7$(2),n.JRh(l.name)}}function pl(h,_){if(1&h&&(n.j41(0,"div",82)(1,"p"),n.EFF(2),n.k0s(),n.qSk(),n.j41(3,"svg",83),n.nrm(4,"path",84),n.k0s()()),2&h){const l=_.$implicit;n.R7$(2),n.JRh(l.name)}}function gl(h,_){if(1&h&&(n.j41(0,"div",25)(1,"div",26),n.DNE(2,ns,3,3,"div",27),n.k0s(),n.j41(3,"div",28)(4,"div",16)(5,"p"),n.EFF(6),n.k0s(),n.DNE(7,is,4,3,"div",17),n.k0s(),n.DNE(8,qn,11,15,"div",18),n.j41(9,"p",29),n.EFF(10),n.k0s()(),n.nrm(11,"div",30),n.DNE(12,rs,35,10,"div",31),n.nrm(13,"div",32),n.j41(14,"div",33)(15,"p",34),n.EFF(16),n.nI1(17,"translate"),n.k0s(),n.j41(18,"div",35),n.DNE(19,mi,5,1,"div",36),n.k0s()(),n.j41(20,"div",33)(21,"p",34),n.EFF(22),n.nI1(23,"translate"),n.k0s(),n.j41(24,"div",35),n.DNE(25,pl,5,1,"div",36),n.k0s()()()),2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",l.shopProfile.media),n.R7$(4),n.JRh(l.shopProfile.shopName),n.R7$(),n.Y8G("ngIf",l.isAdmin),n.R7$(),n.Y8G("ngIf",void 0!==l.shopProfile.rating),n.R7$(2),n.JRh(l.shopProfile.aboutUs),n.R7$(2),n.Y8G("ngIf",l.selectedSection===l.ShopProfilePreviewSectionEnum.Information),n.R7$(4),n.JRh(n.bMT(17,10,"i18n.app.pages.shop.profile.provided-brands")),n.R7$(3),n.Y8G("ngForOf",l.shopProfile.providedBrands),n.R7$(3),n.JRh(n.bMT(23,12,"i18n.app.pages.shop.profile.provided-bike-types")),n.R7$(3),n.Y8G("ngForOf",l.shopProfile.providedBikeTypes)}}function os(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.un-approved")))}function kt(h,_){1&h&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.admin.approved")))}function hl(h,_){if(1&h&&(n.j41(0,"div",44)(1,"div",45),n.DNE(2,os,3,3,"p",46)(3,kt,3,3,"p",46),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngClass",l.shopProfile.approved?"green-block":"red-block"),n.R7$(),n.Y8G("ngIf",!l.shopProfile.approved),n.R7$(),n.Y8G("ngIf",l.shopProfile.approved)}}function Or(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",47),n.qSk(),n.j41(1,"svg",85)(2,"path",49),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.shopProfile.rating=1)}),n.k0s()(),n.j41(3,"svg",86),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.shopProfile.rating=2)}),n.nrm(4,"path",51),n.k0s(),n.j41(5,"svg",86),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.shopProfile.rating=3)}),n.nrm(6,"path",51),n.k0s(),n.j41(7,"svg",86),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.shopProfile.rating=4)}),n.nrm(8,"path",51),n.k0s(),n.j41(9,"svg",86),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.shopProfile.rating=5)}),n.nrm(10,"path",51),n.k0s()()}if(2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngClass",n.eq3(5,Ge,l.shopProfile.rating>=1&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(7,Ge,l.shopProfile.rating>=2&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(9,Ge,l.shopProfile.rating>=3&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(11,Ge,l.shopProfile.rating>=4&&l.shopProfile.rating<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(13,Ge,5===l.shopProfile.rating))}}function _l(h,_){if(1&h&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.Lme("+",null==l.shopProfile.address||null==l.shopProfile.address.phoneCountry?null:l.shopProfile.address.phoneCountry.numberCode,"",null==l.shopProfile.address?null:l.shopProfile.address.phone,"")}}function vl(h,_){if(1&h&&(n.j41(0,"div",61)(1,"a",81),n.EFF(2),n.k0s()()),2&h){const l=n.XpG(3);n.R7$(),n.Mz_("href","mailto:",l.shopProfile.email,"",n.B4B),n.R7$(),n.JRh(l.shopProfile.email)}}function Cl(h,_){if(1&h&&(n.j41(0,"div",87)(1,"div",53),n.qSk(),n.j41(2,"svg",54),n.nrm(3,"path",55),n.k0s(),n.joV(),n.j41(4,"p",56),n.EFF(5),n.k0s()(),n.j41(6,"div",57),n.qSk(),n.j41(7,"svg",58),n.nrm(8,"path",59),n.k0s(),n.joV(),n.j41(9,"div",60)(10,"p"),n.EFF(11),n.k0s(),n.DNE(12,_l,2,2,"p",46),n.k0s()(),n.j41(13,"div",61),n.qSk(),n.j41(14,"svg",58),n.nrm(15,"path",62)(16,"path",63)(17,"path",64)(18,"path",65)(19,"path",66)(20,"path",67)(21,"path",68)(22,"path",69)(23,"path",70)(24,"path",71)(25,"path",72)(26,"path",73)(27,"path",74)(28,"path",75)(29,"path",76)(30,"path",77)(31,"path",78),n.k0s(),n.joV(),n.j41(32,"a",79),n.EFF(33),n.k0s()(),n.DNE(34,vl,3,3,"div",80),n.k0s()),2&h){const l=n.XpG(2);n.R7$(5),n.LHq("",null==l.shopProfile.address?null:l.shopProfile.address.street,", ",null==l.shopProfile.address?null:l.shopProfile.address.streetNumber,", ",null==l.shopProfile.address?null:l.shopProfile.address.city,", ",null==l.shopProfile.address?null:l.shopProfile.address.zipcode,""),n.R7$(6),n.Lme("+",null==l.shopProfile.address||null==l.shopProfile.address.mobilePhoneCountry?null:l.shopProfile.address.mobilePhoneCountry.numberCode,"",null==l.shopProfile.address?null:l.shopProfile.address.mobilePhone,""),n.R7$(),n.Y8G("ngIf",null==l.shopProfile.address?null:l.shopProfile.address.phone),n.R7$(20),n.FS9("href",l.shopProfile.website,n.B4B),n.R7$(),n.JRh(l.shopProfile.website),n.R7$(),n.Y8G("ngIf",l.isAdmin)}}function gn(h,_){if(1&h&&(n.j41(0,"div",47),n.qSk(),n.j41(1,"svg",48),n.nrm(2,"path",51),n.k0s(),n.j41(3,"svg",48),n.nrm(4,"path",51),n.k0s(),n.j41(5,"svg",48),n.nrm(6,"path",51),n.k0s(),n.j41(7,"svg",48),n.nrm(8,"path",51),n.k0s(),n.j41(9,"svg",48),n.nrm(10,"path",51),n.k0s()()),2&h){const l=n.XpG().$implicit;n.R7$(2),n.Y8G("ngClass",n.eq3(5,Ge,l.ranking>=1&&l.ranking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(7,Ge,l.ranking>=2&&l.ranking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(9,Ge,l.ranking>=3&&l.ranking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(11,Ge,l.ranking>=4&&l.ranking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(13,Ge,5===l.ranking))}}function hn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",104),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2).$implicit,y=n.XpG(3);return n.Njj(y.deleteReview(C.id))})("clickOutside",function(){n.eBV(l);const C=n.XpG(5);return n.Njj(C.deleteReviewPopUpId=void 0)}),n.j41(1,"p"),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&h&&(n.R7$(2),n.JRh(n.bMT(3,1,"i18n.app.admin.delete-review")))}function fi(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",98),n.qSk(),n.j41(1,"svg",99),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(3);return n.Njj(y.deleteReviewPopUpId=C.id)}),n.nrm(2,"path",100)(3,"path",101)(4,"path",102),n.k0s(),n.DNE(5,hn,4,3,"div",103),n.k0s()}if(2&h){const l=n.XpG().$implicit,g=n.XpG(3);n.R7$(5),n.Y8G("ngIf",g.deleteReviewPopUpId===l.id)}}function Oi(h,_){if(1&h&&(n.j41(0,"div",91)(1,"div")(2,"div",92)(3,"div",93),n.nrm(4,"img",94),n.k0s(),n.j41(5,"div",95)(6,"p"),n.EFF(7),n.k0s(),n.DNE(8,gn,11,15,"div",18),n.k0s()(),n.j41(9,"p",96
1),n.EFF(10),n.k0s()(),n.DNE(11,fi,6,1,"div",97),n.k0s()),2&h){const l=_.$implicit,g=n.XpG(3);n.R7$(4),n.Y8G("src",l.customerProfilePicture,n.B4B),n.R7$(3),n.JRh(l.customerName),n.R7$(),n.Y8G("ngIf",l.ranking),n.R7$(2),n.JRh(l.message),n.R7$(),n.Y8G("ngIf",g.isAdmin)}}function ss(h,_){if(1&h&&(n.j41(0,"div",88)(1,"div",89),n.DNE(2,Oi,12,5,"div",90),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",l.shopProfile.rewies)}}function ml(h,_){1&h&&(n.j41(0,"p",113),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.profile.openhourdetails.open")))}function xi(h,_){1&h&&(n.j41(0,"p",114),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.profile.openhourdetails.close")))}function _n(h,_){if(1&h&&(n.j41(0,"div",115),n.EFF(1),n.nI1(2,"customTimeForMessenger"),n.nI1(3,"customTimeForMessenger"),n.k0s()),2&h){let l;const g=n.XpG().$implicit,C=n.XpG(3);n.R7$(),n.Lme("",n.bMT(2,2,null==(l=C.getDay(g.day))?null:l.start),"-",n.bMT(3,4,null==(l=C.getDay(g.day))?null:l.end),"")}}function Ut(h,_){if(1&h&&(n.j41(0,"div",107)(1,"div",108)(2,"p"),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",109),n.DNE(6,ml,3,3,"p",110)(7,xi,3,3,"p",111),n.k0s()(),n.DNE(8,_n,4,6,"div",112),n.k0s()),2&h){let l;const g=_.$implicit,C=n.XpG(3);n.R7$(3),n.JRh(n.bMT(4,4,g.name)),n.R7$(3),n.Y8G("ngIf",C.checkDay(g.day)),n.R7$(),n.Y8G("ngIf",!C.checkDay(g.day)),n.R7$(),n.Y8G("ngIf",null==(l=C.getDay(g.day))?null:l.start)}}function fl(h,_){if(1&h&&(n.j41(0,"div",105),n.DNE(1,Ut,9,6,"div",106),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngForOf",l.daysList)}}function Ol(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",12),n.DNE(1,gl,26,14,"div",13),n.j41(2,"div",14)(3,"div",15)(4,"div",16)(5,"p"),n.EFF(6),n.k0s(),n.DNE(7,hl,4,3,"div",17),n.k0s(),n.DNE(8,Or,11,15,"div",18),n.k0s(),n.j41(9,"div",19)(10,"div",20),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.selectedSection=C.ShopProfilePreviewSectionEnum.Information)}),n.EFF(11),n.nI1(12,"translate"),n.k0s(),n.j41(13,"div",20),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.selectedSection=C.ShopProfilePreviewSectionEnum.Reviews)}),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.j41(16,"div",20),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.selectedSection=C.ShopProfilePreviewSectionEnum.OpenHours)}),n.EFF(17),n.nI1(18,"translate"),n.k0s()(),n.j41(19,"div",21),n.DNE(20,Cl,35,10,"div",22)(21,ss,3,1,"div",23)(22,fl,2,1,"div",24),n.k0s()()()}if(2&h){const l=n.XpG();n.R7$(),n.Y8G("ngIf",l.window.innerWidth>980||l.window.innerWidth<=980&&l.selectedSection===l.ShopProfilePreviewSectionEnum.Information),n.R7$(5),n.JRh(l.shopProfile.shopName),n.R7$(),n.Y8G("ngIf",l.isAdmin),n.R7$(),n.Y8G("ngIf",void 0!==l.shopProfile.rating),n.R7$(2),n.Y8G("ngClass",l.selectedSection===l.ShopProfilePreviewSectionEnum.Information?"selected":"un-selected"),n.R7$(),n.JRh(n.bMT(12,13,"i18n.app.pages.shop.profile.information")),n.R7$(2),n.Y8G("ngClass",l.selectedSection===l.ShopProfilePreviewSectionEnum.Reviews?"selected":"un-selected"),n.R7$(),n.JRh(n.bMT(15,15,"i18n.app.pages.shop.profile.reviews")),n.R7$(2),n.Y8G("ngClass",l.selectedSection===l.ShopProfilePreviewSectionEnum.OpenHours?"selected":"un-selected"),n.R7$(),n.JRh(n.bMT(18,17,"i18n.app.pages.shop.profile.shopOpenHours")),n.R7$(3),n.Y8G("ngIf",l.selectedSection===l.ShopProfilePreviewSectionEnum.Information),n.R7$(),n.Y8G("ngIf",l.selectedSection===l.ShopProfilePreviewSectionEnum.Reviews),n.R7$(),n.Y8G("ngIf",l.selectedSection===l.ShopProfilePreviewSectionEnum.OpenHours&&null!=l.shopProfile.workingHours)}}let xl=(()=>{class h{constructor(l,g,C,y,Q){this.customerService=l,this.activatedRoute=g,this.router=C,this.authService=y,this.adminService=Q,this.shopProfile=new w.sD,this.selectedSection=Ve.Information,this.isAdmin=!1,this.shopId="",this.selectedMediaIdToDelete="",this.backPageDirection=Vn.y.NotSet,this.ShopProfilePreviewSectionEnum=Ve,this.daysList=jt.W,this.window=window}ngOnInit(){this.getShopProfile(),this.isAdmin=this.authService.isAdmin()}goBack(){this.router.navigate(this.backPageDirection==Vn.y.AdminMenu?["admin/shops"]:this.backPageDirection==Vn.y.ShopProfile?["shop/profile"]:["customer/service-requests"])}getShopProfile(){this.activatedRoute.params.subscribe(l=>{const g=l.id;
1this.shopId=g,""!=g&&this.getShopProfileByShopId(g),this.backPageDirection=this.activatedRoute.snapshot.queryParams.page})}getShopProfileByShopId(l){this.customerService.getShopProfilePreview(l).subscribe(g=>{this.shopProfile=g,this.shopProfile.rewies?.forEach(C=>{C.customerProfilePicture=this.customerService.getProfilePicture(C.customerProfilePicture)})})}checkDay(l){const g=this.toDayOfWeek(l);return!!this.shopProfile.workingHours?.find(C=>C.dayOfWeek===g)}getDay(l){const g=this.toDayOfWeek(l);return this.shopProfile.workingHours?.find(C=>C.dayOfWeek===g)}toDayOfWeek(l){if(Object.values(w.ob).includes(l))return l}deleteReview(l){this.adminService.deleteCommentByCommentId(l).subscribe(()=>{this.shopProfile.rewies=this.shopProfile.rewies?.filter(g=>g.id!==l)})}deleteImage(l){this.adminService.deleteImageByMediaId(l).subscribe(()=>{this.shopProfile.media=this.shopProfile.media?.filter(g=>g.id!==l)})}approveShop(l){this.adminService.approveShopByShopId(this.shopId,l).subscribe(()=>{this.shopProfile.approved=l})}static#e=this.\u0275fac=function(g){return new(g||h)(n.rXU(pe.m),n.rXU(V.nX),n.rXU(V.Ix),n.rXU(we.u),n.rXU(es.z))};static#t=this.\u0275cmp=n.VBU({type:h,selectors:[["app-shop-profile-preview"]],decls:12,vars:5,consts:[[1,"shop-profile-preview-container"],[1,"back-button-container","cursor_pointer"],[1,"back-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","23","height","16","viewBox","0 0 23 16","fill","none",1,"pc"],["d","M0.292892 7.29289C-0.0976315 7.68342 -0.0976315 8.31658 0.292892 8.70711L6.65685 15.0711C7.04738 15.4616 7.68054 15.4616 8.07107 15.0711C8.46159 14.6805 8.46159 14.0474 8.07107 13.6569L2.41421 8L8.07107 2.34315C8.46159 1.95262 8.46159 1.31946 8.07107 0.928932C7.68054 0.538408 7.04738 0.538408 6.65685 0.928932L0.292892 7.29289ZM23 7L1 7V9L23 9V7Z","fill","#0E0E0E"],["xmlns","http://www.w3.org/2000/svg","width","17","height","8","viewBox","0 0 17 8","fill","none",1,"phone"],["d","M0.646446 3.64645C0.451183 3.84171 0.451183 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.73079 7.34027 4.73079 7.02369 4.53553 6.82843L1.70711 4L4.53553 1.17157C4.73079 0.976311 4.73079 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM17 3.5L1 3.5V4.5L17 4.5V3.5Z","fill","#989898"],["class","admin-options",4,"ngIf"],["class","shop-profile-preview",4,"ngIf"],[1,"admin-options"],["class","verify-shop button",3,"click",4,"ngIf"],[1,"verify-shop","button",3,"click"],[1,"shop-profile-preview"],["class","shop-information",4,"ngIf"],[1,"shop-sections"],[1,"phone"],[1,"shop-name"],["class","shop-statuses",4,"ngIf"],["class","rating",4,"ngIf"],[1,"navigation-container"],[1,"link",3,"click","ngClass"],[1,"shop-sections-content"],["class","information-section",4,"ngIf"],["class","reviews-section",4,"ngIf"],["class","open-hours-section",4,"ngIf"],[1,"shop-information"],[1,"shop-pictures"],["class","image",4,"ngFor","ngForOf"],[1,"description"],[1,"about-us"],[1,"underline","phone"],["class","information-section phone",4,"ngIf"],[1,"underline"],[1,"provided-information"],[1,"title"],[1,"provided-blocks"],["class","provided-block",4,"ngFor","ngForOf"],[1,"image"],["alt","",1,"picture",3,"click","src"],["class","isDeletePopUp",4,"ngIf"],[1,"isDeletePopUp"],["xmlns","http://www.w3.org/2000/svg","width","9","height","12","viewBox","0 0 9 12","fill","none",3,"click"],["d","M8.13462 1.38462H6.23077V1.03846C6.23077 0.464928 5.76584 0 5.19231 0H3.80769C3.23416 0 2.76923 0.464928 2.76923 1.03846V1.38462H0.865385C0.387454 1.38462 0 1.77207 0 2.25V2.94231C0 3.13349 0.154969 3.28846 0.346154 3.28846H8.65385C8.84503 3.28846 9 3.13349 9 2.94231V2.25C9 1.77207 8.61255 1.38462 8.13462 1.38462ZM3.46154 1.03846C3.46154 0.847644 3.61688 0.692308 3.80769 0.692308H5.19231C5.38313 0.692308 5.53846 0.847644 5.53846 1.03846V1.38462H3.46154V1.03846Z","fill","white"],["d","M0.656997 3.98047C0.59523 3.98047 0.546011 4.03209 0.548954 4.09379L0.83453 10.0875C0.860925 10.6422 1.31655 11.0766 1.87169 11.0766H7.12847C7.68362 11.0766 8.13924 10.6422 8.16564 10.0875L8.45121 4.09379C8.45416 4.03209 8.40494 3.98047 8.34317 3.98047H0.656997ZM5.8847 4.84585C5.8847 4.6546 6.0396 4.4997 6.23085 4.4997C6.4221 4.4997 6.57701 4.6546 6.57701 4.84585V9.34585C6.57701 9.5371 6.4221 9.69201 6.23085 9.69201C6.0396 9.69201 5.8847 9.5371 5.8847 9.34585V4.84585ZM4.15393 4.84585C4.15393 4.6546 4.30883 4.4997 4.50008 4.4997C4.69133 4.4997 4.84624 4.6546 4.84624 4.84585V9.34585C4.84624 9.5371 4.69133 9.69201 4.50008 9.69201C4.30883 9.69201 4.15393 9.5371 4.15393 9.34585V4.84585ZM2.42316 4.84585C2.42316 4.6546 2.57806 4.4997 2.76931 4.4997C2.96056 4.4997 3.11547 4.6546 3.11547 4.84585V9.34585C3.11547 9.5371 2.96056 9.69201 2.76931 9.69201C2.57806 9.69201 2.42316 9.5371 2.42316 9.34585V4.84585Z","fill","white"],[1,"shop-statuses"],[1,"verified","shop-status",3,"ngClass"],[4,"ngIf"],[1,"rating"],["xmlns","http://www.w3.org/2000/svg","width","22","height","20","viewBox","0 0 22 20","fill","none"],["d","M11.4478 1.02492L13.8606 5.88119C14.079 6.32078 14.4987 6.6257 14.9843 6.69758L20.3485 7.49167C20.7572 7.55218 20.9203 8.0542 20.6252 8.34339L16.7523 12.1388C16.4017 12.4824 16.2414 12.9757 16.3231 13.4598L17.2255 18.8068C17.2942 19.2142 16.8672 19.5245 16.5009 19.3332L11.6945 16.8226C11.2594 16.5954 10.7406 16.5954 10.3055 16.8226L5.49906 19.3332C5.13282 19.5245 4.70578 19.2142 4.77454 18.8068L5.67694 13.4598C5.75863 12.9757 5.59832 12.4824 5.24774 12.1388L1.37477 8.34339C1.07966 8.0542 1.24278 7.55218 1.65151 7.49167L7.0157 6.69758C7.50128 6.6257 7.92096 6.32078 8.13937 5.88119L10.5522 1.02493C10.7361 0.65489
16 11.2639 0.654897 11.4478 1.02492Z","fill","white","stroke","#FF5E3A",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","22","height","20","viewBox","0 0 22 20","fill","none",3,"click"],["d","M11.4478 1.02492L13.8606 5.88119C14.079 6.32078 14.4987 6.6257 14.9843 6.69758L20.3485 7.49167C20.7572 7.55218 20.9203 8.0542 20.6252 8.34339L16.7523 12.1388C16.4017 12.4824 16.2414 12.9757 16.3231 13.4598L17.2255 18.8068C17.2942 19.2142 16.8672 19.5245 16.5009 19.3332L11.6945 16.8226C11.2594 16.5954 10.7406 16.5954 10.3055 16.8226L5.49906 19.3332C5.13282 19.5245 4.70578 19.2142 4.77454 18.8068L5.67694 13.4598C5.75863 12.9757 5.59832 12.4824 5.24774 12.1388L1.37477 8.34339C1.07966 8.0542 1.24278 7.55218 1.65151 7.49167L7.0157 6.69758C7.50128 6.6257 7.92096 6.32078 8.13937 5.88119L10.5522 1.02493C10.7361 0.654896 11.2639 0.654897 11.4478 1.02492Z","fill","white","stroke","#FF5E3A",3,"ngClass"],[1,"information-section","phone"],[1,"street-container","address-section"],["xmlns","http://www.w3.org/2000/svg","width","10","height","14","viewBox","0 0 10 14","fill","none"],["d","M5 0C6.32554 0.00175836 7.59629 0.529107 8.53359 1.46641C9.47089 2.40371 9.99824 3.67446 10 5C10 8.58958 5.34167 13.0854 5.14375 13.275C5.10525 13.3124 5.05368 13.3333 5 13.3333C4.94632 13.3333 4.89475 13.3124 4.85625 13.275C4.65833 13.0854 0 8.58958 0 5C0.00175858 3.67446 0.529108 2.40371 1.46641 1.46641C2.40371 0.529107 3.67446 0.00175836 5 0ZM5 7.29167C5.45325 7.29167 5.89632 7.15726 6.27318 6.90545C6.65004 6.65364 6.94377 6.29573 7.11722 5.87698C7.29067 5.45824 7.33606 4.99746 7.24763 4.55292C7.15921 4.10838 6.94095 3.70004 6.62045 3.37955C6.29996 3.05905 5.89162 2.84079 5.44708 2.75237C5.00254 2.66394 4.54176 2.70933 4.12302 2.88278C3.70427 3.05623 3.34636 3.34996 3.09455 3.72682C2.84274 4.10368 2.70833 4.54675 2.70833 5C2.7087 5.60768 2.95026 6.19036 3.37995 6.62005C3.80964 7.04974 4.39232 7.2913 5 7.29167Z","fill","#FF5E3A"],[1,"street"],[1,"ph
1one-container","address-section"],["xmlns","http://www.w3.org/2000/svg","width","11","height","12","viewBox","0 0 11 12","fill","none"],["d","M10.6462 8.5865C10.6161 8.56267 8.43333 6.9893 7.8342 7.10224C7.5482 7.15284 7.38467 7.3479 7.0565 7.7384C7.0037 7.80147 6.87683 7.95254 6.7782 8.05997C6.57081 7.99233 6.36851 7.90999 6.17283 7.81357C5.16286 7.32187 4.34683 6.50585 3.85513 5.49587C3.75865 5.30022 3.67631 5.09792 3.60873 4.8905C3.71653 4.7915 3.8676 4.66464 3.93213 4.61037C4.3208 4.28404 4.51623 4.1205 4.56683 3.83377C4.6706 3.23977 3.09833 1.04197 3.08183 1.02217C3.0105 0.920263 2.9174 0.835487 2.80928 0.773975C2.70116 0.712463 2.58072 0.675754 2.45667 0.666504C1.8194 0.666504 0 3.02674 0 3.4242C0 3.4473 0.0333667 5.79544 2.92893 8.74087C5.87143 11.6331 8.2192 11.6665 8.2423 11.6665C8.64013 11.6665 11 9.8471 11 9.20984C10.9909 9.08622 10.9544 8.96618 10.8932 8.85838C10.832 8.75059 10.7476 8.65773 10.6462 8.5865Z","fill","#FF5E3A"],[1,"phones"],[1,"web-site-container","address-section"],["d","M10.9989 6.41571C10.9764 6.90822 10.8889 7.38322 10.7464 7.83323L9.00391 6.99822C9.01891 6.80822 9.02891 6.61321 9.03391 6.41571H10.9989Z","fill","#FF5E3A"],["d","M0 6.41653H1.96402C1.98077 7.11029 2.06728 7.77355 2.21128 8.38806H0.461256C0.193252 7.78005 0.0312504 7.11529 0 6.41653Z","fill","#FF5E3A"],["d","M0.461256 3.94308H2.21128C2.06728 4.55759 1.98102 5.22085 1.96402 5.91461H0C0.0312504 5.21585 0.193502 4.55109 0.461256 3.94308Z","fill","#FF5E3A"],["d","M5.75 3.44131V0.665527C6.77476 0.818029 7.65702 1.89754 8.14128 3.44131H5.75Z","fill","#FF5E3A"],["d","M8.28078 3.94308C8.42878 4.55109 8.51803 5.21585 8.53528 5.91461H5.75V3.94308H8.28078Z","fill","#FF5E3A"],["d","M5.25066 0.665527V3.44131H2.85938C3.34388 1.89779 4.22589 0.818279 5.25066 0.665527Z","fill","#FF5E3A"],["d","M5.25038 3.94308V5.91461H2.46484C2.48209 5.21585 2.57159 4.55109 2.71935 3.94308H5.25013H5.25038Z","fill","#FF5E3A"],["d","M2.46484 6.41653H5.25013V8.38806H2.7196C2.57185 7.78005 2.48209 7.11529 2.46484 6.41653Z","fill","#FF5E3A"],["d","M5.25066 8.88999V11.6658C4.22564 11.513 3.34363 10.4335 2.85938 8.88999H5.25066Z","fill","#FF5E3A"],["d","M6.99252 10.9733C6.62001 11.3559 6.19751 11.6009 5.75 11.6659V8.89082H6.70251L6.87501 10.6383C6.88751 10.7608 6.93001 10.8758 6.99252 10.9733Z","fill","#FF5E3A"],["d","M5.75 6.41571H6.79501C6.76501 6.43821 6.73751 6.46571 6.71251 6.49321C6.57001 6.64821 6.50001 6.85822 6.52251 7.07072L6.65251 8.38823H5.75V6.41571Z","fill","#FF5E3A"],["d","M8.53407 6.41571C8.53157 6.53321 8.52657 6.65071 8.51907 6.76571L7.78906 6.41571H8.53407Z","fill","#FF5E3A"],["d","M9.03632 5.91461C9.01957 5.22085 8.93306 4.55734 8.78906 3.94308H10.5391C10.8071 4.55109 10.9691 5.21585 11.0003 5.91461H9.03632Z","fill","#FF5E3A"],["d","M10.2885 3.44133H8.65752C8.34251 2.38932 7.85126 1.51556 7.25 0.932053C8.54302 1.36731 9.62278 2.27082 10.2885 3.44133Z","fill","#FF5E3A"],["d","M3.75313 0.932053C3.15187 1.51556 2.66087 2.38932 2.34561 3.44133H0.714844C1.38035 2.27082 2.45987 1.36731 3.75313 0.932053Z","fill","#FF5E3A"],["d","M0.710938 8.88999H2.34196C2.65696 9.942 3.14822 10.816 3.74948 11.3993C2.45621 10.964 1.37645 10.0605 0.710938 8.88999Z","fill","#FF5E3A"],["d","M10.6096 8.32195L7.37782 6.77044C7.20207 6.68618 7.00157 6.82644 7.02082 7.02044L7.37332 10.588C7.39457 10.8032 7.66058 10.8917 7.80658 10.7322L8.46609 10.012L9.23084 11.1042C9.38935 11.3305 9.7011 11.3855 9.9271 11.227L10.3366 10.9402C10.5629 10.7817 10.6179 10.47 10.4594 10.244L9.6946 9.15172L10.5971 8.77846C10.7969 8.69571 10.8044 8.41571 10.6096 8.32195Z","fill","#FF5E3A"],["target","_blank",3,"href"],["class","web-site-container address-section",4,"ngIf"],[3,"href"],[1,"provided-block"],["xmlns","http://www.w3.org/2000/svg","width","10","height","7","viewBox","0 0 10 7","fill","none"],["d","M1 3L4 6L9 1","stroke","#FF5E3A"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 22 20","fill","none"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 22 20","fill","none",3,"click"],[1,"information-section"],[1,"reviews-section"],[1,"reviews"],["class","review",4,"ngFor","ngForOf"],[1,"review"],[1,"review-header-container"],[1,"picture"],["alt","",3,"src"],[1,"name__rating"],[1,"text"],["class","delete-review",4,"ngIf"],[1,"delete-review"],["xmlns","http://www.w3.org/2000/svg","width","10","height","11","viewBox","0 0 3 11","fill","none",3,"click"],["d","M-0.000374838 9.97675C-0.000374826 9.69942 0.0956253 9.45942 0.287625 9.25675C0.479625 9.06475 0.719625 8.96875 1.00762 8.96875C1.29562 8.96875 1.53562 9.06475 1.72762 9.25675C1.91962 9.45942 2.01562 9.69942 2.01562 9.97675C2.01562 10.2541 1.91962 10.4887 1.72762 10.6807C1.53562 10.8834 1.29562 10.9847 1.00762 10.9847C0.719625 10.9847 0.479625 10.8834 0.287625 10.6807C0.0956252 10.4887 -0.00037485 10.2541 -0.000374838 9.97675Z","fill","black"],["d","M-0.000374838 5.49237C-0.000374826 5.21504 0.0956253 4.97504 0.287625 4.77237C0.479625 4.58037 0.719625 4.48437 1.00
1762 4.48437C1.29562 4.48437 1.53562 4.58037 1.72762 4.77237C1.91962 4.97504 2.01562 5.21504 2.01562 5.49237C2.01562 5.76971 1.91962 6.00437 1.72762 6.19637C1.53562 6.39904 1.29562 6.50037 1.00762 6.50037C0.719625 6.50037 0.479625 6.39904 0.287625 6.19637C0.0956252 6.00437 -0.00037485 5.76971 -0.000374838 5.49237Z","fill","black"],["d","M-0.000374838 1.008C-0.000374826 0.730667 0.0956253 0.490667 0.287625 0.288C0.479625 0.0959999 0.719625 -5.665e-08 1.00762 -4.40611e-08C1.29562 -3.14722e-08 1.53562 0.096 1.72762 0.288C1.91962 0.490667 2.01562 0.730667 2.01562 1.008C2.01562 1.28533 1.91962 1.52 1.72762 1.712C1.53562 1.91467 1.29562 2.016 1.00762 2.016C0.719625 2.016 0.479625 1.91467 0.287625 1.712C0.0956252 1.52 -0.00037485 1.28533 -0.000374838 1.008Z","fill","black"],["class","delete-review-popup",3,"click","clickOutside",4,"ngIf"],[1,"delete-review-popup",3,"click","clickOutside"],[1,"open-hours-section"],["class","day-container",4,"ngFor","ngForOf"],[1,"day-container"],[1,"day"],[1,"status"],["class","open",4,"ngIf"],["class","close",4,"ngIf"],["class","time",4,"ngIf"],[1,"open"],[1,"close"],[1,"time"]],template:function(g,C){1&g&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2),n.bIt("click",function(){return C.goBack()}),n.qSk(),n.j41(3,"svg",3),n.nrm(4,"path",4),n.k0s(),n.j41(5,"svg",5),n.nrm(6,"path",6),n.k0s(),n.joV(),n.j41(7,"p"),n.EFF(8),n.nI1(9,"translate"),n.k0s()(),n.DNE(10,ts,3,2,"div",7),n.k0s(),n.DNE(11,Ol,23,19,"div",8),n.k0s()),2&g&&(n.R7$(8),n.JRh(n.bMT(9,3,"i18n.app.pages.selection.back")),n.R7$(2),n.Y8G("ngIf",C.isAdmin),n.R7$(),n.Y8G("ngIf",C.shopProfile.shopName))},dependencies:[M.YU,M.Sq,M.bT,lt.z,it.D9,mr.b],styles:[".shop-profile-preview-container[_ngcontent-%COMP%]{margin:0 32px;border-radius:10px;background:#fff;padding:32px 42px;min-height:100svh}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]{column-gap:15px;display:flex;font-size:20px;font-weight:700;align-items:center;justify-content:space-between}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{align-items:center;column-gap:10px;display:flex}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .admin-options[_ngcontent-%COMP%]{display:flex;column-gap:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .admin-options[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;align-items:center;width:161px;font-size:13px;font-weight:700;height:41px;border-radius:39px;background:#ff5e3a}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .admin-options[_ngcontent-%COMP%]   .check-shop[_ngcontent-%COMP%]{background:var(--color-theme);color:var(--color-white)}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   .admin-options[_ngcontent-%COMP%]   .verify-shop[_ngcontent-%COMP%]{border:2px solid var(--color-theme);color:var(--color-theme);background:var(--color-white);margin-top:24px;margin-right:24px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]{margin-top:50px;display:flex;column-gap:50px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{width:440px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;column-gap:8px;row-gap:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{position:relative;width:104px;
1height:80px;object-fit:cover;border-radius:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]:first-child{width:100%;height:301px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;border-radius:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   .isDeletePopUp[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;top:0;z-index:3;width:100%;height:100%;border-radius:10px;opacity:.7;background:#4c4c4c}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-pictures[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   .isDeletePopUp[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{cursor:pointer;z-index:4}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-top:35px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{display:flex;font-size:24px;font-weight:500;column-gap:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]{margin-top:12px;display:flex;column-gap:3px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:13px;height:13px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .about-us[_ngcontent-%COMP%]{margin-top:27px;font-size:16px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{width:100%;border-bottom:1px dashed #CED3DB;margin-top:35px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .provided-information[_ngcontent-%COMP%]{margin-top:32px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .provided-information[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .provided-information[_ngcontent-%COMP%]   .provided-blocks[_ngcontent-%COMP%]{margin-top:14px;row-gap:6px;column-gap:6px;display:flex;flex-wrap:wrap}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .provided-information[_ngcontent-%COMP%]   .provided-blocks[_ngcontent-%COMP%]   .provided-block[_ngcontent-%COMP%]{height:23px;align-items:center;border-radius:7px;border:1px solid #FF5E3A;display:flex;column-gap:7px;padding:0 5px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]{box-shadow:3px 3px 16.9px 2px #bebebe40;display:flex;border-radius:10px;width:-moz-fit-content;width:fit-content;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{cursor:pointer;border-radius:10px;height:49px;padding:0 30px;
1display:flex;align-items:center;min-width:-moz-fit-content;min-width:fit-content}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background:#ff5e3a;color:#fff;font-weight:500}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .un-selected[_ngcontent-%COMP%]{color:#989898}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]{width:382px;margin-top:45px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]{display:flex;row-gap:20px;flex-direction:column}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]   .address-section[_ngcontent-%COMP%]{font-size:16px;display:flex;column-gap:13px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]   .address-section[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:3px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:30px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]{display:flex;column-gap:15px;align-items:center}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{width:48px;height:48px;flex-shrink:0;border-radius:24px;box-shadow:3px 3px 16.9px 2px #bebebe40}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;border-radius:50%}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]   .name__rating[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:5px;font-size:16px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]   .name__rating[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]{display:flex;column-gap:5px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-top:15px;font-size:16px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .delete-review[_ngcontent-%COMP%]{position:relative;cursor:pointer}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .delete-review[_ngcontent-%COMP%]   .delete-review-popup[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;right:10px;top:-8px;padding:0 15px;min-width:max-content;height:39px;border-radius:10px;color:#dc5a54;font-weight:400;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .open-hours-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:18px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .open-hours-section[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]{max-width:250px;display:flex;justify-content:space-between;font-size:16px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .open-hours-section[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{margin-top:-1px;font-size:10px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .open-hours-section[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .open[_ngcontent-%COMP%]{color:#ff5e3a}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .open-hours-section[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{color:#989898}.shop-statuses[_ngcontent-%COMP%]{display:flex;column-gap:10px;row-gap:6px;width:130px}.shop-statuses[_ngcontent-%COMP%]   .shop-status[_ngcontent-%COMP%]{min-width:-moz-fit-content;min-width:fit-content;height:22px;padding:0 10px;border-radius:10px;display:flex;align-items:center;box-shadow:3px 3px 16.9px #a1a1a140;font-style:italic;font-size:12px}.shop-statuses[_ngcontent-%COMP%]   .green-block[_ngcontent-%COMP%]{background:#e6f4e7;color:#5fba34}.shop-statuses[_ngcontent-%COMP%]   .red-block[_ngcontent-%COMP%]{color:#dc5a54;background:#dc5a541f}.shop-statuses[_ngcontent-%COMP%]   .yellow-block[_ngcontent-%COMP%]{background:#ffc83a17;color:#ffa800}@media (max-width: 980px){.shop-profile-preview-container[_ngcontent-%COMP%]{margin:0 18px 43px;padding:32px 27px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]{flex-direction:column-reverse;row-gap:30px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]{display:flex;margin-top:24px;flex-direction:column;row-gap:13px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]   .address-section[_ngcontent-%COMP%]{display:flex;align-items:center;column-gap:13px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .shop-sections-content[_ngcontent-%COMP%]   .information-section[_ngcontent-%COMP%]{display:none}}@media (max-width: 580px){.shop-profile-preview-container[_ngcontent-%COMP%]{margin:0;padding:0;background:var(--color-white)}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{margin-top:49px;color:#989898;font-size:14px;font-weight:400;margin-left:24px}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:flex}.shop-profile-preview-container[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   .pc[_ngcontent-%COMP%]{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]{row-gap:0;margin-top:24px;margin-bottom:50px;padding:0 24px 24px;border-radius:10px 10px 0 0;background:#fff}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:-20px;width:unset}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:24px 0}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .shop-name[_ng
1content-%COMP%], .shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]{display:none}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .about-us[_ngcontent-%COMP%], .shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .provided-information[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:24px;font-size:16px;font-style:normal;font-weight:500}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]{margin-top:5px;display:flex;column-gap:2px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{column-gap:5px;display:flex}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]{margin-top:12px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .navigation-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{height:37px;padding:0 22px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .review-header-container[_ngcontent-%COMP%]   .name__rating[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{max-width:14px}.shop-profile-preview-container[_ngcontent-%COMP%]   .shop-profile-preview[_ngcontent-%COMP%]   .shop-sections[_ngcontent-%COMP%]   .reviews-section[_ngcontent-%COMP%]   .reviews[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:14px}}.star-selected[_ngcontent-%COMP%]{fill:var(--color-theme);filter:invert(69%) sepia(89%) saturate(5074%) hue-rotate(337deg) brightness(102%) contrast(101%)}"]})}return h})();var as=P(4770),Bn=P(467);const xr=[{status:w.dX.NotSet,statusName:new w.ur({en:"Not Set",de:"Nicht festgelegt"})},{status:w.dX.WaitingForPayment,statusName:new w.ur({en:"Waiting for Payment",de:"Warten auf Zahlung"})},{status:w.dX.ChargeSuccess,statusName:new w.ur({en:"Charge Success",de:"Erfolgreich belastet"})},{status:w.dX.CaptureFail,statusName:new w.ur({en:"Capture Fail",de:"Erfassung fehlgeschlagen"})},{status:w.dX.PaymentSuccess,statusName:new w.ur({en:"Payment Success",de:"Zahlungserfolg"})},{status:w.dX.ChargeFail,statusName:new w.ur({en:"Charge Fail",de:"Belastung fehlgeschlagen"})}];var ls=P(1413),cs=P(9308),Pl=P(2016),bl=P(2757),Pr=P(5154);let Ml=(()=>{class h{constructor(l,g){this.appConfig=l,this.authService=g,this.customerServiceRequestId="",this.sharedObj=new ls.B,this.start()}setConnection(){var g,l=this;this.connection=(new cs.$).withUrl(`${this.appConfig.Config.API_BASE_URL}/hubs/serviceHub`,{accessTokenFactory:(g=(0,Bn.A)(function*(){return l.authService.getAccessTokenForHub()}),function(){return g.apply(this,arguments)}),skipNegotiation:!0,transport:Pl.w.WebSockets}).configureLogging(bl.$.None).build(),this.connection.on(Pr.G6.ReceiveEventCustomerServiceRequestOnClient,g=>{g&&this.mapReceivedService(g)}),this.connection.onclose(()=>{setTimeout(()=>{this.start()},5e3)})}mapReceivedService(l){this.sharedObj.next(l)}retrieveMappedObjectForCustomerServiceRequest(l){return this.customerServiceRequestId=l,this.sharedObj.asObservable()}start(){var l=this;return(0,Bn.A)(function*(){l.setConnection();try{yield l.connection.start(),yield l.connection.invoke(Pr.G6.AddToGroupAsync,l.customerServiceRequestId)}catch(g){console.log(g),setTimeout(()=>{l.start()},5e3)}})()}static#e=this.\u0275fac=function(g){return new(g||h)(n.KVO(Pe.o),n.KVO(we.u))};static#t=this.\u0275prov=n.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();var ds=P(8345),us=P(8752),wl=P(5219),Sl=P(584),Pi=P(4731),yl=P(3789),br=P(6345);let ps=(()=>{class h{transform(l){return null==l?"":`${(l/1e3).toFixed(2)} km`}static#e=this.\u0275fac=function(g){return new(g||h)};static#t=this.\u0275pipe=n.EJ8({name:"metersToKm",type:h,pure:!0})}return h})(),$t=(()=>{class h{transform(l){if(null==l)return"";const g="string"==typeof l?parseFloat(l):l;return isNaN(g)?"":g.toFixed(2)}static#e=this.\u0275fac=function(g){return new(g||h)};static#t=this.\u0275pipe=n.EJ8({name:"priceFormat",type:h,pure:!0})}return h})();const bi=["cardNumber"],vn=["cardExpiry"],gt=["cardCvc"],Nn=h=>({"show-detail-icon-open":h}),El=h=>({width:h}),Rl=h=>({"left.%":h}),Mr=(h,_)=>({"left.%":h,"right.%":_}),Mi=h=>({"right-align":h}),zn=h=>({"color-svg":h}),ht=h=>({"star-selected":h});function Il(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",24),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.openFeedbackPopUp())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.confirm-pick-up")))}function Al(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",24),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.openReportPopUp())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.pay")))}function wr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",25),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.openBikeAssessmentModal())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.check-new-offer")))}function gs(h,_){1&h&&(n.qSk(),n.j41(0,"svg",60),n.nrm(1,"path",61),n.k0s())}function hs(h,_){1&h&&(n.j41(0,"div",62),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.e-bike")))}function Tl(h,_){if(1&h&&(n.j41(0,"p",63),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"price"),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.E5c(" ",n.bMT(2,3,"i18n.app.pages.customer.service-request.cost-cover"),": ",n.bMT(3,5,l.customerServiceRequest.spendingLimit)," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode," ")}}function _s(h,_){if(1&h&&(n.j41(0,"div",66)(1,"div",67)(2,"p",68),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"p",69),n.EFF(6),n.nI1(7,"translate"),n.k0s()(),n.nrm(8,"div",70),n.j41(9,"p",71),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.j41(12,"p",72),n.EFF(13),n.k0s()()),2&h){const l=n.XpG(3);n.R7$(3),n.JRh(n.bMT(4,5,"i18n.app.pages.shop.profile.pickupService")),n.R7$(3),n.JRh(n.bMT(7,7,"i18n.app.pages.customer.service-request.pay-service.delivery")),n.R7$(4),n.JRh(n.bMT(11,9,"i18n.app.pages.shop.service-request.info.fix-price")),n.R7$(3),n.Lme("",l.customerServiceRequest.pickUpServicePrice,".00 ",null==l.customerServiceRequest.serviceDefinition||null==l.customerServiceRequest.serviceDefinition.currency?null:l.customerServiceRequest.serviceDefinition.currency.isoCode,"")}}function vs(h,_){1&h&&n.nrm(0,"div",77)}function Cs(h,_){if(1&h&&(n.j41(0,"div",78)(1,"div",79),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",80),n.EFF(5),n.k0s()()),2&h){const l=n.XpG(3);n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.customer.bikes.problem")),n.R7$(3),n.JRh(l.customerServiceRequest.description)}}function kl(h,_){if(1&h&&n.nrm(0,"img",88),2&h){const l=n.XpG(2).$implicit;n.FS9("src",l.fullImageUri,n.B4B)}}function ms(h,_){if(1&h&&n.nrm(0,"video",89),2&h){const l=n.XpG(2).$implicit;n.FS9("src",l.fullImageUri,n.B4B)}}function fs(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",85),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(4);return n.Njj(y.fullImage=C.fullImageUri)}),n.DNE(1,kl,1,1,"img",86)(2,ms,1,1,"video",87),n.k0s()}if(2&h){const l=n.XpG().$implicit,g=n.XpG(4);n.R7$(),n.Y8G("ngIf",l.mediaType===g.MediaType.Image),n.R7$(),n.Y8G("ngIf",l.mediaType===g.MediaType.Video)}}function Fl(h,_){if(1&h&&(n.j41(0,"div"),n.DNE(1,fs,3,2,"div",84),n.k0s()),2&h){const l=_.index,g=n.XpG(4);n.R7$(),n.Y8G("ngIf",l<2||g.showAllImages)}}function Dl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",90),n.bIt("click",function(){n.eBV(l);const C=n.XpG(4);return n.Njj(C.showAllImages=!0)}),n.qSk(),n.j41(1,"svg",91)(2,"g",92),n.nrm(3,"path",93)(4,"path",94)(5,"path",95),n.k0s(),n.j41(6,"def
1s")(7,"clipPath",96),n.nrm(8,"rect",97),n.k0s()()(),n.joV(),n.j41(9,"div",10),n.EFF(10),n.nI1(11,"translate"),n.k0s()()}if(2&h){const l=n.XpG(4);n.R7$(10),n.Lme("",n.bMT(11,2,"i18n.app.pages.customer.service-request.show-all-images")," +",l.problemMedia.length-2,"")}}function Vl(h,_){if(1&h&&(n.j41(0,"div",81),n.DNE(1,Fl,2,1,"div",82)(2,Dl,12,4,"div",83),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.Y8G("ngForOf",l.problemMedia),n.R7$(),n.Y8G("ngIf",l.problemMedia.length>2&&!l.showAllImages)}}function Os(h,_){if(1&h&&(n.j41(0,"div",64)(1,"div",65)(2,"div",66)(3,"div",67)(4,"p",68),n.EFF(5),n.nI1(6,"multilingualPropertyTranslate"),n.k0s(),n.j41(7,"p",69),n.EFF(8),n.nI1(9,"multilingualPropertyTranslate"),n.k0s()(),n.nrm(10,"div",70),n.j41(11,"p",71),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.j41(14,"p",72),n.EFF(15),n.k0s()(),n.DNE(16,_s,14,11,"div",73),n.k0s(),n.DNE(17,vs,1,0,"div",74)(18,Cs,6,4,"div",75)(19,Vl,3,2,"div",76),n.k0s()),2&h){const l=n.XpG(2);n.R7$(5),n.JRh(n.bMT(6,9,null==l.customerServiceRequest.serviceDefinition?null:l.customerServiceRequest.serviceDefinition.title)),n.R7$(3),n.JRh(n.bMT(9,11,null==l.customerServiceRequest.serviceDefinition?null:l.customerServiceRequest.serviceDefinition.serviceType)),n.R7$(4),n.JRh(n.bMT(13,13,"i18n.app.pages.shop.service-request.info.estimate-cost")),n.R7$(3),n.Lme("~ ",null==l.customerServiceRequest.serviceDefinition?null:l.customerServiceRequest.serviceDefinition.price," ",null==l.customerServiceRequest.serviceDefinition||null==l.customerServiceRequest.serviceDefinition.currency?null:l.customerServiceRequest.serviceDefinition.currency.isoCode,""),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.pickUpService),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.description&&l.customerServiceRequest.description.length>0),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.description&&l.customerServiceRequest.description.length>0),n.R7$(),n.Y8G("ngIf",l.problemMedia.length>0)}}function Ll(h,_){if(1&h&&(n.j41(0,"div",79),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Lme("",n.bMT(2,2,"i18n.app.pages.shop.service-request.info.offers-label")," (",null==l.customerServiceRequest.shopServiceRequestReplies?null:l.customerServiceRequest.shopServiceRequestReplies.length,")")}}function Sr(h,_){1&h&&(n.j41(0,"div",79),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.my-offer-label")))}function ql(h,_){if(1&h&&(n.j41(0,"div",102),n.nrm(1,"img",103),n.j41(2,"p"),n.EFF(3),n.nI1(4,"translate"),n.j41(5,"a",104),n.EFF(6),n.k0s(),n.j41(7,"i"),n.EFF(8),n.nI1(9,"translate"),n.k0s()()()),2&h){const l=n.XpG(3);n.R7$(3),n.SpI("",n.bMT(4,5,"i18n.app.pages.customer.service-request.call-pick-up")," "),n.R7$(2),n.Mz_("href","tel:",l.deliveryPhone,"",n.B4B),n.R7$(),n.JRh(l.deliveryPhone),n.R7$(2),n.JRh(n.bMT(9,7,"i18n.app.pages.customer.service-request.call-pick-up.de"))}}function Bl(h,_){if(1&h&&(n.j41(0,"div",115),n.qSk(),n.j41(1,"svg",123)(2,"g",124),n.nrm(3,"rect",125)(4,"path",126),n.k0s(),n.j41(5,"defs")(6,"clipPath",127),n.nrm(7,"rect",128),n.k0s()()(),n.j41(8,"svg",123)(9,"g",124),n.nrm(10,"rect",125)(11,"path",126),n.k0s(),n.j41(12,"defs")(13,"clipPath",127),n.nrm(14,"rect",128),n.k0s()()(),n.j41(15,"svg",123)(16,"g",124),n.nrm(17,"rect",125)(18,"path",126),n.k0s(),n.j41(19,"defs")(20,"clipPath",127),n.nrm(21,"rect",128),n.k0s()()(),n.j41(22,"svg",123)(23,"g",124),n.nrm(24,"rect",125)(25,"path",126),n.k0s(),n.j41(26,"defs")(27,"clipPath",127),n.nrm(28,"rect",128),n.k0s()()(),n.j41(29,"svg",123)(30,"g",124),n.nrm(31,"rect",125)(32,"path",126),n.k0s(),n.j41(33,"defs")(34,"clipPath",127),n.nrm(35,"rect",128),n.k0s()()()()),2&h){const l=n.XpG(2).$implicit;n.R7$(4),n.Y8G("ngClass",n.eq3(5,zn,l.shopRating>1)),n.R7$(7),n.Y8G("ngClass",n.eq3(7,zn,l.shopRating>2)),n.R7$(7),n.Y8G("ngClass",n.eq3(9,zn,l.shopRating>3)),n.R7$(7),n.Y8G("ngClass",n.eq3(11,zn,l.shopRating>4)),n.R7$(7),n.Y8G("ngClass",n.eq3(13,zn,l.shopRating>5))}}function xs(h,_){if(1&h&&(n.j41(0,"div",129)(1,"div",79),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",130),n.EFF(5),n.k0s()()),2&h){const l=n.XpG(2).$implicit;n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.customer.bikes.comment")),n.R7$(3),n.JRh(l.message)}}function Ps(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",134),n.bIt("click",function(){n.eBV(l);const C=n.XpG(5);return n.Njj(C.openQrCode())}),n.qSk(),n.j41(1,"svg",123)(2,"g",135),n.nrm(3,"path",136),n.k0s(),n.j41(4,"defs")(5,"clipPath",137),n.nrm(6,"rect",138),n.k0s()()()()}}function bs(h,_){1&h&&n.nrm(0,"div",146)}function Ms(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",139),n.bIt("click",function(){n.eBV(l);const C=n.XpG(5);return n.Njj(C.openReportPopUp())}),n.DNE(1,bs,1,0,"div",140),n.qSk(),n.j41(2,"svg",141),n.nrm(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145),n.k0s()()}if(2&h){const l=n.XpG(5);n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment)}}function ws(h,_){1&h&&n.nrm(0,"div",146)}function Ss(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",139),n.bIt("click",function(){n.eBV(l);const C=n.XpG(5);return n.Njj(C.chatOnClick())}),n.DNE(1,ws,1,0,"div",140),n.qSk(),n.j41(2,"svg",147)(3,"g",148),n.nrm(4,"path",149)(5,"path",150)(6,"path",151)(7,"path",152),n.k0s(),n.j41(8,"defs")(9,"clipPath",153),n.nrm(10,"rect",154),n.k0s()()()()}if(2&h){const l=n.XpG(5);n.R7$(),n.Y8G("ngIf",l.newMessages()>0)}}function ys(h,_){if(1&h&&(n.j41(0,"div",131),n.DNE(1,Ps,7,0,"div",132)(2,Ms,7,1,"div",133)(3,Ss,11,1,"div",133),n.k0s()),2&h){const l=n.XpG(4);n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.shopServiceRequestQrCode),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequest.shopServiceJobReport?null:l.customerServiceRequest.shopServiceJobReport.id),n.R7$(),n.Y8G("ngIf",l.shopOfferOptions())}}function Nl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",155),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2).$implicit,y=n.XpG(2);return n.Njj(y.choseShopServiceRequestReply(C))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.book")))}function Es(h,_){1&h&&(n.j41(0,"div",156),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.booked")))}function Rs(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",105)(1,"div",106)(2,"div",107)(3,"div",108)(4,"div")(5,"div",109),n.EFF(6),n.k0s(),n.j41(7,"div",110),n.EFF(8),n.k0s()(),n.j41(9,"div",111),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(2);
1return n.Njj(y.goToShopProfile(C.shopId))}),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.j41(12,"div",112)(13,"div",113)(14,"div",114),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.j41(17,"div",115),n.EFF(18),n.nI1(19,"metersToKm"),n.k0s()(),n.j41(20,"div",113)(21,"div",114),n.EFF(22),n.nI1(23,"translate"),n.k0s(),n.j41(24,"div",115),n.EFF(25),n.nI1(26,"customDate"),n.k0s()(),n.j41(27,"div",113)(28,"div",114),n.EFF(29),n.nI1(30,"translate"),n.k0s(),n.j41(31,"div",115),n.EFF(32),n.k0s()(),n.j41(33,"div",113)(34,"div",114),n.EFF(35),n.nI1(36,"translate"),n.k0s(),n.DNE(37,Bl,36,15,"div",116),n.k0s()()(),n.DNE(38,xs,6,4,"div",117),n.k0s(),n.j41(39,"div",118),n.DNE(40,ys,4,3,"div",119),n.j41(41,"div",120),n.DNE(42,Nl,3,3,"div",121)(43,Es,3,3,"div",122),n.j41(44,"div",111),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(2);return n.Njj(y.goToShopProfile(C.shopId))}),n.EFF(45),n.nI1(46,"translate"),n.k0s()()()()}if(2&h){const l=n.XpG().$implicit,g=n.XpG(2);n.R7$(6),n.JRh(l.shopName),n.R7$(2),n.LHq("",null==l.shopAddress?null:l.shopAddress.street," ",null==l.shopAddress?null:l.shopAddress.streetNumber,", ",null==l.shopAddress?null:l.shopAddress.zipcode," ",null==l.shopAddress?null:l.shopAddress.city,""),n.R7$(2),n.JRh(n.bMT(11,21,"i18n.app.pages.customer.service-request.shop-profile")),n.R7$(5),n.JRh(n.bMT(16,23,"i18n.app.pages.shop.service-request.info.distance")),n.R7$(3),n.JRh(n.bMT(19,25,l.shopDistanceInMeters)),n.R7$(4),n.JRh(n.bMT(23,27,"i18n.app.pages.shop.service-request.info.service-date")),n.R7$(3),n.JRh(n.bMT(26,29,l.estimatedJobEndDate)),n.R7$(4),n.JRh(n.bMT(30,31,"i18n.app.pages.shop.service-request.info.estimate-cost")),n.R7$(3),n.Lme("",l.estimatedCost," ",null==g.customerServiceRequest.currency?null:g.customerServiceRequest.currency.isoCode,""),n.R7$(3),n.JRh(n.bMT(36,33,"i18n.app.pages.customer.service-request.rating")),n.R7$(2),n.Y8G("ngIf",void 0!==l.shopRating),n.R7$(),n.Y8G("ngIf",l.message),n.R7$(2),n.Y8G("ngIf",g.shopOfferOptions()),n.R7$(),n.Y8G("ngClass",g.shopOfferOptions()?"book__shop-profile-booked":"book__shop-profile-un-booked"),n.R7$(),n.Y8G("ngIf",g.customerServiceRequest.status===g.CustomerServiceRequestStatusType.WaitingForOffers||g.customerServiceRequest.status===g.CustomerServiceRequestStatusType.OffersReceived),n.R7$(),n.Y8G("ngIf",g.customerServiceRequest.status!==g.CustomerServiceRequestStatusType.WaitingForOffers&&g.customerServiceRequest.status!==g.CustomerServiceRequestStatusType.OffersReceived),n.R7$(2),n.JRh(n.bMT(46,35,"i18n.app.pages.customer.service-request.shop-profile"))}}function zl(h,_){1&h&&(n.j41(0,"p",166),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.offer-accepted")))}function rt(h,_){1&h&&(n.j41(0,"p",167),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.offer-rejected")))}function yr(h,_){1&h&&(n.j41(0,"p",168),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.waiting-for-answer")))}function Is(h,_){1&h&&(n.j41(0,"p",167),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.ask-call")))}function Gl(h,_){1&h&&(n.j41(0,"p",167),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.shop-canceled")))}function Gn(h,_){if(1&h){const l=n.RV6();n.j41(0,"img",171),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(6);return n.Njj(y.fullImage="data:image/png;base64,"+C.thumbnail)}),n.k0s()}2&h&&n.Mz_("src","data:image/png;base64,",_.$implicit.thumbnail,"",n.B4B)}function As(h,_){if(1&h&&(n.j41(0,"div",169),n.DNE(1,Gn,1,2,"img",170),n.k0s()),2&h){const l=n.XpG().$implicit;n.R7$(),n.Y8G("ngForOf",l.media)}}function Ts(h,_){if(1&h&&(n.j41(0,"div",159),n.nrm(1,"div",53),n.j41(2,"div",160)(3,"div",161),n.DNE(4,zl,3,3,"p",162)(5,rt,3,3,"p",163)(6,yr,3,3,"p",164)(7,Is,3,3,"p",163)(8,Gl,3,3,"p",163),n.k0s(),n.j41(9,"div",107)(10,"div",108)(11,"div")(12,"div",109),n.EFF(13),n.k0s(),n.j41(14,"div",110),n.EFF(15),n.k0s()()(),n.j41(16,"div",112)(17,"div",113)(18,"div",114),n.EFF(19),n.nI1(20,"translate"),n.k0s(),n.j41(21,"div",115),n.EFF(22),n.k0s()(),n.j41(23,"div",113)(24,"div",114),n.EFF(25),n.nI1(26,"translate"),n.k0s(),n.j41(27,"div",115),n.EFF(28),n.nI1(29,"customDate"),n.k0s()()()(),n.j41(30,"div",129)(31,"div",79),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"div",130),n.EFF(35),n.k0s()(),n.DNE(36,As,2,1,"div",165),n.k0s()()),2&h){const l=_.$implicit,g=n.XpG(2).$implicit,C=n.XpG(2);n.R7$(4),n.Y8G("ngIf",l.bikeAssessmentReportStatus===C.BikeAssessmentReportStatus.Accepted),n.R7$(),n.Y8G("ngIf",l.bikeAssessmentReportStatus===C.BikeAssessmentReportStatus.CustomerRejected),n.R7$(),n.Y8G("ngIf",l.bikeAssessmentReportStatus===C.BikeAssessmentReportStatus.WaitingForAnswer),n.R7$(),n.Y8G("ngIf",l.bikeAssessmentReportStatus===C.BikeAssessmentReportStatus.CustomerAskForCall),n.R7$(),n.Y8G("ngIf",l.bikeAssessmentReportStatus===C.BikeAssessmentReportStatus.ShopCanceled),n.R7$(5),n.JRh(g.shopName),n.R7$(2),n.LHq("",null==g.shopAddress?null:g.shopAddress.street," ",null==g.shopAddress?null:g.shopAddress.streetNumber,", ",null==g.shopAddress?null:g.shopAddress.zipcode," ",null==g.shopAddress?null:g.shopAddress.city,""),n.R7$(4),n.JRh(n.bMT(20,18,"i18n.app.pages.customer.service-request.new-service-price")),n.R7$(3),n.Lme("",l.price," ",null==C.customerServiceRequest.currency?null:C.customerServiceRequest.currency.isoCode,""),n.R7$(3),n.JRh(n.bMT(26,20,"i18n.app.pages.shop.service-request.info.service-date")),n.R7$(3),n.JRh(n.bMT(29,22,l.jobEndDate)),n.R7$(4),n.JRh(n.bMT(33,24,"i18n.app.pages.customer.bikes.comment")),n.R7$(3),n.JRh(l.comment),n.R7$(),n.Y8G("ngIf",l.media&&l.media.length>0)}}function Hl(h,_){if(1&h&&(n.j41(0,"div",157),n.DNE(1,Ts,37,26,"div",158),n.k0s()),2&h){const l=n.XpG(3);n.R7$(),n.Y8G("ngForOf",l.customerServiceRequest.bikeAssessmentReports)}}function jl(h,_){if(1&h&&(n.j41(0,"div",98),n.DNE(1,ql,10,9,"div",99)(2,Rs,47,37,"div",100)(3,Hl,2,1,"div",101),n.k0s()),2&h){const l=_.$implicit,g=n.XpG(2);n.R7$(),n.Y8G("ngIf",g.customerServiceRequest.pickUpService&&(g.customerServiceRequest.status===g.CustomerServiceRequestStatusType.WaitingForPickUp||g.customerServiceRequest.status===g.CustomerServiceRequestStatusType.WaitingForDelivery)&&!l.rejected),n.R7$(),n.Y8G("ngIf",g.showOffer(l)),n.R7$(),n.Y8G("ngIf",g.customerServiceRequest.bikeAssessmentReports&&g.customerServiceRequest.bikeAssessmentReports.length>0&&g.showOffer(l))}}function Ul(h,_){1&h&&n.nrm(0,"img",185)}function $l(h,_){1&h&&(n.qSk(),n.j41(0,"svg",186),n.nrm(1,"path",187)(2,"path",188)(3,"path",189),n.k0s())}function Wl(h,_){if(1&h&&(n.j41(0,"div",177)(1,"div",43)(2,"p",79),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"p"),n.EFF(6),n.nI1(7,"customDate"),n.k0s(),n.j41(8,"p",178),n.EFF(9),n.k0s()(),n.j41(10,"div",179)(11,"p",79),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.j41(14,"p"),n.EFF(15),n.nI1(16,"priceFormat"),n.k0s()(),n.j41(17,"div",180)(18,"p",79),n.EFF(19),n.nI1(20,"translate"),n.k0s(),n.j41(21,"div",181),n.DNE(22,Ul,1,0,"img",182)(23,$l,4,0,"svg",183),n.j41(24,"p",184),n.EFF(25,"****"),n.k0s(),n.j41(26,"p"),n.EFF(27),n.k0s()()(),n.j41(28,"div",52)(29,"p",79),n.EFF(30),n.nI1(31,"translate"),n.k0s(),n.j41(32,"p"),n.EFF(33),n.k0s()()()),2&h){const l=_.$implicit,g=n.XpG(3);n.R7$(3),n.JRh(n.bMT(4,14,"i18n.app.pages.service-request.navigation.date")),n.R7$(3),n.JRh(n.bMT(7,16,l.operationDate)),n.R7$(3),n.E5c("",null==l.operationDate?null:l.operationDate.getHours(),":",null==l.operationDate?null:l.operationDate.getMinutes(),":",null==l.operationDate?null:l.operationDate.getSeconds(),""),n.R7$(3),n.JRh(n.bMT(13,18,"i18n.app.pages.customer.service-request.amount")),n.R7$(3),n.Lme("",n.bMT(16,20,l.amount),"",null==g.customerServiceRequest.currency?null:g.customerServiceRequest.currency.isoCode,""),n.R7$(4),n.JRh(n.bMT(20,22,"i18n.app.pages.customer.service-request.card-number")),n.R7$(3),n.Y8G("ngIf","visa"===(null==l.brand?null:l.brand.toLowerCase())),n.R7$(),n.Y8G("ngIf","mastercard"===(null==l.brand?null:l.brand.toLowerCase())),n.R7$(4),n.JRh(l.last4),n.R7$(3),n.JRh(n.bMT(31,24,"i18n.app.pages.customer.service-request.operation-type")),n.R7$(3),n.JRh(l.type)}}function Kl(h,_){if(1&h&&(n.j41(0,"div",172),n.nrm(1,"div",53),n.j41(2,"div",173)(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"div",174),n.EFF(7),n.nI1(8,"multilingualPropertyTranslate"),n.k0s()(),n.j41(9,"div",175),n.DNE(10,Wl,34,26,"div",176),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(4),n.JRh(n.bMT(5,3,"i18n.app.pages.customer.service-request.payment-details")),n.R7$(3),n.JRh(n.bMT(8,5,l.getPaymentStatusTranslations(null==l.customerServiceRequest.paymentDetails?null:l.customerServiceRequest.paymentDetails.status))),n.R7$(3),n.Y8G("ngForOf",null==l.customerServiceRequest.paymentDetails?null:l.customerServiceRequest.paymentDetails.payments)}}function Er(h,_){if(1&h&&n.nrm(0,"app-messenger",190),2&h){const l=n.XpG(2);n.Y8G("currency",l.customerServiceRequest.currency)("messages",l.customerServiceRequest.messages)("userRole",l.UserRoleEnum.Customer)("picture",l.customerServiceRequest.shopPicture)("customerServiceRequest",l.customerServiceRequest)("nickname",l.customerServiceRequest.shopName)("customerServiceRequestId",l.customerServiceRequestId)}}function wi(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",26)(1,"div",27)(2,"div",28)(3,"div",29)(4,"div",30)(5,"p",31),n.EFF(6),n.k0s(),n.j41(7,"div",32)(8,"p",33),n.EFF(9),n.k0s()(),n.j41(10,"div",34)(11,"div",35),n.EFF(12),n.k0s(),n.DNE(13,gs,2,0,"svg",36)(14,hs,3,3,"div",37),n.k0s(),n.j41(15,"div",38),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.showRequestDetails=!C.showRequestDetails)}),n.j41(16,"p"),n.EFF(17),n.nI1(18,"translate"),n.k0s(),n.qSk(),n.j41(19,"svg",39),n.nrm(20,"path",40),n.k0s()()(),n.joV(),n.j41(21,"div",41)(22,"p",42),n.EFF(23),n.k0s(),n.j41(24,"p",43),n.EFF(25),n.nI1(26,"translate"),n.nI1(27,"customDate"),n.k0s(),n.DNE(28,Tl,4,7,"p",44),n.k0s()(),n.DNE(29,Os,20,15,"div",45),n.k0s(),n.j41(30,"div",46)(31,"p",47),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.showStatusDetails())}),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.nrm(34,"div",48)(35,"div",49)(36,"div",50),n.j41(37,"div",51)(38,"p",52),n.EFF(39),n.nI1(40,"translate"),n.k0s()()()(),n.nrm(41,"div",53),n.j41(42,"div",54),n.DNE(43,Ll,3,4,"div",55)(44,Sr,3,3,"div",55),n.j41(45,"div",56),n.DNE(46,jl,4,3,"div",57),n.k0s()(),n.DNE(47,Kl,11,7,"div",58)(48,Er,1,7,"app-messenger",59),n.k0s()}if(2&h){const l=n.XpG();n.Y8G("ngClass",(l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPickUp||l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment||l.customerServiceRequest.bikeAssessmentReports&&l.isOpenBikeAssessmentModalButton())&&l.window.innerWidth<=580?"buttons-available":"buttons-disable"),n.R7$(6),n.SpI("\u2116",l.customerServiceRequest.number,""),n.R7$(3),n.JRh(null==l.customerServiceRequest.bike?null:l.customerServiceRequest.bike.model),n.R7$(3),n.JRh(null==l.customerServiceRequest.bike||null==l.customerServiceRequest.bike.brand?null:l.customerServiceRequest.bike.brand.name),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequest.bike?null:l.customerServiceRequest.bike.isEBike),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequest.bike?null:l.customerServiceRequest.bike.isEBike),n.R7$(3),n.JRh(n.bMT(18,24,"i18n.app.pages.customer.service-request.show-request-detail")),n.R7$(2),n.Y8G("ngClass",n.eq3(34,Nn,l.showRequestDetails)),n.R7$(4),n.SpI("\u2116",l.customerServiceRequest.number,""),n.R7$(2),n.Lme("",n.bMT(26,26,"i18n.app.pages.service-request.submitted"),": ",n.bMT(27,28,l.customerServiceRequest.created),""),n.R7$(3),n.Y8G("ngIf",l.customerServiceRequest.spendingLimit),n.R7$(),n.Y8G("ngIf",l.showRequestDetails),n.R7$(3),n.JRh(n.bMT(33,30,"i18n.app.pages.customer.service-request.progress-view")),n.R7$(3),n.Y8G("ngStyle",n.eq3(36,El,l.getProgressPosition(l.customerServiceRequest.status)+"%")),n.R7$(),n.Y8G("ngStyle",n.eq3(38,Rl,l.getProgressPosition(l.customerServiceRequest.status)<50?l.getProgressPosition(l.customerServiceRequest.status):l.getProgressPosition(l.customerServiceRequest.status)-2.5)),n.R7$(),n.Y8G("ngStyle",n.l_i(40,Mr,l.getProgressPosition(l.customerServiceRequest.status)<50?l.getProgressPosition(l.customerServiceRequest.status):"auto",l.getProgressPosition(l.customerServiceRequest.status)>=50?100-l.getProgressPosition(l.customerServiceRequest.status):"auto"))("ngClass",n.eq3(43,Mi,l.getProgressPosition(l.customerServiceRequest.status)>=50)),n.R7$(2),n.JRh(n.bMT(40,32,"i18n.app.pages.service-request.status."+l.customerServiceRequest.status)),n.R7$(4),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.OffersReceived||l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForOffers),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status!==l.CustomerServiceRequestStatusType.OffersReceived&&l.customerServiceRequest.status!==l.CustomerServiceRequestStatusType.WaitingForOffers),n.R7$(2),n.Y8G("ngForOf",l.customerServiceRequest.shopServiceRequestReplies),n.R7$(),n.Y8G("ngIf",(null==l.customerServiceRequest.paymentDetails?null:l.customerServiceRequest.paymentDetails.payments)&&0!==(null==l.customerServiceRequest.paymentDetails||null==l.customerServiceRequest.paymentDetails.payments?null:l.customerServiceRequest.paymentDetails.payments.length)),n.R7$(),n.Y8G("ngIf",l.showChat())}}function Xl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",24),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openFeedbackPopUp())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.confirm-pick-up")))}function ks(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",24),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openReportPopUp())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.pay")))}function Fs(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",24),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.openBikeAssessmentModal())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.check-new-offer")))}function Yl(h,_){if(1&h&&(n.j41(0,"div",191),n.DNE(1,Xl,3,3,"div",12)(2,ks,3,3,"div",12)(3,Fs,3,3,"div",12),n.k0s()),2&h){const l=n.XpG();n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPickUp),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.bikeAssessmentReports&&l.isOpenBikeAssessmentModalButton())}}function Jl(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",217),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.cyclixFeeDetails=!1)}),n.qSk(),n.j41(1,"svg",218),n.nrm(2,"path",219),n.k0s(),n.joV(),n.j41(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.nI1(6,"translate"),n.k0s()()}if(2&h){const l=n.XpG(2);n.R7$(4),n.E5c("",n.bMT(5,3,"i18n.app.pages.customer.service-request.includes")," ",100*l.cyclixFee,"% ",n.bMT(6,5,"i18n.app.pages.customer.service-request.cyclix-fee"),"")}}function Zl(h,_){if(1&h&&(n.j41(0,"div",72)(1,"p"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",179),n.EFF(5),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,3,"i18n.app.pages.customer.service-request.pick-up-service")),n.R7$(3),n.Lme("",l.customerServiceRequest.pickUpServicePrice,".00 ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,"")}}function Ds(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",192),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isChargePopUpVisible=!1)}),n.j41(1,"div",193)(2,"div",79)(3,"p",10),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"p",194),n.EFF(7),n.nI1(8,"translate"),n.k0s()(),n.qSk(),n.j41(9,"svg",195),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isChargePopUpVisible=!1)}),n.nrm(10,"path",196),n.k0s()(),n.joV(),n.j41(11,"div",197)(12,"div",79)(13,"p"),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.j41(16,"p"),n.EFF(17),n.nI1(18,"translate"),n.k0s()(),n.j41(19,"div",72)(20,"div",198)(2
11,"p"),n.EFF(22),n.nI1(23,"multilingualPropertyTranslate"),n.k0s(),n.j41(24,"div",199)(25,"div",200),n.qSk(),n.j41(26,"svg",201),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.cyclixFeeDetails=!C.cyclixFeeDetails)}),n.nrm(27,"path",202)(28,"path",203),n.k0s(),n.DNE(29,Jl,7,7,"div",204),n.k0s()()(),n.joV(),n.j41(30,"p",179),n.EFF(31),n.nI1(32,"number"),n.k0s()(),n.DNE(33,Zl,6,5,"div",205),n.j41(34,"div",206)(35,"p"),n.EFF(36),n.nI1(37,"translate"),n.k0s(),n.j41(38,"p",179),n.EFF(39),n.nI1(40,"number"),n.k0s()()(),n.qSk(),n.j41(41,"svg",207),n.nrm(42,"path",208),n.k0s(),n.joV(),n.j41(43,"div",209)(44,"div",210)(45,"p",114),n.EFF(46),n.nI1(47,"translate"),n.k0s(),n.nrm(48,"div",211,0),n.k0s(),n.j41(50,"div",212)(51,"div",210)(52,"p",114),n.EFF(53),n.nI1(54,"translate"),n.k0s(),n.nrm(55,"div",211,1),n.k0s(),n.j41(57,"div",210)(58,"p",114),n.EFF(59,"CVC"),n.k0s(),n.nrm(60,"div",211,2),n.k0s()()(),n.j41(62,"div",213)(63,"div",214),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isChargePopUpVisible=!1)}),n.EFF(64),n.nI1(65,"translate"),n.k0s(),n.j41(66,"div",215),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.onChargeSubmit())}),n.EFF(67),n.nI1(68,"translate"),n.k0s()(),n.j41(69,"p",216),n.EFF(70),n.nI1(71,"translate"),n.k0s()()}if(2&h){const l=n.XpG();n.R7$(4),n.JRh(n.bMT(5,17,"i18n.app.pages.customer.service-request.pay-service")),n.R7$(3),n.JRh(n.bMT(8,19,"i18n.app.pages.customer.service-request.pay-service.sub-title")),n.R7$(7),n.JRh(n.bMT(15,21,"i18n.app.pages.customer.service-request.step.three.description")),n.R7$(3),n.JRh(n.bMT(18,23,"i18n.app.pages.customer.service-request.subtotal")),n.R7$(5),n.JRh(n.bMT(23,25,null==l.customerServiceRequest.serviceDefinition?null:l.customerServiceRequest.serviceDefinition.title)),n.R7$(7),n.Y8G("ngIf",l.cyclixFeeDetails),n.R7$(2),n.Lme("",n.i5U(32,27,l.getEstimatedCostAmount(),"1.2-3")," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(2),n.Y8G("ngIf",l.customerServiceRequest.pickUpService),n.R7$(3),n.JRh(n.bMT(37,30,"i18n.app.pages.customer.service-request.total")),n.R7$(3),n.Lme("",n.i5U(40,32,l.getEstimatedTotalPrice(),"1.2-3")," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(7),n.JRh(n.bMT(47,35,"i18n.app.pages.customer.service-request.card-number")),n.R7$(7),n.JRh(n.bMT(54,37,"i18n.app.pages.customer.service-request.expiry-date")),n.R7$(11),n.JRh(n.bMT(65,39,"i18n.app.pages.customer.bikes.cancel")),n.R7$(3),n.JRh(n.bMT(68,41,"i18n.app.pages.shop.service-request.info.pay")),n.R7$(3),n.JRh(n.bMT(71,43,"i18n.app.pages.customer.service-request.pay-service.alignment"))}}function Ql(h,_){1&h&&n.nrm(0,"div",220)}function ec(h,_){if(1&h&&(n.j41(0,"div",231)(1,"p",114),n.EFF(2,"Veloblitz"),n.k0s(),n.j41(3,"p",72),n.EFF(4),n.nI1(5,"price"),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(4),n.Lme("",n.bMT(5,2,l.customerServiceRequest.pickUpServicePrice),".00 ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,"")}}function Vs(h,_){1&h&&(n.j41(0,"i"),n.EFF(1," + Veloblitz"),n.k0s())}function tc(h,_){if(1&h&&(n.j41(0,"div",242)(1,"p",114),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",243),n.EFF(5),n.nI1(6,"price"),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,3,"i18n.app.pages.customer.service-request.holder-amount")),n.R7$(3),n.Lme("- ",n.bMT(6,5,l.getChargedAmount())," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,"")}}function nc(h,_){if(1&h&&(n.j41(0,"div",244)(1,"p",114),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",72),n.EFF(5),n.nI1(6,"price"),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,3,"i18n.app.pages.customer.service-request.report.additional-amount")),n.R7$(3),n.Lme("",n.bMT(6,5,l.getRestAmount())," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,"")}}function ic(h,_){1&h&&(n.qSk(),n.j41(0,"svg",256),n.nrm(1,"path",257),n.k0s())}function rc(h,_){if(1&h){const l=n.RV6();n.j41(0,"img",258),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(3);return n.Njj(y.fullImage=C.fullImageUri)}),n.k0s()}if(2&h){const l=n.XpG().$implicit;n.FS9("src",l.fullImageUri,n.B4B)}}function Cn(h,_){if(1&h&&(n.j41(0,"div",246),n.DNE(1,ic,2,0,"svg",247)(2,rc,1,1,"img",248),n.j41(3,"div",249)(4,"p",68),n.EFF(5),n.k0s(),n.j41(6,"a",250),n.qSk(),n.j41(7,"svg",251)(8,"g",252),n.nrm(9,"path",253),n.k0s(),n.j41(10,"defs")(11,"clipPath",254),n.nrm(12,"rect",255),n.k0s()()()()()()),2&h){const l=_.$implicit,g=n.XpG(3);n.R7$(),n.Y8G("ngIf",l.mediaType==g.MediaType.Unknown),n.R7$(),n.Y8G("ngIf",l.mediaType!=g.MediaType.Unknown),n.R7$(3),n.JRh(l.filename),n.R7$(),n.FS9("href",l.fullImageUri,n.B4B),n.FS9("download",l.filename)}}function oc(h,_){if(1&h&&(n.j41(0,"div",81),n.DNE(1,Cn,13,5,"div",245),n.k0s()),2&h){const l=n.XpG(2);n.R7$(),n.Y8G("ngForOf",l.reportMedia)}}function sc(h,_){if(1&h&&(n.j41(0,"div",259)(1,"p",260),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",261),n.EFF(5),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.customer.service-request.shop-message")),n.R7$(3),n.JRh(null==l.customerServiceRequest.shopServiceJobReport?null:l.customerServiceRequest.shopServiceJobReport.work)}}function ac(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",262)(1,"div",263),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.createPaymentLink())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&h&&(n.R7$(2),n.JRh(n.bMT(3,1,"i18n.app.pages.shop.service-request.info.pay")))}function Rr(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",221)(1,"div",222),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isReportPopupVisible=!1)}),n.j41(2,"div",79)(3,"p",10),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.qSk(),n.j41(6,"svg",223),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isReportPopupVisible=!1)}),n.nrm(7,"path",224),n.k0s()(),n.joV(),n.j41(8,"div",225)(9,"div",226)(10,"p",109),n.EFF(11),n.k0s(),n.j41(12,"p",110),n.EFF(13),n.k0s(),n.j41(14,"p",110),n.EFF(15),n.k0s()(),n.j41(16,"div",227)(17,"p",114),n.EFF(18),n.nI1(19,"translate"),n.k0s(),n.j41(20,"p",115),n.EFF(21),n.nI1(22,"customDate"),n.k0s()()(),n.j41(23,"div",228)(24,"p",229),n.EFF(25),n.nI1(26,"translate"),n.k0s(),n.j41(27,"p",229),n.EFF(28),n.nI1(29,"translate"),n.k0s()(),n.j41(30,"div",230)(31,"div",231)(32,"p",114),n.EFF(33),n.nI1(34,"translate"),n.k0s(),n.j41(35,"p",72),n.EFF(36),n.nI1(37,"price"),n.k0s()(),n.j41(38,"div",231)(39,"p",114),n.EFF(40),n.nI1(41,"translate"),n.k0s(),n.j41(42,"p",72),n.EFF(43),n.nI1(44,"price"),n.k0s()(),n.DNE(45,ec,6,4,"div",232),n.nrm(46,"div",233),n.j41(47,"div",234)(48,"div",114)(49,"p"),n.EFF(50),n.n
1I1(51,"translate"),n.k0s(),n.j41(52,"p",235),n.EFF(53),n.nI1(54,"translate"),n.DNE(55,Vs,2,0,"i",236),n.EFF(56,")"),n.k0s()(),n.j41(57,"p",237),n.EFF(58),n.nI1(59,"price"),n.k0s()(),n.DNE(60,tc,7,7,"div",238)(61,nc,7,7,"div",239),n.k0s(),n.DNE(62,oc,2,1,"div",76)(63,sc,6,4,"div",240)(64,ac,4,3,"div",241),n.k0s()()}if(2&h){const l=n.XpG();n.R7$(4),n.JRh(n.bMT(5,29,"i18n.app.pages.customer.service-request.order-summary")),n.R7$(7),n.JRh(l.customerServiceRequest.shopName),n.R7$(2),n.LHq("",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.street,", ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.streetNumber,", ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.city,", ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.zipcode,""),n.R7$(2),n.Lme("+",null==l.acceptedShopServiceRequestReply.shopAddress||null==l.acceptedShopServiceRequestReply.shopAddress.mobilePhoneCountry?null:l.acceptedShopServiceRequestReply.shopAddress.mobilePhoneCountry.numberCode,"",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.mobilePhone,""),n.R7$(3),n.JRh(n.bMT(19,31,"i18n.app.pages.customer.service-request.date-issued")),n.R7$(3),n.JRh(n.bMT(22,33,l.customerServiceRequest.created)),n.R7$(4),n.JRh(n.bMT(26,35,"i18n.app.pages.offered.description")),n.R7$(3),n.JRh(n.bMT(29,37,"i18n.app.pages.customer.service-request.subtotal")),n.R7$(5),n.JRh(n.bMT(34,39,"i18n.app.pages.customer.service-request.repair-cost")),n.R7$(3),n.Lme("",n.bMT(37,41,l.customerServiceRequest.servicePrice)," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(4),n.JRh(n.bMT(41,43,"i18n.app.pages.customer.service-request.cyclix-fee")),n.R7$(3),n.Lme("",n.bMT(44,45,l.getCyclixFee())," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(2),n.Y8G("ngIf",l.customerServiceRequest.pickUpService),n.R7$(5),n.JRh(n.bMT(51,47,"i18n.app.pages.customer.service-request.total")),n.R7$(3),n.JRh(n.bMT(54,49,"i18n.app.pages.customer.service-request.report.total-description")),n.R7$(2),n.Y8G("ngIf",l.customerServiceRequest.pickUpService),n.R7$(3),n.Lme("",n.bMT(59,51,l.getTotalPrice())," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(2),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequest.shopServiceJobReport?null:l.customerServiceRequest.shopServiceJobReport.media),n.R7$(),n.Y8G("ngIf",null==l.customerServiceRequest.shopServiceJobReport?null:l.customerServiceRequest.shopServiceJobReport.work),n.R7$(),n.Y8G("ngIf",l.customerServiceRequest.status===l.CustomerServiceRequestStatusType.WaitingForPayment)}}function Ls(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",184),n.qSk(),n.j41(1,"svg",272)(2,"path",273),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.shopRanking=1)}),n.k0s()(),n.j41(3,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.shopRanking=2)}),n.nrm(4,"path",275),n.k0s(),n.j41(5,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.shopRanking=3)}),n.nrm(6,"path",275),n.k0s(),n.j41(7,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.shopRanking=4)}),n.nrm(8,"path",275),n.k0s(),n.j41(9,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.shopRanking=5)}),n.nrm(10,"path",275),n.k0s()()}if(2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngClass",n.eq3(5,ht,l.feedback.shopRanking>=1&&l.feedback.shopRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(7,ht,l.feedback.shopRanking>=2&&l.feedback.shopRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(9,ht,l.feedback.shopRanking>=3&&l.feedback.shopRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(11,ht,l.feedback.shopRanking>=4&&l.feedback.shopRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(13,ht,5===l.feedback.shopRanking))}}function lc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",184),n.qSk(),n.j41(1,"svg",272)(2,"path",273),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.cyclixRanking=1)}),n.k0s()(),n.j41(3,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.cyclixRanking=2)}),n.nrm(4,"path",275),n.k0s(),n.j41(5,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.cyclixRanking=3)}),n.nrm(6,"path",275),n.k0s(),n.j41(7,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.cyclixRanking=4)}),n.nrm(8,"path",275),n.k0s(),n.j41(9,"svg",274),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.feedback.cyclixRanking=5)}),n.nrm(10,"path",275),n.k0s()()}if(2&h){const l=n.XpG(2);n.R7$(2),n.Y8G("ngClass",n.eq3(5,ht,l.feedback.cyclixRanking>=1&&l.feedback.cyclixRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(7,ht,l.feedback.cyclixRanking>=2&&l.feedback.cyclixRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(9,ht,l.feedback.cyclixRanking>=3&&l.feedback.cyclixRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(11,ht,l.feedback.cyclixRanking>=4&&l.feedback.cyclixRanking<=5)),n.R7$(2),n.Y8G("ngClass",n.eq3(13,ht,5===l.feedback.cyclixRanking))}}function Si(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",264)(1,"div",265),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isFeedbackPopupVisible=!1)}),n.j41(2,"div",193)(3,"p"),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"p"),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.qSk(),n.j41(9,"svg",266),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.isFeedbackPopupVisible=!1)}),n.nrm(10,"path",224),n.k0s()(),n.joV(),n.j41(11,"div",267)(12,"p",79),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.DNE(15,Ls,11,15,"div",268),n.j41(16,"textarea",269),n.nI1(17,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return n.DH7(y.feedback.shopMessage,C)||(y.feedback.shopMessage=C),n.Njj(C)}),n.k0s()(),n.nrm(18,"div",53),n.j41(19,"div",270)(20,"p",79),n.EFF(21),n.nI1(22,"translate"),n.k0s(),n.DNE(23,lc,11,15,"div",268),n.j41(24,"textarea",269),n.nI1(25,"translate"),n.mxI("ngModelChange",function(C){n.eBV(l);const y=n.XpG();return n.DH7(y.feedback.cyclixMessage,C)||(y.feedback.cyclixMessage=C),n.Njj(C)}),n.k0s()(),n.j41(26,"div",271),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.addAFeedBack())}
1),n.EFF(27),n.nI1(28,"translate"),n.k0s()()()}if(2&h){const l=n.XpG();n.R7$(4),n.JRh(n.bMT(5,12,"i18n.app.pages.shop.service-request.info.feedback-title")),n.R7$(3),n.JRh(n.bMT(8,14,"i18n.app.pages.shop.service-request.info.feedback-sub-title")),n.R7$(6),n.Lme("",n.bMT(14,16,"i18n.app.pages.shop.service-request.info.rate-service.shop")," ",l.customerServiceRequest.shopName,""),n.R7$(2),n.Y8G("ngIf",void 0!==l.feedback.shopRanking),n.R7$(),n.FS9("placeholder",n.bMT(17,18,"i18n.app.pages.shop.service-request.info.leave-comments")),n.R50("ngModel",l.feedback.shopMessage),n.R7$(5),n.JRh(n.bMT(22,20,"i18n.app.pages.shop.service-request.info.rate-service.cyclix")),n.R7$(2),n.Y8G("ngIf",void 0!==l.feedback.cyclixRanking),n.R7$(),n.FS9("placeholder",n.bMT(25,22,"i18n.app.pages.shop.service-request.info.leave-comments")),n.R50("ngModel",l.feedback.cyclixMessage),n.R7$(3),n.JRh(n.bMT(28,24,"i18n.app.pages.service-request.submit"))}}function cc(h,_){if(1&h&&(n.j41(0,"div",286)(1,"p",287),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",288),n.EFF(5),n.nI1(6,"customDate"),n.k0s()()),2&h){const l=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,2,"i18n.app.pages.shop.service-request.info.service-date")),n.R7$(3),n.JRh(n.bMT(6,4,l.selectedBikeAssessmentReport.jobEndDate))}}function qs(h,_){if(1&h){const l=n.RV6();n.j41(0,"img",171),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(2);return n.Njj(y.fullImage="data:image/png;base64,"+C.thumbnail)}),n.k0s()}2&h&&n.Mz_("src","data:image/png;base64,",_.$implicit.thumbnail,"",n.B4B)}function Bs(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",293),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.askForCall())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.shop.service-request.info.please-call")))}function Ns(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",276)(1,"div",277),n.bIt("clickOutside",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.closeBikeAssessmentPopUp())}),n.qSk(),n.j41(2,"svg",278),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.closeBikeAssessmentPopUp())}),n.nrm(3,"path",224),n.k0s(),n.joV(),n.j41(4,"div",279)(5,"div",280),n.qSk(),n.j41(6,"svg",281),n.nrm(7,"path",282),n.k0s()(),n.joV(),n.j41(8,"p",283),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"p",284),n.EFF(12),n.nI1(13,"translate"),n.k0s()(),n.j41(14,"div",108)(15,"p",109),n.EFF(16),n.k0s(),n.j41(17,"p",110),n.EFF(18),n.k0s(),n.j41(19,"p",31),n.EFF(20),n.k0s()(),n.nrm(21,"div",53),n.j41(22,"div",285)(23,"div",286)(24,"p",287),n.EFF(25),n.nI1(26,"translate"),n.k0s(),n.j41(27,"p",288),n.EFF(28),n.k0s()(),n.DNE(29,cc,7,6,"div",289),n.k0s(),n.j41(30,"div",129)(31,"p",79),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"p",130),n.EFF(35),n.k0s()(),n.j41(36,"div",169),n.DNE(37,qs,1,2,"img",170),n.k0s(),n.j41(38,"div",213),n.DNE(39,Bs,3,3,"div",290),n.j41(40,"div",291),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.acceptNewPrice())}),n.EFF(41),n.nI1(42,"translate"),n.k0s()(),n.j41(43,"div",292),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.rejectNewPrice())}),n.EFF(44),n.nI1(45,"translate"),n.k0s()()()}if(2&h){const l=n.XpG();n.R7$(9),n.Lme("",n.bMT(10,20,"i18n.app.pages.customer.service-request.new-offer")," ",null==l.customerServiceRequest.bike?null:l.customerServiceRequest.bike.model,""),n.R7$(3),n.JRh(n.bMT(13,22,"i18n.app.pages.customer.service-request.new-offer-sub-title")),n.R7$(4),n.JRh(l.acceptedShopServiceRequestReply.shopName),n.R7$(2),n.LHq("",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.street," ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.streetNumber,", ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.zipcode," ",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.city,""),n.R7$(2),n.Lme("+",null==l.acceptedShopServiceRequestReply.shopAddress||null==l.acceptedShopServiceRequestReply.shopAddress.mobilePhoneCountry?null:l.acceptedShopServiceRequestReply.shopAddress.mobilePhoneCountry.numberCode,"",null==l.acceptedShopServiceRequestReply.shopAddress?null:l.acceptedShopServiceRequestReply.shopAddress.mobilePhone,""),n.R7$(5),n.JRh(n.bMT(26,24,"
1i18n.app.pages.customer.service-request.new-service-price")),n.R7$(3),n.Lme("",l.selectedBikeAssessmentReport.price," ",null==l.customerServiceRequest.currency?null:l.customerServiceRequest.currency.isoCode,""),n.R7$(),n.Y8G("ngIf",l.selectedBikeAssessmentReport.jobEndDate),n.R7$(3),n.JRh(n.bMT(33,26,"i18n.app.pages.customer.bikes.comment")),n.R7$(3),n.JRh(l.selectedBikeAssessmentReport.comment),n.R7$(2),n.Y8G("ngForOf",l.selectedBikeAssessmentReport.media),n.R7$(2),n.Y8G("ngIf",l.selectedBikeAssessmentReport.bikeAssessmentReportStatus!==l.BikeAssessmentReportStatus.CustomerAskForCall),n.R7$(2),n.JRh(n.bMT(42,28,"i18n.app.pages.shop.service-request.info.accept")),n.R7$(3),n.JRh(n.bMT(45,30,"i18n.app.pages.shop.service-request.info.reject"))}}function dc(h,_){if(1&h&&n.nrm(0,"app-status-details",294),2&h){const l=n.XpG();n.Y8G("selectedCustomerServiceRequestStatus",l.customerServiceRequest.status)}}function uc(h,_){if(1&h){const l=n.RV6();n.j41(0,"app-customer-qr-code",295),n.bIt("close",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.closeQrCode())}),n.k0s()}if(2&h){const l=n.XpG();n.Y8G("serviceNumber",l.customerServiceRequest.number)("bike",l.customerServiceRequest.bike)("qrCode",l.customerServiceRequest.shopServiceRequestQrCode)}}let pc=(()=>{class h{constructor(l,g,C,y,Q,le,Fe,ye,wt,Jt,Dt){this.activatedRoute=l,this.customerServiceRequestService=g,this.mediaService=C,this.router=y,this.customerServiceRequestSignalRService=Q,this.notificationsCenterService=le,this.messageService=Fe,this.authService=ye,this.statusDetailsService=wt,this.appConfig=Jt,this.toastService=Dt,this.customerServiceRequestId="",this.reportMedia=[],this.customerServiceRequest=new w.Q4,this.feedback=new w.jO,this.showRequestDetails=!1,this.isFeedbackPopupVisible=!1,this.isReportPopupVisible=!1,this.isChargePopUpVisible=!1,this.problemMedia=[],this.showAllImages=!1,this.subscriptions=new I.yU,this.acceptedShopServiceRequestReply=new w.k5,this.chosenShopServiceRequestReply=new w.k5,this.isBikeAssessmentPopUpVisible=!1,this.selectedBikeAssessmentReport=new w.L7,this.bikeAssessmentPopUpTimeId=0,this.cyclixFeeDetails=!1,this.showQrCode=!1,this.deliveryPhone="",this.pickUpServicePrice=0,this.cyclixFee=0,this.CustomerServiceRequestStatusType=w.tr,this.UserRoleEnum=w.kX,this.PaymentStatus=w.dX,this.MediaType=w.zu,this.PaymentType=w.dm,this.window=window,this.BikeAssessmentReportStatus=w.Cp,this.feedback=new w.jO}ngOnInit(){var l=this;return(0,Bn.A)(function*(){l.deliveryPhone=l.appConfig.Config.PICKUP_PROVIDER_PHONE_NUMBER,l.pickUpServicePrice=l.appConfig.Config.DELIVERY_PRICE_IN_CHF,l.cyclixFee=l.appConfig.Config.CYCLIX_FEE,l.getCustomerServiceRequest(),l.subscriptions.add(l.customerServiceRequestSignalRService.retrieveMappedObjectForCustomerServiceRequest(l.customerServiceRequestId).subscribe(g=>{l.addToInbox(g)})),l.mediaService.mediaAssignment=w.Wf.CustomerServiceRequest,yield l.loadStripe()})()}ngOnDestroy(){this.subscriptions.unsubscribe(),clearTimeout(this.bikeAssessmentPopUpTimeId),this.notificationsCenterService.viewedServiceRequest.next("")}loadStripe(){var l=this;return(0,Bn.A)(function*(){const g=yield P.e(264).then(P.bind(P,6883));l.stripe=yield g.loadStripe(l.appConfig.Config.STRIPE_PUBLIC_KEY)})()}acceptNewPrice(){clearTimeout(this.bikeAssessmentPopUpTimeId),this.customerServiceRequestService.acceptNewPrice(this.selectedBikeAssessmentReport.id).subscribe(()=>{this.selectedBikeAssessmentReport.bikeAssessmentReportStatus=w.Cp.Accepted,this.customerServiceRequest.servicePrice=this.selectedBikeAssessmentReport.price,this.isBikeAssessmentPopUpVisible=!1,this.customerServiceRequest.status==w.tr.AssessingCompleted&&(this.customerServiceRequest.status=w.tr.InProgress),this.selectedBikeAssessmentReport=new w.L7})}askForCall(){clearTimeout(this.bikeAssessmentPopUpTimeId),this.customerServiceRequestService.askForCall(this.selectedBikeAssessmentReport.id).subscribe(()=>{this.selectedBikeAssessmentReport.bikeAssessmentReportStatus=w.Cp.CustomerAskForCall,this.isBikeAssessmentPopUpVisible=!1})}goBack(){this.router.navigate(["/customer/service-requests"])}getProgressPosition(l){return this.customerServiceRequestService.getProgressPosition(l,100/9)}
1goToShopProfile(l){this.router.navigate(["/customer/shop-profile-preview/"+l])}showOffer(l){return!l.rejected}shopOfferOptions(){return this.customerServiceRequest.status==w.tr.InProgress||this.customerServiceRequest.status==w.tr.AssessingCompleted||this.customerServiceRequest.status==w.tr.AssessingBike||this.customerServiceRequest.status==w.tr.WaitingForDelivery||this.customerServiceRequest.status==w.tr.WaitingForPickUp||this.customerServiceRequest.status==w.tr.WaitingForPayment||this.customerServiceRequest.status==w.tr.Finished}chatOnClick(){this.isReportPopupVisible=!1,this.messageService.$showChat.next(!0),this.checkMessages()}openReportPopUp(){this.isReportPopupVisible=!0,this.messageService.$showChat.next(!1)}checkMessages(){this.messageService.checkMessages(this.customerServiceRequestId).subscribe(()=>{this.messageService.messages?.forEach(l=>{l.viewed=!0})})}openBikeAssessmentModal(){this.customerServiceRequest.bikeAssessmentReports&&this.customerServiceRequest.bikeAssessmentReports.length>0&&(this.selectedBikeAssessmentReport=this.customerServiceRequest.bikeAssessmentReports[0],this.isBikeAssessmentPopUpVisible=!0)}isOpenBikeAssessmentModalButton(){return!!(this.customerServiceRequest.bikeAssessmentReports&&this.customerServiceRequest.bikeAssessmentReports.length>0)&&(this.customerServiceRequest.bikeAssessmentReports[0].bikeAssessmentReportStatus===w.Cp.WaitingForAnswer||this.customerServiceRequest.bikeAssessmentReports[0].bikeAssessmentReportStatus===w.Cp.CustomerAskForCall)}openQrCode(){this.showQrCode=!0}closeQrCode(){this.showQrCode=!1}addToInbox(l){const g=Object.values(w.tr);this.customerServiceRequest.status=g[parseInt(l.status.toString())],this.customerServiceRequest.status===w.tr.OffersReceived&&l.shopServiceRequestReplies&&l.shopServiceRequestReplies.forEach(le=>{this.customerServiceRequest.shopServiceRequestReplies?.some(Fe=>Fe.id===le.id)||this.customerServiceRequest.shopServiceRequestReplies?.push(le)}),void 0===this.customerServiceRequest.shopServiceJobReport&&null!==l.shopServiceJobReport&&l.shopServiceJobReport&&null!==l.shopServiceJobReport.media&&l.shopServiceJobReport.media&&(this.reportMedia=l.shopServiceJobReport.media,this.customerServiceRequest.shopServiceJobReport=l.shopServiceJobReport),this.customerServiceRequest.shopServiceRequestQrCode=l.shopServiceRequestQrCode,this.customerServiceRequest.pickUpService=l.pickUpService,l.servicePrice&&(this.customerServiceRequest.servicePrice=l.servicePrice);const y=[];if(l.paymentDetails){const le=Object.values(w.dX);l.paymentDetails.status=le[parseInt(l.paymentDetails.status)];const Fe=Object.values(w.dm);for(const ye of l.paymentDetails.payments)ye.operationDate=new Date(ye.operationDate),ye.type=Fe[parseInt(ye.type.toString())],y.push(ye);l.paymentDetails.payments=y,this.customerServiceRequest.paymentDetails=l.paymentDetails}if(l.bikeAssessmentReports&&l.bikeAssessmentReports.length>0){const le=[],Fe=Object.values(w.Cp);l.bikeAssessmentReports.forEach(ye=>{ye.bikeAssessmentReportStatus=Fe[parseInt(ye.bikeAssessmentReportStatus)],le.unshift(ye),ye.bikeAssessmentReportStatus===w.Cp.WaitingForAnswer&&(this.selectedBikeAssessmentReport=ye,this.isBikeAssessmentPopUpVisible=!0),ye.bikeAssessmentReportStatus===w.Cp.ShopCanceled&&(this.selectedBikeAssessmentReport=new w.L7,this.isBikeAssessmentPopUpVisible=!1)}),this.customerServiceRequest.bikeAssessmentReports=le}const Q=this.customerServiceRequest.shopServiceRequestReplies?.find(le=>!1===le.rejected);Q&&(this.acceptedShopServiceRequestReply=Q)}getCustomerServiceRequest(){this.activatedRoute.params.subscribe(l=>{this.customerServiceRequestId=l.id,""!=this.customerServiceRequestId&&this.getCustomerServiceRequestById()})}newMessages(){const l=this.messageService.messages?.filter(g=>!1===g.viewed&&g.ownerId!==this.authService.getUserAuthId()).length;return l||0}showStatusDetails(){this.statusDetailsService.openNotificationsMenu()}closeBikeAssessmentPopUp(){this.isBikeAssessmentPopUpVisible=!1,this.bikeAssessmentPopUpTimeId=setTimeout(()=>{this.isBikeAssessmentPopUpVisible=!0},6e4)}rejectNewPrice(){clearTimeout(this.bikeAssessmentPopUpTimeId),this.customerServiceRequestService.rejectNewPrice(this.selectedBikeAssessmentReport.id).subscribe(()=>{this.selectedBikeAssessmentReport.bikeAssessmentReportStatus=w.Cp.CustomerRejected,this.isBikeAssessmentPopUpVisible=!1})}getCustomerServiceRequestById(){this.customerServiceRequestId&&this.customerServiceRequestService.getCustomerServiceRequestById(this.customerServiceRequestId).pipe((0,x.j)(()=>!1)).subscribe(l=>{this.customerServiceRequest=l,this.customerServiceRequest.messages?.sort((C,y)=>(C.createdTime?.getTime()||0)-(y.createdTime?.getTime()||0)),this.customerServiceRequest.mediaId!==F.q.EMPTY&&this.getFullImages(),this.notificationsCenterService.viewedServiceRequest.next(this.customerServiceRequest.i
1d),this.acceptedShopServiceRequestReply=this.customerServiceRequest.shopServiceRequestReplies?.find(C=>!1===C.rejected),this.getFullImagesForReport(),this.messageService.messages=this.customerServiceRequest.messages,this.customerServiceRequest.bikeAssessmentReports?.sort((C,y)=>C.created&&y.created?y.created.getTime()-C.created.getTime():0),this.isOpenBikeAssessmentModalButton()&&this.openBikeAssessmentModal(),"true"===this.activatedRoute.snapshot.queryParams.chat&&setTimeout(()=>{this.chatOnClick()},100)})}getFullImages(){this.mediaService.getFullImages(this.customerServiceRequestId).subscribe(l=>{for(const g of l)g.fullImageUri&&this.problemMedia.push(g)})}getFullImagesForReport(){this.customerServiceRequest.shopServiceJobReport?.id&&this.mediaService.getFullImages(this.customerServiceRequest.shopServiceJobReport?.id).subscribe(l=>{for(const g of l)this.reportMedia.push(g)})}choseShopServiceRequestReply(l){this.chosenShopServiceRequestReply=l,this.openChargeMoneyPopUp()}getChargedAmount(){return this.customerServiceRequest.paymentDetails&&this.customerServiceRequest.paymentDetails.payments?this.customerServiceRequest.paymentDetails.payments.find(l=>l.type===w.dm.CaptureSuccess)?.amount:0}getEstimatedCostAmount(){if(this.chosenShopServiceRequestReply.estimatedCost)return this.chosenShopServiceRequestReply.estimatedCost*this.appConfig.Config.CYCLIX_FEE+this.chosenShopServiceRequestReply.estimatedCost}getEstimatedTotalPrice(){if(this.chosenShopServiceRequestReply.estimatedCost)return this.customerServiceRequest.pickUpService&&this.customerServiceRequest.pickUpServicePrice?this.chosenShopServiceRequestReply.estimatedCost*this.appConfig.Config.CYCLIX_FEE+this.chosenShopServiceRequestReply.estimatedCost+this.customerServiceRequest.pickUpServicePrice:this.chosenShopServiceRequestReply.estimatedCost*this.appConfig.Config.CYCLIX_FEE+this.chosenShopServiceRequestReply.estimatedCost}getCyclixFee(){return this.customerServiceRequest.servicePrice?this.customerServiceRequest.servicePrice*this.appConfig.Config.CYCLIX_FEE:0}getRestAmount(){if(this.customerServiceRequest.servicePrice){const l=this.customerServiceRequest.pickUpService?this.customerServiceRequest.pickUpServicePrice:0;return this.customerServiceRequest.servicePrice+this.getCyclixFee()-this.getChargedAmount()+l}return 0}getTotalPrice(){if(this.customerServiceRequest.servicePrice){const l=this.customerServiceRequest.pickUpServicePrice?this.customerServiceRequest.pickUpServicePrice:0;return this.customerServiceRequest.servicePrice+this.getCyclixFee()+l}return 0}createPaymentLink(){this.customerServiceRequest.paymentDetails?.paymentLink?window.location.href=this.customerServiceRequest.paymentDetails.paymentLink:this.customerServiceRequestService.createPaymentLink(this.customerServiceRequest.id).pipe((0,x.j)(()=>!1)).subscribe(l=>{void 0!==l&&(window.location.href=l)})}onChargeSubmit(){var l=this;return(0,Bn.A)(function*(){if(l.stripe){const g=yield l.stripe.createToken(l.cardNumber);l.customerServiceRequestService.acceptShopServiceRequestReply(l.chosenShopServiceRequestReply.id,g.token?.id).pipe((0,x.j)(()=>!1)).subscribe(()=>{l.customerServiceRequest.status=w.tr.WaitingForDelivery,l.isChargePopUpVisible=!1,l.customerServiceRequest.shopName=l.chosenShopServiceRequestReply.shopName,l.customerServiceRequest.shopPicture=l.chosenShopServiceRequestReply.shopPicture,l.customerServiceRequest.shopServiceRequestReplies?.filter(C=>{C.id!==l.chosenShopServiceRequestReply.id&&(C.rejected=!0)})},()=>{l.toastService.showToast("i18n.app.pages.customer.service-request.card-error",qe.m.Fail)})}})()}openChargeMoneyPopUp(){this.isChargePopUpVisible=!0,setTimeout(()=>{if(this.stripe){const l=this.stripe.elements(),g={base:{color:"#000",lineHeight:"40px",fontWeight:400,fontFamily:"Helvetica Neue",fontSize:"16px","::placeholder":{color:"#989898"}}};this.cardNumber=l.create("cardNumber",{style:g}),this.cardNumber.mount(this.cardNumberElement.nativeElement),l.create("cardExpiry",{style:g,placeholder:"mm/yy"}).mount(this.cardExpiryElement.nativeElement),l.create("cardCvc",{style:g,placeholder:"xxx"}).mount(this.cardCvcElement.nativeElement)}},100)}openFeedbackPopUp(){this.feedback=new w.jO,this.feedback.cyclixRanking=0,this.feedback.shopRanking=0,this.isFeedbackPopupVisible=!0}showChat(){return this.customerServiceRequest.status!==w.tr.OffersReceived&&this.customerServiceRequest.status!==w.tr.WaitingForOffers&&this.customerServiceRequest.status!==w.tr.Undefined&&this.customerServiceRequest.status!==w.tr.Draft&&this.customerServiceRequest.status!==w.tr.NoOffers}addAFeedBack(){this.feedback.cyclixRanking&&this.feedback.shopRanking&&this.feedback.shopRanking>0&&this.feedback.cyclixRanking>0?this.customerServiceRequestService.addAFeedBack(this.customerServiceRequest.i
1d,this.feedback).pipe((0,x.j)(()=>!1)).subscribe(()=>{this.customerServiceRequest.status=w.tr.Finished,this.isFeedbackPopupVisible=!1}):this.feedback.cyclixRanking||this.feedback.shopRanking?this.toastService.showToast("i18n.app.pages.service-request.error",qe.m.Fail):this.customerServiceRequestService.completeServiceRequest(this.customerServiceRequest.id).pipe((0,x.j)(()=>!1)).subscribe(()=>{this.customerServiceRequest.status=w.tr.Finished,this.isFeedbackPopupVisible=!1})}getPaymentStatusTranslations(l){const g=xr.find(C=>C.status===l);return g?g.statusName:null}static#e=this.\u0275fac=function(g){return new(g||h)(n.rXU(V.nX),n.rXU(ie.s),n.rXU(Z.u),n.rXU(V.Ix),n.rXU(Ml),n.rXU(ds.G),n.rXU(us.b),n.rXU(we.u),n.rXU(wl.O),n.rXU(Pe.o),n.rXU(Y.f))};static#t=this.\u0275cmp=n.VBU({type:h,selectors:[["app-info-customer-service-request"]],viewQuery:function(g,C){if(1&g&&(n.GBs(bi,5),n.GBs(vn,5),n.GBs(gt,5)),2&g){let y;n.mGM(y=n.lsd())&&(C.cardNumberElement=y.first),n.mGM(y=n.lsd())&&(C.cardExpiryElement=y.first),n.mGM(y=n.lsd())&&(C.cardCvcElement=y.first)}},decls:24,vars:16,consts:[["cardNumber",""],["cardExpiry",""],["cardCvc",""],[1,"customer-service-request-container"],[1,"back-navigation-container"],[1,"back-navigation",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","23","height","16","viewBox","0 0 23 16","fill","none",1,"pc-icon"],["d","M0.292892 7.29289C-0.0976315 7.68342 -0.0976315 8.31658 0.292892 8.70711L6.65685 15.0711C7.04738 15.4616 7.68054 15.4616 8.07107 15.0711C8.46159 14.6805 8.46159 14.0474 8.07107 13.6569L2.41421 8L8.07107 2.34315C8.46159 1.95262 8.46159 1.31946 8.07107 0.928932C7.68054 0.538408 7.04738 0.538408 6.65685 0.928932L0.292892 7.29289ZM23 7L1 7V9L23 9V7Z","fill","#0E0E0E"],["xmlns","http://www.w3.org/2000/svg","width","17","height","8","viewBox","0 0 17 8","fill","none",1,"phone-icon"],["d","M0.646446 3.64645C0.451183 3.84171 0.451183 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.73079 7.34027 4.73079 7.02369 4.53553 6.82843L1.70711 4L4.53553 1.17157C4.73079 0.976311 4.73079 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM17 3.5L1 3.5V4.5L17 4.5V3.5Z","fill","#989898"],[1,"text"],[1,"buttons"],["class","button cursor_pointer",3,"click",4,"ngIf"],["class","button cursor_pointer check-offer",3,"click",4,"ngIf"],["class","customer-service-request",3,"ngClass",4,"ngIf"],["class","phone-buttons",4,"ngIf"],["class","charge-money-container",3,"clickOutside",4,"ngIf"],["class","backdrop",4,"ngIf"],["class","order-summary-container-wrapper",4,"ngIf"],["class","feedback-container",4,"ngIf"],["class","bike-assessment-report-container",4,"ngIf"],[3,"selectedCustomerServiceRequestStatus",4,"ngIf"],[3,"imageClose","image"],[3,"serviceNumber","bike","qrCode","close",4,"ngIf"],[1,"button","cursor_pointer",3,"click"],[1,"button","cursor_pointer","check-offer",3,"click"],[1,"customer-service-request",3,"ngClass"],[1,"bike-details-container"],[1,"bike-details-container-wrapper"],[1,"bike-information-container"],[1,"bike-information"],[1,"number"],[1,"model-container"],[1,"model"],[1,"brand-container"],[1,"brand"],["xmlns","http://www.w3.org/2000/svg","width","1","height","14","viewBox","0 0 1 14","fill","none",4,"ngIf"],["class","e-bike",4,"ngIf"],[1,"show-detail",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","8","height","5","viewBox","0 0 8 5","fill","none",1,"show-detail-icon",3,"ngClass"],["d","M1 1L4 4L7 1","stroke","#FF5E3A"],[1,"submitted-container"],[1,"service-number"],[1,"date"],["class","cost-cover",4,"ngIf"],["class","service-details",4,"ngIf"],[1,"repair-progress"],[1,"view-all",3,"click"],[1,"progress-line"],[1,"progress",3,"ngStyle"],[1,"progress-circle",3,"ngStyle"],[1,"status-container",3,"ngStyle","ngClass"],[1,"status"],[1,"underline"],[1,"shop-offers-container"],["class","title",4,"ngIf"],[1,"shop-offers"],["class","shop-offer-container",4,"ngFor","ngForOf"],["class","payment-details-container",4,"ngIf"],[3,"currency","messages","userRole","picture","customerServiceRequest","nickname","customerServiceRequestId",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","1","height","14","viewBox","0 0 1 14","fill","none"],["d","M0.5 0.5V13.5","
1stroke","#989898"],[1,"e-bike"],[1,"cost-cover"],[1,"service-details"],[1,"services"],[1,"service"],[1,"service-name"],[1,"name"],[1,"type"],[1,"service-underline"],[1,"price-title"],[1,"price"],["class","service",4,"ngIf"],["class","problem-underline",4,"ngIf"],["class","problem-description",4,"ngIf"],["class","images-container",4,"ngIf"],[1,"problem-underline"],[1,"problem-description"],[1,"title"],[1,"problem"],[1,"images-container"],[4,"ngFor","ngForOf"],["class","show-all",3,"click",4,"ngIf"],["class","image-container",3,"click",4,"ngIf"],[1,"image-container",3,"click"],["class","image",3,"src",4,"ngIf"],["class","image","controls","",3,"src",4,"ngIf"],[1,"image",3,"src"],["controls","",1,"image",3,"src"],[1,"show-all",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","17","viewBox","0 0 17 17","fill","none"],["clip-path","url(#clip0_3347_1187)"],["d","M15.5573 4.38009H15.4115C15.3261 3.64885 14.7377 3.06909 14.0023 2.99814C13.9179 2.20982 13.2491 1.59375 12.4389 1.59375H2.40426C1.06134 1.59375 -0.03125 2.68634 -0.03125 4.02913V11.065C-0.03125 11.8809 0.593126 12.5534 1.38896 12.6303C1.47249 13.4102 2.12812 14.0211 2.92669 14.0339C2.92876 14.1723 2.95042 14.3059 2.98972 14.432C3.16858 15.0062 3.70528 15.4242 4.33756 15.4242H15.5573C16.3356 15.4242 16.9688 14.791 16.9688 14.0128V5.79162C16.9688 5.01329 16.3356 4.38009 15.5573 4.38009ZM16.3047 5.79162V11.2283L14.8604 10.1372C14.4657 9.83917 13.932 9.8345 13.5323 10.1257L11.7052 11.4569L8.22091 7.86474C7.80587 7.43673 7.13052 7.4104 6.68345 7.80495L3.59023 10.534V5.79162C3.59023 5.37943 3.92551 5.04416 4.33756 5.04416H15.5573C15.9694 5.04416 16.3047 5.37943 16.3047 5.79162ZM16.3047 14.0127C16.3047 14.4248 15.9694 14.7601 15.5574 14.7601H4.33756C4.00281 14.7601 3.71864 14.5387 3.62395 14.2347C3.60204 14.1645 3.59023 14.09 3.59023 14.0128V11.4194L7.12287 8.30287C7.30354 8.14334 7.57643 8.15397 7.74426 8.32699L9.31675 9.94824C9.31675 9.94837 9.31675 9.94837 9.31688 9.94837L12.4467 13.1752C12.5118 13.2424 12.5983 13.2761 12.6851 13.2761C12.7683 13.2761 12.8517 13.245 12.9162 13.1824C13.0477 13.0547 13.0509 12.8446 12.9233 12.7129L12.1721 11.9384L13.9233 10.6625C14.0849 10.5447 14.3006 10.5465 14.4601 10.667L16.3047 12.0604V14.0127ZM2.04395 12.4618V4.62224C2.04395 4.58891 2.04564 4.55584 2.04901 4.52341C2.09855 4.03613 2.51139 3.65468 3.01151 3.65468H7.07294C7.25633 3.65468 7.40497 3.50605 7.40497 3.32265C7.40497 3.13925 7.25633 2.99062 7.07294 2.99062H3.01151C2.11178 2.99062 1.37989 3.72252 1.37989 4.62224V11.9594C0.955637 11.883 0.632814 11.511 0.632814 11.065V4.02913C0.632814 3.05249 1.42749 2.25781 2.40426 2.25781H12.4389C12.8796 2.25781 13.2481 2.57337 13.3302 2.99062H9.72919C9.5458 2.99062 9.39716 3.13925 9.39716 3.32265C9.39716 3.50605 9.5458 3.65468 9.72919 3.65468H13.6793H13.6797H13.85C14.2881 3.65468 14.6549 3.96661 14.7399 4.38009H4.33756C3.55936 4.38009 2.92617 5.01329 2.92617 5.79162V11.2694V11.2696V13.3699C2.43733 13.356 2.04395 12.954 2.04395 12.4618Z","fill","#989898"],["d","M12.8663 6.39551C12.0827 6.39551 11.4453 7.03298 11.4453 7.81637C11.4453 8.59989 12.0828 9.23736 12.8663 9.23736C13.6497 9.23736 14.2872 8.59989 14.2872 7.81637C14.2872 7.03298 13.6497 6.39551 12.8663 6.39551ZM12.8663 8.5733C12.4489 8.5733 12.1094 8.23375 12.1094 7.8165C12.1094 7.39913 12.4489 7.05957 12.8663 7.05957C13.2835 7.05957 13.6231 7.39913 13.6231 7.8165C13.6231 8.23375 13.2835 8.5733 12.8663 8.5733Z","fill","#989898"],["d","M8.09196 3.44976C8.10026 3.46974 8.1105 3.48893 8.12244 3.50696C8.1345 3.52512 8.14838 3.54211 8.16368 3.55741C8.17899 3.57259 8.19585 3.5866 8.21413 3.59892C8.23203 3.61085 8.25162 3.6211 8.27159 3.6294C8.29144 3.6377 8.31245 3.64405 8.33372 3.64833C8.35486 3.65261 8.37678 3.65469 8.39844 3.65469C8.42036 3.65469 8.44189 3.65261 8.46355 3.64833C8.48469 3.64405 8.50531 3.6377 8.52554 3.6294C8.54552 3.6211 8.56471 3.61085 8.58274 3.59892C8.6009 3.5866 8.61789 3.57259 8.6332 3.55741C8.64876 3.54211 8.66238 3.52512 8.6747 3.50696C8.68663 3.48893 8.69688 3.46974 8.70518 3.44976C8.71348 3.42953 8.71983 3.40865 8.72411 3.38777C8.72839 3.36611 8.73047 3.34419 8.73047 3.32266C8.73047 3.301 8.72839 3.27908 8.72411 3.25794C8.71983 3.23667 8.71348 3.21565 8.70518 3.19581C8.69688 3.17558 8.68663 3.15625 8.6747 3.13835C8.66238 3.12007 8.64876 3.1032 8.6332 3.0879C8.61789 3.0726 8.6009 3.05872 8.58274 3.04666C8.56471 3.03472 8.54552 3.02448 8.52554 3.01618C8.50531 3.00788 8.48469 3.001
152 8.46355 2.99724C8.42062 2.98855 8.37652 2.98855 8.33372 2.99724C8.31245 3.00152 8.29144 3.00788 8.27159 3.01618C8.25162 3.02448 8.23203 3.03472 8.21413 3.04666C8.19585 3.05872 8.17899 3.0726 8.16368 3.0879C8.14838 3.1032 8.1345 3.12007 8.12244 3.13835C8.1105 3.15625 8.10026 3.17558 8.09196 3.19581C8.08366 3.21565 8.0773 3.23667 8.07302 3.25794C8.06874 3.27908 8.06641 3.301 8.06641 3.32266C8.06641 3.34419 8.06874 3.36611 8.07302 3.38777C8.0773 3.40865 8.08366 3.42953 8.09196 3.44976Z","fill","#989898"],["id","clip0_3347_1187"],["width","17","height","17","fill","white"],[1,"shop-offer-container"],["class","pick-up-service",4,"ngIf"],["class","shop-offer",4,"ngIf"],["class","new-offers",4,"ngIf"],[1,"pick-up-service"],["src","assets/images/veloblitz-icon.png","alt","",1,"icon"],[3,"href"],[1,"shop-offer"],[1,"shop-offer-wrapper"],[1,"main-information"],[1,"shop-information"],[1,"shop-name"],[1,"shop-address"],[1,"shop-profile",3,"click"],[1,"offer-details"],[1,"details-container"],[1,"label"],[1,"value"],["class","value",4,"ngIf"],["class","comment",4,"ngIf"],[1,"offer-options"],["class","circles",4,"ngIf"],[1,"book__shop-profile",3,"ngClass"],["class","book flex-center",3,"click",4,"ngIf"],["class","booked",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 14 14","fill","none"],["clip-path","url(#clip0_3322_669)"],["width","13.4136","height","13.5242","transform","translate(0.238281 0.0820312)","fill","white"],["d","M4.78247 4.54521L4.8801 4.53086L4.92345 4.44222L6.4441 1.3336C6.44411 1.33357 6.44412 1.33355 6.44413 1.33353C6.64947 0.914332 7.23961 0.917307 7.4445 1.33372C7.44453 1.33377 7.44455 1.33382 7.44458 1.33387L8.96509 4.44222L9.00844 4.53086L9.10606 4.54521L12.5084 5.04532L12.5085 5.04534C12.9632 5.11183 13.1502 5.68089 12.8166 6.00841L12.8166 6.00846L10.3551 8.42686L10.2853 8.49544L10.3017 8.59189L10.8839 12.008C10.9628 12.4734 10.4778 12.8157 10.0757 12.6025L10.0756 12.6025L7.03196 10.9895L6.94427 10.943L6.85658 10.9895L3.8129 12.6025L3.81231 12.6028C3.41152 12.8171 2.92559 12.4746 3.00465 12.0082C3.00465 12.0081 3.00466 12.0081 3.00467 12.008L3.58683 8.59189L3.60327 8.49544L3.53347 8.42686L1.07198 6.00846L1.07193 6.00841C0.738302 5.68089 0.925361 5.11183 1.38003 5.04534L1.38017 5.04532L4.78247 4.54521Z","fill","white","stroke","#FF5E3A","stroke-width","0.374517",3,"ngClass"],["id","clip0_3322_669"],["width","13.4136","height","13.5242","fill","white","transform","translate(0.238281 0.0820312)"],[1,"comment"],[1,"comment-message"],[1,"circles"],["class","qr-code chat",3,"click",4,"ngIf"],["class","chat",3,"click",4,"ngIf"],[1,"qr-code","chat",3,"click"],["clip-path","url(#clip0_4092_466)"],["d","M4.51168 13.5625C4.51168 13.7513 4.35864 13.9043 4.16988 13.9043H2.4863C1.16705 13.9043 0.09375 12.831 0.09375 11.5118V9.82819C0.09375 9.63944 0.246793 9.48639 0.435547 9.48639C0.624301 9.48639 0.777344 9.63944 0.777344 9.82819V11.5118C0.777344 12.4541 1.54398 13.2207 2.4863 13.2207H4.16988C4.35864 13.2207 4.51168 13.3738 4.51168 13.5625ZM11.5098 0.0957305H9.82621C9.63746 0.0957305 9.48441 0.248773 9.48441 0.437527C9.48441 0.626281 9.63746 0.779324 9.82621 0.779324H11.5098C12.4521 0.779324 13.2188 1.54596 13.2188 2.48831V4.17189C13.2188 4.36064 13.3718 4.51369 13.5605 4.51369C13.7493 4.51369 13.9023 4.36064 13.9023 4.17189V2.48831C13.9023 1.16903 12.829 0.0957305 11.5098 0.0957305ZM0.435547 4.51366C0.624301 4.51366 0.777344 4.36062 0.777344 4.17186V2.48828C0.777344 1.54596 1.54398 0.779297 2.4863 0.779297H4.16988C4.35864 0.779297 4.51168 0.626254 4.51168 0.4375C4.51168 0.248746 4.35864 0.0957031 4.16988 0.0957031H2.4863C1.16702 0.0957305 0.09375 1.16903 0.09375 2.48828V4.17186C0.09375 4.36062 0.246793 4.51366 0.435547 4.51366ZM13.5606 9.48639C13.3718 9.48639 13.2188 9.63944 13.2188 9.82819V11.5118C13.2188 12.4541 12.4521 13.2207 11.5098 13.2207H9.82624C9.63748 13.2207 9.48444 13.3738 9.48444 13.5625C9.48444 13.7513 9.63748 13.9043 9.82624 13.9043H11.5098C12.8291 13.9043 13.9024 12.831 13.9024 11.5118V9.82819C13.9024 9.63944 13.7493 9.48639 13.5606 9.48639ZM6.33633 3.76163V5.58455C6.33633 6.00018 5.9982 6.33834 5.58257 6.33834H3.75964C3.34402 6.33834 3.00589 6.00018 3.00589 5.58455V3.76163C3.00589 3.346 3.34402 3.00784 3.75964 3.00784H5.58257C5.9982 3.00784 6.33633 3.346 6.33633 3.76163ZM5.65273 3.76163C5.65273 3.72356 5.62061 3.69143 5.58257 3.69143H3.75964C3.72158 3.69143 3.68948 3.72356 3.68948 3.76163V5.58455C3.68948 5.62261 3.72161 5.65474 3.75964 5.65474H5.58257C5.62063 5.65474 5.65273 5.62261 5.65273 5.58455V3.76163ZM7.65974 5.58455V3.76163C7.65974 3.346 7.99787 3.00784 8.4135 3.00784H10.2364C10.652 3.00784 10.9902 3.346 10.9902 3.76163V5.58455C10.9902 6.00018 10.652 6.33834 10.2364 6.33834H8.4135C7.99787 6.33834 7.65974 6.00018 7.65974 5.58455ZM8.34333 5.58455C8.34333 5.62261 8.37546 5.65474 8.4135 5.65474H10.2364C10.2745 5.65474 10.3066 5.62261 10.3066 5.58455V3.76163C10.3066 3.72356 10.2745 3.69143 10.2364 3.69143H8.4135C8.37543 3.69143 8.34333 3.72356 8.34333 3.76163V5.58455ZM6.33633 8.41553V10.2385C6.33633 10.6541 5.9982 10.9922 5.58257 10.9922H3.75964C3.34402 10.9922 3.00589 10.6541 3.00589 10.2385V8.41553C3.00589 7.99991 3.34402 7.66175 3.75964 7.66175H5.58257C5.9982 7.66175 6.33633 7.99991 6.33633 8.41553ZM5.65273 8.41553C5.65273 8.37747 5.62061 8.34534 5.58257 8.34534H3.75964C3.72158 8.34534 3.68948 8.37747 3.68948 8.41553V10.2385C3.68948 10.2765 3.72161 10.3086 3.75964 10.3086H5.58257C5.62063 10.3086 5.65273 10.2765 5.65273 10.2385V8.41553ZM10.2365 10.9922H8.41352C7.9979 10.9922 7.65977 10.6541 7.65977 10.2384V8.4155C
17.65977 7.99988 7.9979 7.66172 8.41352 7.66172H10.2365C10.6521 7.66172 10.9902 7.99988 10.9902 8.4155V10.2384C10.9902 10.6541 10.6521 10.9922 10.2365 10.9922ZM8.41352 10.3086H10.2365C10.2745 10.3086 10.3066 10.2765 10.3066 10.2384V8.4155C10.3066 8.37744 10.2745 8.34531 10.2365 8.34531H8.41352C8.37546 8.34531 8.34336 8.37744 8.34336 8.4155V10.2384C8.34336 10.2765 8.37549 10.3086 8.41352 10.3086Z","fill","black"],["id","clip0_4092_466"],["width","14","height","14","fill","white"],[1,"chat",3,"click"],["class","dot",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","10","height","13","viewBox","0 0 10 13","fill","none"],["d","M9.56805 0.336219C9.35046 0.236008 9.09412 0.274972 8.91613 0.435273L8.07128 1.18336L6.92183 0.155157C6.69091 -0.051719 6.3413 -0.051719 6.11037 0.155157L4.96187 1.18238L3.81309 0.155157C3.58211 -0.051719 3.23247 -0.051719 3.00148 0.155157L1.85173 1.18336L1.00608 0.435304C0.756561 0.213512 0.374467 0.236008 0.152675 0.485531C0.0533773 0.597249 -0.00102049 0.741813 1.45018e-05 0.891277V12.1087C-0.00196415 12.4431 0.267468 12.7157 0.601799 12.7177C0.751294 12.7185 0.895858 12.6641 1.00761 12.5647L1.85246 11.8166L3.00191 12.8448C3.23283 13.0517 3.58244 13.0517 3.81337 12.8448L4.96187 11.8175L6.11055 12.8447C6.34154 13.0516 6.69118 13.0516 6.92217 12.8447L8.07192 11.8166L8.91756 12.5646C9.16706 12.7865 9.54915 12.7641 9.77097 12.5146C9.87036 12.4028 9.92476 12.2582 9.92372 12.1086V0.891277C9.92674 0.651799 9.78686 0.433538 9.56805 0.336219ZM8.47401 11.3605C8.24306 11.156 7.89542 11.1569 7.66556 11.3627L6.51615 12.3909L5.36762 11.3637C5.13666 11.1568 4.78702 11.1568 4.55606 11.3637L3.40741 12.3909L2.25751 11.3627C2.02853 11.1569 1.68151 11.156 1.4514 11.3605L0.608831 12.1084V10.4857L0.605787 0.891429L1.44973 1.63933C1.68068 1.84392 2.02832 1.84301 2.25818 1.63717L3.40759 0.608999L4.55612 1.63622C4.78708 1.8431 5.13672 1.8431 5.36768 1.63622L6.51633 0.608999L7.66623 1.63717C7.89521 1.84298 8.24223 1.84392 8.47234 1.63936L9.31491 0.891277V8.6023L9.31795 12.1084L8.47401 11.3605Z","fill","black"],["d","M7.84509 6.19556H2.07394C1.90581 6.19556 1.76953 6.33184 1.76953 6.49996C1.76953 6.66809 1.90581 6.80437 2.07394 6.80437H7.84509C8.01322 6.80437 8.1495 6.66809 8.1495 6.49996C8.1495 6.33184 8.01319 6.19556 7.84509 6.19556Z","fill","black"],["d","M5.10542 4.36914H2.07394C1.90581 4.36914 1.76953 4.50542 1.76953 4.67355C1.76953 4.84167 1.90581 4.97796 2.07394 4.97796H5.10542C5.27354 4.97796 5.40983 4.84167 5.40983 4.67355C5.40983 4.50542 5.27351 4.36914 5.10542 4.36914Z","fill","black"],["d","M7.84509 8.02197H2.07394C1.90581 8.02197 1.76953 8.15826 1.76953 8.32638C1.76953 8.49451 1.90581 8.63079 2.07394 8.63079H7.84509C8.01322 8.63079 8.1495 8.49451 8.1495 8.32638C8.1495 8.15826 8.01319 8.02197 7.84509 8.02197Z","fill","black"],[1,"dot"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_326_466)"],["d","M14.7978 6.2405C14.969 5.75422 15.0625 5.23159 15.0625 4.6875C15.0625 2.10281 12.9597 0 10.375 0H4.6875C2.10281 0 0 2.10281 0 4.6875C0 5.88997 0.455375 6.98797 1.20244 7.81862C1.02672 8.31706 0.9375 8.83916 0.9375 9.375C0.9375 11.9769 3.04031 14.0938 5.625 14.0938H7.85744L10.5828 15.9206C10.6614 15.9733 10.7525 16 10.8438 16C10.9194 16 10.9953 15.9817 11.0645 15.9448C11.2171 15.8633 11.3125 15.7043 11.3125 15.5312V14.0938H11.7642C11.8367 14.0938 11.9053 14.0773 11.9665 14.048C14.2427 13.7266 16 11.7535 16 9.375C16 8.20328 15.5752 7.10194 14.7978 6.2405ZM0.9375 4.6875C0.9375 2.61975 2.61975 0.9375 4.6875 0.9375H10.375C12.4428 0.9375 14.125 2.61975 14.125 4.6875C14.125 6.75525 12.4428 8.4375 10.375 8.4375H8C7.90825 8.4375 7.81853 8.46441 7.74197 8.51491L5.625 9.91072V8.90625C5.625 8.64737 5.41513 8.4375 5.15625 8.4375H4.6875C2.61975 8.4375 0.9375 6.75525 0.9375 4.6875ZM11.3125 13.1562H10.8438C10.5849 13.1562 10.375 13.3661 10.375 13.625V14.6527L8.26103 13.2357C8.18381 13.1839 8.09297 13.1562 8 13.1562H5.625C3.55725 13.1562 1.875 11.46 1.875 9.375C1.875 9.07994 1.90878 8.79022 1.97547 8.50844C2.57344 8.93412 3.27497 9.22331 4.03441 9.32969C4.09541 9.35875 4.16372 9.37503 4.23578 9.37503H4.6875V10.7813C4.6875 10.9537 4.78219 11.1123 4.93403 11.194C5.08575 11.2757 5.27022 11.2676 5.41428 11.1726L8.14062 9.375H10.375C12.0478 9.375 13.5185 8.494 14.3482 7.17181C14.8122 7.80766 15.0625 8.57063 15.0625 9.375C1
15.0625 11.46 13.3803 13.1562 11.3125 13.1562Z","fill","black"],["d","M4.6875 3.75C4.17056 3.75 3.75 4.17056 3.75 4.6875C3.75 5.20444 4.17056 5.625 4.6875 5.625C5.20444 5.625 5.625 5.20444 5.625 4.6875C5.625 4.17056 5.20444 3.75 4.6875 3.75Z","fill","black"],["d","M7.53125 3.75C7.01431 3.75 6.59375 4.17056 6.59375 4.6875C6.59375 5.20444 7.01431 5.625 7.53125 5.625C8.04819 5.625 8.46875 5.20444 8.46875 4.6875C8.46875 4.17056 8.04819 3.75 7.53125 3.75Z","fill","black"],["d","M10.375 3.75C9.85806 3.75 9.4375 4.17056 9.4375 4.6875C9.4375 5.20444 9.85806 5.625 10.375 5.625C10.8919 5.625 11.3125 5.20444 11.3125 4.6875C11.3125 4.17056 10.8919 3.75 10.375 3.75Z","fill","black"],["id","clip0_326_466"],["width","16","height","16","fill","white"],[1,"book","flex-center",3,"click"],[1,"booked"],[1,"new-offers"],["class","new-offer",4,"ngFor","ngForOf"],[1,"new-offer"],[1,"new-offer-wrapper","shop-offer"],[1,"newOffer-status"],["class","accepted status-block",4,"ngIf"],["class","rejected status-block",4,"ngIf"],["class","waiting status-block",4,"ngIf"],["class","images",4,"ngIf"],[1,"accepted","status-block"],[1,"rejected","status-block"],[1,"waiting","status-block"],[1,"images"],["class","image",3,"src","click",4,"ngFor","ngForOf"],[1,"image",3,"click","src"],[1,"payment-details-container"],[1,"payment-details-title"],[1,"status","flex-center"],[1,"payments"],["class","payment",4,"ngFor","ngForOf"],[1,"payment"],[1,"time"],[1,"amount"],[1,"card-number-container"],[1,"card-number"],["src","assets/images/visa-label.svg",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","30","height","30","viewBox","0 0 48 48",4,"ngIf"],[1,"stars"],["src","assets/images/visa-label.svg"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","30","height","30","viewBox","0 0 48 48"],["fill","#3F51B5","d","M45,35c0,2.209-1.791,4-4,4H7c-2.209,0-4-1.791-4-4V13c0-2.209,1.791-4,4-4h34c2.209,0,4,1.791,4,4V35z"],["fill","#FFC107","d","M30 14A10 10 0 1 0 30 34A10 10 0 1 0 30 14Z"],["fill","#FF3D00","d","M22.014,30c-0.464-0.617-0.863-1.284-1.176-2h5.325c0.278-0.636,0.496-1.304,0.637-2h-6.598C20.07,25.354,20,24.686,20,24h7c0-0.686-0.07-1.354-0.201-2h-6.598c0.142-0.696,0.359-1.364,0.637-2h5.325c-0.313-0.716-0.711-1.383-1.176-2h-2.973c0.437-0.58,0.93-1.122,1.481-1.595C21.747,14.909,19.481,14,17,14c-5.523,0-10,4.477-10,10s4.477,10,10,10c3.269,0,6.162-1.575,7.986-4H22.014z"],[3,"currency","messages","userRole","picture","customerServiceRequest","nickname","customerServiceRequestId"],[1,"phone-buttons"],[1,"charge-money-container",3,"clickOutside"],[1,"title-container"],[1,"sub-title"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none",1,"icon",3,"click"],["d","M5.7544 7.59037L0.447249 2.28322L2.36686 0.363611L7.67401 5.67076L13.0376 0.307152L15.1831 2.4526L9.81945 7.81621L14.9855 12.9822L13.0658 14.9018L7.89985 9.73582L2.45155 15.1841L0.306102 13.0387L5.7544 7.59037Z","fill","#989898"],[1,"price-container"],[1,"cost"],[1,"cyclix-fee"],[1,"symbol-container"],["xmlns","http://www.w3.org/2000/svg","width","10","height","10","viewBox","0 0 10 10","fill","none",1,"symbol",3,"click"],["d","M10 5C10 2.23858 7.76142 0 5 0C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10C7.76142 10 10 7.76142 10 5Z","fill","#989898"],["d","M3.27734 3.83291C3.27734 3.61439 3.3475 3.39299 3.48781 3.16871C3.62813 2.94443 3.83285 2.75867 4.10199 2.61145C4.37116 2.46431 4.68514 2.3907 5.04395 2.39062C5.37742 2.39062 5.67186 2.45216 5.92725 2.57523C6.18264 2.69831 6.3799 2.86566 6.51904 3.07729C6.6559 3.28134 6.72859 3.52165 6.72779 3.76734C6.72779 3.96286 6.68808 4.13424 6.60865 4.28146C6.53419 4.42214 6.43879 4.55069 6.32572 4.66271C6.21648 4.76971 6.02039 4.94971 5.73746 5.20271C5.67135 5.26188 5.60857 5.32465 5.54941 5.39076C5.50855 5.43587 5.47322 5.4857 5.4442 5.5392C5.42191 5.58215 5.40399 5.62723 5.39072 5.67377C5.37804 5.71864 5.35906 5.79742 5.33377 5.9101C5.29005 6.14936 5.15319 6.26896 4.9232 6.26893C4.86761 6.27036 4.81229 6.26072 4.76046 6.24059C4.70863 6.22045 4.66131 6.19021 4.62127 6.15162C4.53959 6.0735 4.49876 5.95734 4.49879 5.80314C4.49879 5.60993 4.52868 5.44261 4.58848 5.30119C4.64552 5.
116399 4.72609 5.03782 4.82656 4.92836C4.95344 4.79458 5.08702 4.66733 5.2268 4.54709C5.374 4.4183 5.4804 4.32111 5.546 4.25553C5.61112 4.19055 5.66685 4.11681 5.71158 4.03643C5.75633 3.95632 5.77951 3.86596 5.77885 3.7742C5.7802 3.68635 5.76256 3.59925 5.72713 3.51886C5.6917 3.43846 5.63932 3.36667 5.57357 3.3084C5.43667 3.18194 5.26013 3.11869 5.04395 3.11863C4.7909 3.11863 4.60458 3.18243 4.485 3.31004C4.36542 3.43764 4.26419 3.62568 4.18133 3.87416C4.10311 4.13425 3.95475 4.2643 3.73625 4.2643C3.67541 4.26551 3.61498 4.25402 3.55883 4.23055C3.50269 4.20708 3.45206 4.17216 3.41018 4.12801C3.32162 4.03711 3.27734 3.93874 3.27734 3.83291ZM4.96115 7.61453C4.82597 7.61645 4.69493 7.56785 4.59369 7.47824C4.48898 7.38741 4.43664 7.26032 4.43668 7.09697C4.43522 7.02881 4.44796 6.9611 4.47409 6.89813C4.50023 6.83516 4.53918 6.77832 4.58848 6.73123C4.63744 6.68272 4.69567 6.64457 4.7597 6.61907C4.82373 6.59357 4.89225 6.58123 4.96115 6.58279C5.02894 6.58181 5.09624 6.59444 5.15906 6.61993C5.22187 6.64543 5.27894 6.68327 5.32687 6.73121C5.3748 6.77916 5.41263 6.83623 5.43811 6.89906C5.46358 6.96189 5.4762 7.02918 5.4752 7.09697C5.4752 7.25801 5.42343 7.38452 5.3199 7.4765C5.22213 7.5663 5.0939 7.61564 4.96115 7.61453Z","fill","white"],["class","cyclix-fee-details",3,"clickOutside",4,"ngIf"],["class","price",4,"ngIf"],[1,"total-price","price"],["xmlns","http://www.w3.org/2000/svg","width","268","height","2","viewBox","0 0 268 2","fill","none",1,"underline"],["d","M0 1H268","stroke","#CED3DB","stroke-dasharray","2 2"],[1,"input-fields"],[1,"input-field"],[1,"field"],[1,"expire__cvv"],[1,"options"],[1,"option","cursor_pointer",3,"click"],[1,"option","pay","flex-center",3,"click"],[1,"alignment"],[1,"cyclix-fee-details",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","15","height","10","viewBox","0 0 15 10","fill","none"],["d","M6.96824 0.339125L0.449741 7.79492C-0.115632 8.44159 0.343616 9.45312 1.20258 9.45312H13.8774C14.7232 9.45312 15.187 8.46856 14.6485 7.81641L8.49218 0.360615C8.09951 -0.114942 7.37417 -0.125171 6.96824 0.339125Z","fill","#515151"],[1,"backdrop"],[1,"order-summary-container-wrapper"],[1,"order-summary-container",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none",3,"click"],["d","M4.58964 5.88647L0.84377 2.1406L2.19866 0.785717L5.94453 4.53158L9.73024 0.745867L11.2445 2.26015L7.45881 6.04587L11.1051 9.69211L9.75017 11.047L6.10392 7.40076L2.25843 11.2462L0.744146 9.73196L4.58964 5.88647Z","fill","#989898"],[1,"shop-address-container"],[1,"shop-name__address"],[1,"issued-date"],[1,"price-description"],[1,"price-description-label"],[1,"prices-container"],[1,"price-section"],["class","price-section",4,"ngIf"],[1,"second-underline"],[1,"price-section","total-price"],[1,"description"],[4,"ngIf"],[1,"price","total"],["class","price-section holder-section",4,"ngIf"],["class"," price-section additional-amount",4,"ngIf"],["class","message-container",4,"ngIf"],["class","pay-container",4,"ngIf"],[1,"price-section","holder-section"],[1,"price","holden"],[1,"price-section","additional-amount"],["class","image-container",4,"ngFor","ngForOf"],[1,"image-container"],["class","image","xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","400","height","400","viewBox","0 0 100 100",4,"ngIf"],["class","image","alt","",3,"src","click",4,"ngIf"],[1,"image-name"],["target","_blank",3,"href","download"],["xmlns","http://www.w3.org/2000/svg","width","8","height","8","viewBox","0 0 8 8","fill","none"],["clip-path","url(#clip0_3820_502)"],["d","M0 7.5C0 7.77614 0.223859 8 0.5 8H7.5C7.77614 8 8 7.77614 8 7.5C8 7.22386 7.77614 7 7.5 7H0.5C0.223859 7 0 7.22386 0 7.5ZM4.35355 5.91606C4.25591 6.0137 4.12797 6.06252 4 6.06252C3.87206 6.06252 3.74406 6.01369 3.64645 5.91606L1.87492 4.14455C1.67966 3.94928 1.67966 3.6327 1.87492 3.43744C2.07019 3.24217 2.38677 3.24217 2.58203 3.43744L3.5 4.35541V0.5C3.5 0.223859 3.72386 0 4 0C4.27614 0 4.5 0.223859 4.5 0.5V4.35541L5.41797 3.43744C5.61323 3.24217 5.92981 3.24217 6.12508 3.43744C6.32034 3.6327 6.32034 3.94928 6.12508 4.14455L4.35355 5.91606Z","fill","#989898"],["id","clip0_3820_502"],["width","8","height","8","fill","white","transform","matrix(-1 0 0 1 8 0)"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","400","height","400","viewBox","0 0 100 100",1,"image"],["d","M 34.179688 10.164062 C 32.103687 10.164062 30.615234 11.426266 30.615234 13.697266 L 30.648438 25.806641 C 30.648438 28.846641 32.770234 30.712891 35.615234 30.712891 C 38.460234 30.712891 40.615234 29.002891 40.615234 25.962891 L 40.615234 14.306641 L 39.613281 14.306641 L 39.523438 25.869141 C 39.523438 28.079141 37.599438 29.808594 35.648438 29.808594 C 33.697437 29.808594 31.615234 28.049844 31.615234 25.839844 L 31.644531 13.611328 C 31.644531 12.304328 33.077484 11.126953 34.271484 11.126953 C 35.465484 11.126953 36.615234 12.275031 36.615234 13.582031 L 36.615234 24.056641 C 36.615234 24.056641 36.139813 25.056641 35.632812 25.056641 C 35.125812 25.056641 34.486234 24.700391 34.615234 24.150391 L 34.615234 14.308594 L 33.615234 14.308594 L 33.582031 23.964844 C 33.582031 25.344844 34.32225 25.964844 35.65625 25.964844 C 36.99025 25.964844 37.615234 25.249141 37.615234 23.869141 L 37.615234 13.664062 C 37.615234 11.393062 36.255687 10.164062 34.179688 10.164062 z M 41.613281 11.306641 C 41.061281 11.306641 40.613281 11.754641 40.613281 12.306641 C 40.613281 12.858641 41.061281 13.306641 41.613281 13.306641 L 59.613281 13.306641 L 59.613281 23.792969 C 59.613281 29.039969 63.881906 33.306641 69.128906 33.306641 L 79.613281 33.306641 L 79.613281 82.574219 C 79.613281 86.837219 76.146812 90.306641 71.882812 90.306641 L 28.347656 90.306641 C 24.084656 90.306641 20.615234 86.838219 20.615234 82.574219 L 20.615234 21.039062 C 20.615234 16.776063 24.083656 13.308594 28.347656 13.308594 L 29.615234 13.308594 C 30.167234 13.308594 30.615234 12.860594 30.615234 12.308594 C 30.615234 11.756594 30.167234 11.308594 29.615234 11.308594 L 28.347656 11.308594 C 22.981656 11.308594 18.615234 15.672062 18.615234 21.039062 L 18.615234 82.574219 C 18.615234 87.940219 22.980656 92.306641 28.347656 92.306641 L 71.882812 92.306641 C 77.248812 92.306641 81.613281 87.940219 81.613281 82.574219 L 81.613281 32.554688 C 81.613281 32.289688 81.508313 32.035656 81.320312 31.847656 L 61.072266 11.599609 C 60.885266 11.411609 60.630234 11.306641 60.365234 11.306641 L 41.613281 11.306641 z M 60.613281 13.966797 L 78.951172 32.306641 L 69.128906 32.306641 C 64.433906 32.306641 60.613281 28.487969 60.613281 23.792969 L 60.613281 13.966797 z M 28.371094 19.505859 C 28.245219 19.481734 28.110094 19.505984 27.996094 19.583984 C 25.878094 21.023984 24.613281 23.406078 24.613281 25.955078 L 24.613281 78.617188 C 24.613281 82.856187 28.048484 86.306641 32.271484 86.306641 L 67.955078 86.306641 C 72.178078 86.306641 75.613234 82.856188 75.615234 78.617188 L 75.615234 60.806641 C 75.615234 60.530641 75.391234 60.306641 75.115234 60.306641 C 74.839234 60.306641 74.615234 60.530641 74.615234 60.806641 L 74.615234 78.617188 C 74.615234 82.305187 71.628031 85.306641 67.957031 85.306641 L 32.273438 85.306641 C 28.602438 85.306641 25.615234 82.305188 25.615234 78.617188 L 25.615234 25.955078 C 25.615234 23.737078 26.714594 21.664156 28.558594 20.410156 C 28.786594 20.255156 28.846406 19.945797 28.691406 19.716797 C 28.613906 19.603297 28.496969 19.529984 28.371094 19.505859 z M 75.113281 47.306641 C 74.837281 47.306641 74.613281 47.530641 74.613281 47.806641 L 74.613281 50.806641 C 74.613281 51.082641 74.837281 51.306641 75.113281 51.306641 C 75.390281 51.306641 75.613281 51.082641 75.613281 50.806641 L 75.613281 47.806641 C 75.613281 47.530641 75.389281 47.306641 75.113281 47.306641 z M 30.113281 51.306641 C 29.837281 51.306641 29.613281 51.530641 29.613281 51.806641 C 29.613281 52.082641 29.837281 52.306641 30.113281 52.306641 L 53.113281 52.306641 C 53.390281 52.306641 53.613281 52.082641 53.613281 51.806641 C 53.613281 51.530641 53.389281 51.306641 53.113281 51.306641 L 30.113281 51.306641 z M 75.113281 52.306641 C 74.837281 52.306641 74.613281 52.530641 74.613281 52.806641 L 74.613281 58.806641 C 74.613281 59.082641 74.837281 59.306641 75.113281 59.306641 C 75.390281 59.306641 75.613281 59.082641 75.613281 58.806641 L 75.613281 52.806641 C 75.613281 52.530641 75.389281 52.306641 75.113281 52.306641 z M 30.113281 58.306641 C 29.837281 58.306641 29.613281 58.530641 29.613281 58.806641 C 29.613281 59.082641 29.837281 59.306641 30.113281 59.306641 L 44.113281 59.306641 C 44.390281 59.306641 44.613281 59.082641 44.613281 58.806641 C 44.613281 58.530641 44.389281 58.306641 44.113281 58.306641 L 30.113281 58.306641 z M 46.113281 58.306641 C 45.837281 58.306641 45.613281 58.530641 45.613281 58.806641 C 45.613281 59.082641 45.837281 59.306641 46.113281 59.306641 L 70.113281 59.306641 C 70.390281 59.306641 70.613281 59.082641 70.613281 58.806641 C 70.613281 58.530641 70.389281 58.306641 70.113281 58.306641 L 46.113281 58.306641 z M 30.113281 65.306641 C 29.837281 65.306641 29.613281 65.530641 29.613281 65.806641 C 29.613281 66.082641 29.837281 66.306641 30.113281 66.306641 L 48.113281 66.306641 C 48.390281 66.306641 48.613281 66.082641 48.613281 65.806641 C 48.613281 65.530641 48.389281 65.306641 48.113281 65.306641 L 30.113281 65.306641 z M 50.113281 65.306641 C 49.837281 65.306641 49.613281 65.530641 49.613281 65.806641 C 49.613281 66.082641 49.837281 66.306641 50.113281 66.306641 L 61.
1113281 66.306641 C 61.390281 66.306641 61.613281 66.082641 61.613281 65.806641 C 61.613281 65.530641 61.389281 65.306641 61.113281 65.306641 L 50.113281 65.306641 z M 63.113281 65.306641 C 62.837281 65.306641 62.613281 65.530641 62.613281 65.806641 C 62.613281 66.082641 62.837281 66.306641 63.113281 66.306641 L 71.113281 66.306641 C 71.390281 66.306641 71.613281 66.082641 71.613281 65.806641 C 71.613281 65.530641 71.389281 65.306641 71.113281 65.306641 L 63.113281 65.306641 z M 30.113281 72.306641 C 29.837281 72.306641 29.613281 72.530641 29.613281 72.806641 C 29.613281 73.082641 29.837281 73.306641 30.113281 73.306641 L 54.113281 73.306641 C 54.390281 73.306641 54.613281 73.082641 54.613281 72.806641 C 54.613281 72.530641 54.389281 72.306641 54.113281 72.306641 L 30.113281 72.306641 z M 57.113281 72.306641 C 56.837281 72.306641 56.613281 72.530641 56.613281 72.806641 C 56.613281 73.082641 56.837281 73.306641 57.113281 73.306641 L 70.113281 73.306641 C 70.390281 73.306641 70.613281 73.082641 70.613281 72.806641 C 70.613281 72.530641 70.389281 72.306641 70.113281 72.306641 L 57.113281 72.306641 z"],["alt","",1,"image",3,"click","src"],[1,"message-container"],[1,"message-title"],[1,"message"],[1,"pay-container"],[1,"pay",3,"click"],[1,"feedback-container"],[1,"feedback-container-wrapper",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none",1,"close",3,"click"],[1,"rate-container","shop"],["class","stars",4,"ngIf"],[1,"feedback",3,"ngModelChange","ngModel","placeholder"],[1,"rate-container","customer"],[1,"submit-button","flex-center","cursor_pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","22","height","20","viewBox","0 0 22 20","fill","none"],["d","M11.4478 1.02492L13.8606 5.88119C14.079 6.32078 14.4987 6.6257 14.9843 6.69758L20.3485 7.49167C20.7572 7.55218 20.9203 8.0542 20.6252 8.34339L16.7523 12.1388C16.4017 12.4824 16.2414 12.9757 16.3231 13.4598L17.2255 18.8068C17.2942 19.2142 16.8672 19.5245 16.5009 19.3332L11.6945 16.8226C11.2594 16.5954 10.7406 16.5954 10.3055 16.8226L5.49906 19.3332C5.13282 19.5245 4.70578 19.2142 4.77454 18.8068L5.67694 13.4598C5.75863 12.9757 5.59832 12.4824 5.24774 12.1388L1.37477 8.34339C1.07966 8.0542 1.24278 7.55218 1.65151 7.49167L7.0157 6.69758C7.50128 6.6257 7.92096 6.32078 8.13937 5.88119L10.5522 1.02493C10.7361 0.654896 11.2639 0.654897 11.4478 1.02492Z","fill","white","stroke","#FF5E3A",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","width","22","height","20","viewBox","0 0 22 20","fill","none",3,"click"],["d","M11.4478 1.02492L13.8606 5.88119C14.079 6.32078 14.4987 6.6257 14.9843 6.69758L20.3485 7.49167C20.7572 7.55218 20.9203 8.0542 20.6252 8.34339L16.7523 12.1388C16.4017 12.4824 16.2414 12.9757 16.3231 13.4598L17.2255 18.8068C17.2942 19.2142 16.8672 19.5245 16.5009 19.3332L11.6945 16.8226C11.2594 16.5954 10.7406 16.5954 10.3055 16.8226L5.49906 19.3332C5.13282 19.5245 4.70578 19.2142 4.77454 18.8068L5.67694 13.4598C5.75863 12.9757 5.59832 12.4824 5.24774 12.1388L1.37477 8.34339C1.07966 8.0542 1.24278 7.55218 1.65151 7.49167L7.0157 6.69758C7.50128 6.6257 7.92096 6.32078 8.13937 5.88119L10.5522 1.02493C10.7361 0.654896 11.2639 0.654897 11.4478 1.02492Z","fill","white","stroke","#FF5E3A",3,"ngClass"],[1,"bike-assessment-report-container"],[1,"bike-assessment-report-container-wrapper",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none",1,"close-icon",3,"click"],[1,"title-container","flex-center"],[1,"icon-container","flex-center"],["xmlns","http://www.w3.org/2000/svg","width","25","height","22","viewBox","0 0 25 22","fill","none"],["d","M24.7793 19.1954L13.8113 0.751176C13.5341 0.285033 13.0364 0 12.4996 0C11.9627 0 11.465 0.284983 11.1879 0.751176L0.220011 19.1954C-0.0652349 19.6751 -0.073682 20.2734 0.19799 20.7611C0.469662 21.2489 0.979266 21.5505 1.53169 21.5505H23.4675C24.02 21.5505 24.5296 21.2489 24.8012 20.7611C25.0729 20.2733 25.0645 19.6751 24.7793 19.1954ZM12.5078 6.38005C13.1377 6.38005 13.6707 6.74039 13.6707 7.37907C13.6707 9.32796 13.4446 12.1286 13.4446 14.0775C13.4446 14.5852 12.8954 14.7981 12.5078 14.7981C11.991 14.7981 11.5549 14.5852 11.5549 14.0775C11.5549 12.1286 11.3288 9.32796 11.3288 7.37907C11.3288 6.74039 11.8456 6.38005 12.5078 6.38005ZM12.524 18.4503C11.8133 18.4503 11.2803 17.8607 11.2803 17.1893C11.2803 16.5014 11.8133 15.9282 12.524 15.9282C13.1861 15.9282 13.7515 16.5014 13.7515 17.1893C13.7515 17.8607 13.1861 18.4503 12.524 18.4503Z","fill","#FF5E3A"],[1,"title","flex-center"],[1,"subtitle","flex-center"],[1,"sections"],[1,"block"],[1,"block-title"],[1,"block-value"],["class","block",4,"ngIf"],["class","option reject cursor_pointer",3,"click",4,"ngIf"],[1,"option","accept","cursor_pointer",3,"click"],[1,"reject-offer","cursor_pointer",3,"click"],[1,"option","reject","cursor_pointer",3,"click"],[3,"selectedCustomerServiceRequestStatus"],[3,"close","serviceNumber","bike","qrCode"]],template:function(g,C){1&g&&(n.j41(0,"div",3)(1,"div",4)(2,"div",5),n.bIt("click",function(){return C.goBack()}),n.qSk(),n.j41(3,"svg",6),n.nrm(4,"path",7),n.k0s(),n.j41(5,"svg",8),n.nrm(6,"path",9),n.k0s(),n.joV(),n.j41(7,"p",10),n.EFF(8),n.nI1(9,"translate"),n.k0s()(),n.j41(10,"div",11),n.DNE(11,Il,3,3,"div",12)(12,Al,3,3,"div",12)(13,wr,3,3,"div",13),n.k0s()(),n.DNE(14,wi,49,45,"div",14)(15,Yl,4,3,"div",15),n.k0s(),n.DNE(16,Ds,72,45,"div",16)(17,Ql,1,0,"div",17)(18,Rr,65,53,"div",18)(19,Si,29,26,"div",19)(20,Ns,46,32,"div",20)(21,dc,1,1,"app-status-details",21),n.j41(22,"app-full-image",22),n.bIt("imageClose",function(){return C.fullImage=void 0}),n.k0s(),n.DNE(23,uc,1,3,"app-customer-qr-code",23)),2&g&&(n.R7$(8),n.JRh(n.bMT(9,14,"i18n.app.pages.customer.service-request.back-navigation")),n.R7$(3),n.Y8G("ngIf",C.customerServiceRequest.status===C.CustomerServiceRequestStatusType.WaitingForPickUp),n.R7$(),n.Y8G("ngIf",C.customerServiceRequest.status===C.CustomerServiceRequestStatusType.WaitingForPayment),n.R7$(),n.Y8G("ngIf",C.customerServiceRequest.bikeAssessmentReports&&C.isOpenBikeAssessmentModalButton()),n.R7$(),n.Y8G("ngIf",C.customerServiceRequest.i
1d),n.R7$(),n.Y8G("ngIf",(C.customerServiceRequest.status===C.CustomerServiceRequestStatusType.WaitingForPickUp||C.customerServiceRequest.status===C.CustomerServiceRequestStatusType.WaitingForPayment||C.customerServiceRequest.bikeAssessmentReports&&C.isOpenBikeAssessmentModalButton())&&C.window.innerWidth<=580),n.R7$(),n.Y8G("ngIf",C.isChargePopUpVisible),n.R7$(),n.Y8G("ngIf",C.isReportPopupVisible||C.isFeedbackPopupVisible||C.isChargePopUpVisible||C.isBikeAssessmentPopUpVisible),n.R7$(),n.Y8G("ngIf",C.isReportPopupVisible),n.R7$(),n.Y8G("ngIf",C.isFeedbackPopupVisible),n.R7$(),n.Y8G("ngIf",C.isBikeAssessmentPopUpVisible),n.R7$(),n.Y8G("ngIf",C.customerServiceRequest.status),n.R7$(),n.Y8G("image",C.fullImage),n.R7$(),n.Y8G("ngIf",C.showQrCode))},dependencies:[M.YU,M.Sq,M.bT,M.B3,Te.me,Te.BC,Te.vS,Sl.b,lt.z,Pi.Y,yl.G,br.o,M.QX,De.z,it.D9,ln.g,ps,$t,fe],styles:[".customer-service-request-container[_ngcontent-%COMP%]{border-radius:10px;background:#fff;min-height:100svh;margin:0 32px;padding:34px 42px}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;column-gap:50px;row-gap:20px}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .phone-icon[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .back-navigation[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;column-gap:15px;font-size:20px;font-weight:700}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:flex;padding:0 60px;height:40px;justify-content:center;align-items:center;color:var(--color-white);font-size:16px;font-style:normal;font-weight:500;border-radius:24px;background:var(--color-theme)}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .check-offer[_ngcontent-%COMP%]{color:var(--color-theme);padding:0 24px;border:2px solid var(--color-theme);background:var(--color-white)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]{max-width:1136px;width:100%}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]{margin-top:67px;display:flex;column-gap:80px;flex-wrap:wrap}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]{margin-right:100px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{margin-top:-16px;color:#989898}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .model-container[_ngcontent-%COMP%]{display:flex;column-gap:5px;align-items:center}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .model-container[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:-moz-fit-content;min-width:fit-content;font-size:26px;font-weight:500}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .brand-container[_ngcontent-%COMP%]{display:flex;margin-top:3px;column-gap:5px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;column-gap:10px;margin-top:3px;color:var(--color-theme)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]   .show-detail-icon[_ngcontent-%COMP%]{transition:transform .2s ease-out}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]   .show-detail-icon-open[_ngcontent-%COMP%]{transform:rotate(180deg)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]{margin-top:5px;
1display:flex;flex-direction:column;justify-content:flex-end;margin-bottom:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .service-number[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .cost-cover[_ngcontent-%COMP%]{display:flex}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]{margin-top:30px;white-space:pre-wrap}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{display:flex;column-gap:11px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40;padding:15px;width:148px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-name[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:500}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-name[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{color:#999;font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .service-underline[_ngcontent-%COMP%]{margin:5px 0;border-bottom:1px solid #CED3DB}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price-title[_ngcontent-%COMP%]{color:#989898;font-size:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-weight:500}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-underline[_ngcontent-%COMP%]{margin:20px 0;width:100%;border-bottom:1px dashed #DEE5F4}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-description[_ngcontent-%COMP%]{max-width:480px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-description[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-top:14px;color:#989898}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-description[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]{margin-top:3px;font-size:16px;overflow-wrap:anywhere}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]{margin-top:20px;
1display:flex;column-gap:12px;flex-wrap:wrap;row-gap:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:227px;height:126px;border-radius:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{max-width:227px;max-height:126px;height:100%;border-radius:10px;width:100%;object-fit:cover}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .show-all[_ngcontent-%COMP%]{cursor:pointer;row-gap:4px;margin-left:5px;font-size:13px;display:flex;align-items:center;justify-content:center;flex-direction:column}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{margin-bottom:25px;margin-top:20px;max-width:350px;
1min-width:200px;width:100%;position:relative}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .view-all[_ngcontent-%COMP%]{cursor:pointer;color:#989898;position:absolute;top:-25px;right:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress-line[_ngcontent-%COMP%]{border-bottom:3px dashed #989898;width:100%}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{border-radius:0;top:0;left:0;position:absolute;height:3px;width:20%;background:var(--color-theme)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress-circle[_ngcontent-%COMP%]{width:12px;height:12px;position:absolute;top:-4.5px;left:20%;border-radius:50%;background:#ff5e3a}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]{position:absolute;top:15px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{min-width:max-content}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{width:100%;border-bottom:1px #DEE5F4 solid;margin:35px 0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:15px;margin-top:32px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]{box-shadow:3px 3px 16.9px #a1a1a140;border-radius:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]{display:flex;align-items:center;column-gap:15px;font-size:16px;border-radius:10px 10px 0 0;background:#ffe604;box-shadow:3px 3px 16.9px #a1a1a140;padding:10px 20px;height:-moz-fit-content;height:fit-content}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{max-height:21px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;width:100%;min-height:136px;height:-moz-fit-content;height:fit-content;padding-left:22px;padding-bottom:17px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:33px;width:150px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-profile[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ng
1content-%COMP%]{font-size:20px;font-weight:700}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-address[_ngcontent-%COMP%]{margin-top:6px;font-size:16px;letter-spacing:-.8px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]{margin-left:30px;margin-top:36px;display:flex;justify-content:space-between;width:100%;max-width:466px;min-width:466px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#989898;font-size:16px;letter-spacing:-.8px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{display:flex;column-gap:2px;margin-top:8px;font-size:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-profile[_ngcontent-%COMP%]{cursor:pointer;margin-left:27px;margin-top:35px;color:var(--color-theme);letter-spacing:-.7px;text-decoration-line:underline}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:30px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;letter-spacing:-1px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .comment-message[_ngcontent-%COMP%]{max-width:752px;margin-top:9px;font-size:16px;letter-spacing:-.8px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .rating[_ngcontent-%COMP%]{display:flex;column-gap:2px;margin-top:15px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{margin-top:20px;transition:transform .2s ease-out}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .expand-opened[_ngcontent-%COMP%]{transform:rotate(180deg)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]{margin-top:34px;display:flex;column-gap:18px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .circles[_ngcontent-%COMP%]{display:flex;column-gap:18px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .circles[_ngcontent-%COMP%]   .chat[_ngcontent-%COMP%]{cursor:pointer;margin-top:1px;width:31px;height:31px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:3px 3px 16.9px #a1a1a140;position:relative}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .circles[_ngcontent-%COMP%]   .chat[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{color:var(--color-white);display:flex;font-weight:500;align-items:center;justify-content:center;width:13.5px;border-radius:50%;position:absolute;height:13.5px;top:-1px;right:-4px;background:var(--color-theme)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .book[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-white);width:-moz-fit-content;width:fit-content;padding:0 45px;height:33px;border-radius:45px;background:#ff5e3a}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .booked[_ngcontent-%COMP%]{width:151px;height:33px;color:var(--color-white);font-weight:500;border-radius:45px 0 0 45px;background:#ff5e3a;display:flex;align-items:center;padding-left:39px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .shop-profile[_ngcontent-%COMP%]{cursor:pointer;margin-top:11px;color:var(--color-theme);letter-spacing:-.7px;text-decoration-line:underline}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile-un-booked[_ngcontent-%COMP%]{margin-right:25px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile-booked[_ngcontent-%COMP%]{margin-right:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:0;border-bottom:1px dashed #DEE5F4}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]{padding:0 21px 37px;display:flex;flex-direction:column}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]{justify-content:unset;padding-left:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]{justify-content:unset;column-gap:30px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{padding:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]{margin-top:17px;
1display:flex;overflow-x:scroll;column-gap:15px;-ms-overflow-style:none;scrollbar-width:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{border-radius:6px;max-width:122px;max-height:70px;height:70px;width:100%;object-fit:cover}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .newOffer-status[_ngcontent-%COMP%]   .status-block[_ngcontent-%COMP%]{font-style:italic;font-size:12px;padding:15px;width:-moz-fit-content;width:fit-content;display:flex;align-items:center;height:25px;border-radius:0 0 10px 10px;box-shadow:3px 3px 16.9px #a1a1a140}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .newOffer-status[_ngcontent-%COMP%]   .accepted[_ngcontent-%COMP%]{background:#e6f4e7;color:#5fba34}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .newOffer-status[_ngcontent-%COMP%]   .rejected[_ngcontent-%COMP%]{background:#dc5a541f;color:#dc5a54}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .newOffer-status[_ngcontent-%COMP%]   .waiting[_ngcontent-%COMP%]{color:#ffa800;background:#ffc83a17}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payment-details-title[_ngcontent-%COMP%]{display:flex;column-gap:24px;align-items:center}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payment-details-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:20px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payment-details-title[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;padding:0 20px;height:29px;color:#5fba34;font-size:16px;border-radius:18.5px;background:#e6f4e7}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]{margin-top:25px;background:#fff;box-shadow:3px 3px 16.9px #a1a1a140;padding:0 23px;width:100%;border-radius:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;flex-wrap:wrap;column-gap:40px;border-bottom:1px #DEE5F4 dashed;padding:35px 0;row-gap:15px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]:last-child{border:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px;color:#989898;margin-bottom:13px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .card-number-container[_ngcontent-%COMP%]   .card-number[_ngcontent-%COMP%]{align-items:center;display:flex;column-gap:2px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .card-number-container[_ngcontent-%COMP%]   .card-number[_ngcontent-%COMP%]   .stars[_ngcontent-%COMP%]{padding-top:7px}.phone-buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:75px;position:relative;z-index:2;border-radius:10px 10px 0 0;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40}.phone-buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:flex;padding:0 50px;height:39px;justify-content:center;align-items:center;color:var(--color-white);font-size:14px;font-weight:700;border-radius:39px;background:#ff5e3a}.pickup-service-container[_ngcontent-%COMP%]{width:423px;height:-moz-fit-content;height:fit-content;z-index:22;position:absolute;inset:100px 0 0;margin:0 auto;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;display:flex;align-items:center;flex-direction:column;padding:42px 0}.pickup-service-container[_ngcontent-%COMP%]   .main-text[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;max-width:357px;text-align:center}.pickup-service-container[_ngcontent-%COMP%]   .sub-text[_ngcontent-%COMP%]{color:#989898;margin-top:5px;max-width:216px;text-align:center}.pickup-service-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{margin-top:30px;color:var(--color-theme);font-size:18px;font-weight:500}.pickup-service-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:10px}.pickup-service-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%]{display:flex;padding:0 45px;height:40px;justify-content:center;align-items:center;border-radius:24px;background:var(--color-theme);color:#fff;font-size:16px;font-weight:500}.feedback-container[_ngcontent-%COMP%]{flex-shrink:0;position:absolute;top:100px;left:0;right:0;margin:0 auto;padding:0 10px;display:flex;justify-content:center;z-index:22}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:10px;max-width:508px;background:#fff;box-shadow:3px 3px 16.9px #a1a1a140;display:flex;flex-direction:column;align-items:center}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{width:100%;height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:1px solid #E0E0E0;position:relative}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-child{font-size:20px;font-weight:700}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{position:absolute;right:40px;top:0;bottom:0;margin:auto 0}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]{margin-top:35px;width:100%;display:flex;flex-direction:column;align-items:center;padding:0 16px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]   .stars[_ngcontent-%COMP%]{display:flex;column-gap:8px;margin-top:15px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]{resize:none;font-size:16px;padding:15px;height:77px;width:100%;margin-top:15px;border-radius:10px;border:1px solid #CED3DB}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{width:336px;margin:35px 89px 0;border-bottom:1px dashed #E0E0E0}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:35px;height:33px;color:var(--color-white);font-size:16px;font-weight:500;padding:0 40px;border-radius:45px;background:#ff5e3a}.charge-money-container[_ngcontent-%COMP%]{width:423px;flex-shrink:0;z-index:22;height:-moz-fit-content;height:fit-content;position:absolute;inset:100px 0 0;margin:0 auto;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;padding:35px 43px 20px}.charge-money-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:20px;font-weight:700}.charge-money-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{color:#989898;font-size:13px;font-weight:400}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:11px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-top:28px;color:#989898;font-size:12px;border-bottom:1px solid #CED3DB;padding-bottom:8px;display:flex;justify-content:space-between}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:16px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]{display:flex;column-gap:20px;align-items:center}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]   .cyclix-fee[_ngcontent-%COMP%]   .symbol-container[_ngcontent-%COMP%]{position:relative}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]   .cyclix-fee[_ngcontent-%COMP%]   .symbol-container[_ngcontent-%COMP%]   .symbol[_ngcontent-%COMP%]{cursor:pointer}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]   .cyclix-fee[_ngcontent-%COMP%]   .symbol-container[_ngcontent-%COMP%]   .cyclix-fee-details[_ngcontent-%COMP%]{position:absolute;top:20px;left:-11px;padding:10px;color:var(--color-white);font-size:12px;background:#515151;width:max-content;max-width:184px;border-radius:7px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]   .cyclix-fee[_ngcontent-%COMP%]   .symbol-container[_ngcontent-%COMP%]   .cyclix-fee-details[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:absolute;top:-3px;left:9px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{margin-top:10px;font-size:20px;font-weight:500}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .amount[_ng
1content-%COMP%]{color:var(--color-theme)}.charge-money-container[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{position:absolute;left:0;margin:25px auto 0;right:0}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]{margin-top:52px}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]{width:100%}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:500}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{padding:2px 20px;height:49px;margin-top:10px;border-radius:10px;border:1px solid #D1D6DC;width:100%}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .expire__cvv[_ngcontent-%COMP%]{margin-top:18px;display:flex;column-gap:18px}.charge-money-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:45px;display:flex;justify-content:center;align-items:center;column-gap:20px}.charge-money-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.charge-money-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]{cursor:pointer;height:40px;padding:0 45px;border-radius:24px;background:#ff5e3a;color:var(--color-white)}.charge-money-container[_ngcontent-%COMP%]   .alignment[_ngcontent-%COMP%]{margin-top:20px;max-width:322px;text-align:center;color:#989898;font-size:8px}.bike-assessment-report-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;z-index:22;height:100svh;padding:0 10px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]{border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;margin:0 10px;width:100%;max-width:484px;height:-moz-fit-content;height:fit-content;display:flex;flex-direction:column;position:relative;padding:32px 39px 35px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{top:35px;right:30px;position:absolute;z-index:14}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{flex-direction:column}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{width:49px;height:49px;border-radius:50%;background:#ff5e3a38}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-top:15px;font-size:20px;font-weight:500}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{margin-top:5px;color:#989898;max-width:330px;text-align:center}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:40px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{font-size:16px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:191px;height:58px;border-radius:7px;background:#fff;padding:12px 0 0 15px;box-shadow:3px 3px 16.9px 2px #a1a1a140;font-size:16px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .block-title[_ngcontent-%COMP%]{margin-bottom:1px;font-size:14px;color:var(--color-theme)}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:30px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;letter-spacing:-1px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .comment-message[_ngcontent-%COMP%]{margin-top:5px;font-size:16px;letter-spacing:-.8px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]{margin-top:17px;
1display:flex;overflow-x:scroll;column-gap:15px;-ms-overflow-style:none;scrollbar-width:none}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{border-radius:6px;max-width:122px;height:70px;width:100%;object-fit:cover}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:flex;justify-content:center;column-gap:9px;margin-top:42px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%]{border-radius:24px;width:144px;height:40px;cursor:pointer;display:flex;justify-content:center;align-items:center;color:var(--color-white);font-size:16px;font-weight:500}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%]{background:#5fba34}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .reject[_ngcontent-%COMP%]{background:#dc5a54}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .reject-offer[_ngcontent-%COMP%]{margin-top:16px;text-align:center;color:#dc5a54;text-decoration:underline}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{border:1px dashed #CED3DB;margin:25px 0 35px;width:100%}.color-svg[_ngcontent-%COMP%]{filter:invert(47%) sepia(71%) saturate(2547%) hue-rotate(337deg) brightness(101%) contrast(102%)}.order-summary-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:100px;right:32px;z-index:22}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]{width:507px;flex-shrink:0;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px #a1a1a140;padding:40px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{justify-content:space-between;display:flex;font-size:20px;font-weight:700}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .shop-address-container[_ngcontent-%COMP%]{margin-top:45px;display:flex;justify-content:space-between}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .shop-address-container[_ngcontent-%COMP%]   .shop-name__address[_ngcontent-%COMP%]{max-width:350px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .shop-address-container[_ngcontent-%COMP%]   .shop-name__address[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{font-size:16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .shop-address-container[_ngcontent-%COMP%]   .issued-date[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#989898;font-size:12px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .price-description[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:34px;padding-bottom:9px;border-bottom:1px solid #CED3DB}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .price-description[_ngcontent-%COMP%]   .price-description-label[_ngcontent-%COMP%]{color:#989898;font-size:12px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-direction:column;row-gap:11px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .holder-section[_ngcontent-%COMP%]{margin-top:30px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .price-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .price-section[_ngcontent-%COMP%]   .holden[_ngcontent-%COMP%]{color:#5fba34}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .second-underline[_ngcontent-%COMP%]{border-bottom:1px dashed #CED3DB}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{margin-top:10px;font-weight:500;font-size:16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{white-space:pre-wrap;color:#989898;font-size:12px;font-style:normal;font-weight:400}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .additional-amount[_ng
1content-%COMP%]{font-size:20px;font-weight:700}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .additional-amount[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-weight:500;color:var(--color-theme)}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]{margin-top:55px;display:flex;flex-wrap:wrap;column-gap:20px;row-gap:20px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:197px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:100%;height:111px;object-fit:cover}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image-name[_ng
1content-%COMP%]{margin-top:10px;display:flex;column-gap:12px;color:#989898;font-size:12px;align-items:center}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image-name[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{max-width:170px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]{margin-top:30px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message-title[_ngcontent-%COMP%]{color:#989898;font-size:12px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{font-size:16px;margin-top:10px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .pay-container[_ngcontent-%COMP%]{margin-top:45px;display:flex;justify-content:center}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .pay-container[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]{cursor:pointer;display:flex;padding:0 50px;height:40px;justify-content:center;align-items:center;border-radius:24px;background:#ff5e3a;color:#fff;font-size:16px;font-weight:500}.backdrop[_ngcontent-%COMP%]{width:100%;opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:21}@media (max-width: 1200px){.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]{box-shadow:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]{box-shadow:3px 3px 16.9px #a1a1a140;padding:0;border-radius:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]{width:100%}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]{padding:0 21px;flex-direction:column}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-profile[_ngcontent-%COMP%]{display:flex;margin-left:14px;margin-top:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]{max-width:100%;width:100%;margin-left:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{padding-left:21px;padding-right:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{margin-left:21px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]{width:100%;align-items:center;height:81px;border-top:1px dashed #CED3DB;flex-direction:row-reverse;justify-content:space-between;column-gap:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .circles[_ngcontent-%COMP%]{margin-right:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]{align-items:baseline;width:100%;margin-left:auto;margin-right:auto}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .shop-profile[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .book[_ngcontent-%COMP%]{margin:auto}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile[_ngcontent-%COMP%]   .booked[_ngcontent-%COMP%]{border-radius:0 45px 45px 0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:15px;background:#fff;margin-top:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]{background:var(--color-white);border-radius:10px;box-shadow:3px 3px 16.9px #a1a1a140}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]{padding:0 24px 24px}}@media (max-width: 1072px){.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]{flex-direction:column}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{max-width:500px}}@media (max-width: 980px){.customer-service-request-container[_ngcontent-%COMP%]{margin:0 18px 43px;padding:32px 27px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]{position:relative}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{font-size:20px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]{align-items:flex-end;position:absolute;right:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .service-number[_ngcontent-%COMP%]{margin-bottom:10px;display:flex;font-size:12px;color:var(--color-theme)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{font-size:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ng
1content-%COMP%]{font-size:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]{flex-wrap:wrap;column-gap:10px;row-gap:10px;min-width:unset;margin-top:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 580px){.customer-service-request-container[_ngcontent-%COMP%]{margin:0;background:#f6f4f3;padding:0}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]{background:#fff;margin-top:0;padding:46px 24px 0}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .phone-icon[_ngcontent-%COMP%]{display:flex}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .pc-icon[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .back-navigation[_ngcontent-%COMP%]{color:#989898;text-align:center;font-size:14px;font-weight:400}.customer-service-request-container[_ngcontent-%COMP%]   .back-navigation-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .buttons-available[_ngcontent-%COMP%]{height:calc(100svh - 197px)}.customer-service-request-container[_ngcontent-%COMP%]   .buttons-disable[_ngcontent-%COMP%]{max-height:100svh}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]{padding:0;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]{margin-top:0;padding:29px 24px 16px;border-radius:0 0 10px 10px;background:#fff}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{margin-top:25px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-details-container-wrapper[_ngcontent-%COMP%]{width:100%}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]{width:100%;align-items:unset}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]{margin-right:unset}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .model-container[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{font-size:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .brand-container[_ngcontent-%COMP%]{font-size:12px;color:#989898}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .bike-information[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]{justify-content:flex-start;margin:0;right:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .cost-cover[_ngcontent-%COMP%]{font-size:13px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .bike-information-container[_ngcontent-%COMP%]   .submitted-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:#989898;font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]{margin-top:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-description[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .problem-description[_ngcontent-%COMP%]   .problem[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]{column-gap:8px;row-gap:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:88px;height:49px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .bike-details-container[_ngcontent-%COMP%]   .service-details[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .show-all[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{padding:0 24px;height:41px;
1display:flex;align-items:center;font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]{margin-top:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]{background:#fff}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .pick-up-service[_ngcontent-%COMP%]{font-size:13px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{font-size:15px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-address[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;padding-left:0;height:-moz-fit-content;height:fit-content}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .shop-offer-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .comment-message[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]{margin-top:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .shop-offer[_ngcontent-%COMP%]   .offer-options[_ngcontent-%COMP%]   .book__shop-profile-booked[_ngcontent-%COMP%]   .booked[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;height:39px;padding:0 38px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]{background:#f6f4f3;padding-top:10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]{background:var(--color-white)}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]:first-child{border-radius:10px 10px 0 0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]:last-child{border-radius:0 0 10px 10px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]{padding:0 24px 24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:24px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ng
1content-%COMP%]{font-size:15px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-address[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .main-information[_ngcontent-%COMP%]   .offer-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:none}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .shop-offers-container[_ngcontent-%COMP%]   .shop-offers[_ngcontent-%COMP%]   .shop-offer-container[_ngcontent-%COMP%]   .new-offers[_ngcontent-%COMP%]   .new-offer[_ngcontent-%COMP%]   .new-offer-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .comment-message[_ngcontent-%COMP%]{font-size:14px;margin-top:0}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]{margin-top:16px;position:relative}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payment-details-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-left:24px;font-size:12px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payment-details-title[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{position:absolute;border-radius:0 0 13px 13px;top:31px;left:14px;font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]{padding-top:30px;margin-top:16px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{row-gap:20px;height:unset;padding:16px 0;column-gap:20px;flex-wrap:wrap}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px}.customer-service-request-container[_ngcontent-%COMP%]   .customer-service-request[_ngcontent-%COMP%]   .payment-details-container[_ngcontent-%COMP%]   .payments[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;margin-bottom:2px}.order-summary-container-wrapper[_ngcontent-%COMP%]{left:0;padding:0 11px;z-index:21;width:100%;top:75px;right:unset}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]{width:100%;padding:24px 24px 16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .shop-address-container[_ngcontent-%COMP%], .order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .price-description[_ngcontent-%COMP%]{margin-top:25px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .price-section[_ngcontent-%COMP%]{font-size:14px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .prices-container[_ngcontent-%COMP%]   .price-section[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]{font-size:16px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]{margin-top:20px;column-gap:9px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:135px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .images-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{height:90px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{font-size:14px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .pay-container[_ngcontent-%COMP%]{margin-top:24px}.order-summary-container-wrapper[_ngcontent-%COMP%]   .order-summary-container[_ngcontent-%COMP%]   .pay-container[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]{height:33px;font-size:14px}.charge-money-container[_ngcontent-%COMP%]{width:340px;height:-moz-fit-content;height:fit-content;padding:24px}.charge-money-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{font-size:16px}.charge-money-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{font-size:11px}.charge-money-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:12.287px;height:12.397px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:14px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .cost[_ngcontent-%COMP%]{column-gap:13px}.charge-money-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{font-size:16px}.charge-money-container[_ngcontent-%COMP%]   .input-fields[_ngcontent-%COMP%]   .input-field[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px}.charge-money-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:35px}.pickup-service-container[_ngcontent-%COMP%]{padding:30px 42px;width:320px}.pickup-service-container[_ngcontent-%COMP%]   .main-text[_ngcontent-%COMP%]{font-size:14px}.pickup-service-container[_ngcontent-%COMP%]   .sub-text[_ngcontent-%COMP%]{font-size:12px}.pickup-service-container[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{font-size:16px}.pickup-service-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%]{font-size:14px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]{padding:24px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{top:21px;right:21px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:13px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]{margin-top:30px;font-size:12px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .shop-information[_ngcontent-%COMP%]   .shop-name[_ng
1content-%COMP%]{font-size:15px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{margin:16px 0}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:10px;column-gap:10px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{font-size:15px;width:146px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .block-title[_ngcontent-%COMP%]{font-size:13px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:27px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:15px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .comment-message[_ngcontent-%COMP%]{font-size:13px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .images[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{max-width:88px;height:49px}.bike-assessment-report-container[_ngcontent-%COMP%]   .bike-assessment-report-container-wrapper[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:32px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{height:92px;font-size:12px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-child{font-size:16px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{right:20px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]{margin-top:24px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .rate-container[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]{font-size:14px;height:55px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .underline[_ngcontent-%COMP%]{width:254px;margin-top:24px}.feedback-container[_ngcontent-%COMP%]   .feedback-container-wrapper[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{font-size:14px}}.star-selected[_ngcontent-%COMP%]{fill:var(--color-theme);filter:invert(69%) sepia(89%) saturate(5074%) hue-rotate(337deg) brightness(102%) contrast(101%)}"]})}return h})();var Mt=P(6885),mn=P(317),zs=P(6502);const gc=h=>({"expand-opened":h}),hc=h=>({width:h}),_c=h=>({"left.%":h}),Gs=(h,_)=>({"left.%":h,"right.%":_}),qu=h=>({"right-align":h});function Hs(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",25),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.sortContainer=!1)}),n.j41(1,"p",26),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.sort(C.SortOptionsEnum.Default))}),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",26),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.sort(C.SortOptionsEnum.Newest))}),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"p",26),n.bIt("click",function(){n.eBV(l);const C=n.XpG(3);return n.Njj(C.sort(C.SortOptionsEnum.Oldest))}),n.EFF(8),n.nI1(9,"translate"),n.k0s()()}2&h&&(n.R7$(2),n.JRh(n.bMT(3,3,"i18n.app.pages.customer.service-request.sort-by.default")),n.R7$(3),n.JRh(n.bMT(6,5,"i18n.app.pages.customer.service-request.sort-by.newest")),n.R7$(3),n.JRh(n.bMT(9,7,"i18n.app.pages.customer.service-request.sort-by.oldest")))}function vc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",18),n.nrm(1,"div",19),n.j41(2,"div",20),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",21),n.bIt("click",function(){n.eBV(l);const C=n.XpG(2);return n.Njj(C.sortContainer=!C.sortContainer)}),n.j41(6,"p"),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.qSk(),n.j41(9,"svg",22),n.nrm(10,"path",23),n.k0s()(),n.DNE(11,Hs,10,9,"div",24),n.k0s()}if(2&h){const l=n.XpG(2);n.R7$(3),n.SpI("",n.bMT(4,4,"i18n.app.pages.customer.service-request.sort-by"),":"),n.R7$(4),n.JRh(n.bMT(8,6,l.selectedSortOption)),n.R7$(2),n.Y8G("ngClass",n.eq3(8,gc,l.sortContainer)),n.R7$(2),n.Y8G("ngIf",l.sortContainer)}}function Cc(h,_){1&h&&(n.j41(0,"div",47),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&h&&(n.R7$(),n.JRh(n.bMT(2,1,"i18n.app.pages.customer.service-request.status-changed")))}function mc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",48),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(2);return n.Njj(y.openQrCode(C))}),n.qSk(),n.j41(1,"svg",49)(2,"g",50),n.nrm(3,"path",51),n.k0s(),n.j41(4,"defs")(5,"clipPath",52),n.nrm(6,"rect",53),n.k0s()()()()}}function fc(h,_){1&h&&n.nrm(0,"div",64)}function Oc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",54),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(2);
1return n.Njj(y.showDetailsWithChat(C))}),n.DNE(1,fc,1,0,"div",55),n.qSk(),n.j41(2,"svg",56)(3,"g",57),n.nrm(4,"path",58)(5,"path",59)(6,"path",60)(7,"path",61),n.k0s(),n.j41(8,"defs")(9,"clipPath",62),n.nrm(10,"rect",63),n.k0s()()()()}if(2&h){const l=n.XpG().$implicit,g=n.XpG(2);n.R7$(),n.Y8G("ngIf",g.isNewMessages(l)>0)}}function xc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",65),n.bIt("click",function(){n.eBV(l);const C=n.XpG().$implicit,y=n.XpG(2);return n.Njj(y.openQrCode(C))}),n.j41(1,"p",66),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.qSk(),n.j41(4,"svg",49)(5,"g",67),n.nrm(6,"path",51),n.k0s(),n.j41(7,"defs")(8,"clipPath",68),n.nrm(9,"rect",53),n.k0s()()()()}2&h&&(n.R7$(2),n.JRh(n.bMT(3,1,"i18n.app.pages.customer.service-request.show-qr")))}function Hn(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",27)(1,"div",28)(2,"div",29)(3,"p"),n.EFF(4),n.k0s(),n.DNE(5,Cc,3,3,"div",30),n.k0s(),n.j41(6,"p",31),n.EFF(7),n.k0s(),n.j41(8,"p",32),n.EFF(9),n.k0s(),n.j41(10,"p",33),n.EFF(11),n.nI1(12,"translate"),n.nI1(13,"customDate"),n.k0s()(),n.j41(14,"div",34),n.nrm(15,"div",35)(16,"div",36)(17,"div",37),n.j41(18,"div",38)(19,"div",39),n.EFF(20),n.nI1(21,"customDate"),n.k0s(),n.j41(22,"div",40),n.EFF(23),n.nI1(24,"translate"),n.k0s()()(),n.j41(25,"div",41)(26,"div",42),n.DNE(27,mc,7,0,"div",43)(28,Oc,11,1,"div",44),n.k0s(),n.j41(29,"div",45),n.bIt("click",function(){const C=n.eBV(l).$implicit,y=n.XpG(2);
1return n.Njj(y.showDetails(C))}),n.EFF(30),n.nI1(31,"translate"),n.k0s()(),n.DNE(32,xc,10,3,"div",46),n.k0s()}if(2&h){const l=_.$implicit,g=n.XpG(2);n.R7$(4),n.JRh(null==l.bike?null:l.bike.model),n.R7$(),n.Y8G("ngIf",g.hasNewUpdate(l)),n.R7$(2),n.JRh(null==l.bike||null==l.bike.brand?null:l.bike.brand.name),n.R7$(2),n.SpI("\u2116",l.number,""),n.R7$(2),n.Lme("",n.bMT(12,16,"i18n.app.pages.customer.service-request.created")," ",n.bMT(13,18,l.created),""),n.R7$(5),n.Y8G("ngStyle",n.eq3(26,hc,g.getProgressPosition(l.status)+"%")),n.R7$(),n.Y8G("ngStyle",n.eq3(28,_c,g.getProgressPosition(l.status)<50?g.getProgressPosition(l.status):g.getProgressPosition(l.status)-2.5)),n.R7$(),n.Y8G("ngStyle",n.l_i(30,Gs,g.getProgressPosition(l.status)<50?g.getProgressPosition(l.status):"auto",g.getProgressPosition(l.status)>=50?100-g.getProgressPosition(l.status):"auto"))("ngClass",n.eq3(33,qu,g.getProgressPosition(l.status)>=50)),n.R7$(2),n.JRh(n.bMT(21,20,l.modified)),n.R7$(3),n.JRh(n.bMT(24,22,"i18n.app.pages.service-request.status."+l.status)),n.R7$(4),n.Y8G("ngIf",l.shopServiceRequestQrCode),n.R7$(),n.Y8G("ngIf",g.showChatIcon(l)),n.R7$(2),n.JRh(n.bMT(31,24,"i18n.app.pages.customer.service-request.show-detail")),n.R7$(2),n.Y8G("ngIf",l.shopServiceRequestQrCode)}}function js(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12,0),n.bIt("click",function(){n.eBV(l);const C=n.sdS(4),y=n.XpG();return n.Njj(y.selectSection(y.CustomerServiceRequestsSectionEnum.InProgress,C))}),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"div",12,1),n.bIt("click",function(){n.eBV(l);const C=n.sdS(8),y=n.XpG();return n.Njj(y.selectSection(y.CustomerServiceRequestsSectionEnum.Completed,C))}),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"div",12,2),n.bIt("click",function(){n.eBV(l);const C=n.sdS(12),y=n.XpG();return n.Njj(y.selectSection(y.CustomerServiceRequestsSectionEnum.All,C))}),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.j41(15,"div",12,3),n.bIt("click",function(){n.eBV(l);const C=n.sdS(16),y=n.XpG();return n.Njj(y.selectSection(y.CustomerServiceRequestsSectionEnum.Draft,C))}),n.EFF(17),n.nI1(18,"translate"),n.k0s(),n.j41(19,"div",12,4),n.bIt("click",function(){n.eBV(l);const C=n.sdS(20),y=n.XpG();return n.Njj(y.selectSection(y.CustomerServiceRequestsSectionEnum.Archive,C))}),n.EFF(21),n.nI1(22,"translate"),n.k0s()(),n.j41(23,"div",13),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goGoCreatePage())}),n.EFF(24),n.nI1(25,"translate"),n.k0s()(),n.DNE(26,vc,12,10,"div",14),n.j41(27,"div",15),n.DNE(28,Hn,33,35,"div",16),n.k0s(),n.j41(29,"div",17)(30,"div",13),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goGoCreatePage())}),n.EFF(31),n.nI1(32,"translate"),n.k0s()()()}if(2&h){const l=n.XpG();n.R7$(3),n.Y8G("ngClass",l.selectedStatus===l.CustomerServiceRequestsSectionEnum.InProgress?"section-selected":"section-un-selected"),n.R7$(2),n.SpI(" ",n.bMT(6,14,"i18n.app.pages.customer.service-request.statuses.in-progress")," "),n.R7$(2),n.Y8G("ngClass",l.selectedStatus===l.CustomerServiceRequestsSectionEnum.Completed?"section-selected":"section-un-selected"),n.R7$(2),n.SpI(" ",n.bMT(10,16,"i18n.app.pages.customer.service-request.statuses.completed"),""),n.R7$(2),n.Y8G("ngClass",l.selectedStatus===l.CustomerServiceRequestsSectionEnum.All?"section-selected":"section-un-selected"),n.R7$(2),n.SpI(" ",n.bMT(14,18,"i18n.app.pages.customer.service-request.statuses.all"),""),n.R7$(2),n.Y8G("ngClass",l.selectedStatus===l.CustomerServiceRequestsSectionEnum.Draft?"section-selected":"section-un-selected"),n.R7$(2),n.SpI(" ",n.bMT(18,20,"i18n.app.pages.customer.service-request.statuses.draft"),""),n.R7$(2),n.Y8G("ngClass",l.selectedStatus===l.CustomerServiceRequestsSectionEnum.Archive?"section-selected":"section-un-selected"),n.R7$(2),n.SpI(" ",n.bMT(22,22,"i18n.app.pages.customer.service-request.statuses.archive"),""),n.R7$(3),n.JRh(n.bMT(25,24,"i18n.app.pages.customer.service-request.create-service")),n.R7$(2),n.Y8G("ngIf",l.selectedCustomerServiceRequests),n.R7$(2),n.Y8G("ngForOf",l.selectedCustomerServiceRequests),n.R7$(3),n.JRh(n.bMT(32,26,"i18n.app.pages.customer.service-request.create-service"))}}function Pc(h,_){if(1&h){const l=n.RV6();n.j41(0,"div",69),n.qSk(),n.j41(1,"svg",70),n.nrm(2,"path",71)(3,"path",72)(4,"path",73)(5,"path",74)(6,"path",75),n.k0s(),n.joV(),n.j41(7,"p",76),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"div",13),n.bIt("click",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.goGoCreatePage())}),n.EFF(11),n.nI1(12,"translate"),n.k0s()()}2&h&&(n.R7$(8),n.JRh(n.bMT(9,2,"i18n.app.pages.customer.service-request.no-requests-created")),n.R7$(3),n.JRh(n.bMT(12,4,"i18n.app.pages.customer.service-request.create-service")))}function bc(h,_){if(1&h){const l=n.RV6();n.j41(0,"app-customer-qr-code",77),n.bIt("close",function(){n.eBV(l);const C=n.XpG();return n.Njj(C.closeQrCode())}),n.k0s()}if(2&h){const l=n.XpG();n.Y8G("serviceNumber",l.selectedCustomerServiceRequest.number)("bike",l.selectedCustomerServiceRequest.bike)("qrCode",l.selectedCustomerServiceRequest.shopServiceRequestQrCode)}}const Mc=[{path:"service-requests",component:(()=>{class h{constructor(l,g,C,y,Q){this.router=l,this.customerServiceRequestService=g,this.authService=C,this.notificationService=y,this.el=Q,this.selectedStatus=Mt.k.InProgress,this.selectedCustomerServiceRequest=new w.Q4,this.showQrCode=!1,this.selectedSortOption=mn.i.Newest,this.sortContainer=!1,this.CustomerServiceRequestsSectionEnum=Mt.k,this.SortOptionsEnum=mn.i,this.CustomerServiceRequestStatusType=w.tr}
1ngOnInit(){this.authService.checkCustomerProfile(),this.getAllCustomerServiceRequestByUserId()}getProgressPosition(l){return this.customerServiceRequestService.getProgressPosition(l,100/9)}openQrCode(l){this.selectedCustomerServiceRequest=l,this.showQrCode=!0}closeQrCode(){this.showQrCode=!1}sort(l){switch(l){case mn.i.Oldest:this.selectedCustomerServiceRequests?.sort((g,C)=>g.created&&C.created?g.created.getTime()-C.created.getTime():0);break;case mn.i.Newest:this.selectedCustomerServiceRequests?.sort((g,C)=>g.created&&C.created?C.created.getTime()-g.created.getTime():0)}this.selectedSortOption=l}selectSection(l,g){const C=[w.tr.WaitingForOffers,w.tr.OffersReceived,w.tr.WaitingForDelivery,w.tr.AssessingBike,w.tr.AssessingCompleted,w.tr.InProgress,w.tr.WaitingForPayment,w.tr.WaitingForPickUp];switch(l){case Mt.k.All:this.selectedCustomerServiceRequests=this.customerServiceRequests;break;case Mt.k.InProgress:this.selectedCustomerServiceRequests=this.customerServiceRequests?.filter(le=>C.includes(le.status));break;case Mt.k.Completed:this.selectedCustomerServiceRequests=this.customerServiceRequests?.filter(le=>le.status===w.tr.Finished);break;case Mt.k.Draft:this.selectedCustomerServiceRequests=this.customerServiceRequests?.filter(le=>le.status===w.tr.Draft);break;case Mt.k.Archive:this.selectedCustomerServiceRequests=this.customerServiceRequests?.filter(le=>le.status===w.tr.Closed)}this.selectedStatus=l;const Q=this.el.nativeElement.querySelector(".statuses");g&&Q.scrollTo({left:g.offsetLeft-g.offsetWidth,behavior:"smooth"})}isNewMessages(l){return this.notificationService.notifications.filter(g=>g.serviceRequestId===l.id&&0==g.checked&&g.notificationType===w._n.NewMessage).length}showDetails(l){location.href=`/customer/service-requests/info/${l.id}`}showDetailsWithChat(l){location.href=`/customer/service-requests/info/${l.id}?chat=true`}showChatIcon(l){return l.status==w.tr.InProgress||l.status==w.tr.AssessingCompleted||l.status==w.tr.AssessingBike||l.status==w.tr.WaitingForDelivery||l.status==w.tr.WaitingForPickUp||l.status==w.tr.WaitingForPayment}goGoCreatePage(){this.router.navigate(["/customer/service-requests/add/"])}hasNewUpdate(l){return this.notificationService.notifications.some(g=>g.serviceRequestId===l.id&&!g.checked&&g.notificationType!=w._n.NewMessage)}getAllCustomerServiceRequestByUserId(){this.customerServiceRequestService.getAllCustomerServiceRequestByUserId().pipe((0,x.j)(()=>!1)).subscribe(l=>{this.customerServiceRequests=l,this.selectSection(Mt.k.InProgress),this.sort(mn.i.Newest)})}static#e=this.\u0275fac=function(g){return new(g||h)(n.rXU(V.Ix),n.rXU(ie.s),n.rXU(we.u),n.rXU(zs.J),n.rXU(n.aKT))};static#t=this.\u0275cmp=n.VBU({type:h,selectors:[["app-customer-service-requests"]],decls:4,vars:3,consts:[["status",""],["status2",""],["status3",""],["status4",""],["status5",""],[1,"customer-service-requests-container"],["class","customer-service-requests",4,"ngIf"],["class","no-requests",4,"ngIf"],[3,"serviceNumber","bike","qrCode","close",4,"ngIf"],[1,"customer-service-requests"],[1,"statuses-container"],[1,"statuses"],[1,"status",3,"click","ngClass"],[1,"create-service","flex-center",3,"click"],["class","sort-container",4,"ngIf"],[1,"services"],["class","service",4,"ngFor","ngForOf"],[1,"create-service-container"],[1,"sort-container"],[1,"sort-container-underline"],[1,"sort-title"],[1,"selected-sort-option",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","10","height","6","viewBox","0 0 10 6","fill","none",3,"ngClass"],["d","M1 1L5 5L9 1","stroke","black"],["class","sort-options",3,"click",4,"ngIf"],[1,"sort-options",3,"click"],[3,"click"],[1,"service"],[1,"bike-details"],[1,"model"],["class","new-update",4,"ngIf"],[1,"brand"],[1,"number"],[1,"created"],[1,"repair-progress"],[1,"progress-line"],[1,"progress",3,"ngStyle"],[1,"progress-circle",3,"ngStyle"],[1,"status-container",3,"ngStyle","ngClass"],[1,"date"],[1,"status"],[1,"options"],[1,"qr-code__chat"],["class","qr-code circle",3,"click",4,"ngIf"],["class","chat circle",3,"click",4,"ngIf"],[1,"show-details","flex-center",3,"click"],["class","qr-code-phone",3,"click",4,"ngIf"],[1,"new-update"],[1,"qr-code","circle",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 14 14","fill","none"],["clip-path","url(#clip0_4092_466)"],["d","M4.51168 13.5625C4.51168 13.7513 4.35864 13.9043 4.16988 13.9043H2.4863C1.16705 13.9043 0.09375 12.831 0.09375 11.5118V9.82819C0.09375 9.63944 0.246793 9.48639 0.435547 9.48639C0.624301 9.48639 0.777344 9.63944 0.7
177344 9.82819V11.5118C0.777344 12.4541 1.54398 13.2207 2.4863 13.2207H4.16988C4.35864 13.2207 4.51168 13.3738 4.51168 13.5625ZM11.5098 0.0957305H9.82621C9.63746 0.0957305 9.48441 0.248773 9.48441 0.437527C9.48441 0.626281 9.63746 0.779324 9.82621 0.779324H11.5098C12.4521 0.779324 13.2188 1.54596 13.2188 2.48831V4.17189C13.2188 4.36064 13.3718 4.51369 13.5605 4.51369C13.7493 4.51369 13.9023 4.36064 13.9023 4.17189V2.48831C13.9023 1.16903 12.829 0.0957305 11.5098 0.0957305ZM0.435547 4.51366C0.624301 4.51366 0.777344 4.36062 0.777344 4.17186V2.48828C0.777344 1.54596 1.54398 0.779297 2.4863 0.779297H4.16988C4.35864 0.779297 4.51168 0.626254 4.51168 0.4375C4.51168 0.248746 4.35864 0.0957031 4.16988 0.0957031H2.4863C1.16702 0.0957305 0.09375 1.16903 0.09375 2.48828V4.17186C0.09375 4.36062 0.246793 4.51366 0.435547 4.51366ZM13.5606 9.48639C13.3718 9.48639 13.2188 9.63944 13.2188 9.82819V11.5118C13.2188 12.4541 12.4521 13.2207 11.5098 13.2207H9.82624C9.63748 13.2207 9.48444 13.3738 9.48444 13.5625C9.48444 13.7513 9.63748 13.9043 9.82624 13.9043H11.5098C12.8291 13.9043 13.9024 12.831 13.9024 11.5118V9.82819C13.9024 9.63944 13.7493 9.48639 13.5606 9.48639ZM6.33633 3.76163V5.58455C6.33633 6.00018 5.9982 6.33834 5.58257 6.33834H3.75964C3.34402 6.33834 3.00589 6.00018 3.00589 5.58455V3.76163C3.00589 3.346 3.34402 3.00784 3.75964 3.00784H5.58257C5.9982 3.00784 6.33633 3.346 6.33633 3.76163ZM5.65273 3.76163C5.65273 3.72356 5.62061 3.69143 5.58257 3.69143H3.75964C3.72158 3.69143 3.68948 3.72356 3.68948 3.76163V5.58455C3.68948 5.62261 3.72161 5.65474 3.75964 5.65474H5.58257C5.62063 5.65474 5.65273 5.62261 5.65273 5.58455V3.76163ZM7.65974 5.58455V3.76163C7.65974 3.346 7.99787 3.00784 8.4135 3.00784H10.2364C10.652 3.00784 10.9902 3.346 10.9902 3.76163V5.58455C10.9902 6.00018 10.652 6.33834 10.2364 6.33834H8.4135C7.99787 6.33834 7.65974 6.00018 7.65974 5.58455ZM8.34333 5.58455C8.34333 5.62261 8.37546 5.65474 8.4135 5.65474H10.2364C10.2745 5.65474 10.3066 5.62261 10.3066 5.58455V3.76163C10.3066 3.72356 10.2745 3.69143 10.2364 3.69143H8.4135C8.37543 3.69143 8.34333 3.72356 8.34333 3.76163V5.58455ZM6.33633 8.41553V10.2385C6.33633 10.6541 5.9982 10.9922 5.58257 10.9922H3.75964C3.34402 10.9922 3.00589 10.6541 3.00589 10.2385V8.41553C3.00589 7.99991 3.34402 7.66175 3.75964 7.66175H5.58257C5.9982 7.66175 6.33633 7.99991 6.33633 8.41553ZM5.65273 8.41553C5.65273 8.37747 5.62061 8.34534 5.58257 8.34534H3.75964C3.72158 8.34534 3.68948 8.37747 3.68948 8.41553V10.2385C3.68948 10.2765 3.72161 10.3086 3.75964 10.3086H5.58257C5.62063 10.3086 5.65273 10.2765 5.65273 10.2385V8.41553ZM10.2365 10.9922H8.41352C7.9979 10.9922 7.65977 10.6541 7.65977 10.2384V8.4155C7.65977 7.99988 7.9979 7.66172 8.41352 7.66172H10.2365C10.6521 7.66172 10.9902 7.99988 10.9902 8.4155V10.2384C10.9902 10.6541 10.6521 10.9922 10.2365 10.9922ZM8.41352 10.3086H10.2365C10.2745 10.3086 10.3066 10.2765 10.3066 10.2384V8.4155C10.3066 8.37744 10.2745 8.34531 10.2365 8.34531H8.41352C8.37546 8.34531 8.34336 8.37744 8.34336 8.4155V10.2384C8.34336 10.2765 8.37549 10.3086 8.41352 10.3086Z","fill","black"],["id","clip0_4092_466"],["width","14","height","14","fill","white"],[1,"chat","circle",3,"click"],["class","dot",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none"],["clip-path","url(#clip0_3288_2525)"],["d","M11.0983 4.68038C11.2268 4.31566 11.2969 3.9237 11.2969 3.51562C11.2969 1.57711 9.71979 0 7.78127 0H3.51562C1.57711 0 0 1.57711 0 3.51562C0 4.41748 0.341531 5.24098 0.901828 5.86397C0.770039 6.2378 0.703125 6.62937 0.703125 7.03125C0.703125 8.9827 2.28023 10.5703 4.21875 10.5703H5.89308L7.93706 11.9404C7.99608 11.98 8.06435 12 8.13286 12C8.18958 12 8.24646 11.9863 8.29835 11.9586C8.41284 11.8975 8.48438 11.7783 8.48438 11.6484V10.5703H8.82319C8.87749 10.5703 8.92896 10.558 8.9749 10.536C10.682 10.295 12 8.8151 12 7.03125C12 6.15246 11.6814 5.32645 11.0983 4.68038ZM0.703125 3.51562C0.703125 1.96481 1.96481 0.703125 3.51562 0.703125H7.78127C9.33209 0.703125 10.5938 1.96481 10.5938 3.51562C10.5938 5.06644 9.33209 6.32812 7.78127 6.32812H6C5.93119 6.32812 5.8639 6.3483 5.80648 6.38618L4.21875 7.43304V6.67969C4.21875 6.48553 4.06134 6.32812 3.86719 6.32812H3.51562C1.96481 6.32812 0.703125 5.06644 0.703125 3.51562ZM8.4844 9.86719H8.13281C7.93866 9.86719 7.78125 10.0246 7.78125 10.2188V10.9895L6.19577 9.92674C6.13786 9.88791 6.06973 9.86719 6 9.86719H4.21875C2.66794 9.86719 1.40625 8.595 1.40625 7.03125C1.40625 6.80995 1.43159 6.59266 1.4816 6.38133C1.93008 6.70059 2.45623 6.91748 3.0258 6.99727C3.07155 7.01906 3.12279 7.03127 3.17684 7.03127H3.51562V8.08596C3.51562 8.21529 3.58664 8.33419 3.70052 8.3955C3.81431 8.45679 3.95266 8.4507 4.06071 8.37947L6.10547 7.03125H7.78127C9.03588 7.03125 10.1389 6.3705 10.7612 5.37886C11.1092 5.85574 11.2969 6.42797 11.2969 7.03125C11.2969 8.59498 10.0352 9.86719 8.4844 9.86719Z","fill","black"],["d","M3.51562 2.8125C3.12792 2.8125 2.8125 3.12792 2.8125 3.51562C2.8125 3.90333 3.12792 4.21875 3.51562 4.21875C3.90333 4.21875 4.21875 3.90333 4.21875 3.51562C4.21875 3.12792 3.90333 2.8125 3.51562 2.8125Z","fill","black"],["d","M5.64844 2.8125C5.26073 2.8125 4.94531 3.12792 4.94531 3.51562C4.94531 3.90333 5.26073 4.21875 5.64844 4.21875C6.03614 4.21875 6.35156 3.90333 6.35156 3.51562C6.35156 3.12792 6.03614 2.8125 5.64844 2.8125Z","fill","black"],["d","M7.78125 2.8125C7.39355 2.8125 7.07812 3.12792 7.07812 3.51562C7.07812 3.90333 7.39355 4.21875 7.78125 4.21875C8.16895 4.21875 8.48438 3.90333 8.48438 3.51562C8.48438 3.12792 8.16895 2.8125 7.78125 2.8125Z","fill","black"],["id","clip0_3288_2525"],["width","12","height","12","fill","white"],[1,"dot"],[1,"qr-code-phone",3,"click"],[1,"text"],["clip-path","url(#clip0_4092_513)"],["
1id","clip0_4092_513"],[1,"no-requests"],["xmlns","http://www.w3.org/2000/svg","width","58","height","52","viewBox","0 0 58 52","fill","none"],["d","M25.3625 20.3618C25.2392 20.9701 25.6324 21.5631 26.2406 21.6862L29.2302 22.2918C30.7364 22.5186 31.0737 20.4089 29.6765 20.0891L26.6869 19.4835C26.0788 19.3603 25.4857 19.7536 25.3625 20.3618Z","fill","#CED3DB"],["d","M55.9885 18.2675C54.6729 17.4034 52.95 17.6237 51.8928 18.7913C50.2777 20.5722 48.6603 21.6308 47.3392 21.7721C44.774 22.0461 43.1413 23.9802 42.8304 27.0934C42.8179 27.1325 42.8069 27.1725 42.7986 27.2137L42.4601 28.884C40.9812 26.6682 38.7461 24.8381 36.3615 23.9126C37.494 23.0288 38.5059 21.9376 39.3398 20.6665C41.2922 20.9602 43.1596 19.6691 43.556 17.7123C43.7998 16.508 43.4471 15.3319 42.6943 14.4862C42.5826 9.97842 41.3614 6.45058 39.0608 3.99567C37.327 2.14579 34.974 0.90912 32.0672 0.320284C29.152 -0.270237 26.4964 -0.0433557 24.1742 0.994074C21.0847 2.37447 18.5788 5.17863 16.7211 9.33228C15.7733 9.83739 15.0554 10.7485 14.8237 11.8926C14.6255 12.871 14.8202 13.868 15.3719 14.6999C15.8882 15.4784 16.6593 16.0252 17.558 16.2546C18.1015 19.2262 19.5684 21.8158 21.6311 23.6503C18.999 24.4424 16.5171 26.3706 14.9242 28.7991L14.6037 27.2178C14.3241 24.032 12.6829 22.0497 10.084 21.7721C8.76264 21.6307 7.14536 20.5721 5.53067 18.7919C4.4729 17.6237 2.75022 17.4033 1.43512 18.2671C0.536357 18.8565 0 19.8491 0 20.9222C0 21.3839 0.0990008 21.8314 0.293631 22.2516C1.31465 24.4603 3.93497 27.7706 6.15917 29.6976L8.24741 41.311C8.696 43.9423 10.9576 45.8513 13.6275 45.8513C15.1695 45.8513 16.6462 45.1948 17.6792 44.0501L18.054 43.6348V44.9995V48.9779C18.054 50.2174 19.0624 51.2258 20.3019 51.2258H23.6477C24.2682 51.2258 24.7714 50.7227 24.7714 50.1021C24.7714 49.4814 24.2682 48.9783 23.6477 48.9783L20.3015 48.9779V44.9995V38.6993C20.3015 38.0787 19.7982 37.5756 19.1777 37.5756C18.5572 37.5756 18.054 38.0787 18.054 38.6993V40.2802L16.0107 42.5444C15.4031 43.2176 14.5345 43.6039 13.6275 43.6039C12.0558 43.6039 10.7247 42.4791 10.4622 40.9295C10.4615 40.9257 10.4609 40.922 10.4601 40.9182L8.38731 29.3893L12.6139 28.7162L13.7523 34.3345C13.8756 34.9429 14.4689 35.3358 15.0769 35.2127C15.6851 35.0894 16.0782 34.4965 15.955 33.8882L15.6661 32.4622C16.5864 29.2622 19.6295 26.4014 22.7255 25.6802C22.901 27.1365 23.5587 28.4807 24.5958 29.4896C25.7168 30.5801 27.1791 31.1808 28.7136 31.1808C31.749 31.1808 34.2382 28.8467 34.6142 25.704C35.9844 26.0434 37.3833 26.8077 38.6415 27.9193C40.1284 29.2327 41.2478 30.896 41.7281 32.4969L41.4462 33.8881C41.3229 34.4963 41.7161 35.0893 42.3242 35.2126C42.9322 35.3357 43.5255 34.9428 43.6488 34.3344L44.7872 28.7161L49.0138 29.3892L46.9408 40.918C46.94 40.9218 46.9393 40.9255 46.9387 40.9294C46.6763 42.479 45.3452 43.6037 43.7735 43.6037C42.8666 43.6037 41.9978 43.2175 41.3902 42.5443L39.347 40.2802V38.6993C39.347 38.0787 38.8438 37.5756 38.2233 37.5756C37.6028 37.5756 37.0996 38.0787 37.0996 38.6993L37.0991 48.9784H33.7418C33.1213 48.9784 32.6181 49.4815 32.6181 50.1022C32.6181 50.7228 33.1213 51.2259 33.7418 51.2259H37.0991C38.3386 51.2259 39.347 50.2175 39.347 48.978V43.6349L39.7217 44.0501C40.7547 45.1948 42.2316 45.8513 43.7735 45.8513C46.4435 45.8513 48.705 43.9423 49.1535 41.311L51.2378 29.7197C53.4675 27.7961 56.104 24.4688 57.1285 22.2526C57.3236 21.8314 57.4226 21.384 57.4226 20.9223C57.4227 19.8491 56.8863 18.8565 55.9885 18.2675ZM6.91983 27.3472C5.09961 25.5859 3.12431 23.0187 2.33332 21.3074C2.27634 21.1846 2.24746 21.055 2.24746 20.9222C2.24746 20.6089 2.40445 20.3189 2.66808 20.146C3.05206 19.8937 3.55515 19.9588 3.86508 20.3011C5.26997 21.8501 7.44776 23.7503 9.8449 24.0069C11.103 24.1412 11.9016 24.9805 12.2301 26.5014L6.91983 27.3472ZM25.0907 3.04601C27.0033 2.19152 29.1387 2.02049 31.6206 2.52291C34.0953 3.02421 35.9925 4.00871 37.4205 5.53249C39.1271 7.35338 40.1189 9.96415 40.3821 13.3044C40.3793 13.3047 40.3766 13.3052 40.3738 13.3055C38.4035 13.1081 35.9296 12.3565 33.7002 11.2709C31.2683 10.0869 29.3364 8.61197 28.3999 7.22438C28.0371 6.6869 27.4587 6.33259 26.8129 6.25213C26.1617 6.17122 25.5079 6.37529 25.0192 6.81208C23.949 7.7686 21.8515 9.25553 19.3656 9.02044C20.9025 6.06581 22.8232 4.05917 25.0907 3.04601ZM19.6576 15.1146C19.5902 14.5482 19.11 14.1235 18.542 14.1235C16.5617 14.1038 16.4934 11.306 18.3957 11.1488C22.0685 11.864 25.0583 9.79155 26.5173 8.48791C26.5258 8.48004 26.5358 8.48206 26.5374 8.48217C29.0418 12.1919 35.8342 15.1868 40.3816 15.5643C40.5071 15.6078 40.7199 15.7129 40.8867 15.8586C41.2696 16.1984 41.4628 16.7251 41.3532 17.2664C41.1902 18.0714 40.4024 18.5937 39.5975 18.4307C39.4909 18.4091 39.3851 18.3751 39.2835 18.3297C38.7556 18.0939 38.1352 18.297 37.8489 18.7993C35.5799 22.7804 31.3445 24.906 27.3087 24.0888C23.2732 23.2713 20.1985 19.6649 19.6576 15.1146ZM28.7136 28.9333C26.9226 28.9333 25.3805 27.5666 25.0106 25.7403C25.6058 25.9755 26.224 26.162 26.8625 26.2913C27.5872 26.4381 28.3157 26.5094 29.0411 26.5094C30.1344 26.5093 31.2193 26.3459 32.2681 26.0352C31.8204 27.7327 30.4019 28.9333 28.7136 28.9333ZM55.0889 21.3085C54.2977 23.0199 52.3207 25.5889 50.4995 27.3501L45.1918 26.5048C45.5199 24.9818 46.3188 24.1414 47.5779 24.0069C49.9748 23.7504 52.1526 21.8502 53.5581 20.3006C53.8677 19.9588 54.3706 19.8938 54.7552 20.1464C55.0181 20.3189 55.1751 20.6089 55.1751 20.9222C55.1752 21.055 55.1464 21.1846 55.0889 21.3085Z","fill","#CED3DB"],["d","M25.1784 15.1381C25.799 15.1381 26.3022 14.635 26.3022 14.0144C26.3022 13.3937 25.799 12.8906 25.1784 12.8906C24.5578 12.8906 24.0547 13.3937 24.0547 14.0144C24.0547 14.635 24.5578 15.1381 25.1784 15.1381Z","fill","#CED3DB"],["d","M33.2019 16.7631C33.8225 16.7631 34.3256 16.26 34.3256 15.6394C34.3256 15.0187 33.8225 14.5156 33.2019 14.5156C32.5812 14.5156 32.0781 15.0187 32.0781 15.6394C32.0781 16.26 32.5812 16.7631 33.2019 16.7631Z","fill","#CED3DB"],["d","M28.6745 51.224C29.2951 51.224 29.7982 50.7209 29.7982 50.1003C29.7982 49.4797 29.2951 48.9766 28.6745 48.9766C28.0539 48.9766 27.5508 49.4797 27.5508 50.1003C27.5508 50.7209 28.0539 51.224 28.6745 51.224Z","fill","#CED3DB"],[1,"n
1o-requests-title"],[3,"close","serviceNumber","bike","qrCode"]],template:function(g,C){1&g&&(n.j41(0,"div",5),n.DNE(1,js,33,28,"div",6)(2,Pc,13,6,"div",7),n.k0s(),n.DNE(3,bc,1,3,"app-customer-qr-code",8)),2&g&&(n.R7$(),n.Y8G("ngIf",C.customerServiceRequests&&C.customerServiceRequests.length>0),n.R7$(),n.Y8G("ngIf",0==(null==C.customerServiceRequests?null:C.customerServiceRequests.length)),n.R7$(),n.Y8G("ngIf",C.showQrCode))},dependencies:[M.YU,M.Sq,M.bT,M.B3,Pi.Y,it.D9,ln.g],styles:[".customer-service-requests-container[_ngcontent-%COMP%]{border-radius:10px;background:#fff;margin:0 32px;min-height:100svh}.customer-service-requests-container[_ngcontent-%COMP%]   .create-service[_ngcontent-%COMP%]{cursor:pointer;min-width:-moz-fit-content;min-width:fit-content;height:41px;padding:0 34px;color:#ff5e3a;font-size:13px;font-weight:700;border-radius:39px;border:2px solid #FF5E3A}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]{width:100%;padding:32px 42px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;column-gap:30px;width:100%}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]{display:flex;border-radius:10px;box-shadow:3px 3px 16.9px 2px #bebebe40;-ms-overflow-style:none;scrollbar-width:none;overflow:scroll}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{min-width:-moz-fit-content;min-width:fit-content;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:10px;height:49px;padding:0 30px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .section-selected[_ngcontent-%COMP%]{background:#ff5e3a;color:#fff;font-size:16px;font-weight:500}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .section-un-selected[_ngcontent-%COMP%]{color:#989898}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]{margin-top:35px;display:flex;justify-content:flex-end;max-width:1050px;position:relative;align-items:center}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort-container-underline[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #CED3DB}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort-title[_ngcontent-%COMP%]{white-space:nowrap;margin-left:20px;width:-moz-fit-content;width:fit-content;color:#989898}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .selected-sort-option[_ngcontent-%COMP%]{cursor:pointer;margin-left:5px;display:flex;align-items:center;column-gap:10px;transition:.3s}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort-options[_ngcontent-%COMP%]{z-index:12;position:absolute;top:22px;right:0;background:var(--color-white);border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;padding:0 11px;width:123px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort-options[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;height:39px;border-bottom:1px solid #F6F4F3}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{max-width:1050px;margin-top:10px;width:100%;border-radius:10px;box-shadow:3px 3px 16.9px #a1a1a140;padding:0 21px;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{display:flex;justify-content:space-between;
1height:129px;border-bottom:1px solid #DEE5F4;position:relative}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]:last-child{border-bottom:unset}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]{width:150px;min-width:150px;margin-top:30px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{align-items:center;display:flex;column-gap:7px;font-size:16px;font-weight:700}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]   .new-update[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:flex;align-items:center;padding:0 12px;height:22px;border-radius:0 0 10px 10px;font-weight:400;background:var(--color-theme);color:var(--color-white);font-size:10px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:#989898}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{color:var(--color-theme);margin-top:12px;font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .created[_ngcontent-%COMP%]{margin-top:1px;color:#989898;font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{max-width:465px;width:100%;position:relative;margin-top:39px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress-line[_ngcontent-%COMP%]{border-bottom:3px dashed #989898;width:100%}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{border-radius:0;top:0;left:0;position:absolute;height:3px;width:20%;background:var(--color-theme)}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .progress-circle[_ngcontent-%COMP%]{width:12px;height:12px;position:absolute;top:-4.5px;left:20%;border-radius:50%;background:#ff5e3a}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]{position:absolute;top:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:#989898;font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .right-align[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-left:20px;
1display:flex;margin-top:48px;min-width:-moz-fit-content;min-width:fit-content;justify-content:space-between}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .qr-code__chat[_ngcontent-%COMP%]{display:flex;column-gap:13px;width:73px;justify-content:flex-end}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .qr-code__chat[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;height:30px;border-radius:50%;box-shadow:3px 3px 16.9px #a1a1a140;position:relative}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .qr-code__chat[_ngcontent-%COMP%]   .circle[_ng
1content-%COMP%]   .dot[_ngcontent-%COMP%]{color:var(--color-white);display:flex;font-weight:500;align-items:center;justify-content:center;width:13.5px;border-radius:50%;position:absolute;height:13.5px;top:-1px;right:-4px;background:var(--color-theme)}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .show-details[_ngcontent-%COMP%]{min-width:-moz-fit-content;min-width:fit-content;cursor:pointer;margin-left:19px;height:33px;border-radius:45px;padding:0 24px;color:#ff5e3a;text-align:center;font-size:13px;font-weight:500;border:2px solid #FF5E3A}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .qr-code-phone[_ngcontent-%COMP%]{order:4;display:none;justify-content:center;align-items:center;column-gap:17px;width:100%;height:41px;flex-shrink:0;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px #a1a1a140}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .create-service-container[_ngcontent-%COMP%]{display:none;width:100%;justify-content:center;align-items:center}.customer-service-requests-container[_ngcontent-%COMP%]   .no-requests[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding-top:100px;row-gap:28px;font-size:20px}@media (max-width: 980px){.customer-service-requests-container[_ngcontent-%COMP%]{margin:0 18px 43px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]{padding:32px 27px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{max-height:calc(100svh - 328px)}}@media (max-width: 780px){.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{height:200px;flex-wrap:wrap}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]{max-width:111px;width:111px;min-width:111px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{margin-top:-18px;order:3}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-left:10px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .show-details[_ngcontent-%COMP%]{margin-left:15px}}@media (max-width: 580px){.customer-service-requests-container[_ngcontent-%COMP%]{margin:0}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]{padding:0}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]{background:#f6f4f3;padding:0 24px;position:relative;z-index:2}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]{margin-top:49px;height:-moz-fit-content;height:fit-content}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{height:37px;padding:0 20px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .section-selected[_ngcontent-%COMP%]{font-size:14px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .create-service[_ngcontent-%COMP%]{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]{font-size:12px;background:#f6f4f3;padding:13px 24px 18px;margin-top:0}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort-options[_ngcontent-%COMP%]{top:30px;right:21px;font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]{position:relative;border-radius:10px 10px 0 0;margin-top:-10px;background:#fff;padding:0 24px;height:calc(100svh - 255px);max-height:calc(100svh - 255px);box-shadow:unset;-ms-overflow-style:none;scrollbar-width:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]{height:unset;border-bottom:1px dashed #DEE5F4;padding-bottom:24px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]{margin-top:28px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{font-size:14px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .bike-details[_ngcontent-%COMP%]   .created[_ngcontent-%COMP%]{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:24px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .qr-code__chat[_ngcontent-%COMP%]{display:none}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]{height:45px;margin-top:20px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .repair-progress[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]{font-size:12px}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .service[_ngcontent-%COMP%]   .qr-code-phone[_ngcontent-%COMP%]{margin-top:10px;display:flex}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .create-service-container[_ngcontent-%COMP%]{position:relative;display:flex;height:75px;border-radius:10px 10px 0 0;background:#fff;box-shadow:3px 3px 16.9px 2px #bebebe40}.customer-service-requests-container[_ngcontent-%COMP%]   .customer-service-requests[_ngcontent-%COMP%]   .create-service-container[_ngcontent-%COMP%]   .create-service[_ngcontent-%COMP%]{background:var(--color-theme);color:var(--color-white);margin-top:0}}.expand-opened[_ngcontent-%COMP%]{transform:rotate(180deg)}"]})}return h})(),data:{role:[ue.R.customer_default,ue.R.customer_admin]}},{path:"service-requests/add",component:de,data:{role:[ue.R.customer_default,ue.R.customer_admin]}},{path:"service-requests/info/:id",component:pc,data:{role:[ue.R.customer_default,ue.R.customer_admin]}},{path:"shop-profile-preview/:id",component:xl,data:{role:[as.z.shop_default,as.z.shop_admin,ue.R.customer_default,ue.R.customer_admin]}}];let wc=(()=>{class h{static#e=this.\u0275fac=function(g){return new(g||h)};static#t=this.\u0275mod=n.$C({type:h});static#n=this.\u0275inj=n.G2t({imports:[V.iI.forChild(Mc),V.iI]})}return h})();var Us=P(21),Sc=P(3514),yc=P(1668),$s=P(7711),Ec=P(2389),yi=P(7439),Ei=P(345),te=P(4292),_t=P(7951),Ft=P(3862),Rc=P(5042),Be=P(2463),Ri=P(4905),Ic=P(4874),Ir=P(3341),Ar=P(4831),Wt=P(2984),Tr="dx-radiobutton",kr="dx-radiobutton-icon";class je extends Ic.A{_focusTarget(){return this.$element().parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){var _=super._getDefaultOptions();return(0,_t.X)(_,Ir.A._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),(0,Rc.zE)(()=>{this.itemElements().addClass(Tr)})}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(_){var{itemData:{html:l},itemElement:g}=_;
1if(!l){var C=(0,te.A)("<div>").addClass(kr);(0,te.A)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(C);var y=(0,te.A)("<div>").append(C).addClass("dx-radio-value-container");(0,te.A)(g).prepend(y)}super._postprocessRenderItem(_)}_processSelectableItem(_,l){super._processSelectableItem(_,l),_.toggleClass("dx-radiobutton-checked",l).find(".".concat(kr)).first().toggleClass("dx-radiobutton-icon-checked",l),this.setAria("checked",l,_)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){var _=super._supportedKeys();return(0,_t.X)({},_,{enter:function(l){return l.preventDefault(),_.enter.apply(this,arguments)},space:function(l){return l.preventDefault(),_.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelectionAttribute(){}}class fn extends Ar.A{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===Ft.A.real().deviceType&&!Ft.A.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(_){_&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){var _=super._getDefaultOptions();return(0,_t.X)(_,(0,_t.X)(Ir.A._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(_){return this._valueGetter?this._valueGetter(_):_.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".".concat(Tr),this._feedbackHideTimeout=100,this._initDataExpressions()}_initMarkup(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(_){var{itemElement:l,event:g,itemData:C}=_;if(this.itemElements().is(l)){var y=this._getItemValue(C);y!==this.option("value")&&(this._saveValueChangeEvent(g),this.option("value",y))}}_getSelectedItemKeys(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value");return"this"!==this.option("valueExpr")&&null===_||(0,Be.O9)(_)?[_]:[]}_setSelection(_){var l=this._unwrappedValue(_);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(l))}_renderValidationState(){var _;super._renderValidationState(),null===(_=this._validationMessage)||void 0===_||_.$content().attr("role","alert")}_optionChanged(_){var{name:l,value:g}=_;switch(this._dataExpressionOptionChanged(_),l){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(l,g);break;case"disabled":super._optionChanged(_),this._setCollectionWidgetOption(l,g);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(g),this._setSubmitValue(g),super._optionChanged(_);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(_)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){var _=this.option("layout"),l=this.$element();l.toggleClass("dx-radiogroup-vertical","vertical"===_),l.toggleClass("dx-radiogroup-horizontal","horizontal"===_)}_renderRadios(){this._areRadiosCreated=new Wt.cY;var _=(0,te.A)("<div>").appendTo(this.$element()),{displayExpr:l,accessKey:g,focusStateEnabled:C,itemTemplate:y,tabIndex:Q}=this.option();this._createComponent(_,je,{onInitialized:le=>{var{component:Fe}=le;this._radios=Fe},onContentReady:le=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:l,accessKey:g,dataSource:this._dataSource,focusStateEnabled:C,itemTemplate:y,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:Q}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=(0,te.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),(0,_t.X)(this._optionsByReference,{value:!0})}_setSubmitValue(_){var l;_=null!==(l=_)&&void 0!==l?l:this.option("value");var g="this"===this.option("valueExpr")?this._displayGetter(_):_;this._$submitElement.val(g)}_setCollectionWidgetOption(){this._areRadiosCreated.done(this._setWi
1dgetOption.bind(this,"_radios",arguments))}_updateItemsSize(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var _=this.option("items").length;this.itemElements().css("height",100/_+"%")}}focus(){var _;null===(_=this._radios)||void 0===_||_.focus()}itemElements(){var _;return null===(_=this._radios)||void 0===_?void 0:_.itemElements()}}fn.include(Ir.A),(0,Ri.A)("dxRadioGroup",fn);const Vc=fn;var xe=P(7283),Fr=P(1837);const Lc={provide:Te.kq,useExisting:(0,n.Rfq)(()=>qc),multi:!0};let qc=(()=>{class h extends xe.ic{constructor(l,g,C,y,Q,le,Fe,ye){super(l,g,C,y,Fe,ye),this._watcherHelper=y,this._idh=Q,this.touched=wt=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"layoutChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),le.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(l){this._setOption("accessKey",l)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(l){this._setOption("activeStateEnabled",l)}get dataSource(){return this._getOption("dataSource")}set dataSource(l){this._setOption("dataSource",l)}get disabled(){return this._getOption("disabled")}set disabled(l){this._setOption("disabled",l)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(l){this._setOption("displayExpr",l)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(l){this._setOption("elementAttr",l)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(l){this._setOption("focusStateEnabled",l)}get height(){return this._getOption("height")}set height(l){this._setOption("height",l)}get hint(){return this._getOption("hint")}set hint(l){this._setOption("hint",l)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(l){this._setOption("hoverStateEnabled",l)}get isDirty(){return this._getOption("isDirty")}set isDirty(l){this._setOption("isDirty",l)}get isValid(){return this._getOption("isValid")}set isValid(l){this._setOption("isValid",l)}get items(){return this._getOption("items")}set items(l){this._setOption("items",l)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(l){this._setOption("itemTemplate",l)}get layout(){return this._getOption("layout")}set layout(l){this._setOption("layout",l)}get name(){return this._getOption("name")}set name(l){this._setOption("name",l)}get readOnly(){return this._getOption("readOnly")}set readOnly(l){this._setOption("readOnly",l)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(l){this._setOption("rtlEnabled",l)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(l){this._setOption("tabIndex",l)}get validationError(){return this._getOption("validationError")}set validationError(l){this._setOption("validationError",l)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(l){this._setOption("validationErrors",l)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(l){this._setOption("validationMessageMode",l)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(l){this._setOption("validationMessagePosition",l)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(l){this._setOption("validationStatus",l)}get value(){return this._getOption("value")}set value(l){this._setOption("value",l)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(l){this._setOption("valueExpr",l)}get visible(){return this._getOption("visible")}set visible(l){this._setOption("visible",l)}get width(){return this._getOption("width")}set width(l){this._setOption("width",l)}change(l){}get itemsChildren(){return this._getOption("items")}set itemsChildren(l){this.setChildren("items",l)}_createInstance(l,g){return new Vc(l,g)}writeValue(l){this.eventHelper.lockedValueChangeEvent=!0,this.value=l,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(l){this.disabled=l}registerOnChange(l){this.change=l}registerOnTouched(l){this.touched=l}_createWidget(l){super._createWidget(l),this.instance.on("focusOut",g=>{this.eventHelper.fireNgEvent("onBlur",[g])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(l){super.ngOnChanges(l),this.setupChanges("dataSource",l),this.setupChanges("items",l),this.setupChanges("validationErrors",l)}setupChanges(l,g){l in this._optionsToUpdate||this._idh.setup(l,g)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("val
1idationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(l,g){let C=this._idh.setupSingle(l,g),y=null!==this._idh.getChanges(l,g);(C||y)&&super._setOption(l,g)}}return h.\u0275fac=function(l){return new(l||h)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(xe.zF),n.rXU(xe.jS),n.rXU(xe.$M),n.rXU(xe.fH),n.rXU(Ei.pJ),n.rXU(n.Agw))},h.\u0275cmp=n.VBU({type:h,selectors:[["dx-radio-group"]],contentQueries:function(l,g,C){if(1&l&&n.wni(C,Fr.CVf,4),2&l){let y;n.mGM(y=n.lsd())&&(g.itemsChildren=y)}},hostBindings:function(l,g){1&l&&n.bIt("valueChange",function(y){return g.change(y)})("onBlur",function(y){return g.touched(y)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",layout:"layout",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",layoutChange:"layoutChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[n.Jv_([xe.zF,xe.jS,Lc,xe.fH,xe.$M]),n.Vt3,n.OA$],decls:0,vars:0,template:function(l,g){},encapsulation:2}),h})(),Bc=(()=>{class h{}return h.\u0275fac=function(l){return new(l||h)},h.\u0275mod=n.$C({type:h}),h.\u0275inj=n.G2t({imports:[[Fr.POb,xe.p_,xe.xZ],Fr.POb,xe.xZ]}),h})();var Kt=P(186),Dr=P(3992),Vr=P(4435),vt=P(1269),Un=P(4423),On=P(2101),Ks=P(4461),Ii=P(2839),Lr=P(3930),Xs=Ar.A.inherit({_getDefaultOptions:function(){return(0,_t.X)(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=(0,te.A)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,te.A)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,te.A)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var h=this.option("value"),_=this.option("min"),l=this.option("max");if(!(_>l)){if(h<_)return this.option("value",_),void(this._currentRatio=0);if(h>l)return this.option("value",l),void(this._currentRatio=1);var g=_===l?0:(h-_)/(l-_);!this._needPreventAnimation&&this._setRangeStyles({width:100*g+"%"}),this.setAria({valuemin:this.option("min"),valuemax:l,valuenow:h}),this._currentRatio=g}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(h){Lr.A.stop(this._$range),h?this._needPreventAnimation||!(0,Vr.Vd)()||Lr.A.animate(this._$range,{type:"custom",duration:100,to:h}):this._$range.css({width:0})},_optionChanged:function(h){switch(h.name){case"value":this._renderValue(),this.callBase(h);break;case"max":case"min":this._renderValue();break;default:this.callBase(h)}},_dispose:function(){Lr.A.stop(this._$range),this.callBase()}});(0,Ri.A)("dxTrackBar",Xs);var ea="dx-progressbar-animating-segment",qr=Xs.inherit({_getDefaultOptions:function(){return(0,_t.X)(this.callBase(),{value:0,statusFormat:function(h){return"Progress: "+Math.round(100*h)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(h){return"android"===h.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,te.A)("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=(0,te.A)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,te.A)("<div>").addClass("dx-progressbar-animating-container");for(var h=this.option("_animatingSegmentCount"),_=0;_<h;_++)(0,te.A)("<div>").addClass(ea).addClass(ea+"-"+(_+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(h){var _=this.option("statusPosition").split(" ");h?"top"===_[0]||"left"===_[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var _=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var l="dx-position-"+_[0];_[1]&&(l+="-"+_[1]),this._$wrapper.addClass(l)},_toggleIndeterminateState:function(h){h?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var h=this.option("value"),_=this.option("max");h||0===h?(this._$segmentContainer&&this._toggleIndeterminateState(!1),h===_&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var h=this.option("statusFormat"),_=(h=(0,Be.Tn)(h)?h.bind(this):function(l){return l})(this._currentRatio,this.option("value"));this._$status.text(_)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(h){switch(h.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(h.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(h)}}});(0,Ri.A)("dxProgressBar",qr);const Ct=qr;var ot=P(9104),ta=P(8060),We=P(736),na=P(1299),ia=P(7669),$n=(0,Vr.zk)(),ra="dx-fileuploader-dragover",aa="dx-fileuploader-file-container",Br="dx-fileuploader-file-name",Nr="dx-fileuploader-file-size",Kn="dx-fileuploader-button",zr="dx-fileuploader-button-container",la="dx-fileuploader-upload-button",da=()=>!!$n.FormData;class Xn extends Ar.A{_supportedKeys(){var _=l=>{l.preventDefault();var g=this._selectButton.$element();vt.A.trigger(g,ta.U)};return(0,_t.X)(super._supportedKeys(),{space:_,enter:_})}_setOptionsByReference(){super._setOptionsByReference(),(0,_t.X)(this._optionsByReference,{value:!0})}_getDefaultOptions(){return(0,_t.X)(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:We.A.format("dxFileUploader-selectFile"),uploadButtonText:We.A.format("dxFileUploader-upload"),labelText:We.A.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:We.A.format("dxFileUploader-readyToUpload"),uploadedMessage:We.A.format("dxFileUploader-uploaded"),uploadFailedMessage:We.A.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:We.A.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:We.A.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:We.A.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:We.A.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal",_buttonStylingMode:"contained"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===Ft.A.real().deviceType&&!Ft.A.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==Ft.A.real().deviceType,options:{useDragOver:!1}},{device:()=>!da(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==Ft.A.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>(0,na.gx)(),options:{_uploadButtonType:"default"}},{device:()=>(0,na.Ft)(),options:{_buttonStylingMode:"text"}}])}_initOptions(_){var l="labelText"in _;super._initOptions(_),!l&&!this._shouldDragOverBeRendered()&&this.option("labelText","")}_init(){super._init(),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()}_setUploadStrategy(){var _=null;if(this.option("chunkSize")>0){var l=this.option("uploadChunk");_=l&&(0,Be.Tn)(l)?new od(this):new rd(this)}else{var g=this.option("uploadFile");_=g&&(0,Be.Tn)(g)?new jr(this):new pa(this)}this._uploadStrategy=_}_initFileInput(){this._isCustomClickEvent=!1;var{multiple:_,accept:l,hint:g}=this.option();this._$fileInput||(this._$fileInput=(0,te.A)("<input>").attr("type","file"),vt.A.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),vt.A.on(this._$fileInput,"click",y=>(y.stopPropagation(),this._resetInputValue(),this.option("useNativeInputClick")||this._isCustomClickEvent)));var C={multiple:_,accept:l,tabIndex:-1};(0,Be.O9)(g)&&(C.title=g),this._$fileInput.prop(C)}_inputChangeHandler(){if(!this._doPreventInputChange){var _=this._$fileInput.val().replace(/^.*\\/,""),l=this._$fileInput.prop("files");if(!l||l.length||"useForm"===this.option("uploadMode")){var g=l?this._getFiles(l):[{name:_}];this._changeValue(g),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(_){var l=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",l.concat(_))}_getFiles(_){var l=[];return(0,On.__)(_,(g,C)=>l.push(C)),l}_getFile(_){var l=(0,Be.kf)(_)?this.option("value")[_]:_;return this._files.filter(g=>g.value===l)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=(0,te.A)("<div>")),this._updateInputLabelText()}_updateInputLabelText(){var _=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(_)}
1_focusTarget(){return this.$element().find("."+Kn)}_getSubmitElement(){return this._$fileInput}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null}_render(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),super._render()}_createFileProgressBar(_){_.progressBar=this._createProgressBar(_.value.size),_.progressBar.$element().appendTo(_.$file),this._initStatusMessage(_),this._ensureCancelButtonInitialized(_)}_setStatusMessage(_,l){setTimeout(()=>{this.option("showFileList")&&_.$statusMessage&&(_.$statusMessage.text(l),_.$statusMessage.css("display",""),_.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){var _=this.option("value");this._files&&(0===_.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,On.__)(_.slice(this._files.length),(l,g)=>{var C=this._createFile(g);this._validateFile(C),this._files.push(C)})}_preventFilesUploading(_){_.forEach(l=>this._uploadStrategy.abortUpload(l))}_validateFile(_){_.isValidFileExtension=this._validateFileExtension(_),_.isValidMinSize=this._val
1idateMinFileSize(_),_.isValidMaxSize=this._validateMaxFileSize(_)}_validateFileExtension(_){var l=this.option("allowedFileExtensions"),g=this.option("accept"),C=this._getAllowedFileTypes(g),y=_.value.name.substring(_.value.name.lastIndexOf(".")).toLowerCase();if(0!==g.length&&!this._isFileTypeAllowed(_.value,C))return!1;if(0===l.length)return!0;for(var Q=0;Q<l.length;Q++)if(y===l[Q].toLowerCase())return!0;return!1}_validateMaxFileSize(_){var l=_.value.size,g=this.option("maxFileSize");return!(g>0)||l<=g}_validateMinFileSize(_){var l=_.value.size,g=this.option("minFileSize");return!(g>0)||l>=g}_createBeforeSendAction(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})}_createUploadStartedAction(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})}_createUploadedAction(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})}_createFilesUploadedAction(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})}_createProgressAction(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})}_createUploadAbortedAction(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})}_createUploadErrorAction(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})}_createDropZoneEnterAction(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")}_createDropZoneLeaveAction(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")}_createFile(_){return{value:_,loadedSize:0,onProgress:(0,Un.A)(),onAbort:(0,Un.A)(),onLoad:(0,Un.A)(),onError:(0,Un.A)(),onLoadStart:(0,Un.A)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(_){_.isAborted=!1,_.uploadStarted=!1,_.isStartLoad=!1,_.loadedSize=0,_.chunksData=void 0,_.request=void 0}_renderFiles(){var _,l=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===l.length)&&this._$filesContainer.empty():this._$filesContainer=(0,te.A)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var g=this.option("showFileList");g&&(0,On.__)(this._files,(C,y)=>{y.$file||this._renderFile(y)}),this.$element().toggleClass("dx-fileuploader-show-file-list",g),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(_=this._validationMessage)||void 0===_||_.repaint()}_renderFile(_){var l=_.value,g=(0,te.A)("<div>").addClass(aa).appendTo(this._$filesContainer);this._renderFileButtons(_,g),_.$file=(0,te.A)("<div>").addClass("dx-fileuploader-file").appendTo(g);var C=(0,te.A)("<div>").addClass("dx-fileuploader-file-info").appendTo(_.$file);_.$statusMessage=(0,te.A)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(_.$file),(0,te.A)("<div>").addClass(Br).text(l.name).appendTo(C),(0,Be.O9)(l.size)&&(0,te.A)("<div>").addClass(Nr).text(this._getFileSize(l.size)).appendTo(C),_.isValid()?_.$statusMessage.text(this.option("readyToUploadMessage")):(_.isValidFileExtension||_.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),_.isValidMaxSize||_.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),_.isValidMinSize||_.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),g.addClass("dx-fileuploader-invalid"))}_createValidationElement(_){return(0,te.A)("<span>").text(this.option(_))}_updateFileNameMaxWidth(){var _=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,l="useButtons"===this.option("uploadMode")?1:0,g=(0,Kt.RG)(this._$filesContainer.find("."+aa).first())||(0,Kt.RG)(this._$filesContainer),C=this._$filesContainer.find("."+zr).eq(0),y=(0,Kt.RG)(C)*(_+l),Q=this._$filesContainer.find("."+Nr).eq(0),le=Q.text();Q.text("1000 Mb");var Fe=(0,Kt.RG)(Q);Q.text(le),this._$filesContainer.find("."+Br).css("maxWidth",g-y-Fe)}_renderFileButtons(_,l){var g=this._getCancelButton(_);g&&l.append(g);var C=this._getUploadButton(_);C&&l.append(C)}_getCancelButton(_){if("useForm"===this.option("uploadMode"))return null;var{allowCanceling:l,readOnly:g,hoverStateEnabled:C,_buttonStylingMode:y}=this.option();return _.cancelButton=this._createComponent((0,te.A)("<div>").addClass(Kn+" dx-fileuploader-cancel-button"),Ii.A,{onClick:()=>this._removeFile(_),icon:"close",visible:l,disabled:g,integrationOptions:{},hoverStateEnabled:C,stylingMode:y}),(0,te.A)("<div>").addClass(zr).append(_.cancelButton.$element())}_getUploadButton(_){if(!_.isValid()||"useButtons"!==this.option("uploadMode"))return null;var{hoverStateEnabled:l,_buttonStylingMode:g}=this.option();return _.uploadButton=this._createComponent((0,te.A)("<div>").addClass(Kn+" "+la),Ii.A,{onClick:()=>this._uploadFile(_),icon:"upload",hoverStateEnabled:l,stylingMode:g}),_.onLoadStart.add(()=>_.uploadButton.option({visible:!1,disabled:!0})),_.onAbort.add(()=>_.uploadButton.option({visible:!0,disabled:!1})),(0,te.A)("<div>").addClass(zr).append(_.uploadButton.$element())}_removeFile(_){var l;null===(l=_.$file)||void 0===l||l.parent().remove(),this._files.splice(this._files.indexOf(_),1);var g=this.option("value").slice();g.splice(g.indexOf(_.value),1),this._preventRecreatingFiles=!0,this.option("value",g),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(_){if("useForm"!==this.option("uploadMode")&&(0,Be.O9)(_)){var l=this._getFile(_);l&&(l.uploadStarted&&this._preventFilesUploading([l]),this._removeFile(l))}}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(_){for(var l=0;l<_.length;l++)if(!_[l].isValid())return!0;return!1}_getFileSize(_){for(var l=0,g=[We.A.format("dxFileUploader-bytes"),We.A.format("dxFileUploader-kb"),We.A.format("dxFileUploader-Mb"),We.A.format("dxFileUploader-Gb")],C=g.length-1;l<C&&_>=1024;)_/=1024,l++;return Math.round(_)+" "+g[l]}_renderSelectButton(){var _=(0,te.A)("<div>").addClass(Kn).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(_,Ii.A,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===Ft.A.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))}_selectButtonClickHandler(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,vt.A.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(_){(0,Be.O9)(_)&&(this._detachSelectFileDialogHandler(_),vt.A.on((0,te.A)(_),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(_){(0,Be.O9)(_)&&vt.A.off((0,te.A)(_),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"===this.option("uploadMode")){var _=(0,te.A)("<div>").addClass(Kn).addClass(la).appendTo(this._$content);this._uploadButton=this._createComponent(_,Ii.A,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}}_uploadButtonClickHandler(){this._uploadFiles()}_shouldDragOverBeRendered(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))}_isInteractionDisabled(){return this.option("readOnly")||this.option("disabled")}_renderInputContainer(){this._$inputContainer=(0,te.A)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var _="dx-fileuploader-input-label-".concat(new Dr.A);this._$inputLabel.attr("id",_).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",_,this._$fileInput)}_renderInput(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}_selectButtonInputTemplate(_,l){var g=(0,te.A)(l),C=(0,te.A)("<span>").addClass("dx-button-text").text(_.text);return g.append(C).append(this._$fileInput),g}_renderInputWrapper(){this._$inputWrapper=(0,te.A)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(_){(0,Be.O9)(_)&&vt.A.off((0,te.A)(_),(0,ot.b4)("",this.NAME))}_attachDragEventHandlers(_){var l=_!==this._$inputWrapper;!(0,Be.O9)(_)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(_),_=(0,te.A)(_),vt.A.on(_,(0,ot.b4)("dragenter",this.NAME),this._dragEnterHandler.bind(this,l)),vt.A.on(_,(0,ot.b4)("dragover",this.NAME),this._dragOverHandler.bind(this,l)),vt.A.on(_,(0,ot.b4)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,l)),vt.A.on(_,(0,ot.b4)("drop",this.NAME),this._dropHandler.bind(this,l)))}_applyInputAttributes(_){this._$fileInput.attr(_)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(_,l){var g=_?Array.from((0,te.A)(this.option("dropZone"))):[this._$inputWrapper];return(g=g.map(C=>(0,te.A)(C).get(0)))[g.indexOf(l.currentTarget)]}_dragEnterHandler(_,l){if(this.option("disabled"))return!1;this._useInputForDrop()||l.preventDefault();var g=this._getDropZoneElement(_,l);(0,Be.O9)(g)&&this._shouldRaiseDragOver(l,g)&&(this._activeDropZone=g,this._tryToggleDropZoneActive(!0,_,l))}_shouldRaiseDragOver(_,l){return null===this._activeDropZone&&this.isMouseOverElement(_,l,!1)&&_.originalEvent.dataTransfer.types.find(g=>"Files"===g)}_dragOverHandler(_,l){if(this._useInputForDrop()||l.preventDefault(),l.originalEvent.dataTransfer.dropEffect="copy",!_){var g=this._getDropZoneElement(!1,l);this._shouldRaiseDragOver(l,g)&&this._dragEnterHandler(!1,l),this._shouldRaiseDragLeave(l,!1)&&this._dragLeaveHandler(!1,l)}}_dragLeaveHandler(_,l){this._useInputForDrop()||l.preventDefault(),this._shouldRaiseDragLeave(l,_)&&(this._tryToggleDropZoneActive(!1,_,l),this._activeDropZone=null)}_shouldRaiseDragLeave(_,l){return null!==this._activeDropZone&&!this.isMouseOverElement(_,this._activeDropZone,!l,-1)}
1_tryToggleDropZoneActive(_,l,g){var C=_?"addClass":"removeClass";this[_?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:g,dropZoneElement:this._activeDropZone}),l||this.$element()[C](ra)}_dropHandler(_,l){if(this._activeDropZone=null,_||this.$element().removeClass(ra),!(this._useInputForDrop()||_&&this._isInteractionDisabled())){l.preventDefault();var C=this._getFiles(l.originalEvent.dataTransfer.files);!this.option("multiple")&&C.length>1||0===C.length||(this._changeValue(C),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}_areAllFilesLoaded(){return this._files.every(_=>!_.isValid()||_._isError||_._isLoaded||_.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(_){return _.length?_.split(",").map(l=>l.trim()):[]}_isFileTypeAllowed(_,l){for(var g=0,C=l.length;g<C;g++){var y=l[g];if("."===y[0]){if(y=y.replace(".","\\."),_.name.match(new RegExp(y+"$","i")))return!0}else if(y=y.replace(new RegExp("\\*","g"),""),_.type.match(new RegExp(y,"i")))return!0}return!1}_renderWrapper(){var _=(0,te.A)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),l=(0,te.A)("<div>").addClass("dx-fileuploader-container").appendTo(_);this._$content=(0,te.A)("<div>").addClass("dx-fileuploader-content").appendTo(l)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(_=>{_.$file=null,_.$statusMessage=null}),super._clean()}abortUpload(_){if("useForm"!==this.option("uploadMode"))if((0,Be.O9)(_)){var l=this._getFile(_);l&&this._preventFilesUploading([l])}else this._preventFilesUploading(this._files)}upload(_){if("useForm"!==this.option("uploadMode"))if((0,Be.O9)(_)){var l=this._getFile(_);l&&da()&&this._uploadFile(l)}else this._uploadFiles()}_uploadFiles(){da()&&(0,On.__)(this._files,(_,l)=>this._uploadFile(l))}_uploadFile(_){this._uploadStrategy.upload(_)}_updateProgressBar(_,l){_.progressBar&&_.progressBar.option({value:l.loaded,showStatus:!0}),this._progressAction({file:_.value,segmentSize:l.currentSegmentSize,bytesLoaded:l.loaded,bytesTotal:l.total,event:l.event,request:_.request})}_updateTotalProgress(_,l){var g=0;(0,Be.O9)(_)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===_&&0===l?g=this._getProgressValue(1):_&&(g=this._getProgressValue(l/_))),this.option("progress",g),this._setLoadedSize(l)}_getProgressValue(_){return Math.floor(100*_)}_initStatusMessage(_){_.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(_){if(!_.isInitialized){_.cancelButton.option("onClick",()=>{this._preventFilesUploading([_]),this._removeFile(_)});var l=()=>{setTimeout(()=>{_.cancelButton.option({visible:!1})},400)};_.onLoad.add(l),_.onError.add(l)}}_createProgressBar(_){return this._createComponent((0,te.A)("<div>"),Ct,{value:void 0,min:0,max:_,statusFormat:l=>this._getProgressValue(l)+"%",showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,(0,On.__)(this._files,(_,l)=>{this._totalFilesSize+=l.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,On.__)(this._files,(_,l)=>{this._totalLoadedFilesSize+=l.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(_){this._totalLoadedFilesSize=_}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(_,l,g){var C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!l)return!1;var y=g?parseFloat($n.getComputedStyle(l,":before").height):0,Q=g?parseFloat($n.getComputedStyle(l,":after").height):0,le=(0,Kt.A3)(l).left,Fe=(0,Kt.A3)(l).top+y,ye=l.offsetWidth,wt=l.offsetHeight-y-Q,Jt=this._getEventX(_),Dt=this._getEventY(_);return Jt+C>=le&&Jt-C<le+ye&&Dt+C>=Fe&&Dt-C<Fe+wt}_getEventX(_){return(0,ot.kH)(_)?this._getTouchEventX(_):_.clientX+this._getDocumentScrollLeft()}_getEventY(_){return(0,ot.kH)(_)?this._getTouchEventY(_):_.clientY+this._getDocumentScrollTop()}_getTouchEventX(_){var l=null;return _.changedTouches.length>0?l=_.changedTouches:_.targetTouches.length>0&&(l=_.targetTouches),l?l[0].pageX:0}_getTouchEventY(_){var l=null;return _.changedTouches.length>0?l=_.changedTouches:_.targetTouches.length>0&&(l=_.targetTouches),l?l[0].pageY:0}_getDocumentScrollTop(){var _=ia.A.getDocument();return _.documentElement.scrollTop||_.body.scrollTop}_getDocumentScrollLeft(){var _=ia.A.getDocument();return _.documentElement.scrollLeft||_.body.scrollLeft}_updateReadOnlyState(){var _=this.option("readOnly");
1this._selectButton.option("disabled",_),this._files.forEach(l=>{var g;return null===(g=l.cancelButton)||void 0===g?void 0:g.option("disabled",_)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var _,l,g=this.option("hoverStateEnabled");null===(_=this._selectButton)||void 0===_||_.option("hoverStateEnabled",g),null===(l=this._uploadButton)||void 0===l||l.option("hoverStateEnabled",g),this._files.forEach(C=>{var y,Q;null===(y=C.uploadButton)||void 0===y||y.option("hoverStateEnabled",g),null===(Q=C.cancelButton)||void 0===Q||Q.option("hoverStateEnabled",g)})}_optionChanged(_){var{name:l,value:g,previousValue:C}=_;switch(l){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(_);break;case"value":!g.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(_);break;case"name":case"hint":this._initFileInput(),super._optionChanged(_);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),_.value||this.clear();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(_);break;case"disabled":this._updateInputLabelText(),super._optionChanged(_);break;case"selectButtonText":this._selectButton.option("text",g);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",g);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",g);break;case"_buttonStylingMode":this._files.forEach(y=>{var Q,le;null===(Q=y.uploadButton)||void 0===Q||Q.option("stylingMode",g),null===(le=y.cancelButton)||void 0===le||le.option("stylingMode",g)});break;case"dialogTrigger":this._detachSelectFileDialogHandler(C),this._attachSelectFileDialogHandler(g);break;case"dropZone":this._detachDragEventHandlers(C),this._attachDragEventHandlers(g);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),super._optionChanged(_);break;case"allowCanceling":case"uploadMode":this.clear(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(l));break;default:super._optionChanged(_)}}_resetInputValue(_){"useForm"===this.option("uploadMode")&&!_||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}clear(){this.option("value",[])}}class Yt{constructor(_,l){this.file=_,this.chunkSize=l,this.index=0}read(){if(!this.file)return null;var _=this.createBlobResult(this.file,this.index,this.chunkSize);return _.isCompleted&&(this.file=null),this.index++,_}createBlobResult(_,l,g){var C=l*g;return{blob:this.sliceFile(_,C,g),index:l,isCompleted:C+g>=_.size}}sliceFile(_,l,g){return _.slice?_.slice(l,l+g):_.webkitSlice?_.webkitSlice(l,l+g):null}}class Gr{constructor(_){this.fileUploader=_}upload(_){_.isInitialized&&_.isAborted&&this.fileUploader._resetFileState(_),_.isValid()&&!_.uploadStarted&&(this._prepareFileBeforeUpload(_),this._uploadCore(_))}abortUpload(_){if(!(_._isError||_._isLoaded||_.isAborted)&&_.uploadStarted&&(_.isAborted=!0,_.request&&_.request.abort(),this._isCustomCallback("abortUpload"))){var l=this.fileUploader.option("abortUpload"),g=this._createUploadArgument(_),C=null;try{var y=l(_.value,g);C=(0,Wt.Sx)(y)}catch(Q){C=(new Wt.cY).reject(Q).promise()}C.done(()=>_.onAbort.fire()).fail(Q=>this._handleFileError(_,Q))}}_beforeSend(_,l){var g=this._createUploadArgument(l);this.fileUploader._beforeSendAction({request:_,file:l.value,uploadInfo:g}),l.request=_}_createUploadArgument(_){}_uploadCore(_){}_isCustomCallback(_){var l=this.fileUploader.option(_);return l&&(0,Be.Tn)(l)}_handleProgress(_,l){_._isError||(_._isProgressStarted=!0,this._handleProgressCore(_,l))}_handleProgressCore(_,l){}_handleFileError(_,l){_._isError=!0,_.onError.fire(l)}_prepareFileBeforeUpload(_){var l;_.$file&&(null===(l=_.progressBar)||void 0===l||l.dispose(),this.fileUploader._createFileProgressBar(_)),_.isInitialized||(_.onLoadStart.add(this._onUploadStarted.bind(this,_)),_.onLoad.add(this._onLoadedHandler.bind(this,_)),_.onError.add(this._onErrorHandler.bind(this,_)),_.onAbort.add(this._onAbortHandler.bind(this,_)),_.onProgress.add(this._onProgressHandler.bind(this,_)),_.isInitialized=!0)}_shouldHandleError(_,l){return(this._isStatusError(l.status)||!_._isProgressStarted)&&!_.isAborted}_isStatusError(_){return 400<=_&&_<500||500<=_&&_<600}_onUploadStarted(_,l){_.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:_.value,event:l,request:_.request})}_onAbortHandler(_,l){var g={file:_.value,event:l,request:_.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(g),this.fileUploader._setStatusMessage(_,g.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(_,l){var g={file:_.value,event:void 0,request:_.request,error:l,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(g),this.fileUploader._setStatusMessage(_,g.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(_,l){var g={file:_.value,event:l,request:_.request,message:this.fileUploader.option("uploadedMessage")};_._isLoaded=!0,this.fileUploader._uploadedAction(g),this.fileUploader._setStatusMessage(_,g.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(_,l){if(_){var g=this.fileUploader._getTotalFilesSize(),C=this.fileUploader._getTotalLoadedFilesSize(),y=Math.min(l.loaded,_.value.size),Q=y-_.loadedSize;_.loadedSize=y,this.fileUploader._updateTotalProgress(g,C+Q),this.fileUploader._updateProgressBar(_,this._getLoadedData(y,l.total,Q,l))}}_getLoadedData(_,l,g,C){return{loaded:_,total:l,currentSegmentSize:g}}_extendFormData(_){var l=this.fileUploader.option("uploadCustomData");for(var g in l)Object.prototype.hasOwnProperty.call(l,g)&&(0,Be.O9)(l[g])&&_.append(g,l[g])}}class Hr extends Gr{constructor(_){super(_),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(_){var l=_.value,g={name:l.name,loadedBytes:0,type:l.type,blobReader:new Yt(l,this.chunkSize),guid:new Dr.A,fileSize:l.size,count:this._getFileChunksCount(l),customData:{}};_.chunksData=g,this._sendChunk(_,g)}_getFileChunksCount(_){return 0===_.size?1:Math.ceil(_.size/this.chunkSize)}_sendChunk(_,l){var g=l.blobReader.read();l.currentChunk=g,g&&this._sendChunkCore(_,l,g).done(()=>{_.isAborted||(l.loadedBytes+=g.blob.size,_.onProgress.fire({loaded:l.loadedBytes,total:_.value.size}),g.isCompleted&&_.onLoad.fire(),setTimeout(()=>this._sendChunk(_,l)))}).fail(C=>{this._shouldHandleError(_,C)&&this._handleFileError(_,C)})}_sendChunkCore(_,l,g){}_tryRaiseStartLoad(_){_.isStartLoad||(_.isStartLoad=!0,_.onLoadStart.fire())}_getEvent(_){return null}_createUploadArgument(_){return this._createChunksInfo(_.chunksData)}_createChunksInfo(_){return{bytesUploaded:_.loadedBytes,chunkCount:_.count,customData:_.customData,chunkBlob:_.currentChunk.blob,chunkIndex:_.currentChunk.index}}}class rd extends Hr{_sendChunkCore(_,l,g){return Ks.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:C=>this._beforeSend(C,_),upload:{onprogress:C=>this._handleProgress(_,C),onloadstart:()=>this._tryRaiseStartLoad(_),onabort:()=>_.onAbort.fire()},data:this._createFormData({fileName:l.name,blobName:this.fileUploader.option("name"),blob:g.blob,index:g.index,count:l.count,type:l.type,guid:l.guid,size:l.fileSize})})}_createFormData(_){var l=new $n.FormData;
1return l.append(_.blobName,_.blob),l.append("chunkMetadata",JSON.stringify({FileName:_.fileName,Index:_.index,TotalCount:_.count,FileSize:_.size,FileType:_.type,FileGuid:_.guid})),this._extendFormData(l),l}}class od extends Hr{_sendChunkCore(_,l){this._tryRaiseStartLoad(_);var g=this._createChunksInfo(l),C=this.fileUploader.option("uploadChunk");try{var y=C(_.value,g);return(0,Wt.Sx)(y)}catch(Q){return(new Wt.cY).reject(Q).promise()}}_shouldHandleError(_,l){return!0}}class ua extends Gr{_uploadCore(_){_.loadedSize=0,this._uploadFile(_).done(()=>{_.isAborted||_.onLoad.fire()}).fail(l=>{this._shouldHandleError(_,l)&&this._handleFileError(_,l)})}_uploadFile(_){}_handleProgressCore(_,l){_.onProgress.fire(l)}_getLoadedData(_,l,g,C){var y=super._getLoadedData(_,l,g,C);return y.event=C,y}}class pa extends ua{_uploadFile(_){return Ks.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:l=>this._beforeSend(l,_),upload:{onprogress:l=>this._handleProgress(_,l),onloadstart:()=>_.onLoadStart.fire(),onabort:()=>_.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),_.value)})}_createFormData(_,l){var g=new $n.FormData;return g.append(_,l,l.name),this._extendFormData(g),g}}class jr extends ua{_uploadFile(_){_.onLoadStart.fire();var l=this.fileUploader.option("uploadFile");try{var g=l(_.value,C=>{this._handleProgress(_,{loaded:C,total:_.value.size})});return(0,Wt.Sx)(g)}catch(C){return(new Wt.cY).reject(C).promise()}}_shouldHandleError(_,l){return!0}}(0,Ri.A)("dxFileUploader",Xn);const Yn=Xn,ga={provide:Te.kq,useExisting:(0,n.Rfq)(()=>sd),multi:!0};let sd=(()=>{class h extends xe.ic{constructor(l,g,C,y,Q,le,Fe,ye){super(l,g,C,y,Fe,ye),this._watcherHelper=y,this._idh=Q,this.touched=wt=>{},this._createEventEmitters([{subscribe:"beforeSend",emit:"onBeforeSend"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dropZoneEnter",emit:"onDropZoneEnter"},{subscribe:"dropZoneLeave",emit:"onDropZoneLeave"},{subscribe:"filesUploaded",emit:"onFilesUploaded"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"progress",emit:"onProgress"},{subscribe:"uploadAborted",emit:"onUploadAborted"},{subscribe:"uploaded",emit:"onUploaded"},{subscribe:"uploadError",emit:"onUploadError"},{subscribe:"uploadStarted",emit:"onUploadStarted"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"abortUploadChange"},{emit:"acceptChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowCancelingChange"},{emit:"allowedFileExtensionsChange"},{emit:"chunkSizeChange"},{emit:"dialogTriggerChange"},{emit:"disabledChange"},{emit:"dropZoneChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidFileExtensionMessageChange"},{emit:"invalidMaxFileSizeMessageChange"},{emit:"invalidMinFileSizeMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelTextChange"},{emit:"maxFileSizeChange"},{emit:"minFileSizeChange"},{emit:"multipleChange"},{emit:"nameChange"},{emit:"progressChange"},{emit:"readOnlyChange"},{emit:"readyToUploadMessageChange"},{emit:"rtlEnabledChange"},{emit:"selectButtonTextChange"},{emit:"showFileListChange"},{emit:"tabIndexChange"},{emit:"uploadAbortedMessageChange"},{emit:"uploadButtonTextChange"},{emit:"uploadChunkChange"},{emit:"uploadCustomDataChange"},{emit:"uploadedMessageChange"},{emit:"uploadFailedMessageChange"},{emit:"uploadFileChange"},{emit:"uploadHeadersChange"},{emit:"uploadMethodChange"},{emit:"uploadModeChange"},{emit:"uploadUrlChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),le.setHost(this)}get abortUpload(){return this._getOption("abortUpload")}set abortUpload(l){this._setOption("abortUpload",l)}get accept(){return this._getOption("accept")}set accept(l){this._setOption("accept",l)}get accessKey(){return this._getOption("accessKey")}set accessKey(l){this._setOption("accessKey",l)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(l){this._setOption("activeStateEnabled",l)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(l){this._setOption("allowCanceling",l)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(l){this._setOption("allowedFileExtensions",l)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(l){this._setOption("chunkSize",l)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(l){this._setOption("dialogTrigger",l)}get disabled(){return this._getOption("disabled")}set disabled(l){this._setOption("disabled",l)}get dropZone(){return this._getOption("dropZone")}set dropZone(l){this._setOption("dropZone",l)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(l){this._setOption("elementAttr",l)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(l){this._setOption("focusStateEnabled",l)}get height(){return this._getOption("height")}set height(l){this._setOption("height",l)}get hint(){return this._getOption("hint")}set hint(l){this._setOption("hint",l)}
1get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(l){this._setOption("hoverStateEnabled",l)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(l){this._setOption("inputAttr",l)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(l){this._setOption("invalidFileExtensionMessage",l)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(l){this._setOption("invalidMaxFileSizeMessage",l)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(l){this._setOption("invalidMinFileSizeMessage",l)}get isDirty(){return this._getOption("isDirty")}set isDirty(l){this._setOption("isDirty",l)}get isValid(){return this._getOption("isValid")}set isValid(l){this._setOption("isValid",l)}get labelText(){return this._getOption("labelText")}set labelText(l){this._setOption("labelText",l)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(l){this._setOption("maxFileSize",l)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(l){this._setOption("minFileSize",l)}get multiple(){return this._getOption("multiple")}set multiple(l){this._setOption("multiple",l)}get name(){return this._getOption("name")}set name(l){this._setOption("name",l)}get progress(){return this._getOption("progress")}set progress(l){this._setOption("progress",l)}get readOnly(){return this._getOption("readOnly")}set readOnly(l){this._setOption("readOnly",l)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(l){this._setOption("readyToUploadMessage",l)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(l){this._setOption("rtlEnabled",l)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(l){this._setOption("selectButtonText",l)}get showFileList(){return this._getOption("showFileList")}set showFileList(l){this._setOption("showFileList",l)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(l){this._setOption("tabIndex",l)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(l){this._setOption("uploadAbortedMessage",l)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(l){this._setOption("uploadButtonText",l)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(l){this._setOption("uploadChunk",l)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(l){this._setOption("uploadCustomData",l)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(l){this._setOption("uploadedMessage",l)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(l){this._setOption("uploadFailedMessage",l)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(l){this._setOption("uploadFile",l)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(l){this._setOption("uploadHeaders",l)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(l){this._setOption("uploadMethod",l)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(l){this._setOption("uploadMode",l)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(l){this._setOption("uploadUrl",l)}get validationError(){return this._getOption("validationError")}set validationError(l){this._setOption("validationError",l)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(l){this._setOption("validationErrors",l)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(l){this._setOption("validationStatus",l)}get value(){return this._getOption("value")}set value(l){this._setOption("value",l)}get visible(){return this._getOption("visible")}set visible(l){this._setOption("visible",l)}get width(){return this._getOption("width")}set width(l){this._setOption("width",l)}change(l){}_createInstance(l,g){return new Yn(l,g)}writeValue(l){this.eventHelper.lockedValueChangeEvent=!0,this.value=l,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(l){this.disabled=l}registerOnChange(l){this.change=l}registerOnTouched(l){this.touched=l}_createWidget(l){super._createWidget(l),this.instance.on("focusOut",g=>{this.eventHelper.fireNgEvent("onBlur",[g])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(l){super.ngOnChanges(l),this.setupChanges("allowedFileExtensions",l),this.setupChanges("validationErrors",l),this.setupChanges("value",l)}setupChanges(l,g){l in this._optionsToUpdate||this._idh.setup(l,g)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("val
1idationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(l,g){let C=this._idh.setupSingle(l,g),y=null!==this._idh.getChanges(l,g);(C||y)&&super._setOption(l,g)}}return h.\u0275fac=function(l){return new(l||h)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(xe.zF),n.rXU(xe.jS),n.rXU(xe.$M),n.rXU(xe.fH),n.rXU(Ei.pJ),n.rXU(n.Agw))},h.\u0275cmp=n.VBU({type:h,selectors:[["dx-file-uploader"]],hostBindings:function(l,g){1&l&&n.bIt("valueChange",function(y){return g.change(y)})("onBlur",function(y){return g.touched(y)})},inputs:{abortUpload:"abortUpload",accept:"accept",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowCanceling:"allowCanceling",allowedFileExtensions:"allowedFileExtensions",chunkSize:"chunkSize",dialogTrigger:"dialogTrigger",disabled:"disabled",dropZone:"dropZone",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidFileExtensionMessage:"invalidFileExtensionMessage",invalidMaxFileSizeMessage:"invalidMaxFileSizeMessage",invalidMinFileSizeMessage:"invalidMinFileSizeMessage",isDirty:"isDirty",isValid:"isValid",labelText:"labelText",maxFileSize:"maxFileSize",minFileSize:"minFileSize",multiple:"multiple",name:"name",progress:"progress",readOnly:"readOnly",readyToUploadMessage:"readyToUploadMessage",rtlEnabled:"rtlEnabled",selectButtonText:"selectButtonText",showFileList:"showFileList",tabIndex:"tabIndex",uploadAbortedMessage:"uploadAbortedMessage",uploadButtonText:"uploadButtonText",uploadChunk:"uploadChunk",uploadCustomData:"uploadCustomData",uploadedMessage:"uploadedMessage",uploadFailedMessage:"uploadFailedMessage",uploadFile:"uploadFile",uploadHeaders:"uploadHeaders",uploadMethod:"uploadMethod",uploadMode:"uploadMode",uploadUrl:"uploadUrl",validationError:"validationError",validationErrors:"validationErrors",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onBeforeSend:"onBeforeSend",onContentReady:"onContentReady",onDisposing:"onDisposing",onDropZoneEnter:"onDropZoneEnter",onDropZoneLeave:"onDropZoneLeave",onFilesUploaded:"onFilesUploaded",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onProgress:"onProgress",onUploadAborted:"onUploadAborted",onUploaded:"onUploaded",onUploadError:"onUploadError",onUploadStarted:"onUploadStarted",onValueChanged:"onValueChanged",abortUploadChange:"abortUploadChange",acceptChange:"acceptChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowCancelingChange:"allowCancelingChange",allowedFileExtensionsChange:"allowedFileExtensionsChange",chunkSizeChange:"chunkSizeChange",dialogTriggerChange:"dialogTriggerChange",disabledChange:"disabledChange",dropZoneChange:"dropZoneChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidFileExtensionMessageChange:"invalidFileExtensionMessageChange",invalidMaxFileSizeMessageChange:"invalidMaxFileSizeMessageChange",invalidMinFileSizeMessageChange:"invalidMinFileSizeMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelTextChange:"labelTextChange",maxFileSizeChange:"maxFileSizeChange",minFileSizeChange:"minFileSizeChange",multipleChange:"multipleChange",nameChange:"nameChange",progressChange:"progressChange",readOnlyChange:"readOnlyChange",readyToUploadMessageChange:"readyToUploadMessageChange",rtlEnabledChange:"rtlEnabledChange",selectButtonTextChange:"selectButtonTextChange",showFileListChange:"showFileListChange",tabIndexChange:"tabIndexChange",uploadAbortedMessageChange:"uploadAbortedMessageChange",uploadButtonTextChange:"uploadButtonTextChange",uploadChunkChange:"uploadChunkChange",uploadCustomDataChange:"uploadCustomDataChange",uploadedMessageChange:"uploadedMessageChange",uploadFailedMessageChange:"uploadFailedMessageChange",uploadFileChange:"uploadFileChange",uploadHeadersChange:"uploadHeadersChange",uploadMethodChange:"uploadMethodChange",uploadModeChange:"uploadModeChange",uploadUrlChange:"uploadUrlChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[n.Jv_([xe.zF,xe.jS,ga,xe.fH,xe.$M]),n.Vt3,n.OA$],decls:0,vars:0,template:function(l,g){},encapsulation:2}),h})(),ha=(()=>{class h{}
1return h.\u0275fac=function(l){return new(l||h)},h.\u0275mod=n.$C({type:h}),h.\u0275inj=n.G2t({imports:[[xe.p_,xe.xZ],xe.xZ]}),h})();var Ur=P(9101),_a=P(9750),va=P(3609),ad=P(7917),Ca=P(2898),ma=P(2600),fa=P(3281),ld=P(560),cd=P(5662),$r=P(1596);let Oa=(()=>{class h{static#e=this.\u0275fac=function(g){return new(g||h)};static#t=this.\u0275mod=n.$C({type:h});static#n=this.\u0275inj=n.G2t({imports:[M.MD,wc,Us.G,Sc.L,yc.F,xt.A,Ie.S,$s.p,Ec.X,yi.d,Bc,ha,Ur.b,_a.N,va.e,ad.X,Ca.L,ma.t,m.W,fa.Z,xe.xZ,it.h.forChild(),ld._,k.Xx,cd.p,$r.L]})}return h})()},5832:(Ne,ce,P)=>{P.d(ce,{z:()=>I});var M=P(4438),V=P(1291);let I=(()=>{class x{constructor(w){this.client=w}getAllShops(){return this.client.getShopsByApiVersion(void 0)}getAllCustomers(){return this.client.getCustomersByApiVersion(void 0)}getShopByShopId(w){return this.client.getShopByShopIdAndApiVersion(w,void 0)}approveShopByShopId(w,F){return this.client.postShopByShopIdAndIsApproveAndApiVersion(w,F,void 0)}deleteCommentByCommentId(w){return this.client.deleteByCommentIdAndApiVersion(w,void 0)}deleteImageByMediaId(w){return this.client.deleteByMediaIdAndApiVersion(w,void 0)}getServiceRequests(){return this.client.getServiceRequestsByApiVersion(void 0)}closeServiceRequest(w,F){return this.client.postServiceRequestsCloseByShopServiceJobIdAndApiVersionAndBody(w,void 0,F)}static#e=this.\u0275fac=function(F){return new(F||x)(M.KVO(V.Kj))};static#t=this.\u0275prov=M.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},2809:(Ne,ce,P)=>{P.d(ce,{Q:()=>x});var M=P(1413),V=P(4438),I=P(1291);let x=(()=>{class A{constructor(F){this.client=F,this.isEditBikePopUpShow=new M.B}getBikesByAuth0Id(){return this.client.getByApiVersion(void 0)}getBikeId(F){return this.client.getByIdAndApiVersion(F,void 0)}createBike(F){return this.client.postByApiVersionAndBody(void 0,F)}updateBikeById(F,m){return this.client.patchByIdAndApiVersionAndBody(F,void 0,m)}updateBikeImage(F,m){return this.client.postBikeImageByIdAndApiVersionAndBikeImage(F,void 0,m)}deleteBikeImage(F){return this.client.deleteDeleteImageByIdAndApiVersion(F,void 0)}deleteBikeById(F){return this.client.deleteDeleteByIdAndApiVersion(F,void 0)}static#e=this.\u0275fac=function(m){return new(m||A)(V.KVO(I.CR))};static#t=this.\u0275prov=V.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},6967:(Ne,ce,P)=>{P.d(ce,{s:()=>I});var M=P(1291),V=P(4438);let I=(()=>{class x{constructor(w){this.client=w}getAllCustomerServiceRequestByUserId(){return this.client.getByApiVersion(void 0)}getCustomerServiceRequestById(w){return this.client.getByIdAndApiVersion(w,void 0)}createCustomerServiceRequest(w){return this.client.postByApiVersionAndBody(void 0,w)}addAFeedBack(w,F){return this.client.postCreateFeedbackByIdAndApiVersionAndBody(w,void 0,F)}acceptShopServiceRequestReply(w,F){return this.client.postAcceptByShopServiceRequestReplyIdAndPaymentTokenAndApiVersion(w,F)}createPaymentLink(w){return this.client.postCreatePaymentLinkByIdAndApiVersion(w,void 0)}completeServiceRequest(w){return this.client.postCompleteByIdAndApiVersion(w,void 0)}acceptNewPrice(w){return this.client.postAcceptByBikeAssessmentReportIdAndApiVersion(w,void 0)}askForCall(w){return this.client.postAskForCallByBikeAssessmentReportIdAndApiVersion(w,void 0)}rejectNewPrice(w){return this.client.postRejectByBikeAssessmentReportIdAndApiVersion(w,void 0)}getAllCustomerServiceRequestByStatus(w){return this.client.putByStatusByApiVersionAndBody(void 0,w)}getProgressPosition(w,F){switch(w){case M.tr.WaitingForOffers:return 0;case M.tr.OffersReceived:return F;case M.tr.WaitingForDelivery:return 2*F;case M.tr.AssessingBike:return 3*F;case M.tr.AssessingCompleted:return 4*F;case M.tr.InProgress:return 5*F;case M.tr.WaitingForPayment:return 6*F;case M.tr.WaitingForPickUp:return 7*F;case M.tr.Finished:case M.tr.Closed:case M.tr.NoOffers:case M.tr.ClosedByCyclix:return 9*F;default:return 0}}getNextStatus(w){switch(w){case M.tr.WaitingForOffers:return M.tr.OffersReceived;case M.tr.OffersReceived:return M.tr.WaitingForDelivery;case M.tr.WaitingForDelivery:return M.tr.AssessingBike;case M.tr.AssessingBike:return M.tr.AssessingCompleted;case M.tr.AssessingCompleted:return M.tr.InProgress;case M.tr.InProgress:return M.tr.WaitingForPayment;case M.tr.WaitingForPayment:return M.tr.WaitingForPickUp;case M.tr.WaitingForPickUp:return M.tr.Finished;default:return M.tr.Undefined}}static#e=this.\u0275fac=function(F){return new(F||x)(V.KVO(M.nF))};static#t=this.\u0275prov=V.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},8752:(Ne,ce,P)=>
1{P.d(ce,{b:()=>x});var M=P(1413),V=P(4438),I=P(1291);let x=(()=>{class A{constructor(F){this.client=F,this.$showChat=new M.B,this.messages=[]}sentMessage(F,m){return this.client.postByCustomerServiceRequestIdAndApiVersionAndBody(F,void 0,m)}checkMessages(F){return this.client.postViewMessagesByCustomerServiceRequestIdAndApiVersion(F,void 0)}static#e=this.\u0275fac=function(m){return new(m||A)(V.KVO(I.AW))};static#t=this.\u0275prov=V.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},4731:(Ne,ce,P)=>{P.d(ce,{Y:()=>A});var M=P(4438),V=P(1291),I=P(7660),x=P(3955);let A=(()=>{class w{constructor(){this.bike=new V.$V,this.serviceNumber=0,this.qrCode="",this.close=new M.bkB}getPicture(m){return m?m?.startsWith("https:")||m?.startsWith("data:image")?m:"data:image/png;base64,"+m:""}static#e=this.\u0275fac=function(n){return new(n||w)};static#t=this.\u0275cmp=M.VBU({type:w,selectors:[["app-customer-qr-code"]],inputs:{bike:"bike",serviceNumber:"serviceNumber",qrCode:"qrCode"},outputs:{close:"close"},decls:25,vars:12,consts:[[1,"qr-code-container"],[1,"back",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","8","viewBox","0 0 17 8","fill","none",1,"phone"],["d","M0.646446 3.64645C0.451183 3.84171 0.451183 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.73079 7.34027 4.73079 7.02369 4.53553 6.82843L1.70711 4L4.53553 1.17157C4.73079 0.976311 4.73079 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM17 3.5L1 3.5V4.5L17 4.5V3.5Z","fill","#989898"],[1,"qr-code-container-wrapper",3,"clickOutside"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none",1,"close",3,"click"],["d","M4.58964 5.88647L0.84377 2.1406L2.19866 0.785717L5.94453 4.53158L9.73024 0.745867L11.2445 2.26015L7.45881 6.04587L11.1051 9.69211L9.75017 11.047L6.10392 7.40076L2.25843 11.2462L0.744146 9.73196L4.58964 5.88647Z","fill","#989898"],[1,"bike-picture"],[1,"image",3,"src"],[1,"bike-information"],[1,"model"],[1,"brand"],[1,"service-number"],[1,"qr-code"],[1,"qr-code-text"],[1,"backdrop",3,"click"]],template:function(n,R){1&n&&(M.j41(0,"div",0)(1,"div",1),M.bIt("click",function(){return R.close.emit()}),M.qSk(),M.j41(2,"svg",2),M.nrm(3,"path",3),M.k0s(),M.joV(),M.j41(4,"p"),M.EFF(5),M.nI1(6,"translate"),M.k0s()(),M.j41(7,"div",4),M.bIt("clickOutside",function(){return R.close.emit()}),M.qSk(),M.j41(8,"svg",5),M.bIt("click",function(){return R.close.emit()}),M.nrm(9,"path",6),M.k0s(),M.joV(),M.j41(10,"div",7),M.nrm(11,"img",8),M.k0s(),M.j41(12,"div",9)(13,"p",10),M.EFF(14),M.k0s(),M.j41(15,"p",11),M.EFF(16),M.k0s()(),M.j41(17,"p",12),M.EFF(18),M.k0s(),M.j41(19,"div",13),M.nrm(20,"img",8),M.k0s(),M.j41(21,"p",14),M.EFF(22),M.nI1(23,"translate"),M.k0s()()(),M.j41(24,"div",15),M.bIt("click",function(){return R.close.emit()}),M.k0s()),2&n&&(M.R7$(5),M.JRh(M.bMT(6,8,"i18n.app.pages.selection.back")),M.R7$(6),M.FS9("src",R.getPicture(null==R.bike?null:R.bike.bikeAvatar),M.B4B),M.R7$(3),M.JRh(null==R.bike?null:R.bike.model),M.R7$(2),M.JRh(null==R.bike||null==R.bike.brand?null:R.bike.brand.name),M.R7$(2),M.SpI("\u2116",R.serviceNumber,""),M.R7$(2),M.Mz_("src","data:image/png;base64,",R.qrCode,"",M.B4B),M.R7$(2),M.JRh(M.bMT(23,10,"i18n.app.pages.customer.service-request.show-qr-text")))},dependencies:[I.z,x.D9],styles:[".qr-code-container[_ngcontent-%COMP%]{top:100px;left:0;right:0;margin:0 auto;position:absolute;display:flex;justify-content:center;z-index:20}.qr-code-container[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]{display:none;color:#989898;column-gap:16px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]{width:500px;background:var(--color-white);border-radius:10px;box-shadow:3px 3px 16.9px #a1a1a140;display:flex;flex-direction:column;align-items:center;position:relative;padding:35px 0}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{position:absolute;top:27px;right:27px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .bike-picture[_ngcontent-%COMP%]{width:100px;height:100px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .bike-picture[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{object-fit:contain;width:100%;height:100%}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{text-align:center;font-size:16px;font-weight:700}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{text-align:center;margin-top:5px;color:#989898}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .service-number[_ngcontent-%COMP%]{margin-top:5px;font-weight:500;color:var(--color-theme)}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .qr-code[_ngcontent-%COMP%]{margin-top:30px;width:263px;height:263px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .qr-code[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .qr-code-text[_ngcontent-%COMP%]{margin-top:24px;align-items:center;color:#989898;font-size:15px}.backdrop[_ngcontent-%COMP%]{width:100%;opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:19}@media (max-width: 580px){.qr-code-container[_ngcontent-%COMP%]{width:100%;height:100%;top:58px;background:#f6f4f3;flex-direction:column;justify-content:unset;padding:0 24px}.qr-code-container[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]{align-items:center;display:flex;margin-top:32px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]{width:100%;margin-top:33px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .bike-picture[_ngcontent-%COMP%]{width:69px;height:69px;margin-top:0;position:absolute;top:-34px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{margin-top:10px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .qr-code[_ngcontent-%COMP%]{width:231px;height:231px}.qr-code-container[_ngcontent-%COMP%]   .qr-code-container-wrapper[_ngcontent-%COMP%]   .qr-code-text[_ngcontent-%COMP%]{font-size:13px}.backdrop[_ngcontent-%COMP%]{display:none}}"]})}return w})()},6345:(Ne,ce,P)=>
1{P.d(ce,{o:()=>A});var M=P(4438),V=P(177);function I(w,F){if(1&w){const m=M.RV6();M.j41(0,"div",2),M.qSk(),M.j41(1,"svg",3),M.bIt("click",function(){M.eBV(m);const R=M.XpG();return M.Njj(R.closeImage())}),M.nrm(2,"path",4),M.k0s(),M.joV(),M.nrm(3,"img",5),M.k0s()}if(2&w){const m=M.XpG();M.R7$(3),M.FS9("src",m.image,M.B4B)}}function x(w,F){if(1&w){const m=M.RV6();M.j41(0,"div",6),M.bIt("click",function(){M.eBV(m);const R=M.XpG();return M.Njj(R.closeImage())}),M.k0s()}}let A=(()=>{class w{constructor(){this.imageClose=new M.bkB}closeImage(){this.image=void 0,this.imageClose.emit()}static#e=this.\u0275fac=function(n){return new(n||w)};static#t=this.\u0275cmp=M.VBU({type:w,selectors:[["app-full-image"]],inputs:{image:"image"},outputs:{imageClose:"imageClose"},decls:2,vars:2,consts:[["class","image-container",4,"ngIf"],["class","backdrop",3,"click",4,"ngIf"],[1,"image-container"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 18 18","fill","none",1,"close",3,"click"],["d","M6.99837 9.0381L1.05045 3.09018L3.18274 0.957884L9.13066 6.90581L15.0885 0.947923L17.493 3.3524L11.5351 9.31029L17.3249 15.1L15.1926 17.2323L9.40285 11.4426L3.35089 17.4945L0.946413 15.0901L6.99837 9.0381Z","fill","#D80027"],["alt","",1,"image",3,"src"],[1,"backdrop",3,"click"]],template:function(n,R){1&n&&M.DNE(0,I,4,1,"div",0)(1,x,1,0,"div",1),2&n&&(M.Y8G("ngIf",R.image),M.R7$(),M.Y8G("ngIf",R.image))},dependencies:[V.bT],styles:[".image-container[_ngcontent-%COMP%]{position:fixed;z-index:31;max-width:90%;max-height:90%;height:-webkit-fill-available;inset:0;width:-moz-fit-content;width:fit-content;margin:auto}.image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{border-radius:10px;width:100%;height:-moz-fit-content;height:fit-content;max-height:90%;object-fit:contain}.image-container[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{position:absolute;top:30px;right:30px}.backdrop[_ngcontent-%COMP%]{opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:30}"]})}return w})()},584:(Ne,ce,P)=>{P.d(ce,{b:()=>Cr});var M=P(1291),V=P(8359),I=P(980),x=P(1639),H=P(4438),An=P(8752),_i=P(5812),lr=P(3657),cr=P(3955),Tn=P(467),kn=P(1413),dr=P(9308),ur=P(2016),pr=P(2757),Tt=P(5154),vi=P(289);let gr=(()=>{class Ce{constructor(X,de){this.appConfig=X,this.authService=de,this.sharedObj=new kn.B,this.customerServiceRequestId="",this.currencies=[],this.start()}confirmMessagedViewed(X){this.connection.invoke(Tt.QB.ReceiveMessageEventOnServer,X)}mapReceivedMessages(X){this.sharedObj.next(X)}retrieveMappedObjectForMessages(X){return this.customerServiceRequestId=X,this.sharedObj.asObservable()}setConnection(){var de,X=this;this.connection=(new dr.$).withUrl(`${this.appConfig.Config.API_BASE_URL}/hubs/messageHub`,{accessTokenFactory:(de=(0,Tn.A)(function*(){return X.authService.getAccessTokenForHub()}),function(){return de.apply(this,arguments)}),skipNegotiation:!0,transport:ur.w.WebSockets}).configureLogging(pr.$.None).build(),this.connection.on(Tt.QB.ReceiveEventMessageOnClient,de=>{this.mapReceivedMessages(de)}),this.connection.onclose(()=>{setTimeout(()=>{this.start()},5e3)})}start(){var X=this;return(0,Tn.A)(function*(){X.setConnection();try{yield X.connection.start(),yield X.connection.invoke(Tt.QB.AddToGroupAsync,X.customerServiceRequestId)}catch(de){console.log(de),setTimeout(()=>{X.start()},5e3)}})()}static#e=this.\u0275fac=function(de){return new(de||Ce)(H.KVO(vi.o),H.KVO(_i.u))};static#t=this.\u0275prov=H.jDH({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();var Fn=P(177),pn=P(9417),Ht=P(7733);const Dn=["messageContainer"];function hr(Ce,ut){if(1&Ce&&(H.j41(0,"div",22)(1,"div",23)(2,"p",24),H.EFF(3),H.k0s(),H.j41(4,"p",25),H.EFF(5),H.nI1(6,"customTimeForMessenger"),H.k0s()()()),2&Ce){const X=ut.$implicit,de=H.XpG(3);H.Y8G("ngClass",X.ownerId===de.authId?"own-message":"not-own-message"),H.R7$(3),H.JRh(X.messageText),H.R7$(2),H.JRh(H.bMT(6,3,X.createdTime))}}function _r(Ce,ut){if(1&Ce&&(H.j41(0,"div")(1,"div",19)(2,"p",20),H.EFF(3),H.k0s(),H.DNE(4,hr,7,5,"div",21),H.k0s()()),2&Ce){const X=ut.$implicit,de=H.XpG(2);H.R7$(3),H.JRh(X),H.R7$(),H.Y8G("ngForOf",de.groupedMessages[X])}}function vr(Ce,ut){if(1&Ce){const X=H.RV6();H.j41(0,"div",3)(1,"div",4),H.qSk(),H.j41(2,"svg",5),H.bIt("click",function(){H.eBV(X);const ue=H.XpG();return H.Njj(ue.showChat=!1)}),H.nrm(3,"path",6),H.k0s(),H.joV(),H.j41(4,"div",7),H.nrm(5,"img",8),H.k0s(),H.j41(6,"p",9),H.EFF(7),H.k0s(),H.qSk(),H.j41(8,"svg",10),H.bIt("click",function(){H.eBV(X);const ue=H.XpG();return H.Njj(ue.showChat=!1)}),H.nrm(9,"path",11),H.k0s()(),H.joV(),H.j41(10,"div",12,0),H.DNE(12,_r,5,2,"div",13),H.k0s(),H.j41(13,"div",14)(14,"input",15),H.mxI("ngModelChange",function(ue){H.eBV(X);const Ve=H.XpG();return H.DH7(Ve.messageInputModel.messageText,ue)||(Ve.messageInputModel.messageText=ue),H.Njj(ue)}),H.bIt("keydown.enter",function(){H.eBV(X);const ue=H.XpG();return H.Njj(ue.defaultMessage())}),H.k0s(),H.qSk(),H.j41(15,"svg",16),H.bIt("click",function(){H.eBV(X);const ue=H.XpG();return H.Njj(ue.defaultMessage())}),H.nrm(16,"path",17)(17,"path",18),H.k0s()()()}if(2&Ce){const X=H.XpG();
1H.R7$(5),H.FS9("src",X.getPicture(X.picture),H.B4B),H.R7$(2),H.JRh(X.nickname),H.R7$(5),H.Y8G("ngForOf",X.Object.keys(X.groupedMessages)),H.R7$(2),H.R50("ngModel",X.messageInputModel.messageText)}}function Ci(Ce,ut){if(1&Ce){const X=H.RV6();H.j41(0,"div",26),H.bIt("click",function(){H.eBV(X);const ue=H.XpG();return H.Njj(ue.showChat=!1)}),H.k0s()}}let Cr=(()=>{class Ce{constructor(X,de,ue,Ve,jt){this.messageService=X,this.authService=de,this.loaderService=ue,this.translateService=Ve,this.messageSignalRService=jt,this.nickname="",this.authId="",this.messageInputModel=new M.B2,this.subscriptions=new V.yU,this.groupedMessages={},this.showChat=!1,this.Object=Object,this.ShopServiceRequestStatusType=M.XS,this.finalize=I.j,this.C=67,this.UserRoleEnum=M.kX,this.authId=this.authService.getUserAuthId(),this.estimatedCost=this.shopServiceRequest?.spendingLimit}ngOnInit(){this.subscriptions.add(this.messageSignalRService.retrieveMappedObjectForMessages(this.customerServiceRequestId).subscribe(X=>{this.addToInbox(X)})),this.subscriptions.add(this.messageService.$showChat.subscribe(X=>{this.showChat=X,setTimeout(()=>{this.scrollToBottom()},10)})),this.groupedMessages=this.groupMessagesByDayAndTimeAndOwner(this.messages)}ngAfterViewInit(){this.scrollToBottom()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.loaderService.hide=!1}scrollToBottom(){this.messageContainer&&(this.messageContainer.nativeElement.scrollTop=this.messageContainer.nativeElement.scrollHeight)}getPicture(X){return X?X?.startsWith("https:")?X:"data:image/png;base64,"+X:""}groupMessagesByDayAndTimeAndOwner(X){const de={};return X?.forEach(ue=>{const Ve=ue.createdTime;if(Ve){const jt=new Date,Vn=Ve.getDate()===jt.getDate()&&Ve.getMonth()===jt.getMonth()&&Ve.getFullYear()===jt.getFullYear(),mr=`i18n.app.pages.customer.service-request.rating.months.${Ve.toLocaleString("en-US",{month:"long"}).toLowerCase()}`,Ge=this.translateService.instant(mr),Ln=Vn?this.translateService.instant("i18n.app.pages.customer.service-request.rating.today"):`${Ve.toLocaleDateString("en-US",{day:"numeric"})} ${Ge}`;de[Ln]||(de[Ln]=[]),de[Ln].push(ue)}}),de}addToInbox(X){X.ownerId!=this.authId&&(this.showChat&&(this.messageSignalRService.confirmMessagedViewed(X.id),X.viewed=!0),X.createdTime&&(X.createdTime=new Date(X.createdTime.toString())),this.messages?.push(X),this.groupedMessages=this.groupMessagesByDayAndTimeAndOwner(this.messages),setTimeout(()=>{this.scrollToBottom()},10),this.messageService.messages=this.messages)}defaultMessage(){if(this.loaderService.hide=!0,this.messageInputModel.messageText){const X=new M.Tz({messageText:this.messageInputModel.messageText,createdTime:new Date,ownerId:this.authId,id:x.q.create().toString()});this.sendDefaultMessage(X),this.messages?.push(X),this.messageInputModel=new M.B2,this.groupedMessages=this.groupMessagesByDayAndTimeAndOwner(this.messages),setTimeout(()=>{this.scrollToBottom()},100)}}sendDefaultMessage(X){const de=new M.B2({messageText:X.messageText});this.messageService.sentMessage(this.customerServiceRequestId,de).pipe((0,I.j)(()=>!1)).subscribe(()=>{this.scrollToBottom()},()=>{this.messages?.filter(ue=>{ue.id===X.id&&(ue.sendingError=!0)})})}static#e=this.\u0275fac=function(de){return new(de||Ce)(H.rXU(An.b),H.rXU(_i.u),H.rXU(lr.Z),H.rXU(cr.c$),H.rXU(gr))};static#t=this.\u0275cmp=H.VBU({type:Ce,selectors:[["app-messenger"]],viewQuery:function(de,ue){if(1&de&&H.GBs(Dn,5),2&de){let Ve;H.mGM(Ve=H.lsd())&&(ue.messageContainer=Ve.first)}},inputs:{messages:"messages",customerServiceRequestId:"customerServiceRequestId",userRole:"userRole",shopServiceRequest:"shopServiceRequest",customerServiceRequest:"customerServiceRequest",nickname:"nickname",picture:"picture",currency:"currency"},decls:2,vars:2,consts:[["messageContainer",""],["class","messages-container",4,"ngIf"],["class","backdrop",3,"click",4,"ngIf"],[1,"messages-container"],[1,"header"],["xmlns","http://www.w3.org/2000/svg","width","17","height","8","viewBox","0 0 17 8","fill","none",1,"back-button",3,"click"],["d","M0.646446 3.64645C0.451183 3.84171 0.451183 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.73079 7.34027 4.73079 7.02369 4.53553 6.82843L1.70711 4L4.535
153 1.17157C4.73079 0.976311 4.73079 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM17 3.5L1 3.5V4.5L17 4.5V3.5Z","fill","#989898"],[1,"picture-container"],["alt","Chat avatar img",1,"picture",3,"src"],[1,"title"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none",1,"icon",3,"click"],["d","M4.58964 5.88647L0.84377 2.1406L2.19866 0.785717L5.94453 4.53158L9.73024 0.745867L11.2445 2.26015L7.45881 6.04587L11.1051 9.69211L9.75017 11.047L6.10392 7.40076L2.25843 11.2462L0.744146 9.73196L4.58964 5.88647Z","fill","#989898"],[1,"messages"],[4,"ngFor","ngForOf"],[1,"message-input-container"],["placeholder","Type a message...","type","text",1,"message-input",3,"ngModelChange","keydown.enter","ngModel"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 18 18","fill","none",1,"send-icon","cursor_pointer",3,"click"],["d","M6.5625 13.2102V16.689C6.5625 16.932 6.71851 17.1473 6.94954 17.2238C7.00729 17.2426 7.06655 17.2516 7.12505 17.2516C7.30057 17.2516 7.47008 17.1691 7.57809 17.0221L9.61303 14.2528L6.5625 13.2102Z","fill","#FF5E3A"],["d","M17.7654 0.104326C17.5929 -0.0179352 17.3664 -0.0344367 17.1789 0.0638223L0.302311 8.87713C0.102793 8.98139 -0.014968 9.19441 0.0015335 9.41868C0.0187851 9.6437 0.168049 9.83572 0.380318 9.90847L5.072 11.5121L15.0637 2.96884L7.33196 12.2839L15.1949 14.9714C15.2534 14.9909 15.3149 15.0014 15.3764 15.0014C15.4785 15.0014 15.5797 14.9737 15.669 14.9197C15.8115 14.8327 15.9082 14.6864 15.933 14.5221L17.9957 0.645876C18.0264 0.435856 17.9379 0.227337 17.7654 0.104326Z","fill","#FF5E3A"],[1,"day-group"],[1,"day"],["class","message-container",3,"ngClass",4,"ngFor","ngForOf"],[1,"message-container",3,"ngClass"],[1,"message"],[1,"text"],[1,"time"],[1,"backdrop",3,"click"]],template:function(de,ue){1&de&&H.DNE(0,vr,18,4,"div",1)(1,Ci,1,0,"div",2),2&de&&(H.Y8G("ngIf",ue.showChat),H.R7$(),H.Y8G("ngIf",ue.showChat))},dependencies:[Fn.YU,Fn.Sq,Fn.bT,pn.me,pn.BC,pn.vS,Ht.b],styles:[".messages-container[_ngcontent-%COMP%]{width:418px;max-height:600px;height:80svh;z-index:21;border-radius:10px;background:#fff;box-shadow:3px 3px 16.9px #a1a1a140;position:fixed;right:15px;bottom:30px;display:flex;flex-direction:column;justify-content:space-between}.messages-container[_ngcontent-%COMP%]   .backdrop[_ngcontent-%COMP%]{border-radius:10px;opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:19}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #CED3DB;position:relative;font-size:16px;column-gap:16px}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{display:none}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]{width:40px;height:40px}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{border-radius:20px;width:100%;height:100%;object-fit:cover}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;right:21px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]{overflow:scroll;border-bottom:1px solid #CED3DB;padding:0 22px 15px;display:flex;height:100%;flex-direction:column;-ms-overflow-style:none;scrollbar-width:none}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:11px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#989898;font-size:10px;margin:18px 0}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]{display:flex;width:-moz-fit-content;width:fit-content;column-gap:7px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{font-family:Inter,CeraPro;border-radius:20px;height:-moz-fit-content;height:fit-content;padding:11px 15px;column-gap:10px;display:flex;max-width:266px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{overflow-wrap:anywhere}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{margin-top:3px;color:#989898;font-size:10px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]{width:241px;padding-bottom:15px;border-radius:20px;background:#f5f5f5}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;
1height:33px;border-radius:20px 20px 0 0;background:#ebebeb;padding:0 15px;font-size:12px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:7px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{color:#989898;font-size:10px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]{margin-top:16px;padding:0 15px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .estimated-cost[_ngcontent-%COMP%]{font-weight:500}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{margin-top:14px;display:flex;justify-content:center;column-gap:8px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%]{min-width:-moz-fit-content;min-width:fit-content;display:flex;padding:0 15px;height:30px;justify-content:center;align-items:center;border-radius:24px;background:#5fba34;color:var(--color-white);font-size:13px;font-weight:500}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .call[_ngcontent-%COMP%]{background:#dc5a54}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .accepted[_ngcontent-%COMP%]{font-style:italic;margin-top:10px;color:#5fba34;font-size:12px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .service-price-message[_ngcontent-%COMP%]   .service-price-body[_ngcontent-%COMP%]   .customer-call[_ngcontent-%COMP%]{font-style:italic;margin-top:10px;color:#dc5a54;font-size:12px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .own-message[_ngcontent-%COMP%]{align-self:flex-end}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .own-message[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{background:#ff5e3a;color:var(--color-white)}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .own-message[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{color:#ffd6cd}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .not-own-message[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{background:#f5f5f5}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .not-own-message[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{color:#989898}.messages-container[_ngcontent-%COMP%]   .message-input-container[_ngcontent-%COMP%]{padding:0 22px;min-height:55px;height:55px;display:flex;align-items:center;justify-content:space-between}.messages-container[_ngcontent-%COMP%]   .message-input-container[_ngcontent-%COMP%]   .message-input[_ngcontent-%COMP%]{width:100%;border:none;height:100%;font-size:16px}.messages-container[_ngcontent-%COMP%]   .message-input-container[_ngcontent-%COMP%]   .message-input[_ngcontent-%COMP%]:focus{outline:none}.messages-container[_ngcontent-%COMP%]   .message-input-container[_ngcontent-%COMP%]   .message-input[_ngcontent-%COMP%]::placeholder{color:#989898;font-size:14px}.messages-container[_ngcontent-%COMP%]   .message-input-container[_ngcontent-%COMP%]   .send-icon[_ngcontent-%COMP%]{min-width:18px;margin-left:24px}@media (max-width: 580px){.messages-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:58px;left:0;right:0;height:100svh;max-height:calc(100svh - 58px)}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{display:flex;position:absolute;
1left:24px;top:0;bottom:0;margin:auto 0}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:none}.messages-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]{position:absolute;right:24px;width:34px;height:34px;top:0;bottom:0;margin:auto 0}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]{row-gap:5px}.messages-container[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   .day-group[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{padding:12px}}.backdrop[_ngcontent-%COMP%]{opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:20}"]})}return Ce})()},5511:(Ne,ce,P)=>{P.d(ce,{A:()=>ie});var M=P(4438),V=P(1291),I=P(5812),x=P(177),A=P(7660),w=P(3955);const F=()=>[];function m(Z,N){1&Z&&M.nrm(0,"div",2)}function n(Z,N){1&Z&&(M.j41(0,"p",16),M.EFF(1),M.nI1(2,"translate"),M.k0s()),2&Z&&(M.R7$(),M.JRh(M.bMT(2,1,"i18n.app.pages.customer.service-request.services.sub-title")))}function R(Z,N){1&Z&&(M.j41(0,"p",16),M.EFF(1),M.nI1(2,"translate"),M.k0s()),2&Z&&(M.R7$(),M.JRh(M.bMT(2,1,"i18n.app.pages.customer.service-request.services.sub-title.shop")))}function D(Z,N){if(1&Z&&(M.j41(0,"div",17),M.EFF(1),M.nI1(2,"translate"),M.k0s()),2&Z){const $=N.index;M.R7$(),M.JRh(M.bMT(2,1,"i18n.app.pages.customer.service-request.services."+$))}}function j(Z,N){1&Z&&(M.qSk(),M.j41(0,"svg",19),M.nrm(1,"path",20),M.k0s())}function Me(Z,N){if(1&Z&&(M.j41(0,"div",17),M.DNE(1,j,2,0,"svg",18),M.k0s()),2&Z){const $=N.index;M.R7$(),M.Y8G("ngIf",$<=6)}}function Ae(Z,N){1&Z&&(M.qSk(),M.j41(0,"svg",19),M.nrm(1,"path",20),M.k0s())}function et(Z,N){if(1&Z&&(M.j41(0,"div",17),M.DNE(1,Ae,2,0,"svg",18),M.k0s()),2&Z){const $=N.index;M.R7$(),M.Y8G("ngIf",$<=17)}}function K(Z,N){1&Z&&(M.qSk(),M.j41(0,"svg",19),M.nrm(1,"path",20),M.k0s())}function ne(Z,N){if(1&Z&&(M.j41(0,"div",17),M.DNE(1,K,2,0,"svg",18),M.k0s()),2&Z){const $=N.index;M.R7$(),M.Y8G("ngIf",$<=24)}}function qe(Z,N){if(1&Z){const $=M.RV6();M.j41(0,"div",3),M.bIt("clickOutside",function(){M.eBV($);const pe=M.XpG();return M.Njj(pe.closePopupWindow())}),M.j41(1,"p",4),M.EFF(2),M.nI1(3,"translate"),M.k0s(),M.DNE(4,n,3,3,"p",5)(5,R,3,3,"p",5),M.qSk(),M.j41(6,"svg",6),M.bIt("click",function(){M.eBV($);const pe=M.XpG();return M.Njj(pe.closePopupWindow())}),M.nrm(7,"path",7),M.k0s(),M.joV(),M.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11)(12,"p",12),M.EFF(13),M.nI1(14,"translate"),M.k0s()(),M.DNE(15,D,3,3,"div",13),M.k0s(),M.j41(16,"div",14)(17,"div",11)(18,"p",15),M.EFF(19,"Check-Up"),M.k0s(),M.j41(20,"p",12),M.EFF(21,"~60CHF"),M.k0s()(),M.DNE(22,Me,2,1,"div",13),M.k0s(),M.j41(23,"div",14)(24,"div",11)(25,"p",15),M.EFF(26,"Small service"),M.k0s(),M.j41(27,"p",12),M.EFF(28,"~120CHF"),M.k0s()(),M.DNE(29,et,2,1,"div",13),M.k0s(),M.j41(30,"div",14)(31,"div",11)(32,"p",15),M.EFF(33,"Big service"),M.k0s(),M.j41(34,"p",12),M.EFF(35,"~190CHF"),M.k0s()(),M.DNE(36,ne,2,1,"div",13),M.k0s()()()()}if(2&Z){const $=M.XpG();M.R7$(2),M.JRh(M.bMT(3,8,"i18n.app.pages.customer.service-request.services.title")),M.R7$(2),M.Y8G("ngIf",$.userRole==$.RoleType.Customer),M.R7$(),M.Y8G("ngIf",$.userRole==$.RoleType.Shop),M.R7$(8),M.JRh(M.bMT(14,10,"i18n.app.pages.customer.service-request.overview.services")),M.R7$(2),M.Y8G("ngForOf",M.lJ4(12,F).constructor(25)),M.R7$(7),M.Y8G("ngForOf",M.lJ4(13,F).constructor(25)),M.R7$(7),M.Y8G("ngForOf",M.lJ4(14,F).constructor(25)),M.R7$(7),M.Y8G("ngForOf",M.lJ4(15,F).constructor(25))}}let ie=(()=>{class Z{constructor($){this.authService=$,this.closePopup=new M.bkB,this.userRole=V.kX.NotSet,this.RoleType=V.kX,this.userRole=this.authService.getUserRole()}closePopupWindow(){this.isServicePackageComparisonPopup=!0,this.closePopup.emit(!0)}static#e=this.\u0275fac=function(T){return new(T||Z)(M.rXU(I.u))};static#t=this.\u0275cmp=M.VBU({type:Z,selectors:[["app-service-package-comparison"]],inputs:{isServicePackageComparisonPopup:"isServicePackageComparisonPopup"},outputs:{closePopup:"closePopup"},decls:2,vars:2,consts:[["class","backdrop",4,"ngIf"],["class","servicePackageComparisonPopup",3,"clickOutside",4,"ngIf"],[1,"backdrop"],[1,"servicePackageComparisonPopup",3,"clickOutside"],[1,"main-title"],["class","sub-title",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","15","height","15","viewBox","0 0 15 15","fill","none",1,"close-icon",3,"click"],["d","M5.31585 7.07443L0.22618 1.98476L2.06712 0.143814L7.15679 5.23348L12.3006 0.0896688L14.3581 2.14719L9.21432 7.29101L14.1686 12.2453L12.3277 14.0863L7.37337 9.13195L2.14834 14.357L0.0908169 12.2995L5.31585 7.07443Z","fill","#989898"],[1,"services-container-wrapper"],[1,"services-container"],[1,"service-block","main"],[1,"title-container"],[1,"title"],["class","service-data",4,"ngFor","ngForOf"],[1,"service-block","price-block"],[1,"service-name"],[1,"sub-title"],[1,"service-data"],["xmlns","http://www.w3.org/2000/svg","width","19","height","19","viewBox","0 0 19 19","fill","none",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","19","height","19","viewBox","0 0 19 19","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.5 19C14.7467 19 19 14.7467 19 9.5C19 4.25329 14.7467 0 9.5 0C4.25329 0 0 4.25329 0 9.5C0 14.7467 4.25329 19 9.5 19ZM9.1168 12.0551L12.6635 8.5541C12.9399 8.28092 12.9399 7.83304 12.6635 7.55986C12.3871 7.28669 11.9327 7.28669 11.6563 7.55986L8.61319 10.5706L7.34342 9.31037C7.06703 9.0372 6.6126 9.0372 6.3362 9.31037C6.05981 9.58355 6.05981 10.0314 6.3362 10.3046L8.10958 12.0551C8.25159 12.1881 8.42892 12.2582 8.61319 12.2582C8.79745 12.2582 8.97479 
112.1881 9.1168 12.0551Z","fill","#FF5E3A"]],template:function(T,pe){1&T&&M.DNE(0,m,1,0,"div",0)(1,qe,37,16,"div",1),2&T&&(M.Y8G("ngIf",pe.isServicePackageComparisonPopup),M.R7$(),M.Y8G("ngIf",pe.isServicePackageComparisonPopup))},dependencies:[x.Sq,x.bT,A.z,w.D9],styles:[".backdrop[_ngcontent-%COMP%]{opacity:.6;background:#4c4c4c;position:absolute;inset:0;z-index:20}.servicePackageComparisonPopup[_ngcontent-%COMP%]{max-height:96svh;max-width:1200px;width:100%;z-index:21;padding:60px 30px 80px;position:fixed;inset:0;margin:auto;border-radius:20px;background:#fff;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.servicePackageComparisonPopup[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .main-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-left:110px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{margin-left:110px;color:#989898;margin-top:5px;max-width:80%}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{position:absolute;top:50px;right:50px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]{margin-top:40px;display:flex;justify-content:center;column-gap:21px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]{width:315px;min-width:300px;border-radius:10px;box-shadow:3px 3px 16.9px 2px #bebebe40}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;border-bottom:1px solid #CED3DB;height:83px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .service-data[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;font-size:16px;font-style:normal;font-weight:500;border-bottom:1px solid #DEE5F4;margin:0 32px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .service-data[_ngcontent-%COMP%]:last-child{border-bottom:unset}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]{width:180px;min-width:unset}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .service-name[_ngcontent-%COMP%]{color:#999;font-size:14px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]   .service-data[_ngcontent-%COMP%]{margin:0 22px;justify-content:center}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{width:315px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{padding-left:32px;align-items:flex-start}@media (max-width: 800px){.servicePackageComparisonPopup[_ngcontent-%COMP%]{top:50px;border-radius:0;padding:37px 18px 80px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .main-title[_ngcontent-%COMP%]{font-size:14px;margin-left:18px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{font-size:12px;margin-left:18px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{top:36px;right:16px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]{margin-top:15px;column-gap:4px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{height:55px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .service-block[_ngcontent-%COMP%]   .service-data[_ngcontent-%COMP%]{font-size:12px;font-weight:400;margin:0 15px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]{width:70px;min-width:70px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .service-name[_ng
1content-%COMP%]{font-size:11px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .price-block[_ngcontent-%COMP%]   .service-data[_ngcontent-%COMP%]{margin:0 6px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{width:180px;min-width:180px}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{padding-left:15px}}@media (max-width: 450px){.servicePackageComparisonPopup[_ngcontent-%COMP%]{padding-left:0}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]{padding-left:18px;overflow:scroll;-ms-overflow-style:none;scrollbar-width:none}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.servicePackageComparisonPopup[_ngcontent-%COMP%]   .services-container-wrapper[_ngcontent-%COMP%]   .services-container[_ngcontent-%COMP%]{justify-content:flex-start}}"]})}return Z})()},3789:(Ne,ce,P)=>{P.d(ce,{G:()=>qe});var M=P(1291),V=P(8359),I=P(4438),x=P(5219),A=P(177),w=P(3955);const F=ie=>({active:ie}),m=(ie,Z)=>({active:ie,close:Z}),n=ie=>({"height.px":ie}),R=ie=>({"top.px":ie}),D=(ie,Z,N)=>({"current-status":ie,"next-status":Z,"previous-status":N});function j(ie,Z){if(1&ie&&(I.j41(0,"p",17),I.EFF(1),I.nI1(2,"translate"),I.k0s()),2&ie){const N=I.XpG().$implicit,$=I.XpG(2);I.R7$(),I.JRh(I.bMT(2,1,$.getCustomerStatusDescriptionTranslate(N)))}}function Me(ie,Z){if(1&ie&&(I.j41(0,"div",12),I.nrm(1,"div",13),I.j41(2,"div",14)(3,"p",15),I.EFF(4),I.nI1(5,"translate"),I.k0s(),I.DNE(6,j,3,3,"p",16),I.k0s()()),2&ie){const N=Z.$implicit,$=I.XpG(2);I.Y8G("ngStyle",I.eq3(6,R,$.customerServiceRequestStatuses.indexOf(N)*$.rowHeight))("ngClass",I.sMw(8,D,N===$.selectedCustomerServiceRequestStatus,$.customerServiceRequestStatuses.indexOf(N)>$.customerServiceRequestStatuses.indexOf($.selectedCustomerServiceRequestStatus),$.customerServiceRequestStatuses.indexOf(N)<$.customerServiceRequestStatuses.indexOf($.selectedCustomerServiceRequestStatus))),I.R7$(4),I.JRh(I.bMT(5,4,"i18n.app.pages.service-request.status."+N)),I.R7$(2),I.Y8G("ngIf",$.customerServiceRequestStatuses.indexOf(N)<=$.customerServiceRequestStatuses.indexOf($.selectedCustomerServiceRequestStatus))}}function Ae(ie,Z){if(1&ie){const N=I.RV6();I.j41(0,"div",2)(1,"div",3)(2,"p",4),I.EFF(3),I.nI1(4,"translate"),I.k0s(),I.qSk(),I.j41(5,"svg",5),I.bIt("click",function(){I.eBV(N);const T=I.XpG();return I.Njj(T.closeNotificationsMenu())}),I.nrm(6,"path",6),I.k0s()(),I.joV(),I.j41(7,"div",7)(8,"div",8),I.nrm(9,"div",9),I.k0s(),I.j41(10,"div",10),I.DNE(11,Me,7,12,"div",11),I.k0s()()()}if(2&ie){const N=I.XpG();I.Y8G("ngClass",I.l_i(7,m,N.showStatusDetails,!N.showStatusDetails)),I.R7$(3),I.JRh(I.bMT(4,5,"i18n.app.pages.customer.service-request.status-history")),I.R7$(5),I.Y8G("ngStyle",I.eq3(10,n,(N.customerServiceRequestStatuses.length-1)*N.rowHeight)),I.R7$(),I.Y8G("ngStyle",I.eq3(12,n,N.customerServiceRequestStatuses.indexOf(N.selectedCustomerServiceRequestStatus)*N.rowHeight)),I.R7$(2),I.Y8G("ngForOf",N.customerServiceRequestStatuses)}}function et(ie,Z){if(1&ie&&(I.j41(0,"p",17),I.EFF(1),I.nI1(2,"translate"),I.k0s()),2&ie){const N=I.XpG().$implicit,$=I.XpG(2);I.R7$(),I.JRh(I.bMT(2,1,$.getShopStatusDescriptionTranslate(N)))}}function K(ie,Z){if(1&ie&&(I.j41(0,"div",12),I.nrm(1,"div",13),I.j41(2,"div",14)(3,"p",15),I.EFF(4),I.nI1(5,"translate"),I.k0s(),I.DNE(6,et,3,3,"p",16),I.k0s()()),2&ie){const N=Z.$implicit,$=I.XpG(2);I.Y8G("ngStyle",I.eq3(6,R,$.shopServiceRequestStatuses.indexOf(N)*$.rowHeight))("ngClass",I.sMw(8,D,N===$.selectedShopServiceRequestStatus,$.shopServiceRequestStatuses.indexOf(N)>$.shopServiceRequestStatuses.indexOf($.selectedShopServiceRequestStatus),$.shopServiceRequestStatuses.indexOf(N)<$.shopServiceRequestStatuses.indexOf($.selectedShopServiceRequestStatus))),I.R7$(4),I.JRh(I.bMT(5,4,"i18n.app.pages.service-request.status."+N)),I.R7$(2),I.Y8G("ngIf",$.shopServiceRequestStatuses.indexOf(N)<=$.shopServiceRequestStatuses.indexOf($.selectedShopServiceRequestStatus))}}function ne(ie,Z){if(1&ie){const N=I.RV6();I.j41(0,"div",2)(1,"div",3)(2,"p",4),I.EFF(3),I.nI1(4,"translate"),I.k0s(),I.qSk(),I.j41(5,"svg",5),I.bIt("click",function(){I.eBV(N);const T=I.XpG();return I.Njj(T.closeNotificationsMenu())}),I.nrm(6,"path",6),I.k0s()(),I.joV(),I.j41(7,"div",7)(8,"div",8),I.nrm(9,"div",9),I.k0s(),I.j41(10,"div",10),I.DNE(11,K,7,12,"div",11),I.k0s()()()}if(2&ie){const N=I.XpG();I.Y8G("ngClass",I.l_i(7,m,N.showStatusDetails,!N.showStatusDetails)),I.R7$(3),I.JRh(I.bMT(4,5,"i18n.app.pages.customer.service-request.status-history")),I.R7$(5),I.Y8G("ngStyle",I.eq3(10,n,(N.shopServiceRequestStatuses.length-1)*N.rowHeight)),I.R7$(),I.Y8G("ngStyle",I.eq3(12,n,N.shopServiceRequestStatuses.indexOf(N.selectedShopServiceRequestStatus)*N.rowHeight)),I.R7$(2),I.Y8G("ngForOf",N.shopServiceRequestStatuses)}}let qe=(()=>{class ie{constructor(N){this.statusDetailsService=N,this.progressLineHeight=0,this.rowHeight=0,this.subscription=new V.yU,this.showStatusDetails=!1,this.customerServiceRequestStatuses=[M.tr.WaitingForOffers,M.tr.OffersReceived,M.tr.WaitingForDelivery,M.tr.AssessingBike,M.tr.AssessingCompleted,M.tr.InProgress,M.tr.WaitingForPayment,M.tr.WaitingForPickUp,M.tr.Finished],this.shopServiceRequestStatuses=[M.XS.WaitingForAccept,M.XS.WaitingForAnswer,M.XS.WaitingForDelivery,M.XS.AssessingBike,M.XS.InProgress,M.XS.WaitingForPayment,M.XS.WaitingForPickUp,M.XS.Finished],this.rowHeight=this.getRowHeight(),this.progressLineHeight=this.getProgressLineHeight()}ngOnInit(){this.subscription.add(this.statusDetailsService.onStatusDetailsOpened$.subscribe(N=>{this.showStatusDetails=N}))}closeNotificationsMenu(){this.statusDetailsService.closeNotificationsMenu()}getRowHeight(){return window.innerWidth>560?80:70}getCustomerStatusDescriptionTranslate(N){return"i18n.app.pages.customer.service-request.status-description."+N}getShopStatusDescriptionTranslate(N){return"i18n.app.pages.shop.service-request.status-description."+N}getProgressLineHeight(){return this.rowHeight*this.customerServiceRequestStatuses.length}static#e=this.\u0275fac=function($){return new($||ie)(I.rXU(x.O))};static#t=this.\u0275cmp=I.VBU({type:ie,selectors:[["app-status-details"]],inputs:{selectedCustomerServiceRequestStatus:"selectedCustomerServiceRequestStatus",selectedShopServiceRequestStatus:"selectedShopServiceRequestStatus"},decls:3,vars:5,consts:[[1,"backdrop",3,"click","ngClass"],["class","status-details-container",3,"ngClass",4,"ngIf"],[1,"status-details-container",3,"ngClass"],[1,"header-container"],[1,"title"],["xmlns","http://www.w3.org/2000/svg","width","15","height","15","viewBox","0 0 15 15","fill","none",3,"click"],["d","M5.31585 7.07443L0.22618 1.98476L2.06712 0.143814L7.15679 5.23348L12.3006 0.089669L14.3581 2.14719L9.21432 7.29101L14.1686 12.2453L12.3277 14.0863L7.37337 9.13195L2.14834 14.357L0.0908175 12.2995L5.31585 7.07443Z","fill","#989898"],[1,"statuses-container"],[1,"main-line",3,"ngStyle"],[1,"selected-line",3,"ngStyle"],[1,"statuses"],["class","status",3,"ngStyle","ngClass",4,"ngFor","ngForOf"],[1,"status",3,"ngStyle","ngClass"],[1,"dot"],[1,"status-text"],[1,"status-title"],["class","status-description",4,"ngIf"],[1,"status-description"]],template:function($,T){1&$&&(I.j41(0,"div",0),I.bIt("click",function(){return T.closeNotificationsMenu()}),I.k0s(),I.DNE(1,Ae,12,14,"div",1)(2,ne,12,14,"div",1)),2&$&&(I.Y8G("ngClass",I.eq3(3,F,T.showStatusDetails)),I.R7$(),I.Y8G("ngIf",T.selectedCustomerServiceRequestStatus),I.R7$(),I.Y8G("ngIf",T.selectedShopServiceRequestStatus))},dependencies:[A.YU,A.Sq,A.bT,A.B3,w.D9],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;display:none;justify-content:center;inset:0;width:100%;z-index:20;overflow:hidden;opacity:.6;background:#4c4c4c}.status-details-container[_ngcontent-%COMP%]{display:none;flex-direction:column;position:absolute;top:105px;bottom:0;right:0;border-radius:10px 0 0 10px;background:#fff;box-shadow:3px 3px 16.9px 2px #a1a1a140;width:421px;z-index:21;animation:_ngcontent-%COMP%_ani .7s forwards;transform:translate(150%);max-height:calc(100svh - 105px)}.status-details-container[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{height:78px;min-height:78px;padding:0 25px 0 35px;border-bottom:1px solid #CED3DB;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:700}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]{margin-top:35px;display:flex;height:calc(100% - 90px);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .main-line[_ngcontent-%COMP%]{margin-left:35px;margin-top:1px;border-left:3px dashed #989898;position:relative}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .main-line[_ngcontent-%COMP%]   .selected-line[_ngcontent-%COMP%]{position:absolute;top:2px;right:0;border-left:3px solid var(--color-theme)}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]{position:relative}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{width:380px;
1display:flex;column-gap:17px;position:absolute}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{border-radius:50%}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-title[_ngcontent-%COMP%]{font-size:16px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-description[_ngcontent-%COMP%]{margin-top:5px;color:#989898;font-size:12px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .current-status[_ngcontent-%COMP%]{left:-12px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .current-status[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{min-width:22px;width:22px;height:22px;background:var(--color-theme)}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .next-status[_ngcontent-%COMP%]{left:-8.5px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .next-status[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{width:14px;height:14px;min-width:14px;background:#989898}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .next-status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-title[_ngcontent-%COMP%]{color:#989898}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .previous-status[_ngcontent-%COMP%]{min-width:14px;height:14px;left:-8.5px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .previous-status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-title[_ngcontent-%COMP%]{color:#989898}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .previous-status[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{width:14px;height:14px;min-width:14px;background:var(--color-theme)}@media (max-width: 580px){.status-details-container[_ngcontent-%COMP%]{width:300px;top:58px;max-height:calc(100svh - 52px)}.status-details-container[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{height:50px;min-height:50px;font-size:14px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]{margin-top:20px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{width:250px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-title[_ngcontent-%COMP%]{font-size:12px}.status-details-container[_ngcontent-%COMP%]   .statuses-container[_ngcontent-%COMP%]   .statuses[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]   .status-description[_ngcontent-%COMP%]{font-size:11px}}.active[_ngcontent-%COMP%]{display:flex}.close[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aniClose .7s forwards}@keyframes _ngcontent-%COMP%_ani{0%{transform:translate(150%)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_aniClose{0%{transform:translateY(0)}to{transform:translate(150%)}}"]})}return ie})()},470:(Ne,ce,P)=>{P.d(ce,{T:()=>w});var M=P(1413),V=P(152),I=P(5558),x=P(4438),A=P(1394);let w=(()=>{class F{constructor(n,R,D){this.templateRef=n,this.viewContainerRef=R,this.spokes99BikesService=D,this.searchSubject=new M.B,this.subscriptions=[],this.onSearchChange=j=>{this.searchSubject.next(j)},this.context={options:[],onSearchChange:this.onSearchChange}}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.templateRef,this.context),this.subscriptions.push(this.searchSubject.pipe((0,V.B)(100),(0,I.n)(n=>this.spokes99BikesService.getBikes(n))).subscribe(n=>{this.context.options=n}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}static#e=this.\u0275fac=function(R){return new(R||F)(x.rXU(x.C4Q),x.rXU(x.c1b),x.rXU(A.j))};static#t=this.\u0275dir=x.FsC({type:F,selectors:[["","appBikeSearch",""]]})}return F})()},9203:(Ne,ce,P)=>
1{P.d(ce,{N:()=>V});var M=P(4438);let V=(()=>{class I{constructor(A){this.el=A,this.minNumber=0}onInputChange(){const A=this.el.nativeElement,w=Number(A.value);!w&&"0"!==A.value.toString()&&(A.value=""),w<this.minNumber&&(A.value="")}static#e=this.\u0275fac=function(w){return new(w||I)(M.rXU(M.aKT))};static#t=this.\u0275dir=M.FsC({type:I,selectors:[["","appNumericInput",""]],hostBindings:function(w,F){1&w&&M.bIt("input",function(n){return F.onInputChange(n)})},inputs:{minNumber:[M.Mj6.None,"appMinNumber","minNumber"]}})}return I})()},1246:(Ne,ce,P)=>{P.d(ce,{g:()=>I});var M=P(177),V=P(4438);let I=(()=>{class x{transform(w){return w?w=new M.vh("en-US").transform(w,"dd.MM.yyyy"):null}static#e=this.\u0275fac=function(F){return new(F||x)};static#t=this.\u0275pipe=V.EJ8({name:"customDate",type:x,pure:!0})}return x})()},5219:(Ne,ce,P)=>{P.d(ce,{O:()=>I});var M=P(1413),V=P(4438);let I=(()=>{class x{constructor(){this.onStatusDetailsOpened$=new M.B}openNotificationsMenu(){this.onStatusDetailsOpened$.next(!0)}closeNotificationsMenu(){this.onStatusDetailsOpened$.next(!1)}static#e=this.\u0275fac=function(F){return new(F||x)};static#t=this.\u0275prov=V.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},2389:(Ne,ce,P)=>{P.d(ce,{X:()=>Z});var M=P(345),V=P(4438),I=P(4905),x=P(4292),A=P(5042),w=P(2984),F=P(7951),m=P(9104),j=P(1824).A.inherit({_supportedKeys(){var N=this._list?this._list.option("focusedElement"):null,$=this.callBase();return N=N&&(0,x.A)(N),(0,F.X)({},$,{upArrow(T){return!($.upArrow.apply(this,arguments)&&!(0,m.By)(T)&&(T.preventDefault(),T.stopPropagation(),N&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow(T){return!($.downArrow.apply(this,arguments)&&!(0,m.By)(T)&&(T.preventDefault(),T.stopPropagation(),N&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter(T){N||this.close();var pe=this.option("opened");return pe&&T.preventDefault(),pe}})},_getDefaultOptions(){return(0,F.X)(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr(){return this.option("valueExpr")},_closeOutsideDropDownHandler(N){var{target:$}=N;return!(0,x.A)($).closest(this.$element()).length},_renderDimensions(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_popupWrapperClass(){return"".concat(this.callBase()," ").concat("dx-autocomplete-popup-wrapper")},_listConfig(){return(0,F.X)(this.callBase(),{pageLoadMode:"none",onSelectionChanged:N=>{this._setSelectedItem(N.addedItems[0])}})},_listItemClickHandler(N){this._saveValueChangeEvent(N.event);var $=this._displayGetter(N.itemData);this.option("value",$),this.close()},_setListDataSource(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:A.lQ,_searchCanceled(){this.callBase(),this.close()},_loadItem(N,$){var T=this._getItemFromPlain(N,$);return(new w.cY).resolve(T).promise()},_dataSourceOptions(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource(N){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(N),this._clearFocusedItem()},_clearFocusedItem(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:()=>"input keyup",_valueChangeEventHandler(N){var $=this._input().val()||null;return this.callBase(N,$)},_optionChanged(N){switch(N.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(N);break;default:this.callBase(N)}},clear(){this.callBase(),this.close()},reset(){arguments.length?this.callBase(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0):this.callBase(),this.close()}});(0,I.A)("dxAutocomplete",j);const Ae=j;var et=P(9417),K=P(7283),ne=P(1837);const qe={provide:et.kq,useExisting:(0,V.Rfq)(()=>ie),multi:!0};let ie=(()=>{class N extends K.ic{constructor(T,pe,Y,ae,z,Pe,ze,we){super(T,pe,Y,ae,ze,we),this._watcherHelper=ae,this._idh=z,this.touched=Ot=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxItemCountChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),Pe.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(T){this._setOption("accessKey",T)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(T){this._setOption("activeStateEnabled",T)}get buttons(){return this._getOption("buttons")}set buttons(T){this._setOption("buttons",T)}get dataSource(){return this._getOption("dataSource")}set dataSource(T){this._setOption("dataSource",T)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(T){this._setOption("deferRendering",T)}get disabled(){return this._getOption("disabled")}set disabled(T){this._setOption("disabled",T)}get displayValue(){return this._getOption("displayValue")}set displayValue(T){this._setOption("displayValue",T)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(T){this._setOption("dropDownButtonTemplate",T)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(T){this._setOption("dropDownOptions",T)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(T){this._setOption("elementAttr",T)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(T){this._setOption("focusStateEnabled",T)}get grouped(){return this._getOption("grouped")}set grouped(T){this._setOption("grouped",T)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(T){this._setOption("groupTemplate",T)}get height(){return this._getOption("height")}set height(T){this._setOption("height",T)}get hint(){return this._getOption("hint")}set hint(T){this._setOption("hint",T)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(T){this._setOption("hoverStateEnabled",T)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(T){this._setOption("inputAttr",T)}get isDirty(){return this._getOption("isDirty")}set isDirty(T){this._setOption("isDirty",T)}get isValid(){return this._getOption("isValid")}set isValid(T){this._setOption("isValid",T)}get items(){return this._getOption("items")}set items(T){this._setOption("items",T)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(T){this._setOption("itemTemplate",T)}get label(){return this._getOption("label")}set label(T){this._setOption("label",T)}get labelMode(){return this._getOption("labelMode")}set labelMode(T){this._setOption("labelMode",T)}get maxItemCount(){return this._getOption("maxItemCount")}set maxItemCount(T){this._setOption("maxItemCount",T)}get maxLength(){return this._getOption("maxLength")}set maxLength(T){this._setOption("maxLength",T)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(T){this._setOption("minSearchLength",T)}get name(){return this._getOption("name")}set name(T){this._setOption("name",T)}get opened(){return this._getOption("opened")}set opened(T){this._setOption("opened",T)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(T){this._setOption("openOnFieldClick",T)}get placeholder(){return this._getOption("placeholder")}set placeholder(T){this._setOption("placeholder",T)}get readOnly(){return this._getOption("readOnly")}set readOnly(T){this._setOption("readOnly",T)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(T){this._setOption("rtlEnabled",T)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(T){this._setOption("searchExpr",T)}get searchMode(){return this._getOption("searchMode")}set searchMode(T){this._setOption("searchMode",T)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(T){this._setOption("searchTimeout",T)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(T){this._setOption("selectedItem",T)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(T){this._setOption("showClearButton",T)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(T){this._setOption("showDropDownButton",T)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(T){this._setOption("spellcheck",T)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(T){this._setOption("stylingMode",T)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(T){this._setOption("tabIndex",T)}get text(){return this._getOption("text")}set text(T){this._setOption("text",T)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(T){this._setOption("useItemTextAsTitle",T)}get validationError(){return this._getOption("validationError")}set validationError(T){this._setOption("validationError",T)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(T){this._setOption("validationErrors",T)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(T){this._setOption("validationMessageMode",T)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(T){this._setOption("validationMessagePosition",T)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(T){this._setOption("validationStatus",T)}get value(){return this._getOption("value")}set value(T){this._setOption("value",T)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(T){this._setOption("valueChangeEvent",T)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(T){this._setOption("valueExpr",T)}get visible(){return this._getOption("visible")}set visible(T){this._setOption("visible",T)}get width(){return this._getOption("width")}set width(T){this._setOption("width",T)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(T){this._setOption("wrapItemText",T)}change(T){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(T){this.setChildren("buttons",T)}get itemsChildren(){return this._getOption("items")}set itemsChildren(T){this.setChildren("items",T)}_createInstance(T,pe){return new Ae(T,pe)}writeValue(T){this.eventHelper.lockedValueChangeEvent=!0,this.value=T,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(T){this.disabled=T}registerOnChange(T){this.change=T}registerOnTouched(T){this.touched=T}_createWidget(T){super._createWidget(T),this.instance.on("focusOut",pe=>{this.eventHelper.fireNgEvent("onBlur",[pe])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(T){super.ngOnChanges(T),this.setupChanges("buttons",T),this.setupChanges("dataSource",T),this.setupChanges("items",T),this.setupChanges("searchExpr",T),this.setupChanges("validationErrors",T)}setupChanges(T,pe){T in this._optionsToUpdate||this._idh.setup(T,pe)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("val
1idationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(T,pe){let Y=this._idh.setupSingle(T,pe),ae=null!==this._idh.getChanges(T,pe);(Y||ae)&&super._setOption(T,pe)}}return N.\u0275fac=function(T){return new(T||N)(V.rXU(V.aKT),V.rXU(V.SKi),V.rXU(K.zF),V.rXU(K.jS),V.rXU(K.$M),V.rXU(K.fH),V.rXU(M.pJ),V.rXU(V.Agw))},N.\u0275cmp=V.VBU({type:N,selectors:[["dx-autocomplete"]],contentQueries:function(T,pe,Y){if(1&T&&(V.wni(Y,ne.BrI,4),V.wni(Y,ne.CVf,4)),2&T){let ae;V.mGM(ae=V.lsd())&&(pe.buttonsChildren=ae),V.mGM(ae=V.lsd())&&(pe.itemsChildren=ae)}},hostBindings:function(T,pe){1&T&&V.bIt("valueChange",function(ae){return pe.change(ae)})("onBlur",function(ae){return pe.touched(ae)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxItemCount:"maxItemCount",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxItemCountChange:"maxItemCountChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[V.Jv_([K.zF,K.jS,qe,K.fH,K.$M]),V.Vt3,V.OA$],decls:0,vars:0,template:function(T,pe){},encapsulation:2}),N})(),Z=(()=>{class N{}return N.\u0275fac=function(T){return new(T||N)},N.\u0275mod=V.$C({type:N}),N.\u0275inj=V.G2t({imports:[[ne.GIV,ne.u4t,ne.df_,ne.YLo,ne.YaD,ne.eNx,ne.Bkf,ne.nwt,ne.hXw,ne.YGc,ne.gf0,ne.rvW,ne.Tob,ne.$Ql,ne.isg,ne.POb,K.p_,
1K.xZ],ne.GIV,ne.u4t,ne.df_,ne.YLo,ne.YaD,ne.eNx,ne.Bkf,ne.nwt,ne.hXw,ne.YGc,ne.gf0,ne.rvW,ne.Tob,ne.$Ql,ne.isg,ne.POb,K.xZ]}),N})()},9896:(Ne,ce,P)=>{P.d(ce,{A:()=>m,F:()=>F});var M=P(345),V=P(4438),I=P(9454),x=P(9417),A=P(7283);const w={provide:x.kq,useExisting:(0,V.Rfq)(()=>F),multi:!0};let F=(()=>{class n extends A.ic{constructor(D,j,Me,Ae,et,K,ne,qe){super(D,j,Me,Ae,ne,qe),this._watcherHelper=Ae,this._idh=et,this.touched=ie=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"enableThreeStateBehaviorChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconSizeChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),K.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(D){this._setOption("accessKey",D)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(D){this._setOption("activeStateEnabled",D)}get disabled(){return this._getOption("disabled")}set disabled(D){this._setOption("disabled",D)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(D){this._setOption("elementAttr",D)}get enableThreeStateBehavior(){return this._getOption("enableThreeStateBehavior")}set enableThreeStateBehavior(D){this._setOption("enableThreeStateBehavior",D)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(D){this._setOption("focusStateEnabled",D)}get height(){return this._getOption("height")}set height(D){this._setOption("height",D)}get hint(){return this._getOption("hint")}set hint(D){this._setOption("hint",D)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(D){this._setOption("hoverStateEnabled",D)}get iconSize(){return this._getOption("iconSize")}set iconSize(D){this._setOption("iconSize",D)}get isDirty(){return this._getOption("isDirty")}set isDirty(D){this._setOption("isDirty",D)}get isValid(){return this._getOption("isValid")}set isValid(D){this._setOption("isValid",D)}get name(){return this._getOption("name")}set name(D){this._setOption("name",D)}get readOnly(){return this._getOption("readOnly")}set readOnly(D){this._setOption("readOnly",D)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(D){this._setOption("rtlEnabled",D)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(D){this._setOption("tabIndex",D)}get text(){return this._getOption("text")}set text(D){this._setOption("text",D)}get validationError(){return this._getOption("validationError")}set validationError(D){this._setOption("validationError",D)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(D){this._setOption("validationErrors",D)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(D){this._setOption("validationMessageMode",D)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(D){this._setOption("validationMessagePosition",D)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(D){this._setOption("validationStatus",D)}get value(){return this._getOption("value")}set value(D){this._setOption("value",D)}get visible(){return this._getOption("visible")}set visible(D){this._setOption("visible",D)}get width(){return this._getOption("width")}set width(D){this._setOption("width",D)}change(D){}_createInstance(D,j){return new I.A(D,j)}writeValue(D){this.eventHelper.lockedValueChangeEvent=!0,this.value=D,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(D){this.disabled=D}registerOnChange(D){this.change=D}registerOnTouched(D){this.touched=D}_createWidget(D){super._createWidget(D),this.instance.on("focusOut",j=>{this.eventHelper.fireNgEvent("onBlur",[j])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(D){super.ngOnChanges(D),this.setupChanges("validationErrors",D)}setupChanges(D,j){D in this._optionsToUpdate||this._idh.setup(D,j)}
1ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(D,j){let Me=this._idh.setupSingle(D,j),Ae=null!==this._idh.getChanges(D,j);(Me||Ae)&&super._setOption(D,j)}}return n.\u0275fac=function(D){return new(D||n)(V.rXU(V.aKT),V.rXU(V.SKi),V.rXU(A.zF),V.rXU(A.jS),V.rXU(A.$M),V.rXU(A.fH),V.rXU(M.pJ),V.rXU(V.Agw))},n.\u0275cmp=V.VBU({type:n,selectors:[["dx-check-box"]],hostBindings:function(D,j){1&D&&V.bIt("valueChange",function(Ae){return j.change(Ae)})("onBlur",function(Ae){return j.touched(Ae)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",enableThreeStateBehavior:"enableThreeStateBehavior",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",iconSize:"iconSize",isDirty:"isDirty",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",enableThreeStateBehaviorChange:"enableThreeStateBehaviorChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconSizeChange:"iconSizeChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[V.Jv_([A.zF,A.jS,w,A.fH,A.$M]),V.Vt3,V.OA$],decls:0,vars:0,template:function(D,j){},encapsulation:2}),n})(),m=(()=>{class n{}return n.\u0275fac=function(D){return new(D||n)},n.\u0275mod=V.$C({type:n}),n.\u0275inj=V.G2t({imports:[[A.p_,A.xZ],A.xZ]}),n})()},9750:(Ne,ce,P)=>{P.d(ce,{N:()=>IO}),P(345);var V=P(4438),I=P(7669),x=P(4292),A=P(7951),w=P(2101),F=P(186),m=P(2463),n=P(1269),R=P(736),D=P(9104),j=P(5042),Me="dx-state-focused",Ae="dx-cell-focus-disabled",K=".dx-datagrid-rowsview .dx-row",ne="".concat(K," > td"),qe=".dx-treelist-rowsview .dx-row",ie="".concat(qe," > td"),Z={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(K,"[tabindex]"),"".concat(ne,"[tabindex]"),"".concat(ne),"".concat(qe,"[tabindex]"),"".concat(ie,"[tabindex]"),"".concat(ie)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},N=!1,$=!1,T=null;function Y(a,e){var t=(0,x.A)(a),i=t.attr("aria-label"),o=ae(i,e.element()).index(t);T=(0,A.X)({},{ariaLabel:i,index:o},{viewInstance:e})}function ae(a,e){return(0,x.A)(e).find(a?'[aria-label="'.concat(a,'"][tabindex]'):"[tabindex]")}function z(a,e){var t=e?.getRootNode()||I.A.getDocument();for(var i in a){var r=a[i],o=(0,x.A)(t).find(r).first();if(o.length)return o}}function ze(){$="visible"===I.A.getDocument().visibilityState}function Ot(){n.A.off(I.A.getDocument(),"visibilitychange",ze)}function lt(a,e,t,i,r,o){if(e.option("useLegacyKeyboardNavigation"))return j.lQ;var s=()=>(0,x.A)(e.element()),c=p=>function pe(a,e,t,i,r,o){var s=function Pe(a,e,t){var i={event:e,handled:!1};return t?t(i):a._createActionByOption("onKeyDown")(i),i.handled}(e,t.originalEvent,o);if(!s){var c=(0,D.YD)(t);"enter"===c||"space"===c?(Y(t.target,e),i&&i({event:t})):"tab"===c?r.addClass(Me):En(a,e,t)}}(a,e,p,r,s(),o),d=()=>{N=!0,s().removeClass(Me)},u=()=>{!N&&!$&&s().addClass(Me),N=!1};return n.A.on(t,"keydown",i,c),n.A.on(t,"mousedown",i,d),n.A.on(t,"focusin",i,u),()=>{n.A.off(t,"keydown",i,c),n.A.off(t,"mousedown",i,d),n.A.off(t,"focusin",i,u)}}function Et(a){if(!a.option("useLegacyKeyboardNavigation")&&T){var e=T.viewInstance;if(e){var i=ae(T.ariaLabel,e.element()).eq(T.index);
1T=null,n.A.trigger(i,"focus")}}}function En(a,e,t){var i=(0,D.YD)(t);if(t.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var r=Object.keys(Z),o=r.indexOf(a);o>=0&&o<r.length;){o="upArrow"===i?--o:++o;var d=z(Z[r[o]],t.target);if(d&&d.length){d.attr("tabindex",e.option("tabindex")||0),n.A.trigger(d,"focus"),d.removeClass(Ae);break}}}var an=function(a,e,t,i,r){var o=e.getController("keyboardNavigation");e.option("useLegacyKeyboardNavigation")||o&&!o.isKeyboardEnabled()||(e.createAction("onKeyDown"),lt(a,e,t,i,r,s=>{e.executeAction("onKeyDown",s)}))},Re=P(181),mo=P(8332),xt=P(3992),Ie=P(9263),k=P(2984),De=P(448),it=P(5918),ln=P(9900),fe=P(4435),ke=P(8060),Gt=P(1707),Se=P(4159),Rt=P(675),Wi="dx-column-indicators",Oo=a=>class extends a{_applyColumnState(e){var t,i=this.option("rtlEnabled"),r=this._getColumnAlignment(e.column.alignment,i),o=(0,A.X)(!0,{columnAlignment:r},e),s=o.rootElement.hasClass("dx-group-panel-item"),c=this._createIndicatorContainer(o,s),d=(0,x.A)("<span>").addClass(this._getIndicatorClassName(e.name)),u=null===(t=this.component)||void 0===t?void 0:t.getController("columns"),p=u?.getHeaderContentAlignment(r)||r;return o.container=c,o.indicator=d,this._renderIndicator(o),c[!s&&e.showColumnLines||"left"!==p?"prependTo":"appendTo"](e.rootElement),d}_getIndicatorClassName(e){}_getColumnAlignment(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,De.n)(t)}_createIndicatorContainer(e,t){var i=this._getIndicatorContainer(e.rootElement),r="left"===e.columnAlignment?"right":"left";return i.length||(i=(0,x.A)("<div>").addClass(Wi)),this.setAria("role","presentation",i),i.css("float",e.showColumnLines&&!t?r:null)}_getIndicatorContainer(e){return e&&e.find(".".concat(Wi))}_getIndicatorElements(e){var t=this._getIndicatorContainer(e);return t&&t.children()}_renderIndicator(e){var t=e.container,i=e.indicator;t&&i&&t.append(i)}_updateIndicators(e){var r,t=this.getColumns(),i=this.getColumnElements();if(i&&t.length===i.length)for(var o=0;o<t.length;o++){r=i.eq(o),this._updateIndicator(r,t[o],e);var s=r.parent().data("options");s&&s.cells&&(s.cells[r.index()].column=t[o])}}_updateIndicator(e,t,i){if(!t.command)return this._applyColumnState({name:i,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}},U=P(8168),Ye=P(4423),Oe=P(7310),Ki=(a,e)=>{var t,i=Object.values(a).find(r=>{var o;return null===(o=r?.element())||void 0===o?void 0:o.hasClass(e)});return null!==(t=i?.element())&&void 0!==t?t:null};class Xi{constructor(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,w.__)(this.callbackNames()||[],function(i,r){var o=t.callbackFlags(r)||{};o.unique=!0,o.syncStrategy=!0,t[this]=(0,Ye.A)(o)})}_endUpdateCore(){}init(){}callbackNames(){}callbackFlags(e){}publicMethods(){return[]}beginUpdate(){this._updateLockCount++}endUpdate(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())}option(e){var{component:t}=this,i=t._optionCache;return 1===arguments.length&&i?(e in i||(i[e]=t.option(e)),i[e]):t.option.apply(t,arguments)}_silentOption(e,t){var{component:i}=this,r=i._optionCache;return r&&(r[e]=t),i._setOptionWithoutOptionChange(e,t)}localize(e){var t=this.component._optionCache;return t?(e in t||(t[e]=R.A.format(e)),t[e]):R.A.format(e)}on(e,t){return this.component.on.apply(this.component,arguments)}off(){return this.component.off.apply(this.component,arguments)}optionChanged(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)}getAction(e){return this._actions[e]}setAria(e,t,i){var r=i.get(0),o="role"!==e&&"id"!==e?"aria-":"";r.setAttribute?r.setAttribute(o+e,t):i.attr(o+e,t)}_createComponent(e,t,i){return this.component._createComponent(e,t,i)}getController(e){return this.component._controllers[e]}createAction(e,t){if((0,m.Tn)(e)){var i=this.component._createAction(e.bind(this),t);return function(r){i({event:r})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t}executeAction(e,t){var i=this._actions[e];return i&&i(t)}dispose(){var e=this;(0,w.__)(e.callbackNames()||[],function(){e[this].empty()})}addWidgetPrefix(e){return"dx-".concat(this.component.NAME.slice(2).toLowerCase()).concat(e?"-".concat(e):"")}getWidgetContainerClass(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")}elementIsInsideGrid(e){return e.closest(".".concat(this.getWidgetContainerClass())).parent().is(this.component.$element())}}class di extends Xi{}class Yi extends Xi{constructor(e){super(e),this.renderCompleted=(0,Ye.A)(),this.resizeCompleted=(0,Ye.A)()}_isReady(){return this.component.isReady()}_endUpdateCore(){super._endUpdateCore(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))}_invalidate(e,t){this._requireRender=!0,this.component._requireResize=(0,fe.Vd)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t}_renderCore(e){}_resizeCore(){}_parentElement(){return this._$parent}element(){return this._$element}
1getElementHeight(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,i=parseFloat(e.css("marginBottom"))||0,{offsetHeight:r}=e.get(0);return r+t+i}isVisible(){return!0}getTemplate(e){return this.component._getTemplate(e)}getView(e){return this.component._views[e]}_getBorderedViews(){return{columnHeadersView:this.component._views.columnHeadersView,rowsView:this.component._views.rowsView,filterPanelView:this.component._views.filterPanelView,footerView:this.component._views.footerView}}render(e,t){var i=this._$element,r=this.isVisible();if((i||e)&&(this._requireReady=!1,i||(i=this._$element=(0,x.A)("<div>").appendTo(e),this._$parent=e),i.toggleClass("dx-hidden",!r),this.component._views&&((a,e)=>{if(((a,e)=>{var t;if(!Object.keys(e).includes(a))return!1;var{rowsView:i}=e,r=function(a,e){var t={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&e.indexOf(i)<0&&(t[i]=a[i]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(a);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(a,i[r])&&(t[i[r]]=a[i[r]])}return t}(e,["rowsView"]);return!!(0,m.O9)(null===(t=i?.element)||void 0===t?void 0:t.call(i))&&Object.values(r).filter(o=>{var s;return null===(s=o?.isVisible)||void 0===s?void 0:s.call(o)}).every(o=>(0,m.O9)(o?.element()))})(a,e)){var t=Ki(e,"dx-bordered-top-view"),i=Ki(e,"dx-bordered-bottom-view"),r=(a=>{var{columnHeadersView:e,rowsView:t}=a;return e?.isVisible()?e.element():t.element()})(e),o=(a=>{var{filterPanelView:e,footerView:t,rowsView:i}=a;return e?.isVisible()?e.element():t?.isVisible()?t.element():i.element()})(e);t&&!t.is(r)&&t.removeClass("dx-bordered-top-view"),i&&!i.is(o)&&i.removeClass("dx-bordered-bottom-view"),r.hasClass("dx-bordered-top-view")||r.addClass("dx-bordered-top-view"),o.hasClass("dx-bordered-bottom-view")||o.addClass("dx-bordered-bottom-view")}})(this.name,this._getBorderedViews()),r)){this.component._optionCache={};var o=this._renderCore(t);this.component._optionCache=void 0,o?o.done(()=>{this.renderCompleted.fire(t)}):this.renderCompleted.fire(t)}}resize(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1}focus(e){this.element().get(0).focus({preventScroll:e})}}function Zi(a){var t={};return Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach(i=>{var[r,o]=i,s=a[r];s&&(t[r]=(0,m.Tn)(o)?o(s):s.inherit(o))}),t}const ge={modules:[],View:Yi,ViewController:class yo extends di{getView(e){return this.component._views[e]}getViews(){return this.component._views}},Controller:di,registerModule(a,e){for(var{modules:t}=this,i=0;i<t.length;i++)if(t[i].name===a)return;e.name=a,t.push(e)},registerModulesOrder(a){this.modulesOrder=a},unregisterModule(a){this.modules=(0,j.VM)(this.modules,e=>e.name!==a)},processModules:function Ro(a,e){var{modules:t}=e,{modulesOrder:i}=e;function r(p){var v={};return(0,w.__)(p,(f,O)=>{var b=new O(a);b.name=f,function Eo(a,e,t){var i=t.publicMethods();i&&(0,w.__)(i,(r,o)=>{if(!t[o])throw Oe.A.Error("E1006",e,o);if(a[o])throw Oe.A.Error("E1005",o);a[o]=function(){return t[o](...arguments)}})}(a,f,b),v[f]=b}),v}i&&t.sort((p,v)=>{var f=i.indexOf(p.name),O=i.indexOf(v.name);return f<0&&(f=1e6),O<0&&(O=1e6),f-O});var o={},s={};t.forEach(p=>{var{name:v,controllers:f={},views:O={}}=p;Object.entries(f).forEach(b=>{var[S,E]=b;if(o[S])throw Oe.A.Error("E1001",v,S);if(!(E?.prototype instanceof di))throw Oe.A.Error("E1002",v,S);o[S]=E}),Object.entries(O).forEach(b=>{var[S,E]=b;if(s[S])throw Oe.A.Error("E1003",v,S);if(!(E?.prototype instanceof Yi))throw Oe.A.Error("E1004",v,S);s[S]=E})});var c=t.filter(p=>{var{extenders:v}=p;return!!v}),d=c.reduce((p,v)=>{var{extenders:f}=v;return(0,U.A)((0,U.A)({},p),Zi(p,f?.controllers))},o),u=c.reduce((p,v)=>{var{extenders:f}=v;return(0,U.A)((0,U.A)({},p),Zi(p,f?.views))},s);a._controllers=r(d),a._views=r(u)},callModuleItemsMethod:function(a,e,t){t=t||[],a._controllers&&(0,w.__)(a._controllers,function(){this[e]&&this[e].apply(this,t)}),a._views&&(0,w.__)(a._views,function(){this[e]&&this[e].apply(this,t)})}};var me=P(9407),bt=P(370),Rn=P(8059),It=P(5333),cn=P(1076),ct=P(5571),dn=P(1437),In=P(5655),dt=P(9259),Ao=P(7041);P(1364);const Qi=(0,Ao.A)({format:function(a,e){var t=(0,m.Kg)(e)&&""!==e||(0,m.Qd)(e)||(0,m.Tn)(e),i=(0,m.kf)(a)||
1(0,m.$P)(a);return t&&i?(0,m.Tn)(e)?e(a):((0,m.Kg)(e)&&(e={type:e}),(0,m.kf)(a)?In.A.format(a,e):(0,m.$P)(a)?dt.A.format(a,e):void 0):(0,m.O9)(a)?a.toString():""},getTimeFormat:function(a){return a?"longtime":"shorttime"},_normalizeFormat:function(a){return Array.isArray(a)?1===a.length?a[0]:function(e){return a.map(function(t){return dt.A.format(e,t)}).join(" ")}:a},getDateFormatByDifferences:function(a,e){var t=[],i=e&&a.millisecond&&!(a.year||a.month||a.day);return i?t.push(function(r){return r.getSeconds()+r.getMilliseconds()/1e3+"s"}):a.millisecond&&t.push("millisecond"),(a.hour||a.minute||!i&&a.second)&&t.unshift(this.getTimeFormat(a.second)),a.year&&a.month&&a.day?e&&"month"===e?"monthandyear":(t.unshift("shortdate"),this._normalizeFormat(t)):a.year&&a.month?"monthandyear":a.year&&a.quarter?"quarterandyear":a.year?"year":a.quarter?"quarter":a.month&&a.day?(t.unshift(e?function(r){return dt.A.getMonthNames("abbreviated")[r.getMonth()]+" "+dt.A.format(r,"day")}:"monthandday"),this._normalizeFormat(t)):a.month?"month":a.day?(t.unshift(e?"day":function(r){return dt.A.format(r,"dayofweek")+", "+dt.A.format(r,"day")}),this._normalizeFormat(t)):this._normalizeFormat(t)},getDateFormatByTicks:function(a){var e,t,i;if(a.length>1)for(e=dn.A.getDatesDifferences(a[0],a[1]),i=1;i<a.length-1;i++)t=dn.A.getDatesDifferences(a[i],a[i+1]),e.count<t.count&&(e=t);else e={year:!0,month:!0,day:!0,hour:a[0].getHours()>0,minute:a[0].getMinutes()>0,second:a[0].getSeconds()>0,millisecond:a[0].getMilliseconds()>0};return this.getDateFormatByDifferences(e)},getDateFormatByTickInterval:function(a,e,t){var i,r=function(c,d,u){switch(d){case"year":case"quarter":c.month=u;case"month":c.day=u;case"week":case"day":c.hour=u;case"hour":c.minute=u;case"minute":c.second=u;case"second":c.millisecond=u}};t=(0,m.Kg)(t)?t.toLowerCase():t;var c,d,u,o=dn.A.getDatesDifferences(a,e);return a!==e&&(c=o,d=a>e?e:a,!(u=a>e?a:e).getMilliseconds()&&u.getSeconds()?u.getSeconds()-d.getSeconds()==1&&(c.millisecond=!0,c.second=!1):!u.getSeconds()&&u.getMinutes()?u.getMinutes()-d.getMinutes()==1&&(c.second=!0,c.minute=!1):!u.getMinutes()&&u.getHours()?u.getHours()-d.getHours()==1&&(c.minute=!0,c.hour=!1):!u.getHours()&&u.getDate()>1?u.getDate()-d.getDate()==1&&(c.hour=!0,c.day=!1):1===u.getDate()&&u.getMonth()?u.getMonth()-d.getMonth()==1&&(c.day=!0,c.month=!1):!u.getMonth()&&u.getFullYear()&&u.getFullYear()-d.getFullYear()==1&&(c.month=!0,c.year=!1)),r(o,dn.A.getDateUnitInterval(o),!0),r(o,i=dn.A.getDateUnitInterval(t||"second"),!1),o[{week:"day"}[i]||i]=!0,this.getDateFormatByDifferences(o)}});var To=P(8543),ko=["year","month","day"],Fo=["year","month","day","hour","minute"],ui=function(a){return"date"===a||"datetime"===a},pi=function(a){var e,t=[],i=["year","month","day","hour","minute","second"],r=a.headerFilter&&a.headerFilter.groupInterval,o="quarter"===r?"month":r;return ui(a.dataType)&&null!==r?(t="datetime"===a.dataType?Fo:ko,(e=i.indexOf(o))>=0&&(t=i.slice(0,e)).push(r),t):(0,m.O9)(r)?Array.isArray(r)?r:[r]:void 0};const At=function(){var a=function(r,o){var s=r.dataField||r.selector;return"search"===o&&(s=r.displayField||r.calculateDisplayValue||s),s},e=function(r,o){var s,c,d,p,u=a(this,o);if(Array.isArray(r)&&(0,m.O9)(r[0])&&(0,m.O9)(r[1]))return c=[u,">=",r[0]],d=[u,"<=",r[1]],ui(this.dataType)&&(p=r[1]).getHours()+p.getMinutes()+p.getSeconds()+p.getMilliseconds()<1&&(s=new Date(r[1].getTime()),"date"===this.dataType&&s.setDate(r[1].getDate()+1),d=[u,"<",s]),[c,"and",d]},t=function(r,o,s){var c,d,u,f,p=(0,m.$P)(f=r)?[f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds()]:(0,w.Tj)((""+f).split("/"),function(O,b){return 1===b?Number(O)-1:Number(O)}),v=a(this,s);switch("headerFilter"===s?u=pi(this)[p.length-1]:"datetime"===this.dataType&&(u="minute"),u){case"year":c=new Date(p[0],0,1),d=new Date(p[0]+1,0,1);break;case"month":c=new Date(p[0],p[1],1),d=new Date(p[0],p[1]+1,1);break;case"quarter":c=new Date(p[0],3*p[1],1),d=new Date(p[0],3*p[1]+3,1);break;case"hour":c=new Date(p[0],p[1],p[2],p[3]),d=new Date(p[0],p[1],p[2],p[3]+1);break;case"minute":c=new Date(p[0],p[1],p[2],p[3],p[4]),d=new Date(p[0],p[1],p[2],p[3],p[4]+1);break;case"second":c=new Date(p[0],p[1],p[2],p[3],p[4],p[5]),d=new Date(p[0],p[1],p[2],p[3],p[4],p[5]+1);break;default:c=new Date(p[0],p[1],p[2]),d=new Date(p[0],p[1],p[2]+1)}switch(o){case"<":return[v,"<",c];case"<=":return[v,"<",d];case">":return[v,">=",d];case">=":return[v,">=",c];case"<>":return[[v,"<",c],"or",[v,">=",d]];default:return[[v,">=",c],"and",[v,"<",d]]}},i=function(r,o,s){var c=a(this,s),d=pi(this);if("headerFilter"===s&&d&&(0,m.O9)(r)){var u=(""+r).split("/"),p=Number(u[u.length-1]);return[[c,">=",p],"and",[c,"<",p+d[u.length-1]]]}return[c,o||"=",r]};return{defaultCalculateFilterExpression:function(r,o,s){var c=this,d=a(c,s),u=c.calculateDisplayValue&&"search"===s,p=u&&c.lookup&&c.lookup.dataType||c.dataType,v=null;if("headerFilter"!==s&&"filterBuilder"!==s||null!==r)if("string"!==p||c.lookup&&!u){if("between"===o)return e.apply(c,[r,s]);if(ui(p)&&(0,m.O9)(r))return t.apply(c,arguments);if("number"===p)return i.apply(c,arguments);v=[d,o||"=",r]}else v=[d,o||"contains",r];else v=[d,o||"=",null],"string"===p&&(v=[v,"="===o?"or":"and",[d,o||"=",""]]);return v},getGroupInterval:pi}}();var er="virtual",tr="scrolling.mode",Ho={year:a=>a&&a.getFullYear(),month:a=>a&&a.getMonth()+1,day:a=>a&&a.getDate(),quarter:a=>a&&Math.floor(a.getMonth()/3)+1,hour:a=>a&&a.getHours(),minute:a=>a&&a.getMinutes(),second:a=>a&&a.getSeconds()},jo=function(){var e=this.calculateCellValue(arguments[1]);if(!(0,m.O9)(e))return null;if(nr(this.dataType))return Ho[arguments[0]](e);if("number"===this.dataType){var i=arguments[0];return Math.floor(Number(e)/i)*i}},Uo=function(a,e){return(0,m.Tn)(a)&&(0,m.Tn)(e)&&a.originalCallback&&e.originalCallback?a.originalCallback===e.originalCallback&&a.columnIndex===e.columnIndex:a===e};
1function nr(a){return"date"===a||"datetime"===a}var ir=function(a){a.get(0).textContent="\xa0"},gi=function(a){for(var e=(0,ct.st)(a=a||[]),t=0;t<a.length;t++)a&&a[t]&&void 0!==a[t].isExpanded&&(e[t].isExpanded=a[t].isExpanded),a&&a[t]&&void 0!==a[t].groupInterval&&(e[t].groupInterval=a[t].groupInterval);return e},rr=function(a,e){var t=Qi.format(a,e.format)||a&&a.toString()||"",i={value:a,valueText:e.getDisplayFormat?e.getDisplayFormat(t):t,target:e.target||"row",groupInterval:e.groupInterval};return e.customizeText?e.customizeText.call(e,i):i.valueText},or=function(a,e){var t=a.displayFormat||a.columnCaption&&e["".concat(a.summaryType,"OtherColumn")]||e[a.summaryType];return rr(a.value,{format:a.valueFormat,getDisplayFormat:i=>t?(0,bt.GP)(t,i,a.columnCaption):i,customizeText:a.customizeText})},sr=function(a){var e=a.data&&a.data(),t=e&&e.dxComponents,i=t&&t[0];return i&&e[i]};const q={renderNoDataText(a){if(a=a||this.element()){var e=this.addWidgetPrefix("nodata"),t=a.find(".".concat(e)).last(),i=this._dataController.isEmpty(),r=this._dataController.isLoading();t.length||(t=(0,x.A)("<span>").addClass(e)),t.parent().is(a)||t.appendTo(a),i&&!r?t.removeClass("dx-hidden").text(this._getNoDataText()):t.addClass("dx-hidden")}},renderLoadPanel(a,e,t){var i;this._loadPanel&&this._loadPanel.$element().remove(),(i=this.option("loadPanel"))&&("auto"===i.enabled?!t:i.enabled)?(i=(0,A.X)({shading:!1,message:i.text,container:e},i),this._loadPanel=this._createComponent((0,x.A)("<div>").appendTo(e),To.A,i)):this._loadPanel=null},calculateLoadPanelPosition(a){var e=(0,x.A)((0,fe.zk)());return(0,F.Oq)(a)>(0,F.Oq)(e)?{of:e,boundary:a,collision:"fit"}:{of:a}},getIndexByKey(a,e,t){var i=-1;if(void 0!==a&&Array.isArray(e)){t=arguments.length<=2?"key":t;for(var r=0;r<e.length;r++){var o=(0,m.O9)(t)?e[r][t]:e[r];if((0,j.RL)(a,o)){i=r;break}}}return i},combineFilters(a,e){var t,i=[];e=e||"and";for(var r=0;r<a.length;r++)if(a[r]){if(1===(null===(t=a[r])||void 0===t?void 0:t.length)&&"!"===a[r][0]){if("and"===e)return["!"];if("or"===e)continue}i.length&&i.push(e),i.push(a[r])}if(1===i.length&&(i=i[0]),i.length)return i},checkChanges(a,e){for(var t=0,i=0;i<e.length;i++)a[e[i]]&&t++;return a.length&&a.length===t},equalFilterParameters:function a(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!a(e[i],t[i]))return!1;return!0}return(0,m.Tn)(e)&&e.columnIndex>=0&&(0,m.Tn)(t)&&t.columnIndex>=0?e.columnIndex===t.columnIndex&&(0,me.ao)(e.filterValue)===(0,me.ao)(t.filterValue)&&(0,me.ao)(e.selectedFilterOperation)===(0,me.ao)(t.selectedFilterOperation):(0,me.ao)(e)==(0,me.ao)(t)},proxyMethod(a,e,t){a[e]||(a[e]=function(){var i=this._dataSource;return i?i[e].apply(i,arguments):t})},formatValue:rr,getFormatOptionsByColumn:(a,e)=>({format:a.format,getDisplayFormat:a.getDisplayFormat,customizeText:a.customizeText,target:e,trueText:a.trueText,falseText:a.falseText}),getDisplayValue:(a,e,t,i)=>a.displayValueMap&&void 0!==a.displayValueMap[e]?a.displayValueMap[e]:a.calculateDisplayValue&&t&&"group"!==i?a.calculateDisplayValue(t):!a.lookup||"group"===i&&(a.calculateGroupValue||a.calculateDisplayValue)?e:a.lookup.calculateCellValue(e),getGroupRowSummaryText(a,e){for(var t="(",i=0;i<a.length;i++)t+=(i>0?", ":"")+or(a[i],e);return t+")"},getSummaryText:or,normalizeSortingInfo:gi,getFormatByDataType(a){switch(a){case"date":return"shortDate";case"datetime":return"shortDateShortTime";default:return}},getHeaderFilterGroupParameters(a,e){var t=[],i=a.dataField||a.name,r=At.getGroupInterval(a);return r?((0,w.__)(r,(o,s)=>{t.push(e?{selector:i,groupInterval:s,isExpanded:o<r.length-1}:jo.bind(a,s))}),t):(e?t=[{selector:i,isExpanded:!1}]:(t=function(o){var s=a.calculateCellValue(o);return(void 0===s||""===s)&&(s=null),s},a.sortingMethod&&(t=[{selector:t,compare:a.sortingMethod.bind(a)}])),t)},equalSortParameters(a,e,t){if(a=gi(a),e=gi(e),Array.isArray(a)&&Array.isArray(e)){if(a.length!==e.length)return!1;for(var i=0;i<a.length;i++)if(!Uo(a[i].selector,e[i].selector)||a[i].desc!==e[i].desc||a[i].groupInterval!==e[i].groupInterval||!t&&!!a[i].isExpanded!=!!e[i].isExpanded)return!1;return!0}return(!a||!a.length)==(!e||!e.length)},getPointsByColumns(a,e,t,i){for(var s,c,p,r=a.length,o=!1,d=i||0,u=[],v=0;v<=r;v++){v<r&&(c=(s=a.eq(v)).offset(),p="rtl"===s.css("direction"));var f={index:d,x:c?c.left+(!t&&p^v===r?(0,De.N)(s[0]).width:0):0,y:c?c.top+(t&&v===r?(0,De.N)(s[0]).height:0):0,columnIndex:d};if(!t&&v>0){var O=a.eq(v-1).offset();O.top<f.y&&(f.y=O.top)}e&&(o=e(f)),o||u.push(f),d++}return u},getExpandCellTemplate:()=>({allowRenderToDetachedContainer:!0,render(a,e){var t=(0,x.A)(a);if(!(0,m.O9)(e.value)||e.data&&e.data.isContinuation||e.row.isNewRow)ir(t);else{var i=e.component.getView("rowsView");t.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,x.A)("<div>").addClass(e.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(t),i.setAria("label",i.localize(e.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),t)}}}),setEmptyText:ir,isDateType:nr,getSelectionRange(a){try{if(a)return{selectionStart:a.selectionStart,selectionEnd:a.selectionEnd}}catch{}return{}},setSelectionRange(a,e){try{a&&a.setSelectionRange&&a.setSelectionRange(e.selectionStart,e.selectionEnd)}catch{}},focusAndSelectElement(a,e){var t=e.is(":focus");n.A.trigger(e,"focus");var i=a.option("editing.selectTextOnEditStart"),r=e.get(0);if(!t&&i&&e.is(".dx-texteditor-input")&&!e.is("[readonly]")){var o=sr(e.closest(".dx-texteditor"));(0,k.z7)(o&&o._loadItemDeferred).done(()=>{r.select()})}},getWidgetInstance:sr,getLastResizableColumnIndex(a,e){var i,t=a.some(c=>c&&!c.command&&!c.fixed&&!1!==c.allowResizing);for(i=a.length-1;a[i];i--){var r=a[i];if(!(r.command||r.fixed||"adaptiveHidden"===(e&&e[i])||t&&!1===r.allowResizing))break}return i},isElementInCurrentGrid:(a,e)=>!(!e||!e.length)&&e.closest(".".concat(a.getWidgetContainerClass())).parent().is(a.component.$element()),isVirtualRowRendering(a){var e=a.option("scrolling.rowRenderingMode"),t=a.option(tr)===er,i="infinite"===a.option(tr);return!(!1!==a.option("scrolling.legacyMode")||!t&&!i)||e===er},getPixelRatio:a=>a.devicePixelRatio||1,getContentHeightLimit(a){return a.mozilla?8e6:15e6/this.getPixelRatio((0,fe.zk)())},normalizeLookupDataSource(a){var e;return a.items?e=a.items:(0,m.Tn)(e=a.dataSource)&&!Rn.A.isWrapped(e)&&(e=e({})),(0,cn.ho)(e)},getWrappedLookupDataSource(a,e,t){if(!e)return[];var i=this.normalizeLookupDataSource(a.lookup);if(a.calculateCellValue!==a.defaultCalculateCellValue)return i;var s,c,d,r=e.remoteOperations().groupPaging,o=a.displayField&&(0,m.Kg)(a.displayField),u=(v,f)=>{var O,b=null!==(O=f.skip)&&void 0!==O?O:0;return v.slice(b,f.take?b+f.take:v.length)},p=(0,U.A)((0,U.A)({},i),{__dataGridSourceFilter:t,load:v=>{var O,b,S,f=new k.cY;
1return(O=v,b=function Wo(a){return Array.isArray(a)||(a=[a]),a.map((e,t)=>(0,m.Kg)(e)?{selector:e,isExpanded:t<a.length-1}:e)}(o?[a.dataField,a.displayField]:a.dataField),S=new k.cY,s&&(!r||O.skip===d&&O.take===c)?S.resolve(u(s,O)):(d=O.skip,c=O.take,e.load({filter:t,group:b,take:r?O.take:void 0,skip:r?O.skip:void 0}).done(L=>{s=L,S.resolve(r?L:u(L,O))}).fail(S.fail)),S).done(O=>{if(0!==O.length){var b=this.combineFilters(O.flatMap(E=>E.key).map(E=>[a.lookup.valueExpr,E]),"or");new It.q((0,U.A)((0,U.A)((0,U.A)({},i),v),{filter:this.combineFilters([b,v.filter],"and"),paginate:!1})).load().done(f.resolve).fail(f.fail)}else f.resolve([])}).fail(f.fail),f},key:a.lookup.valueExpr,byKey(v){var f=(0,k.cY)();return this.load({filter:[a.lookup.valueExpr,"=",v]}).done(O=>{f.resolve(O[0])}),f.promise()}});return p},logHeaderFilterDeprecatedWarningIfNeed(a){var e=a._logDeprecatedOptionWarning.bind(a);(0,m.O9)(a.option("headerFilter.allowSearch"))&&e("headerFilter.allowSearch",{since:"23.1",alias:"headerFilter.search.enabled"}),(0,m.O9)(a.option("headerFilter.searchTimeout"))&&e("headerFilter.searchTimeout",{since:"23.1",alias:"headerFilter.search.timeout"});var t="dxPivotGrid"===a.NAME?"dataSource.fields":"columns",i=a.option(t);if(Array.isArray(i)){var r=o=>{o.forEach(s=>{var c,d=s.headerFilter||{};(0,m.O9)(d.allowSearch)&&e("".concat(t,"[].headerFilter.allowSearch"),{since:"23.1",alias:"".concat(t,"[].headerFilter.search.enabled")}),(0,m.O9)(d.searchMode)&&e("".concat(t,"[].headerFilter.searchMode"),{since:"23.1",alias:"".concat(t,"[].headerFilter.search.mode")}),null!==(c=s.columns)&&void 0!==c&&c.length&&r(s.columns)})};r(i)}}};var ar="scroll-container",un="dx-row",hi="dx-group-row",An="dx-master-detail-row",Tn="0.0001px",kn="dxCellHintVisible",ur={render(a){a.container.append(a.content)}},Tt=function(a){return"auto"===a?"":(0,m.kf)(a)?"".concat(a,"px"):a},vi=function(a,e,t){a.style.width=a.style.maxWidth="auto"===e.width?"":t},Fn=function(a){a.resolve()},pn=a=>"number"==typeof a?"".concat(a.toFixed(3),"px"):"adaptiveHidden"===a?Tn:a;class Ht extends(Oo(ge.View)){init(){this._scrollLeft=-1,this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnChooserController=this.getController("columnChooser"),this._editorFactoryController=this.getController("editorFactory"),this._selectionController=this.getController("selection"),this._columnChooserView=this.getView("columnChooserView"),this._delayedTemplates=[],this._templateDeferreds=new Set,this._templatesCache={},this._templateTimeouts=new Set,this.createAction("onCellClick"),this.createAction("onRowClick"),this.createAction("onCellDblClick"),this.createAction("onRowDblClick"),this.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:e=>{this._afterRowPrepared(e)}}),this._columnsController.columnsChanged.add(this._columnOptionChanged.bind(this)),this._dataController&&this._dataController.changed.add(this._handleDataChanged.bind(this))}dispose(){var e,t;if((0,fe.Vd)()){var i=(0,fe.zk)();null===(e=this._templateTimeouts)||void 0===e||e.forEach(r=>i.clearTimeout(r)),null===(t=this._templateTimeouts)||void 0===t||t.clear()}}optionChanged(e){switch(super.optionChanged(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0;break;case"keyboardNavigation":"keyboardNavigation.enabled"===e.fullName&&this._invalidate(!0,!0),e.handled=!0}}_createScrollableOptions(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),i=(0,A.X)({},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!t,i.useSimulatedScrollbar=!t),i}_updateCell(e,t){t.rowType&&this._cellPrepared(e,t)}_createCell(e){var{column:t}=e,i=t.alignment||(0,De.n)(this.option("rtlEnabled")),r=I.A.createElement("td");r.style.textAlign=i;var o=(0,x.A)(r);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,o),t.cssClass&&o.addClass(t.cssClass),Array.isArray(t.elementAttr)&&t.elementAttr.forEach(s=>{var{name:c,value:d}=s;o.attr(c,d)}),"expand"===t.command&&(o.addClass(t.cssClass),o.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?o.attr("colSpan",t.colspan):!t.isBand&&"auto"!==t.visibleWidth&&this.option("columnAutoWidth")&&((t.width||t.minWidth)&&(r.style.minWidth=Tt(t.minWidth||t.width)),t.width&&vi(r,t,Tt(t.width))),o}_createRow(e,t){var i=(0,x.A)("<".concat(t=t||"tr",">")).addClass(un);return"tr"===t&&this.setAria("role","row",i),i}_isAltRow(e){return e&&e.dataIndex%2==1}_createTable(e,t){var i=(0,x.A)("<table>").addClass(this.addWidgetPrefix("table")).addClass(this.addWidgetPrefix("table-fixed"));if(e&&!t?(i.attr("id","dx-".concat(new xt.A)).append(this._createColGroup(e)),Ie.A.safari&&i.append((0,x.A)("<thead>").append("<tr>")),this.setAria("role","presentation",i)):this.setAria("hidden",!0,i),this.setAria("role","presentation",(0,x.A)("<tbody>").appendTo(i)),t)return i;Ie.A.mozilla&&n.A.on(i,"mousedown","td",o=>{o.ctrlKey&&o.preventDefault()}),this.option("cellHintEnabled")&&n.A.on(i,"mousemove",".dx-row > td",this.createAction(o=>{var s=o.event,c=(0,x.A)(s.target),d=(0,x.A)(s.currentTarget),u=d.parent(),p=this._columnsController.getVisibleColumns(),v=u.data("options"),f=d.index(),O=v&&v.cells&&v.cells[f],b=O?O.column:p[f],S=u.hasClass("dx-header-row"),E=u.hasClass("dx-data-row"),L=u.hasClass(An),G=u.hasClass(hi),J=u.hasClass(this.addWidgetPrefix("filter-row")),he=E&&(!b||b.cellTemplate);L||J||E&&O&&(v.isEditing||O.isEditing||b?.showEditorAlways)||he||S&&(!b||b.headerCellTemplate)||G&&(!b||b.groupIndex&&b.groupCellTemplate)||(c.data(kn)&&(c.removeAttr("title"),c.data(kn,!1)),c[0].scrollWidth-c[0].clientWidth>0&&!(0,m.O9)(c.attr("title"))&&(c.attr("title",c.text()),c.data(kn,!0)))}));var r=o=>{var s=(0,x.A)(o.currentTarget),c=(0,x.A)(o.target).closest(".".concat("dx-field-item-content")),d=s.parent(),u=d.data("options"),p=u&&u.cells&&u.cells[s.index()];if(s.closest("table").is(o.delegateTarget)){var v=(0,A.X)({},p,{cellElement:(0,Re.c)(s),event:o,eventType:o.type});if(v.rowIndex=this.getRowIndex(d),c.length){var f=c.data("dx-form-item");f.column&&(v.column=f.column,v.columnIndex=this._columnsController.getVisibleIndex(v.column.index))}return v}};return n.A.on(i,"mouseover",".dx-row > td",o=>{var s=r(o);s&&this.executeAction("onCellHoverChanged",s)}),n.A.on(i,"mouseout",".dx-row > td",o=>{var s=r(o);s&&this.executeAction("onCellHoverChanged",s)}),n.A.on(i,ke.U,".dx-row > td",o=>{var s=r(o);
1s&&this.executeAction("onCellClick",s)}),n.A.on(i,Gt.U,".dx-row > td",o=>{var s=r(o);s&&this.executeAction("onCellDblClick",s)}),function(a,e){var t,i,r;function o(s){return setTimeout(()=>{t=i=null},s)}n.A.on(e,"touchstart touchend",".dx-row",s=>{clearTimeout(r),"touchstart"===s.type?(t=s.target,i=s.currentTarget,r=o(1e3)):r=o()}),n.A.on(e,[ke.U,Gt.U,Se.A.down].join(" "),".dx-row",a.createAction(s=>{var{event:c}=s;t&&(c.target=t,c.currentTarget=i),(0,x.A)(c.target).closest("a").length||(s.rowIndex=a.getRowIndex(c.currentTarget),s.rowIndex>=0&&(s.rowElement=(0,Re.c)((0,x.A)(c.currentTarget)),s.columns=a.getColumns(),c.type===Se.A.down?a._rowPointerDown(s):c.type===ke.U?a._rowClick(s):a._rowDblClick(s)))}))}(this,i),i}_rowPointerDown(e){}_rowClick(){}_rowDblClick(){}_createColGroup(e){for(var t=(0,x.A)("<colgroup>"),i=0;i<e.length;i++)for(var r=e[i].colspan||1,o=0;o<r;o++)t.append(this._createCol(e[i]));return t}_createCol(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=Tn);var i=(0,x.A)("<col>");return(0,it.zj)(i,t),i}renderDelayedTemplates(e){var t=this._delayedTemplates,i=t.filter(o=>!o.async),r=t.filter(o=>o.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(i,!1,e),this._renderDelayedTemplatesCoreAsync(r)}_renderDelayedTemplatesCoreAsync(e){if(e.length){var t=(0,fe.zk)().setTimeout(()=>{this._templateTimeouts.delete(t),this._renderDelayedTemplatesCore(e,!0)});this._templateTimeouts.add(t)}}_renderDelayedTemplatesCore(e,t,i){for(var r=new Date;e.length;){var o=e.shift(),{options:s}=o,c=I.A.getRootNode((0,x.A)(s.container).get(0)),d=this.needWaitAsyncTemplates();if((!t||(0,x.A)(s.container).closest(c).length||d)&&(i&&(s.change=i),o.template.render(s)),t&&new Date-r>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()}_processTemplate(e,t){var i;if(e&&e.render&&!(0,m.Kb)(e))i={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render(o){e.render(o.container,o.model,o.change),o.deferred&&o.deferred.resolve()}};else if((0,m.Tn)(e))i={render(o){var s=e((0,Re.c)(o.container),o.model,o.change);s&&(s.nodeType||(0,m.Kb)(s))&&o.container.append(s),o.deferred&&o.deferred.resolve()}};else{var r=(0,m.Kg)(e)?e:(0,x.A)(e).attr("id");r?(this._templatesCache[r]||(this._templatesCache[r]=this.getTemplate(e)),i=this._templatesCache[r]):i=this.getTemplate(e)}return i}renderTemplate(e,t,i,r,o){var s,c=this._processTemplate(t,i),{column:d}=i,u="data"===i.rowType,p=new k.cY,v={container:e,model:i,deferred:p,onRendered:()=>{this.isDisposed()?p.reject():p.resolve()}};if(c){i.component=this.component;var f=d&&(d.renderAsync&&u||this.option("renderAsync")&&(!1!==d.renderAsync&&(d.command||d.showEditorAlways)&&u||"filter"===i.rowType)),O=null!==(s=i.renderAsync)&&void 0!==s?s:f;!c.allowRenderToDetachedContainer&&!r||O?this._delayedTemplates.push({template:c,options:v,async:O}):c.render(v),this._templateDeferreds.add(p),n.A.on(e,Rt.N,Fn.bind(null,p))}else p.reject();return p.promise().always(()=>{this._templateDeferreds.delete(p)})}_getBodies(e){return(0,x.A)(e).children("tbody").not(".dx-header").not(".dx-footer")}_needWrapRow(e){var t;return!!this.option().rowTemplate&&!(null===(t=this._getBodies(e))||void 0===t||!t.filter(".".concat(un)).length)}_wrapRowIfNeed(e,t,i){if(this._needWrapRow(i?e||this._tableElement:this._tableElement||e)){var s=(0,x.A)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",s),s.append(t)}return t}_appendRow(e,t,i){(i=i||ur).render({content:t,container:e})}_resizeCore(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))}_renderCore(e){var t=this.element().parent();(!t||t.parent().length)&&this.renderDelayedTemplates(e)}_renderTable(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,i=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(i,e),i}_renderRows(e,t){for(var i=this._getRows(t.change),r=t.change&&t.change.columnIndices||[],o=t.change&&t.change.changeTypes||[],s=0;s<i.length;s++)this._renderRow(e,(0,A.X)({row:i[s],columnIndices:r[s],changeType:o[s]},t))}_renderRow(e,t){t.columnIndices||(t.row.cells=[]);var i=this._createRow(t.row),r=this._wrapRowIfNeed(e,i);"remove"!==t.changeType&&this._renderCells(i,t),this._appendRow(e,r);var o=(0,A.X)({columns:t.columns},t.row);this._addWatchMethod(o,t.row),this._rowPrepared(r,o,t.row)}_needRenderCell(e,t){return!t||t.indexOf(e)>=0}_renderCells(e,t){for(var i=0,{row:r}=t,{columns:o}=t,s=0;s<o.length;s++)this._needRenderCell(s,t.columnIndices)&&this._renderCell(e,(0,A.X)({column:o[s],columnIndex:i,value:r.values&&r.values[i],oldValue:r.oldValues&&r.oldValues[i]},t)),o[s].colspan>1?i+=o[s].colspan:i++}_updateCells(e,t,i){var r=e.children(),o=t.children(),s=this.option("highlightChanges"),c=this.addWidgetPrefix("cell-updated-animation");
1i.forEach((d,u)=>{var p=r.eq(d),v=o.eq(u);p.replaceWith(v),s&&!v.hasClass("dx-command-expand")&&v.addClass(c)}),function(a,e){if(a&&e){var r,t=a.attributes,i=e.attributes;for(r=0;r<t.length;r++){var o=t[r].nodeName;e.hasAttribute(o)||a.removeAttribute(o)}for(r=0;r<i.length;r++)a.setAttribute(i[r].nodeName,i[r].nodeValue)}}(e.get(0),t.get(0))}_setCellAriaAttributes(e,t){if("freeSpace"!==t.rowType){this.setAria("role","gridcell",e);var i=this._columnsController.getColumnIndexOffset();this.setAria("colindex",t.columnIndex+i+1,e)}}_renderCell(e,t){var i=this._getCellOptions(t);if(t.columnIndices){if(t.row.cells){var r=t.row.cells.findIndex(s=>s.columnIndex===i.columnIndex);t.row.cells[r]=i}}else t.row.cells.push(i);var o=this._createCell(i);return this._setCellAriaAttributes(o,i),this._renderCellContent(o,i,t),e.get(0).appendChild(o.get(0)),o}_renderCellContent(e,t,i){var r=this._getCellTemplate(t);(0,k.z7)(!r||this.renderTemplate(e,r,t,void 0,i.change)).done(()=>{this._updateCell(e,t)})}_getCellTemplate(e){}_getRows(e){return[]}_getCellOptions(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(t),t}_addWatchMethod(e,t){if(this.option("repaintChangesOnly")){var i=[];return(t=t||e).watch=t.watch||function(r,o,s){var c=r(t.data),d=function(u){u&&s&&s(u);var p=r(t.data);JSON.stringify(c)!==JSON.stringify(p)&&(u&&o(p),c=p)};return i.push(d),function(){var u=i.indexOf(d);u>=0&&i.splice(u,1)}},t.update=t.update||function(r,o){r&&(this.data=e.data=r.data,this.rowIndex=e.rowIndex=r.rowIndex,this.dataIndex=e.dataIndex=r.dataIndex,this.isExpanded=e.isExpanded=r.isExpanded,e.row&&!o&&(e.row=r)),i.forEach(s=>{s(r)})},t!==e&&(e.watch=t.watch.bind(t)),e}}_cellPrepared(e,t){t.cellElement=(0,Re.c)((0,x.A)(e)),this.executeAction("onCellPrepared",t)}_rowPrepared(e,t,i){(0,mo.p)(e.get(0),"options",t),t.rowElement=(0,Re.c)(e),this.executeAction("onRowPrepared",t)}_columnOptionChanged(e){var{optionNames:t}=e;if(q.checkChanges(t,["width","visibleWidth"])){var r=this._columnsController.getVisibleColumns().map(o=>o.visibleWidth||o.width);this.setColumnWidths({widths:r,optionNames:t})}else this._requireReady||this.render()}getCellIndex(e,t){return e.length?e[0].cellIndex:-1}getTableElements(){return this._tableElement||(0,x.A)()}getTableElement(e){return this._tableElement}setTableElement(e,t){this._tableElement=e}_afterRowPrepared(e){}_handleDataChanged(e){}callbackNames(){return["scrollChanged"]}_updateScrollLeftPosition(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))}scrollTo(e){var t=this.element(),i=t&&t.children(".".concat(this.addWidgetPrefix(ar))).not(".".concat(this.addWidgetPrefix("content-fixed")));(0,m.O9)(e)&&(0,m.O9)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,i&&i.scrollLeft(e.left))}_getContent(e){var t;return null===(t=this._tableElement)||void 0===t?void 0:t.parent()}_removeContent(e){var t=this._getContent(e);t?.length&&t.remove()}_wrapTableInScrollContainer(e,t){var i=(0,x.A)("<div>"),r=this.option("scrolling.useNative");return(!1===r||"auto"===r&&!ln.nativeScrolling)&&i.addClass(this.addWidgetPrefix("scrollable-simulated")),n.A.on(i,"scroll",()=>{var o=i.scrollLeft();o!==this._scrollLeft&&this.scrollChanged.fire({left:o},this.name)}),i.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(ar)).append(e).appendTo(this.element()),this.setAria("role","presentation",i),i}needWaitAsyncTemplates(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")}waitAsyncTemplates(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new k.cY;if(!e&&!this.needWaitAsyncTemplates())return t.resolve();var r=()=>k.z7.apply(this,Array.from(this._templateDeferreds)).done(()=>{this.isDisposed()?t.reject():this._templateDeferreds.size>0?r():t.resolve()}).fail(t.reject);return r(),t.promise()}_updateContent(e,t,i){return this.waitAsyncTemplates().done(()=>{this._removeContent(i),this.setTableElement(e,i),this._wrapTableInScrollContainer(e,i)})}_findContentElement(e){}_getWidths(e){if(!e)return[];var t=[];
1return e.toArray().forEach(r=>{var o=r.offsetWidth;if(r.getBoundingClientRect){var s=(0,De.N)(r);s.width>r.offsetWidth-1&&(o=s.width)}t.push(o)}),t}getColumnWidths(e){if((this.option("forceApplyBindings")||j.lQ)(),e=e??this.getTableElement())for(var t=e.children("tbody:not(.dx-header)").children(),i=0;i<t.length;i++){var r=t.eq(i),o=r.hasClass(hi),s=r.hasClass(An),c=r.hasClass("dx-error-row");if(!("none"===r.get(0).style.display||r.hasClass("dx-state-invisible")||o||s||c)){var p=r.children("td");return this._getWidths(p)}}return[]}getVisibleColumnIndex(e,t){return e}setColumnWidths(e){var{widths:t}=e,r=this.getTableElement();if(r?.length&&t){var o=this.getColumns(),s=this.option("columnAutoWidth"),c=r.children("colgroup").children("col");c.toArray().forEach(d=>d.removeAttribute("style")),o.forEach((d,u)=>{if(s&&d.width&&!d.command)for(var p=Tt(d.visibleWidth||d.width),v=Tt(d.minWidth||p),f=r.children().children(".dx-row").not(".".concat(An)),O=0;O<f.length;O++){var b=this.getVisibleColumnIndex(u,O);if(b>=0){var S=f.eq(O),E=S.hasClass(hi)?S.find("td[aria-colindex='".concat(b+1,"']:not(.").concat("dx-group-cell",")")):S.find("td").eq(b);if(E.length){var L=E.get(0);vi(L,d,p),L.style.minWidth=v}}}var G=pn(t[u]);(0,m.O9)(G)&&(0,it.zj)(c.eq(u),G)})}}getCellElements(e){return this._getCellElementsCore(e)}_getCellElementsCore(e){if(!(e<0))return this._getRowElements().eq(e).children()}_getCellElement(e,t){var i=this.getCellElements(e),r=this._getVisibleColumnIndex(i,e,t);if(i?.length&&!(r<0)){var o=i.eq(r);return o.length>0?o:void 0}}_getRowElement(e){var t=this,i=(0,x.A)(),r=t.getTableElements();if(w.__(r,(o,s)=>{i=i.add(t._getRowElements((0,x.A)(s)).eq(e))}),i.length)return i}getCellElement(e,t){var i=this._getCellElement(e,t);if(i)return(0,Re.c)(i)}getRowElement(e){var t=this._getRowElement(e),i=[];if(t&&!(0,Re.c)(t).get)for(var r=0;r<t.length;r++)i.push(t[r]);else i=t;return i}_getVisibleColumnIndex(e,t,i){if((0,m.Kg)(i)){var r=this._columnsController.columnOption(i,"index");return this._columnsController.getVisibleIndex(r)}return i}getColumnElements(){}getColumns(e,t){return this._columnsController.getVisibleColumns(e)}getCell(e,t,i){var o,r=t||this._getRowElements();if(r.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex<r.length?e.rowIndex:r.length-1),o=i||this.getCellElements(e.rowIndex),o?.length>0))return o.eq(o.length>e.columnIndex?e.columnIndex:o.length-1)}getRowsCount(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0}_getRowElementsCore(e){if(e=e||this.getTableElement()){var i=(this.option().rowTemplate||this.option("dataRowTemplate"))&&e.find("> tbody.".concat(un));return i&&i.length?i:e.find("> tbody > "+".".concat(un,", > .").concat(un))}return(0,x.A)()}_getRowElements(e){return this._getRowElementsCore(e)}getRowIndex(e){return this._getRowElements().index(e)}getBoundingRect(){}getName(){}setScrollerSpacing(e){var t=this.element(),i=this.option("rtlEnabled");t&&t.css({paddingLeft:i?e:"",paddingRight:i?"":e})}isScrollbarVisible(e){var t=this.element(),i=this._tableElement;return!(!t||!i)&&(e?(0,F.Ot)(i)-(0,F.RG)(t)>0:(0,F.P$)(i)-(0,F.Oq)(t)>0)}isDisposed(){var e;return null===(e=this.component)||void 0===e?void 0:e._disposed}}var Dn="text-content",Ci="dx-header-row",ue="dx-visibility-hidden",Ve="dx-text-content-alignment-",fr=function(a,e,t){var i=(0,x.A)("<div>").addClass(a.addWidgetPrefix(Dn));a.setAria("role","presentation",i),ts(a,e,t.column,i);var r=a.option("showColumnLines"),o=a.getController("columns").getHeaderContentAlignment(t.column.alignment);return i[r||"right"===o?"appendTo":"prependTo"](e)};function ts(a,e,t,i){var r=a._getIndicatorElements(e,!0),o=a._getIndicatorElements(e),s=r&&r.length,c=a._getColumnAlignment(t.alignment),d=".".concat(a._getIndicatorClassName("sort")),u=".".concat(a._getIndicatorClassName("sortIndex")),p=o.filter(d),v=o.children().filter(u);(i=i||e.children(".".concat(a.addWidgetPrefix(Dn)))).toggleClass(Ve+c,s>0).toggleClass(Ve+("left"===c?"right":"left"),s>0&&"center"===t.alignment).toggleClass("dx-sort-indicator",!!p.length).toggleClass("dx-sort-index-indicator",!!v.length).toggleClass("dx-header-filter-indicator",!!o.filter(".".concat(a._getIndicatorClassName("headerFilter"))).length)}var ns={defaultOptions:()=>({showColumnHeaders:!0,cellHintEnabled:!0}),views:{columnHeadersView:class dl extends Ht{init(){super.init(),this._headerPanelView=this.getView("headerPanel"),this._headerFilterController=this.getController("headerFilter"),this._dataController=this.getController("data")}_createTable(){var e=super._createTable.apply(this,arguments);return n.A.on(e,"mousedown selectstart",this.createAction(t=>{var{event:i}=t;i.shiftKey&&i.preventDefault()})),e}_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDefaultTemplate(e){var t=this;return function(i,r){var{caption:o}=e,s=!e.command||o&&"expand"!==e.command;"empty"===e.command?t._renderEmptyMessage(i,r):s?fr(t,i,r).text(o):e.command&&i.html("&nbsp;")}}_renderEmptyMessage(e,t){var i=this._getEmptyHeaderText();if(i){var r=fr(this,e,t);if(i.includes("{0}")){var[s,c]=i.split("{0}"),d=R.A.format("dxDataGrid-emptyHeaderColumnChooserText"),u=this._columnChooserView,p=(0,x.A)("<a>").text(d).addClass("dx-link");n.A.on(p,"click",this.createAction(()=>u.showColumnChooser())),r.append(I.A.createTextNode(s)).append(p).append(I.A.createTextNode(c))}else r.text(i)}else e.html("&nbsp;")}_getEmptyHeaderText(){var e=!!this._columnChooserView.hasHiddenColumns(),t=!!this._headerPanelView.hasGroupedColumns();switch(!0){case e&&t:return R.A.format("dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText");case t:return R.A.format("dxDataGrid-emptyHeaderWithGroupPanelText");case e:return R.A.format("dxDataGrid-emptyHeaderWithColumnChooserText");default:return""}}_getHeaderTemplate(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}}_processTemplate(e,t){var i=this,{column:o}=t,s=super._processTemplate(e);return"header"===t.rowType&&s&&o.headerCellTemplate&&!o.command?{render(c){var d=fr(i,c.container,c.model);s.render((0,A.X)({},c,{container:d}))}}:s}_handleDataChanged(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())}_renderCell(e,t){var i=super._renderCell(e,t);return"header"===t.row.rowType&&(i.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&i.attr("tabindex",this.option("tabindex")||0)),i}_setCellAriaAttributes(e,t){super._setCellAriaAttributes(e,t),"header"===t.rowType&&(t.column.type||this.setAria("role","columnheader",e),t.column&&!t.column.command&&!t.column.isBand&&(e.attr("id",t.column.headerId),this.setAria("label","".concat(R.A.format("dxDataGrid-ariaColumn")," ").concat(t.column.caption),e)))}_createRow(e){var t=super._createRow.apply(this,arguments);return t.toggleClass("dx-column-lines",this.option("showColumnLines")),"header"===e.rowType&&(t.addClass(Ci),this._isLegacyKeyboardNavigation()||an("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t}_processHeaderAction(e,t){}_handleActionKeyDown(e){var{event:t}=e,i=(0,x.A)(t.target);if(this._lastActionElement=t.target,i.is(".dx-header-filter")){var r=this._headerFilterController,o=i.closest("td"),s=this.getColumnIndexByElement(o);s>=0&&r.showHeaderFilterMenu(s,!1)}else{var c=i.closest(".dx-row");this._processHeaderAction(t,c)}t.preventDefault()}
1_renderCore(){var e=this.element(),t={};if(!this._tableElement||this._dataController.isLoaded()||this._hasRowElements){e.addClass(this.addWidgetPrefix("headers")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")).empty(),this.setAria("role","presentation",e);var i=this._updateContent(this._renderTable({change:t}),t);return this.getRowCount()>1&&e.addClass("dx-header-multi-row"),super._renderCore.apply(this,arguments),i}}_renderRows(){(this._dataController.isLoaded()||this._hasRowElements)&&(super._renderRows.apply(this,arguments),this._hasRowElements=!0)}_renderRow(e,t){var i=1===this.getRowCount()?null:t.row.rowIndex;t.columns=this.getColumns(i),super._renderRow(e,t)}_createCell(e){var{column:t}=e,i=super._createCell.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&i.attr("rowSpan",t.rowspan),i}_getRows(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var i=0;i<t;i++)e.push({rowType:"header",rowIndex:i});return e}_getCellTemplate(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)}_columnOptionChanged(e){var{changeTypes:t}=e,{optionNames:i}=e;t.grouping||t.groupExpanding?t.grouping&&(this._isGroupingChanged=!0):(super._columnOptionChanged(e),(i.width||i.visible)&&this.resizeCompleted.fire())}_isElementVisible(e){return e&&e.visible}_alignCaptionByCenter(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter(".".concat(ue)).remove(),(t=this._getIndicatorContainer(e)).clone().addClass(ue).css("float","").insertBefore(e.children(".".concat(this.addWidgetPrefix(Dn)))))}_updateCell(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),super._updateCell.apply(this,arguments)}_updateIndicator(e,t,i){var r=super._updateIndicator.apply(this,arguments);return"center"===t.alignment&&this._alignCaptionByCenter(e),ts(this,e,t),r}_getIndicatorContainer(e,t){var i=super._getIndicatorContainer(e);return t?i:i.filter(":not(.".concat(ue,")"))}_isSortableElement(e){return!0}getHeadersRowHeight(){var e=this.getTableElement(),t=e&&e.find(".".concat(Ci));return t&&t.toArray().reduce((i,r)=>i+(0,F.Oq)(r),0)||0}getHeaderElement(e){var t=this.getColumnElements();return t&&t.eq(e)}getColumnElements(e,t){var r,i=this,o=i._columnsController,s=i.getRowCount();if(i.option("showColumnHeaders")){if(s>1&&(!(0,m.O9)(e)||(0,m.O9)(t))){var c=[],d=(0,m.O9)(t)?o.getChildrenByBandColumn(t,!0):o.getVisibleColumns();return(0,w.__)(d,(u,p)=>{var v=(0,m.O9)(e)?e:o.getRowIndex(p.index);(r=i._getCellElement(v,o.getVisibleIndex(p.index,v)))&&c.push(r.get(0))}),(0,x.A)(c)}if(!e||e<s)return i.getCellElements(e||0)}}getColumnIndexByElement(e){var t=this.getCellIndex(e),i=e.closest(".dx-row"),{rowIndex:r}=i[0],o=this.getColumns(r)[t];return o?o.index:-1}getVisibleColumnIndex(e,t){var i=this.getColumns()[e];return i?this._columnsController.getVisibleIndex(i.index,t):-1}getColumnWidths(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):super.getColumnWidths.apply(this,arguments)}allowDragging(e){var t,i=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(i);return(null!==(t=this.option("allowColumnReordering"))&&void 0!==t?t:this._columnsController.isColumnOptionUsed("allowReordering"))&&e.allowReordering&&r.length>1}getBoundingRect(){var e=this.getColumnElements();return e&&e.length?{top:this.getTableElement().offset().top}:null}getName(){return"headers"}getColumnCount(){var e=this.getColumnElements();return e?e.length:0}isVisible(){return this.option("showColumnHeaders")}optionChanged(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:super.optionChanged(e)}}getHeight(){return this.getElementHeight()}getContextMenuItems(e){var t=this,{column:i}=e;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var r=t.option("sorting");if(r&&"none"!==r.mode&&i&&i.allowSorting){var o=function(s){setTimeout(()=>{t._columnsController.changeSortOrder(i.index,s.itemData.value)})};return[{text:r.ascendingText,value:"asc",disabled:"asc"===i.sortOrder,icon:"context-menu-sort-asc",onItemClick:o},{text:r.descendingText,value:"desc",disabled:"desc"===i.sortOrder,icon:"context-menu-sort-desc",onItemClick:o},{text:r.clearText,value:"none",disabled:!i.sortOrder,icon:"context-menu-sort-none",onItemClick:o}]}}}getRowCount(){return this._columnsController&&this._columnsController.getRowCount()}setRowsOpacity(e,t,i){var r,o,s=this.getRowCount(),c=this._columnsController.getColumns(),d=c&&c[e],u=d&&d.isBand&&d.index,p=(f,O)=>{f.ownerBand===u&&(o.eq(O).css({opacity:t}),f.isBand&&this.setRowsOpacity(f.index,t,r+1))};if((0,m.O9)(u))for(r=i=i||0;r<s;r++)(o=this.getCellElements(r))&&this.getColumns(r).forEach(p)}}}};const W=(0,U.A)((0,U.A)((0,U.A)({},ge),q),{modules:[]});W.registerModule("columnHeaders",ns);var is=P(3771),qn=P(8745),pt=P(5652),ul=P(4168),rs=["filterValues","filterType","fixed","fixedPosition"],mi=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(rs),pl={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},os=Number.MAX_SAFE_INTEGER||9007199254740991,kt="groupExpand",Or=/columns\[(\d+)\]\.?/gi,_l={visible:!0,showInColumnChooser:!0},vl={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},Cl={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},gn="group",hn="columnChooser",fi=P(9518),Oi=P(9504),ss=function(a){a.filterOperations=a.defaultFilterOperations},ml=1,xi=function(a,e,t,i){var r={};if(e){(0,m.Kg)(e)&&(e={dataField:e}),a.setName(e);var o={};if(e.command)o=(0,pt.tm)(r,e);else{r=a.getCommonSettings(e),t&&t.name&&t.dataField&&(e=(0,A.X)({},e,{dataField:t.dataField}));var s=a._createCalculatedColumnOptions(e,i);e.type||(o={headerId:"dx-col-".concat(ml++)}),o=(0,pt.tm)(o,_l),(0,pt.tm)(o,r),(0,pt.tm)(o,s),(0,pt.tm)(o,e),(0,pt.tm)(o,{selector:null})}return e.filterOperations===e.defaultFilterOperations&&ss(o),o}},_n=function a(e,t,i,r){var o=[];return t&&(0,w.__)(t,(s,c)=>{var d=(r??0)+o.length,u=e._columnsUserState&&br(c,e._columnsUserState[d])&&e._columnsUserState[d],p=xi(e,c,u,i);
1p&&(i&&(p.ownerBand=i),o.push(p),p.columns&&(o=o.concat(a(e,p.columns,p,o.length)),delete p.columns,p.hasColumns=!0))}),o},Ut=function(a,e){for(var t=[],i=e[a];i;)t.unshift(i),i=e[a=i.index];return t},fl=function a(e,t,i){var r=[],o=t[e];if(o)for(var s=0;s<o.length;s++){var c=o[s];(!(0,m.O9)(c.groupIndex)||c.showWhenGrouped)&&(r.push(c),i&&c.isBand&&(r=r.concat(a(c.index,t,i))))}return r},as=function a(e,t){var i=0,r=e.getChildrenByBandColumn(t,!0);return(0,w.__)(r,(o,s)=>{s.isBand?(s.colspan=s.colspan||a(e,s.index),i+=s.colspan||1):i+=1}),i},xr=function(a){var e=(0,m.NW)(a);return"string"!==e&&"boolean"!==e&&"number"!==e&&"date"!==e&&"object"!==e&&(e=void 0),e},ls=function(a,e){switch(a){case"date":case"datetime":return Oi.A.getDateSerializationFormat(e);case"number":if((0,m.Kg)(e))return"string";if((0,m.kf)(e))return null}},cs=function(a,e){a.deserializeValue||(q.isDateType(e)&&(a.deserializeValue=function(t){return Oi.A.deserializeDate(t)},a.serializeValue=function(t){return(0,m.Kg)(t)?t:Oi.A.serializeDate(t,this.serializationFormat)}),"number"===e&&(a.deserializeValue=function(t){var i=parseFloat(t);return isNaN(i)?t:i},a.serializeValue=function(t,i){return"filter"===i?t:(0,m.O9)(t)&&"string"===this.serializationFormat?t.toString():t}))},bl=function(a){return!0===a.value?this.trueText||"true":!1===a.value?this.falseText||"false":a.valueText||""},Pr=function(a){if("boolean"===a)return bl},ds=function(a){(0,w.__)(a._columns,(e,t)=>{t.index=e}),(0,w.__)(a._columns,(e,t)=>{(0,m.Gv)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),(0,w.__)(a._commandColumns,(e,t)=>{t.index=-(e+1)})},us=function(a,e){(0,fi.Il)(a._columns,"groupIndex",e,t=>{var{grouped:i}=t;return delete t.grouped,i})},Pi=function(a,e,t){var o,i=(0,m.Gv)(e)?e.rowIndex:null,r=t===gn?a.getGroupColumns():t===hn?a.getChooserColumns():a.getVisibleColumns(i);return e=(0,m.Gv)(e)?e.columnIndex:e,(o=r[e])&&o.type===kt&&(o=a._columns.filter(s=>o.type===s.type)[0]||o),o&&(0,m.O9)(o.index)?o.index:-1};function br(a,e){return a&&e&&e.name===(a.name||a.dataField)&&(e.dataField===a.dataField||a.name)}var ps=function(a){var d,u,p,e=a._columnsUserState,t=a._ignoreColumnOptionNames||[],i=a._columns,r={},o=[],s=!0,c=[];function v(S,E){if(E)for(var L=0;L<mi.length;L++){var G=mi[L];t.includes(G)||("dataType"===G?S[G]=S[G]||E[G]:rs.includes(G)?G in E&&(S[G]=E[G]):("selectedFilterOperation"===G&&E[G]&&(S.defaultSelectedFilterOperation=S[G]||null),S[G]=E[G]))}}function f(S,E){for(var L=E.name||E.dataField,G=r[L]||0,J=0;J<S.length;J++)if(br(E,S[J])){if(!G)return r[L]=r[L]||0,r[L]++,J;G--}return-1}if(e){for(p=0;p<i.length;p++)u=f(e,i[p]),s=s&&u>=0,c.push(u);for(p=0;p<i.length;p++)d=i[p],u=c[p],(a._hasUserState||s)&&v(d,e[u]),u>=0&&(0,m.O9)(e[u].initialIndex)?o[u]=d:o.push(d);var O=!1;for(p=0;p<e.length;p++){var b=e[p];b.added&&f(i,b)<0&&(v(d=xi(a,b.added),b),o.push(d),b.added.columns&&(O=!0))}O&&(ds(a),o=_n(a,o)),vn(a,o)}},$t=function(a,e){ds(a),us(a,e),function(a,e){(0,w.__)(a._columns,(t,i)=>{(0,m.O9)(i.sortIndex)&&!Mi(i.sortOrder)&&delete i.sortIndex}),(0,fi.Il)(a._columns,"sortIndex",e,t=>!(0,m.O9)(t.groupIndex)&&Mi(t.sortOrder))}(a,e),ms(a),function(a,e){for(var t,i=[],r=a.getBandColumnsCache(),o=[],s=a._columns.filter(u=>!u.command),c=0;c<s.length;c++)t=s[c],Ut(c,r.columnParentByIndex).length?o.push(t):i.push(t);(0,fi.Il)(o,"visibleIndex",e),(0,fi.Il)(i,"visibleIndex",e)}(a,e)},bi=function(a){a.resetColumnsCache()};function vn(a,e){a._previousColumns=a._columns,a._columns=e,bi(a),a.updateColumnDataTypes()}var gt=function(a,e,t,i){var r,o=a._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};t=(t=t||"all").split(".")[0];var{changeTypes:s}=o;e&&!s[e]&&(s[e]=!0,s.length++);var{optionNames:c}=o;t&&!c[t]&&(c[t]=!0,c.length++),(void 0===i||i!==o.columnIndex)&&((0,m.O9)(i)&&(null!==(r=o.columnIndices)&&void 0!==r||(o.columnIndices=[]),(0,m.O9)(o.columnIndex)&&o.columnIndices.push(o.columnIndex),o.columnIndices.push(i)),delete o.columnIndex),a._columnChanges=o,bi(a)},Nn=function(a){var r,e=a.option("onColumnsChanging"),t=a._columnChanges;a.isInitialized()&&!a._updateLockCount&&t&&(e&&(a._updateLockCount++,e((0,A.X)({component:a.component},t)),a._updateLockCount--),a._columnChanges=void 0,(r=t.optionNames)&&["dataField","lookup","dataType","columns"].some(o=>r[o])?(a._reinitAfterLookupChanges=t?.optionNames.lookup,a.reinit(),a._reinitAfterLookupChanges=void 0):a.columnsChanged.fire(t))},Mr=function(a,e,t,i,r){var c,d,u,o=(0,me.Hz)(t),s=e.index;if(3===arguments.length)return o(e,{functionsAsIs:!0});var p=o(e,{functionsAsIs:!0});if(!(0,j.RL)(p,i,{maxDepth:5})){"groupIndex"===t||"calculateGroupValue"===t?(d="grouping",function(a,e,t,i){if(t>=0)i>=0||(e.lastSortOrder=e.sortOrder);else{var o=a.option("sorting.mode"),s=e.lastSortOrder;
1"single"===o&&a._columns.some(d=>d!==e&&(0,m.O9)(d.sortIndex))&&(s=void 0),e.sortOrder=s}}(a,e,i,p)):d="sortIndex"===t||"sortOrder"===t||"calculateSortValue"===t?"sorting":"columns";var v=(0,me.vL)(t);v(e,i,{functionsAsIs:!0});var f=function(a,e){var i,t=[],r=a.getBandColumnsCache(),o=function(c){return c.ownerBand===e.ownerBand};if(r.isPlain){var s=a._columns.indexOf(e);s>=0&&(t=["columns[".concat(s,"]")])}else for(i=a._columns.filter(o);i.length&&-1!==i.indexOf(e);)t.unshift("columns[".concat(i.indexOf(e),"]")),i=(e=r.columnParentByIndex[e.index])?a._columns.filter(o):[];return t.join(".")}(a,e);Cl[t]&&($t(a,e),i=o(e)),("name"===t||"allowEditing"===t)&&a._checkColumns(),!(0,m.O9)(p)&&!(0,m.O9)(i)&&0!==t.indexOf("buffer")&&(r=!0),r?bi(a):(!mi.includes(t)&&"visibleWidth"!==t&&(c=a.option("columns"),u=a.getColumnByPath(f,c),(0,m.Kg)(u)&&(u=c[s]={dataField:u}),u&&br(u,e)&&v(u,i,{functionsAsIs:!0})),gt(a,d,t,s)),f&&function(a,e){var{value:t}=e,{optionName:i}=e,{prevValue:r}=e,{fullOptionName:o}=e,s="".concat(o,".").concat(i);!pl[i]&&a._skipProcessingColumnsChange!==s&&(a._skipProcessingColumnsChange=s,a.component._notifyOptionChanged(s,t,r),a._skipProcessingColumnsChange=!1)}(a,{fullOptionName:f,optionName:t,value:i,prevValue:p})}};function Mi(a){return"asc"===a||"desc"===a}var ht=function(a,e){if(this.dataField){var t=this.dataField.split("."),i=t.length-1;this.serializeValue&&(e=this.serializeValue(e));for(var r=0;r<i;r++){var o=t[r];a=a[o]=a[o]||{}}a[t[i]]=e}},Il=function a(e,t,i){var r=[];return e[t=t||0]&&(0,w.__)(e[t],(o,s)=>{(s.ownerBand===i||s.type===kt)&&(s.isBand&&s.colspan?r.push.apply(r,a(e,t+1,s.index)):(!s.command||t<1)&&r.push(s))}),r},wr=(a,e)=>!!a._columns.filter(i=>i.type===e.type).length,gs=function(a,e){var t=a.option("rtlEnabled");return e.command&&!wr(a,e)||!e.fixedPosition?t?"right":"left":e.fixedPosition},hs=function(a,e,t,i){var r,o=this.getRowCount(),s=a[i]&&a[i].rowspan,c=e.filter(d=>d.type===t);return a.forEach((d,u)=>{d.type===t&&(r=u,s=a[u+1]?a[u+1].rowspan:o)}),s>1&&(c=(0,w.Tj)(c,d=>(0,A.X)({},d,{rowspan:s}))),c.unshift.apply(c,(0,m.O9)(r)?[r,1]:[i,0]),a.splice.apply(a,c),s||1},_s=function(a,e){for(var t=a?a.toString():"0";t.length<e;)t="0".concat(t);return t},vs=(a,e,t,i)=>{for(var r,o,s=e.slice().map(O=>(0,A.X)({},O)),c=a._isColumnFixing(),d=t.slice().map(O=>(0,A.X)({fixed:c},O)),u=O=>t.reduce((b,S,E)=>S.type===(i&&O.type===kt?"expand":O.type)||S.command===O.command?E:b,-1),p=O=>O.command!==t[o].command,v=0;v<e.length;v++)(o=(r=e[v])&&(r.type||r.command)?u(r):-1)>=0&&(i?(s[v]=(0,A.X)({fixed:c},t[o],r),r.type!==kt&&(d=d.filter(p))):s[v]=(0,A.X)({},r,t[o],r.type===kt&&{visibleIndex:r.visibleIndex,index:r.index,headerId:r.headerId,allowFixing:0===r.groupIndex,allowReordering:0===r.groupIndex,groupIndex:r.groupIndex}));return e.length&&i&&d.length&&(s=s.concat(d)),s},Cs=(a,e)=>(0,m.O9)(e.fixed)||!e.type?e.fixed:a._isColumnFixing(),ms=a=>{a._bandColumnsCache=void 0},fs=(a,e)=>{var i,t=(0,m.Kg)(e)&&e.substr(0,e.indexOf(":"));if(void 0!==e)return t&&(e=e.substr(t.length+1)),t?i=a.filter(r=>"".concat(r[t])===e)[0]:["index","name","dataField","caption"].some(r=>!!(i=a.filter(o=>o[r]===e)[0])),i},Os={defaultOptions:()=>({commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:R.A.format("dxDataGrid-trueText"),falseText:R.A.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}),controllers:{columns:class Vl extends ge.Controller{init(e){this._dataController=this.getController("data"),this._focusController=this.getController("focus"),this._stateStoringController=this.getController("stateStoring");var t=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!t,this._isColumnsFromOptions?(vn(this,t?_n(this,t):[]),ps(this)):vn(this,this._columnsUserState?_n(this,this._columnsUserState):this._columns),function(a){var e=a._getExpandColumnOptions();a.addCommandColumn(e)}(this),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,e):$t(this),this._checkColumns()}
1_getExpandColumnOptions(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}}_getFirstItems(e){var t,i=[];return e&&e.items().length>0&&(t=q.normalizeSortingInfo(e.group()).length,i=function r(o,s){if(!o||!s)return o;for(var c=0;c<o.length;c++){var d=r(o[c].items||o[c].collapsedItems,s-1);if(d&&d.length)return d}}(e.items(),t)||[]),i}_endUpdateCore(){!this._skipProcessingColumnsChange&&Nn(this)}callbackNames(){return["columnsChanged"]}getColumnByPath(e,t){var i,r=[];return e.replace(Or,(o,s)=>(r.push(parseInt(s)),"")),r.length&&(i=t?r.reduce((o,s)=>o&&o.columns&&o.columns[s],{columns:t}):function(a,e){var t,i,o=function(c){return c.ownerBand===(t?t.index:void 0)};if(a.getBandColumnsCache().isPlain)t=a._columns[e[0]];else{i=a._columns.filter(o);for(var s=0;s<e.length;s++)(t=i[e[s]])&&(i=a._columns.filter(o))}return t}(this,r)),i}optionChanged(e){var t;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value!==e.previousValue&&!this.option("columns")&&(!Array.isArray(e.value)||!Array.isArray(e.previousValue))&&(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,this.reinit("columnWidth"===e.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:super.optionChanged(e)}}_columnOptionChanged(e){var t={},i=this.getColumnByPath(e.fullName),r=e.fullName.replace(Or,"");i&&(r?t[r]=e.value:t=e.value,this._skipProcessingColumnsChange=e.fullName,this.columnOption(i.index,t),this._skipProcessingColumnsChange=!1)}_updateRequireResize(e){var{component:t}=this;"width"===e.fullName.replace(Or,"")&&t._updateLockCount&&(t._requireResize=!0)}publicMethods(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]}applyDataSource(e,t,i){var r=e&&e.isLoaded();if(this._dataSource=e,!this._dataSourceApplied||0===this._dataSourceColumnsCount||t||this.option("regenerateColumnsByVisibleItems")){if(r){if(!this._isColumnsFromOptions){var o=function(a,e){for(var i,t=a._getFirstItems(e),r={},o=[],s=0;s<t.length;s++)if(t[s])for(i in t[s])(!(0,m.Tn)(t[s][i])||Rn.A.isWrapped(t[s][i]))&&(r[i]=!0);for(i in r)if(0!==i.indexOf("__")){var c=xi(a,i);o.push(c)}return o}(this,e);o.length&&(vn(this,o),this._dataSourceColumnsCount=this._columns.length,ps(this))}return this.updateColumns(e,t,i)}this._dataSourceApplied=!1,$t(this)}else if(r&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(e))return gt(this,"columns"),Nn(this),(new k.cY).reject().promise()}reset(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()}resetColumnsCache(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,ms(this)}reinit(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)}isInitialized(){return!!this._columns.length||!!this.option("columns")}isDataSourceApplied(){return this._dataSourceApplied}getCommonSettings(e){var t,i,r=(!e||!e.type)&&this.option("commonColumnSettings")||{},o=null!==(t=this.option("grouping"))&&void 0!==t?t:{},s=null!==(i=this.option("groupPanel"))&&void 0!==i?i:{};return(0,A.X)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:o.autoExpandAll,allowCollapsing:o.allowCollapsing,allowGrouping:s.allowColumnDragging&&s.visible||o.contextMenuEnabled},r)}isColumnOptionUsed(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0}isAllDataTypesDefined(e){var t=this._columns;if(!t.length)return!1;for(var i=0;i<t.length;i++)if((t[i].dataField||t[i].calculateCellValue!==t[i].defaultCalculateCellValue)&&(!t[i].dataType||e&&t[i].deserializeValue&&void 0===t[i].serializationFormat))return!1;return!0}getColumns(){return this._columns}isBandColumnsUsed(){return this.getColumns().some(e=>e.isBand)}getGroupColumns(){var e=[];return(0,w.__)(this._columns,function(){(0,m.O9)(this.groupIndex)&&(e[this.groupIndex]=this)}),e}_shouldReturnVisibleColumns(){return!0}_compileVisibleColumns(e){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),e=(0,m.O9)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]}getVisibleColumns(e,t){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]}getFixedColumns(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,m.O9)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]}getFilteringColumns(){return this.getColumns().filter(e=>(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)).map(e=>{var t=(0,A.X)(!0,{},e);return(0,m.O9)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.f
1ilterOperations:null,t})}getColumnIndexOffset(){return 0}_getFixedColumnsCore(){var s,c,d,e=[],t=this.getRowCount(),r={command:"transparent"},o=0;if(this._isColumnFixing())for(var u=0;u<=t;u++){s=0,d=null,c=null;for(var p=this.getVisibleColumns(u,!0),v=0;v<p.length;v++){var f=p[v-1],O=p[v];O.fixed?f&&f.fixed&&gs(this,f)!==gs(this,O)?(0,m.O9)(c)||(c=v):d=O.fixedPosition:(0===u&&(O.isBand&&O.colspan?o+=O.colspan:o++),s++,(0,m.O9)(c)||(c=v))}if(0===u&&(0===s||s>=p.length))return[];(0,m.O9)(c)||(c="right"===d?0:p.length),e[u]=p.slice(0),r.colspan||(r.colspan=o),e[u].splice(c,s,r)}return e.map(b=>b.map(S=>{var E=(0,U.A)({},S);return E.headerId&&(E.headerId+="-fixed"),E}))}_isColumnFixing(){var e=this.option("columnFixing.enabled");return!e&&(0,w.__)(this._columns,(t,i)=>{if(i.fixed)return e=!0,!1}),e}_getExpandColumnsCore(){return this.getGroupColumns()}getExpandColumns(){var t,e=this._getExpandColumnsCore(),i=e.filter(c=>0===c.groupIndex)[0],r=i&&i.fixed,o=this._isColumnFixing(),s=this.option("rtlEnabled");return e.length&&(t=this.columnOption("command:expand")),(0,w.Tj)(e,c=>(0,A.X)({},c,{visibleWidth:null,minWidth:null,cellTemplate:(0,m.O9)(c.groupIndex)?null:c.
1cellTemplate,headerCellTemplate:null,fixed:!(!(0,m.O9)(c.groupIndex)||!r)||o,fixedPosition:s?"right":"left"},t,{index:c.index,type:c.type||kt}))}getBandColumnsCache(){if(!this._bandColumnsCache){var e=this._columns,t={},i={},r=!0;e.forEach(o=>{var{ownerBand:s}=o,c=(0,m.Gv)(s)?s.index:s,d=e[c];o.hasColumns&&(r=!1),o.colspan&&(o.colspan=void 0),o.rowspan&&(o.rowspan=void 0),d?i[o.index]=d:c=-1,t[c]=t[c]||[],t[c].push(o)}),this._bandColumnsCache={isPlain:r,columnChildrenByIndex:t,columnParentByIndex:i}}return this._bandColumnsCache}_isColumnVisible(e){return e.visible&&this.isParentColumnVisible(e.index)}_isColumnInGroupPanel(e){return(0,m.O9)(e.groupIndex)&&!e.showWhenGrouped}hasVisibleDataColumns(){return this._columns.some(t=>{var i=this._isColumnVisible(t),r=this._isColumnInGroupPanel(t);return i&&!r&&!t.command})}_compileVisibleColumnsCore(){var e=this.getBandColumnsCache(),t=vs(this,this._columns,this._commandColumns,!0);!function(a,e,t){for(var i,r=0;r<e.length;r++){var o=e[r];(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||as(a,o.index)),(!o.isBand||!o.colspan)&&(i=a.getRowCount(),!o.command&&(!(0,m.O9)(o.groupIndex)||o.showWhenGrouped)&&(i-=Ut(o.index,t.columnParentByIndex).length),i>1&&(o.rowspan=i)))}}(this,t,e);var i=this._getIndexedColumns(t),r=this._getVisibleColumnsFromIndexed(i);return!this.hasVisibleDataColumns()&&this._columns.length&&r[r.length-1].push({command:"empty"}),r}_getIndexedColumns(e){for(var t=this.option("rtlEnabled"),i=this.getRowCount(),r=function(a){var e;for(e=0;a>1;e++)a/=10;return e}(e.length),o=this.getBandColumnsCache(),s=[],c=[],d=0;d<i;d+=1)c[d]=[{}],s[d]=[{},{},{}];return e.forEach(u=>{var p,v,f,O,S,{visibleIndex:b}=u,E=Ut(u.index,o.columnParentByIndex),L=this._isColumnVisible(u),G=this._isColumnInGroupPanel(u);if(L&&!G){var J=E.length;if(b<0)b=-b,S=c[J];else if(u.fixed=null!==(v=null===(p=E[0])||void 0===p?void 0:p.fixed)&&void 0!==v?v:u.fixed,u.fixedPosition=null!==(O=null===(f=E[0])||void 0===f?void 0:f.fixedPosition)&&void 0!==O?O:u.fixedPosition,u.fixed){var he=!!u.command&&!wr(this,u),ee="right"===u.fixedPosition;t&&!he&&(ee=!ee),S=ee?s[J][2]:s[J][0]}else S=s[J][1];if(E.length){b=_s(b,r);for(var oe=E.length-1;oe>=0;oe-=1)b=_s(E[oe].visibleIndex,r)+b}S[b]=S[b]||[],S[b].push(u)}}),{positiveIndexedColumns:s,negativeIndexedColumns:c}}_getVisibleColumnsFromIndexed(e){for(var t=this,{positiveIndexedColumns:i,negativeIndexedColumns:r}=e,o=[],s=this.getRowCount(),c=vs(this,this.getExpandColumns(),this._columns),d=0,u=0,p=function(f){o.push([]),(0,pt.ap)(r[f],(S,E)=>{o[f].unshift.apply(o[f],E)});var O=o[f].length;i[f].forEach(S=>{(0,pt.ap)(S,(E,L)=>{o[f].push.apply(o[f],L)})}),u<=f&&(u+=hs.call(t,o[f],c,"detailExpand",O)),d<=f&&(d+=hs.call(t,o[f],c,kt,O))},v=0;v<s;v+=1)p(v);return o.push(Il(o)),o}getInvisibleColumns(e,t){var o,i=this,r=[];return(0,w.__)(e=e||i._columns,(s,c)=>{if(c.ownerBand===t){if(c.isBand)return void((o=c.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(c.index),c.index):i.getChildrenByBandColumn(c.index)).length&&(r.push(c),r=r.concat(o)));c.visible||r.push(c)}}),r}getChooserColumns(e){return((a,e)=>{if("asc"!==e&&"desc"!==e)return a;var t="asc"===e?1:-1;return a.sort((i,r)=>t*(i.caption||"").localeCompare(r.caption||"")),a})((e?this.getColumns():this.getInvisibleColumns()).filter(o=>o.showInColumnChooser),this.option("columnChooser.sortOrder"))}allowMoveColumn(e,t,i,r){var o=Pi(this,e,i),s=this._columns[o];return!(!s||!(s.allowReordering||s.allowGrouping||s.allowHiding))&&(i===r?i!==hn&&(e=(0,m.Gv)(e)?e.columnIndex:e)!==(t=(0,m.Gv)(t)?t.columnIndex:t)&&e+1!==t:i===gn&&r!==hn||r===gn?s&&s.allowGrouping:i!==hn&&r!==hn||s&&s.allowHiding)}moveColumn(e,t,i,r){var s,u,o={},c=Pi(this,e,i),d=Pi(this,t,r);if(c>=0){var p=this._columns[c];if(t=(0,m.Gv)(t)?t.columnIndex:t,u=d>=0?this._columns[d].groupIndex:-1,(0,m.O9)(p.groupIndex)&&i===gn&&(u>p.groupIndex&&u--,r!==gn?o.groupIndex=void 0:(s=p.groupIndex,delete p.groupIndex,us(this))),r===gn)o.groupIndex=function(a,e,t){var r,i=a.getGroupColumns();if(t>=0)for(r=0;r<i.length;r++)i[r].groupIndex>=t&&i[r].groupIndex++;else for(t=0,r=0;r<i.length;r++)t=Math.max(t,i[r].groupIndex+1);return t}(this,0,u),p.groupIndex=s;else if(t>=0){var v=this._columns[d];o.visibleIndex=!v||p.ownerBand!==v.ownerBand||Cs(this,p)^Cs(this,v)?os:v.visibleIndex}var f=r!==hn;p.visible!==f&&(o.visible=f),this.columnOption(p.index,o)}}changeSortOrder(e,t){var i={},r=this.option("sorting"),o=r&&r.mode,d=this._columns[e];("single"===o||"multiple"===o)&&d&&d.allowSorting&&(("single"===o||
1!t)&&!(0,m.O9)(d.groupIndex)&&(0,w.__)(this._columns,function(u){u!==e&&this.sortOrder&&((0,m.O9)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),Mi(t)?d.sortOrder!==t&&(i.sortOrder=t):"none"===t?d.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):function(u){if("ctrl"===t){if(!("sortOrder"in u)||!("sortIndex"in u))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else i.sortOrder=(0,m.O9)(u.groupIndex)||(0,m.O9)(u.sortIndex)?"desc"===u.sortOrder?"asc":"desc":"asc"}(d)),this.columnOption(d.index,i)}getSortDataSourceParameters(e){var t=[],i=[];return(0,w.__)(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,m.O9)(this.sortIndex)&&!(0,m.O9)(this.groupIndex)&&(t[this.sortIndex]=this)}),(0,w.__)(t,function(){if(Mi(this&&this.sortOrder)){var o={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(o.compare=this.sortingMethod.bind(this)),i.push(o)}}),i.length>0?i:null}getGroupDataSourceParameters(e){var t=[];return(0,w.__)(this.getGroupColumns(),function(){var i=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(i){var r={selector:i,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(r.compare=this.sortingMethod.bind(this)),t.push(r)}}),t.length>0?t:null}refresh(e){var t=[];return(0,w.__)(this._columns,function(){var{lookup:i}=this;if(i&&!this.calculateDisplayValue){if(e&&i.valueMap)return;i.update&&t.push(i.update())}}),k.z7.apply(x.A,t).done(bi.bind(null,this))}_updateColumnOptions(e,t){var i,r,o,s,c=this._reinitAfterLookupChanges&&(null===(i=this._previousColumns)||void 0===i?void 0:i[t]);e.selector=null!==(r=e.selector)&&void 0!==r?r:p=>e.calculateCellValue(p),e.selector.columnIndex=t,e.selector.originalCallback=c&&null!==(s=null===(o=this._previousColumns[t].selector)||void 0===o?void 0:o.originalCallback)&&void 0!==s?s:e.selector,(0,w.__)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(p,v)=>{var f=e[v];if((0,m.Tn)(f))if(f.originalCallback)e[v].context.column=e;else{var O={column:e};e[v]=function(b){return f.call(O.column,b)},e[v].originalCallback=f,e[v].columnIndex=t,e[v].context=O}}),(0,m.Kg)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=(0,me.Hz)(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),cs(e,e.dataType);var{lookup:d}=e;d&&cs(d,d.dataType);var u=d?d.dataType:e.dataType;u&&(e.alignment=e.alignment||function(a,e){switch(a){case"number":return"right";case"boolean":return"center";default:return(0,De.n)(e)}}(u,this.option("rtlEnabled")),e.format=e.format||q.getFormatByDataType(u),e.customizeText=e.customizeText||Pr(u),e.defaultFilterOperations=e.defaultFilterOperations||!d&&vl[u]||[],(0,m.O9)(e.filterOperations)||ss(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,m.O9)(e.showEditorAlways)?e.showEditorAlways:"boolean"===u&&!e.cellTemplate&&!e.lookup)}updateColumnDataTypes(e){var t=this,i=t.option("dateSerializationFormat"),r=t._getFirstItems(e),o=!1;return(0,w.__)(t._columns,(s,c)=>{var d,u,p,v,f,{lookup:O}=c;if(q.isDateType(c.dataType)&&void 0===c.serializationFormat&&(c.serializationFormat=i),O&&q.isDateType(O.dataType)&&void 0===c.serializationFormat&&(O.serializationFormat=i),c.calculateCellValue&&r.length){if(!c.dataType||O&&!O.dataType){for(d=0;d<r.length;d++)u=c.calculateCellValue(r[d]),c.dataType||(f=xr(u),(p=p||f)&&f&&p!==f&&(p="string")),O&&!O.dataType&&(f=xr(q.getDisplayValue(c,u,r[d])),(v=v||f)&&f&&v!==f&&(v="string"));(p||v)&&(p&&(c.dataType=p),O&&v&&(O.dataType=v),o=!0)}if(void 0===c.serializationFormat||O&&void 0===O.serializationFormat)for(d=0;d<r.length;d++)u=c.calculateCellValue(r[d],!0),void 0===c.serializationFormat&&(c.serializationFormat=ls(c.dataType,u)),O&&void 0===O.serializationFormat&&(O.serializationFormat=ls(O.dataType,O.calculateCellValue(u,!0)))}t._updateColumnOptions(c,s)}),o}_customizeColumns(e){var t=this.option("customizeColumns");t&&(e.some(r=>(0,m.Gv)(r.ownerBand))&&$t(this),t(e),vn(this,_n(this,e)))}updateColumns(e,t,i){if(t||this.updateSortingGrouping(e),!e||e.isLoaded()){var r=e?e.sort()||[]:this.getSortDataSourceParameters(),o=e?e.group()||[]:this.getGroupDataSourceParameters(),s=e?.lastLoadOptions().filter;i||this._customizeColumns(this._columns),$t(this);var c=this._columns;return(0,k.z7)(this.refresh(!0)).always(()=>{this._columns===c&&(this._updateChanges(e,{sorting:r,grouping:o,filtering:s}),Nn(this))})}}_updateChanges(e,t){e&&(this.updateColumnDataTypes(e),this._dataSourceApplied=!0),q.equalSortParameters(t.sorting,this.get
1SortDataSourceParameters())||gt(this,"sorting"),q.equalSortParameters(t.grouping,this.getGroupDataSourceParameters())||gt(this,"grouping"),this._dataController&&!q.equalFilterParameters(t.filtering,this._dataController.getCombinedFilter())&&gt(this,"filtering"),gt(this,"columns")}updateSortingGrouping(e,t){var r,o,i=this,s=function(f,O,b){(0,w.__)(f,(S,E)=>{if(delete E[b],O)for(var L=0;L<O.length;L++){var{selector:G}=O[L],{isExpanded:J}=O[L];if(G===E.dataField||G===E.name||G===E.selector||G===E.calculateCellValue||G===E.calculateGroupValue||G===E.calculateDisplayValue){E.sortOrder=t?"sortOrder"in E?E.sortOrder:O[L].desc?"desc":"asc":E.sortOrder||(O[L].desc?"desc":"asc"),void 0!==J&&(E.autoExpandGroup=J),E[b]=L;break}}})};if(e){r=q.normalizeSortingInfo(e.sort());var c=q.normalizeSortingInfo(e.group()),d=i.getGroupDataSourceParameters(),u=i.getSortDataSourceParameters(),p=!q.equalSortParameters(c,d,!0),v=!p&&!q.equalSortParameters(c,d);i._columns.length||((0,w.__)(c,(f,O)=>{i._columns.push(O.selector)}),(0,w.__)(r,(f,O)=>{(0,m.Tn)(O.selector)||i._columns.push(O.selector)}),vn(i,_n(i,i._columns))),(t||!d&&!i._hasUserState)&&(p||v)&&(s(i._columns,c,"groupIndex"),t&&(p&&gt(i,"grouping"),v&&gt(i,"groupExpanding"),o=!0)),(t||!u&&!i._hasUserState)&&!q.equalSortParameters(r,u)&&(s(i._columns,r,"sortIndex"),t&&(gt(i,"sorting"),o=!0)),o&&Nn(i)}}updateFilter(e,t,i,r){if(!Array.isArray(e))return e;if(i=void 0!==(e=(0,A.X)([],e)).columnIndex?e.columnIndex:i,r=void 0!==e.filterValue?e.filterValue:r,(0,m.Kg)(e[0])&&"!"!==e[0]){var o=this.columnOption(e[0]);t?(0,is.A)().forceIsoDateParsing&&o&&o.serializeValue&&e.length>1&&(e[e.length-1]=o.serializeValue(e[e.length-1],"filter")):o&&o.selector&&(e[0]=o.selector,e[0].columnIndex=o.index)}else(0,m.Tn)(e[0])&&(e[0].columnIndex=i,e[0].filterValue=r,e[0].selectedFilterOperation=e.selectedFilterOperation);for(var s=0;s<e.length;s++)e[s]=this.updateFilter(e[s],t,i,r);return e}columnCount(){return this._columns?this._columns.length:0}columnOption(e,t,i,r){var o=this,s=o._columns.concat(o._commandColumns),c=fs(s,e);if(c){if(1===arguments.length)return(0,A.X)({},c);if((0,m.Kg)(t)){if(2===arguments.length)return Mr(o,c,t);Mr(o,c,t,i,r)}else(0,m.Gv)(t)&&(0,w.__)(t,(d,u)=>{Mr(o,c,d,u,r)});Nn(o)}}clearSorting(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"sortOrder",void 0),delete fs(this._columns,t).sortOrder;this.endUpdate()}clearGrouping(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"groupIndex",void 0);this.endUpdate()}getVisibleIndex(e,t){for(var i=this.getVisibleColumns(t),r=i.length-1;r>=0;r--)if(i[r].index===e)return r;return-1}getVisibleIndexByColumn(e,t){var i=this.getVisibleColumns(t),r=i.filter(o=>o.index===e.index&&o.command===e.command)[0];return i.indexOf(r)}getVisibleColumnIndex(e,t){var i=this.columnOption(e,"index");return this.getVisibleIndex(i,t)}addColumn(e){var t=xi(this,e),i=this._columns.length;this._columns.push(t),t.isBand&&(this._columns=_n(this,this._columns),t=this._columns[i]),t.added=e,$t(this,t),this.updateColumns(this._dataSource),this._checkColumns()}deleteColumn(e){var a,t=this.columnOption(e);if(t&&t.index>=0){if((a=this._columns).forEach(e=>{(0,m.O9)(e.ownerBand)&&(e.ownerBand=a[e.ownerBand])}),this._columns.splice(t.index,1),t.isBand){var i=this.getChildrenByBandColumn(t.index).map(r=>r.index);this._columns=this._columns.filter(r=>i.indexOf(r.index)<0)}$t(this),this.updateColumns(this._dataSource)}}addCommandColumn(e){var t=this._commandColumns.filter(i=>i.command===e.command)[0];t||this._commandColumns.push(t=e)}getUserState(){var i,e=this._columns,t=[];function r(o,s){void 0!==e[i][s]&&(t[i][s]=e[i][s])}for(i=0;i<e.length;i++)t[i]={},(0,w.__)(mi,r);return t}setName(e){e.name=e.name||e.dataField||e.type}setUserState(e){var t=this._dataSource,i=this.option("stateStoring.ignoreColumnOptionNames");if(e?.forEach(this.setName),!i){i=[];var r=this.getCommonSettings();this.option("columnChooser.enabled")||i.push("visible"),"none"===this.option("sorting.mode")&&i.push("sortIndex","sortOrder"),r.allowGrouping||i.push("groupIndex"),r.allowFixing||i.push("fixed","fixedPosition"),r.allowResizing||i.push("width","visibleWidth");var o=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&o&&i.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&o&&i.push("filterValues","filterType")}this._columnsUserState=e,this._ignoreColumnOptionNames=i,this._hasUserState=!!e,gt(this,"filtering"),this.init(!0),t&&(t.sort(this.getSortDataSourceParameters()),t.group(this.getGroupDataSourceParameters()))}_checkColumns(){var e={},t=!1,i=[];this._columns.forEach(r=>{var o,{name:s}=r,c=null===(o=r.columns)||void 0===o?void 0:o.length,d=r.allowEditing&&(r.dataField||r.setCellValue)&&!c;s?(e[s]&&i.push('"'.concat(s,'"')),e[s]=!0):d&&(t=!0)}),i.length&&Oe.A.log("E1059",i.join(", ")),t&&Oe.A.log("E1060")}_createCalculatedColumnOptions(e,t){var i={},{dataField:r}=e;if((Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,r=null),r){if((0,m.Kg)(r)){var o=(0,me.Hz)(r);i={caption:(0,qn.Bc)(r),calculateCellValue(s,c){var d=o(s);return this.deserializeValue&&!c?this.deserializeValue(d):d},setCellValue:ht,parseValue(s){var c,d;return"number"===this.dataType?(0,m.Kg)(s)&&this.format?c=function(a,e){var t=In.A.parse(a);if((0,m.kf)(t)){var i=In.A.format(t,e),r=In.A.format(t,"decimal");if(i===a||r===a)return t}}(s.trim(),this.format):(0,m.O9)(s)&&(0,m.kf)(s)&&(c=Number(s)):"boolean"===this.dataType?s===this.trueText?c=!0:s===this.falseText&&(c=!1):q.isDateType(this.dataType)?(d=dt.A.parse(s,this.format))&&(c=d):c=s,c}}}i.allowFiltering=!0}else i.allowFiltering=!!e.calculateFilterExpression;return i.calculateFilterExpression=function(){return At.defaultCalculateFilterExpression.apply(this,arguments)},i.defaultFilterOperation="=",i.createFilterExpression=function(s,c){var d;return this.calculateFilterExpression&&(d=this.calculateFilterExpression.apply(this,arguments)),(0,m.Tn)(d)&&(d=[d,"=",!0]),d&&(
1d.columnIndex=this.index,d.filterValue=s,d.selectedFilterOperation=c),d},(!r||!(0,m.Kg)(r))&&(0,A.X)(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:()=>null}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),e.selectedFilterOperation&&!("defaultSelectedFilterOperation"in i)&&(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue(s,c){return this.valueExpr&&(s=this.valueMap&&this.valueMap[s]),this.deserializeValue&&!c?this.deserializeValue(s):s},updateValueMap(){if(this.valueMap={},this.items)for(var s=(0,me.Hz)(this.valueExpr),c=(0,me.Hz)(this.displayExpr),d=0;d<this.items.length;d++){var u=this.items[d],p=c(u);this.valueMap[s(u)]=p,this.dataType=this.dataType||xr(p)}},update(){var s=this,{dataSource:c}=s;if(c)if((0,m.Tn)(c)&&!Rn.A.isWrapped(c)&&(c=c({})),(0,m.Qd)(c)||c instanceof ul.A||Array.isArray(c)){if(s.valueExpr){var d=(0,cn.ho)(c);return d.paginate=!1,(c=new It.q(d)).load().done(u=>{s.items=u,s.updateValueMap&&s.updateValueMap()})}}else Oe.A.log("E1016");else s.updateValueMap&&s.updateValueMap()}}),i.resizedCallbacks=(0,Ye.A)(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),(0,w.__)(i,s=>{if((0,m.Tn)(i[s])&&0!==s.indexOf("default")){var c="default".concat(s.charAt(0).toUpperCase()).concat(s.substr(1));i[c]=i[s]}}),i}getRowCount(){return this._rowCount=this._rowCount||function(a){var e=1,t=a.getBandColumnsCache(),{columnParentByIndex:i}=t;return a._columns.forEach(r=>{var o=Ut(r.index,i),s=o.filter(c=>!c.visible);r.visible&&!s.length&&(e=Math.max(e,o.length+1))}),e}(this),this._rowCount}getRowIndex(e,t){var i=this._columns[e],r=this.getBandColumnsCache();return i&&(t||i.visible&&!i.command&&!(0,m.O9)(i.groupIndex))?Ut(e,r.columnParentByIndex).length:0}getChildrenByBandColumn(e,t){var i=this.getBandColumnsCache(),r=fl(e,i.columnChildrenByIndex,!t);return t?r.filter(o=>o.visible&&!o.command).sort((o,s)=>o.visibleIndex-s.visibleIndex):r}isParentBandColumn(e,t){var i=!1,r=this._columns[e],o=this.getBandColumnsCache(),s=r&&Ut(e,o.columnParentByIndex);return s&&(0,w.__)(s,(c,d)=>{if(d.index===t)return i=!0,!1}),i}isParentColumnVisible(e){var t=!0,i=this.getBandColumnsCache(),r=e>=0&&Ut(e,i.columnParentByIndex);return r&&(0,w.__)(r,(o,s)=>t=t&&s.visible),t}getColumnId(e){return e.command&&e.type===kt?wr(this,e)?"type:".concat(e.type):"command:".concat(e.command):e.index}getCustomizeTextByDataType(e){return Pr(e)}getHeaderContentAlignment(e){return this.option("rtlEnabled")?"left"===e?"right":"left":e}}}};W.registerModule("columns",{defaultOptions:()=>(0,A.X)(!0,{},Os.defaultOptions(),{commonColumnSettings:{allowExporting:!0}}),controllers:Os.controllers});var Ll=P(4014),Sr=P(2097),ql=P(6305),Bl=P(6208),xs="_dataSourceOptions",Ps="_dataSourceChangedHandler",bs="_dataSourceLoadErrorHandler",Ms="_dataSourceLoadingChangedHandler",ws="_dataSourceFromUrlLoadMode",Ss="_getSpecificDataSourceOption",ys="_normalizeDataSource",Nl=a=>class extends a{postCtor(){this.on("disposing",()=>{this._disposeDataSource()})}_refreshDataSource(){this._initDataSource(),this._loadDataSource()}_initDataSource(){var t,i,e=Ss in this?this[Ss]():this.option("dataSource");this._disposeDataSource(),e&&(e instanceof It.q?(this._isSharedDataSource=!0,this._dataSource=e):(t=xs in this?this[xs]():{},i=this._dataSourceType?this._dataSourceType():It.q,e=(0,cn.ho)(e,{fromUrlLoadMode:ws in this&&this[ws]()}),this._dataSource=new i((0,A.X)(!0,{},t,e))),ys in this&&(this._dataSource=this[ys](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())}_initDataController(){var e,t=null===(e=this.option)||void 0===e?void 0:e.call(this,"_dataController");this._dataController=t||new Bl.A(this._dataSource)}_addDataSourceHandlers(){Ps in this&&this._addDataSourceChangeHandler(),bs in this&&this._addDataSourceLoadErrorHandler(),Ms in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()}_addReadyWatcher(){this.readyWatcher=function(e){this._ready&&this._ready(!e)}.bind(this),this._dataSource.on("loadingChanged",this.readyWatcher)}_addDataSourceChangeHandler(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[Ps](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)}_addDataSourceLoadErrorHandler(){this._proxiedDataSourceLoadErrorHandler=this[bs].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)}_addDataSourceLoadingChangedHandler(){this._proxiedDataSourceLoadingChangedHandler=this[Ms].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)}_loadDataSource(){var e=this._dataSource;e&&(e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load())}_loadSingle(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)}_isLastPage(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize}_isDataSourceLoading(){return this._dataSource&&this._dataSource.isLoading()}_disposeDataSource(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler),this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)}getDataSource(){return this._dataSource||null}},Es=function(a,e,t){var i=a._dataSource;if(i){if(void 0!==t){if(a._getPagingOptionValue(e)!==t){"pageSize"===e&&i.pageIndex(0),i[e](t),a._skipProcessingPagingChange=!0,a.option("paging.".concat(e),t),a._skipProcessingPagingChange=!1;var o=i.pageIndex();return a._isPaging="pageIndex"===e,i["pageIndex"===e?"load":"reload"]().done(()=>{a._isPaging=!1,a.pageChanged.fire(o)})}return(0,k.cY)().resolve().promise()}return i[e]()}return 0};
1class Rs extends(Nl(ge.Controller)){init(){this._items=[],this._cachedProcessedItems=null,this._columnsController=this.getController("columns"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._errorHandlingController=this.getController("errorHandling"),this._filterSyncController=this.getController("filterSync"),this._applyFilterController=this.getController("applyFilter"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._focusController=this.getController("focus"),this._headerFilterController=this.getController("headerFilter"),this._selectionController=this.getController("selection"),this._stateStoringController=this.getController("stateStoring"),this._validatingController=this.getController("validating"),this._adaptiveExpandedKey=void 0,this._isPaging=!1,this._currentOperationTypes=null,this._dataChangedHandler=e=>{this._currentOperationTypes=this._dataSource.operationTypes(),this._handleDataChanged(e),this._currentOperationTypes=null},this._columnsChangedHandler=this._handleColumnsChanged.bind(this),this._loadingChangedHandler=this._handleLoadingChanged.bind(this),this._loadErrorHandler=this._handleLoadError.bind(this),this._customizeStoreLoadOptionsHandler=this._handleCustomizeStoreLoadOptions.bind(this),this._changingHandler=this._handleChanging.bind(this),this._dataPushedHandler=this._handleDataPushed.bind(this),this._columnsController.columnsChanged.add(this._columnsChangedHandler),this._isLoading=!1,this._isCustomLoading=!1,this._repaintChangesOnly=void 0,this._changes=[],this.createAction("onDataErrorOccurred"),this.dataErrorOccurred.add(e=>this.executeAction("onDataErrorOccurred",{error:e})),this._refreshDataSource(),this.postCtor()}_getPagingOptionValue(e){return this._dataSource[e]()}callbackNames(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]}callbackFlags(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}}publicMethods(){return["_disposeDataSource","beginCustomLoading","byKey","clearFilter","endCustomLoading","filter","getCombinedFilter","getDataByKeys","getDataSource","getKeyByRowIndex","getRowIndexByKey","getVisibleRows","keyOf","pageCount","pageIndex","pageSize","refresh","repaintRows","totalCount"]}reset(){this._columnsController.reset(),this._items=[],this._refreshDataSource()}_handleDataSourceChange(e){if(e.value===e.previousValue||this.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue)){if(e.value!==e.previousValue){var i=this.store();i&&(i._array=e.value)}return this.needToRefreshOnDataSourceChange(e)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1}needToRefreshOnDataSourceChange(e){return!0}optionChanged(e){var i,r,t=this;function o(){e.handled=!0}if("dataSource"===e.name&&e.name===e.fullName&&this._handleDataSourceChange(e))o();else switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":o();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":o(),t.reset();break;case"paging":if((i=t.dataSource())&&(r=t._setPagingOptions(i))){var s=i.pageIndex();this._isPaging=r.isPageIndexChanged,i.load().done(()=>{this._isPaging=!1,t.pageChanged.fire(s)})}o();break;case"rtlEnabled":t.reset();break;case"columns":(i=t.dataSource())&&i.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,i.load());break;default:super.optionChanged(e)}}isReady(){return!this._isLoading}getDataSource(){return this._dataSource&&this._dataSource._dataSource}getCombinedFilter(e){return this.combinedFilter(void 0,e)}combinedFilter(e,t){if(!this._dataSource)return e;var i=e??this._dataSource.filter();if(this._columnsController.isDataSourceApplied()||this._columnsController.isAllDataTypesDefined()){var o=this._calculateAdditionalFilter();i=o?q.combineFilters([o,i]):i}var s=this._dataSource.remoteOperations().filtering||t;return this._columnsController.updateFilter(i,s)}waitReady(){return this._updateLockCount?(this._readyDeferred=new k.cY,this._readyDeferred):(0,k.z7)()}_endUpdateCore(){var e=this._changes;if(e.length){this._changes=[];var t=e.every(i=>i.repaintChangesOnly);this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)}_handleCustomizeStoreLoadOptions(e){var t,i=this._columnsController,r=this._dataSource,{storeLoadOptions:o}=e;e.isCustomLoading&&!o.isLoadingAll||(o.filter=this.combinedFilter(o.filter),1===(null===(t=o.filter)||void 0===t?void 0:t.length)&&"!"===o.filter[0]&&(e.data=[],e.extra=e.extra||{},e.extra.totalCount=0),i.isDataSourceApplied()||i.updateColumnDataTypes(r),this._columnsUpdating=!0,i.updateSortingGrouping(r,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,o.sort=i.getSortDataSourceParameters(),o.group=i.getGroupDataSourceParameters(),r.sort(o.sort),r.group(o.group),o.sort=i.getSortDataSourceParameters(!r.remoteOperations().sorting),e.group=i.getGroupDataSourceParameters(!r.remoteOperations().grouping))}_handleColumnsChanged(e){var o,s,c,t=this,{changeTypes:i}=e,{optionNames:r}=e;if(i.sorting||i.grouping)t._dataSource&&!t._columnsUpdating&&(t._dataSource.group(t._columnsController.getGroupDataSourceParameters()),t._dataSource.sort(t._columnsController.getSortDataSourceParameters()),t.reload());else if(i.columns&&(s=t._columnsController.columnOption(e.columnIndex,"filterValues"),(r.filterValues||r.filterType&&Array.isArray(s)||r.filterValue||r.selectedFilterOperation||r.allowFiltering)&&(o=t._columnsController.columnOption(e.columnIndex,"filterValue"),(Array.isArray(s)||void 0===e.columnIndex||(0,m.O9)(o)||!r.selectedFilterOperation||r.filterValue)&&(t._applyFilter(),c=!0)),!t._needApplyFilter&&!q.checkChanges(r,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&t._
1columnsController.columnsChanged.add(function u(p){var v;t._columnsController.columnsChanged.remove(u),t.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null===(v=p?.changeTypes)||void 0===v?void 0:v.virtualColumnsScrolling})}),(0,m.O9)(r.visible))){var d=t._columnsController.columnOption(e.columnIndex);d&&((0,m.O9)(d.filterValue)||(0,m.O9)(d.filterValues))&&(t._applyFilter(),c=!0)}!c&&i.filtering&&!this._needApplyFilter&&t.reload()}_handleDataChanged(e){var t=this,i=t._dataSource,r=t._columnsController,o=!1;this._useSortingGroupingFromColumns=!1,i&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,k.z7)(t._columnsController.applyDataSource(i)).done(()=>{t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var c,s=t._needApplyFilter;t._needApplyFilter=!1,s&&!t._isAllDataTypesDefined&&(c=t._calculateAdditionalFilter())&&c.length?(Oe.A.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)}).fail(()=>{t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=r.isAllDataTypesDefined())}_handleLoadingChanged(e){this._isLoading=e,this._fireLoadingChanged()}_handleLoadError(e){this.dataErrorOccurred.fire(e)}_handleDataPushed(e){this.pushed.fire(e)}fireError(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this.dataErrorOccurred.fire(Oe.A.Error.apply(Oe.A,t))}_setPagingOptions(e){var t=this.option("paging.pageIndex"),i=this.option("paging.pageSize"),r=this.option("paging.enabled"),o=this.option("scrolling.mode"),s="infinite"===o,d=r||"virtual"===o||s,u=!1,p=!1,v=!1;return e.requireTotalCount(!s),void 0!==r&&e.paginate()!==d&&(e.paginate(d),u=!0),void 0!==i&&e.pageSize()!==i&&(e.pageSize(i),p=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),v=!0),!!(u||p||v)&&{isPaginateChanged:u,isPageSizeChanged:p,isPageIndexChanged:v}}_getSpecificDataSourceOption(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e}_initDataSource(){var e=this._dataSource;super._initDataSource();var t=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,t){var i=this._setPagingOptions(t);this._isPaging=i?.isPageIndexChanged,this.setDataSource(t)}else e&&this.updateItems()}_loadDataSource(){var e=this,t=e._dataSource,i=new k.cY;return(0,k.z7)(this._columnsController.refresh(!0)).always(()=>{t?t.load().done(function(){e._isPaging=!1,i.resolve.apply(i,arguments)}).fail(i.reject):i.resolve()}),i.promise()}_beforeProcessItems(e){return e.slice(0)}getRowIndexDelta(){return 0}getDataIndex(e){var t=this._items,i="append"===e.changeType&&t.length>0?t[t.length-1]:null;return(0,m.O9)(i?.dataIndex)?i.dataIndex+1:0}_processItems(e,t){var i=this,r=i.getRowIndexDelta(),{changeType:o}=t,d={visibleColumns:i._columnsController.getVisibleColumns(null,"loadingAll"===o),dataIndex:this.getDataIndex(t)},u=[];return(0,w.__)(e,(p,v)=>{(0,m.O9)(v)&&(d.rowIndex=p-r,v=i._processItem(v,d),u.push(v))}),u}_processItem(e,t){return e=this._generateDataItem(e,t),(e=this._processDataItem(e,t)).dataIndex=t.dataIndex++,e}_generateDataItem(e,t){return{rowType:"data",data:e,key:this.keyOf(e)}}_processDataItem(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e}generateDataValues(e,t,i){for(var o,r=[],s=0;s<t.length;s++){var c=t[s];o=i?void 0:null,c.command||(c.calculateCellValue?o=c.calculateCellValue(e):c.dataField&&(o=e[c.dataField])),r.push(o)}return r}_applyChange(e){"update"===e.changeType?this._applyChangeUpdate(e):this.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?this._applyChangesOnly(e):"refresh"===e.changeType&&this._applyChangeFull(e)}_applyChangeFull(e){this._items=e.items.slice(0)}_getRowIndices(e){var t=e.rowIndices.slice(0),i=this.getRowIndexDelta();t.sort((s,c)=>s-c);for(var r=0;r<t.length;r++){var o=t[r];e.allowInvisibleRowIndices&&(o+=i),o<0&&(t.splice(r,1),r--)}return t}_applyChangeUpdate(e){var u,t=this,{items:i}
1=e,r=t._getRowIndices(e),o=t.getRowIndexDelta(),s=t.option("repaintChangesOnly"),c=-1,d=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var p=function(v,f,O){var b=v&&f&&(0,j.RL)(v.key,f.key);return b&&O&&(b=v.rowType===f.rowType&&("detail"!==f.rowType||v.isEditing===f.isEditing)),b};(0,w.__)(r,(v,f)=>{var O;if(c!==(f+=d+o)){c=f;var b=t._items[f],S=t._items[f+1],E=i[f],L=i[f+1],G=p(b,S)||p(E,L);if(E&&(E.rowIndex=f,e.items.push(E)),b&&E&&p(b,E,G))u="update",t._items[f]=E,b.visible!==E.visible?e.items.splice(-1,1,{visible:E.visible}):s&&!e.isFullUpdate&&(O=t._partialUpdateRow(b,E,f-o));else if(E&&!b||L&&p(b,L,G))u="insert",t._items.splice(f,0,E),d++;else if(b&&!E||S&&p(E,S,G))u="remove",t._items.splice(f,1),d--,c=-1;else{if(!E)return;u="update",t._items[f]=E}e.rowIndices.push(f-o),e.changeTypes.push(u),e.columnIndices.push(O)}})}_isCellChanged(e,t,i,r,o){if(JSON.stringify(e.values[r])!==JSON.stringify(t.values[r]))return!0;function s(c,d){return!!c.modifiedValues&&void 0!==c.modifiedValues[d]}return s(e,r)!==s(t,r)}_getChangedColumnIndices(e,t,i,r){var o;if(e.rowType===t.rowType){if("group"!==t.rowType&&"groupFooter"!==t.rowType&&(o=[],"detail"!==t.rowType))for(var s=0;s<e.values.length;s++)this._isCellChanged(e,t,i,s,r)&&o.push(s);"group"===t.rowType&&e.cells&&t.isExpanded===e.isExpanded&&t.data.isContinuation===e.data.isContinuation&&t.data.isContinuationOnNextPage===e.data.isContinuationOnNextPage&&(o=e.cells.map((d,u)=>{var p;return"groupExpand"!==(null===(p=d.column)||void 0===p?void 0:p.type)?u:-1}).filter(d=>d>=0))}return o}_partialUpdateRow(e,t,i,r){var o=this._getChangedColumnIndices(e,t,i,r);return o?.length&&this.option("dataRowTemplate")&&(o=void 0),o&&(e.cells&&e.cells.forEach((s,c)=>{!(o.indexOf(c)>=0)&&s&&s.update&&s.update(t)}),t.update=e.update,t.watch=e.watch,t.cells=e.cells,r&&(t.oldValues=e.values),e.update&&e.update(t)),o}_isItemEquals(e,t){var i,r,o,s;if(JSON.stringify(e.values)!==JSON.stringify(t.values)||["modified","isNewRow","removed","isEditing"].some(p=>e[p]!==t[p]))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var c=e.isExpanded===t.isExpanded,d=JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells),u=(null===(i=e.data)||void 0===i?void 0:i.isContinuation)===(null===(r=t.data)||void 0===r?void 0:r.isContinuation)&&(null===(o=e.data)||void 0===o?void 0:o.isContinuationOnNextPage)===(null===(s=t.data)||void 0===s?void 0:s.isContinuationOnNextPage);if(!c||!d||!u)return!1}return!0}_applyChangesOnly(e){var t,i=[],r=[],o=[],s=[],c={},d=null===(t=e?.isLiveUpdate)||void 0===t||t;function u(O){if(O)return"".concat(O.rowType,",").concat(JSON.stringify(O.key))}var p=this._items,v=p.slice();e.items.forEach((O,b)=>{var S=u(O);c[S]=b,O.rowIndex=b});var f=(0,Ll.p)(v,e.items,u,(O,b)=>!!this._isItemEquals(O,b)&&(O.cells&&(O.update&&O.update(b),O.cells.forEach(S=>{S&&S.update&&S.update(b,!0)})),!0));f?(f.forEach(O=>{switch(O.type){case"update":var{index:b}=O,S=O.data,{oldItem:E}=O,L=this._partialUpdateRow(E,S,b,d);i.push(b),o.push("update"),s.push(S),p[b]=S,r.push(L);break;case"insert":i.push(O.index),o.push("insert"),s.push(O.data),r.push(void 0),p.splice(O.index,0,O.data);break;case"remove":i.push(O.index),o.push("remove"),p.splice(O.index,1),s.push(O.oldItem),r.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=i,e.columnIndices=r,e.changeTypes=o,e.items=s,v.length&&(e.isLiveUpdate=!0),this._correctRowIndices(O=>{var b=this._rowIndexOffset||0,S=this.getRowIndexOffset(),L=u(v[O-b]),G=c[L];return G>=0?G+S-O:0})):this._applyChangeFull(e)}_correctRowIndices(e){}_afterProcessItems(e,t){return e}_updateItemsCore(e){var t,i=this._dataSource;if(e.changeType=e.changeType||"refresh",i){var o=this._cachedProcessedItems;e.useProcessedItemsCache&&o?t=o:(t=e.items||i.items(),t=this._beforeProcessItems(t),t=this._processItems(t,e),this._cachedProcessedItems=t),t=this._afterProcessItems(t,e),e.items=t;var s=this._items.length===t.length&&this._items;this._applyChange(e);var c=this.getRowIndexDelta();(0,w.__)(this._items,(d,u)=>{var p;u.rowIndex=d-c,s&&(u.cells=null!==(p=s[d].cells)&&void 0!==p?p:[]);var v=t[d];v&&(u.loadIndex=v.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]}_handleChanging(e){var t=this.getVisibleRows();
1this.dataSource()&&e.changes.forEach(r=>{if("insert"===r.type&&r.index>=0){for(var o=0,s=0;s<r.index;s++){var c=t[s];c&&("data"===c.rowType||"group"===c.rowType)&&o++}r.index=o}})}updateItems(e,t){var i;if(e=e||{},void 0!==this._repaintChangesOnly)e.repaintChangesOnly=null!==(i=e.repaintChangesOnly)&&void 0!==i?i:this._repaintChangesOnly,e.needUpdateDimensions=e.needUpdateDimensions||this._needUpdateDimensions;else if(e.changes)e.repaintChangesOnly=this.option("repaintChangesOnly");else if(t){var r=this.dataSource().operationTypes();e.repaintChangesOnly=r&&!r.grouping&&!r.filtering&&this.option("repaintChangesOnly"),e.isDataChanged=!0,r&&(r.reload||r.paging||r.groupExpanding)&&(e.needUpdateDimensions=!0)}!this._updateLockCount||e.cancel?(this._updateItemsCore(e),!e.cancel&&this._fireChanged(e)):this._changes.push(e)}loadingOperationTypes(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}}_fireChanged(e){this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,j.zE)(()=>{this.changed.fire(e)})}isLoading(){return this._isLoading||this._isCustomLoading}_fireLoadingChanged(){this.loadingChanged.fire(this.isLoading(),this._loadingText)}_calculateAdditionalFilter(){return null}_applyFilter(){var e=this._dataSource;return e?(e.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})):(new k.cY).resolve()}resetFilterApplying(){this._isFilterApplying=!1}filter(e){var t=this._dataSource,i=t&&t.filter();if(0===arguments.length)return i;e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,!q.equalFilterParameters(i,e)&&(t&&t.filter(e),this._applyFilter())}clearFilter(e){var t=this._columnsController,i=function(r){for(var o=t.columnCount(),s=0;s<o;s++)t.columnOption(s,r,void 0)};if(this.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":this.filter(null);break;case"search":this.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else this.filter(null),this.searchByText(""),i("filterValue"),i("bufferedFilterValue"),i("filterValues");this.component.endUpdate()}_fireDataSourceChanged(){var e=this;e.changed.add(function t(){e.changed.remove(t),e.dataSourceChanged.fire()})}_getDataSourceAdapter(){}_createDataSourceAdapterCore(e,t){var r=this._getDataSourceAdapter().create(this.component);return r.init(e,t),r}isLocalStore(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.store())instanceof Sr.A}isCustomStore(e){return(e=e||this.store())instanceof ql.A}_createDataSourceAdapter(e){var t=this.option("remoteOperations"),i=e.store(),r={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return(0,m.Gv)(t)&&t.groupPaging&&(t=(0,A.X)({},r,t)),"auto"===t&&(t=this.isLocalStore(i)||this.isCustomStore(i)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=r),this._createDataSourceAdapterCore(e,t)}setDataSource(e){var t=this._dataSource;
1!e&&t&&(t.cancelAll(),t.changed.remove(this._dataChangedHandler),t.loadingChanged.remove(this._loadingChangedHandler),t.loadError.remove(this._loadErrorHandler),t.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),t.changing.remove(this._changingHandler),t.pushed.remove(this._dataPushedHandler),t.dispose(this._isSharedDataSource)),e&&(e=this._createDataSourceAdapter(e)),this._dataSource=e,e&&(this._fireDataSourceChanged(),this._isLoading=!e.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),e.changed.add(this._dataChangedHandler),e.loadingChanged.add(this._loadingChangedHandler),e.loadError.add(this._loadErrorHandler),e.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),e.changing.add(this._changingHandler),e.pushed.add(this._dataPushedHandler))}items(e){return this._items}isEmpty(){return!this.items().length}pageCount(){return this._dataSource?this._dataSource.pageCount():1}dataSource(){return this._dataSource}store(){var e=this._dataSource;return e&&e.store()}loadAll(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this,r=new k.cY,o=i._dataSource;if(o)if(e){var s={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t?null:i.getCombinedFilter(),group:o.group(),sort:o.sort()}};o._handleDataLoaded(s),(0,k.z7)(s.data).done(d=>{var u;d=i._beforeProcessItems(d),r.resolve(i._processItems(d,{changeType:"loadingAll"}),null===(u=s.extra)||void 0===u?void 0:u.summary)}).fail(r.reject)}else if(o.isLoading())r.reject();else{var c=(0,A.X)({},o.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});o.load(c).done((d,u)=>{d=i._beforeProcessItems(d),d=i._processItems(d,{changeType:"loadingAll"}),r.resolve(d,u&&u.summary)}).fail(r.reject)}else r.resolve([]);return r}getKeyByRowIndex(e,t){var i=this.items(t)[e];if(i)return i.key}getRowIndexByKey(e,t){return q.getIndexByKey(e,this.items(t))}keyOf(e){var t=this.store();if(t)return t.keyOf(e)}byKey(e){var r,t=this.store(),i=this.getRowIndexByKey(e);if(t)return i>=0&&(r=(new k.cY).resolve(this.items()[i].data)),r||t.byKey(e)}key(){var e=this.store();if(e)return e.key()}getRowIndexOffset(e){return 0}getDataByKeys(e){var t=this,i=new k.cY,r=[],o=[];return(0,w.__)(e,(s,c)=>{r.push(t.byKey(c).done(d=>{o[s]=d}))}),k.z7.apply(x.A,r).always(()=>{i.resolve(o)}),i}pageIndex(e){return Es(this,"pageIndex",e)}pageSize(e){return Es(this,"pageSize",e)}beginCustomLoading(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()}endCustomLoading(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()}refresh(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,i=t.getDataSource(),{changesOnly:r}=e,o=new k.cY,s=function(){t._repaintChangesOnly=!!r};return(0,k.z7)(!e.lookup||t._columnsController.refresh()).always(()=>{e.load||e.reload?(i&&i.on("customizeLoadResult",s),(0,k.z7)(t.reload(e.reload,r)).always(()=>{i&&i.off("customizeLoadResult",s),t._repaintChangesOnly=void 0}).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),o.resolve())}),o.promise()}getVisibleRows(){return this.items()}_disposeDataSource(){this._dataSource&&this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher),this.setDataSource(null)}dispose(){this._disposeDataSource(),super.dispose()}repaintRows(e,t){((e=Array.isArray(e)?e:[e]).length>1||(0,m.O9)(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})}skipProcessingPagingChange(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)}getUserState(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}}getCachedStoreData(){return this._dataSource&&this._dataSource.getCachedStoreData()}isLastPageLoaded(){return this.pageIndex()===this.pageCount()-1}load(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.load()}reload(e,t){var i;return null===(i=this._dataSource)||void 0===i?void 0:i.reload(e,t)}push(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.push(...arguments)}itemsCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.itemsCount():0}totalItemsCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.totalItemsCount():0}hasKnownLastPage(){var e;return!this._dataSource||(null===(e=this._dataSource)||void 0===e?void 0:e.hasKnownLastPage())}isLoaded(){var e;return!this._dataSource||(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())}totalCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.totalCount():0}hasLoadOperation(){var e,t,i=null!==(t=null===(e=this._dataSource)||void 0===e?void 0:e.operationTypes())&&void 0!==t?t:{};return Object.keys(i).some(r=>i[r])}}var zl={defaultOptions:()=>({loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}),controllers:{data:Rs}},rt=P(1774),yr=function a(e,t){if(e&&(e=e.slice(0),t))for(var i=0;i<e.length;i++)e[i]=(0,A.X)({key:e[i].key},e[i]),e[i].items=a(e[i].items,t-1);return e},Is=function(a,e,t){var i={reload:!0,fullReload:!0};return e&&((i={sorting:!q.equalSortParameters(a.sort,e.sort),grouping:!q.equalSortParameters(a.group,e.group,!0),groupExpanding:!q.equalSortParameters(a.group,e.group)||e.groupExpand,filtering:!q.equalFilterParameters(a.filter,e.filter),pageIndex:a.pageIndex!==e.pageIndex,skip:a.skip!==e.skip,take:a.take!==e.take,pageSize:a.pageSize!==e.pageSize,fullReload:t,reload:!1,paging:!1}).reload=t||i.sorting||i.grouping||i.filtering,i.paging=i.pageIndex||i.pageSize||i.take),i},As=function(a,e){var t=q.normalizeSortingInfo(a.group||a.storeLoadOptions.group||a.loadOptions.group).length,i=[];if(Ts(i,a,t))return i;e&&Ul(i,a,t)},Ts=function(a,e,t,i){var r,o,s,c,d,{storeLoadOptions:u}=e,p=null!==(o=null!==(r=e.take)&&void 0!==r?r:u.take)&&void 0!==o?o:0,v=null===(s=e.cachedData)||void 0===s?void 0:s.items;if(p&&v){for(var f=null!==(d=null!==(c=e.skip)&&void 0!==c?c:u.skip)&&void 0!==d?d:0,O=0;O<p;O+=1){var b=i?p-1-O:O,S=b+f,E=v[S];if(void 0===E&&S in v)return!0;var L=Hl(e,E,t,b,p);if(!L)return!1;a.push(L)}return!0}return!1},Hl=function(a,e,t,i,r){return t&&e?jl(e,t,0===i&&a.skips||[],i===r-1&&a.takes||[]):e},jl=function a(e,t,i,r){if(t&&e){var o=(0,U.A)({},e),s=i[0]||0,c=r[0],{items:d}=e;if(d){if(void 0===c&&!d[s])return;o.items=[],i.length&&(o.isContinuation=!0),c&&(o.isContinuationOnNextPage=e.count>c);for(var u=0;void 0===c?d[u+s]:u<c;u+=1){var v=u+1===c,f=a(d[u+s],t-1,0===u?i.slice(1):[],v?r.slice(1):[]);if(void 0===f)return;o.items.push(f)}}return o}return e},Ul=function(a,e,t){var i,r,o=a.length,{storeLoadOptions:s}=e;if(void 0!==s.skip&&s.take&&!t){var c=[];Ts(c,e,t,!0);var d=c.length;(o||d)&&(e.skip=null!==(i=e.skip)&&void 0!==i?i:s.skip,e.take=null!==(r=e.take)&&void 0!==r?r:s.take),o&&(s.skip+=o,s.take-=o,e.cachedDataPartBegin=a),d&&(s.take-=d,e.cachedDataPartEnd=c.reverse())}},Wl=function a(e,t,i,r){if(i&&t){var o=(0,U.A)({},t);delete o.isContinuation,delete o.isContinuationOnNextPage;var s=r[0]||0;return t.items&&(o.items=e?.items||{}
1,t.items.forEach((c,d)=>{var u=d+s,p=0===d?r.slice(1):[];o.items[u]=a(o.items[u],c,i-1,p)})),o}return t},Er=class Kl extends ge.Controller{init(e,t){var i=this;i._dataSource=e,i._remoteOperations=t||{},i._isLastPage=!e.isLastPage(),i._hasLastPage=!1,i._currentTotalCount=0,i._cachedData={items:{}},i._lastOperationTypes={},i._eventsStrategy=e._eventsStrategy,i._totalCountCorrection=0,i._isLoadingAll=!1,i.changed=(0,Ye.A)(),i.loadingChanged=(0,Ye.A)(),i.loadError=(0,Ye.A)(),i.customizeStoreLoadOptions=(0,Ye.A)(),i.changing=(0,Ye.A)(),i.pushed=(0,Ye.A)(),i._dataChangedHandler=i._handleDataChanged.bind(i),i._customizeStoreLoadOptionsHandler=i._handleCustomizeStoreLoadOptions.bind(i),i._dataLoadedHandler=i._handleDataLoaded.bind(i),i._loadingChangedHandler=i._handleLoadingChanged.bind(i),i._loadErrorHandler=i._handleLoadError.bind(i),i._pushHandler=i._handlePush.bind(i),i._changingHandler=i._handleChanging.bind(i),e.on("changed",i._dataChangedHandler),e.on("customizeStoreLoadOptions",i._customizeStoreLoadOptionsHandler),e.on("customizeLoadResult",i._dataLoadedHandler),e.on("loadingChanged",i._loadingChangedHandler),e.on("loadError",i._loadErrorHandler),e.on("changing",i._changingHandler),e.store().on("beforePush",i._pushHandler),(0,w.__)(e,(r,o)=>{!i[r]&&(0,m.Tn)(o)&&(i[r]=function(){return this._dataSource[r].apply(this._dataSource,arguments)})})}dispose(e){var t=this._dataSource,i=t.store();
1t.off("changed",this._dataChangedHandler),t.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),t.off("customizeLoadResult",this._dataLoadedHandler),t.off("loadingChanged",this._loadingChangedHandler),t.off("loadError",this._loadErrorHandler),t.off("changing",this._changingHandler),i&&i.off("beforePush",this._pushHandler),e||t.dispose()}remoteOperations(){return this._remoteOperations}refresh(e,t){var i=this._dataSource;t.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!i.paginate(),this._hasLastPage=this._isLastPage)}resetCurrentTotalCount(){this._currentTotalCount=0,this._totalCountCorrection=0}resetCache(){this._cachedStoreData=void 0,this._cachedPagingData=void 0}resetPagesCache(e){this._cachedData={items:{}}}_needClearStoreDataCache(){var e=this.remoteOperations(),t=Is(this._lastLoadOptions||{},{});return!Object.keys(e).every(r=>!t[r]||!e[r])}push(e,t){var i=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,rt.VK)({keyInfo:i,data:this._cachedStoreData,changes:e}),t||this._applyBatch(e),this.pushed.fire(e)}getDataIndexGetter(){if(!this._dataIndexGetter){var e,t,i=this.store();this._dataIndexGetter=r=>{if(!e||t&&t!==this._cachedStoreData){t=this._cachedStoreData||[],e={};for(var s=0;s<t.length;s++)e[(0,j.GP)(i.keyOf(t[s]))]=s}return e[(0,j.GP)(i.keyOf(r))]}}return this._dataIndexGetter}_getKeyInfo(){return this.store()}_needToCopyDataObject(){return!0}_applyBatch(e,t){var i=this._getKeyInfo(),r=this._dataSource,o=q.normalizeSortingInfo(this.group()).length,s="reshape"===this.option("editing.refreshMode"),c="virtual"===this.option("scrolling.mode");e=e.filter(v=>!r.paginate()||"insert"!==v.type||void 0!==v.index);var d=()=>o?this.itemsCount():this.items().length,u=d();(0,rt.VK)({keyInfo:i,data:this._items,changes:e,groupCount:o,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,rt.VK)({keyInfo:i,data:r.items(),changes:e,groupCount:o,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(t||!s)&&c)&&(this._totalCountCorrection+=d()-u),e.splice(0,e.length)}_handlePush(e){var{changes:t}=e;this.push(t,!0)}_handleChanging(e){this.changing.fire(e),this._applyBatch(e.changes,!0)}_needCleanCacheByOperation(e,t){var i=["filtering","sorting","paging"],r=i.indexOf(e);return(r>=0?i.slice(r):[e]).some(s=>t[s])}_customizeRemoteOperations(e,t){var i=this._cachedStoreData,r=this._cachedPagingData,o=this._cachedData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering,summary:e.remoteOperations.summary}),t.fullReload?(i=void 0,r=void 0,o={items:{}}):(t.reload?(r=void 0,o={items:{}}):t.groupExpanding&&(o={items:{}}),(0,w.__)(t,(s,c)=>{c&&this._needCleanCacheByOperation(s,e.remoteOperations)&&(i=void 0,r=void 0)})),r&&(e.remoteOperations.paging=!1),e.cachedStoreData=i,e.cachedPagingData=r,e.cachedData=o,e.isCustomLoading||(this._cachedStoreData=i,this._cachedPagingData=r,this._cachedData=o)}_handleCustomizeStoreLoadOptions(e){var t;this._handleDataLoading(e),0!==(null===(t=e.data)||void 0===t?void 0:t.length)&&(e.data=As(e,!0)||e.cachedStoreData)}_handleDataLoading(e){var t=this._dataSource,i=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,A.X)({},this.remoteOperations());var r=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(e.delay=void 0);var o=(0,A.X)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},e.storeLoadOptions),s=Is(o,i,r);if(this._customizeRemoteOperations(e,s),!e.isCustomLoading){var c=this._isRefreshing;e.pageIndex=t.pageIndex(),e.lastLoadOptions=o,e.operationTypes=s,this._loadingOperationTypes=s,this._isRefreshing=!0,(0,k.z7)(c||this._isRefreshed||this.refresh(e,s)).done(()=>{this._lastOperationId===e.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{t.cancel(e.operationId)}).always(()=>{this._isRefreshing=!1}),t.cancel(this._lastOperationId),this._lastOperationId=e.operationId,this._isRefreshing&&t.cancel(this._lastOperationId)}this._handleDataLoadingCore(e)}_handleDataLoadingCore(e){var{remoteOperations:t}=e;e.loadOptions={};
1var i=e.cachedData.extra,r={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:i&&"totalCount"in i||!t.paging,langParams:!t.filtering||!t.sorting};(0,w.__)(e.storeLoadOptions,(o,s)=>{r[o]&&(e.loadOptions[o]=s,delete e.storeLoadOptions[o])}),i&&(e.extra=i)}_handleDataLoaded(e){var t,i,{loadOptions:r}=e,o=e.remoteOperations&&!e.remoteOperations.paging,{cachedData:s}=e,{storeLoadOptions:c}=e,d=!1!==this.option("cacheEnabled")&&c,u=d&&!e.isCustomLoading&&s&&(!o||c.group),p=d&&o,v=p&&!e.isCustomLoading;if(r){o&&(e.skip=r.skip,e.take=r.take,delete r.skip,delete r.take),r.group&&(r.group=e.group||r.group);var f=q.normalizeSortingInfo(e.group||c.group||r.group).length;e.cachedDataPartBegin&&(e.data=e.cachedDataPartBegin.concat(e.data)),e.cachedDataPartEnd&&(e.data=e.data.concat(e.cachedDataPartEnd)),(!u||!As(e))&&(p&&e.cachedPagingData?e.data=yr(e.cachedPagingData,f):(v&&(this._cachedStoreData?e.mergeStoreLoadData&&(e.data=this._cachedStoreData=this._cachedStoreData.concat(e.data)):this._cachedStoreData=yr(e.data,q.normalizeSortingInfo(c.group).length)),new Sr.A(e.data).load(r).done(O=>{e.data=O,v&&(this._cachedPagingData=yr(e.data,f))}).fail(O=>{e.data=(new k.cY).reject(O)})),r.requireTotalCount&&o&&(e.extra=(0,m.Qd)(e.extra)?e.extra:{},e.extra.totalCount=e.data.length),e.extra&&e.extra.totalCount>=0&&(!1===c.requireTotalCount||!1===r.requireTotalCount)&&(e.extra.totalCount=-1),!r.data&&(c.requireTotalCount||(null!==(i=null===(t=e.extra)||void 0===t?void 0:t.totalCount)&&void 0!==i?i:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(e),u&&(s.extra=s.extra||(0,A.X)({},e.extra),(0,k.z7)(e.data).done(O=>{!function(a,e,t){for(var i,r,o,s,{storeLoadOptions:c}=a,d=null!==(r=null!==(i=a.skip)&&void 0!==i?i:c.skip)&&void 0!==r?r:0,u=null!==(s=null!==(o=a.take)&&void 0!==o?o:c.take)&&void 0!==s?s:0,p=0;p<u;p+=1){var v=p+d,f=a.cachedData.items;f[v]=Wl(f[v],e[p],t,0===p&&a.skips||[])}}(e,O,f)}))),(0,k.z7)(e.data).done(()=>{e.lastLoadOptions&&(this._lastLoadOptions=e.lastLoadOptions,Object.keys(e.operationTypes).forEach(O=>{this._lastOperationTypes[O]=this._lastOperationTypes[O]||e.operationTypes[O]}))}),e.storeLoadOptions=e.originalStoreLoadOptions}else this._dataSource.cancel(e.operationId)}_handleDataLoadedCore(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))}_handleLoadingChanged(e){this.loadingChanged.fire(e)}_handleLoadError(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})}_loadPageSize(){return this.pageSize()}_handleDataChanged(e){var t,i=this._dataSource,r=!1,o=!e||(0,m.O9)(e.changeType),s=this.itemsCount();o&&(this._isLastPage=!s||!this._loadPageSize()||s<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),i.totalCount()>=0?i.pageIndex()>=this.pageCount()&&(i.pageIndex(this.pageCount()-1),this.pageIndex(i.pageIndex()),this.resetPagesCache(),i.load(),r=!0):o&&((t=i.pageIndex()*this.pageSize()+s)>this._currentTotalCount&&(this._currentTotalCount=t,(0===i.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===s&&i.pageIndex()>=this.pageCount()&&(i.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(i.load(),r=!0))),r||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)}_scheduleCustomLoadCallbacks(e){var t=this;t._isCustomLoading=!0,e.always(()=>{t._isCustomLoading=!1})}loadingOperationTypes(){return this._loadingOperationTypes}operationTypes(){return this._operationTypes}lastLoadOptions(){return this._lastLoadOptions||{}}isLastPage(){return this._isLastPage}_dataSourceTotalCount(){return this._dataSource.totalCount()}_changeRowExpandCore(e){}changeRowExpand(e){}totalCount(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)}totalCountCorrection(){return this._totalCountCorrection}items(){}itemsCount(){return this._dataSource.items().length}totalItemsCount(){return this.totalCount()}pageSize(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0}pageCount(){var e=this.totalItemsCount()-this._totalCountCorrection,t=this.pageSize();return t&&e>0?Math.max(1,Math.ceil(e/t)):1}hasKnownLastPage(){return this._hasLastPage||this._dataSource.totalCount()>=0}loadFromStore(e,t){var i=this._dataSource,r=new k.cY;if(i)return(t=t||i.store()).load(e).done((o,s)=>{o&&!Array.isArray(o)&&Array.isArray(o.data)&&(s=o,o=o.data),r.resolve(o,s)}).fail(r.reject),r}isCustomLoading(){return!!this._isCustomLoading}load(e){var t=this,i=t._dataSource,r=new k.cY;
1if(e){var o=i.store(),s=i.loadOptions(),c={storeLoadOptions:(0,A.X)({},e,{langParams:s?.langParams}),isCustomLoading:!0};return(0,w.__)(o._customLoadOptions()||[],(d,u)=>{u in c.storeLoadOptions||(c.storeLoadOptions[u]=s[u])}),this._isLoadingAll=e.isLoadingAll,t._scheduleCustomLoadCallbacks(r),i._scheduleLoadCallbacks(r),t._handleCustomizeStoreLoadOptions(c),function(a,e){(0,m.O9)(e)?(0,j.uG)(a,e):a()}(()=>{if(!i.store())return r.reject("canceled");(0,k.z7)(c.data||t.loadFromStore(c.storeLoadOptions)).done((d,u)=>{c.data=d,c.extra=u||{},t._handleDataLoaded(c),e.requireTotalCount&&void 0===c.extra.totalCount&&(c.extra.totalCount=o.totalCount(c.storeLoadOptions)),(0,k.z7)(c.data,c.extra.totalCount).done((p,v)=>{c.extra.totalCount=v,r.resolve(p,c.extra)}).fail(r.reject)}).fail(r.reject)},t.option("loadingTimeout")),r.fail(function(){t._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return i.load()}reload(e){return e?this._dataSource.reload():this._dataSource.load()}getCachedStoreData(){return this._cachedStoreData}isLoaded(){}pageIndex(e){}};const wi={extend(a){Er=a(Er)},create:a=>new Er(a)};W.registerModule("data",{defaultOptions:zl.defaultOptions,controllers:{data:class Xl extends Rs{_getDataSourceAdapter(){return wi}_getSpecificDataSourceOption(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&Oe.A.log("W1011"),super._getSpecificDataSourceOption()}}}});var ks="dx-sort",Fs="dx-sort-none",Ds="dx-sort-index-icon";const Vs=a=>class extends a{_applyColumnState(e){var t,i,r=this.option("sorting.mode"),{rootElement:o}=e,{column:s}=e,c=this._getIndicatorContainer(o);if("sort"===e.name){o.find(".".concat(ks)).remove(),!c.children().length&&c.remove();var d="none"!==r&&s.allowSorting,u=this.getController&&!!this.getController("columns").columnOption("sortIndex:1");return!(0,m.O9)(s.groupIndex)&&(d||(0,m.O9)(s.sortOrder))&&(t="asc"===s.sortOrder?"ascending":"descending",i=super._applyColumnState(e).toggleClass("dx-sort-up","asc"===s.sortOrder).toggleClass("dx-sort-down","desc"===s.sortOrder),u&&this.option("sorting.showSortIndexes")&&s.sortIndex>=0&&((0,x.A)("<span>").addClass(Ds).text(s.sortIndex+1).appendTo(i),i.addClass("dx-sort-index")),d&&e.rootElement.addClass(this.addWidgetPrefix("action"))),this._setAriaSortAttribute(s,t,o,u),i}return super._applyColumnState(e)}_setAriaSortAttribute(e,t,i,r){if(i.removeAttr("aria-roledescription"),e.isGrouped){var o=this.localize("dxDataGrid-ariaNotSortedColumn");(0,m.O9)(e.sortOrder)&&(o=this.localize("asc"===e.sortOrder?"dxDataGrid-ariaSortedAscendingColumn":"dxDataGrid-ariaSortedDescendingColumn")),this.setAria("roledescription",o,i)}else if((0,m.O9)(e.sortOrder)){if(this.setAria("sort",t,i),r&&e.sortIndex>=0){var s=R.A.format("dxDataGrid-ariaColumnHeader"),c=R.A.format("dxDataGrid-ariaSortIndex",e.sortIndex+1),d="".concat(s,", ").concat(c);this.setAria("roledescription",d,i)}}else this.setAria("sort","none",i)}_getIndicatorClassName(e){return"sort"===e?ks:"sortIndex"===e?Ds:super._getIndicatorClassName(e)}_renderIndicator(e){var{column:t}=e,i=e.container,r=e.indicator;if("sort"===e.name){var o=this.option("rtlEnabled");if((0,m.O9)(t.sortOrder)||r&&r.addClass(Fs),i.children().length&&(!o&&"left"===e.columnAlignment||o&&"right"===e.columnAlignment))return void i.prepend(r)}super._renderIndicator(e)}_updateIndicator(e,t,i){if("sort"!==i||!(0,m.O9)(t.groupIndex))return super._updateIndicator.apply(this,arguments)}_getIndicatorElements(e,t){var i=super._getIndicatorElements(e);return t?i:i&&i.not(".".concat(Fs))}};W.registerModule("sorting",{defaultOptions:()=>({sorting:{mode:"single",ascendingText:R.A.format("dxDataGrid-sortingAscendingText"),descendingText:R.A.format("dxDataGrid-sortingDescendingText"),clearText:R.A.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:a=>class extends(Vs(a)){optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_createRow(e){var t=super._createRow(e);return"header"===e.rowType&&n.A.on(t,(0,D.b4)(ke.U,"dxDataGridColumnHeadersView"),"td",this.createAction(i=>{this._processHeaderAction(i.event,t)})),t}_processHeaderAction(e,t){if((0,x.A)(e.currentTarget).parent().get(0)===t.get(0)){var i=this,r=null,o=(0,x.A)(e.currentTarget),s=o.parent().index(),c=-1;[].slice.call(i.getCellElements(s)).some((O,b)=>{if(O===o.get(0))return c=b,!0});var u=i._columnsController.getVisibleColumns(s)[c],p=i.getController("editing"),v=i.option("editing.mode");p&&p.isEditing()&&("batch"===v||"cell"===v)||!i._isSortableElement((0,x.A)(e.target))||u&&!(0,m.O9)(u.groupIndex)&&!u.command&&(e.shiftKey?r="shift":(0,D.By)(e)&&(r="ctrl"),setTimeout(()=>{i._columnsController.changeSortOrder(u.index,r)}))}}_renderCellContent(e,t){var{column:i}=t;!i.command&&"header"===t.rowType&&this._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:this.option("showColumnLines")}),super._renderCellContent.apply(this,arguments)}_columnOptionChanged(e){var{changeTypes:t}=e;1===t.length&&t.sorting?this._updateIndicators("sort"):super._columnOptionChanged(e)}},headerPanel:a=>class extends(Vs(a)){optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_createGroupPanelItem(e,t){var i=this,r=super._createGroupPanelItem(...arguments);return n.A.on(r,(0,D.b4)(ke.U,"dxDataGridHeaderPanel"),i.createAction(()=>{i._processGroupItemAction(t.index)})),i._applyColumnState({name:"sort",rootElement:r,column:{alignment:i.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc",isGrouped:!0},showColumnLines:!0}),r}_processGroupItemAction(e){setTimeout(()=>this.getController("columns").changeSortOrder(e))}}}}});var Cn=P(9057),Rr="dx-group-row",Ls="dx-group-cell",Si="dx-freespace-row",qs="dx-column-lines",Bs="dx-row-alt",Ns="dx-last-row-border";function Mt(a){return a?Math.round(a.scrollWidth()-a.clientWidth()):0}function mn(a){var{rowType:e,column:t}=a;return"group"===e&&(0,m.O9)(t.groupIndex)&&!t.showWhenGrouped&&!t.command}function zs(a){var{element:e,watch:t,getter:i,callBack:r}=a;if(t){var o=t(i,r);n.A.on(e,Rt.N,o)}}var gc=function(a,e){var t=(0,bt.Im)(e.text)&&"data"===e.rowType,{text:i}=e,r=a.get(0);t?q.setEmptyText(a):e.column.encodeHtml?r.textContent=i:r.innerHTML=i};W.registerModule("rows",{defaultOptions:()=>({hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:R.A.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:R.A.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}),views:{rowsView:class _c extends Ht{init(){super.init(),this._editingController=this.getController("editing"),this._resizingController=this.getController("resizing"),this._columnsResizerController=this.getController("columnsResizer"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._val
1idatingController=this.getController("validating"),this._errorHandlingController=this.getController("errorHandling"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowHeight=0,this._scrollTop=0,this._scrollLeft=-1,this._scrollRight=0,this._hasHeight=void 0,this._contentChanges=[],this._dataController.loadingChanged.add((e,t)=>{this.setLoading(e,t)}),this._dataController.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})}_getDefaultTemplate(e){return"empty"===e.command?function(t){t.html("&nbsp;")}:gc}_getDefaultGroupTemplate(e){var t=this.option("summary.texts");return function(i,r){var{data:o}=r,s="".concat(r.column.caption,": ").concat(r.text),c=i.get(0);r.summaryItems&&r.summaryItems.length&&(s+=" ".concat(q.getGroupRowSummaryText(r.summaryItems,t))),o&&(r.groupContinuedMessage&&r.groupContinuesMessage?s+=" (".concat(r.groupContinuedMessage,". ").concat(r.groupContinuesMessage,")"):r.groupContinuesMessage?s+=" (".concat(r.groupContinuesMessage,")"):r.groupContinuedMessage&&(s+=" (".concat(r.groupContinuedMessage,")"))),e.encodeHtml?c.textContent=s:c.innerHTML=s}}_update(e){}_updateCell(e,t){mn(t)&&e.addClass(Ls),super._updateCell.apply(this,arguments)}_getCellTemplate(e){var{column:t}=e;return mn(e)?t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}:("data"===e.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}}_createRow(e,t){var i=super._createRow.apply(this,arguments);if(e){var r="group"===e.rowType,o="data"===e.rowType;o&&i.addClass("dx-data-row"),o&&this.option("showRowLines")&&i.addClass("dx-row-lines"),this.option("showColumnLines")&&i.addClass(qs),!1===e.visible&&i.hide(),r&&(i.addClass(Rr),this.setAriaExpandedAttribute(i,e))}return i}_rowPrepared(e,t,i){"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(i)&&e.addClass(Bs),zs({element:e.get(0),watch:t.watch,getter:()=>this._isAltRow(i),callBack:r=>{e.toggleClass(Bs,r)}})),this._setAriaRowIndex(t,e),zs({element:e.get(0),watch:t.watch,getter:()=>t.rowIndex,callBack:()=>this._setAriaRowIndex(t,e)})),super._rowPrepared.apply(this,arguments)}_setAriaRowIndex(e,t){if(t.is("tr")){var{component:i}=this,r="standard"===i.option("scrolling.mode")&&!q.isVirtualRowRendering(i),o=e.rowIndex+1;r?o=i.pageIndex()*i.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)}}setAriaExpandedAttribute(e,t){var i=this.localize(t.isExpanded?"dxDataGrid-ariaExpandedRow":"dxDataGrid-ariaCollapsedRow");this.setAria("roledescription",i,e)}_afterRowPrepared(e){var t=e.args[0],i=this._dataController,r=i.getVisibleRows()[t.rowIndex],o=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.isNewRow&&this.option("twoWayBindingEnabled")&&o&&r){var s=o(()=>i.generateDataValues(t.data,t.columns),()=>{i.repaintRows([r.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});n.A.on(t.rowElement,Rt.N,s)}}_renderScrollable(e){var t=this.element();if(t.children().length||t.append("<div>"),(e||!this._loadPanel)&&this._renderLoadPanel(t,t.parent(),this._dataController.isLocalStore()),(e||!this.getScrollable())&&this._dataController.isLoaded()){for(var i=this.getColumns(),r=!0,o=0;o<i.length;o++)if(!i[o].width&&!i[o].minWidth){r=!1;break}(this.option("columnAutoWidth")||this._hasHeight||r||this._columnsController._isColumnFixing())&&this._renderScrollableCore(t)}}_handleScroll(e){var t=this.option("rtlEnabled"),i=e.component.option("useNative");this._scrollTop=e.scrollOffset.top,this._scrollLeft=e.scrollOffset.left;var r=e.scrollOffset.left;t&&(this._scrollRight=Mt(e.component)-this._scrollLeft,i&&(r=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,U.A)((0,U.A)({},e.scrollOffset),{left:r}),this.name)}_renderScrollableCore(e){var t=this._createScrollableOptions(),i=this._handleScroll.bind(this);t.onScroll=i,this._scrollable=this._createComponent(e,Cn.A,t),this._scrollableContainer=this._scrollable&&(0,x.A)(this._scrollable.container())}_renderLoadPanel(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return q.renderLoadPanel.apply(this,arguments)}_renderContent(e,t,i){return e.empty().append(t),this._findContentElement()}_updateContent(e,t,i){return this._contentChanges.push({newTableElement:e,change:t,isFixedTableRendering:i}),this.waitAsyncTemplates().done(()=>{var r=this._contentChanges;this._contentChanges=[],r.forEach(o=>{var{newTableElement:s,change:c,isFixedTableRendering:d}=o,u=this.getTableElement(d),p=this._findContentElement(d),v=c?.changeType,f=[],O=this.option("highlightChanges"),b=this.addWidgetPrefix("row-inserted-animation");"update"===v?((0,w.__)(c.rowIndices,(S,E)=>{var L,G=this._getRowElements(s).eq(S),J=null===(L=c.changeTypes)||void 0===L?void 0:L[S],he=c.items&&c.items[S];f.push(()=>{var ee,oe=this._getRowElements(u),_e=oe.eq(E);switch(J){case"update":if(he){var be=null===(ee=c.columnIndices)||void 0===ee?void 0:ee[S];(0,m.O9)(he.visible)&&he.visible!==_e.is(":visible")?_e.toggle(he.visible):be?this._updateCells(_e,G,be):_e.replaceWith(G)}break;case"insert":if(oe.length)_e.length?G.insertBefore(_e):G.insertAfter(oe.last());else if(u){var ve=G.is("tbody")?u:u.children("tbody");G.prependTo(ve)}O&&c.isLiveUpdate&&G.addClass(b);break;case"remove":_e.remove()}})}),(0,w.__)(f,function(){this()}),s.remove()):(this.setTableElement(s,d),p.addClass(this.addWidgetPrefix("content")),this._setGridRole(p),this._renderContent(p,s,d))})}).fail(()=>{this._contentChanges=[]})}_getGridRoleName(){return"grid"}_setGridRole(e){var t,i=!(null!==(t=this._dataController)&&void 0!==t&&t.isEmpty()),r=this._getGridRoleName();e?.length&&i&&this.setAria("role",r,e)}_createEmptyRow(e,t,i){var r,o=this._createRow(),s=t?this.getFixedColumns():this.getColumns();o.addClass(e).toggleClass(qs,this.option("showColumnLines"));for(var c=0;c<s.length;c++)r=this._createCell({column:s[c],rowType:"freeSpace",columnIndex:c,columns:s}),(0,m.kf)(i)&&r.css("height",i),o.append(r);return this.setAria("role","presentation",o),o}getFixedColumns(){throw new Error("Method not implemented.")}_appendEmptyRow(e,t,i){var r=this._getBodies(e),o=!r.length||t.is("tbody"),s=o?e:r;if("top"===i){if(s.first().prepend(t),o){var c=s.children("colgroup");s.prepend(c)}}
1else s.last().append(t)}_renderFreeSpaceRow(e,t){var i=this._createEmptyRow(Si);i=this._wrapRowIfNeed(e,i,"refresh"===t?.changeType),this._appendEmptyRow(e,i)}_checkRowKeys(e){var t=this,i=t._getRows(e),r=t._dataController.store()&&t._dataController.store().key();r&&i.some(o=>{if("data"===o.rowType&&void 0===o.key)return t._dataController.fireError("E1046",r),!0})}_needUpdateRowHeight(e){return e>0&&!this._rowHeight}_getRowsHeight(e){return(e=e||this._tableElement).children("tbody").children().not(".dx-virtual-row").not(".".concat(Si)).toArray().reduce((i,r)=>i+(0,De.N)(r).height,0)}_updateRowHeight(){var e=this.getTableElement(),t=this._dataController.items().length;if(e&&this._needUpdateRowHeight(t)){var i=this._getRowsHeight(e);this._rowHeight=i/t}}_findContentElement(e){var t=this.element(),i=this.getScrollable();if(t)return i&&(t=(0,x.A)(i.content())),t.children().first()}_getRowElements(e){var t=super._getRowElements(e);return t&&t.not(".".concat(Si))}_getFreeSpaceRowElements(e){var t=e||this.getTableElements();return t&&t.children("tbody").children(".".concat(Si))}_getNoDataText(){return this.option("noDataText")}_rowClick(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,A.X)({evaluate:i=>(0,me.Hz)(i)(t.data)},e,t))}_rowDblClick(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,A.X)({},e,t))}_getColumnsCountBeforeGroups(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0}_getGroupCellOptions(e){var t=this._getColumnsCountBeforeGroups(e.columns),i=(e.row.groupIndex||0)+t;return{columnIndex:i,colspan:e.columns.length-i-1}}_needWrapRow(){return super._needWrapRow.apply(this,arguments)||!!this.option("dataRowTemplate")}_renderCells(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&super._renderCells(e,t)}_renderGroupedCells(e,t){for(var r,c,{row:i}=t,{columns:o}=t,{rowIndex:s}=i,d=this._getGroupCellOptions(t),u=0;u<=d.columnIndex;u++)u===d.columnIndex&&o[u].allowCollapsing&&"infinite"!==t.scrollingMode?(c=!!i.isExpanded,r=o[u]):(c=null,r={command:"expand",cssClass:o[u].cssClass}),this._needRenderCell(u,t.columnIndices)&&this._renderCell(e,{value:c,row:i,rowIndex:s,column:r,columnIndex:u,columnIndices:t.columnIndices,change:t.change});var p=(0,De.n)(this.option("rtlEnabled")),v=(0,A.X)({},o[d.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:p});d.colspan>1&&(v.colspan=d.colspan),this._needRenderCell(d.columnIndex+1,t.columnIndices)&&this._renderCell(e,{value:i.values[i.groupIndex],row:i,rowIndex:s,column:v,columnIndex:d.columnIndex+1,columnIndices:t.columnIndices,change:t.change})}_renderRows(e,t){var i=this.option("scrolling.mode");super._renderRows(e,(0,A.X)({scrollingMode:i},t)),this._checkRowKeys(t.change),this._renderFreeSpaceRow(e,t.change),this._hasHeight||this.updateFreeSpaceRowHeight(e)}_renderDataRowByTemplate(e,t,i){var{row:r}=t,o=(0,A.X)({columns:t.columns},r),s=this._createRow(r,"tbody");s.appendTo(e),this.renderTemplate(s,i,o,!0,t.change),this._rowPrepared(s,o,t.row)}_renderRow(e,t){var{row:i}=t,{rowTemplate:r}=this.option(),o=this.option("dataRowTemplate");"data"===i.rowType&&o?this._renderDataRowByTemplate(e,t,o):"data"!==i.rowType&&"group"!==i.rowType||(0,m.O9)(i.groupIndex)||!r?super._renderRow(e,t):this.renderTemplate(e,r,(0,A.X)({columns:t.columns},i),!0)}_renderTable(e){var t=this,i=super._renderTable(e);return(0,m.O9)(t.getTableElement())?t._renderScrollable():(t.setTableElement(i),t._renderScrollable(!0),t.resizeCompleted.add(function r(){var o=t.getScrollable();o&&t.element().closest((0,fe.zk)().document).length&&(t.resizeCompleted.remove(r),o._visibilityChanged(!0))})),i}_createTable(){var e=super._createTable.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&e.appendTo(this.component.$element()),e}_renderCore(e){var t=this.element();t.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),t.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",t);var i=this._renderTable({change:e}),r=this._updateContent(i,e);return super._renderCore(e),this._lastColumnWidths=null,r}_getRows(e){return e&&e.items||this._dataController.items()}_getCellOptions(e){var{column:t}=e,{row:i}=e,{data:r}=i,o=i&&i.summaryCells,{value:s}=e,c=q.getDisplayValue(t,s,r,i.rowType),d=super._getCellOptions(e);if(d.value=s,d.oldValue=e.oldValue,d.displayValue=c,d.row=i,d.key=i.key,d.data=r,d.rowType=i.rowType,d.values=i.values,d.text=t.command?"":q.formatValue(c,t),d.rowIndex=i.rowIndex,d.summaryItems=o&&o[e.columnIndex],d.resized=t.resizedCallbacks,(0,m.O9)(t.groupIndex)&&!t.command){var u=this.option("grouping.texts"),p=this.option("scrolling.mode");
1"virtual"!==p&&"infinite"!==p&&(d.groupContinuesMessage=r&&r.isContinuationOnNextPage&&u&&u.groupContinuesMessage,d.groupContinuedMessage=r&&r.isContinuation&&u&&u.groupContinuedMessage)}return d}_setRowsOpacityCore(e,t,i,r){var o=this._columnsController,s=o.getColumns(),c=s&&s[i],d=c&&c.isBand&&c.index;(0,w.__)(e,(u,p)=>{if(!(0,x.A)(p).hasClass(Rr))for(var v=0;v<t.length&&(!((0,m.kf)(d)&&o.isParentBandColumn(t[v].index,d)||t[v].index===i)||(e.eq(u).children().eq(v).css({opacity:r}),(0,m.kf)(d)));v++);})}_getDevicePixelRatio(){return(0,fe.zk)().devicePixelRatio}renderNoDataText(){return q.renderNoDataText.apply(this,arguments)}getCellOptions(e,t){var r,o,i=this._dataController.items()[e];return i&&(o=(0,m.Kg)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t])&&(r=this._getCellOptions({value:o.calculateCellValue(i.data),rowIndex:i.rowIndex,row:i,column:o})),r}getRow(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,x.A)(t[e])}}updateFreeSpaceRowHeight(e){var t=this._dataController,i=t.items(!0).length,r=this._findContentElement(),o=this._getFreeSpaceRowElements(e);if(o&&r&&t.totalCount()>=0){var s=!1;if(i>0)if(this._hasHeight)o.hide(),(0,j.OX)(()=>{var u=this.getScrollbarWidth(!0),p=(0,F.Oq)(this.element())-u,f=p-(0,F.P$)(r)>0,O=this._getRowsHeight(r.children().first()),b=e||this.getTableElements(),L=p-O-Math.ceil(parseFloat(b.css("borderTopWidth")))-this._getHeightCorrection();f&&(0,j.zE)(()=>{o.css("height",L),s=!0,o.show()}),(0,j.zE)(()=>this._updateLastRowBorder(s))});else{var c=t.pageSize()-i,d=this.option("scrolling.mode");c>0&&t.pageCount()>1&&"virtual"!==d&&"infinite"!==d&&((0,it.k$)(o,c*this._rowHeight),s=!0),!s&&e?(0,it.k$)(o,0):o.toggle(s),this._updateLastRowBorder(s)}else o.css("height",0),o.show(),this._updateLastRowBorder(!0)}}_getHeightCorrection(){var e=Ie.A.webkit&&this._getDevicePixelRatio()>=2,t=Ie.A.chrome&&Ie.A.version>=91,i=Ie.A.mozilla&&Ie.A.version>=70&&!this.option("showRowLines");return e||i||t?1:0}_columnOptionChanged(e){var{optionNames:t}=e;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(super._columnOptionChanged(e),this._fireColumnResizedCallbacks())}getScrollable(){return this._scrollable}_handleDataChanged(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}}publicMethods(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]}contentWidth(){return(0,F.RG)(this.element())-this.getScrollbarWidth()}getScrollbarWidth(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return t&&(e?(i=t.clientHeight?t.offsetHeight-t.clientHeight:0,i+=function(a){var e=a.getScrollable();return e?Math.ceil(parseFloat((0,x.A)(e.content()).css("paddingBottom"))):0}(this)):i=t.clientWidth?t.offsetWidth-t.clientWidth:0),i>0?i:0}_fireColumnResizedCallbacks(){for(var e=this._lastColumnWidths||[],t=[],i=this.getColumns(),r=0;r<i.length;r++)t[r]=i[r].visibleWidth,i[r].resizedCallbacks&&!(0,m.O9)(i[r].groupIndex)&&e[r]!==t[r]&&i[r].resizedCallbacks.fire(t[r]);this._lastColumnWidths=t}_updateLastRowBorder(e){this.option("showBorders")&&!e?this.element().addClass(Ns):this.element().removeClass(Ns)}_updateScrollable(){var e=Cn.A.getInstance(this.element());e&&(e.update(),(e.option("useNative")||!e?.isRenovated())&&this._updateHorizontalScrollPosition())}_updateHorizontalScrollPosition(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;if(this.option("rtlEnabled")){var r=Mt(e);r-t!==this._scrollRight&&(this._scrollLeft=r-this._scrollRight)}this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})}_resizeCore(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,j.zE)(()=>{e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,j.OX)(()=>{e._updateScrollable()})})}scrollTo(e){var t=this.element(),i=t&&Cn.A.getInstance(t);i&&i.scrollTo(e)}height(e){var t=this.element();if(0===arguments.length)return t?(0,F.P$)(t,!0):0;(0,m.O9)(e)&&t&&(this.hasHeight("auto"!==e),(0,it.k$)(t,e))}hasHeight(e){if(0===arguments.length)return!!this._hasHeight;this._hasHeight=e}setLoading(e,t){var i=this._loadPanel,r=this._dataController,o=this.option("loadPanel")||{}
1,s=r.isLoaded()?o.animation:null,c=this.element();if((0,fe.Vd)()&&(!i&&void 0!==t&&r.isLocalStore()&&"auto"===o.enabled&&c&&(this._renderLoadPanel(c,c.parent()),i=this._loadPanel),i)){var d={message:t||o.text,animation:s,visible:e};e&&(d.position=q.calculateLoadPanelPosition(c)),clearTimeout(this._hideLoadingTimeoutID),i.option("visible")&&!e?this._hideLoadingTimeoutID=setTimeout(()=>{i.option(d)},200):i.option(d)}}setRowsOpacity(e,t){var i=this._getRowElements().not(".".concat(Rr))||[];this._setRowsOpacityCore(i,this.getColumns(),e,t)}_getCellElementsCore(e){var t=super._getCellElementsCore.apply(this,arguments);if(t){var i=t.filter(".".concat(Ls)).index();if(i>=0&&t.length>i+1)return t.slice(0,i+1)}return t}_getBoundaryVisibleItemIndex(e,t){var i=0,r=0,o=0,s=this._scrollTop,c=this._findContentElement(),d=c&&c.offset().top,u=this._dataController.items(),p=this.getTableElement();if(u.length&&p){var v=this._getRowElements(p).filter(":visible");for(e||(s+=(0,F.P$)(this._hasHeight?this.element():(0,fe.zk)())),i=0;i<u.length;i++){r=o;var O=(0,x.A)(v).eq(i);if(O.length&&(o=O.offset(),(o=(e?o.top:o.top+(0,F.P$)(O))-d)>s)){i&&(t||2*s<Math.round(o+r))&&i--;break}}i&&i===u.length&&i--}return i}getTopVisibleItemIndex(e){return this._getBoundaryVisibleItemIndex(!0,e)}getBottomVisibleItemIndex(e){return this._getBoundaryVisibleItemIndex(!1,e)}getTopVisibleRowData(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data}_scrollToElement(e,t){var i=this.getScrollable();i&&i.scrollToElement(e,t)}optionChanged(e){switch(super.optionChanged(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),e.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,e.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":this.renderNoDataText(),e.handled=!0}}setAriaOwns(e,t,i){var r,o=this._findContentElement(),s=this.getTableElement();s?.length&&this.setAria("owns","".concat(e??""," ").concat(null!==(r=s.attr("id"))&&void 0!==r?r:""," ").concat(t??"").trim(),o)}dispose(){super.dispose(),clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()}setScrollerSpacing(e,t){}_restoreErrorRow(e){}}}});var Hs=P(458),Cc={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},mc=["columnHeadersView","rowsView","footerView","headerPanel"];W.registerModule("contextMenu",{defaultOptions:()=>({onContextMenuPreparing:null}),controllers:{contextMenu:class fc extends ge.ViewController{init(){this.createAction("onContextMenuPreparing")}getContextMenuItems(e){if(!e)return!1;var r,o,s,c,t=this,i=(0,x.A)(e.target);return(0,w.__)(mc,function(){var d,u,p=t.getView(this);if((r=p&&p.element())&&(r.is(i)||r.find(i).length)){s=i.closest(".dx-row > td, .dx-row > tr"),o=s.parent();var v=p.getRowIndex(o),f=s[0]&&s[0].cellIndex,O=o.data("options"),b={event:e,targetElement:(0,Re.c)(i),target:Cc[this],rowIndex:v,row:p._getRows()[v],columnIndex:f,column:null===(u=null===(d=O?.cells)||void 0===d?void 0:d[f])||void 0===u?void 0:u.column};if(b.items=p.getContextMenuItems&&p.getContextMenuItems(b),t.executeAction("onContextMenuPreparing",b),t._contextMenuPrepared(b),c=b.items)return!1}}),c}_contextMenuPrepared(e){}}},views:{contextMenuView:class Oc extends ge.View{init(){super.init(),this._contextMenuController=this.getController("contextMenu")}_renderCore(){var e=this.element().addClass("dx-context-menu");this.setAria("role","presentation",e),this._createComponent(e,Hs.A,{onPositioning:t=>{var{event:i}=t,r=t.component,o=this._contextMenuController.getContextMenuItems(i);o?(r.option("items",o),i.stopPropagation()):t.cancel=!0},onItemClick(t){var i,r;null===(r=null===(i=t.itemData)||void 0===i?void 0:i.onItemClick)||void 0===r||r.call(i,t)},cssClass:this.getWidgetContainerClass(),target:this.component.$element()})}}}});var Hn="dx-error-row",js="dx-error-message";W.registerModule("errorHandling",{defaultOptions:()=>({errorRowEnabled:!0}),controllers:{errorHandling:class Bu extends ge.ViewController{init(){this._resizingController=this.getController("resizing"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")}_createErrorRow(e,t){var i,r,o=this._renderErrorMessage(e);return t?(i=(0,x.A)("<tr>").attr("role","row").addClass(Hn),r=(0,x.A)("<div>").addClass("dx-closebutton").addClass(this.addWidgetPrefix("action")),n.A.on(r,ke.U,this.createAction(s=>{var c,d,p,u=s.event,v=(0,x.A)(u.currentTarget).closest(".".concat(Hn)).index();u.stopPropagation(),(0,w.__)(t,(f,O)=>{p=(0,x.A)(O).children("tbody").children("tr").eq(v),this.removeErrorRow(p)}),null===(d=null===(c=this._resizingController)||void 0===c?void 0:c.fireContentReadyAction)||void 0===d||d.call(c)})),(0,x.A)("<td>").attr({colSpan:this._columnsController.getVisibleColumns().length,role:"gridcell"}).prepend(r).append(o).appendTo(i),i):o}_renderErrorMessage(e){var t=e.url?e.message.replace(e.url,""):e.message||e,i=(0,x.A)("<div>").attr("role","alert").attr("aria-roledescription",R.A.format("dxDataGrid-ariaError")).addClass(js).text(t);return e.url&&(0,x.A)("<a>").attr("href",e.url).text(e.url).appendTo(i),i}renderErrorRow(e,t,i){var r,o,c,d,s=this;if(i)return i.find(".".concat(js)).remove(),c=s._createErrorRow(e),i.prepend(c),c;var u=t>=0||!s._columnHeadersView.isVisible()?s._rowsView:s._columnHeadersView,p=u.getTableElements();return(0,w.__)(p,(v,f)=>{if(c=s._createErrorRow(e,p),d=d||c,t>=0){var O=u._getRowElements((0,x.A)(f)).eq(t);s.removeErrorRow(O.next()),c.insertAfter(O)}else{var b=(0,x.A)(f).children("tbody"),S=b.children("tr");s._columnHeadersView.isVisible()?(s.removeErrorRow(S.last()),(0,x.A)(f).append(c)):(s.removeErrorRow(S.first()),b.first().prepend(c))}}),null===(o=null===(r=this._resizingController)||void 0===r?void 0:r.fireContentReadyAction)||void 0===o||o.call(r),d}removeErrorRow(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element
1();if(!(e=t&&t.find(".".concat(Hn)))||!e.length){var i=this._rowsView.element();e=i&&i.find(".".concat(Hn))}}e&&e.hasClass(Hn)&&e.remove()}optionChanged(e){"errorRowEnabled"===e.name?e.handled=!0:super.optionChanged(e)}}},extenders:{controllers:{data:a=>class extends a{init(){super.init(),this.dataErrorOccurred.add((e,t)=>{this.option("errorRowEnabled")&&this._errorHandlingController.renderErrorRow(e,void 0,t)}),this.changed.add(e=>{var t,i;e&&"loadError"===e.changeType||this._editingController&&!this._editingController.hasChanges()&&(null===(i=null===(t=this._errorHandlingController)||void 0===t?void 0:t.removeErrorRow)||void 0===i||i.call(t))})}}}}});var Us="borders",$s="dx-gridbase-container",yi="adaptiveHidden",Ei=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],te=function(a){return(0,m.Kg)(a)&&a.endsWith("%")},Ft=function(a,e){var t=a._rowsView.contentWidth();return t-a._getTotalWidth(e,t)};W.registerModule("gridView",{defaultOptions:()=>({showBorders:!1,renderAsync:!1}),controllers:{resizing:class Ri extends ge.ViewController{init(){this._prevContentMinHeight=null,this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editorFactoryController=this.getController("editorFactory"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}_initPostRenderHandlers(){this._refreshSizesHandler||(this._refreshSizesHandler=e=>{var t=(new k.cY).resolve(null),i=e?.changeType,r=e?.isDelayed,o=i&&"updateSelection"!==i&&"updateFocusedRow"!==i&&"pageIndex"!==i&&!r;this._dataController.changed.remove(this._refreshSizesHandler),this._checkSize()&&(t=this._refreshSizes(e)),o&&(0,k.z7)(t).done(()=>{this._setAriaLabel(),this.fireContentReadyAction()})},this._dataController.changed.add(()=>{this._dataController.changed.add(this._refreshSizesHandler)}))}_refreshSizes(e){var t,i=(new k.cY).resolve(null),r=e?.changeType,o=e?.isDelayed,s=this._dataController.items();if(e&&"refresh"!==r&&"prepend"!==r&&"append"!==r){if("update"===r){if(0===(null===(t=e.changeTypes)||void 0===t?void 0:t.length))return i;!(s.length>1||"insert"!==e.changeTypes[0])||0===s.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?i=this.resize():(i=new k.cY,this._waitAsyncTemplates().done(()=>{(0,j.OX)(()=>(0,j.zE)(()=>(0,j.OX)(()=>{this._setScrollerSpacing(),this._rowsView.resize(),i.resolve()})))}).fail(i.reject))}}else o||(i=this.resize());return i}fireContentReadyAction(){this.component._fireContentReadyAction()}_getWidgetAriaLabel(){return"dxDataGrid-ariaDataGrid"}_setAriaLabel(){var e=Math.max(0,this._dataController.totalItemsCount());this.component.setAria("label",R.A.format(this._getWidgetAriaLabel(),e,this.component.columnCount()),this.component.$element().children(".".concat($s)))}_getBestFitWidths(){var e,t=this._rowsView,i=this._columnHeadersView,r=t.getColumnWidths();if(!r?.length){var o=i.getTableElement();i.setTableElement(null===(e=t.getTableElement())||void 0===e?void 0:e.children(".dx-header")),r=i.getColumnWidths(),i.setTableElement(o)}return r}_setVisibleWidths(e,t){var i=this._columnsController;i.beginUpdate(),(0,w.__)(e,(r,o)=>{var s=i.getColumnId(o);i.columnOption(s,"visibleWidth",t[r])}),i.endUpdate()}_toggleBestFitModeForView(e,t,i){if(e&&e.isVisible()){var r=this._rowsView.getTableElements(),o=e.getTableElements();(0,w.__)(r,(s,c)=>{var d,u=(0,x.A)(c),p=o.eq(s);p&&p.length&&((d=i?p.children("tbody").appendTo(u):u.children(".".concat(t)).appendTo(p)).toggleClass(t,i),d.toggleClass(this.addWidgetPrefix("best-fit"),i))})}}_toggleBestFitMode(e){var t=this._rowsView.getTableElement(),i=this._rowsView.getTableElements().eq(1);t&&(t.css("tableLayout",e?"auto":"fixed"),t.children("colgroup").css("display",e?"none":""),(0,w.__)(i.find("tr.dx-group-row"),(r,o)=>{(0,x.A)(o).css("display",e?"none":"")}),i.toggleClass(this.addWidgetPrefix("table-fixed"),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerVie
1w,"dx-footer",e),this._needStretch()&&(t.get(0).style.width=e?"auto":""))}_toggleContentMinHeight(e){var t=this._rowsView.getScrollable(),i=this._rowsView._findContentElement();!1===t?.option("useNative")&&(!0===e&&(this._prevContentMinHeight=i.get(0).style.minHeight),(0,m.O9)(this._prevContentMinHeight)&&i.css({minHeight:e?q.getContentHeightLimit(Ie.A):this._prevContentMinHeight}))}_synchronizeColumns(){var d,v,f,e=this._columnsController,t=e.getVisibleColumns(),i=this.option("columnAutoWidth"),r=this.option("wordWrapEnabled"),o=t.some(b=>!(0,m.O9)(b.width)),s=this._needBestFit(),c=!1,u=!1,p=[];!s&&(0,w.__)(t,(b,S)=>{if("auto"===S.width)return s=!0,!1}),(0,w.__)(t,(b,S)=>{if(S.minWidth)return c=!0,!1}),this._setVisibleWidths(t,[]);var O=this.component.$element();s&&(v=I.A.getActiveElement(O.get(0)),f=q.getSelectionRange(v),this._toggleBestFitMode(!0),d=!0),this._toggleContentMinHeight(r),O&&O.get(0)&&this._maxWidth&&(delete this._maxWidth,O[0].style.maxWidth=""),(0,j.OX)(()=>{var S;s?(p=this._getBestFitWidths(),(0,w.__)(t,(S,E)=>{var L=e.getColumnId(E);e.columnOption(L,"bestFitWidth",p[S],!0)})):c&&(p=this._getBestFitWidths()),(0,w.__)(t,function(S){var a,{width:E}=this;"auto"!==E&&((0,m.O9)(E)?p[S]=(0,m.kf)(E)||(0,m.Kg)(a=E)&&a.endsWith("px")?parseFloat(E):E:i||(p[S]=void 0))}),d&&(this._toggleBestFitMode(!1),d=!1,v&&v!==I.A.getActiveElement())&&((0,De.N)(v).bottom<0||function(a,e){(function Te(a,e){$=!0,a.focus({preventScroll:e}),$=!1})(a,!0),q.setSelectionRange(a,e)}(v,f)),u=this._correctColumnWidths(p,t),i&&((0,w.__)(t,(E,L)=>{"groupExpand"===L.type&&(S=p[E])}),(0,w.__)(t,(E,L)=>{"groupExpand"===L.type&&S&&(p[E]=S)}),this._needStretch()&&this._processStretch(p,t)),(0,j.zE)(()=>{(s||u||o)&&this._setVisibleWidths(t,p),r&&this._toggleContentMinHeight(!1)})})}_needBestFit(){return this.option("columnAutoWidth")}_needStretch(){return this._columnsController.getVisibleColumns().some(e=>"auto"===e.width&&!e.command)}_getAverageColumnsWidth(e){return Ft(this,e)/e.filter(r=>void 0===r).length}_correctColumnWidths(e,t){var r,i=this,o=!1,s=!1,c=!1,d=i.component.$element(),u=i._hasWidth,p=function(){var L=r,G=t[L],J=e[L]===yi,he=e[L],{minWidth:ee}=G;if(ee)if(void 0===he){var oe=i._getAverageColumnsWidth(e);he=oe}else if(te(he)){var _e=function(a,e,t,i){return Ft(a,i.map((r,o)=>o===e?t:r))}(i,L,ee,e);_e<0&&(he=-1)}var be=i._getRealColumnWidth(L,e.map((ve,$e)=>L===$e?he:ve));ee&&!J&&be<ee&&(e[L]=ee,c=!0,r=-1),(0,m.O9)(G.width)||(s=!0),te(G.width)&&(o=!0)};for(r=0;r<t.length;r++)p();if(!s&&e.length){var v=i._rowsView.element(),f=i._rowsView.contentWidth(),O=i._rowsView.getScrollbarWidth(),b=i._getTotalWidth(e,f);if(b<f){var S=q.getLastResizableColumnIndex(t,e);if(S>=0&&(e[S]="auto",c=!0,!1===u&&!o)){var E=i.option("showBorders")?Math.ceil((0,F.Ot)(v)-(0,F.hh)(v)):0;i._maxWidth=b+O+E,d.css("maxWidth",i._maxWidth)}}}return c}_processStretch(e,t){var i=this._rowsView.contentWidth(),r=this._getTotalWidth(e,i),o={length:0};if(e.length){(0,w.__)(t,function(p){(this.width||e[p]===yi)&&(o[p]=!0,o.length++)});var s=i-r,c=Math.floor(s/(e.length-o.length)),d=s-c*(e.length-o.length);if(s>=0)for(var u=0;u<e.length;u++)o[u]||(e[u]+=c,d>0&&(d<1?(e[u]+=d,d=0):(e[u]++,d--)))}}_getRealColumnWidth(e,t,i){var r=1,o=t[e];if(!te(o))return parseFloat(o);var s=t.reduce((p,v,f)=>te(v)?p+parseFloat(v):p,0),c=t.reduce((p,v)=>!v||v===yi||te(v)?p:p+parseFloat(v),0),d=(i=i||this._rowsView.contentWidth())-c,u=s*i/100;return c>0&&u+c>=i&&(r=u>d?d/u:1),parseFloat(o)*i*r/100}_getTotalWidth(e,t){for(var i=0,r=0;r<e.length;r++){var o=e[r];o&&o!==yi&&(i+=this._getRealColumnWidth(r,e,t))}return Math.ceil(i)}_getGroupElement(){return this.component.$element().children().get(0)}updateSize(e){var t=(0,x.A)(e),i=this.addWidgetPrefix("important-margin");if(void 0===this._hasHeight&&t&&t.is(":visible")&&(0,F.RG)(t)){var r=t.children(".".concat(this.getWidgetContainerClass()));r.length&&r.detach(),this._hasHeight=!!(0,F.Oq)(t);var o=(0,F.RG)(t);t.addClass(i),this._hasWidth=(0,F.RG)(t)===o,t.removeClass(i),r.length&&r.appendTo(t)}}publicMethods(){return["resize","updateDimensions"]}_waitAsyncTemplates(){var e,t,i;return(0,k.z7)(null===(e=this._columnHeadersView)||void 0===e?void 0:e.waitAsyncTemplates(!0),null===(t=this._rowsView)||void 0===t?void 0:t.waitAsyncTemplates(!0),null===(i=this._footerVie
1w)||void 0===i?void 0:i.waitAsyncTemplates(!0))}resize(){if(!this.component._requireResize){var e=new k.cY;return this._waitAsyncTemplates().done(()=>{(0,k.z7)(this.updateDimensions()).done(e.resolve).fail(e.reject)}).fail(e.reject),e.promise()}}updateDimensions(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var i=t._resizeDeferred,r=t._resizeDeferred=new k.cY;return(0,k.z7)(i).always(()=>{(0,j.zE)(()=>{t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),(0,j.OX)(()=>{(0,j.zE)(()=>{(0,j.OX)(()=>{t._updateDimensionsCore()})})})}).done(r.resolve).fail(r.reject)}),r.promise()}}_resetGroupElementHeight(){var e=this._getGroupElement(),t=this._rowsView.getScrollable();e&&e.style.height&&(!t||!t.scrollTop())&&(e.style.height="")}_checkSize(e){var t=this.component.$element(),i=t.is(":visible"),r=this._lastWidth!==(0,F.RG)(t)||this._lastHeight!==(0,F.Oq)(t)||this._devicePixelRatio!==(0,fe.zk)().devicePixelRatio;return i&&(!e||r)}_setScrollerSpacingCore(){var e=this,t=e._rowsView.getScrollbarWidth(),i=e._rowsView.getScrollbarWidth(!0);(0,j.zE)(()=>{e._columnHeadersView&&e._columnHeadersView.setScrollerSpacing(t),e._footerView&&e._footerView.setScrollerSpacing(t),e._rowsView.setScrollerSpacing(t,i)})}_setScrollerSpacing(){var e=this._rowsView.getScrollable(),t=!0===this.option("scrolling.useNative");!e||t?(0,j.zE)(()=>{(0,j.OX)(()=>{this._setScrollerSpacingCore()})}):this._setScrollerSpacingCore()}_setAriaOwns(){var e,t,i,r=null===(e=this._columnHeadersView)||void 0===e?void 0:e.getTableElement(),o=null===(t=this._footerView)||void 0===t?void 0:t.getTableElement();null===(i=this._rowsView)||void 0===i||i.setAriaOwns(r?.attr("id"),o?.attr("id"))}_updateDimensionsCore(){var e,t=this,i=t._dataController,r=t._rowsView,o=t.component.$element(),s=this._getGroupElement(),c=(0,F.Oq)(o),d=null!==(e=t.option("height"))&&void 0!==e?e:o.get(0).style.height,u=!!d&&"auto"!==d,p=parseInt(o.css("maxHeight")),v=p&&c>=p,f=s&&s.scrollHeight===s.offsetHeight;t.updateSize(o),(0,j.zE)(()=>{r.hasHeight(t._hasHeight||!!p||u),this._setAriaOwns(),v&&!f&&(0,x.A)(s).css("height",p),i.isLoaded()?(0,j.OX)(()=>{t._updateLastSizes(o),t._setScrollerSpacing(),(0,w.__)(Ei,(b,S)=>{var E=t.getView(S);E&&E.resize()}),this._editorFactoryController&&this._editorFactoryController.resize()}):r.setLoading(i.isLoading())})}_updateLastSizes(e){this._lastWidth=(0,F.RG)(e),this._lastHeight=(0,F.Oq)(e),this._devicePixelRatio=(0,fe.zk)().devicePixelRatio}optionChanged(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:super.optionChanged(e)}}},synchronizeScrolling:class Ic extends ge.ViewController{_scrollChangedHandler(e,t,i){for(var r=0;r<e.length;r++)e[r]&&e[r].name!==i&&e[r].scrollTo({left:t.left,top:t.top})}init(){for(var e=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],t=0;t<e.length;t++){var i=e[t];i&&i.scrollChanged.add(this._scrollChangedHandler.bind(this,e))}}}},views:{gridView:class Ir extends ge.View{_endUpdateCore(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())}init(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")}getView(e){return this.component._views[e]}element(){return this._groupElement}optionChanged(e){(0,m.O9)(this._groupElement)&&"showBorders"===e.name?(this._groupElement.toggleClass(this.addWidgetPrefix(Us),!!e.value),e.handled=!0):super.optionChanged(e)}_renderViews(e){var t=this;(0,w.__)(Ei,(i,r)=>{var o=t.getView(r);o&&o.render(e)})}_getTableRoleName(){return"group"}render(e){var t=!this._groupElement,i=this._groupElement||(0,x.A)("<div>").addClass(this.getWidgetContainerClass());i.addClass($s),i.toggleClass(this.addWidgetPrefix(Us),!!this.option("showBorders")),this.setAria("role","presentation",e),this.component.setAria("role",this._getTableRoleName(),i),this._rootElement=e||this._rootElement,t&&(this._groupElement=i,(0,fe.Vd)()&&this._resizingController.updateSize(e),i.appendTo(e)),this._renderViews(i)}update(){this._rootElement&&this._groupElement&&(this._resizingController.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}}},VIEW_NAMES:Ei});var Wt=P(6845),Tr="toolbar-button",kr=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"];W.registerModule("headerPanel",{defaultOptions:()=>({}),views:{headerPanel:class kc extends Ht{init(){super.init(),this._editingController=this.getController("editing"),this._headerFilterController=this.getController("headerFilter"),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]}
1)}_getToolbarItems(){return[]}_getButtonContainer(){return(0,x.A)("<div>").addClass(this.addWidgetPrefix(Tr))}_getToolbarButtonClass(e){var t=e?" ".concat(e):"";return this.addWidgetPrefix(Tr)+t}_getToolbarOptions(){var e=this.option("toolbar"),t={toolbarOptions:{items:this._getToolbarItems(),visible:e?.visible,disabled:e?.disabled,onItemRendered(o){var s=o.itemData.onItemRendered;s&&s(o)}}},i=e?.items;if(t.toolbarOptions.items=this._normalizeToolbarItems(t.toolbarOptions.items,i),this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,m.O9)(t.toolbarOptions.visible)){var r=t.toolbarOptions.items;t.toolbarOptions.visible=!!r?.length}return t.toolbarOptions}_normalizeToolbarItems(e,t){e.forEach(c=>{if(!kr.includes(c.name))throw new Error("Default toolbar item '".concat(c.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var i={location:"after"},r=Array.isArray(t);if(!(0,m.O9)(t))return e;r||(t=[t]);var o={};e.forEach(c=>{o[c.name]=c});var s=t.map(c=>((0,m.Kg)(c)&&(c={name:c}),(0,m.O9)(c.name)&&((0,m.O9)(o[c.name])?c=(0,A.X)(!0,{},o[c.name],c):kr.includes(c.name)&&(c=(0,U.A)((0,U.A)({},c),{visible:!1}))),(0,A.X)(!0,{},i,c)));return r?s:s[0]}_renderCore(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix("header-panel"));var t=R.A.format(this.component.NAME+"-ariaToolbar"),i=(0,x.A)("<div>").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(i,Wt.A,this._toolbarOptions)}}_columnOptionChanged(){}_handleDataChanged(){this._requireReady&&this.render()}_isDisabledDefinedByUser(e){var t,i=null===(t=this.option("toolbar"))||void 0===t?void 0:t.items,r=i?.find(o=>o?.name===e);return(0,m.O9)(r?.disabled)}render(){this._toolbarOptions=this._getToolbarOptions(),super.render.apply(this,arguments)}setToolbarItemDisabled(e,t){var i,r=this._toolbar,o=this._isDisabledDefinedByUser(e);if(r&&!o){var c=(null!==(i=r.option("items"))&&void 0!==i?i:[]).findIndex(u=>u.name===e);if(!(c<0)){var d=r.option("items[".concat(c,"]"));r.option("items[".concat(c,"].disabled"),t),d.options&&r.option("items[".concat(c,"].options.disabled"),t)}}}updateToolbarDimensions(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()}getHeaderPanel(){return this.element()}getHeight(){return this.getElementHeight()}optionChanged(e){if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name&&(e.handled=!0,this._toolbar)){var t=(0,me.u7)(e.fullName),i=e.fullName.replace(/^toolbar\./,"");if(1===t.length){var r=this._getToolbarOptions();this._toolbar.option(r)}else if("items"===t[1])if(2===t.length){var o=this._getToolbarOptions();this._toolbar.option("items",o.items)}else if(3===t.length){var s=this._normalizeToolbarItems(this._getToolbarItems(),e.value);this._toolbar.option(i,s)}else t.length>=4&&this._toolbar.option(i,e.value);else this._toolbar.option(i,e.value)}super.optionChanged(e)}isVisible(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)}allowDragging(){}hasGroupedColumns(){}}},extenders:{controllers:{resizing:a=>class extends a{_updateDimensionsCore(){super._updateDimensionsCore.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}});var jn=P(4905),Dc=P(5978),je=P(1299),fn=P(8041);W.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var xe=fn.A.inherit({_activeStateUnit:".dx-row",_getDefaultOptions(){var a=this.callBase();return(0,w.__)(W.modules,function(){(0,m.Tn)(this.defaultOptions)&&(0,A.X)(!0,a,this.defaultOptions())}),a},_setDeprecatedOptions(){this.callBase(),(0,A.X)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'},"columnChooser.allowSearch":{since:"23.1",message:'Use the "columnChooser.search.enabled" option instead'},"columnChooser.searchTimeout":{since:"23.1",message:'Use the "columnChooser.search.timeout" option instead'}})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:()=>(0,je.Nt)(),options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}
1,selection:{showCheckBoxesMode:"always"}}},{device:()=>Ie.A.webkit,options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:a=>"desktop"!==a.deviceType,options:{grouping:{expandMode:"rowClick"}}}])},_init(){this.callBase(),q.logHeaderFilterDeprecatedWarningIfNeed(this),W.processModules(this,W),W.callModuleItemsMethod(this,"init")},_clean:j.lQ,_optionChanged(a){W.callModuleItemsMethod(this,"optionChanged",[a]),a.handled||this.callBase(a)},_dimensionChanged(){this.updateDimensions(!0)},_visibilityChanged(a){a&&this.updateDimensions()},_initMarkup(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl(){this.getView("gridView").update()},_renderContent(){var a=this;(0,j.zE)(()=>{a._renderContentImpl()})},_getTemplate(a){var e=a;return(0,m.Kg)(e)&&e.startsWith("#")&&(e=(0,x.A)(a),Dc.v.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(e)},_dispose(){this.callBase(),W.callModuleItemsMethod(this,"dispose")},isReady(){return this.getController("data").isReady()},beginUpdate(){this.callBase(),W.callModuleItemsMethod(this,"beginUpdate")},endUpdate(){W.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController(a){return this._controllers[a]},getView(a){return this._views[a]},focus(a){this.getController("keyboardNavigation").focus(a)}});xe.registerModule=W.registerModule.bind(W),(0,jn.A)("dxDataGrid",xe);var Lc=P(2378),qc=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,Bc=function a(e){e&&(0,w.__)(e,(t,i)=>{if((0,m.Qd)(i)||Array.isArray(i))a(i);else if("string"==typeof i){var r=qc.exec(i);r&&(e[t]=new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],+r[6])))}})},Kt=function(a){var e="sessionStorage"===a.type?(0,Lc.s)():(0,fe.zk)().localStorage;if(!e)throw new Error("E1007");return e},Dr=function(a){return(0,m.O9)(a.storageKey)?a.storageKey:"storage"};W.registerModule("stateStoring",{defaultOptions:()=>({stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}),controllers:{stateStoring:class Vr extends ge.ViewController{get _dataController(){return this.getController("data")}get _exportController(){return this.getController("export")}get _columnsController(){return this.getController("columns")}init(){return this._state={},this._isLoaded=!1,this._isLoading=!1,this._windowUnloadHandler=()=>{void 0!==this._savingTimeoutID&&this._saveState(this.state())},n.A.on((0,fe.zk)(),"unload",this._windowUnloadHandler),this}optionChanged(e){"stateStoring"===e.name?(this.isEnabled()&&!this.isLoading()&&this.load(),e.handled=!0):super.optionChanged(e)}dispose(){clearTimeout(this._savingTimeoutID),n.A.off((0,fe.zk)(),"unload",this._windowUnloadHandler)}_loadState(){var e=this.option("stateStoring");if("custom"===e.type)return e.customLoad&&e.customLoad();try{return JSON.parse(Kt(e).getItem(Dr(e)))}catch(t){Oe.A.log("W1022","State storing",t.message)}}_saveState(e){var t=this.option("stateStoring");if("custom"!==t.type)try{Kt(t).setItem(Dr(t),JSON.stringify(e))}catch(i){Oe.A.log(i.message)}else t.customSave&&t.customSave(e)}publicMethods(){return["state"]}isEnabled(){return this.option("stateStoring.enabled")}isLoaded(){return this._isLoaded}isLoading(){return this._isLoading}load(){this._isLoading=!0;var e=(0,k.Sx)(this._loadState());return e.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(t=>{null!==t&&!(0,m.RI)(t)&&this.state(t)}),e}state(e){if(!arguments.length)return(0,A.X)(!0,{},this._state);this._state=(0,A.X)({},e),Bc(this._state)}save(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(()=>{e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))}}},extenders:{views:{rowsView:a=>class extends a{init(){super.init(),this._dataController.stateLoaded.add(()=>{if(this._dataController.isLoaded()&&!this._dataController.getDataSource()){this.setLoading(!1),this.renderNoDataText();var e=this.component.getView("columnHeadersView");e&&e.render(),this.component._fireContentReadyAction()}})}}},controllers:{stateStoring:a=>
1class extends a{init(){return super.init.apply(this,arguments),(a=>{var e=a.getController("columns"),t=a.getController("selection"),i=a.getController("export"),r=a.getController("data");e&&e.columnsChanged.add(()=>{a.updateState({columns:e.getUserState()})}),t&&t.selectionChanged.add(o=>{a.updateState({selectedRowKeys:o.selectedRowKeys,selectionFilter:o.selectionFilter})}),r&&(a._initialPageSize=a.option("paging.pageSize"),a._initialFilterValue=a.option("filterValue"),r.changed.add(()=>{var o=(a=>{var e=a.getView("pagerView"),t=a.getController("data"),i={allowedPageSizes:e?e.getPageSizes():void 0,filterPanel:{filterEnabled:a.option("filterPanel.filterEnabled")},filterValue:a.option("filterValue"),focusedRowKey:a.option("focusedRowEnabled")?a.option("focusedRowKey"):void 0};return(0,A.X)(i,t.getUserState())})(a);a.updateState(o)})),i&&i.selectionOnlyChanged.add(()=>{a.updateState({exportSelectionOnly:i.selectionOnly()})})})(this),this}isLoading(){return super.isLoading()||this._dataController.isStateLoading()}state(e){var t=super.state.apply(this,arguments);return void 0!==e&&this.applyState((0,A.X)(!0,{},e)),t}updateState(e){if(this.isEnabled()){var t=this.state(),i=(0,A.X)({},t,e),r=(0,j.GP)(t),o=(0,j.GP)(i);(0,j.RL)(r,o)||(e=(0,A.X)(!0,{},e),(0,A.X)(this._state,e),this.save())}else(0,A.X)(this._state,e)}applyState(e){var t,{allowedPageSizes:i}=e,{searchText:r}=e,{selectedRowKeys:o}=e,{selectionFilter:s}=e,c=this.option("scrolling.mode"),d="virtual"===c||"infinite"===c,u=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),p=null===(t=this.getView("rowsView"))||void 0===t?void 0:t.hasHeight();this.component.beginUpdate(),this._columnsController&&this._columnsController.setUserState(e.columns),this._exportController&&this._exportController.selectionOnly(e.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",o||[]),this.option("selectionFilter",s),i&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=i),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",e.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",r||""),this.option("filterValue",((a,e)=>{var t=a.getController("filterSync"),i=a.getController("columns");return t?e.columns||void 0!==e.filterValue?e.filterValue||t.getFilterValueFromColumns(e.columns):a._initialFilterValue||t.getFilterValueFromColumns(i.getColumns()):null})(this,e)),this.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),this.option("paging.pageIndex",(!d||p)&&e.pageIndex||0),this.option("paging.pageSize",d&&!u||!(0,m.O9)(e.pageSize)?this._initialPageSize:e.pageSize),this._dataController&&this._dataController.reset()}},columns:a=>class extends a{_shouldReturnVisibleColumns(){return super._shouldReturnVisibleColumns.apply(this,arguments)&&(!this._stateStoringController.isEnabled()||this._stateStoringController.isLoaded())}},data:a=>class extends a{dispose(){clearTimeout(this._restoreStateTimeoutID),super.dispose()}callbackNames(){return super.callbackNames().concat(["stateLoaded"])}_refreshDataSource(){if(this._stateStoringController.isEnabled()&&!this._stateStoringController.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var e=new k.cY;return this._restoreStateTimeoutID=setTimeout(()=>{this._stateStoringController.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{super._refreshDataSource(),this.stateLoaded.fire(),e.resolve()}).fail(t=>{this.stateLoaded.fire(),this._handleLoadError(t||"Unknown error"),e.reject()})}),e.promise()}this.isStateLoading()||super._refreshDataSource()}isLoading(){return super.isLoading()||this._stateStoringController.isLoading()}isStateLoading(){return(0,m.O9)(this._restoreStateTimeoutID)}isLoaded(){return super.isLoaded()&&!this.isStateLoading()}},selection:a=>class extends a{_fireSelectionChanged(e){var t=this.option("selection.deferred");this._stateStoringController.isLoading()&&t||super._fireSelectionChanged.apply(this,arguments)}}}}});var Ys=P(4602),jc=P(4366),Js="dx-editor-cell",Zs="dx-selection",Xt="dx-select-checkbox",Qs="dx-command-select",qr="dx-data-row",Ct="selection.showCheckBoxesM
1ode",ot="selection.mode",ta=function(a,e){var t=a.getView("rowsView"),i=a.getController("selection"),r=(0,x.A)(e.target).closest(".".concat(qr)),o=t.getRowIndex(r);o<0||("onLongTap"===a.option(Ct)?i.isSelectionWithCheckboxes()?i.stopSelectionWithCheckboxes():i.startSelectionWithCheckboxes():("onClick"===a.option(Ct)&&i.startSelectionWithCheckboxes(),"always"!==a.option(Ct)&&i.changeItemSelection(o,{control:!0})))},na=(a,e)=>{var{component:t}=e,i=t.getView("rowsView");t.option("renderAsync")&&!t.option("selection.deferred")&&(e.value=t.isRowSelected(e.row.key)),i.renderSelectCheckBoxContainer((0,x.A)(a),e)},ia=(a,e)=>{var{column:t}=e,i=(0,x.A)(a),r=e.component.getView("columnHeadersView");i.addClass(Js),r._renderSelectAllCheckBox(i,t),r._attachSelectAllCheckBoxClickEvent(i)};W.registerModule("selection",{defaultOptions:()=>({selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",deferred:!1,maxFilterLengthInRequest:1500,alwaysSelectByShift:!1},selectionFilter:[],selectedRowKeys:[]}),controllers:{selection:class $n extends ge.Controller{init(){var e,{deferred:t,selectAllMode:i,mode:r}=null!==(e=this.option("selection"))&&void 0!==e?e:{};"infinite"===this.option("scrolling.mode")&&!t&&"multiple"===r&&"allPages"===i&&Oe.A.log("W1018"),this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._stateStoringController=this.getController("stateStoring"),this._selectionMode=r,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataPushedHandler||(this._dataPushedHandler=this._handleDataPushed.bind(this),this._dataController.pushed.add(this._dataPushedHandler))}_handleDataPushed(e){this._deselectRemovedOnPush(e),this._updateSelectedOnPush(e)}_deselectRemovedOnPush(e){var t=this.option("selection.deferred"),i=e.filter(o=>"remove"===o.type).map(o=>o.key);if(t){var r=this._dataController.items().filter(o=>o.isSelected).map(o=>o.key);i=i.filter(o=>r.find(s=>
1(0,j.RL)(s,o)))}i.length&&this.deselectRows(i)}_updateSelectedOnPush(e){if(!this.option("selection.deferred")){var i=e.filter(o=>"update"===o.type),r=this.getSelectedRowsData();(0,rt.VK)({keyInfo:this._selection.options,data:r,changes:i})}}_getSelectionConfig(){var e,t=this._dataController,i=this._columnsController,r=null!==(e=this.option("selection"))&&void 0!==e?e:{},{deferred:o}=r,s=this.option("scrolling.mode"),c="virtual"===s||"infinite"===s,d=this.option("selection.allowSelectAll"),u=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:o,alwaysSelectByShift:r.alwaysSelectByShift,maxFilterLengthInRequest:r.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,isVirtualPaging:c,allowLoadByRange(){var p=i.getGroupColumns().length>0;return c&&!u&&!p&&d&&!o},key:()=>t?.key(),keyOf:p=>t?.keyOf(p),dataFields(){var p;return null===(p=t.dataSource())||void 0===p?void 0:p.select()},load(p){var v;return(null===(v=t.dataSource())||void 0===v?void 0:v.load(p))||(new k.cY).resolve([])},plainItems:p=>t.items(!0),isItemSelected:p=>p.selected,isSelectableItem:p=>"data"===p?.rowType&&!p.isNewRow,getItemData:p=>(0,m.O9)(p?.rowType)?p?.oldData||p?.data:p,filter:()=>t.getCombinedFilter(o),totalCount:()=>t.totalCount(),getLoadOptions(p,v,f){var O,b,{sort:S,filter:E}=null!==(b=null===(O=t.dataSource())||void 0===O?void 0:O.lastLoadOptions())&&void 0!==b?b:{},L=Math.min(p,v),G=Math.max(p,v);return(0,m.O9)(f)&&(L=Math.min(f,L),G=Math.max(f,G)),{skip:L,take:G-L+1,filter:E,sort:S}},onSelectionChanged:this._updateSelectedItems.bind(this)}}_updateSelectColumn(){var e=this._columnsController,t=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:t,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:Qs,width:"auto",cellTemplate:na,headerCellTemplate:ia}),e.columnOption("command:select","visible",t)}_createSelection(){var e=this._getSelectionConfig();return new jc.A(e)}_fireSelectionChanged(e){var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t),e&&this.executeAction("onSelectionChanged",e)}_updateCheckboxesState(e){var{isDeferredMode:t}=e,{selectionFilter:i}=e,{selectedItemKeys:r}=e,{removedItemKeys:o}=e;"onClick"===this.option(Ct)&&((t?i&&function(a,e){var t=0,i=a._dataController.store(),r=i&&i.key(),o=Array.isArray(r);if(!e.length)return!1;if(o&&Array.isArray(e[0])&&"and"===e[1]){for(var s=0;s<e.length;s++)if(Array.isArray(e[s])){if(e[s][0]!==r[t]||"="!==e[s][1])return!0;t++}return!1}return r!==e[0]}(this,i):r.length>1)?this.startSelectionWithCheckboxes():(t?i&&!i.length:0===r.length&&o.length)&&this.stopSelectionWithCheckboxes())}_updateSelectedItems(e){var t,i=this.option("selection.deferred"),r=this._selection.selectionFilter(),o=this._dataController,s=o.items(!0),c=o.items();if(s){var d=this.isSelectionWithCheckboxes(),u=this.getChangedItemIndexes(s),p=this.getChangedItemIndexes(c);this._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:r,isDeferredMode:i}),(u.length||d!==this.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:p}),i?(this.option("selectionFilter",r),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",e.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),this._fireSelectionChanged(t)}}getChangedItemIndexes(e){for(var t=[],i=this.option("selection.deferred"),r=0,{length:o}=e;r<o;r++){var s=e[r],c=this.isRowSelected(i?s.data:s.key);this._selection.isDataItem(s)&&s.isSelected!==c&&t.push(r)}return t}callbackNames(){return["selectionChanged"]}optionChanged(e){switch(super.optionChanged(e),e.name){case"selection":var t=this._selectionMode;
1if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var i=this._selectionMode,r=this.option("selectedRowKeys");t!==i&&("single"===i?r.length>1&&(r=[r[0]]):"multiple"!==i&&(r=[])),this.selectRows(r).always(()=>{this._fireSelectionChanged()})}this._columnsController.updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var o=e.value||[];Array.isArray(o)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!o.length)&&this.selectRows(o),e.handled=!0}}publicMethods(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]}isRowSelected(e){return this._selection.isItemSelected(e)}isSelectColumnVisible(){return"multiple"===this.option(ot)&&("always"===this.option(Ct)||"onClick"===this.option(Ct)||this._isSelectionWithCheckboxes)}_isOnePageSelectAll(){return"page"===this.option("selection.selectAllMode")}isSelectAll(){return this._selection.getSelectAllState(this._isOnePageSelectAll())}selectAll(){return"onClick"===this.option(Ct)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())}deselectAll(){return this._selection.deselectAll(this._isOnePageSelectAll())}clearSelection(){return this.selectedItemKeys([])}refresh(){var e,t=null!==(e=this.option("selectedRowKeys"))&&void 0!==e?e:[];return!this.option("selection.deferred")&&t.length?this.selectedItemKeys(t):(new k.cY).resolve().promise()}selectedItemKeys(e,t,i,r){return this._selection.selectedItemKeys(e,t,i,r)}getSelectedRowKeys(e){return this._selection.getSelectedItemKeys()}selectRows(e,t){return this.selectedItemKeys(e,t)}deselectRows(e){return this.selectedItemKeys(e,!0,!0)}selectRowsByIndexes(e){var t=this._dataController.items(),i=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,w.__)(e,function(){var r=t[this];r&&"data"===r.rowType&&i.push(r.key)}),this.selectRows(i)}getSelectedRowsData(e){return this._selection.getSelectedItems()}loadSelectedItemsWithFilter(){return this._selection.loadSelectedItemsWithFilter()}changeItemSelection(e,t,i){t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0);var r=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(r,t,i)}focusedItemIndex(e){if(!(0,m.O9)(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e}isSelectionWithCheckboxes(){return"multiple"===this.option(ot)&&("always"===this.option(Ct)||this._isSelectionWithCheckboxes)}startSelectionWithCheckboxes(){return"multiple"===this.option(ot)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)}stopSelectionWithCheckboxes(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}},extenders:{controllers:{data:a=>class extends a{init(){var e=this.option("selection.deferred");super.init.apply(this,arguments),e&&this._selectionController._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})}_loadDataSource(){var e=this;return super._loadDataSource().always(()=>{e._selectionController.refresh()})}_processDataItem(e,t){var i=this._selectionController.isSelectColumnVisible(),r=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,o=super._processDataItem.apply(this,arguments);if(o.isSelected=this._selectionController.isRowSelected(r?o.data:o.key),i&&o.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){o.values[s]=o.isSelected;break}return o}refresh(e){var t=this,i=new k.cY;return super.refresh.apply(this,arguments).done(()=>{!e||e.selection?t._selectionController.refresh().done(i.resolve).fail(i.reject):i.resolve()}).fail(i.reject),i.promise()}_handleDataChanged(e){var t=this.hasLoadOperation();super._handleDataChanged.apply(this,arguments),t&&!this._repaintChangesOnly&&this._selectionController.focusedItemIndex(-1)}_applyChange(e){if(!e||"updateSelection"!==e.changeType)return super._applyChange.apply(this,arguments);
1e.items.forEach((t,i)=>{var r=this._items[i];r&&(r.isSelected=t.isSelected,r.values=t.values)})}_endUpdateCore(){var e=this._changes;if(e.length>1&&e.every(r=>"updateSelection"===r.changeType)){var i=e.map(r=>r.itemIndexes||[]).reduce((r,o)=>r.concat(o));this._changes=[{changeType:"updateSelection",itemIndexes:i}]}super._endUpdateCore.apply(this,arguments)}},contextMenu:a=>class extends a{_contextMenuPrepared(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||ta(this,t)}}},views:{columnHeadersView:a=>class extends a{init(){super.init(),this._selectionController.selectionChanged.add(this._updateSelectAllValue.bind(this))}_updateSelectAllValue(){var e=this.element(),t=e&&e.find(".".concat(Xt));if(e&&t.length&&"multiple"===this.option("selection.mode")){var i=this._selectionController.isSelectAll(),r=!1!==i,o=this.option("selection.allowSelectAll")?!this._dataController.isEmpty():r;t.dxCheckBox("instance").option({visible:o,value:i})}}_handleDataChanged(e){super._handleDataChanged(e),(!e||"refresh"===e.changeType||e.repaintChangesOnly&&"update"===e.changeType)&&this.waitAsyncTemplates().done(()=>{this._updateSelectAllValue()})}_renderSelectAllCheckBox(e,t){var i=this,r=i._dataController.isEmpty(),o=(0,x.A)("<div>").appendTo(e).addClass(Xt);return i.setAria("label",R.A.format("dxDataGrid-ariaSelectAll"),o),i._editorFactoryController.createEditor(o,(0,A.X)({},t,{parentType:"headerRow",dataType:"boolean",value:this._selectionController.isSelectAll(),editorOptions:{visible:!r&&(i.option("selection.allowSelectAll")||!1!==this._selectionController.isSelectAll())},tabIndex:i.option("useLegacyKeyboardNavigation")?-1:i.option("tabIndex")||0,setValue:(s,c)=>{var d=i.option("selection.allowSelectAll");c.component.option("visible",d||!1!==c.component.option("value")),c.event&&this._selectionController.isSelectAll()!==s&&(c.value&&!d?c.component.option("value",!1):c.value?this._selectionController.selectAll():this._selectionController.deselectAll(),c.event.preventDefault())}})),o}_attachSelectAllCheckBoxClickEvent(e){n.A.on(e,ke.U,this.createAction(t=>{var{event:i}=t;(0,x.A)(i.target).closest(".".concat(Xt)).length||n.A.trigger((0,x.A)(i.currentTarget).children(".".concat(Xt)),ke.U),i.preventDefault()}))}},rowsView:a=>class extends a{renderSelectCheckBoxContainer(e,t){"data"!==t.rowType||t.row.isNewRow?q.setEmptyText(e):(e.addClass(Js),this._attachCheckBoxClickEvent(e),this._renderSelectCheckBox(e,t))}_renderSelectCheckBox(e,t){var i=(0,x.A)("<div>").addClass(Xt).appendTo(e);return this.setAria("label",R.A.format("dxDataGrid-ariaSelectRow"),i),this._editorFactoryController.createEditor(i,(0,A.X)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue(r,o){var s;"keydown"===(null===(s=o?.event)||void 0===s?void 0:s.type)&&n.A.trigger(o.element,ke.U,o)},row:t.row})),i}_attachCheckBoxClickEvent(e){n.A.on(e,ke.U,this.createAction(function(t){var{event:i}=t,r=this.getRowIndex((0,x.A)(i.currentTarget).closest(".".concat("dx-row")));r>=0&&(this._selectionController.startSelectionWithCheckboxes(),this._selectionController.changeItemSelection(r,{shift:i.shiftKey}),(0,x.A)(i.target).closest(".".concat(Xt)).length&&this._dataController.updateItems({changeType:"updateSelection",itemIndexes:[r]}))}))}_update(e){var t=this,i=t.getTableElements();"updateSelection"===e.changeType?i.length>0&&((0,w.__)(i,(r,o)=>{(0,w.__)(e.itemIndexes||[],(s,c)=>{var d;if(e.items[c]&&(d=t._getRowElements((0,x.A)(o)).eq(c)).length){var{isSelected:u}=e.items[c];d.toggleClass(Zs,void 0!==u&&u).find(".".concat(Xt)).dxCheckBox("option","value",u),t.setAria("selected",u,d)}})}),t._updateCheckboxesClass()):super._update(e)}_createTable(){var e=this,t=e.option("selection.mode"),i=super._createTable.apply(e,arguments);return"none"!==t&&(("onLongTap"===e.option(Ct)||!ln.touch)&&n.A.on(i,(0,D.b4)(Ys.A.name,"dxDataGridRowsView"),".".concat(qr),e.createAction(r=>{ta(e.component,r.event),r.event.stopPropagation()})),n.A.on(i,"mousedown selectstart",e.createAction(r=>{var{event:o}=r;o.shiftKey&&o.preventDefault()}))),i}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var{isSelected:i}=e;i&&t.addClass(Zs),"none"!==this.option(ot)&&this.setAria("selected",i,t)}return t}_rowClickForTreeList(e){super._rowClick(e)}_rowClick(e){var t=e.event,i=(0,x.A)(t.target).closest(".".concat("dx-selection-disabled")).length;this.isClickableElement((0,x.A)(t.target))||(!i&&("multiple"!==this.option(ot)||"always"!==this.option(Ct))&&this._selectionController.changeItemSelection(e.rowIndex,{control:(0,D.By)(t),shift:t.shiftKey})&&(t.preventDefault(),e.handled=!0),super._rowClick(e))}isClickableElement(e){return!!e.closest(".".concat(Qs)).length}_renderCore(e){var t=super._renderCore(e);return this._updateCheckboxesClass(),t}_updateCheckboxesClass(){var e=this.getTableElements(),t=this._selectionController.isSelectColumnVisible()&&!this._selectionController.isSelectionWithCheckboxes();(0,w.__)(e,(i,r)=>{(0,x.A)(r).toggleClass("dx-select-checkboxes-hidden",t)})}}}}});var Je=P(3862),Wn=P(2839),xn=P(4633),Ai=P(8321),oa="column-chooser-button",sa="notouch-action",Br="column-chooser",Nr="dx-column-chooser-item",Kn=["showInColumnChooser","caption","allowHiding","visible","cssClass","ownerBand"];W.registerModule("columnChooser",{defaultOptions:()=>({columnChooser:{enabled:!1,search:{enabled:!1,timeout:500,editorOptions:{}},selection:{allowSelectAll:!1,selectByClick:!1,recursive:!1},position:void 0,mode:"dragAndDrop",width:250,height:260,title:R.A.format("dxDataGrid-columnChooserTitle"),emptyPanelText:R.A.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}),controllers:{columnChooser:class td extends ge.ViewController{init(){super.init(),this._rowsView=this.getView("rowsView")}renderShowColumnChooserButton(e){var s,t=this,i=t.addWidgetPrefix(oa),r=t.option("columnChooser.enabled"),o=e.find(".".concat(i));r?o.length?o.show():(s=(0,x.A)("<div>").addClass(i).appendTo(e),t._createComponent(s,Wn.A,{icon:Br,onClick(){t.getView("columnChooserView").showColumnChooser()},hint:t.option("columnChooser.title"),integrationOptions:{}})):o.hide()}getPosition(){var e=this.option("columnChooser.position");return(0,m.O9)(e)?e:{my:"right bottom",at:"right bottom",of:this._rowsView&&this._rowsView.element
1(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}},views:{columnChooserView:class la extends Ht{optionChanged(e){"columnChooser"===e.name?(this._initializePopupContainer(),this.render(null,"full")):super.optionChanged(e)}publicMethods(){return["showColumnChooser","hideColumnChooser"]}_resizeCore(){}_isWinDevice(){return!!Je.A.real().win}_initializePopupContainer(){var e=this,t=e.addWidgetPrefix("column-chooser"),i=e.element().addClass(t),r=e.option("columnChooser"),o=this._columnChooserController.getPosition(),s=(0,je.ss)(),c=(0,je.AE)(s),d=(0,je.gx)(s),u={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,wrapperAttr:{class:t},toolbarItems:[{text:r.title,toolbar:"top",location:c||d?"before":"center"}],position:o,width:r.width,height:r.height,rtlEnabled:e.option("rtlEnabled"),onHidden(){e._isWinDevice()&&(0,x.A)("body").removeClass(e.addWidgetPrefix(sa))},container:r.container};c||d?(0,A.X)(u,{showCloseButton:!0}):u.toolbarItems[u.toolbarItems.length]={shortcut:"cancel"},(0,m.O9)(this._popupContainer)?this._popupContainer.option(u):(e._popupContainer=e._createComponent(i,xn.A,u),e._popupContainer.on("optionChanged",p=>{"visible"===p.name&&e.renderCompleted.fire()})),this.setPopupAttributes()}setPopupAttributes(){var e=this.isSelectMode(),t=this._columnsController.isBandColumnsUsed();this._popupContainer.setAria({role:"dialog",label:R.A.format("dxDataGrid-columnChooserTitle")}),this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!e).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),e),this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-list")),e&&!t&&this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-plain"))}_renderCore(e){if(this._popupContainer){var t=!this.isSelectMode();this._columnChooserList&&"full"!==e?t&&this._updateItems():this._renderTreeView()}}_renderTreeView(){var e,t,i,r=this,o=this._popupContainer.$content(),s=this.option("columnChooser"),c=this.isSelectMode(),p={dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:(0,m.O9)(s.allowSearch)?s.allowSearch:null===(e=s.search)||void 0===e?void 0:e.enabled,searchTimeout:(0,m.O9)(s.searchTimeout)?s.searchTimeout:null===(t=s.search)||void 0===t?void 0:t.timeout,searchEditorOptions:null===(i=s.search)||void 0===i?void 0:i.editorOptions};if(this._isWinDevice()&&(p.useNativeScrolling=!1),(0,A.X)(p,c?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList)p.searchEnabled||(p.searchValue=""),this._columnChooserList.option(p),this._updateItems();else{this._columnChooserList=this._createComponent(o,Ai.A,p),this._updateItems();var v=0;this._columnChooserList.on("optionChanged",f=>{var O=f.component.getScrollable();v=O.scrollTop()}),this._columnChooserList.on("contentReady",f=>{(0,j.OX)(()=>{f.component.getScrollable().scrollTo({y:v}),r.renderCompleted.fire()})})}}_prepareDragModeConfig(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate(t,i,r){(0,x.A)(r).text(t.text).parent().addClass(t.cssClass).addClass(Nr)}}}_prepareSelectModeConfig(){var e,t=this,i=null!==(e=this.option("columnChooser.selection"))&&void 0!==e?e:{},r=!1;return{selectByClick:i.selectByClick,selectNodesRecursive:i.recursive,showCheckBoxesMode:i.allowSelectAll?"selectAll":"normal",onSelectionChanged:o=>{if(!r){var s=(c=o.component.getNodes(),(d=(u,p)=>u.reduce((v,f)=>(v.push(f),f.children.length&&d(f.children,v),v),p))(c,[]));o.component.beginUpdate(),r=!0,((c,d)=>{d.filter(u=>!1===u.itemData.allowHiding).forEach(u=>c.component.selectItem(u.key))})(o,s),o.component.endUpdate(),r=!1,t.component.beginUpdate(),this._isUpdatingColumnVisibility=!0,(c=>{c.forEach(d=>{t._columnsController.columnOption(d.itemData.id,"visible",!1!==d.selected)})})(s),t.component.endUpdate(),this._isUpdatingColumnVisibility=!1}var c,d}}}_updateItems(){var e=this.isSelectMode(),i=function(a,e){var t=[],i=a.isSelectMode(),r=a.option("columnChooser.selection.recursive");return e.length&&(0,w.__)(e,(o,s)=>{var c={text:s.caption,cssClass:s.cssClass,allowHiding:s.allowHiding,expanded:!0,id:s.index,disabled:!1===s.allowHiding,parentId:(0,m.O9)(s.ownerBand)?s.ownerBand:null};i&&!(r&&s.hasColumns)&&(c.selected=s.visible),t.push(c)}),t}(this,this._columnsController.getChooserColumns(e));this._columnChooserList.option("items",i)}_updateItemsSelection(e){var t=e?.map(i=>this._columnsController.columnOption(i));this._columnChooserList.beginUpdate(),t?.forEach(i=>
1{var{visible:r,index:o}=i;r?this._columnChooserList.selectItem(o):this._columnChooserList.unselectItem(o)}),this._columnChooserList.endUpdate()}_columnOptionChanged(e){if(super._columnOptionChanged(e),this.isSelectMode()&&this._columnChooserList&&!this._isUpdatingColumnVisibility){var{optionNames:i}=e,r=i.visible&&1===i.length,o=(0,m.O9)(e.columnIndex)?[e.columnIndex]:e.columnIndices;(Kn.some(c=>i[c])||e.changeTypes.columns&&i.all)&&(this._updateItemsSelection(o),r||this._updateItems())}}getColumnElements(){var e=[],t=this.isSelectMode(),i=this._columnsController.getChooserColumns(t),r=this._popupContainer&&this._popupContainer.$content(),o=r&&r.find(".dx-treeview-node");return o&&i.forEach(s=>{var c=o.filter("[data-item-id = '".concat(s.index,"']")),d=c.length?c.children(".".concat(Nr)).get(0):null;e.push(d)}),(0,x.A)(e)}getName(){return"columnChooser"}getColumns(){return this._columnsController.getChooserColumns()}allowDragging(e){var t=this._columnsController.isParentColumnVisible(e.index),i=!e.visible&&e.allowHiding;return this.isColumnChooserVisible()&&t&&i}allowColumnHeaderDragging(e){return!this.isSelectMode()&&this.isColumnChooserVisible()&&e.allowHiding}getBoundingRect(){var e=this._popupContainer&&this._popupContainer.$overlayContent();if(e&&e.is(":visible")){var t=e.offset();return{left:t.left,top:t.top,right:t.left+(0,F.Ot)(e),bottom:t.top+(0,F.P$)(e)}}return null}showColumnChooser(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,x.A)("body").addClass(this.addWidgetPrefix(sa))}hideColumnChooser(){this._popupContainer&&this._popupContainer.hide()}isColumnChooserVisible(){var e=this._popupContainer;return e&&e.option("visible")}isSelectMode(){return"select"===this.option("columnChooser.mode")}hasHiddenColumns(){var e=this.option("columnChooser.enabled"),t=this.getColumns().filter(i=>!i.visible);return e&&t.length}}},extenders:{views:{headerPanel:a=>class extends a{_getToolbarItems(){var e=super._getToolbarItems();return this._appendColumnChooserItem(e)}_appendColumnChooserItem(e){var t=this;if(t.option("columnChooser.enabled")){var r=t.option("columnChooser.title");e.push({widget:"dxButton",options:{icon:Br,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:r,text:r,onInitialized:function(s){(0,x.A)(s.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(oa)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return e}optionChanged(e){"columnChooser"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}isVisible(){var e=this.option("columnChooser.enabled");return super.isVisible()||e}},columnHeadersView:a=>class extends a{allowDragging(e){var t=!this._columnChooserView.isSelectMode(),i=this._columnChooserView.isColumnChooserVisible();return t&&i&&e.allowHiding||super.allowDragging(e)}}},controllers:{columns:a=>class extends a{allowMoveColumn(e,t,i,r){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===r)&&super.allowMoveColumn(e,t,i,r)}}}}});var Xn=P(1591);function Yt(a,e){for(var t=(0,ct.st)(e.group),i=[],r=0;r<a.length;r++)i.push([t[r].selector,"=",a[r]]);return e.filter&&i.push(e.filter),q.combineFilters(i)}function Gr(a,e,t){for(var i=(0,ct.st)(e.group),r=[],o=t?a.length-1:0;o<a.length;o++){for(var s=[],c=0;c<=o;c++){var{selector:d}=i[c];if(o!==c||null!==a[c]&&!1!==a[c]&&!0!==a[c]){var u=[d,o===c?i[c].desc?">":"<":"=",a[c]];s.push("<"===u[1]?[u,"or",[d,"=",null]]:u)}else!1===a[c]?s.push([d,"=",!!i[c].desc||null]):(a[c]?!i[c].desc:i[c].desc)?s.push([d,"<>",a[c]]):(s.push([d,"<>",null]),s.push([d,"=",null]))}r.push(W.combineFilters(s))}return r=W.combineFilters(r,"or"),W.combineFilters([r,e.filter])}var Hr=function(a,e){var{hash:t}=a;return t&&t[JSON.stringify(e)]},rd=function(a,e){var o,t=0,i=a.length-1;if(!a.length)return 0;do{var r=i+t>>1;a[r].offset>e?i=r:t=r}while(i-t>1);for(o=t;o<=i&&!(a[o].offset>e);o++);return o},od=function a(e,t,i){for(var r=0;r<e.length;r++)t+1>=i?e[r].children=[]:a(e[r].children,t+1,i)},ua=function a(e,t,i){var r=0;if(t)if(i)for(var o=0;o<t.length;o++)e.isGroupItemCountable(t[o])&&r++,r+=a(e,t[o].items,i-1);else r=t.length;return r};class pa{constructor(e){this._dataSource=e,this.reset()}reset(){this._groupsInfo=[],this._totalCountCorrection=0}totalCountCorrection(){return this._totalCountCorrection}updateTotalItemsCount(e){this._totalCountCorrection=e||0}isGroupItemCountable(e){return!this._isVirtualPaging()||!e.isContinuation}_isVirtualPaging(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e}itemsCount(){var t=this._dataSource._dataSource,i=W.normalizeSortingInfo(t.group()||[]).length;return ua(this,t.items(),i)}foreachGroups(e,t,i,r,o){var s=this;return function c(d,u,p,v){var f=[];function O(G,J,he,ee){var oe=J&&G(J,he);return oe&&ee.push(oe),oe}for(var b=0;b<d.length;b++){if(v.push(d[b].data),!p&&!1===O(u,d[b].data,v,f))return!1;if(!d[b].data||d[b].data.isExpanded||i){var{children:S}=d[b],E=S.length&&c(S,u,p,v);if(E&&f.push(E),!1===E)return!1}if(p&&!1===O(u,d[b].data,v,f))return!1;(!d[b].data||d[b].data.offset!==d[b].offset)&&(r=!0),v.pop()}var L=o&&v.slice(0);return r&&k.z7.apply(x.A,f).always(()=>{s._updateGroupInfoOffsets(d,L)})}(s._groupsInfo,e,t,[])}
1_updateGroupInfoOffsets(e,t){t=t||[];for(var i=0;i<e.length;i++){var r=e[i];if(r.data&&r.data.offset!==r.offset){r.offset=r.data.offset;for(var o=0;o<t.length;o++)t[o].offset=r.offset}}e.sort((s,c)=>s.offset-c.offset)}findGroupInfo(e){for(var t,i=this._groupsInfo,r=0;i&&r<e.length;r++)i=(t=Hr(i,e[r]))&&t.children;return t&&t.data}addGroupInfo(e){for(var t,{path:i}=e,r=this._groupsInfo,o=0;o<i.length;o++){if(!(t=Hr(r,i[o]))){t={key:i[o],offset:e.offset,data:{offset:e.offset,isExpanded:!0,path:i.slice(0,o+1)},children:[]};var s=rd(r,e.offset);r.splice(s,0,t),r.hash=r.hash||{},r.hash[JSON.stringify(t.key)]=t}o===i.length-1&&(t.data=e,t.offset!==e.offset&&this._updateGroupInfoOffsets(r)),r=t.children}}allowCollapseAll(){return!0}refresh(e){var{storeLoadOptions:t}=e,i=(0,ct.st)(t.group||[]),r="_group"in this?(0,ct.st)(this._group||[]):i,o=Math.min(r.length,i.length);this._group=t.group;for(var s=0;s<o;s++)if(r[s].selector!==i[s].selector){o=s;break}o?od(this._groupsInfo,0,o):this.reset()}handleDataLoading(){}handleDataLoaded(e,t){t(e)}handleDataLoadedCore(e,t){t(e)}}function jr(a,e,t,i){if(i=i||0,e>1&&t>0){var r=a-Math.floor(a/e)*e||e;return(r+=t-i-2)<0&&(r+=e),Math.floor(r/(e-i-1))}return 0}var Yn=function(a,e,t){return a.foreachGroups((i,r)=>{if(i.isExpanded)return e(i,r)},!0,!1,t,t)},ga=function a(e,t,i,r,o,s,c){var d;if(r.items=r.items||[],r.paths=r.paths||[],r.count=r.count||0,r.lastCount=r.lastCount||0,i)for(var u=0;u<t.length;u++){var p=t[u];if(void 0!==p.items){if(o.push(p.key),s)d=!0;else{var v=e.findGroupInfo(o);d=v&&v.isExpanded}d?p.items?a(e,p.items,i-1,r,o,s,c):1===i&&p.count&&(!s||c)&&(r.items.push(p),r.paths.push(o.slice(0)),r.count+=r.lastCount,r.lastCount=p.count):(p.collapsedItems=p.items,p.items=null),o.pop()}}},sd=function(a,e,t,i,r){var s,o=a.findGroupInfo(i);o?(t?o.count=e.count>0?e.count:e.items&&e.items.length||0:e.count=o.count||e.count,o.offset=r):(t&&(s=e.count>0?e.count:e.items.length),a.addGroupInfo({isExpanded:a._isGroupExpanded(i.length-1),path:i.slice(0),offset:r,count:s||0}))},ha=function a(e,t,i,r,o,s,c){var O,u=(t.group?t.group.length:0)===r,v=0,f=0;if(o=o||0,s=s||[],t.remoteOperations.paging&&!c&&(v=0===o?t.skip||0:t.skips[o-1]||0),o>=r)return i.length;for(var b=0;b<i.length;b++){var S=i[b];if(S){if(s.push(S.key),!S.count&&!S.items||void 0===S.items||(sd(e,S,u,s,v+b),(O=S.items?a(e,t,S.items,r,o+1,s,b):S.count||-1)<0))return-1;f+=O,s.pop()}}return f},Ur=function(a,e){return a&&a.length&&a[e]&&!!a[e].isExpanded},_a=function(a,e,t){for(var i,r=t,o=0;o<a.length;o++)i=a[o].offset+1,o>0&&(i+=a[o-1].childrenTotalCount,e&&(i+=jr(r,e,i,o-1)*o)),r+=i;return r};function va(a,e,t,i){var r=e.items[i],o=a.skips&&a.skips[t],s=a.takes&&a.takes[t],c=i===e.items.length-1,d=0===i,p=r.count>s+(d&&o||0);d&&void 0!==o&&(r.isContinuation=!0),c&&void 0!==s&&p&&(r.isContinuationOnNextPage=!0)}function Ca(a){return!Array.isArray(a)}function ma(a){Ca(a.data)||(a.data=new k.cY)}function fa(a,e,t,i,r,o){e.isCustomLoading||(ga(a,o,t,i={},[]),function ad(a,e,t){var i=t-1,r=a.group?a.group.length:0;e.skip=a.skips&&a.skips[i],a.takes&&void 0!==a.takes[i]&&(e.take=r===t&&e.count?e.count-(e.skip||0):0,e.take+=a.takes[i])}(e,i,t)),i.paths.length&&(e.group?e.group.length:0)-t>0?(ma(e),function ld(a,e,t,i,r,o){var s=e.group||[],c=s[r+1],d=[];(0,w.__)(t.paths,u=>{var p,v={requireTotalCount:!1,requireGroupCount:!0,group:[c],groupSummary:e.storeLoadOptions.groupSummary,filter:Yt(t.paths[u],{filter:e.storeLoadOptions.filter,group:s}),select:e.storeLoadOptions.select,langParams:null===(p=e.storeLoadOptions)||void 0===p?void 0:p.langParams};0===u&&(v.skip=t.skip||0),u===t.paths.length-1&&(v.take=t.take);var f=0===v.take?[]:a._dataSource.loadFromStore(v);(0,k.z7)(f).done(O=>{var b=t.items[u];va(e,t,r,u),b.items=O}),d.push(f)}),k.z7.apply(null,d).done(()=>{ha(a,e,o,i+1),fa(a,e,i+1,t,r+1,o)})}(a,e,i,t,r,o)):i.paths.length&&e.storeLoadOptions.group?(ma(e),function cd(a,e,t,i){var r=[],o=e.group||[];(0,w.__)(t.paths,(u,p)=>{r.push(Yt(p,{group:e.isCustomLoading?e.storeLoadOptions.group:o}))});var{filter:s}=e.storeLoadOptions;e.storeLoadOptions.isLoadingAll||(s=W.combineFilters([s,W.combineFilters(r,"or")]));var c=(0,A.X)({},e.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:o.concat(W.normalizeSortingInfo(e.storeLoadOptions.sort||[])),filter:s}),d=a._dataSource.isLastLevelGroupItemsPagingLocal();d||(c.skip=t.skip,c.take=t.take),(0,k.z7)(0===t.take?[]:a._dataSource.loadFromStore(c)).done(u=>{d&&(u=a._dataSource.sortLastLevelGroupItems(u,o,t.paths),u=t.skip?u.
1slice(t.skip):u,u=t.take?u.slice(0,t.take):u),(0,w.__)(t.items,(p,v)=>{var O=u.splice(0,v.count-(0===p&&t.skip||0));va(e,t,o.length-1,p),v.items=O}),e.data.resolve(i)}).fail(e.data.reject)}(a,e,i,o)):Ca(e.data)&&e.data.resolve(o)}var $r=function(a,e){var t=new k.cY,i=!(!e.group||!e.group.length),r=(0,A.X)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},e,{group:i?e.group:null});return a.load(r).done((o,s)=>{var c=s&&(i?s.groupCount:s.totalCount);isFinite(c)?t.resolve(c):t.reject(Xn.sO.Error(i?"E4022":"E4021"))}).fail(t.reject.bind(t)),t};class Oa extends pa{updateTotalItemsCount(e){var t=0,i=e.extra&&e.extra.totalCount||0,r=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),s=this._isVirtualPaging();Yn(this,c=>{c.childrenTotalCount=0}),Yn(this,(c,d)=>{var u=_a(d,s?0:o,t),p=c.count+c.childrenTotalCount;s||(p+=jr(u,o,p,d.length-1)),d[d.length-2]?d[d.length-2].childrenTotalCount+=p:t+=p}),super.updateTotalItemsCount(t-i+r)}_isGroupExpanded(e){var t=this._dataSource.group();return Ur(t,e)}_updatePagingOptions(e,t){var i=this._isVirtualPaging(),r=this._dataSource.pageSize(),o=[],s=[],c=0,d=0;e.take&&(Yn(this,u=>{u.childrenTotalCount=0,u.skipChildrenTotalCount=0}),Yn(this,(u,p)=>{var v,f=0,O=0,b=_a(p,i?0:r,d),S=0,E=0,L=u.count+u.childrenTotalCount,G=L;t&&t(u,b);var J=e.skip-b;b<=e.skip+e.take&&L&&(v=e.take,i||(L+=(S=jr(b,r,L,p.length-1))*p.length,G+=S,r&&J>=0&&(f=p.length,O=p.length-1,E=Math.floor(J/r))),J>=0?(b+L>e.skip&&o.unshift(J-E*f-u.skipChildrenTotalCount),b+L>=e.skip+v&&s.unshift(v-f-u.childrenTotalCount+u.skipChildrenTotalCount)):b+L>=e.skip+v&&s.unshift(v+J-u.childrenTotalCount)),b<=e.skip&&(p[p.length-2]?p[p.length-2].skipChildrenTotalCount+=Math.min(G,J+1-E*O):c+=Math.min(G,J+1)),b<=e.skip+v&&(L=Math.min(G,J+v-(E+1)*O),p[p.length-2]?p[p.length-2].childrenTotalCount+=L:d+=L)}),e.skip-=c,e.take-=d-c),e.skips=o,e.takes=s}changeRowExpand(e){var t=this.findGroupInfo(e),i=this._dataSource,r=i.remoteOperations().groupPaging,o=W.normalizeSortingInfo(i.group());return t?(t.isExpanded=!t.isExpanded,r&&t.isExpanded&&e.length<o.length?$r(i,{filter:Yt(e,{filter:i.lastLoadOptions().filter,group:i.group()}),group:[o[e.length]],select:i.select()}).done(s=>{t.count=s}):(new k.cY).resolve()):(new k.cY).reject()}handleDataLoading(e){var{storeLoadOptions:t}=e,i=W.normalizeSortingInfo(t.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var r=this._dataSource.remoteOperations().paging;t.group=W.normalizeSortingInfo(t.group),t.group.forEach((o,s)=>{o.isExpanded=!(r&&s===t.group.length-1)})}e.group=e.group||i,e.remoteOperations.paging?(e.skip=t.skip,e.take=t.take,t.requireGroupCount=!0,t.group=i.slice(0,1),this._updatePagingOptions(e),t.skip=e.skip,t.take=e.take):(e.skip=e.loadOptions.skip,e.take=e.loadOptions.take,this._updatePagingOptions(e))}}handleDataLoadedCore(e,t){var o,i=W.normalizeSortingInfo(e.storeLoadOptions.group||e.loadOptions.group).length,r=e.group?e.group.length:0,s={};if(e.isCustomLoading)t(e),ga(this,e.data,i,s,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(e.remoteOperations.paging||this.foreachGroups(c=>{c.count=0}),(o=ha(this,e,e.data,i))<0)return void(e.data=(new k.cY).reject(Oe.A.Error("E1037")));if(e.remoteOperations.paging||i&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=o,e.extra.groupCount=e.data.length),r&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))return void(e.data=(new k.cY).reject(Xn.sO.Error("E4022")));this.updateTotalItemsCount(e),e.remoteOperations.paging||(this._updatePagingOptions(e),e.lastLoadOptions.skips=e.skips,e.lastLoadOptions.takes=e.takes),t(e),e.remoteOperations.paging||this._processPaging(e,i)}fa(this,e,i,s,0,e.data)}_processSkips(e,t,i){if(i){var r=e[0],o=t[0],s=r&&r.items;void 0!==o&&(r.isContinuation=!0,s&&(r.items=s.slice(o),this._processSkips(r.items,t.slice(1),i-1)))}}_processTakes(e,t,i,r,o){if(r&&e){o=o||[];var s=e[e.length-1],c=s&&s.items,d=i[0];s&&(void 0!==d&&(s.count-(s.isContinuation&&t[0]||0)||c.length)>d&&(s.isContinuationOnNextPage=!0,o.forEach(v=>{v.isContinuationOnNextPage=!0}),c&&(c=c.slice(0,d),s.items=c)),o.push(s),this._processTakes(c,t.slice(1),i.slice(1),r-1,o))}}_processPaging(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)}isLastLevelGroupItemsPagingLocal(){return!1}sortLastLevelGroupItems(e){return e}refresh(e,t){var d,u,i=this,r=i._dataSource,{storeLoadOptions:o}=e,s=e.group||e.storeLoadOptions.group,c=W.normalizeSortingInfo(i._group);function p(v,f){f.length===u+1&&(v.isExpanded=d)}for(u=0;
1u<c.length;u++)d=Ur(s,u),Ur(i._group,u)!==d&&i.foreachGroups(p);if(super.refresh.apply(this,arguments),s&&e.remoteOperations.paging&&t.reload)return Yn(i,v=>{var f=$r(r,{filter:Yt(v.path,{filter:o.filter,group:s}),group:s.slice(v.path.length),select:o.select}),O=$r(r,{filter:Gr(v.path,{filter:o.filter,group:s},!0),group:s.slice(v.path.length-1,v.path.length),select:o.select});return(0,k.z7)(O,f).done((b,S)=>{b=parseInt(b.length?b[0]:b),S=parseInt(S.length?S[0]:S),v.offset=b,v.count!==S&&(v.count=S,i.updateTotalItemsCount(e))})},!0)}}var h=P(9845),_=P(7514),l=function(a,e){var t=new k.cY,i=(0,A.X)({skip:0,take:1,requireTotalCount:!0},e);return a.load(i).done((r,o)=>{t.resolve(o&&o.totalCount)}).fail(t.reject.bind(t)),t},g=function(a,e,t){return a.foreachGroups(i=>{if(!i.isExpanded)return e(i)},!1,!1,t,!0)},C=function(a,e){var t=0,i=e||0;return e&&(g(a,r=>{if(r.offset-t>=e)return!1;t+=r.count-1}),i+=t),i},y=function a(e,t,i,r,o,s){for(var c=0,d=!1,u=0;u<t.length;u++){var p=t[u];if(void 0!==p.items){i.push(p.key);var v=e.findGroupInfo(i);if(v&&!v.isExpanded)p.collapsedItems=p.items,p.items=null,r+=v.count,--s<0&&c++,o&&(d=!0);else if(p.items){var f=a(e,p.items,i,r,o,s);o&&(f.offset-r>1?p.isContinuation=!0:d=!0),r=f.offset,(s=f.take)<0&&(p.items.length?p.isContinuationOnNextPage=!0:c++)}i.pop()}else o&&(d=!0),r++,--s<0&&c++;o=!1}return d&&t.splice(0,1),c&&t.splice(-c,c),{offset:r,take:s}},Q=function(a,e){if(a.length!==e.length)return!1;for(var t=0;t<a.length;t++)if(!(0,ct.t7)(null,a[t],e[t]))return!1;return!0},le=function a(e,t,i,r,o){if(t){for(var s=0;s<t.length;s++){var c=t[s];if("key"in c&&void 0!==c.items){i.push(c.key),o&&Q(o.path,i)&&!c.isContinuation&&(o.offset=r);var d=e.findGroupInfo(i);d&&!c.isContinuation&&(d.offset=r),d&&!d.isExpanded?r+=d.count:r=a(e,c.items,i,r,o),i.pop()}else r++}return r}},wt=function a(e,t){var i=e.count||e.items.length;if(!e.count&&t>1){i=0;for(var r=0;r<e.items.length;r++)i+=a(e.items[r],t-1)}return i};class Jt extends pa{handleDataLoading(e){var s,{storeLoadOptions:t}=e,i=[],r=0,o=!1,{group:c}=e.loadOptions,d=0;if(function(a,e){if(e.group){var t=W.normalizeSortingInfo(e.group),i=W.normalizeSortingInfo(a.sort);a.sort=_.A.arrangeSortingInfo(t,i),delete e.group}}(t,e.loadOptions),e.group=e.group||c,!e.isCustomLoading){var u=(0,A.X)({},t);u.skip=C(this,t.skip),u.skip&&u.take&&c&&(u.skip--,u.take++,o=!0),u.take&&c&&(s=u.take,u.take++),g(this,p=>{if(p.offset>=u.skip+u.take+d)return!1;p.offset>=u.skip+d&&p.count&&(d+=p.count-1,i.push(p),r+=p.count)}),(0,w.__)(i,function(){u.filter=function(a,e,t){for(var i=W.normalizeSortingInfo(t||e.group),r=[],o=0;o<a.length;o++){for(var s=[],c=0;c<=o;c++)s.push([i[c].selector,o===c?"<>":"=",a[c]]);r.push(W.combineFilters(s))}return r=W.combineFilters(r,"or"),W.combineFilters([r,e.filter])}(this.path,u,c)}),e.storeLoadOptions=u,e.collapsedGroups=i,e.collapsedItemsCount=r,e.skip=u.skip||0,e.skipFirstItem=o,e.take=s}}handleDataLoaded(e,t){var{collapsedGroups:i}=e,r=W.normalizeSortingInfo(e.group),o=r.length;function s(p,v,f,O,b){if(p&&v.length&&f.length){var S,E,L=(0,me.ao)(v[0],!0);for(E=0;E<p.length&&(S=(0,me.ao)(p[E].key,!0),!(b>=O.offset||L===S));E++)b+=wt(p[E],f.length);(!p.length||L!==S)&&p.splice(E,0,{key:v[0],items:[],count:1===v.length?O.count:void 0}),s(p[E].items,v.slice(1),f.slice(1),O,b)}}if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra._totalCountWasIncreasedByCollapsedItems||(e.extra.totalCount+=e.collapsedItemsCount,e.extra._totalCountWasIncreasedByCollapsedItems=!0)),t(e),o){var{data:c}=e,d=(0,h.A)(c);if(_.A.multiLevelGroup(d,r).enumerate().done(p=>{c=p}),i)for(var u=0;u<i.length;u++)s(c,i[u].path,r,i[u],e.skip);e.isCustomLoading||y(this,c,[],e.skip,e.skipFirstItem,e.take),e.data=c}}isGroupItemCountable(e){return null===e.items}updateTotalItemsCount(){var e=0;g(this,t=>{t.count&&(e-=t.count-1)}),super.updateTotalItemsCount(e)}changeRowExpand(e){var d,t=this,i=t._dataSource,r=i.beginPageIndex?i.beginPageIndex():i.pageIndex(),o=i.items(),s=C(t,r*i.pageSize()),c=t.findGroupInfo(e);return d=c&&!c.isExpanded?(new k.cY).resolve(c.count):l(i,{filter:Yt(e,{filter:i.filter(),group:i.group()})}),(0,k.z7)(d).done(u=>{u=parseInt(u.length?u[0]:u),c?(le(t,o,[],s),c.isExpanded=!c.isExpanded,c.count=u):(le(t,o,[],s,c={offset:-1,count:u,path:e,isExpanded:!1}),c.offset>=0&&t.addGroupInfo(c)),t.updateTotalItemsCount()}).fail(function(){i._eventsStrategy.fireEvent("loadError",arguments)})}allowCollapseAll(){return!1}refresh(e,t){var i=this,{storeLoadOptions:r}=e,o=i._dataSource;if(super.refresh.apply(this,arguments),t.reload)return g(i,s=>{var c=l(o,{filter:Yt(s.path,r)}),d=l(o,{filter:Gr(s.path,r)});return(0,k.z7)(d,c).done((u,p)=>{u=parseInt(u.length?u[0]:u),p=parseInt(p.length?p[0]:p),s.offset=u,s.count!==p&&(s.count=p,i.updateTotalItemsCount())})},!0)}}var Dt="dx-datagrid-group-panel",ki="dx-group-panel-item",xa="dx-toolbar-label";wi.extend(a=>
1class extends a{init(){super.init.apply(this,arguments),this._initGroupingHelper()}_initGroupingHelper(e){var t=this._grouping,i=this.option("grouping.autoExpandAll"),r=this.option("focusedRowEnabled"),o=e?e.remoteOperations:this.remoteOperations();!(o.filtering&&o.sorting&&o.paging)||o.grouping||!i&&r?(!t||t instanceof Jt)&&(this._grouping=new Oa(this)):(!t||t instanceof Oa)&&(this._grouping=new Jt(this))}totalItemsCount(){var e=super.totalItemsCount();return e>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?e+this._grouping.totalCountCorrection():e}itemsCount(){return this._dataSource.group()?this._grouping.itemsCount()||0:super.itemsCount.apply(this,arguments)}allowCollapseAll(){return this._grouping.allowCollapseAll()}isGroupItemCountable(e){return this._grouping.isGroupItemCountable(e)}isRowExpanded(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()}collapseAll(e){return this._collapseExpandAll(e,!1)}expandAll(e){return this._collapseExpandAll(e,!0)}_collapseExpandAll(e,t){var i=this._dataSource,r=i.group(),o=W.normalizeSortingInfo(r||[]);if(o.length){for(var s=0;s<o.length;s++)void 0===e||e===s?o[s].isExpanded=t:r&&r[s]&&(o[s].isExpanded=r[s].isExpanded);i.group(o),this._grouping.foreachGroups((c,d)=>{(void 0===e||e===d.length-1)&&(c.isExpanded=t)},!1,!0),this.resetPagesCache()}return!0}refresh(){return super.refresh.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)}changeRowExpand(e){var t=this._dataSource;if(t.group())return t.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(e).always(()=>{t.endLoading()})}_changeRowExpandCore(e){return this._grouping.changeRowExpand(e)}_hasGroupLevelsExpandState(e,t){if(e&&Array.isArray(e))for(var i=0;i<e.length;i++)if(e[i].isExpanded===t)return!0}_customizeRemoteOperations(e,t){var{remoteOperations:i}=e;e.storeLoadOptions.group?(i.grouping&&!e.isCustomLoading&&(!i.groupPaging||this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0))&&(i.paging=!1),!i.grouping&&(!i.sorting||!i.filtering||e.isCustomLoading||this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1))&&(i.paging=!1)):!e.isCustomLoading&&i.paging&&t.grouping&&this.resetCache(),super._customizeRemoteOperations.apply(this,arguments)}_handleDataLoading(e){return super._handleDataLoading(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)}_handleDataLoaded(e){return this._grouping.handleDataLoaded(e,super._handleDataLoaded.bind(this))}_handleDataLoadedCore(e){return this._grouping.handleDataLoadedCore(e,super._handleDataLoadedCore.bind(this))}});var Fi=function(a,e){var t=this._columnsController;switch(e.itemData.value){case"group":var i=t._dataSource.group()||[];t.columnOption(a.dataField,"groupIndex",i.length);break;case"ungroup":t.columnOption(a.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},Pa=a=>{var e=a?.visible;return"auto"===e?"desktop"===Je.A.current().deviceType:!!e},Wr=(a,e)=>Pa(a)&&!(!a?.allowColumnDragging||!e.allowGrouping);W.registerModule("grouping",{defaultOptions:()=>({grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:R.A.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:R.A.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:R.A.format("dxDataGrid-groupHeaderText"),ungroup:R.A.format("dxDataGrid-ungroupHeaderText"),ungroupAll:R.A.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:R.A.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}),extenders:{controllers:{data:a=>class extends a{init(){super.init(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")}_beforeProcessItems(e){var t=this._columnsController.getGroupColumns();return(e=super._beforeProcessItems(e)).length&&t.length&&(e=this._processGroupItems(e,t.length)),e}_processItem(e,t){return(0,m.O9)(e.groupIndex)&&(0,m.Kg)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=super._processItem.apply(this,arguments),e}_processGroupItem(e,t){return e}_processGroupItems(e,t,i){var r=this._columnsController.getGroupColumns(),o=r[r.length-t];if(!i){var s=this.option("scrolling.mode");i={collectContinuationItems:"virtual"!==s&&"infinite"!==s,resultItems:[],path:[],values:[]}}var{resultItems:c}=i;if(i.data&&(i.collectContinuationItems||!i.data.isContinuation)&&c.push({rowType:"group",data:i.data,groupIndex:i.path.length-1,isExpanded:!!i.data.items,key:i.path.slice(0),values:i.values.slice(0)}),e)if(0===t)c.push.apply(c,e);else for(var d=0;d<e.length;d++){var u=e[d];u&&"items"in u?(i.data=u,i.path.push(u.key),i.values.push(o&&o.deserializeValue&&!o.calculateDisplayValue?o.deserializeValue(u.key):u.key),this._processGroupItems(u.items,t-1,i),i.data=void 0,i.path.pop(),i.values.pop()):c.push(u)}return c}publicMethods(){return super.publicMethods().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])}collapseAll(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())}expandAll(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())}changeRowExpand(e){var t=this,i=t.isRowExpanded(e),r={key:e,expanded:i};return t.executeAction(i?"onRowCollapsing":"onRowExpanding",r),r.cancel?(new k.cY).resolve():(0,k.z7)(t._changeRowExpandCore(e)).done(()=>{r.expanded=!i,t.executeAction(i?"onRowCollapsed":"onRowExpanded",r)})}_changeRowExpandCore(e){var t=this,i=this._dataSource,r=new k.cY;return i?(0,k.z7)(i.changeRowExpand(e)).done(()=>{t.load().done(r.resolve).fail(r.reject)}).fail(r.reject):r.resolve(),r}isRowExpanded(e){var t=this._dataSource;return t&&t.isRowExpanded(e)}expandRow(e){return this.isRowExpanded(e)?(new k.cY).resolve():this.changeRowExpand(e)}collapseRow(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new k.cY).resolve()}optionChanged(e){"grouping"===e.name&&(e.name="dataSource"),super.optionChanged(e)}},columns:a=>class extends a{_getExpandColumnOptions(){var e=super._getExpandColumnOptions.apply(this,arguments);return e.cellTemplate=W.getExpandCellTemplate(),e}},editing:a=>class extends a{_isProcessedItem(e){return(0,m.O9)(e.groupIndex)&&(0,m.Kg)(e.rowType)&&0===e.rowType.indexOf("group")}}},views:{headerPanel:a=>class extends a{_getToolbarItems(){var e=super._getToolbarItems();return this._appendGroupingItem(e)}_appendGroupingItem(e){if(this._isGroupPanelVisible()){var t=!1;e.push({template:()=>{var r=(0,x.A)("<div>").addClass(Dt);return this._updateGroupPanelContent(r),an("groupPanel",this,r,void 0,this._handleActionKeyDown.bind(this)),r},name:"groupPanel",onItemRendered:()=>{t&&this.renderCompleted.fire(),t=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return e}_handleActionKeyDown(e){var{event:t}=e,i=(0,x.A)(t.target),r=i.closest(".".concat(ki)).index(),o=this._columnsController.getGroupColumns()[r],s=o&&o.index;i.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(s,!0):this._processGroupItemAction(s),t.preventDefault()}_isGroupPanelVisible(){return Pa(this.option("groupPanel"))}_renderGroupPanelItems(e,t){var i=this;e.empty(),(0,w.__)(t,(r,o)=>{i._createGroupPanelItem(e,o)}),Et(this)}_createGroupPanelItem(e,t){var i=(0,x.A)("<div>
1").addClass(t.cssClass).addClass(ki).data("columnData",t).appendTo(e).text(t.caption);return function Co(a,e){a.option("useLegacyKeyboardnavigation")||e.attr("tabindex",a.option("tabindex")||0)}(this,i),i}_columnOptionChanged(e){if(!this._requireReady&&!W.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),i=t&&t.find(".".concat(Dt));i&&i.length&&(this._updateGroupPanelContent(i),this.updateToolbarDimensions(),this.renderCompleted.fire())}super._columnOptionChanged()}_updateGroupPanelContent(e){var t=this.getController("columns").getGroupColumns(),i=this.option("groupPanel");this._renderGroupPanelItems(e,t),i.allowColumnDragging&&!t.length&&((0,x.A)("<div>").addClass("dx-group-panel-message").text(i.emptyPanelText).appendTo(e),e.closest(".".concat("dx-toolbar-item")).addClass(xa),e.closest(".".concat(xa)).css("maxWidth","none"))}allowDragging(e){var t=this.option("groupPanel");return Wr(t,e)}getColumnElements(){var e=this.element();return e&&e.find(".".concat(ki))}getColumns(){return this.getController("columns").getGroupColumns()}getBoundingRect(){var e=this.element();if(e&&e.find(".".concat(Dt)).length){var t=e.offset();return{top:t.top,bottom:t.top+(0,F.Oq)(e)}}return null}getName(){return"group"}getContextMenuItems(e){var r,t=this.option("grouping.contextMenuEnabled"),i=(0,x.A)(e.targetElement).closest(".".concat(ki));if(i.length&&(e.column=i.data("columnData")),t&&e.column){var{column:o}=e;if(!(0,m.O9)(o.allowGrouping)||o.allowGrouping){var c=(0,m.O9)(o.groupIndex)&&o.groupIndex>-1,d=this.option("grouping.texts"),u=Fi.bind(this,o);r=[{text:d.ungroup,value:"ungroup",disabled:!c,onItemClick:u},{text:d.ungroupAll,value:"ungroupAll",onItemClick:u}]}}return r}isVisible(){return super.isVisible()||this._isGroupPanelVisible()}hasGroupedColumns(){return this._isGroupPanelVisible()&&!!this.getColumns().length}optionChanged(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}},rowsView:a=>class extends a{getContextMenuItems(e){var i;if(this.option("grouping.contextMenuEnabled")&&e.row&&"group"===e.row.rowType){var o=this._columnsController.columnOption("groupIndex:".concat(e.row.groupIndex));if(o&&o.allowGrouping){var s=this.option("grouping.texts"),c=Fi.bind(this,o);(i=[]).push({text:s.ungroup,value:"ungroup",onItemClick:c},{text:s.ungroupAll,value:"ungroupAll",onItemClick:c})}}return i}_rowClick(e){var t=this.option("grouping.expandMode"),r="infinite"!==this.option("scrolling.mode")&&"rowClick"===t&&(0,x.A)(e.event.target).closest(".".concat("dx-group-row")).length,o=(0,x.A)(e.event.target).closest(".".concat("dx-datagrid-expand")).length;(r||o)&&this._changeGroupRowState(e),super._rowClick(e)}_changeGroupRowState(e){var t=this.getController("data"),i=t.items()[e.rowIndex],r=this._columnsController.columnOption("groupIndex:".concat(i.groupIndex),"allowCollapsing");("data"===i.rowType||"group"===i.rowType&&!1!==r)&&(t.changeRowExpand(i.key,!0),e.event.preventDefault(),e.handled=!0)}},columnHeadersView:a=>class extends a{getContextMenuItems(e){var t=this.option("grouping.contextMenuEnabled"),i=super.getContextMenuItems(e);if(t&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var{column:r}=e;if(!r.command&&(!(0,m.O9)(r.allowGrouping)||r.allowGrouping)){var o=this.option("grouping.texts"),s=(0,m.O9)(r.groupIndex)&&r.groupIndex>-1,c=Fi.bind(this,r);(i=i||[]).push({text:o.groupByThisColumn,value:"group",beginGroup:!0,disabled:s,onItemClick:c}),r.showWhenGrouped&&i.push({text:o.ungroup,value:"ungroup",disabled:!s,onItemClick:c}),i.push({text:o.ungroupAll,value:"ungroupAll",onItemClick:c})}}return i}allowDragging(e){var t=this.option("groupPanel");return Wr(t,e)||super.allowDragging(e)}}}}});var Hu="dx-master-detail-row",Cd=function(a){a._expandedItems=[],a._isExpandAll=a.option("masterDetail.autoExpandAll")};W.registerModule("masterDetail",{defaultOptions:()=>({masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}),extenders:{controllers:{columns:a=>class extends a{_getExpandColumnsCore(){var e=super._getExpandColumnsCore();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:q.getExpandCellTemplate()}),e}},data:a=>class extends a{init(){Cd(this),super.init()}expandAll(e){e<0?(this._isExpandAll=!0,this._expandedItems=[],this.updateItems()):super.expandAll.apply(this,arguments)}collapseAll(e){e<0?(this._isExpandAll=!1,this._expandedItems=[],this.updateItems()):super.collapseAll.apply(this,arguments)}isRowExpandedHack(){return super.isRowExpanded.apply(this,arguments)}isRowExpanded(e){var t=q.getIndexByKey(e,this._expandedItems);
1return Array.isArray(e)?super.isRowExpanded.apply(this,arguments):!!(this._isExpandAll^(t>=0&&this._expandedItems[t].visible))}_getRowIndicesForExpand(e){var t=this.getRowIndexByKey(e);return[t,t+1]}_changeRowExpandCore(e){var t;if(Array.isArray(e))t=super._changeRowExpandCore.apply(this,arguments);else{var i=q.getIndexByKey(e,this._expandedItems);if(i>=0){var{visible:r}=this._expandedItems[i];this._expandedItems[i].visible=!r}else this._expandedItems.push({key:e,visible:!0});this.updateItems({changeType:"update",rowIndices:this._getRowIndicesForExpand(e)}),t=(new k.cY).resolve()}return t}_processDataItemHack(){return super._processDataItem.apply(this,arguments)}_processDataItem(e,t){var i=super._processDataItem.apply(this,arguments);return i.isExpanded=this.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,w.__)(t.visibleColumns,(r,o)=>{if("expand"===o.command&&!(0,m.O9)(o.groupIndex))return t.detailColumnIndex=r,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i}_processItemsHack(){return super._processItems.apply(this,arguments)}_processItems(e,t){var i=this,{changeType:r}=t,o=[];return e=super._processItems.apply(i,arguments),"loadingAll"===r?e:("refresh"===r&&(i._expandedItems=(0,j.VM)(i._expandedItems,s=>s.visible)),(0,w.__)(e,(s,c)=>{o.push(c);var d=q.getIndexByKey(c.key,i._expandedItems);"data"===c.rowType&&(c.isExpanded||d>=0)&&!c.isNewRow&&o.push({visible:c.isExpanded,rowType:"detail",key:c.key,data:c.data,values:[]})}),o)}optionChanged(e){var t,i;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var r=e.value||{},o=e.previousValue||{};t=r.enabled!==o.enabled,i=r.autoExpandAll!==o.autoExpandAll;break;case"masterDetail.template":Cd(this);break;case"masterDetail.enabled":t=!0;break;case"masterDetail.autoExpandAll":i=!0}(t||i)&&Cd(this)}super.optionChanged(e)}},resizing:a=>class extends a{fireContentReadyAction(){super.fireContentReadyAction.apply(this,arguments),this._updateParentDataGrids(this.component.$element())}_updateParentDataGrids(e){var t=e.closest(".".concat(Hu));t.length&&(0,k.z7)(this._updateMasterDataGrid(t,e)).done(()=>{this._updateParentDataGrids(t.parent())})}_updateMasterDataGrid(e,t){var i=(0,x.A)(e).data("options"),r=(0,x.A)(e).closest(".".concat(this.getWidgetContainerClass())).parent().data("dxDataGrid");if(i&&r)return this._updateMasterDataGridCore(r,i)}_updateMasterDataGridCore(e,t){var i=(0,k.cY)();if(e.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(e,t.rowIndex,(0,x.A)(t.rowElement)).done(i.resolve);else{if(!0===e.option("scrolling.useNative"))return void e.updateDimensions().done(()=>i.resolve(!0));var r=e.getScrollable();r?r?.update().done(()=>i.resolve()):i.resolve()}return i.promise()}_updateFixedMasterDetailGrids(e,t,i){var r=(0,k.cY)(),o=(0,x.A)(e.getRowElement(t)),s=(0,x.A)(e.getView("rowsView").getTableElements()),c=2===o?.length&&(0,F.Oq)(o.eq(0))!==(0,F.Oq)(o.eq(1)),d=2===s?.length&&(0,F.Oq)(s.eq(0))!==(0,F.Oq)(s.eq(1));if(c||d){var u=(0,F.RG)(i);return e.updateDimensions().done(()=>{var p=this.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),v=p&&u!==(0,F.RG)(i);p&&v?this.updateDimensions().done(()=>r.resolve(!0)):r.resolve(!0)}),r.promise()}return(0,k.cY)().resolve()}_toggleBestFitMode(e){if(super._toggleBestFitMode.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:a=>class extends a{_getCellTemplate(e){var{column:t}=e,i=this._editingController,r=i&&i.isEditRow(e.rowIndex);return"detail"!==t.command||r?super._getCellTemplate.apply(this,arguments):this.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:this._getDefaultTemplate(t)}}_isDetailRow(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")}_createRow(e){var t=super._createRow.apply(this,arguments);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass(Hu),(0,m.O9)(e.visible)&&t.toggle(e.visible)),t}_renderCells(e,t){var{row:i}=t,o=this._columnsController.getVisibleColumns();i.rowType&&this._isDetailRow(i)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:i,rowIndex:i.rowIndex,column:{command:"detail"},columnIndex:0,change:t.change}).addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",o.length):super._renderCells.apply(this,arguments)}}}}});var ba=P(4441),E_=(P(2934),P(8709)),R_=P(9454),I_=P(1493),{isWrapped:A_}=(P(1214),Rn.A),Kr=function(a,e){return(0,A.X)(a,{readOnly:e.readOnly,placeholder:e.placeholder,inputAttr:{id:e.id,"aria-labelledby":e["aria-labelledby"]},tabIndex:e.tabIndex},e.editorOptions)},ju=function(){return Ie.A.mozilla||Je.A.real().ios},Uu=function(a){var e={},t=ju(),i=a.sharedData||e;return Kr({placeholder:a.placeholder,width:a.width,value:a.value,onValueChanged:function(r){var o="filterRow"===a.parentType||"searchPanel"===a.parentType,s=r.event&&("input"===r.event.type||"ke
1yup"===r.event.type),c=function(d,u){a&&a.setValue(d.value,u)};clearTimeout(e.valueChangeTimeout),s&&o?i.valueChangeTimeout=e.valueChangeTimeout=setTimeout(function(){c(r,e.valueChangeTimeout!==i.valueChangeTimeout)},(0,m.O9)(a.updateValueTimeout)?a.updateValueTimeout:0):c(r)},onKeyDown:function(r){t&&"enter"===(0,D.YD)(r.event)&&n.A.trigger((0,x.A)(r.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===a.parentType?" keyup input":"")},a)},$u=function(a){a.editorName="dxDateBox",a.editorOptions=Kr({value:a.value,onValueChanged:function(e){a.setValue(e.value)},onKeyDown:function(e){var{component:t,event:i}=e,r=t.option("useMaskBehavior");(ju()||r)&&"enter"===(0,D.YD)(i)&&(t.blur(),t.focus())},displayFormat:a.format,type:a.dataType,dateSerializationFormat:null,width:"filterBuilder"===a.parentType?void 0:"auto"},a)},Wu=function(a){var i,e=Uu(a),t="searchPanel"===a.parentType;e.value=a.editorType&&"dxTextBox"!==a.editorType?a.value:(0,m.O9)(i=a.value)?i.toString():"",e.valueChangeEvent+=t?" keyup input search":"",e.mode=e.mode||(t?"search":"text"),a.editorName="dxTextBox",a.editorOptions=e},Ku=function(a){var e=Uu(a);e.value=(0,m.O9)(a.value)?a.value:null,a.editorName="dxNumberBox",a.editorOptions=e};function Xu(a){var t,i,r,e=a.lookup,o="filterRow"===a.parentType;if(e){var s;t=(0,me.Hz)(e.displayExpr),(0,m.Tn)(i=e.dataSource)&&!A_(i)&&(i=i(a.row||{}),function D_(a){if(a.row&&a.row.watch&&"dataRow"===a.parentType){var e=a.editorOptions||{};a.editorOptions=e;var t,i=e.onInitialized;e.onInitialized=function(s){i&&i.apply(this,arguments),(t=s.component).on("disposing",o)};var r,o=a.row.watch(()=>(r=a.lookup.dataSource(a.row))&&r.filter,()=>{t.option("dataSource",r)},s=>{a.row=s})}}(a)),((0,m.Gv)(i)||Array.isArray(i))&&(i=(0,cn.ho)(i),o&&(r=i.postProcess,i.postProcess=function(d){return 0===this.pageIndex()&&(d=d.slice(0)).unshift(null),r?r.call(this,d):d}));var c=!(!e.allowClearing||o);a.editorName=null!==(s=a.editorType)&&void 0!==s?s:"dxSelectBox",a.editorOptions=Kr({searchEnabled:!0,value:a.value,valueExpr:a.lookup.valueExpr,searchExpr:a.lookup.searchExpr||a.lookup.displayExpr,allowClearing:c,showClearButton:c,displayExpr:function(d){return null===d?a.showAllText:t(d)},dataSource:i,onValueChanged:function(d){var u=[d.value];!o&&u.push(d.component.option("text")),a.setValue.apply(this,u)}},a)}}function Yu(a){a.editorName="dxCheckBox",a.editorOptions=Kr({elementAttr:{id:a.id},value:(0,m.O9)(a.value)?a.value:void 0,hoverStateEnabled:!a.readOnly,focusStateEnabled:!a.readOnly,activeStateEnabled:!1,onValueChanged:function(e){a.setValue&&a.setValue(e.value,e)}},a)}var L_=a=>{a.editorName=a.editorType,a.editorOptions=Kr({value:a.value,onValueChanged:function(e){a.setValue(e.value)}},a)},q_=a=>{var e={dxDateBox:$u,dxCheckBox:Yu,dxNumberBox:Ku,dxTextBox:Wu};if(a.lookup)Xu(a);else if(a.editorType){var t;(null!==(t=e[a.editorType])&&void 0!==t?t:L_)(a)}else switch(a.dataType){case"date":case"datetime":$u(a);break;case"boolean":!function(a){"filterRow"===a.parentType||"filterBuilder"===a.parentType?Xu((0,A.X)(a,{lookup:{displayExpr:function(e){return!0===e?a.trueText||"true":!1===e?a.falseText||"false":void 0},dataSource:[!0,!1]}})):Yu(a)}(a);break;case"number":Ku(a);break;default:Wu(a)}};const Ju=a=>class extends a{createEditor(e,t){t.cancel=!1,t.editorElement=(0,Re.c)(e),(0,m.O9)(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),q_(t),this.executeAction("onEditorPreparing",t),!t.cancel&&("dataRow"===t.parentType&&!t.isOnForm&&!(0,m.O9)(t.editorOptions.showValidationMark)&&(t.editorOptions.showValidationMark=!1),function(a,e){var t=(0,x.A)(e.editorElement);if(e.editorName&&e.editorOptions&&t[e.editorName]){if(("dxCheckBox"===e.editorName||"dxSwitch"===e.editorName)&&(e.isOnForm||(t.addClass(a.addWidgetPrefix("checkbox-size")),t.parent().addClass("dx-editor-inline-block"))),a._createComponent(t,e.editorName,e.editorOptions),"dxDateBox"===e.editorName){var i=t.dxDateBox("instance"),r=i._supportedKeys().enter;i.registerKeyHandler("enter",o=>(i.option("opened")&&r(o),!0))}"dxTextArea"===e.editorName&&t.dxTextArea("instance").registerKeyHandler("enter",function(o){"enter"===(0,D.YD)(o)&&!o.ctrlKey&&!o.shift
1Key&&o.stopPropagation()})}}(this,t),this.executeAction("onEditorPrepared",t))}};var md="dx-cell-focus-disabled",Zu="focus-overlay",fd="dx-focused",Qu="dxDataGridEditorFactory",ep=(0,D.b4)([Se.A.down,"focusin",ke.U].join(" "),Qu),Od="dx-hidden",W_=Ju(ge.ViewController);W.registerModule("editorFactory",{defaultOptions:()=>({}),controllers:{editorFactory:class K_ extends W_{init(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._columnsResizerController=this.getController("columnsResizer"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsController=this.getController("columns"),this._validatingController=this.getController("validating"),this._rowsView=this.getView("rowsView"),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),this._subscribedContainerRoot=this._getContainerRoot(),n.A.on(this._subscribedContainerRoot,ep,this._updateFocusHandler),this._attachContainerEventHandlers()}dispose(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),n.A.off(this._subscribedContainerRoot,ep,this._updateFocusHandler)}_getFocusedElement(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",i=["td[tabindex]:focus","".concat(t),"input:focus","button:focus","textarea:focus","div[tabindex]:focus",".dx-lookup-field:focus",".dx-checkbox:focus",".dx-switch:focus",".dx-dropdownbutton",".dx-buttongroup:focus",".dx-adaptive-item-text:focus"].join(","),r=e.find(i);return this.elementIsInsideGrid(r)&&r}_getFocusCellSelector(){return".dx-row > td"}_updateFocusCore(){var e=this.component&&this.component.$element();if(e){var t=this._getFocusedElement(e);if(t&&t.length){var i;if(!t.hasClass(md)&&!t.hasClass("dx-row")){var r=t.closest("".concat(this._getFocusCellSelector(),", .").concat(md));r.get(0)!==t.get(0)&&(i=this._needHideBorder(r),t=r)}if(t.length&&!t.hasClass(md))return void this.focus(t,i)}}this.loseFocus()}_needHideBorder(e){var t=this._rowsView.element(),i=e.closest(t).length>0,r=this._editingController.isEditing();return e.hasClass("dx-editor-inline-block")||i&&!r}_updateFocus(e){var t=this,i=e&&e.event&&(0,x.A)(e.event.target).hasClass(t.addWidgetPrefix(Zu));t._isFocusOverlay=t._isFocusOverlay||i,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(()=>{delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})}_updateFocusOverlaySize(e,t){e.hide();var i=ba.A.calculate(e,(0,A.X)({collision:"fit"},t));i.h.oversize>0&&(0,F.iT)(e,(0,F.Ot)(e)-i.h.oversize),i.v.oversize>0&&(0,F.NG)(e,(0,F.P$)(e)-i.v.oversize),e.show()}callbackNames(){return["focused"]}focus(e,t){var i=this;if(void 0===e)return i._$focusedElement;e&&(e.is(i._$focusedElement)||i._$focusedElement&&i._$focusedElement.removeClass(fd),i._$focusedElement=e,clearTimeout(i._focusTimeoutID),i._focusTimeoutID=setTimeout(()=>{delete i._focusTimeoutID,i.renderFocusOverlay(e,t),e.addClass(fd),i.focused.fire(e)}))}refocus(){var e=this.focus();this.focus(e)}renderFocusOverlay(e,t){if(q.isElementInCurrentGrid(this,e))if(this._$focusOverlay||(this._$focusOverlay=(0,x.A)("<div>").addClass(this.addWidgetPrefix(Zu))),t)this._$focusOverlay.addClass(Od);else if(e.length){var i=Ie.A.mozilla?"right bottom":"left top",r=e.closest(".".concat(this.addWidgetPrefix("content"))),o=(0,De.N)(e.get(0)),s=e.hasClass(this.addWidgetPrefix("invalid")),c=e.hasClass("dx-cell-modified")&&!s;this._$focusOverlay.removeClass(Od).toggleClass("dx-focused-cell-invalid",s).toggleClass("dx-focused-cell-modified",c).appendTo(r),(0,F.NG)(this._$focusOverlay,o.bottom-o.top+1),(0,F.iT)(this._$focusOverlay,o.right-o.left+1);var d={precise:!0,my:i,at:i,of:e,boundary:r.length&&r};this._updateFocusOverlaySize(this._$focusOverlay,d),ba.A.setup(this._$focusOverlay,d),this._$focusOverlay.css("visibility","visible")}}
1resize(){var e=this._$focusedElement;e&&this.focus(e)}loseFocus(e){this._$focusedElement&&this._$focusedElement.removeClass(fd),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(Od)}_getContainerRoot(){var e,t=null===(e=this.component)||void 0===e?void 0:e.$element(),i=I.A.getRootNode(t?.get(0));return i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||i.host?i:I.A.getDocument()}_attachContainerEventHandlers(){var e=this,t=e.component&&e.component.$element();t&&n.A.on(t,(0,D.b4)("keydown",Qu),i=>{"tab"===(0,D.YD)(i)&&e._updateFocusHandler(i)})}}}});var Di=P(7963),Ma=P(6018),Y_=P(5135),J_=P(3558),wa=(0,fe.zk)(),tp={text:"OK",onClick:function(){return!0}},Jn="dx-dialog",Z_="".concat(Jn,"-wrapper"),Q_="".concat(Jn,"-root"),ev="".concat(Jn,"-content"),tv="".concat(Jn,"-message"),nv="".concat(Jn,"-buttons"),iv="".concat(Jn,"-button"),np="dx-button",Sa="dx-editor-cell",Pn="dx-row",op="dx-selection",ya="edit-form",Vt="insert",Zt="remove",Ea="editing.popup",xd="editing.form",st="editing.editRowKey",Zn="editing.editColumnName",sp="targetComponent",Pd="input:not([type='hidden'])",bd="[tabindex]:not([disabled]), ".concat(Pd,":not([disabled])"),Qn="batch",Qt="row",Vi="cell",Li="form",Md="popup",Ra="last",lp="pageBottom",wd="pageTop",cp="viewportBottom",dp="viewportTop",av=[Qn,Qt,Vi,Li,Md],lv=[Qt,Li,Md],cv=[Qn,Vi],dv=[Qn,Qt,Vi],uv=[Qt,Li],up="dx-command-edit",pp="".concat(up,"-with-icons"),bn="__DX_INSERT_INDEX__",gp="dx-cell-modified",Xr="update",Pv={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},bv={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},Mv={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},wv={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},Sv=["edit","save","cancel","delete","undelete"],en="editing.changes",hp="edit-form-item",Dv=Cn.A.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",_p="dx-edit-row",Sd="_DX_KEY_",Yr=function(a){return function(e){var t=e instanceof Error?e:new Error(e&&String(e)||"Unknown error");a.reject(t)}},vp=function(a,e){return e.isEditing||a&&e.column.allowEditing},Cp=function(a,e){var t=!!e.column.command,i=vp(a,e);return"data"===e.rowType&&!t&&(i||e.column.showEditorAlways)},qi=(a,e)=>{var t=-1;return a.some((i,r)=>{if(mp(i)===e)return t=r,!0}),t};function mp(a){return(0,m.Gv)(a)?a.name:a}var fp=(a,e)=>{a.forEach(t=>{t.items||t.tabs?fp(t.items||t.tabs,e):e(t)})},Op=a=>class extends a{reload(e,t){return!t&&this._editingController.refresh(),super.reload.apply(this,arguments)}repaintRows(){if(!this._editingController.isSaving())return super.repaintRows.apply(this,arguments)}_updateEditRow(e){var t,i=this.option(st),o=e[q.getIndexByKey(i,e)];o&&(o.isEditing=!0,null===(t=this._updateEditItem)||void 0===t||t.call(this,o))}_updateItemsCore(e){super._updateItemsCore(e),this._updateEditRow(this.items(!0))}_applyChangeUpdate(e){this._updateEditRow(e.items),super._applyChangeUpdate(e)}_applyChangesOnly(e){this._updateEditRow(e.items),super._applyChangesOnly(e)}_processItems(e,t){return e=this._editingController.processItems(e,t),super._processItems(e,t)}_processDataItem(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),super._processDataItem(e,t)}
1_processItem(e,t){return(e=super._processItem(e,t)).isNewRow&&(t.dataIndex--,delete e.dataIndex),e}_getChangedColumnIndices(e,t,i,r){if(e.isNewRow===t.isNewRow&&e.removed===t.removed)return super._getChangedColumnIndices.apply(this,arguments)}_isCellChanged(e,t,i,r,o){var s=e.cells&&e.cells[r],c=this._editingController&&this._editingController.isEditCell(i,r);return(!o||!c)&&(!(!s||!s.column||s.column.showEditorAlways||s.isEditing===c)||super._isCellChanged.apply(this,arguments))}needToRefreshOnDataSourceChange(e){return!(Array.isArray(e.value)&&e.value===e.previousValue&&this._editingController.isSaving())}_handleDataSourceChange(e){var t=super._handleDataSourceChange(e),i=this.option("editing.changes"),r=e.value;if(Array.isArray(r)&&i.length){var o=r.map(u=>this.keyOf(u)),s=i.filter(u=>"insert"===u.type||o.some(p=>(0,j.RL)(u.key,p)));s.length!==i.length&&this.option("editing.changes",s);var c=this.option("editing.editRowKey");!s.some(u=>"insert"===u.type&&(0,j.RL)(c,u.key))&&o.every(u=>!(0,j.RL)(c,u))&&this.option("editing.editRowKey",null)}return t}},yd={defaultOptions:()=>({editing:{mode:"row",refreshMode:"full",newRowPosition:dp,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:R.A.format("dxDataGrid-editingEditRow"),saveAllChanges:R.A.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:R.A.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:R.A.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:R.A.format("dxDataGrid-editingCancelRowChanges"),addRow:R.A.format("dxDataGrid-editingAddRow"),deleteRow:R.A.format("dxDataGrid-editingDeleteRow"),undeleteRow:R.A.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:R.A.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}),controllers:{editing:class jv extends ge.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._validatingController=this.getController("validating"),this._editorFactoryController=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsResizerController=this.getController("columnsResizer"),this._errorHandlingController=this.getController("errorHandling"),this._rowsView=this.getView("rowsView"),this._headerPanelView=this.getView("headerPanel"),this._lastOperation=null,this._changes=[],this._deferreds&&this._deferreds.forEach(e=>{e.reject("cancel")}
1),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[st]=!0,this.component._optionsByReference[en]=!0}getEditMode(){var e,t=null!==(e=this.option("editing.mode"))&&void 0!==e?e:Qt;return av.includes(t)?t:Qt}isCellBasedEditMode(){var e=this.getEditMode();return cv.includes(e)}_getDefaultEditorTemplate(){return(e,t)=>{var i=(0,x.A)("<div>").appendTo(e),r=(0,A.X)({},t.column,{value:t.value,setValue:t.setValue,row:t.row,parentType:"dataRow",width:null,readOnly:!t.setValue,isOnForm:t.isOnForm,id:t.id});dv.includes(this.getEditMode())&&(r["aria-labelledby"]=t.column.headerId),this._editorFactoryController.createEditor(i,r)}}_getNewRowPosition(){var e=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(e){case wd:return dp;case lp:return cp;default:return e}return e}getChanges(){return this.option(en)}getInsertRowCount(){return this.option(en).filter(t=>"insert"===t.type).length}resetChanges(){var e=this.getChanges(),t=e?.length;t&&this._silentOption(en,[])}_getInternalData(e){return this._internalState.filter(t=>(0,j.RL)(t.key,e))[0]}_addInternalData(e){var t=this._getInternalData(e.key);return t?(0,A.X)(t,e):(this._internalState.push(e),e)}_getOldData(e){var t;return null===(t=this._getInternalData(e))||void 0===t?void 0:t.oldData}getUpdatedData(e){var t=this._dataController.keyOf(e),i=this.getChanges(),r=q.getIndexByKey(t,i);return i[r]?(0,rt.lj)(e,i[r].data):e}getInsertedData(){return this.getChanges().filter(e=>e.data&&e.type===Vt).map(e=>e.data)}getRemovedData(){return this.getChanges().filter(e=>this._getOldData(e.key)&&e.type===Zt).map(e=>this._getOldData(e.key))}_fireDataErrorOccurred(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}}_needToCloseEditableCell(e){}_closeEditItem(e){}_handleDataChanged(e){}_isDefaultButtonVisible(e,t){var i=!0;switch(e.name){case"delete":i=this.allowDeleting(t);break;case"undelete":i=!1}return i}_isButtonVisible(e,t){var{visible:i}=e;return(0,m.O9)(i)?(0,m.Tn)(i)?i.call(e,{component:t.component,row:t.row,column:t.column}):i:this._isDefaultButtonVisible(e,t)}_isButtonDisabled(e,t){var{disabled:i}=e;return(0,m.Tn)(i)?i.call(e,{component:t.component,row:t.row,column:t.column}):!!i}_getButtonConfig(e,t){var i=(0,m.Gv)(e)?e:{},r=mp(e),o=(a=>{var e=a.component.option("editing.texts")||{};return{save:e.saveRowChanges,cancel:e.cancelRowChanges,edit:e.editRow,undelete:e.undeleteRow,delete:e.deleteRow,add:e.addRowToNode}})(t),s=Mv[r],c=this.option("editing"),d=wv[r],u=!d||c[d];return(0,A.X)({name:r,text:o[r],cssClass:Pv[r]},{onClick:s&&(p=>{var{event:v}=p;v.stopPropagation(),v.preventDefault(),setTimeout(()=>{t.row&&u&&this[s]&&this[s](t.row.rowIndex)})})},i)}_getEditingButtons(e){var t,i=!!e.column.buttons,r=(e.column.buttons||[]).slice();return i?((t=qi(r,"edit"))>=0&&(qi(r,"save")<0&&r.splice(t+1,0,"save"),qi(r,"cancel")<0&&r.splice(qi(r,"save")+1,0,"cancel")),(t=qi(r,"delete"))>=0&&qi(r,"undelete")<0&&r.splice(t+1,0,"undelete")):r=Sv.slice(),r.map(o=>this._getButtonConfig(o,e))}_renderEditingButtons(e,t,i,r){t.forEach(o=>{this._isButtonVisible(o,i)&&this._createButton(e,o,i,r)})}_getEditCommandCellTemplate(){return(e,t,i)=>{var r=(0,x.A)(e);if("data"===t.rowType){var o=this._getEditingButtons(t);
1if(this._renderEditingButtons(r,o,t,i),t.watch){var s=t.watch(()=>o.map(c=>({visible:this._isButtonVisible(c,t),disabled:this._isButtonDisabled(c,t)})),()=>{r.empty(),this._renderEditingButtons(r,o,t)});n.A.on(r,Rt.N,s)}}else q.setEmptyText(r)}}isRowBasedEditMode(){var e=this.getEditMode();return lv.includes(e)}getFirstEditableColumnIndex(){var e,t=this._columnsController.getVisibleColumns();return(0,w.__)(t,(i,r)=>{if(r.allowEditing)return e=i,!1}),e}getFirstEditableCellInRow(e){var t,i=this.getFirstEditableColumnIndex();return null===(t=this._rowsView)||void 0===t?void 0:t._getCellElement(e||0,i)}getFocusedCellInRow(e){return this.getFirstEditableCellInRow(e)}getIndexByKey(e,t){return q.getIndexByKey(e,t)}hasChanges(e){for(var t=this.getChanges(),i=!1,r=0;r<t?.length;r++)if(t[r].type&&(!(0,m.O9)(e)||this._dataController.getRowIndexByKey(t[r].key)===e)){i=!0;break}return i}dispose(){super.dispose(),clearTimeout(this._inputFocusTimeoutID),n.A.off(I.A.getDocument(),Se.A.up,this._pointerUpEditorHandler),n.A.off(I.A.getDocument(),Se.A.down,this._pointerDownEditorHandler),n.A.off(I.A.getDocument(),ke.U,this._saveEditorHandler)}_silentOption(e,t){"editing.changes"===e&&(this._changes=(0,pt.tm)([],t)),super._silentOption(e,t)}optionChanged(e){if("editing"===e.name){var{fullName:t}=e;t===st?this._handleEditRowKeyChange(e):t===en?(0,j.RL)(e.value,this._changes,{maxDepth:4})||(this._changes=(0,pt.tm)([],e.value),this._handleChangesChange(e)):e.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),e.handled=!0}else super.optionChanged(e)}_handleEditRowKeyChange(e){var t=this._dataController.getRowIndexByKey(e.value),i=this._getEditRowIndexCorrection(),r=this._dataController.getRowIndexByKey(e.previousValue)+i;(0,m.O9)(e.value)?e.value!==e.previousValue&&this._editRowFromOptionChanged(t,r):this.cancelEditData()}_handleChangesChange(e){var t=this._dataController;!e.value.length&&!e.previousValue.length||(e.value.forEach(r=>{var o;if("insert"===r.type)this._addInsertInfo(r);else{var s=t.getCachedStoreData()||(null===(o=t.items())||void 0===o?void 0:o.map(d=>d.data)),c=q.getIndexByKey(r.key,s,t.key());this._addInternalData({key:r.key,oldData:s[c]})}}),t.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))}publicMethods(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]}refresh(){(0,m.O9)(this._pageIndex)&&this._refreshCore.apply(this,arguments)}_refreshCore(e){}isEditing(){return(0,m.O9)(this.option(st))}isEditRow(e){return!1}_setEditRowKey(e,t){t?this._silentOption(st,e):this.option(st,e),this._refocusEditCell&&(this._refocusEditCell=!1,this._focusEditingCell())}_setEditRowKeyByIndex(e,t){var i=this._dataController.getKeyByRowIndex(e);void 0!==i?this._setEditRowKey(i,t):this._dataController.fireError("E1043")}getEditRowIndex(){return this._getVisibleEditRowIndex()}getEditFormRowIndex(){return-1}isEditRowByIndex(e){var t=this._dataController.getKeyByRowIndex(e);return(0,m.O9)(t)&&(0,j.RL)(this.option(st),t)&&this._getVisibleEditRowIndex()===e}isEditCell(e,t){return this.isEditRowByIndex(e)&&this._getVisibleEditColumnIndex()===t}getPopupContent(){}_isProcessedItem(e){return!1}_getInsertRowIndex(e,t,i){var r=-1,o=this._dataController,s=this._getInsertAfterOrBeforeKey(t);return(0,m.O9)(s)||0!==e.length?(0,m.O9)(s)&&e.some((c,d)=>{var u=i||this._isProcessedItem(c);if((0,m.Gv)(c)&&(u||(0,m.O9)(c[bn])?(0,j.RL)(c.key,s)&&(r=d):(0,j.RL)(o.keyOf(c),s)&&(r=d)),r>=0){var p=e[r+1];return p&&("detail"===p.rowType||"detailAdaptive"===p.rowType)&&(0,m.O9)(t.insertAfterKey)?void 0:((0,m.O9)(t.insertAfterKey)&&(r+=1),!0)}}):r=0,r}_generateNewItem(e){var t,i={key:e},r=null===(t=this._getInternalData(e))||void 0===t?void 0:t.insertInfo;return r?.[bn]&&(i[bn]=r[bn]),i}_getLoadedRowIndex(e,t,i){var r=this._getInsertRowIndex(e,t,i),o=this._dataController;if(r<0){var s=this._getNewRowPosition(),c=o.pageIndex(),d=this._getInsertAfterOrBeforeKey(t);s===Ra||0!==c||(0,m.O9)(d)?s===Ra&&o.isLastPageLoaded()&&(r=e.length):r=0}return r}processItems(e,t){var{changeType:i}=t;
1return this.update(i),this.getChanges().forEach(o=>{var s;if(o.type===Vt){var{key:d}=o,u=null===(s=this._getInternalData(d))||void 0===s?void 0:s.insertInfo;(!(0,m.O9)(d)||!(0,m.O9)(u))&&(d=(u=this._addInsertInfo(o)).key);var p=this._getLoadedRowIndex(e,o),v=this._generateNewItem(d);p>=0&&e.splice(p,0,v)}}),e}processDataItem(e,t,i){var r=t.visibleColumns,o=e.data[bn]?e.data.key:e.key,s=this.getChanges(),c=q.getIndexByKey(o,s);e.isEditing=!1,c>=0&&this._processDataItemCore(e,s[c],o,r,i)}_processDataItemCore(e,t,i,r,o){var{data:s,type:c}=t;switch(c){case Vt:e.isNewRow=!0,e.key=i,e.data=s;break;case Xr:e.modified=!0,e.oldData=e.data,e.data=(0,rt.lj)(e.data,s),e.modifiedValues=o(s,r,!0);break;case Zt:e.removed=!0}}_initNewRow(e){if(this.executeAction("onInitNewRow",e),e.promise){var t=new k.cY;return(0,k.z7)((0,k.Sx)(e.promise)).done(t.resolve).fail(Yr(t)).fail(i=>this._fireDataErrorOccurred(i)),t}}_createInsertInfo(){var e={};return e[bn]=this._getInsertIndex(),e}_addInsertInfo(e,t){var i,r;console.log("add insert info"),e.key=this.getChangeKeyValue(e);var{key:o}=e;if(r=null===(i=this._getInternalData(o))||void 0===i?void 0:i.insertInfo,!(0,m.O9)(r)){var s=this._getInsertAfterOrBeforeKey(e);r=this._createInsertInfo(),(0,m.O9)(s)||this._setInsertAfterOrBeforeKey(e,t)}return this._addInternalData({insertInfo:r,key:o}),{insertInfo:r,key:o}}getChangeKeyValue(e){if((0,m.O9)(e.key))return e.key;var i,t=this._dataController.key();return e.data&&t&&!Array.isArray(t)&&(i=e.data[t]),(0,m.O9)(i)||(i="".concat(Sd).concat(new xt.A)),i}_setInsertAfterOrBeforeKey(e,t){var i=this.getView("rowsView"),r=this._dataController,o=r.items(!0),s=this._getNewRowPosition();switch(s){case"first":case Ra:break;case wd:case lp:if(o.length){var c=s===wd?0:o.length-1;e[0===c?"insertBeforeKey":"insertAfterKey"]=o[c].key}break;default:var u=s===cp?i?.getBottomVisibleItemIndex():i?.getTopVisibleItemIndex(),p=r.getVisibleRows()[u];p&&(!p.isEditing&&"detail"===p.rowType||"detailAdaptive"===p.rowType)&&u++;var v=r.getKeyByRowIndex(u);(0,m.O9)(v)&&(e.insertBeforeKey=v)}}_getInsertIndex(){var e=0;
1return this.getChanges().forEach(t=>{var i,r=null===(i=this._getInternalData(t.key))||void 0===i?void 0:i.insertInfo;(0,m.O9)(r)&&t.type===Vt&&r[bn]>e&&(e=r[bn])}),e+1}_getInsertAfterOrBeforeKey(e){var t;return null!==(t=e.insertAfterKey)&&void 0!==t?t:e.insertBeforeKey}_getPageIndexToInsertRow(){var e=this._getNewRowPosition(),t=this._dataController,i=t.pageIndex(),r=t.pageCount()-1;return"first"===e&&0!==i?0:e===Ra&&i!==r?r:-1}addRow(e){var t=this._dataController;return t.store()?this._addRow(e):(t.fireError("E1052",this.component.NAME),(new k.cY).reject())}_addRow(e){var i=this._dataController.store(),r=i&&i.key(),o={data:{}},s=this._getVisibleEditRowIndex(),c=new k.cY;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(r||(o.data.__KEY__=String(new xt.A)),(0,k.z7)(this._initNewRow(o,e)).done(()=>{this._allowRowAdding()?(0,k.z7)(this._addRowCore(o.data,e,s)).done(c.resolve).fail(c.reject):c.reject("cancel")}).fail(c.reject),c.promise()):((0,k.z7)(this._navigateToNewRow(s)).done(c.resolve).fail(c.reject),c.promise())}_allowRowAdding(e){return!(this._getInsertIndex()>1)}_addRowCore(e,t,i){var r={data:e,type:Vt},o=this._getVisibleEditRowIndex(),s=this._addInsertInfo(r,t),{key:c}=s;return this._setEditRowKey(c,!0),this._addChange(r),this._navigateToNewRow(i,r,o)}_navigateToNewRow(e,t,i){var r=new k.cY,o=this._dataController;if(i=i??-1,!(t=t??this.getChanges().filter(p=>p.type===Vt)[0]))return r.reject("cancel").promise();var s=this._getPageIndexToInsertRow(),c=this._getLoadedRowIndex(o.items(),t,!0),d=p=>{var v;(0,k.z7)(null===(v=this._focusController)||void 0===v?void 0:v.navigateToRow(p)).done(()=>{c=o.getRowIndexByKey(t.key),r.resolve()})},u=this._getInsertAfterOrBeforeKey(t);return s>=0?o.pageIndex(s).done(()=>{d(t.key)}).fail(r.reject):c<0&&(0,m.O9)(u)?d(u):(o.updateItems({changeType:"update",rowIndices:[e,i,c]}),(c=o.getRowIndexByKey(t.key))<0?d(t.key):r.resolve()),r.done(()=>{var p;null===(p=this._rowsView)||void 0===p||p.waitAsyncTemplates(!0).done(()=>{this._showAddedRow(c),this._afterInsertRow(t.key)})}),r.promise()}_showAddedRow(e){this._focusFirstEditableCellInRow(e)}_beforeFocusElementInRow(e){}_focusFirstEditableCellInRow(e){var t,i=this._dataController,r=i.getKeyByRowIndex(e),o=this.getFirstEditableCellInRow(e);null===(t=this._keyboardNavigationController)||void 0===t||t.focus(o),this.option("focusedRowKey",r),this._editCellInProgress=!0,this._delayedInputFocus(o,()=>{e=i.getRowIndexByKey(r),this._editCellInProgress=!1,this._beforeFocusElementInRow(e)})}_isEditingStart(e){return this.executeAction("onEditingStart",e),e.cancel}_beforeUpdateItems(e,t){}_getVisibleEditColumnIndex(){var e=this.option(Zn);return(0,m.O9)(e)?this._columnsController.getVisibleColumnIndex(e):-1}_setEditColumnNameByIndex(e,t){var i,r=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(i=r[e])||void 0===i?void 0:i.name,t)}_setEditColumnName(e,t){t?this._silentOption(Zn,e):this.option(Zn,e)}_resetEditColumnName(){this._setEditColumnName(null,!0)}_getEditColumn(){var e=this.option(Zn);return this._getColumnByName(e)}_getColumnByName(e){var i,t=this._columnsController.getVisibleColumns();return(0,m.O9)(e)&&t.some(r=>{if(r.name===e)return i=r,!0}),i}_getVisibleEditRowIndex(e){var t=this._dataController,i=this.option(st),r=t.getRowIndexByKey(i);return-1===r?r:r+this._getEditRowIndexCorrection(e)}_getEditRowIndexCorrection(e){var t=e?this._getColumnByName(e):this._getEditColumn();return"adaptiveHidden"===t?.visibleWidth?1:0}_resetEditRowKey(){this._refocusEditCell=!1,this._setEditRowKey(null,!0)}_resetEditIndices(){this._resetEditColumnName(),this._resetEditRowKey()}editRow(e){var t,i=this._dataController,o=i.items()[e],s={data:o&&o.data,cancel:!1},c=this._getVisibleEditRowIndex();if(o){if(e===c)return!0;if(void 0===o.key)return void this._dataController.fireError("E1043");o.isNewRow||(s.key=o.key),!this._isEditingStart(s)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=i.pageIndex(),this._addInternalData({key:o.key,oldData:null!==(t=o.oldData)&&void 0!==t?t:o.data}),this._setEditRowKey(o.key))}}_editRowFromOptionChanged(e,t){var i=[t,e];this._beforeUpdateItems(i,e,t),this._editRowFromOptionChangedCore(i,e)}_editRowFromOptionChangedCore(e,t,i){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:e,cancel:i})}_focusEditorIfNeed(){}_showEditPopup(e,t){}_repaintEditPopup(){}_getEditPopupHiddenHandler(){return e=>{this.isEditing()&&this.cancelEditData()}}_getPopupEditFormTemplate(e){}_getSaveButtonConfig(){var e={text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)};return(0,je.Ft)((0,je.ss)())&&(e.stylingMode="contained",e.type="default"),e}_getCancelButtonConfig(){var e={text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)};return(0,je.Ft)((0,je.ss)())&&(e.stylingMode="outlined"),e}_removeInternalData(e){var t=this._getInternalData(e),i=this._internalState.indexOf(t);i>-1&&this._internalState.splice(i,1)}_updateInsertAfterOrBeforeKeys(e,t){var i=e[t];e.forEach(r=>{var o=this._getInsertAfterOrBeforeKey(r);(0,j.RL)(o,i.key)&&(r[(0,m.O9)(r.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(i))})}_removeChange(e){if(e>=0){var t=[...this.getChanges()],{key:i}=t[e];this._removeInternalData(i),this._updateInsertAfterOrBeforeKeys(t,e),t.splice(e,1),this._silentOption(en,t),(0,j.RL)(this.option(st),i)&&this._resetEditIndices()}}executeOperation(e,t){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=e,this.waitForDeferredOperations().done(()=>{"rejected"!==e.state()&&(t(),this._lastOperation=null)}).fail(()=>{e.reject(),this._lastOperation=null})}waitForDeferredOperations(){return(0,k.z7)(...this._deferreds)}_processCanceledEditingCell(){}_repaintEditCell(e,t,i){!e||!e.showEditorAlways||t&&!t.showEditorAlways?(this._editCellInProgress=!0,this._needFocusEditor=!0,this._editorFactoryController.loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[i,this._getVisibleEditRowIndex()]})):e!==t&&(this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:[]}))}_delayedInputFocus(e,t,i){var r=()=>{if(t&&t(),e){var o=e.find(bd).first();q.focusAndSelectElement(this,o)}this._beforeFocusCallback=null};Je.A.real().ios||Je.A.real().android?r():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),i&&(this._beforeFocusCallback=t),this._inputFocusTimeoutID=setTimeout(r))}_focusEditingCell(e,t,i){var r=this._getVisibleEditColumnIndex();(t=t||this._rowsView&&this._rowsView._getCellElement(this._getVisibleEditRowIndex(),r))&&this._delayedInputFocus(t,e,i)}deleteRow(e){this._checkAndDeleteRow(e)}_checkAndDeleteRow(e){var t=this.option("editing"),i=t?.texts,r=t?.confirmDelete,o=i?.confirmDeleteMessage,s=this._dataController.items()[e],c=!this.isEditing()||s.isNew
1Row;if(s&&c)if(r&&o){var d=i&&i.confirmDeleteTitle;(function(a){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0;return function(a){var e,t=new k.cY;a=a||{};var i=(0,x.A)("<div>").addClass(Jn).appendTo((0,J_.Uq)()),o="messageHtml"in a;"message"in a&&Oe.A.log("W1013");var s=String(o?a.messageHtml:a.message),c=a.title?null:new xt.A,d=(0,x.A)("<div>").addClass(tv).html(s).attr("id",c),u=[],p=new xn.A(i,(0,A.X)({title:null!==(e=a.title)&&void 0!==e?e:"",showTitle:(0,j.YD)(a.showTitle,!0),dragEnabled:(0,j.YD)(a.dragEnabled,!0),height:"auto",width:a.width,showCloseButton:a.showCloseButton||!1,ignoreChildEvents:!1,container:i,visualContainer:wa,dragAndResizeArea:wa,onContentReady:function(O){O.component.$content().addClass(ev).append(d),c&&O.component.$overlayContent().attr("aria-labelledby",c)},onShowing:function(O){O.component.bottomToolbar().addClass(nv).find(".".concat(np)).addClass(iv),(0,Di.GX)()},onShown:function(O){var b=O.component.bottomToolbar().find(".".concat(np)).first();n.A.trigger(b,"focus")},onHiding:function(){t.reject()},onHidden:function(O){var{element:b}=O;(0,x.A)(b).remove()},animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,is.A)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},a.popupOptions));function f(O){t.resolve(O),p.hide()}return(a.buttons||[tp]).forEach(O=>{var b=new Y_.A(O.onClick,{context:p});u.push({toolbar:"bottom",location:Je.A.current().android?"after":"center",widget:"dxButton",options:(0,U.A)({},O,{onClick:function(){f(b.execute(...arguments))}})})}),p.option("toolbarItems",u),p.$wrapper().addClass(Z_),a.position&&p.option("position",a.position),p.$wrapper().addClass(Q_),{show:function(){if("phone"===Je.A.real().deviceType){var O=(0,F.Oq)(wa)>(0,F.RG)(wa);p.option({width:O?"90%":"60%"})}return p.show(),t.promise()},hide:f}}((0,m.Qd)(a)?a:{title:e,messageHtml:a,showTitle:t,buttons:[(0,U.A)({text:R.A.format("Yes"),onClick:function(){return!0}},(0,je.Ft)()?{stylingMode:"contained",type:"default"}:{}),(0,U.A)({text:R.A.format("No"),onClick:function(){return!1}},(0,je.Ft)()?{stylingMode:"outlined",type:"default"}:{})],dragEnabled:t}).show()})(o,d,(0,m.O9)(d)&&d.length>0).done(p=>{p&&this._deleteRowCore(e)})}else this._deleteRowCore(e)}_deleteRowCore(e){var i=this._dataController.items()[e],r=i&&i.key,o=this._getVisibleEditRowIndex();this.refresh();var s=this.getChanges(),c=q.getIndexByKey(r,s);return c>=0?s[c].type===Vt?this._removeChange(c):this._addChange({key:r,type:Zt}):this._addChange({key:r,oldData:i.data,type:Zt}),this._afterDeleteRow(e,o)}_afterDeleteRow(e,t){return this.saveEditData()}undeleteRow(e){var t=this._dataController,i=t.items()[e],r=this._getVisibleEditRowIndex(),o=i&&i.key,s=this.getChanges();if(i){var c=q.getIndexByKey(o,s);if(c>=0){var{data:d}=s[c];(0,m.RI)(d)?this._removeChange(c):this._addChange({key:o,type:Xr}),t.updateItems({changeType:"update",rowIndices:[r,e]})}}}_fireOnSaving(){var e={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",e);var t=new k.cY;return(0,k.z7)((0,k.Sx)(e.promise)).done(()=>{t.resolve(e)}).fail(i=>{Yr(t),this._fireDataErrorOccurred(i),t.resolve({cancel:!0})}),t}_executeEditingAction(e,t,i){if(this.component._disposed)return null;var r=new k.cY;return this.executeAction(e,t),(0,k.z7)((0,k.Sx)(t.cancel)).done(o=>{o?setTimeout(()=>{r.resolve("cancel")}):i(t).done(r.resolve).fail(Yr(r))}).fail(Yr(r)),r}_processChanges(e,t,i,r){var o=this._dataController.store();(0,w.__)(r,(s,c)=>{var f,O,d=this._getOldData(c.key),{data:u,type:p}=c,v=(0,U.A)({},c);if(!this._beforeSaveEditData(c,s)){switch(p){case Zt:f=this._executeEditingAction("onRowRemoving",O={data:d,key:c.key,cancel:!1},()=>o.remove(c.key).done(S=>{i.push({type:"remove",key:S})}));break;case Vt:f=this._executeEditingAction("onRowInserting",O={data:u,cancel:!1},()=>o.insert(O.data).done((S,E)=>{(0,m.O9)(E)&&(v.key=E),S&&(0,m.Gv)(S)&&S!==O.data&&(v.data=S),i.push({type:"insert",data:S,index:0})}));break;case Xr:f=this._executeEditingAction("onRowUpdating",O={newData:u,oldData:d,key:c.key,cancel:!1},()=>o.update(c.key,O.newData).done((S,E)=>{S&&(0,m.Gv)(S)&&S!==O.newData&&(v.data=S),i.push({type:"update",key:E,data:S}
1)}))}if(r[s]=v,f){var b=new k.cY;f.always(S=>{t.push({key:c.key,result:S})}).always(b.resolve),e.push(b.promise())}}})}_processRemoveIfError(e,t){var i=e[t];return i?.type===Zt&&t>=0&&e.splice(t,1),!0}_processRemove(e,t,i){var r=e[t];if(!i||!r||r.type===Zt)return this._processRemoveCore(e,t,!i||!r)}_processRemoveCore(e,t,i){return t>=0&&e.splice(t,1),!0}_processSaveEditDataResult(e){for(var t=!1,i=[...this.getChanges()],r=i.length,o=0;o<e.length;o++){var s=e[o].result,c="cancel"===s,d=q.getIndexByKey(e[o].key,i),u=i[d];if(s&&s instanceof Error){if(u&&this._addInternalData({key:u.key,error:s}),this._fireDataErrorOccurred(s),this._processRemoveIfError(i,d))break}else this._processRemove(i,d,c)&&(t=!c)}return i.length<r&&this._silentOption(en,i),t}_fireSaveEditDataEvents(e){(0,w.__)(e,(t,i)=>{var{data:r,key:o,type:s}=i,c=this._addInternalData({key:o}),d={key:o,data:r};switch(c.error&&(d.error=c.error),s){case Zt:this.executeAction("onRowRemoved",(0,A.X)({},d,{data:c.oldData}));break;case Vt:this.executeAction("onRowInserted",d);break;case Xr:this.executeAction("onRowUpdated",d)}}),this.executeAction("onSaved",{changes:e})}saveEditData(){var e=new k.cY;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(e):(0,k.z7)(this._beforeSaveEditData()).done(t=>{t?this._resolveAfterSave(e,{cancel:t}):(this._saving=!0,this._saveEditDataInner().always(()=>{this._saving=!1,this._refocusEditCell&&this._focusEditingCell()}).done(e.resolve).fail(e.reject))}).fail(e.reject)}).fail(e.reject),e.promise()}_resolveAfterSave(e){var{cancel:t,error:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.z7)(this._afterSaveEditData(t)).done(()=>{e.resolve(i)}).fail(e.reject)}_saveEditDataInner(){var e=new k.cY,t=[],i=[],r=[],o=this._dataController.dataSource();return(0,k.z7)(this._fireOnSaving()).done(s=>{var{cancel:c,changes:d}=s;return c?e.resolve().promise():(this._processChanges(i,t,r,d),i.length?(this._refocusEditCell=!0,o?.beginLoading(),(0,k.z7)(...i).done(()=>{this._processSaveEditDataResult(t)?this._endSaving(r,d,e):(o?.endLoading(),e.resolve())}).fail(u=>{o?.endLoading(),e.resolve(u)}),e.always(()=>{this._refocusEditCell=!0}).promise()):void this._cancelSaving(e))}).fail(e.reject),e.promise()}_beforeEndSaving(e){this._resetEditIndices()}_endSaving(e,t,i){var r=this._dataController.dataSource();this._beforeEndSaving(t),r?.endLoading(),this._refreshDataAfterSave(e,t,i)}_cancelSaving(e){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(e)}_refreshDataAfterSave(e,t,i){var r=this._dataController,o=this.option("editing.refreshMode"),s="reshape"!==o&&"repaint"!==o;s||r.push(e),(0,k.z7)(r.refresh({selection:s,reload:s,load:"reshape"===o,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(t)}).done(()=>{this._resolveAfterSave(i)}).fail(c=>{this._resolveAfterSave(i,{error:c})})}isSaving(){return this._saving}_updateEditColumn(){var e=this._isEditColumnVisible(),t=this.option("editing.useIcons"),i=up+(t?" ".concat(pp):"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:e,cssClass:i,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:e,cssClass:i})}_isEditColumnVisible(){return this.option("editing").allowDeleting}_isEditButtonDisabled(){var e=this.hasChanges();return!((0,m.O9)(this.option("editing.editRowKey"))||e)}_updateEditButtons(){var e=this._isEditButtonDisabled();this._headerPanelView&&(this._headerPanelView.setToolbarItemDisabled("saveButton",e),this._headerPanelView.setToolbarItemDisabled("revertButton",e))}_applyModified(e,t){e&&e.addClass(gp)}_beforeCloseEditCellInBatchMode(e){}cancelEditData(){var e=this.getChanges(),t={cancel:!1,changes:e};this.executeAction("onEditCanceling",t),t.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:e}))}_cancelEditDataCore(){var e=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(e)}_afterCancelEditData(e){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})}_hideEditPopup(){}hasEditData(){return this.hasChanges()}update(e){var t=this._dataController;t&&this._pageIndex!==t.pageIndex()&&("refresh"===e&&this.refresh({isPageChanged:!0}),this._pageIndex=t.pageIndex()),this._updateEditButtons()}_getRowIndicesForCascadeUpdating(e,t){return t?[]:[e.rowIndex]}addDeferred(e){this._deferreds.includes(e)||(this._deferreds.push(e),e.always(()=>{var t=this._deferreds.indexOf(e);t>=0&&this._deferreds.splice(t,1)}))}_prepareChange(e,t,i){var r,o={},s=null===(r=e.row)||void 0===r?void 0:r.data,c=e.key,d=new k.cY;return void 0!==c&&(e.value=t,(0,k.Sx)(e.column.setCellValue(o,t,(0,A.X)(!0,{},s),i)).done(()=>{d.resolve({data:o,key:c,oldData:s,type:Xr})}).fail(Yr(d)).fail(p=>this._fireDataErrorOccurred(p)),(0,m.O9)(i)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=i),this._updateRowValues(e),this.addDeferred(d)),d}_updateRowValues(e){if(e.values){var t=this._dataController,i=t.getRowIndexByKey(e.key),r=t.getVisibleRows()[i];r&&(e.row.values=r.values,e.values=r.values),e.values[e.columnIndex]=e.value}}updateFieldValue(e,t,i,r){var o=e.key,s=new k.cY;return void 0===o&&this._dataController.fireError("E1043"),e.column.setCellValue?this._prepareChange(e,t,i).done(c=>{(0,k.z7)(this._applyChange(e,c,r)).always(()=>{s.resolve()})}):s.resolve(),s.promise()}
1_focusPreviousEditingCellIfNeed(e){if(this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex))return this._focusEditingCell(),this._updateEditRow(e.row,!0),!0}_needUpdateRow(e){var t=this._columnsController.getVisibleColumns();e||(e=this._getEditColumn());var i=e&&e.setCellValue!==e.defaultSetCellValue,r=t.some(o=>o.calculateCellValue!==o.defaultCalculateCellValue);return i||r}_applyChange(e,t,i){var r=(0,U.A)((0,U.A)({},e),{forceUpdateRow:i});return this._addChange(t,r),this._updateEditButtons(),this._applyChangeCore(e,r.forceUpdateRow)}_applyChangeCore(e,t){var i=e.column.setCellValue!==e.column.defaultSetCellValue,{row:r}=e;r&&(t||i?this._updateEditRow(r,t,i):r.update&&r.update())}_updateEditRowCore(e,t,i){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(e,t)})}_updateEditRow(e,t,i){t?this._updateRowImmediately(e,t,i):this._updateRowWithDelay(e,i)}_updateRowImmediately(e,t,i){this._updateEditRowCore(e,!t,i),this._validateEditFormAfterUpdate(e,i),t||this._focusEditingCell()}_updateRowWithDelay(e,t){var i=new k.cY;this.addDeferred(i),setTimeout(()=>{var r,o=(null===(r=this._editForm)||void 0===r?void 0:r.element())||this.component.$element().get(0),s=(0,x.A)(I.A.getActiveElement(o)),c=this._rowsView.getCellIndex(s,e.rowIndex),d=s.get(0),u=q.getSelectionRange(d);if(this._updateEditRowCore(e,!1,t),this._validateEditFormAfterUpdate(e,t),c>=0){var p=this._rowsView._getCellElement(e.rowIndex,c);this._delayedInputFocus(p,()=>{setTimeout(()=>{var v;d=I.A.getActiveElement(null===(v=this.component.$element())||void 0===v?void 0:v.get(0)),u.selectionStart>=0&&q.setSelectionRange(d,u)})})}i.resolve()})}_validateEditFormAfterUpdate(){}_addChange(e,t){var i,r=t?.row,o=[...this.getChanges()],s=q.getIndexByKey(e.key,o);s<0&&(s=o.length,this._addInternalData({key:e.key,oldData:e.oldData}),delete e.oldData,o.push(e));var c=(0,U.A)({},o[s]);return c&&(e.data&&(c.data=(0,rt.lj)(c.data,e.data)),(!c.type||!e.data)&&e.type&&(c.type=e.type),r&&(r.oldData=this._getOldData(r.key),r.data=(0,rt.lj)(r.data,e.data))),o[s]=c,this._silentOption(en,o),t&&c!==(null===(i=this.getChanges())||void 0===i?void 0:i[s])&&(t.forceUpdateRow=!0),c}_getFormEditItemTemplate(e,t){return t.editCellTemplate||this._getDefaultEditorTemplate()}getColumnTemplate(e){var r,d,{column:t}=e,i=e.row&&e.row.rowIndex,o=this.isRowBasedEditMode(),s=this.isEditRow(i),c=this.isEditCell(i,e.columnIndex);return!(t.showEditorAlways||t.setCellValue&&(s&&t.allowEditing||c))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||t.command?"detail"===t.command&&"detail"===e.rowType&&s&&(r=null==this?void 0:this.getEditFormTemplate(e)):(((this.allowUpdating(e)||s)&&t.allowEditing||c)&&(s||!o)&&(t.showEditorAlways&&!o&&this._isEditingStart(d={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:t}),(!d||!d.cancel)&&(e.setValue=(p,v)=>{this.updateFieldValue(e,p,v)})),r=t.editCellTemplate||this._getDefaultEditorTemplate()),r}_createButton(e,t,i,r){var o=bv[t.name],s=this.option("editing.useIcons"),c=this.option("useLegacyColumnButtonTemplate"),d=(0,x.A)("<a>").attr("href","#").addClass("dx-link").addClass(t.cssClass);if(t.template&&c)this._rowsView.renderTemplate(e,t.template,i,!0);else{if(t.template)d=(0,x.A)("<span>").addClass(t.cssClass);else if(s&&o||t.icon){var u=Ma.F(o=t.icon||o);"image"===u||"svg"===u?d=Ma.N(o).addClass(t.cssClass):d.addClass("dx-icon".concat("dxIcon"===u?"-":" ").concat(o)).attr("title",t.text),d.addClass("dx-link-icon"),e.addClass(pp);var p=this.getButtonLocalizationNames()[t.name];p&&d.attr("aria-label",R.A.format(p))}else d.text(t.text);(0,m.O9)(t.hint)&&d.attr("title",t.hint),this._isButtonDisabled(t,i)?d.addClass("dx-state-disabled"):(!t.template||t.onClick)&&n.A.on(d,(0,D.b4)("click","dxDataGridEditing"),this.createAction(v=>{var f;null===(f=t.onClick)||void 0===f||f.call(t,(0,A.X)({},v,{row:i.row,column:i.column})),v.event.preventDefault(),v.event.stopPropagation()})),e.append(d,"&nbsp;"),t.template&&(i.renderAsync=!1,this._rowsView.renderTemplate(d,t.template,i,!0,r))}}getButtonLocalizationNames(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}}prepareButtonItem(e,t,i,r){var o,s=null!==(o=this.option("editing.texts"))&&void 0!==o?o:{},d={revert:"cancel",save:"save",addRow:"addrow"}[t],u={revert:s.cancelAllChanges,save:s.saveAllChanges,addRow:s.addRow}[t],p=("save"===d||"cancel"===d)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:v=>{(0,x.A)(v.element).addClass(e._getToolbarButtonClass("".concat("dx-edit-button"," ").concat(this.addWidgetPrefix(d),"-button")))},icon:"edit-button-".concat(d),disabled:p,onClick:()=>{setTimeout(()=>{this[i]()})},text:u,hint:u},showText:"inMenu",name:"".concat(t,"Button"),location:"after",locateInMenu:"auto",sortIndex:r}}prepareEditButtons(e){var t,r=[];return(null!==(t=this.option("editing"))&&void 0!==t?t:{}).allowAdding&&r.push(this.prepareButtonItem(e,"addRow","addRow",20)),r}highlightDataCell(e,t){this.shouldHighlightCell(t)&&e.addClass(gp)}_afterInsertRow(e){}
1_beforeSaveEditData(e){if(e&&!(0,m.O9)(e.key)&&(0,m.O9)(e.type))return!0}_afterSaveEditData(){}_beforeCancelEditData(){}_allowEditAction(e,t){var i=this.option("editing.".concat(e));return(0,m.Tn)(i)&&(i=i({component:this.component,row:t.row})),i}allowUpdating(e,t){var i,r=null!==(i=this.option("editing.startEditAction"))&&void 0!==i?i:"click";return(!(arguments.length>1)||r===t||"down"===t)&&this._allowEditAction("allowUpdating",e)}allowDeleting(e){return this._allowEditAction("allowDeleting",e)}isCellModified(e){var t,i,r,{columnIndex:o}=e,s=null===(i=null===(t=e?.row)||void 0===t?void 0:t.modifiedValues)||void 0===i?void 0:i[o];return!(null===(r=e?.row)||void 0===r)&&r.isNewRow&&(s=e.value),void 0!==s}isNewRowInEditMode(){var e=this._getVisibleEditRowIndex(),t=this._dataController.items();return e>=0&&t[e].isNewRow}_isRowDeleteAllowed(){}shouldHighlightCell(e){return this.isCellModified(e)&&e.column.setCellValue&&(this.getEditMode()!==Qt||!e.row.isEditing)}}},extenders:{controllers:{data:Op},views:{rowsView:a=>class extends a{getCellIndex(e,t){if(!e.is("td")&&t>=0){var i=this.getCellElements(t),r=-1;return(0,w.__)(i,(o,s)=>{(0,x.A)(s).find(e).length&&(r=o)}),r}return super.getCellIndex.apply(this,arguments)}publicMethods(){return super.publicMethods().concat(["cellValue"])}_getCellTemplate(e){return this._editingController.getColumnTemplate(e)||super._getCellTemplate(e)}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var i=!!e.removed,r=!!e.isNewRow,o=!!e.modified;r&&t.addClass("dx-row-inserted"),o&&t.addClass("dx-row-modified"),(r||i)&&t.removeClass("dx-selection")}return t}_getColumnIndexByElement(e){for(var t=e.closest("table"),i=this.getTableElements();t.length&&!i.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)}_getColumnIndexByElementCore(e){var t=e.closest(".".concat(Pn,"> td:not(.dx-master-detail-cell)"));return this.getCellIndex(t)}_editCellByClick(e,t){var i=this._editingController,r=(0,x.A)(e.event.target),o=this._getColumnIndexByElement(r),s=this._dataController.items()[e.rowIndex],c=i.allowUpdating({row:s},t)||s&&s.isNewRow,d=this._columnsController.getVisibleColumns()[o],u=i.isEditCell(e.rowIndex,o),p=c&&d&&(d.allowEditing||u),v=this.option("editing.startEditAction")||"click",f=d&&d.showEditorAlways;if(u)return!0;if("down"===t)return(Je.A.real().ios||Je.A.real().android)&&(0,Di.GX)(),f&&p&&i.editCell(e.rowIndex,o);if("click"===t&&"dblClick"===v&&this._pointerDownTarget===r.get(0)){var O=s?.isNewRow;i.closeEditCell(!1,O)}return p&&t===v?i.editCell(e.rowIndex,o)||i.isEditRow(e.rowIndex):void 0}_rowPointerDown(e){this._pointerDownTarget=e.event.target,this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(e,"down")})}_rowClickTreeListHack(e){super._rowClick.apply(this,arguments)}_rowClick(e){var t=(0,x.A)(e.rowElement).hasClass(this.addWidgetPrefix(ya));e.event[sp]=this.component,!this._editCellByClick(e,"click")&&!t&&super._rowClick.apply(this,arguments)}_rowDblClickTreeListHack(e){super._rowDblClick.apply(this,arguments)}_rowDblClick(e){this._editCellByClick(e,"dblClick")||super._rowDblClick.apply(this,arguments)}_cellPrepared(e,t){var i,r=this._editingController,o=!!t.column.command,s=t.setValue,c=r.isEditRow(t.rowIndex),d=vp(c,t);if(Cp(c,t)){var{alignment:u}=t.column;e.toggleClass(this.addWidgetPrefix("readonly"),!s).toggleClass("dx-cell-focus-disabled",!s),u&&e.find(Pd).first().css("textAlign",u)}d&&this._editCellPrepared(e);var p=!(null===(i=t.column)||void 0===i||!i.cellTemplate);t.column&&!o&&(!p||r.shouldHighlightCell(t))&&r.highlightDataCell(e,t),super._cellPrepared.apply(this,arguments)}_getCellOptions(e){var t=super._getCellOptions(e),{columnIndex:i,row:r}=e;return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t.removed=r.removed,r.modified&&(t.modified=void 0!==r.modifiedValues[i]),t}_setCellAriaAttributes(e,t){super._setCellAriaAttributes(e,t),t.removed&&this.setAria("roledescription",R.A.format("dxDataGrid-ariaDeletedCell"),e),t.modified&&this.setAria("roledescription",R.A.format("dxDataGrid-ariaModifiedCell"),e),t.column.allowEditing&&!t.removed&&!t.modified&&"data"===t.rowType&&t.column.calculateCellValue===t.column.defaultCalculateCellValue&&this._editingController.isCellBasedEditMode()&&this.setAria("roledescription",R.A.format("dxDataGrid-ariaEditableCell"),e)}_createCell(e){var t=super._createCell(e),i=this._editingController.isEditRow(e.rowIndex);return Cp(i,e)&&t.addClass(Sa),t}cellValue(e,t,i,r){var o=this.getCellOptions(e,t);if(o){if(void 0===i)return o.value;this._editingController.updateFieldValue(o,i,r,!0)}}dispose(){super.dispose.apply(this,arguments),clearTimeout(this._pointerDownTimeout)}_renderCore(){return super._renderCore.apply(this,arguments),this.waitAsyncTemplates(!0).done(()=>{this._editingController._focusEditorIfNeed()})}_editCellPrepared(){}_formItemPrepared(){}},headerPanel:a=>class extends a{optionChanged(e){var{fullName:t}=e;switch(e.name){case"editing":t&&![Ea,en,Zn,st].some(o=>o===t)&&this._invalidate(),super.optionChanged(e);break;case"useLegacyColumnButtonTemplate":e.handled=!0;break;default:super.optionChanged(e)}}_getToolbarItems(){var e=super._getToolbarItems();return this._editingController.prepareEditButtons(this).concat(e)}isVisible(){var e=this._editingController.option("editing");return super.isVisible()||e?.allowAdding}}}}};W.registerModule("editing",(0,U.A)((0,U.A)({},yd),{extenders:(0,U.A)((0,U.A)({},yd.extenders),{controllers:(0,U.A)((0,U.A)({},yd.extenders.controllers),{data:a=>class extends(Op(a)){_changeRowExpandCore(e){var t=this._editingController;return Array.isArray(e)&&t&&t.refresh(),super._changeRowExpandCore.apply(this,arguments)}}})})})),W.registerModule("editingRowBased",{extenders:{controllers:{editing:a=>class extends a{isRowEditMode(){return this.getEditMode()===Qt}_afterCancelEditData(e){var t=this._dataController;this.isRowBasedEditMode()&&e>=0?t.updateItems({changeType:"update",rowIndices:[e,e+1]}):super._afterCancelEditData(e)}_isDefaultButtonVisible(e,t){var i=this.isRowBasedEditMode(),r=t.row&&(0,j.RL)(t.row.key,this.option(st));if(i)switch(e.name){case"edit":return!r&&this.allowUpdating(t);case"delete":return super._isDefaultButtonVisible(e,t)&&!r;case"save":case"cancel":return r;default:return super._isDefaultButtonVisible(e,t)}return super._isDefaultButtonVisible(e,t)}isEditRow(e){return this.isRowBasedEditMode()&&this.isEditRowByIndex(e)}_cancelSaving(e){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),super._cancelSaving(e)}_refreshCore(e){var{allowCancelEditing:t}=e??{};if(this.isRowBasedEditMode()){var i=this.getChanges().filter(r=>"update"===r.type).length>0;this.init(),t&&i&&this._cancelEditDataCore()}super._refreshCore(e)}_isEditColumnVisible(){var e=super._isEditColumnVisible(),t=this.option("editing"),i=this.isRowEditMode();
1return e||i&&(t.allowUpdating||t.allowAdding)}_focusEditorIfNeed(){var e=this.getEditMode();if(this._needFocusEditor){if(uv.includes(e)){var t=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(t,()=>{t&&this.component.focus(t)})}this._needFocusEditor=!1}}},data:a=>class extends a{_getChangedColumnIndices(e,t,i,r){if(!this._editingController.isRowBasedEditMode()||e.isEditing===t.isEditing)return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:a=>class extends a{_createRow(e){var t=super._createRow.apply(this,arguments);return e&&this._editingController.isEditRow(e.rowIndex)&&(t.addClass(_p),t.removeClass(op),"detail"===e.rowType&&t.addClass(this.addWidgetPrefix(ya))),t}_update(e){super._update(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children(".".concat(_p)).removeClass(op)}}}}});var xp=P(9737);W.registerModule("editingFormBased",{extenders:{controllers:{editing:a=>class extends a{init(){this._editForm=null,this._updateEditFormDeferred=null,super.init()}isFormOrPopupEditMode(){return this.isPopupEditMode()||this.isFormEditMode()}isPopupEditMode(){return this.option("editing.mode")===Md}isFormEditMode(){return this.option("editing.mode")===Li}getFirstEditableColumnIndex(){var e=this._firstFormItem;if(this.isFormEditMode()&&e){var t=this.option(st),i=this._dataController.getRowIndexByKey(t),r=this._rowsView.getCellElements(i);return this._rowsView._getEditFormEditorVisibleIndex(r,e.column)}return super.getFirstEditableColumnIndex()}getEditFormRowIndex(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():super.getEditFormRowIndex()}_isEditColumnVisible(){var e=super._isEditColumnVisible(),t=this.option("editing");return this.isFormOrPopupEditMode()&&t.allowUpdating||e}_handleDataChanged(e){var t,i;if(this.isPopupEditMode()){var r=this.option("editing.editRowKey"),o=null===(t=e?.items)||void 0===t?void 0:t.some(c=>
1(0,j.RL)(c.key,r)),s=(null===(i=e.changeTypes)||void 0===i?void 0:i.length)&&e.changeTypes.every(c=>"insert"===c);("refresh"===e.changeType||o&&e.isOptionChanged)&&!s&&this._repaintEditPopup()}super._handleDataChanged(e)}getPopupContent(){var e,t=null===(e=this._editPopup)||void 0===e?void 0:e.option("visible");if(this.isPopupEditMode()&&t)return this._$popupContent}_showAddedRow(e){this.isPopupEditMode()?this._showEditPopup(e):super._showAddedRow(e)}_cancelEditDataCore(){super._cancelEditDataCore(),this.isPopupEditMode()&&this._hideEditPopup()}_updateEditRowCore(e,t,i){var r,o=this._editForm;this.isPopupEditMode()?this.option("repaintChangesOnly")?(null===(r=e.update)||void 0===r||r.call(e,e),this._rowsView.renderDelayedTemplates()):o&&(this._updateEditFormDeferred=(new k.cY).done(()=>o.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve()):super._updateEditRowCore(e,t,i)}_showEditPopup(e,t){var i="desktop"!==Je.A.current().deviceType,r=this.addWidgetPrefix("edit-popup"),o=(0,A.X)({showTitle:!1,fullScreen:i,wrapperAttr:{class:r},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(e)},this.option(Ea));if(!this._editPopup){var s=(0,x.A)("<div>").appendTo(this.component.$element()).addClass(r);this._editPopup=this._createComponent(s,xn.A),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",c=>{var d;n.A.trigger(c.component.$content().find(bd).not(".".concat(Dv)).first(),"focus"),t&&(null===(d=this._editForm)||void 0===d||d.repaint())})}this._editPopup.option(o),this._editPopup.show(),super._showEditPopup(e,t)}_getPopupEditFormTemplate(e){var t=this.component.getVisibleRows()[e],i={row:t,values:t.values,rowType:t.rowType,key:t.key,rowIndex:e};return this._rowsView._addWatchMethod(i,t),r=>{var o=this.getEditFormTemplate(),s=this._createComponent((0,x.A)("<div>").appendTo(r),Cn.A);this._$popupContent=(0,x.A)(s.content()),o(this._$popupContent,i,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates(),(0,x.A)(r).parent().attr("aria-label",this.localize("dxDataGrid-ariaEditForm"))}}_repaintEditPopup(){var e,t,i=this._getVisibleEditRowIndex();if(i>=0){var r=null===(e=this._editPopup)||void 0===e?void 0:e.option("animation");null===(t=this._editPopup)||void 0===t||t.option("animation",null),this._showEditPopup(i,!0),void 0!==r&&this._editPopup.option("animation",r)}}_hideEditPopup(){var e;null===(e=this._editPopup)||void 0===e||e.option("visible",!1)}optionChanged(e){if("editing"===e.name&&this.isFormOrPopupEditMode()){var{fullName:t}=e;0===t.indexOf(xd)?(this._handleFormOptionChange(e),e.handled=!0):0===t.indexOf(Ea)&&(this._handlePopupOptionChange(e),e.handled=!0)}super.optionChanged(e)}_handleFormOptionChange(e){var t;if(this.isFormEditMode()){var i=this._getVisibleEditRowIndex();i>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[i]})}else null!==(t=this._editPopup)&&void 0!==t&&t.option("visible")&&0===e.fullName.indexOf(xd)&&this._repaintEditPopup()}_handlePopupOptionChange(e){var t=this._editPopup;if(t){var i=e.fullName.slice(14);i?t.option(i,e.value):t.option(e.value)}}renderFormEditorTemplate(e,t,i,r,o){var s=this,c=(0,x.A)(r),{column:d}=t,u=(a=>{var e,{column:t}=a;return a.isCustomEditorType?a.editorType:null===(e=t.formItem)||void 0===e?void 0:e.editorType})(t),p=e?.row.data,v=i.component,{label:f,labelMark:O,labelMode:b}=i.editorOptions||{},S=(0,A.X)({},e,{data:p,cellElement:null,isOnForm:!0,item:t,id:v.getItemID(t.name||t.dataField),column:(0,A.X)({},d,{editorType:u,editorOptions:(0,A.X)({label:f,labelMark:O,labelMode:b},d.editorOptions,t.editorOptions)}),columnIndex:d.index,setValue:!o&&d.allowEditing&&function(L,G){s.updateFieldValue(S,L,G)}});S.value=d.calculateCellValue(p);var E=this._getFormEditItemTemplate.bind(this)(S,d);return this._rowsView.renderTemplate(c,E,S,!!(0,Di.A1)(c)).done(()=>{this._rowsView._updateCell(c,S)}),S}getFormEditorTemplate(e,t){var i=this.component.columnOption(t.name||t.dataField);return(r,o)=>{var s=(0,x.A)(o),{row:c}=e;if(c?.watch){var d=c.watch(()=>i.selector(c.data),()=>{var u=s.find(".dx-widget").first(),p=u.data("dxValidator"),v=p?.option();s.contents().remove(),e=this.renderFormEditorTemplate.bind(this)(e,t,r,s),p=(u=s.find(".dx-widget").first()).data("dxValidator"),v&&!p&&u.dxValidator({validationRules:v.validationRules,validationGroup:v.validationGroup,dataGetter:v.dataGetter})});n.A.on(s,Rt.N,d)}e=this.renderFormEditorTemplate.bind(this)(e,t,r,s)}}getEditFormOptions(e){var t,i=null===(t=this._getValidationGroupsInForm)||void 0===t?void 0:t.call(this,e),r=this.option("editing.form.customizeItem"),o=this.addWidgetPrefix(hp),s=this.option("editing.form.items"),c={};if(s)fp(s,u=>{var p=u?.name||u?.dataField;p&&(c[p]=!!u.editorType)});else{var d=this._columnsController.getColumns();s=[],(0,w.__)(d,(u,p)=>{!p.isBand&&!p.type&&s.push({column:p,name:p.name,dataField:p.dataField})})}return(0,A.X)({},i,{items:s,formID:"dx-".concat(new xt.A),customizeItem:u=>{var p,v=u.name||u.dataField;if((u.column||v)&&(p=u.column||this._columnsController.columnOption(u.name?"name:".concat(u.name):"dataField:".concat(u.dataField))),p){if(u.label=u.label||{},u.label.text=u.label.text||p.caption,"boolean"===p.dataType&&void 0===u.label.visible){var f=this.option("editing.form.labelMode");("floating"===f||"static"===f)&&(u.label.visible=!0)}u.template=u.template||this.getFormEditorTemplate(e,u),u.column=p,u.isCustomEditorType=c[v],p.formItem&&(0,A.X)(u,p.formItem),void 0===u.isRequired&&p.validationRules&&(u.isRequired=p.validationRules.some(b=>"required"===b.type),u.validationRules=[]);var O=!(0,m.O9)(u.visible)||u.visible;!this._firstFormItem&&O&&(this._firstFormItem=u)}r?.call(this,u),u.cssClass=(0,m.Kg)(u.cssClass)?"".concat(u.cssClass," ").concat(o):o}})}getEditFormTemplate(){return(e,t,i)=>{var r=this.option(xd),o=this.getEditFormOptions(t),s=(0,x.A)("<div>").appendTo(e),c=i?.isPopupForm;if(this._firstFormItem=void 0,c&&s.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(s,xp.A,(0,A.X)({},r,o)),!c){var d=(0,x.A)("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(e);this._createComponent((0,x.A)("<div>").appendTo(d),Wn.A,this._getSaveButtonConfig()),this._createComponent((0,x.A)("<div>").appendTo(d),Wn.A,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var u;this._rowsView.renderDelayedTemplates(),null===(u=this._editPopup)||void 0===u||u.repaint()})}}getEditForm(){return this._editForm}_endUpdateCore(){var e;null===(e=this._updateEditFormDeferred)||void 0===e||e.resolve()}_beforeEndSaving(e){var t;super._beforeEndSaving(e),this.isPopupEditMode()&&(null===(t=this._editPopup)||void 0===t||t.hide())}_processDataItemCore(e,t,i,r,o){var{type:s}=t;this.isPopupEditMode()&&s===Vt&&(e.visible=!1),super._processDataItemCore(e,t,i,r,o)}_editRowFromOptionChangedCore(e,t){var i=this.isPopupEditMode();super._editRowFromOptionChangedCore(e,t,i),i&&this._showEditPopup(t)}},data:a=>class extends a{_updateEditItem(e){this._editingController.isFormEditMode()&&(e.rowType="detail")}_getChangedColumnIndices(e,t,i,r){if(!1!==r||!t.isEditing||!this._editingController.isFormEditMode())return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:a=>class extends a{_renderCellContent(e,t){"data"===t.rowType&&this._editingController.isPopupEditMode()&&!1===t.row.visible||super._renderCellContent.apply(this,arguments)}getCellElements(e){var t=super.getCellElements(e),i=this._editingController,r=i.getEditForm();return i.getEditFormRowIndex()===e&&t&&r?r.$element().find(".".concat(this.addWidgetPrefix(hp),", .").concat("dx-button")):t}_getVisibleColumnIndex(e,t,i){if(this._editingController.getEditFormRowIndex()===t&&(0,m.Kg)(i)){var o=this._columnsController.columnOption(i);return this._getEditFormEditorVisibleIndex(e,o)}return super._getVisibleColumnIndex.apply(this,arguments)}_getEditFormEditorVisibleIndex(e,t){var i=-1;return(0,w.__)(e,(r,o)=>{var s=(0,x.A)(o).find(".dx-field-item-content").data("dx-form-item");if(s?.column&&t&&s.column.index===t.index)return i=r,!1}),i}_isFormItem(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,i="data"===e.rowType&&this._editingController.isPopupEditMode();return(t||i)&&e.item}_updateCell(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):super._updateCell(e,t)}_updateContent(){var e=this._editingController,t=e.getEditForm(),i=t?.option("validationGroup");return super._updateContent.apply(this,arguments).done(()=>{var o=e.getEditForm();i&&o&&o!==t&&o.option("validationGroup",i)})}}}}}),W.registerModule("editingCellBased",{extenders:{controllers:{editing:a=>class extends a{init(){var t,i,e=!this._saveEditorHandler;super.init(),e&&(this._pointerUpEditorHandler=()=>{var r;i=null===(r=this._columnsResizerController)||void 0===r?void 0:r.isResizing()},this._pointerDownEditorHandler=r=>t=(0,x.A)(r.target),this._saveEditorHandler=this.createAction(function(r){var{event:o}=r,s=(0,x.A)(o.target),c=o[sp],{component:d}=this;if((!function Gv(a){return a&&(a.is("input")||a.is("textarea"))}(t)||t.is(s))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var p=u(s)||u(c?.$element()),v=c&&!c._disposed&&c!==this.component,f=!!s.closest(".".concat(this.addWidgetPrefix("addrow-button"))).length,O=s.hasClass(this.addWidgetPrefix("focus-overlay")),b=this.isCellEditMode();
1!i&&!p&&!O&&!(f&&b&&this.isEditing())&&((0,Di.A1)(s)||v)&&this._closeEditItem.bind(this)(s)}function u(S){if(!S)return!1;var E=S.closest(".".concat("dx-dropdowneditor-overlay")),L=d.$element();return E.length>0&&0===L.closest(E).length}}),n.A.on(I.A.getDocument(),Se.A.up,this._pointerUpEditorHandler),n.A.on(I.A.getDocument(),Se.A.down,this._pointerDownEditorHandler),n.A.on(I.A.getDocument(),ke.U,this._saveEditorHandler))}isCellEditMode(){return this.option("editing.mode")===Vi}isBatchEditMode(){return this.option("editing.mode")===Qn}isCellOrBatchEditMode(){return this.isCellEditMode()||this.isBatchEditMode()}_needToCloseEditableCell(e){var t,i=this.component.$element(),r=this.isEditing();if((!i||e.closest(i).length)&&e.closest(".".concat("dx-data-row")).length){var c=e.closest(".".concat(Pn,"> td")),d=this._rowsView.getRowIndex(c.parent()),u=this._rowsView.getCellElements(d);if(u?.length){var p=u.index(c),f=null===(t=this._columnsController.getVisibleColumns()[p])||void 0===t?void 0:t.allowEditing,O=this.isEditCell(d,p);r=r&&!f&&!O}}return r||super._needToCloseEditableCell(e)}_closeEditItem(e){this._needToCloseEditableCell(e)&&this.closeEditCell()}_focusEditorIfNeed(){var e;if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var t=this._getVisibleEditColumnIndex(),i=null===(e=this._rowsView)||void 0===e?void 0:e._getCellElement(this._getVisibleEditRowIndex(),t);i&&!i.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},i,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else super._focusEditorIfNeed()}isEditing(){if(this.isCellOrBatchEditMode()){var e=(0,m.O9)(this.option(st)),t=(0,m.O9)(this.option(Zn));return e&&t}return super.isEditing()}_handleEditColumnNameChange(e){var t=this._getVisibleEditRowIndex(e.previousValue);if(this.isCellOrBatchEditMode()&&-1!==t&&(0,m.O9)(e.value)&&e.value!==e.previousValue){var i=this._columnsController.getVisibleColumnIndex(e.value),r=this._columnsController.getVisibleColumnIndex(e.previousValue);this._editCellFromOptionChanged(i,r,t)}}_addRow(e){if(this.isCellEditMode()&&this.hasChanges()){var t=new k.cY;return this.saveEditData().done(()=>{this.hasChanges()?t.reject("cancel"):this.addRow(e).done(t.resolve).fail(t.reject)}),t.promise()}return super._addRow(e)}editCell(e,t){return this._editCell({rowIndex:e,columnIndex:t})}_editCell(e){var i,t=new k.cY;return this.executeOperation(t,()=>{i=this._editCellCore(e),(0,k.z7)(i).done(t.resolve).fail(t.reject)}),void 0!==i?i:t.promise()}_editCellCore(e){var t=this._dataController,i=(0,m.O9)(e.oldColumnIndex)||(0,m.O9)(e.oldRowIndex),{columnIndex:r,rowIndex:o,column:s,item:c}=this._getNormalizedEditCellOptions(e),d={data:c?.data,cancel:!1,column:s};if(void 0!==c.key){if(s&&("data"===c.rowType||"detailAdaptive"===c.rowType)&&!c.removed&&this.isCellOrBatchEditMode()){if(!i&&this.isEditCell(o,r))return!0;var u=o+t.getRowIndexOffset();return(0,k.z7)(this._beforeEditCell(o,r,c)).done(p=>{p||this._prepareEditCell(d,c,r,u)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")}_beforeEditCell(e,t,i){if(this.isCellEditMode()&&!i.isNewRow&&this.hasChanges()){var r=new k.cY;return this.saveEditData().always(()=>{r.resolve(this.hasChanges())}),this.addDeferred(r),r}return!1}publicMethods(){return super.publicMethods().concat(["editCell","closeEditCell"])}_getNormalizedEditCellOptions(e){var p,{oldColumnIndex:t,oldRowIndex:i,columnIndex:r,rowIndex:o}=e,s=this._columnsController,c=s.getVisibleColumns(),u=this._dataController.items()[o];return p=(0,m.O9)(t)?c[t]:this._getEditColumn(),(0,m.O9)(i)||(i=this._getVisibleEditRowIndex()),(0,m.Kg)(r)&&(r=s.columnOption(r,"index"),r=s.getVisibleIndex(r)),{oldColumn:p,columnIndex:r,oldRowIndex:i,rowIndex:o,column:c[r],item:u}}_prepareEditCell(e,t,i,r){var o;return t.isNewRow||(e.key=t.key),!this._isEditingStart(e)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(t.key),this._setEditColumnNameByIndex(i),e.column.showEditorAlways||this._addInternalData({key:t.key,oldData:null!==(o=t.oldData)&&void 0!==o?o:t.data}),!0)}closeEditCell(e,t){var i=(0,k.z7)(),r=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var o=new k.cY;i=new k.cY,this.executeOperation(o,()=>{this._closeEditCellCore(e,r,t).always(i.resolve)})}return i.promise()}_closeEditCellCore(e,t,i){var r=this._dataController,o=new k.cY,s=o.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!i)return this.saveEditData().done(d=>{this.hasChanges()?o.resolve():this.closeEditCell(!!d).always(o.resolve)}),s}else if(this._resetEditRowKey(),this._resetEditColumnName(),t>=0){var c=[t];this._beforeCloseEditCellInBatchMode(c),e||r.updateItems({changeType:"update",rowIndices:c})}return o.resolve(),s}_resetModifiedClassCells(e){if(this.isBatchEditMode()){var t=this._columnsController.getVisibleColumns().length;e.forEach(i=>
1{for(var{key:r}=i,o=this._dataController.getRowIndexByKey(r),s=0;s<t;s++){var c=this._rowsView._getCellElement(o,s);c?.removeClass("dx-cell-modified")}})}}_prepareChange(e,t,i){var r=(0,x.A)(e.cellElement);return this.isBatchEditMode()&&void 0!==e.key&&this._applyModified(r,e),super._prepareChange(e,t,i)}_cancelSaving(e){var t=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),t.updateItems()),super._cancelSaving(e)}optionChanged(e){var{fullName:t}=e;"editing"===e.name&&t===Zn?(this._handleEditColumnNameChange(e),e.handled=!0):super.optionChanged(e)}_editCellFromOptionChanged(e,t,i){var r=this._columnsController.getVisibleColumns();e>-1&&(0,j.zE)(()=>{this._repaintEditCell(r[e],r[t],i)})}_handleEditRowKeyChange(e){var t;if(this.isCellOrBatchEditMode()){var i=this._getVisibleEditColumnIndex(),r=this._getEditRowIndexCorrection(),o=this._dataController.getRowIndexByKey(e.previousValue)+r;(0,m.O9)(e.value)&&e.value!==e.previousValue&&(null===(t=this._editCellFromOptionChanged)||void 0===t||t.call(this,i,i,o))}else super._handleEditRowKeyChange(e)}deleteRow(e){if(this.isCellEditMode()&&this.isEditing()){var{isNewRow:t}=this._dataController.items()[e],i=this._dataController.getKeyByRowIndex(e);this.closeEditCell(null,t).always(()=>{e=this._dataController.getRowIndexByKey(i),this._checkAndDeleteRow(e)})}else super.deleteRow(e)}_checkAndDeleteRow(e){this.isBatchEditMode()?this._deleteRowCore(e):super._checkAndDeleteRow(e)}_refreshCore(e){var{isPageChanged:t}=e??{},i=this.isBatchEditMode()||t&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?i&&(this._resetEditColumnName(),this._resetEditRowKey()):super._refreshCore(e)}_allowRowAdding(e){return!!this.isBatchEditMode()||super._allowRowAdding(e)}_afterDeleteRow(e,t){var i=this._dataController;return this.isBatchEditMode()?(i.updateItems({changeType:"update",rowIndices:[t,e]}),(new k.cY).resolve()):super._afterDeleteRow(e,t)}_updateEditRow(e,t,i){this.isCellOrBatchEditMode()?this._updateRowImmediately(e,t,i):super._updateEditRow(e,t,i)}_isDefaultButtonVisible(e,t){if(this.isCellOrBatchEditMode()){var i=this.isBatchEditMode();switch(e.name){case"save":case"cancel":case"edit":return!1;case"delete":return super._isDefaultButtonVisible(e,t)&&(!i||!t.row.removed);case"undelete":return i&&this.allowDeleting(t)&&t.row.removed;default:return super._isDefaultButtonVisible(e,t)}}return super._isDefaultButtonVisible(e,t)}_isRowDeleteAllowed(){return super._isRowDeleteAllowed()||this.isBatchEditMode()}_beforeEndSaving(e){var t;this.isCellEditMode()?"update"!==(null===(t=e[0])||void 0===t?void 0:t.type)&&super._beforeEndSaving(e):(this.isBatchEditMode()&&this._resetModifiedClassCells(e),super._beforeEndSaving(e))}prepareEditButtons(e){var t,i=null!==(t=this.option("editing"))&&void 0!==t?t:{},r=super.prepareEditButtons(e);return(i.allowUpdating||i.allowAdding||i.allowDeleting)&&this.isBatchEditMode()&&(r.push(this.prepareButtonItem(e,"save","saveEditData",21)),r.push(this.prepareButtonItem(e,"revert","cancelEditData",22))),r}_saveEditDataInner(){var o,e=this._dataController.getVisibleRows()[this.getEditRowIndex()],t=this._getEditColumn(),i=t?.showEditorAlways;return this.isCellEditMode()&&!e?.isNewRow&&i&&(o=new k.cY,this.addDeferred(o)),super._saveEditDataInner().always(o?.resolve)}_applyChange(e,t,i){var r=this.isCellEditMode()&&e.row&&!e.row.isNewRow,{showEditorAlways:o}=e.column,s=e.column.setCellValue!==e.column.defaultSetCellValue;return o&&!i&&r&&this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex)?(this._focusEditingCell(),void this._updateEditRow(e.row,!0,s)):super._applyChange(e,t,i)}_applyChangeCore(e,t){var{showEditorAlways:i}=e.column,r=this.isCellEditMode()&&e.row&&!e.row.isNewRow;if(i&&!t){if(r)return this._setEditRowKey(e.row.key,!0),this._setEditColumnNameByIndex(e.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return t=this._needUpdateRow(e.column),super._applyChangeCore(e,t)}return super._applyChangeCore(e,t)}_processDataItemCore(e,t,i,r,o){var{data:s,type:c}=t;this.isBatchEditMode()&&c===Zt&&(e.data=(0,rt.lj)(e.data,s)),super._processDataItemCore(e,t,i,r,o)}_processRemoveCore(e,t,i){if(!this.isBatchEditMode()||i)return super._processRemoveCore(e,t,i)}_processRemoveIfError(e,t){if(!this.isBatchEditMode())return super._processRemoveIfError(e,t)}_beforeFocusElementInRow(e){super._beforeFocusElementInRow(e);var t=e>=0?e:0,i=this.getFirstEditableColumnIndex();i>=0&&this.editCell(t,i)}}},views:{rowsView:a=>class extends a{_createTable(){var e=super._createTable.apply(this,arguments),t=this._editingController;
1return t.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&n.A.on(e,(0,D.b4)(Ys.A.name,"dxDataGridRowsView"),"td:not(.".concat(Sa,")"),this.createAction(()=>{t.isEditing()&&t.closeEditCell()})),e}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var r=!!e.removed;this._editingController.isBatchEditMode()&&r&&t.addClass("dx-row-removed")}return t}},headerPanel:a=>class extends a{isVisible(){var e=this._editingController.option("editing");return super.isVisible()||e&&(e.allowUpdating||e.allowDeleting)&&e.mode===Qn}}}}});var Ed=P(1100),Ia=P(6022),Jr=P(9130),sC=P(5966),Pp=P(1063),bp="invalid",Rd="revert-tooltip",Mp="dx-invalid-message",wp="dxInvalidMessage",Id="invalid-message",Sp="dx-invalid-message-always",yp="dxRevertButton",Ep="validator",Ad="dx-pending-indicator",Rp="dx-validation-pending",Ip="content",Ap="__DX_INSERT_INDEX__",Tp="row",Aa="batch",Bi="cell",kp=["popup","form"],Zr="insert",Qr="cancel",eo=function(a){return(0,m.O9)(a)&&a!==Qr},Fp=function(a,e){return void 0!==a||void 0===a&&e&&!e.isNewRow};W.registerModule("validating",{defaultOptions:()=>({editing:{texts:{validationCancelChanges:R.A.format("dxDataGrid-validationCancelChanges")}}}),controllers:{validating:class hC extends ge.Controller{constructor(){super(...arguments),this._isValidationInProgress=!1,this._disableApplyValidationResults=!1}init(){this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._columnsController=this.getController("columns"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()}initValidationState(){this._validationState=[],this._validationStateCache={}}_rowIsValidated(e){var t=this._getValidationData(e?.key);return!!t&&!!t.validated}_getValidationData(e,t){var o,i=(0,j.GP)(e),r=(0,m.Gv)(i);return!(o=r?this._validationState.filter(s=>(0,j.RL)(s.key,e))[0]:this._validationStateCache[i])&&t&&(this._validationState.push(o={key:e,isValid:!0}),r||(this._validationStateCache[i]=o)),o}_getBrokenRules(e,t){return t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[]}_rowValidating(e,t){var i=new k.cY,r=this._editingController.getChangeByKey(e?.key),o=this._getBrokenRules(e,t),c={brokenRules:o,isValid:t?t.isValid:e.isValid,key:r.key,newData:r.data,oldData:this._editingController._getOldData(r.key),promise:null,errorText:this.getHiddenValidatorsErrorText(o)};return this.executeAction("onRowValidating",c),(0,k.z7)((0,k.Sx)(c.promise)).always(()=>{e.isValid=c.isValid,e.errorText=c.errorText,i.resolve(c)}),i.promise()}getHiddenValidatorsErrorText(e){var t=[];return(0,w.__)(e,(i,r)=>{var{column:o}=r,s=o&&void 0!==o.groupIndex&&!o.showWhenGrouped,c=o&&o.visible;!r.validator.$element().parent().length&&(!c||s)&&t.push(r.message)}),t.join(", ")}validate(e){var t=!0,i=this._editingController,r=new k.cY,o=[],s=i.getEditMode();if(e=e||s===Tp,this._isValidationInProgress)return r.resolve(!1).promise();if(this._isValidationInProgress=!0,e){i.addDeferred(r);var c=i.getChanges();(0,w.__)(c,(u,p)=>{var{type:v,key:f}=p;if("remove"!==v){var O=this._getValidationData(f,!0),b=this.validateGroup(O);o.push(b),b.done(S=>{O.validated=!0,t=t&&S.isValid})}})}else if(this._currentCellValidator){var d=this.validateGroup(this._currentCellValidator._findGroup());o.push(d),d.done(u=>{t=u.isValid})}return(0,k.z7)(...o).done(()=>{this._isValidationInProgress=!1,r.resolve(t)}),r.promise()}validateGroup(e){var r,t=new k.cY,i=e&&Jr.A.getGroupConfig(e);return i?.validators.length&&(this.resetRowValidationResults(e),r=Jr.A.validateGroup(e)),(0,k.z7)(r?.complete||r).done(o=>{(0,k.z7)(this._rowValidating(e,o)).done(t.resolve)}),t.promise()}isRowDataModified(e){return!(0,m.RI)(e.data)}updateValidationState(e){var t=this._editingController.getEditMode(),{key:i}=e,r=this._getValidationData(i,!0);if(kp.includes(t))r.isValid=!0;else{if(e.type===Zr&&!this.isRowDataModified(e))return void(r.isValid=!0);if(this.setDisableApplyValidationResults(!0),Jr.A.getGroupConfig(r)){var s=Jr.A.validateGroup(r);(0,k.z7)(s.complete||s).done(c=>{r.isValid=c.isValid,r.brokenRules=c.brokenRules})}else(!r.brokenRules||!r.brokenRules.length)&&(r.isValid=!0);this.setDisableApplyValidationResults(!1)}}setValidator(e){this._currentCellValidator=e}renderCellPendingIndicator(e){var t=e.find(".".concat(Ad));if(!t.length){var i=e;t=(0,x.A)("<div>").appendTo(i).addClass(Ad),this._createComponent(t,Ed.A),e.addClass(Rp)}}disposeCellPendingIndicator(e){var t=e.find(".".concat(Ad));if(t.length){var i=Ed.A.getInstance(t);i&&(i.dispose(),i.$element().remove()),e.removeClass(Rp)}}validationStatusChanged(e){var{validator:t}=e,i=t.option("validationGroup"),{column:r}=t.option("dataGetter")();this.updateCellValidationResult({rowKey:i.key,columnIndex:r.index,validationResult:e})}
1validatorInitialized(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))}validatorDisposing(e){var t=e.component,i=t.option("validationGroup"),{column:r}=t.option("dataGetter")(),o=this.getCellValidationResult({rowKey:i?.key,columnIndex:r.index});eo(o)&&"pending"===o.status&&this.cancelCellValidationResult({change:i,columnIndex:r.index})}applyValidationResult(e,t){var{validator:i}=t,r=i.option("validationGroup"),{column:o}=i.option("dataGetter")();if(t.brokenRules&&t.brokenRules.forEach(p=>{p.columnIndex=o.index,p.column=o}),e){var s=this.getCellValidationResult({rowKey:r.key,columnIndex:o.index}),c=eo(s)&&s.disabledPendingId===t.id;if(this._disableApplyValidationResults||c)return;if("invalid"===t.status){var d=e.find(":focus");(0,Pp.in)(d)||(n.A.trigger(d,"focus"),n.A.trigger(d,Se.A.down))}var u=!o.editCellTemplate&&this._editorFactoryController.getEditorInstance(e);"pending"===t.status?u?u.option("validationStatus","pending"):this.renderCellPendingIndicator(e):u?u.option("validationStatus","valid"):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix(bp),"invalid"===t.status)}}_syncInternalEditingData(e){var t,i=this._editingController,r=i.getChangeByKey(e.key),o=i._getOldData(e.key),s=null===(t=e.row)||void 0===t?void 0:t.oldData;r&&s&&!o&&i._addInternalData({key:e.key,oldData:s})}createValidator(e,t){var i,r,o,s=this._editingController,{column:c}=e,{showEditorAlways:d}=c;if(!(0,m.O9)(c.command)&&c.validationRules&&Array.isArray(c.validationRules)&&c.validationRules.length){var p=s.getIndexByKey(e.key,s.getChanges())>-1;if(!p){d||(d=((null===(i=this._columnsController)||void 0===i?void 0:i.getVisibleColumns())||[]).some(ee=>ee.showEditorAlways));var f=(0,j.RL)(this.option("editing.editRowKey"),e.key),O=s.isCellOrBatchEditMode()&&s.allowUpdating({row:e.row});p=f||O&&d,O&&d&&s._addInternalData({key:e.key,oldData:null!==(o=null===(r=e.row)||void 0===r?void 0:r.oldData)&&void 0!==o?o:e.data})}if(p){if(t&&!t.length)return void Oe.A.log("E1050");this._syncInternalEditingData(e);var b=this._getValidationData(e.key,!0),S=()=>{var ee=s.getChangeByKey(b?.key),oe=c.calculateCellValue(ee?.data||{});return void 0!==oe?oe:e.value},E=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix(Ep));var L=new sC.A(t||(0,x.A)("<div>"),{name:c.caption,validationRules:(0,A.X)(!0,[],c.validationRules),validationGroup:b,adapter:E?null:{getValue:S,applyValidationResults:ee=>{this.applyValidationResult(t,ee)}},dataGetter(){var ee=b?.key,oe=s.getChangeByKey(ee),_e=s._getOldData(ee);return{data:(0,rt.lj)(_e,oe?.data),column:c}
1},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(E){var G=L.option("adapter");if(G){var J=G.bypass,he=()=>e.row.isNewRow&&!this._isValidationInProgress&&!s.isCellModified(e);G.getValue=S,G.validationRequestsCallbacks=[],G.bypass=()=>J.call(G)||he()}}return L}}}setDisableApplyValidationResults(e){this._disableApplyValidationResults=e}getDisableApplyValidationResults(){return this._disableApplyValidationResults}isCurrentValidatorProcessing(e){var{rowKey:t,columnIndex:i}=e;return this._currentCellValidator&&(0,j.RL)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===i}validateCell(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index,validationResult:null},i=this.getCellValidationResult(t),r=eo(i),o=e.option("adapter");if(r){var s=o.getValue();(0,j.RL)(s,i.value)||(i=e.validate())}else i=e.validate();var c=new k.cY;return r&&"pending"===i.status&&(this.updateCellValidationResult(t),o.applyValidationResults(i)),(0,k.z7)(i.complete||i).done(d=>{r&&o.applyValidationResults(d),c.resolve(d)}),c.promise()}updateCellValidationResult(e){var{rowKey:t,columnIndex:i,validationResult:r}=e,o=this._getValidationData(t);if(o){var s;if(o.validationResults||(o.validationResults={}),r){if(s=(0,A.X)({},r),o.validationResults[i]=s,"pending"===r.status&&(this._editingController.getEditMode()===Bi&&(s.deferred=new k.cY,s.complete.always(()=>{s.deferred.resolve()}),this._editingController.addDeferred(s.deferred)),this._disableApplyValidationResults))return void(s.disabledPendingId=r.id)}else s=o.validationResults[i];s&&s.disabledPendingId&&delete s.disabledPendingId}}getCellValidationResult(e){var r,{rowKey:t,columnIndex:i}=e,o=this._getValidationData(t,!0);return null===(r=o?.validationResults)||void 0===r?void 0:r[i]}removeCellValidationResult(e){var{change:t,columnIndex:i}=e,r=this._getValidationData(t?.key);r&&r.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:i}),delete r.validationResults[i])}cancelCellValidationResult(e){var{change:t,columnIndex:i}=e,r=this._getValidationData(t.key);if(t&&r.validationResults){var o=r.validationResults[i];o&&(o.deferred&&o.deferred.reject(Qr),r.validationResults[i]=Qr)}}resetRowValidationResults(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)}isInvalidCell(e){var{rowKey:t,columnIndex:i}=e,r=this.getCellValidationResult({rowKey:t,columnIndex:i});return eo(r)&&"invalid"===r.status}getCellValidator(e){var{rowKey:t,columnIndex:i}=e,r=this._getValidationData(t),o=r&&Jr.A.getGroupConfig(r),s=o&&o.validators;return s&&s.filter(c=>{var{column:d}=c.option("dataGetter")();return!!d&&d.index===i})[0]}setCellValidationStatus(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,m.O9)(t)?e.validationStatus=t!==Qr?t.status:Qr:delete e.validationStatus}}},extenders:{controllers:{editing:a=>class extends a{processDataItemTreeListHack(e){super.processDataItem.apply(this,arguments)}processItemsTreeListHack(e,t){return super.processItems.apply(this,arguments)}_addChange(e){var t=super._addChange.apply(this,arguments);return t&&"remove"!==e.type&&this._validatingController.updateValidationState(t),t}_handleChangesChange(e){super._handleChangesChange.apply(this,arguments),e.value.forEach(t=>{void 0===this._validatingController._getValidationData(t.key)&&this._validatingController.updateValidationState(t)})}_updateRowAndPageIndices(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),i=t;(0,w.__)(e.getChanges(),(r,o)=>{var{key:s,type:c}=o,d=this._validatingController._getValidationData(s);d&&!d.isValid&&d.pageIndex!==e._pageIndex&&(d.pageIndex=e._pageIndex,d.rowIndex=c===Zr?t:i,i++)})}_getValidationGroupsInForm(e){return{validationGroup:this._validatingController._getValidationData(e.key,!0)}}_validateEditFormAfterUpdate(e,t){t&&this._editForm&&this._editForm.validate(),super._validateEditFormAfterUpdate.apply(this,arguments)}
1_prepareEditCell(e){var t=super._prepareEditCell.apply(this,arguments);return t&&e.column.showEditorAlways&&this._validatingController.updateValidationState({key:e.key}),t}processItems(e,t){var i=this.getChanges(),r=(s,c)=>{var d=-1,u=s.type===Zr,{key:p}=s;return(0,w.__)(c,(v,f)=>{if((0,j.RL)(p,u?f.key:this._dataController.keyOf(f)))return d=v,!1}),d},o=(e=super.processItems(e,t)).length;return this.getEditMode()===Aa&&"prepend"!==t&&"append"!==t&&i.forEach(s=>{var{key:c}=s,d=this._validatingController._getValidationData(c);d&&s.type&&d.pageIndex===this._pageIndex&&s?.pageIndex!==this._pageIndex&&function(u,p){var v={key:u.key};if(!(r(u,e)>=0)){p.rowIndex=p.rowIndex>o?p.rowIndex%o:p.rowIndex;var{rowIndex:O}=p;v[Ap]=1,e.splice(O,0,v)}}(s,d)}),e}processDataItem(e){var t=e.data[Ap],i=t?e.data.key:e.key;if(this.getEditMode()===Aa&&t&&i){var o=this.getChanges(),s=q.getIndexByKey(i,o);if(s>=0){var c=o[s];if(c.type!==Zr){var d=this._getOldData(c.key);e.data=(0,A.X)(!0,{},d,c.data),e.key=i}}}super.processDataItem.apply(this,arguments)}_createInvisibleColumnValidators(e){var t=this,i=this._columnsController.getColumns(),r=this._columnsController.getInvisibleColumns().filter(d=>!d.isBand),o=this._columnsController.getGroupColumns().filter(d=>!d.showWhenGrouped&&-1===r.indexOf(d)),s=[],c=(d,u)=>this._dataController.getRowIndexByKey(u)>=0&&r.indexOf(d)<0;return r.push(...o),kp.includes(this.getEditMode())||(0,w.__)(i,(d,u)=>{e.forEach(p=>{var v;if(!c(u,p.key)){if(p.type===Zr)v=p.data;else if("update"===p.type){var f=t._getOldData(p.key);if(!(0,m.O9)(f))return;v=(0,rt.lj)(f,p.data)}if(v){var O=this._validatingController.createValidator({column:u,key:p.key,value:u.calculateCellValue(v)});O&&s.push(O)}}})}),function(){s.forEach(d=>{d.dispose()})}}_beforeSaveEditData(e,t){var i=super._beforeSaveEditData.apply(this,arguments),r=this._validatingController._getValidationData(e?.key);if(e)i=i||!("remove"===e.type||r.isValid);else{var s=this._createInvisibleColumnValidators(this.getChanges());i=new k.cY,this.executeOperation(i,()=>{this._validatingController.validate(!0).done(c=>{switch(s(),this._updateRowAndPageIndices(),this.getEditMode()){case Bi:c||this._focusEditingCell();break;case Aa:c||(this._resetEditRowKey(),this._resetEditColumnName(),this._dataController.updateItems())}i.resolve(!c)})})}return i.promise?i.promise():i}_beforeEditCell(e,t,i){var r=super._beforeEditCell(e,t,i);if(this.getEditMode()===Bi){var o=this._rowsView._getCellElement(e,t),s=o&&o.data("dxValidator"),c=o&&o.closest(".dx-row").data("options"),d=s&&s.option("adapter").getValue();if(s&&Fp(d,c)){var u=new k.cY;return(0,k.z7)(this._validatingController.validateCell(s),r).done((p,v)=>{u.resolve("valid"===p.status&&v)}),u.promise()}if(!s)return r}return!1}_afterSaveEditData(e){var t,i=this.getEditMode()===Bi;if((0,w.__)(this.getChanges(),(u,p)=>{var v=this._showErrorRow(p);t=t||v}),t){var r=this._rowsView.getScrollable();r&&(r.update(),r.scrollToElement(t))}if(e&&i&&this._needUpdateRow()){var o=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[o]}),this._focusEditingCell()}else if(!e){var s=!0;i&&(s=!(this._columnsController.getColumns().filter(u=>{var p;return u.showEditorAlways&&(null===(p=u.validationRules)||void 0===p?void 0:p.length)>0}).length>0)),s&&this._validatingController.initValidationState()}}_handleDataChanged(e){var t=this._validatingController._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,w.__)(t,(i,r)=>{r.rowIndex+=e.items.length}),super._handleDataChanged(e)}resetRowAndPageIndices(){(0,w.__)(this._validatingController._validationState,(t,i)=>{i.pageIndex!==this._pageIndex&&(delete i.pageIndex,delete i.rowIndex)})}_beforeCancelEditData(){this._validatingController.initValidationState(),super._beforeCancelEditData()}_showErrorRow(e){var t,i=this._dataController.items(),r=this.getIndexByKey(e.key,i),o=this._validatingController._getValidationData(e.key);if(!o?.isValid&&o?.errorText&&r>=0)return t=this.getPopupContent(),this._errorHandlingController&&this._errorHandlingController.renderErrorRow(o?.errorText,r,t)}updateFieldValue(e){var t=new k.cY;
1return this._validatingController.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),super.updateFieldValue.apply(this,arguments).done(()=>{var i=this._validatingController.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,k.z7)(i&&this._validatingController.validateCell(i)).done(r=>{this._editorFactoryController.refocus(),t.resolve(r)})}),t.promise()}highlightDataCell(e,t){super.highlightDataCell.apply(this,arguments),this._validatingController.setCellValidationStatus(t);var i=!!t.setValue,r=this.isCellModified(t),o=(0,m.O9)(t.validationStatus);if(r&&t.column.setCellValue||i&&!r&&!t.row.isNewRow&&o){var c=e.data("dxValidator");c&&(0,k.z7)(this._validatingController.validateCell(c)).done(()=>{this._validatingController.setCellValidationStatus(t)})}}getChangeByKey(e){var t=this.getChanges();return t[q.getIndexByKey(e,t)]}isCellModified(e){var t=super.isCellModified(e),i=this.getChangeByKey(e.key),r=!!e.row&&this._validatingController.isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this._validatingController._rowIsValidated(i)&&r}},editorFactory:a=>class extends a{_showRevertButton(e){var t,i=null===(t=this._revertTooltip)||void 0===t?void 0:t.$element();if(!e||!e.length)return i?.remove(),void(this._revertTooltip=void 0);if(!e.find(i).length){var r=e.closest(".".concat(this.addWidgetPrefix(Ip))).parent(),o=this.addWidgetPrefix(Rd);i?.remove(),i=(0,x.A)("<div>").addClass(o).appendTo(e);var s={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:r,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{class:o},contentTemplate:()=>{var c=(0,x.A)("<div>").addClass("dx-revert-button"),d={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),elementAttr:{id:yp,"aria-label":R.A.format("dxDataGrid-ariaRevertButton")},onClick:()=>{this._editingController.cancelEditData()}};return new Wn.A(c,d).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:e},onPositioned:this._positionedHandler.bind(this)};this._revertTooltip=new Ia.A(i,s)}}_hideFixedGroupCell(e,t){var i,r,o=this._rowsView.isFixedColumns(),s=this._editingController.isFormOrPopupEditMode();if(o&&!s){var c=e.closest(".dx-row").next().data("options");c&&"group"===c.rowType&&(i=(0,x.A)(this._rowsView.getRowElement(c.rowIndex)).last(),(r=i.find(".".concat("dx-group-cell"))).length&&"hidden"!==r.get(0).style.visibility&&(r.css("visibility","hidden"),t.onDisposing=function(){r.css("visibility","")}))}}_positionedHandler(e,t){if(!e.component.__skipPositionProcessing){var i=(0,x.A)(e.element).hasClass(this.addWidgetPrefix(Rd)),r=!i&&this._rowsView.updateFreeSpaceRowHeight(),o=this._normalizeValidationMessagePositionAndMaxWidth(e,i,t);e.component.__skipPositionProcessing=!(!r&&!o),o?e.component.option(o):r&&e.component.repaint()}}_showValidationMessage(e,t,i){var r,o=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),s=o&&o.option("visible"),c=s?"top right":"top ".concat(i),d=s?"top left":"bottom ".concat(i),p=(null===(r=this._columnsController.getFixedColumns())||void 0===r?void 0:r.length)>0?this.getView("rowsView").element():e.closest(".".concat(this.addWidgetPrefix(Ip))),v="";t&&t.forEach(S=>{v+=(v.length?"<br/>":"")+(0,bt.o4)(S)});var f=this.addWidgetPrefix(Id);this._rowsView.element().find(".".concat(f)).remove();var O=(0,x.A)("<div>").addClass(Mp).addClass(Sp).addClass(f).html(v).appendTo(e),b={container:p,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{id:wp,class:"".concat(Mp," ").concat(Sp," ").concat(f)},position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!s&&Ie.A.mozilla?-1:0},my:c,at:d,of:e},onPositioned:S=>{this._positionedHandler(S,s),this._shiftValidationMessageIfNeed(S.component.$content(),e)}};this._hideFixedGroupCell(e,b),new Ia.A(O,b)}_hideValidationMessage(){var e,t=null===(e=this._rowsView.element())||void 0===e?void 0:e.find(this._getValidationMessagesSelector());t?.remove()}_normalizeValidationMessagePositionAndMaxWidth(e,t,i){var r=this._columnsController.getFixedColumns();if(r&&r.length){var o,s=!t&&function(a,e){var t=(0,x.A)(e).closest("tr").index(),i=(0,x.A)(a._rowsView.getRowElement(t)).first().children().filter(":not(.dx-hidden-cell)");return a._rowsView._getWidths(i).reduce((r,o)=>r+o,0)}(this,e.element),c=e.component.$content(),d=(0,F.Ot)(c,!0),u=!t&&d>s,p=this._rowsView.getCellIndex((0,x.A)(e.element).closest("td")),v=function(a){var e,t;return a.some((i,r)=>{if("transparent"===i.command)return e=0===r?-1:r,t=r===a.length-1?-1:r+i.colspan-1,!0}),{startColumnIndex:e,endColumnIndex:t}}(r);return t||p!==v.startColumnIndex&&!u?p===v.endColumnIndex&&(o={collision:"none flip",my:"top right",at:t||i?"top left"
1:"bottom right"},t&&(o.offset="-1 0")):o={collision:"none flip",my:"top left",at:i?"top right":"bottom left"},o&&{position:o,maxWidth:u?s-2:void 0}}}_shiftValidationMessageIfNeed(e,t){var i=this._revertTooltip&&this._revertTooltip.$content();if(i){var r=e.offset(),o=i.offset();if(r.top===o.top&&r.left+(0,F.RG)(e)>o.left){var s=(0,F.RG)(i)+2;e.css("left",o.left<t.offset().left?-s:s)}}}_getRevertTooltipsSelector(){var e=this.addWidgetPrefix(Rd);return".dx-editor-cell .".concat(e)}_getValidationMessagesSelector(){var e=this.addWidgetPrefix(Id);return".dx-editor-cell .".concat(e,", .dx-cell-modified .").concat(e)}loseFocus(e){e||this._validatingController.setValidator(null),super.loseFocus()}updateCellState(e,t,i){var r,o=e?.closest(this._getFocusCellSelector()),s=o?.is("td")?o:null,c=o?.closest(".dx-row").data("options"),d=c?this._editingController.getChangeByKey(c.key):null,u=s&&this._columnsController.getVisibleColumns()[s.index()],p=void 0!==(null===(r=d?.data)||void 0===r?void 0:r[u?.name])&&!this._editingController.isSaving(),v=[];if(this._editingController.getEditMode()===Bi&&("invalid"===t?.status||p?(this._showRevertButton(o),v.push(yp)):this._revertTooltip&&this._revertTooltip.$element().remove()),t&&"invalid"===t.status&&s&&u&&t&&t.brokenRules){var O=[];t.brokenRules.forEach(b=>{b.message&&O.push(b.message)}),O.length&&(this._showValidationMessage(o,O,u.alignment||"left"),v.push(wp))}this._updateAriaValidationAttributes(o,v),!i&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()}_updateAriaValidationAttributes(e,t){if(0!==t.length){var i=this._editingController.getEditMode();if([Bi,Aa,Tp].includes(i)){var o=this._getCurrentFocusElement(e);o.attr("aria-labelledby",t.join(" ")),o.attr("aria-invalid",!0)}}}_getCurrentFocusElement(e){return this._editingController.isEditing()?e.find(Pd).first():e}focus(e,t){if(!arguments.length)return super.focus();if(this._hideValidationMessage(),e?.hasClass("dx-row")||e?.hasClass("dx-master-detail-cell"))return super.focus(e,t);var c,i=e?.closest(this._getFocusCellSelector()),r=i&&(i.data("dxValidator")||e.find(".".concat(this.addWidgetPrefix(Ep))).eq(0).data("dxValidator")),o=i&&i.closest(".dx-row").data("options"),s=o?this._editingController.getChangeByKey(o.key):null;if(r){this._validatingController.setValidator(r);var d=r.option("adapter").getValue();if(Fp(d,o)||this._validatingController._rowIsValidated(s))return this._editingController.waitForDeferredOperations().done(()=>{0===e.closest("tr").length||(0,k.z7)(this._validatingController.validateCell(r)).done(p=>{c=p;var{column:v}=c.validator.option("dataGetter")();s&&v&&!this._validatingController.isCurrentValidatorProcessing({rowKey:s.key,columnIndex:v.index})||(!(0,je.Ft)((0,je.ss)())&&"invalid"===c.status&&(t=!0),this.updateCellState(e,c,t),super.focus.call(this,e,t))})}),super.focus(e,t)}return this.updateCellState(e,c,t),super.focus(e,t)}getEditorInstance(e){var t=e.find(".dx-texteditor").eq(0);return q.getWidgetInstance(t)}},data:a=>class extends a{_getValidationStatus(e){return(eo(e)?e.status:e)||"valid"}_isCellChanged(e,t,i,r,o){var s,c,d=null===(s=e.cells)||void 0===s?void 0:s[r],u=this._getValidationStatus({status:d?.validationStatus}),p=this._validatingController.getCellValidationResult({rowKey:e.key,columnIndex:r}
1),v=this._validatingController._getValidationData(e.key),f=this._getValidationStatus(p),O=JSON.stringify(t.modifiedValues)!==JSON.stringify(e.modifiedValues),b=u!==f&&O,S=(0,x.A)(d?.cellElement).hasClass(this.addWidgetPrefix(bp)),E=null===(c=d?.column.validationRules)||void 0===c?void 0:c.length;return!!(e.isEditing!==t.isEditing&&E||b||v.isValid&&S)||super._isCellChanged.apply(this,arguments)}}},views:{rowsView:a=>class extends a{updateFreeSpaceRowHeight(e){var t,i,r,o=this.element(),s=o&&o.find(".".concat(this.addWidgetPrefix(Id)," .dx-overlay-content"));if(super.updateFreeSpaceRowHeight(e),s&&s.length&&(t=this._getRowElements(),(i=(r=this._getFreeSpaceRowElements(e)).first())&&1===t.length&&(!i.is(":visible")||(0,F.P$)(s)>(0,F.P$)(i))))return r.show(),(0,F.k$)(r,(0,F.P$)(s)),!0}_formItemPrepared(e,t){super._formItemPrepared.apply(this,arguments),(0,j.OX)(()=>{var i=t.find(".dx-widget").first();i.length&&!i.children().length||this._validatingController.createValidator(e,i)})}_cellPrepared(e,t){this._editingController.isFormOrPopupEditMode()||this._validatingController.createValidator(t,e),super._cellPrepared.apply(this,arguments)}_restoreErrorRow(e){this._editingController&&this._editingController.hasChanges()&&this._getRowElements(e).each((t,i)=>{var r=(0,x.A)(i).data("options");if(r){var o=this._editingController.getChangeByKey(r.key);o&&this._editingController._showErrorRow(o)}})}}}}});var Td="scrolling.legacyMode",Dp=a=>a.option("scrolling.loadTwoPagesOnStart")||a._controller.isVirtual()||a._controller.getViewportItemIndex()>0,Ta=a=>a._cache.length?a._cache[0].pageIndex:-1,kd=a=>a._cache.length?a._cache[a._cache.length-1].pageIndex:-1,ka=(a,e,t)=>{a._isChangedFiring=!0,e(t),a._isChangedFiring=!1},Vp=(a,e,t)=>{if(a._isDelayChanged)return a._isDelayChanged=!1,ka(a,e,t),!0},Fa=(a,e)=>{var t=a.option("scrolling.preloadEnabled"),i=(a=>{var e=a._dataOptions.pageSize();if(a.option("scrolling.preventPreload"))return 0;var i=a._controller.viewportSize();if(a._controller.isVirtualMode()&&a.option("scrolling.removeInvisiblePages")){i=0;for(var r=a._controller.viewportSize()*a._controller.viewportItemSize(),o=a._controller.getContentOffset(),s=a._controller.getViewportPosition(),c=a._controller.virtualItemsCount(),d=a._dataOptions.totalItemsCount(),u=c.begin;u<d&&!(o>=s+r);u++)(o+=a._controller.getItemSizes()[u]||a._controller.viewportItemSize())>=s&&i++}return e&&i>0?Math.ceil(i/e):1})(a),r=a._controller.isAppendMode();return i&&(e?i=t?1:0:(t&&i++,(r||!Dp(a))&&i--)),i},Lp=(a,e,t,i,r)=>{var o=a._dataOptions,s=o.items().slice(),c=(0,m.Gv)(t)?t:void 0,d="prepend"===t,u=o.viewportItems();t&&(0,m.Kg)(t)&&!a._isDelayChanged&&(c={changeType:t,items:s},r&&(c.removeCount=r.itemsCount,c.removeCount&&o.correctCount&&(c.removeCount=o.correctCount(u,c.removeCount,d))));var p=r?r.itemsLength:0;p&&o.correctCount&&(p=o.correctCount(u,p,d)),"append"===t?(u.push.apply(u,s),r&&u.splice(0,p)):d?(u.unshift.apply(u,s),r&&u.splice(-p)):a._dataOptions.viewportItems(s),o.updateLoading(),a._lastPageIndex=a.pageIndex(),a._isDelayChanged=i,i||ka(a,e,c)};class wC{constructor(e,t){this._dataOptions=t,this._controller=e,this._pageIndex=this._lastPageIndex=t.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(e){var c,t=this._dataOptions.pageSize(),i=this._dataOptions.pageCount(),r=this._controller.isVirtualMode(),o=this._controller.isAppendMode(),s=this._dataOptions.totalItemsCount();if(t&&(r||o)&&s>=0){var d=this._controller.viewportSize();if(d&&e+d>=s&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var u=s%t;(c=i-1)>0&&u>0&&u<d&&c--}else c=i;else{c=Math.floor(e/t);var p=i-1;c=Math.max(c,0),c=Math.min(c,p)}return this.pageIndex(c),this.load()}}pageIndex(e){var t=this._controller.isVirtualMode(),i=this._controller.isAppendMode();return!1!==this.option(Td)&&(t||i)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataOptions.pageIndex(e)}beginPageIndex(e){var t=Ta(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t}endPageIndex(){var e=kd(this);return e>0?e:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var t,e=this._dataOptions,i=this._controller.isVirtualMode(),r=this._controller.isAppendMode();if(!1!==this.option(Td)&&(i||r)){var o=(a=>{var e=-1,t=Ta(a),i=a._dataOptions;return t<0?e=a._pageIndex:a._cache[a._pageIndex-t]?t>=0&&a._controller.viewportSize()>=0&&(t>0&&(kd(a)+1===i.pageCount()&&a._cache.length<Fa(a)+1||a._pageIndex===t&&Fa(a,!0))&&(e=t-1),e<0&&t+a._cache.length<=a._pageIndex+Fa(a)&&(e=t+a._cache.length)):e=a._pageIndex,a._loadingPageIndexes[e]&&(e=-1),e})(this);if(o>=0){var s=((a,e)=>{var t=a._dataOptions;if(e===a.pageIndex()||!t.isLoading()&&e<t.pageCount()||!t.hasKnownLastPage()&&e===t.pageCount())return t.pageIndex(e),a._loadingPageIndexes[e]=!0,(0,k.z7)(t.load()).always(()=>{a._loadingPageIndexes[e]=!1})})(this,o);s&&(t=new k.cY,s.done(()=>{var c=this._delayDeferred;c?c.done(t.resolve).fail(t.reject):t.resolve()}).fail(t.reject),e.updateLoading())}}else t=e.load();return!t&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),t||(new k.cY).resolve()}loadIfNeed(){var e=this._controller.isVirtualMode(),t=this._controller.isAppendMode();if((e||t)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var i=this._controller.getViewportPosition();i>0?this._controller._setViewportPositionCore(i):this.load()}}handleDataChanged(e,t){var o,s,i=this._dataOptions,r=this._cache.length,c=this._controller.isVirtualMode(),d=this._controller.isAppendMode();if(t&&t.changes)ka(this,e,t);else if(!1!==this.option(Td)&&(c||d)){var u=Ta(this);if(u>=0&&(c&&u+this._cache.length!==i.pageIndex()&&u-1!==i.pageIndex()&&(r=0,this._cache=[]),d))if(0===i.pageIndex())this._cache=[];else if(i.pageIndex()<kd(this))return void ka(this,e,{changeType:"append",
1items:[]});var v,p={pageIndex:i.pageIndex(),itemsLength:i.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&c?s=this._cache.length>Math.max(Fa(this)+(this.option("scrolling.preloadEnabled")?1:0),2):Vp(this,e,{isDelayed:!0}),u===i.pageIndex()+1?(s&&(v=this._cache.pop()),o="prepend",this._cache.unshift(p)):(s&&(v=this._cache.shift()),o="append",this._cache.push(p));var f=c&&0===r&&Dp(this);Lp(this,e,this._cache.length>1?o:void 0,f,v),this._delayDeferred=this.load().done(()=>{Vp(this,e)&&this.load()})}else Lp(this,e,t)}getDelayDeferred(){return this._delayDeferred}itemsCount(e){var t=0,i=this._controller.isVirtualMode();return!e&&i?this._cache.forEach(r=>{t+=r.itemsCount}):t=this._dataOptions.itemsCount(),t}virtualItemsCount(){var e=Ta(this);e<0&&(e=this._dataOptions.pageIndex());var t=e*this._dataOptions.pageSize(),i=this._cache.length*this._dataOptions.pageSize();return{begin:t,end:Math.max(0,this._dataOptions.totalItemsCount()-i-t)}}reset(){this._loadingPageIndexes={},this._cache=[]}}var qp="virtual",Da="scrolling.legacyMode",Bp=a=>a.option("scrolling.mode")===qp||a._isVirtual;function Np(a,e,t){var i,r=[],o=[],s=[];function c(v){var f=v.element?v.$element():v,O=ba.A.offset(f);return O?v.scrollTop()-(O.top-a.offset().top):a.offset().top}var v,f,d={on(v,f,O){v.on("scroll",O)},off(v,f,O){v.off("scroll",O)}};function u(v){var f="#document"===v.get(0).nodeName,O=v.get(0).nodeType===(0,fe.zk)().Node.ELEMENT_NODE,b=v.data("dxScrollable"),S=d;if(b||(b=f&&(0,x.A)((0,fe.zk)())||O&&"auto"===v.css("overflowY")&&v,S=n.A,b)){var E=function(L){return function(){var G=L.scrollTop()-c(L);e(G=G>0?G:0)}}(b);S.on(b,"scroll",E),o.push(L=>{var G=c(b);L-G>=0&&b[b.scrollTo?"scrollTo":"scrollTop"](L+G)}),r.push(b),s.push(()=>{S.off(b,"scroll",E)})}}for(i=(t=t||a).parent();i.length;void 0,i=(0,x.A)(null!==(f=(v=i).get(0).parentNode)&&void 0!==f?f:v.get(0).host))u(i);return{scrollTo(v){(0,w.__)(o,(f,O)=>{O(v)})},dispose(){(0,w.__)(s,(v,f)=>{f()})}}}class Fd{constructor(e,t,i){this._dataOptions=t,this.component=e,this._viewportSize=!1===e.option(Da)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=i,this.positionChanged=(0,Ye.A)(),this._dataLoader=new wC(this,this._dataOptions)}getItemSizes(){return this._itemSizes}option(e,t){return this.component.option.apply(this.component,arguments)}isVirtual(){return this._isVirtual}virtualItemsCount(){if(Bp(this)){var e=this._dataOptions,t=e.totalItemsCount();
1if(!1===this.option(Da)&&-1!==t){var i=this.getViewportParams(),r=e.loadedOffset(),o=e.loadedItemCount(),s=Math.max(i.skip,r),c=Math.min(i.take,o);return{begin:s,end:Math.max(t-(s+c),0)}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}}getScrollingTimeout(){var e,t=this.option("scrolling.renderAsync"),i=0;return(0,m.O9)(t)?t&&(i=null!==(e=this.option("scrolling.timeout"))&&void 0!==e?e:0):(i=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(i=this.option("scrolling.minTimeout")||0),i}setViewportPosition(e){var t=new k.cY,i=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),i>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(e),t.resolve()},i):(this._setViewportPositionCore(e),t.resolve()),t.promise()}getViewportPosition(){return this._position}getItemIndexByPosition(e,t,i){e=e??this._position;for(var r=this.getItemSize(),o=0,s=0,c=Object.keys(this._itemSizes).concat(-1),d=0;d<c.length&&o<e;d++){var u=parseInt(c[d]),p=(e-o)/r;if(u<0||s+p<u){s+=p,this._sizeRatio<1&&(0,m.O9)(t)&&(s=t+i/this._viewportItemSize);break}o+=(p=u-s)*r,s+=p;var v=this._itemSizes[u];s+=(o+=v)<e?1:(e-o+v)/v}return Math.round(50*s)/50}isScrollingBack(){return this._isScrollingBack}_setViewportPositionCore(e){var t=this._position||0;this._position=e,t!==this._position&&(this._isScrollingBack=this._position<t);var i=this.getItemIndexByPosition(),r=this.setViewportItemIndex(i);return this.positionChanged.fire(),r}setContentItemSizes(e){var t=this.virtualItemsCount();if(this._contentSize=e.reduce((o,s)=>o+s,0),t){e.forEach((o,s)=>{this._itemSizes[t.begin+s]=o});var i=(t.begin+t.end+this.itemsCount())*this._viewportItemSize,r=q.getContentHeightLimit(Ie.A);this._sizeRatio=i>r?r/i:1}}getItemSize(){return this._viewportItemSize*this._sizeRatio}getItemOffset(e,t){var i=this.virtualItemsCount(),r=e;if(!i)return 0;var o=0,s=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(c=>{r&&(t?c>=s-e:c<e)&&(o+=this._itemSizes[c],r--)}),Math.floor(o+r*this._viewportItemSize*this._sizeRatio)}getContentOffset(e){var t="end"===e,i=this.virtualItemsCount();return i?this.getItemOffset(t?i.end:i.begin,t):0}getVirtualContentSize(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0}getViewportItemIndex(){return this._viewportItemIndex}setViewportItemIndex(e){if(this._viewportItemIndex=e,!1!==this.option(Da
1))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)}viewportItemSize(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize}viewportSize(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize}viewportHeight(e,t){var i=t??this._position,r=this.getItemIndexByPosition(i),o=this.getItemIndexByPosition(i+e,r,e);this.viewportSize(Math.ceil(o-r)),!(0,m.O9)(t)&&this._viewportItemIndex!==r&&this._setViewportPositionCore(i)}reset(e){this._dataLoader.reset(),e||(this._itemSizes={})}subscribeToWindowScrollEvents(e){this._windowScroll=this._windowScroll||Np(e,t=>{this.viewportItemSize()&&this.setViewportPosition(t)})}dispose(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null}scrollTo(e){this._windowScroll&&this._windowScroll.scrollTo(e)}isVirtualMode(){return Bp(this)}isAppendMode(){return"infinite"===(a=this).option("scrolling.mode")&&!a._isVirtual;var a}getViewportParams(){var e,t=this.option("scrolling.mode")===qp,i=this._dataOptions.totalItemsCount(),o=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>i?i:this._viewportItemIndex,s=this._viewportSize+o,c=this.option("scrolling.prerenderedRowChunkSize")||1,d=this.isScrollingBack(),u=null!==(e=this.option("scrolling.prerenderedRowCount"))&&void 0!==e?e:1,v=d?0:u,f=Math.floor(Math.max(0,o-(d?u:0))/c)*c,O=Math.ceil((s+v-f)/c)*c;if(t){var b=Math.max(0,i-f);O=Math.min(O,b)}return{skip:f,take:O}}
1itemsCount(){return this.option(Da)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}pageIndex(){return this._dataLoader.pageIndex(...arguments)}beginPageIndex(){return this._dataLoader.beginPageIndex(...arguments)}endPageIndex(){return this._dataLoader.endPageIndex(...arguments)}pageSize(){return this._dataLoader.pageSize(...arguments)}load(){return this._dataLoader.load(...arguments)}loadIfNeed(){return this._dataLoader.loadIfNeed(...arguments)}handleDataChanged(){return this._dataLoader.handleDataChanged(...arguments)}getDelayDeferred(){return this._dataLoader.getDelayDeferred()}}var zp="bottom-load-panel",Gp="dx-freespace-row",Va="dx-virtual-row",re="scrolling.legacyMode",Dd="paging.pageIndex",kC=["beginPageIndex","endPageIndex","pageIndex"],Ke=function(a){return"virtual"===a.option("scrolling.mode")},Lt=function(a){return"infinite"===a.option("scrolling.mode")},St=function(a){return Ke(a)||Lt(a)},jp=function(a,e,t,i){for(var r=0;r<e+1;r++){var o=a[t?a.length-1-r:r];o&&!i(o,r===e,t)&&e++}return e},La=function(a,e){return"data"===a.rowType&&!a.isNewRow||"group"===a.rowType&&e.isGroupItemCountable(a.data)},Vd=function(a){var e=a._virtualScrollController.beginPageIndex(-1);Ke(a)&&(e<0||a.viewportSize()>=0&&a.getViewportItemIndex()>=0&&(e*a.pageSize()>a.getViewportItemIndex()||e*a.pageSize()+a.itemsCount()<a.getViewportItemIndex()+a.viewportSize())&&a._dataSource.isLoading()?a._isLoading||(a._isLoading=!0,a.loadingChanged.fire(!0)):a._isLoading&&(a._isLoading=!1,a.loadingChanged.fire(!1)))},Xe=function(a,e,t){if(!1===a.option(re)&&kC.includes(e)){var i=a._dataSource;return i.pageIndex.apply(i,t)}var r=a._virtualScrollController;return r[e].apply(r,t)},Up=function(a,e){var t=a.toArray().map(o=>(0,x.A)(o).parent(".".concat(e)).get(0)).filter(o=>o);t.length&&(a=(0,x.A)(t));for(var i=e===Gp?a.length-1:a.length,r=0;r<i;r++)a.eq(r).remove()};W.registerModule("virtualScrolling",{defaultOptions:()=>({scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}),extenders:{controllers:{data:a=>class extends a{dispose(){var e=this._rowsScrollController;e&&e.dispose(),super.dispose.apply(this,arguments)}_refreshDataSource(){var e=super._refreshDataSource.apply(this,arguments)||(new k.cY).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e}_loadDataSource(){var e;if(this._rowsScrollController&&St(this)){var{loadPageCount:t}=(0,m.O9)(this._loadViewportParams)?this.getLoadPageParams():{loadPageCount:0};t>=1&&(null===(e=this._dataSource)||void 0===e||e.loadPageCount(t))}return super._loadDataSource.apply(this,arguments)}getRowPageSize(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e}reload(){var e=this._rowsScrollController||this._dataSource,t=e&&e.getItemIndexByPosition(),i=super.reload.apply(this,arguments);return i&&i.done(()=>{var r,o;if(Ke(this)||q.isVirtualRowRendering(this)){var s=this.getRowIndexOffset(),c=Math.floor(t)-s,{component:d}=this,u=d.getScrollable&&d.getScrollable(),p=this.dataSource().operationTypes().sorting;if(u&&!p&&c>=0){var v=d.getRowElement(c),f=v&&v[0]&&(0,x.A)(v[0]),O=f&&(null===(r=f.position())||void 0===r?void 0:r.top),b=Ie.A.chrome&&Number(null!==(o=Ie.A.version)&&void 0!==o?o:0)>=91;O&&O>(Ie.A.mozilla||b?1:0)&&(O=Math.round(O+(0,F.P$)(f)*(t%1)),u.scrollTo({y:O}))}}})}initVirtualRows(){var e=q.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!e||!e||!1!==this.option(re)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var t=!Ke(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(t*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(re)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new Fd(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var i;if(!1===this.option(re))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);
1null===(i=this._dataSource)||void 0===i||i.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(re)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(re)&&this._rowsScrollController.load()}isViewportChanging(){return this._viewportChanging}_getRowsScrollDataOptions(){var e=this,t=function(i){return La(i,e._dataSource)};return{pageSize:()=>e.getRowPageSize(),loadedOffset(){var i;return Ke(e)&&(null===(i=e._dataSource)||void 0===i?void 0:i.lastLoadOptions().skip)||0},loadedItemCount:()=>e._itemCount,totalItemsCount:()=>St(e)?e.totalItemsCount():!1===e.option(re)?e._itemCount:e._items.filter(t).length,hasKnownLastPage:()=>!1!==e.option(re)||e.hasKnownLastPage(),pageIndex:i=>(void 0!==i&&(e._rowPageIndex=i),e._rowPageIndex),isLoading:()=>e.isLoading(),pageCount(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&e._rowsScrollController.handleDataChanged(i=>{(i=i||{}).changeType=i.changeType||"refresh",i.items=i.items||e._visibleItems,e._visibleItems.forEach((r,o)=>{r.rowIndex=o}),e._fireChanged(i)})},updateLoading(){},itemsCount(){return this.items(!0).length},correctCount:(i,r,o)=>jp(i,r,o,(s,c,d)=>s.isNewRow?c&&!d:c&&d?!s.isNewRow:t(s)),items(i){var r=e._items;if(e.option(re)){var o=e.dataSource(),s=o?.virtualItemsCount(),c=s?s.begin:0,d=e.getRowPageSize(),u=e._rowPageIndex*d-c,p=d;if(u<0)return[];u&&(u=this.correctCount(r,u),r=r.slice(u)),p&&(p=this.correctCount(r,p),r=r.slice(0,p))}return i?r.filter(t):r},viewportItems:i=>(i&&!1!==e.option(re)&&(e._visibleItems=i),e._visibleItems),onChanged(){},changingDuration(){var i=e.dataSource();return i?.isLoading()&&!1!==e.option(re)?300:i?._renderTime||0}}}_updateItemsCore(e){var t=this.getRowIndexDelta();if(super._updateItemsCore.apply(this,arguments),!1===this.option(re)&&q.isVirtualRowRendering(this))"update"===e.changeType&&0===e.rowIndices.length&&e.cancelEmptyChanges&&(e.cancel=!0);else{var i=this._rowsScrollController;if(i){var r=this._visibleItems,o="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;o||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,o&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach((s,c)=>{var d=e.changeTypes[c],u=e.items[c];"update"===d?r[s]=u:"insert"===d?r.splice(s,0,u):"remove"===d&&r.splice(s,1)}):(r.forEach((s,c)=>{r[c]=this._items[c+t]||r[c]}),e.items=r),function(a){a.forEach((e,t)=>{e.rowIndex=t})}(r))}}}_updateLoadViewportParams(){var e=this._rowsScrollController.getViewportParams(),t=this.pageSize();if(e&&!St(this)&&t>0){var i=this.pageIndex()*t;e.skip+=i}this._loadViewportParams=e}_processItems(){var e,t=super._processItems.apply(this,arguments);if(!1===this.option(re)){var o,s,c,i=this._dataSource,r=null!==(e=i?.lastLoadOptions().skip)&&void 0!==e?e:0,d=!1,u=[];t.forEach(p=>{var{rowType:v}=p,f=La(p,i),O="group"===v&&(o||f||"group"!==s&&r>0),b="data"===v&&f&&(o||"group"!==s);!p.isNewRow&&(0,m.O9)(o)&&(O||b)&&(!c||d)&&r++,(O||b)&&(d=!0),p.isNewRow?u.push(p):(u.forEach(E=>{E.loadIndex=r}),u=[]),p.loadIndex=r,o=f,s=v,c=p.isNewRow}),u.forEach(p=>{p.loadIndex=r})}return t}_afterProcessItems(e){if(this._itemCount=e.filter(s=>La(s,this._dataSource)).length,(0,m.O9)(this._loadViewportParams)){this._updateLoadViewportParams();var t=e;if(this._allItems=e,e.length){var{skipForCurrentPage:i}=this.getLoadPageParams(!0),r=e[0].loadIndex+i,{take:o}=this._loadViewportParams;t=e.filter(s=>s.loadIndex>=r&&(s.loadIndex<r+o||s.isNewRow&&s.loadIndex===r&&0===o))}return t}return super._afterProcessItems.apply(this,arguments)}_applyChange(e){var t=this,{items:i}=e,{changeType:r}=e,{removeCount:o}=e;switch(o&&(o=jp(t._items,o,"prepend"===r,(c,d)=>"data"===c.rowType&&!c.isNewRow||"group"===c.rowType&&(t._dataSource.isGroupItemCountable(c.data)||d)),e.removeCount=o),r){case"prepend":t._items.unshift.apply(t._items,i),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,i),o&&t._items.splice(0,o);break;default:super._applyChange(e)}}items(e){return e?this._allItems||this._items:this._visibleItems||this._items}getRowIndexDelta(){var e=0;if(this.option(re)){var t=this._visibleItems;t&&t[0]&&(e=this._items.indexOf(t[0]))}return e<0?0:e}getRowIndexOffset(e,t){var i,r,o=0,s=this.dataSource(),c=this._rowsScrollController,d=!1===this.option(re),u=St(this);if(c&&!e)if(d&&(0,m.O9)(this._loadViewportParams)){var{skipForCurrentPage:p,pageIndex:v}=this.getLoadPageParams(!0),f=this.items(!0);if(o=u?v*this.pageSize():0,f.length){var O=f[0].loadIndex;o+=f.filter(S=>S.loadIndex<O+p).length}}else o=c.beginPageIndex()*c.pageSize();else if(u&&d&&s){var b=s.lastLoadOptions();o=t&&null!==(i=b.skips)&&void 0!==i&&i.length?b.skips.reduce((S,E)=>S+E,0):null!==(r=b.skip)&&void 0!==r?r:0}else Ke(this)&&s&&(o=s.beginPageIndex()*s.pageSize());return o}getDataIndex(){return!1===this.option(re)?this.getRowIndexOffset(!0,!0):super.getDataIndex.apply(this,arguments)}viewportSize(){var e=this._rowsScrollController,t=this._dataSource,i=e?.viewportSize.apply(e,arguments);return!1===this.option(re)?i:t?.viewportSize.apply(t,arguments)}
1viewportHeight(e,t){var i;null===(i=this._rowsScrollController)||void 0===i||i.viewportHeight(e,t)}viewportItemSize(){var e=this._rowsScrollController,t=this._dataSource,i=e?.viewportItemSize.apply(e,arguments);return!1===this.option(re)?i:t?.viewportItemSize.apply(t,arguments)}setViewportPosition(){var e=this._rowsScrollController,t=this._dataSource;this._isPaging=!1,e?e.setViewportPosition.apply(e,arguments):t?.setViewportPosition.apply(t,arguments)}setContentItemSizes(e){var t=this._rowsScrollController,i=this._dataSource,r=t?.setContentItemSizes(e);return!1===this.option(re)?r:i?.setContentItemSizes(e)}getPreloadedRowCount(){var e=this.option("scrolling.preloadedRowCount"),t=this.option("scrolling.preloadEnabled");if((0,m.O9)(e))return e;var i=this.viewportSize();return t?2*i:i}getLoadPageParams(e){var t,i,r=this.pageSize(),o=this._loadViewportParams,s=null===(t=this._dataSource)||void 0===t?void 0:t.lastLoadOptions(),c=s?.pageIndex||0,d=s?.take||0,u=this._rowsScrollController.isScrollingBack(),p=u?this.getPreloadedRowCount():0,v=u?0:this.getPreloadedRowCount(),f=(null===(i=this._dataSource)||void 0===i?void 0:i.totalCountCorrection())||0,O=Math.max(0,o.skip-p),b=e?
1c:Math.floor(r?O/r:0),E=o.skip-b*r,J=Math.ceil(r?(e?d:o.take+E+v-f)/r:0);return{pageIndex:b,loadPageCount:Math.max(1,J),skipForCurrentPage:Math.max(0,E)}}_updateVisiblePageIndex(e){if(this._rowsScrollController){if((0,m.O9)(e))return this._silentOption(Dd,e),void this.pageChanged.fire();var t=this._rowsScrollController.getViewportItemIndex(),i=Math.floor(t/this.pageSize());this.pageIndex()!==i&&(this._silentOption(Dd,i),this.updateItems({changeType:"pageIndex"}))}}_getChangedLoadParams(){var e=this.getLoadPageParams(!0),{pageIndex:t,loadPageCount:i}=this.getLoadPageParams(),r=this._pageIndexIsValid(t),o=null;return!this._isLoading&&r&&(t!==e.pageIndex||i!==e.loadPageCount)&&(o={pageIndex:t,loadPageCount:i}),o}_pageIndexIsValid(e){var t=!0;return(Lt(this)&&this.hasKnownLastPage()||Ke(this))&&(t=e*this.pageSize()<this.totalItemsCount()),t}_loadItems(e,t){var i,r,o=St(this),s=this._dataSource,c=this._getChangedLoadParams(),d=null!==(i=s?.loadPageCount())&&void 0!==i?i:0,u=this.pageSize()*d,p=null!==(r=s?.pageIndex())&&void 0!==r?r:0,v=c?.pageIndex===p,f=Lt(this)&&this.totalItemsCount()<u,O="repaint"===this.option("editing.refreshMode"),S=!1;if(!s||o&&e&&(O&&t||c?.pageIndex>p||v&&f))return S;if(o&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),o&&c){S=!0,s.pageIndex(c.pageIndex),s.loadPageCount(c.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var E=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{var L=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(E||L)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return S}loadViewport(e){var t,i,r,{checkLoadedParamsOnly:o,checkLoading:s,viewportIsNotFilled:c}=e??{};if(St(this)||q.isVirtualRowRendering(this)){this._updateLoadViewportParams();var u=this._loadItems(s,!c),p=null===(t=this._dataSource)||void 0===t?void 0:t.isCustomLoading();if(!(u||s&&!p&&this._isLoading||o)){var O=!(null!==(r=null===(i=this._editingController)||void 0===i?void 0:i.getChanges())&&void 0!==r&&r.length);this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:O,cancelEmptyChanges:!0})}}}updateViewport(){var e,t,i=this.viewportSize(),r=this.items().length,o=i>r,s=null!==(t=null===(e=this._loadViewportParams)||void 0===e?void 0:e.take)&&void 0!==t?t:0,c=this._rowsScrollController,d=c?.getViewportParams().take;(o||s<d)&&!this._isPaging&&r&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:o})}loadIfNeed(){if(!1!==this.option(re)){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()}}getItemSize(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)}getItemSizes(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)}getContentOffset(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)}refresh(e){var t=this._dataSource;return t&&e&&e.load&&Lt(this)&&t.resetCurrentTotalCount(),super.refresh.apply(this,arguments)}topItemIndex(){var e;return null===(e=this._loadViewportParams)||void 0===e?void 0:e.skip}bottomItemIndex(){var e=this._loadViewportParams;return e&&e.skip+e.take}virtualItemsCount(){var e=this._rowsScrollController;if(e)return e.virtualItemsCount.apply(e,arguments);var t=this._dataSource;return t?.virtualItemsCount.apply(t,arguments)}pageIndex(e){var t,i=St(this),r=this._rowsScrollController;return!1===this.option(re)&&i&&r&&void 0===e?null!==(t=this.option(Dd))&&void 0!==t?t:0:super.pageIndex.apply(this,arguments)}_fireChanged(e){super._fireChanged.apply(this,arguments);var{operationTypes:t}=e;if(!1===this.option(re)&&St(this)&&t){var{fullReload:i,pageIndex:r}=t;e.isDataChanged&&!i&&r&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}}_getPagingOptionValue(e){var t=super._getPagingOptionValue.apply(this,arguments);return!1===this.option(re)&&St(this)&&(t=this[e]()),t}isEmpty(){return!1===this.option(re)?!this.items(!0).length:super.isEmpty.apply(this,arguments)}isLastPageLoaded(){var e=!1;if(!1===this.option(re)&&St(this)){var{pageIndex:t,loadPageCount:i}=this.getLoadPageParams(!0);e=t+i>=this.pageCount()}else e=super.isLastPageLoaded.apply(this,arguments);return e}reset(){this._itemCount=0,this._allItems=null,super.reset.apply(this,arguments)}_applyFilter(){var e;return null===(e=this._dataSource)||void 0===e||e.loadPageCount(1),super._applyFilter.apply(this,arguments)}getVirtualContentSize(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.getVirtualContentSize.apply(this._dataSource,arguments)}setViewportItemIndex(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.setViewportItemIndex.apply(this._dataSource,arguments)}},resizing:a=>class extends a{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._resizeTimeout)}_updateMasterDataGridCore(e){return(0,k.z7)(super._updateMasterDataGridCore.apply(this,arguments)).done(t=>{var i=Ke(e)&&!1===e.option(re);!t&&i&&e.getScrollable()&&e.updateDimensions()})}hasResizeTimeout(){return!!this._resizeTimeout}resize(){var e;if(Ke(this)||q.isVirtualRowRendering(this)){clearTimeout(this._resizeTimeout),this._resizeTimeout=null;var t=new Date-this._lastTime,i=this.option("scrolling.updateTimeout");this._lastTime&&t<i?(e=new k.cY,this._resizeTimeout=setTimeout(()=>{this._resizeTimeout=null,super.resize.apply(this).done(e.resolve).fail(e.reject),this._lastTime=new Date},i),this._lastTime=new Date):(e=super.resize.apply(this),this._dataController.isLoaded()&&(this._lastTime=new Date))}else e=super.resize.apply(this);return e}}},views:{rowsView:a=>class extends a{init(){var e;super.init(),this._dataController.pageChanged.add(t=>{var i=this._scrollTop;this.scrollToPage(t??this._dataController.pageIndex()),!1===this.option(re)&&this._scrollTop===i&&this._dataController.updateViewport()}),this._dataController.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(e=this._dataController.stateLoaded)||void 0===e||e.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()}dispose(){clearTimeout(this._scrollTimeoutID),super.dispose()}_scrollToCurrentPageOnResize(){if(this._dataController.pageIndex()>0){var e=()=>{this.resizeCompleted.remove(e),this.scrollToPage(this._dataController.pageIndex())};this.resizeCompleted.add(e)}}scrollToPage(e){var i,t=this._dataController?this._dataController.pageSize():0;if(Ke(this)||Lt(this)){var r=this._dataController.getItemSize(),o=this._dataController.getItemSizes(),s=e*t;for(var c in i=s*r,o)parseInt(c)<s&&(i+=o[c]-r)}
1else i=0;this.scrollTo({y:i,x:this._scrollLeft})}renderDelayedTemplates(){this.waitAsyncTemplates().done(()=>{this._updateContentPosition(!0)}),super.renderDelayedTemplates.apply(this,arguments)}_renderCore(e){var t=new Date,i=super._renderCore.apply(this,arguments),r=this._dataController._dataSource;if(r&&e){var o=e.items?e.items.length:20,s=this._dataController.viewportSize()||20;r._renderTime=q.isVirtualRowRendering(this)&&o>0&&!1!==this.option(re)?(new Date-t)*s/o:new Date-t}return i}_getRowElements(e){var t=super._getRowElements(e);return t&&t.not(".".concat(Va))}_removeRowsElements(e,t,i){var r=this._getRowElements(e).toArray();(r="append"===i?r.slice(0,t):r.slice(-t)).map(o=>{var s=(0,x.A)(o);this._errorHandlingController&&this._errorHandlingController.removeErrorRow(s.next()),s.remove()})}_updateContent(e,t){var i,r=this._findContentElement(),o=t&&t.changeType,s=(0,k.cY)(),c=r.children().first();return"append"===o||"prepend"===o?this.waitAsyncTemplates().done(()=>{var d=this._getBodies(e);1===d.length?this._getBodies(c)["append"===o?"append":"prepend"](d.children()):d["append"===o?"appendTo":"prependTo"](c),e.remove(),i=this._getFreeSpaceRowElements(c),Up(i,Gp),t.removeCount&&this._removeRowsElements(c,t.removeCount,o),this._restoreErrorRow(c),s.resolve()}).fail(s.reject):super._updateContent.apply(this,arguments).done(()=>{"update"===o&&this._restoreErrorRow(c),s.resolve()}).fail(s.reject),s.promise().done(()=>{this._updateBottomLoading()})}_addVirtualRow(e,t,i,r){if(r){var o=this._createEmptyRow(Va,t,r);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,i)}}_updateContentItemSizes(){var e=this._getRowHeights(),t=this._correctRowHeights(e);this._dataController.setContentItemSizes(t)}_updateViewportSize(e,t){(0,m.O9)(e)||(e=(0,F.P$)(this._hasHeight?this.element():(0,fe.zk)())),this._dataController.viewportHeight(e,t)}_getRowHeights(){var e,t,i=null===(t=null===(e=this._editingController)||void 0===e?void 0:e.isPopupEditMode)||void 0===t?void 0:t.call(e),r=this._getRowElements(this._tableElement).toArray();return i&&(r=r.filter(o=>!(0,x.A)(o).hasClass("dx-row-inserted"))),r.map(o=>(0,De.N)(o).height)}_correctRowHeights(e){for(var t=this._dataController,i=t._dataSource,r=[],o=t.getVisibleRows(),s=0,c=!0,d=-1,u=0;u<e.length;u++){var p=o[u];(0,m.O9)(p)&&(!1===this.option(re)?(d>=0&&d!==p.loadIndex&&(r.push(s),s=0),d=p.loadIndex):La(p,i)&&(c?c=!1:(r.push(s),s=0)),s+=e[u])}return s>0&&r.push(s),r}_updateContentPosition(e){if(this._dataController.viewportItemSize(this._rowHeight||20),Ke(this)||q.isVirtualRowRendering(this)){e||this._updateContentItemSizes();var i=this._dataController.getContentOffset("begin"),r=this._dataController.getContentOffset("end"),o=this.getTableElements(),s=o.children("tbody").children(".".concat(Va));Up(s,Va),o.each((c,d)=>{var u=c>0,p=this._isFixedTableRendering;this._isFixedTableRendering=u,this._addVirtualRow((0,x.A)(d),u,"top",i),this._addVirtualRow((0,x.A)(d),u,"bottom",r),this._isFixedTableRendering=p})}}_isTableLinesDisplaysCorrect(e){return e.find(".".concat("dx-column-lines")).length>0===this.option("showColumnLines")}_isColumnElementsEqual(e,t){var i=e.length===t.length;return i&&(0,w.__)(e,(r,o)=>{if(o.style.width!==t[r].style.width)return i=!1}),i}_getCellClasses(e){var t=[],{cssClass:i}=e,r="expand"===e.command;return i&&t.push(i),r&&t.push(this.addWidgetPrefix("group-space")),t}_findBottomLoadPanel(e){var t=e||this.element(),i=t&&t.find(".".concat(this.addWidgetPrefix(zp)));if(i&&i.length)return i}_updateBottomLoading(){var e=Ke(this),t=Lt(this),i=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(e||t),r=this._findContentElement(),o=this._findBottomLoadPanel(r);i?o||(0,x.A)("<div>").addClass(this.addWidgetPrefix(zp)).append(this._createComponent((0,x.A)("<div>"),Ed.A).$element()).appendTo(r):o&&o.remove()}_handleScroll(e){var t=!0===this.option(re);(this._scrollTop!==e.scrollOffset.top||e.forceUpdateScrollPosition)&&(this._hasHeight||!t&&0===e.scrollOffset.top)&&this._rowHeight&&(this._scrollTop=e.scrollOffset.top,(Ke(this)||"standard"!==this.option("scrolling.rowRenderingMode"))&&!1===this.option(re)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(e.scrollOffset.top)),super._handleScroll.apply(this,arguments)}_needUpdateRowHeight(e){return super._needUpdateRowHeight.apply(this,arguments)||e>0&&Lt(this)&&!q.isVirtualRowRendering(this)}_updateRowHeight(){if(super._updateRowHeight.apply(this,arguments),this._rowHeight){this._updateContentPosition();
1var e=(0,F.P$)(this._hasHeight?this.element():(0,fe.zk)());!1===this.option(re)?(this._updateViewportSize(e),this._dataController.updateViewport()):this._dataController.viewportSize(Math.ceil(e/this._rowHeight))}}updateFreeSpaceRowHeight(){var e=super.updateFreeSpaceRowHeight.apply(this,arguments);return e&&this._updateContentPosition(),e}setLoading(e,t){var i=this._dataController,r=i.pageIndex()>0&&i.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(re)&&e&&i.isViewportChanging()||(r&&(e=!1),super.setLoading.call(this,e,t))}throwHeightWarningIfNeed(){void 0!==this._hasHeight&&!this._hasHeight&&St(this)&&!this._heightWarningIsThrown&&(this._heightWarningIsThrown=!0,Oe.A.log("W1025"))}_resizeCore(){var e=this,t=e.element();super._resizeCore(),this.throwHeightWarningIfNeed(),e.component.$element()&&!e._windowScroll&&(0,Di.A1)(t)&&(e._windowScroll=Np(t,i=>{!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(i)},e.component.$element()),e.on("disposing",()=>{e._windowScroll.dispose()})),!1!==this.option(re)&&e.loadIfNeed()}loadIfNeed(){var e,t;null===(t=null===(e=this._dataController)||void 0===e?void 0:e.loadIfNeed)||void 0===t||t.call(e)}_restoreErrorRow(e){var t;!1===this.option(re)&&(null===(t=this._errorHandlingController)||void 0===t||t.removeErrorRow()),super._restoreErrorRow.apply(this,arguments)}}}}}),wi.extend(a=>class extends a{init(){super.init.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new Fd(this.component,this._getVirtualScrollDataOptions())}dispose(){this._virtualScrollController.dispose(),super.dispose.apply(this,arguments)}_getVirtualScrollDataOptions(){var e=this;return{pageSize:()=>e.pageSize(),totalItemsCount:()=>e.totalItemsCount(),hasKnownLastPage:()=>e.hasKnownLastPage(),pageIndex:t=>e._dataSource.pageIndex(t),isLoading:()=>e._dataSource.isLoading()&&!e.isCustomLoading(),pageCount:()=>e.pageCount(),load:()=>e._dataSource.load(),updateLoading(){Vd(e)},itemsCount:()=>e.itemsCount(!0),items:()=>e._dataSource.items(),viewportItems:t=>(t&&(e._items=t),e._items),onChanged(t){e.changed.fire(t)},changingDuration:()=>e.isLoading()?300:e._renderTime||0}}_handleLoadingChanged(e){!1!==this.option(re)?((!Ke(this)||this._isLoadingAll)&&(this._isLoading=e,super._handleLoadingChanged.apply(this,arguments)),this._startLoadTime=e?new Date:void 0):super._handleLoadingChanged.apply(this,arguments)}_handleLoadError(){!1!==this.option(re)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),super._handleLoadError.apply(this,arguments)}_handleDataChanged(e){if(!1===this.option(re))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void super._handleDataChanged.apply(this,arguments);var t=super._handleDataChanged.bind(this);this._virtualScrollController.handleDataChanged(t,e)}_customizeRemoteOperations(e,t){var i=!1===this.option(re),r=this.option("scrolling.renderAsync");(0,m.O9)(r)||(r=this._renderTime>=this.option("scrolling.renderingThreshold")),(Ke(this)||Lt(this)&&i)&&!t.reload&&(t.skip||i)&&!r&&(e.delay=void 0),super._customizeRemoteOperations.apply(this,arguments)}items(){return this._items}_dataSourceTotalCount(e){return!1===this.option(re)&&Ke(this)&&!e?this._totalCount:super._dataSourceTotalCount()}itemsCount(e){return e||!1===this.option(re)?super.itemsCount():this._virtualScrollController.itemsCount()}load(e){return!1===this.option(re)||e?super.load(e):this._virtualScrollController.load()}isLoading(){return!1===this.option(re)?this._dataSource.isLoading():this._isLoading}isLoaded(){return this._dataSource.isLoaded()&&this._isLoaded}resetPagesCache(e){e||this._virtualScrollController.reset(!0),super.resetPagesCache.apply(this,arguments)}_changeRowExpandCore(){var e=super._changeRowExpandCore.apply(this,arguments);return!1===this.option(re)||(this.resetPagesCache(),Vd(this)),e}reload(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(re)&&e){var t=new k.cY;return super.reload.apply(this,arguments).done(i=>{var r=e.getDelayDeferred();r?r.done(t.resolve).fail(t.reject):t.resolve(i)}).fail(t.reject),t}return super.reload.apply(this,arguments)}refresh(e,t){if(!1!==this.option(re)){var{storeLoadOptions:i}=e,r=this._dataSource;
1t.reload?(this._virtualScrollController.reset(),r.items().length=0,this._isLoaded=!1,Vd(this),this._isLoaded=!0,Lt(this)?(this.pageIndex(0),r.pageIndex(0),i.pageIndex=0,e.pageIndex=0,i.skip=0):(r.pageIndex(this.pageIndex()),r.paginate()&&(e.pageIndex=this.pageIndex(),i.skip=this.pageIndex()*this.pageSize()))):Lt(this)&&i.skip&&this._totalCountCorrection<0&&(i.skip+=this._totalCountCorrection)}return super.refresh.apply(this,arguments)}loadPageCount(e){if(!(0,m.O9)(e))return this._loadPageCount;this._loadPageCount=e}_handleDataLoading(e){var t=this.loadPageCount(),i=this.pageSize(),r=!1===this.option(re),{storeLoadOptions:o}=e,s=(0,m.O9)(o.take);e.loadPageCount=t,!e.isCustomLoading&&r&&s&&t>1&&i>0&&(o.take=t*i),super._handleDataLoading.apply(this,arguments)}_loadPageSize(){return super._loadPageSize.apply(this,arguments)*this.loadPageCount()}beginPageIndex(){return Xe(this,"beginPageIndex",[...arguments])}endPageIndex(){return Xe(this,"endPageIndex",[...arguments])}pageIndex(e){return Xe(this,"pageIndex",[...arguments])}virtualItemsCount(){return Xe(this,"virtualItemsCount",[...arguments])}getContentOffset(){return Xe(this,"getContentOffset",[...arguments])}getVirtualContentSize(){return Xe(this,"getVirtualContentSize",[...arguments])}setContentItemSizes(){return Xe(this,"setContentItemSizes",[...arguments])}setViewportPosition(){return Xe(this,"setViewportPosition",[...arguments])}getViewportItemIndex(){return Xe(this,"getViewportItemIndex",[...arguments])}setViewportItemIndex(e){return Xe(this,"setViewportItemIndex",[...arguments])}getItemIndexByPosition(){return Xe(this,"getItemIndexByPosition",[...arguments])}viewportSize(){return Xe(this,"viewportSize",[...arguments])}viewportItemSize(){return Xe(this,"viewportItemSize",[...arguments])}getItemSize(){return Xe(this,"getItemSize",[...arguments])}getItemSizes(){return Xe(this,"getItemSizes",[...arguments])}loadIfNeed(){return Xe(this,"loadIfNeed",[...arguments])}});var NC=P(4831),$p=(a,e)=>{var r,t=(0,x.A)((0,fe.zk)()),{top:i}=a.offset();if((0,m.kf)(e)){if(e<i)return i-e;r=(0,F.yV)(t)-e+t.scrollTop()}else{var o=i-t.scrollTop(),s=(0,F.yV)(t)-o-(0,F.P$)(a);r=Math.max(o,s)}return.9*r},GC=P(4017),HC=P(1542);const Ld=class $C extends Hs.A{_getDefaultOptions(){return(0,A.X)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:j.lQ})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,x.A)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return(0,A.X)(!0,super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this),position:{precise:!0}})}_overlayPositionedActionHandler(e){this._showDelimiter(e)}_hoverEndHandler(e){super._hoverEndHandler(e),this._toggleFocusClass(!1,e.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(e){this.option("onHoverStart")(e),super._hoverStartHandler(e),this._toggleFocusClass(!0,e.currentTarget)}_drawSubmenu(e){this._actions.onShowing({rootItem:(0,Re.c)(e),submenu:this}),super._drawSubmenu(e),this._actions.onShown({rootItem:(0,Re.c)(e),submenu:this})}_hideSubmenu(e){this._actions.onHiding({cancel:!0,rootItem:(0,Re.c)(e),submenu:this}),super._hideSubmenu(e),this._actions.onHidden({rootItem:(0,Re.c)(e),submenu:this})}_showDelimiter(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".".concat("dx-submenu")).eq(0),i=this.option("position").of.find(".dx-context-menu-container-border"),r={of:t,precise:!0},o=e.position,s=o.v.location,c=o.h.location,d=i.offset(),u=Math.round(d.left),p=Math.round(d.top),v=(0,F.RG)(i),f=(0,F.Oq)(i),O=(0,F.RG)(t),b=(0,F.Oq)(t);this.$contentDelimiter.css("display","block"),(0,F.zj)(this.$contentDelimiter,this._isMenuHorizontal()?v<O?v:O:3),(0,F.k$)(this.$contentDelimiter,this._isMenuHorizontal()?3:f<b?f:b),this._isMenuHorizontal()?s>p?Math.round(c)===u?(r.offset="0 -2.5",r.at=r.my="left top"):(r.offset="0 -2.5",r.at=r.my="right top"):((0,F.k$)(this.$contentDelimiter,5),Math.round(c)===u?(r.offset="0 5",r.at=r.my="left bottom"):(r.offset="0 5",r.at=r.my="right bottom")):c>u?Math.round(s)===p?(r.offset="-2.5 0",r.at=r.my="left top"):(r.offset="-2.5 0",r.at=r.my="left bottom"):Math.round(s)===p?(r.offset="2.5 0",r.at=r.my="right top"):(r.offset="2.5 0",r.at=r.my="right bottom"),ba.A.setup(this.$contentDelimiter,r)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}};var ei="dx-menu",WC=ei+"-vertical",Wp=ei+"-horizontal",qd=ei+"-item",Kp=ei+"-items-container",Bd=qd+"-expanded",qa="dx-context-menu",Nd=qa+"-container-border",Xp="dx-state-hover",Ba=ei+"-adaptive-mode",Yp=ei+"-hamburger-button",ZC=Ba+"-overlay-wrapper",to="showSubmenu",Ni="nextItem",Mn="prevItem",im={show:50,hide:300},Jp=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class Zp extends HC.A{_getDefaultOptions(){return(0,A.X)(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),(0,A.X)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var e=super._itemElements(),t=this._submenuItemElements();return e.add(t)}_submenuItemElements(){var e=[],t=".".concat(qd),i=this._submenus.length&&this._submenus[0];return i&&i.itemsContainer()&&(e=i.itemsContainer().find(t)),e}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(e){var s,d,t=this._getAvailableItems(),i=this._isMenuHorizontal(),r=this._getActiveItem(!0);switch(e){case"up":s=i?to:this._getItemsNavigationOperation(Mn),d=this._getKeyboardNavigationAction(s,i?r:t)();break;case"down":s=i?to:this._getItemsNavigationOperation(Ni),d=this._getKeyboardNavigationAction(s,i?r:t)();break;case"right":s=i?this._getItemsNavigationOperation(Ni):to,d=this._getKeyboardNavigationAction(s,i?t:r)();break;case"left":s=i?this._getItemsNavigationOperation(Mn):to,d=this._getKeyboardNavigationAction(s,i?t:r)();break;default:return super._moveFocus(e)}d&&0!==d.length&&this.option("focusedElement",(0,Re.c)(d))}_getItemsNavigationOperation(e){var t=e;return this.option("rtlEnabled")&&(t=e===Mn?Ni:Mn),t}_getKeyboardNavigationAction(e,t){var i=j.lQ;switch(e){case to:t.hasClass("dx-state-disabled")||(i=this._showSubmenu.bind(this,t));break;case Ni:i=this._nextItem.bind(this,t);break;case Mn:i=this._prevItem.bind(this,t)}return i}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var e=this.$element().find("ul").first().children("li").children(".".concat(qd));this._menuItemsWidth=this._getSummaryItemsSize("width",e,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var e=(0,F.Ot)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>e)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,w.__)(Jp,(e,t)=>{this._actions[t]=this._createActionByOption(t)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(ei),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new Wn.A((0,x.A)("<div>").addClass(Yp),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(e){(0,m.Qd)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),e&&this._treeView.focus(),this._toggleHamburgerActiveState(e)}_toggleHamburgerActiveState(e){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",e)}_toggleAdaptiveMode(e){var t=this.$element().find(".".concat(Wp)),i=this.$element().find(".".concat(Ba));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),i.toggle(e)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var t=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>$p(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:i=>!(0,x.A)(i.target).closest(".".concat(Yp)).length,position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}}_getTreeViewOptions(){var e={};return(0,w.__)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(t,i)=>{e[i]=this.option(i)}),(0,w.__)(["onItemContextMenu","onSelectionChanged","onItemRendered"],(t,i)=>{e[i]=r=>{this._actions[i](r)}}),(0,A.X)(e,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:t=>{this._overlay.repaint(),this._actions.onSubmenuShown(t)},onItemCollapsed:t=>{this._overlay.repaint(),this._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,x.A)("<div>
1").addClass(Ba);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,x.A)("<div>"),Ai.A,this._getTreeViewOptions()),this._overlay=this._createComponent((0,x.A)("<div>"),Ia.A,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(Ba).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(ZC),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(e){var t=this.option("showFirstSubmenuMode").delay;return(0,m.O9)(t)?(0,m.Gv)(t)?t[e]:t:im[e]}_keyboardHandler(e){return super._keyboardHandler(e,!!this._visibleSubmenu)}_renderContainer(){var e=(0,x.A)("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?Wp:WC),super._renderContainer(e)}_renderSubmenuItems(e,t){var i=this._createSubmenu(e,t);return this._submenus.push(i),this._renderBorderElement(t),i}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(e,t){var i=(0,x.A)("<div>").addClass(qa).appendTo(t),r=this._getChildNodes(e),o=this._createComponent(i,Ld,(0,A.X)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:r,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,o),o}_getSubmenuOptions(){var e=(0,x.A)("<div>"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:i=>{i.component.option("visible")&&this.option("focusedElement",i.component.option("focusedElement"))}
1,onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,Mn),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,Ni),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?Mn:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,Ni):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,m.Gv)(e)?e.name:e}_moveMainMenuFocus(e){var t=this._getAvailableItems(),i=t.length,r=t.filter(".".concat(Bd)).eq(0),o=t.index(r);this._hideSubmenu(this._visibleSubmenu),(o+=e===Mn?-1:1)>=i?o=0:o<0&&(o=i-1);var s=t.eq(o);this.option("focusedElement",(0,Re.c)(s))}_nestedItemOnSelectionChangedHandler(e){var t=e.addedItems.length&&e.addedItems[0],i=Ld.getInstance(e.element);(0,this._actions.onSelectionChanged)(e),t&&this._clearSelectionInSubmenus(t[0],i),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",t)}_clearSelectionInSubmenus(e,t){var i=!arguments.length;(0,w.__)(this._submenus,(r,o)=>{var s=o._itemContainer(),c=!s.is(t&&t._itemContainer()),d=s.find(".".concat(this._selectedItemClass()));if(c&&d.length||i){d.removeClass(this._selectedItemClass());var u=this._getItemData(d);u&&(u.selected=!1),o._clearSelectedItems()}})}_clearRootSelection(){var e=this.$element().find(".".concat(Kp)).first().children().children().filter(".".concat(this._selectedItemClass()));e.length&&(this._getItemData(e).selected=!1,e.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(e){this._actions.onItemClick(e)}_nestedItemOnItemRenderedHandler(e){this._actions.onItemRendered(e)}_attachSubmenuHandlers(e,t){var r=t.getOverlayContent().find(".".concat("dx-submenu")),o=(0,D.b4)(GC._,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,w.__)(r,(s,c)=>{n.A.off(c,o),n.A.on(c,o,null,this._submenuMouseLeaveHandler.bind(this,e))})}_submenuOnShowingHandler(e,t){var i=e.children(".".concat(Nd));this._actions.onSubmenuShowing({rootItem:(0,Re.c)(e),submenu:t}),i.show(),e.addClass(Bd)}_submenuOnShownHandler(e,t){this._actions.onSubmenuShown({rootItem:(0,Re.c)(e),submenu:t})}_submenuOnHidingHandler(e,t,i){var r=e.children(".".concat(Nd)),o=i;o.rootItem=(0,Re.c)(e),o.submenu=t,this._actions.onSubmenuHiding(o),(i=o).cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),r.hide(),e.removeClass(Bd))}_submenuOnHiddenHandler(e,t){this._actions.onSubmenuHidden({rootItem:(0,Re.c)(e),submenu:t})}_submenuMouseLeaveHandler(e,t){var i=(0,x.A)(t.relatedTarget).parents(".".concat(qa))[0],r=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&i!==r&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var e=(0,x.A)(this._visibleSubmenu.$element().context).hasClass(Xp),t=this._visibleSubmenu.getOverlayContent().find(".".concat(Xp)).length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!t&&!e&&this._visibleSubmenu.hide()}}_getSubmenuByRootElement(e){if(!e)return!1;var t=e.children(".".concat(qa));return t.length&&Ld.getInstance(t)}getSubmenuPosition(e){var t=this._isMenuHorizontal(),i=this.option("submenuDirection").toLowerCase(),r=this.option("rtlEnabled"),o={collision:"flip",of:e,precise:!0};switch(i){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=r?"right bottom":"left bottom",o.my=r?"right top":"left top"):(o.at=r?"left top":"right top",o.my=r?"right top":"left top")}return o}_renderBorderElement(e){(0,x.A)("<div>").appendTo(e).addClass(Nd).hide()}_itemPointerDownHandler(e){(0,x.A)(e.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(e)}_hoverStartHandler(e){var t=(0,D.b4)(Se.A.move,this.NAME),i=this._getItemElementByEventArgs(e),r=this._dataAdapter.getNodeByItem(this._getItemData(i)),o=(0,m.O9)(e.buttons)&&1===e.buttons||!(0,m.O9)(e.buttons)&&1===e.which;if(!this._isItemDisabled(i)){if(n.A.off(i,t),!this._hasChildren(r))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var s=this._getSubmenuByElement(i);this._clearTimeouts(),s.isOverlayVisible()||(n.A.on(i,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(e){var t=this._getItemElementByEventArgs(e),i=(0,x.A)(e.relatedTarget);super._hoverEndHandler(e),this._clearTimeouts(),!this._isItemDisabled(t)&&(i.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!i.hasClass(Kp)&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(this._clearTimeouts(),this.focus(),t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}_hideSubmenu(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(e){if(!e.pointers||!e.pointers.length){var t=(0,x.A)(e.currentTarget);(0,m.O9)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{var i=this._getSubmenuByElement(t);i&&!i.isOverlayVisible()&&this._showSubmenu(t)},this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(e,t){var i=this._getSubmenuByRootElement(e);
1if(i)return i;t=t||this._getItemData(e);var r=this._dataAdapter.getNodeByItem(t);return this._hasChildren(r)&&this._renderSubmenuItems(r,e)}_updateSubmenuVisibilityOnClick(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var i=(0,x.A)(t.itemElement),r=this._getSubmenuByElement(i,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===r)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(r&&!r.isOverlayVisible())return void this._showSubmenu(i)}}_optionChanged(e){if(Jp.indexOf(e.name)>=0)this._initActions();else switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),super._optionChanged(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),super._optionChanged(e);break;default:this._isAdaptivityEnabled()&&(e.name===e.fullName||"items"===e.name)&&this._treeView.option(e.fullName,e.value),super._optionChanged(e)}}_changeSubmenusOption(e,t){(0,w.__)(this._submenus,(i,r)=>{r.option(e,t)})}selectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}unselectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}}(0,jn.A)("dxMenu",Zp);const Qp=Zp;var zd={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},eg={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},no="filter-row",Na="filter-range-overlay",za="filter-range-start",ng="dx-menu",ig="dx-editor-with-menu",ti="dx-editor-container",Gd="dx-editor-cell",Hd="dx-highlight-outline",rg="dx-focused",jd="dx-filter-range-content",Ud="dx-filter-modified",io="input
1:not([type='hidden'])",cm=["date","datetime","number"],dm=R.A.format("dxDataGrid-ariaSearchBox");function zi(a){return"onClick"===a.option("filterRow.applyFilter")}var $d=function(a){var e=a&&a.children(),t=e&&e.data("dxComponents"),i=t&&t.length&&e.data(t[0]);return i instanceof NC.A?i:null},Wd=function(a,e){var t="",i="",r=Kd(a,e),o=q.getFormatOptionsByColumn(e,"filterRow");return Array.isArray(r)?(t=q.formatValue(r[0],o),""!==(i=q.formatValue(r[1],o))&&(t+=" - ".concat(i))):(0,m.O9)(r)&&(t=q.formatValue(r,o)),t};function Kd(a,e){if(e)return zi(a)&&void 0!==e.bufferedFilterValue?e.bufferedFilterValue:e.filterValue}var qt=function(a,e){if(e)return zi(a)&&void 0!==e.bufferedSelectedFilterOperation?e.bufferedSelectedFilterOperation:e.selectedFilterOperation},Xd=function(a,e,t){var i=a._columnsController.columnOption(e),r=Kd(a,i),o=t.closest(".".concat(a.addWidgetPrefix(Na))).length,s=t.hasClass(a.addWidgetPrefix(za));return r&&Array.isArray(r)&&"between"===qt(a,i)?s?r[0]:r[1]:!o&&function(a,e){return!(e&&cm.includes(e.dataType)&&Array.isArray(a))&&void 0!==a}(r,i)?r:null};W.registerModule("filterRow",{defaultOptions:()=>({syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:R.A.format("dxDataGrid-filterRowShowAllText"),resetOperationText:R.A.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:R.A.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:R.A.format("dxDataGrid-filterRowOperationEquals"),notEqual:R.A.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:R.A.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:R.A.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:R.A.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:R.A.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:R.A.format("dxDataGrid-filterRowOperationStartsWith"),contains:R.A.format("dxDataGrid-filterRowOperationContains"),notContains:R.A.format("dxDataGrid-filterRowOperationNotContains"),endsWith:R.A.format("dxDataGrid-filterRowOperationEndsWith"),between:R.A.format("dxDataGrid-filterRowOperationBetween"),isBlank:R.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:R.A.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:R.A.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:R.A.format("dxDataGrid-filterRowOperationBetweenEndText")}}),controllers:{applyFilter:class vm extends ge.ViewController{init(){this._columnsController=this.getController("columns")}_getHeaderPanel(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel}setHighLight(e,t){zi(this)&&(e&&e.toggleClass(Hd,t)&&e.closest(".".concat(Gd)).toggleClass(Ud,t),this._getHeaderPanel().enableApplyButton(t))}applyFilter(){var e=this._columnsController.getColumns();this._columnsController.beginUpdate();for(var t=0;t<e.length;t++){var i=e[t];void 0!==i.bufferedFilterValue&&(this._columnsController.columnOption(t,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(this._columnsController.columnOption(t,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}this._columnsController.endUpdate(),this.removeHighLights()}removeHighLights(){if(zi(this)){var e=this.getView("columnHeadersView").element();e.find(".".concat(this.addWidgetPrefix(no)," .").concat(Hd)).removeClass(Hd),e.find(".".concat(this.addWidgetPrefix(no)," .").concat(Ud)).removeClass(Ud),this._getHeaderPanel().enableApplyButton(!1)}}setCurrentColumnForFiltering(e){this._currentColumn=e}getCurrentColumnForFiltering(){return this._currentColumn}}},extenders:{controllers:{data:a=>class extends a{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getVisibleColumns(null,!0),i=this._applyFilterController;return(0,w.__)(t,function(){var r,o=(null===(r=i.getCurrentColumnForFiltering())||void 0===r?void 0:r.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,m.O9)(this.filterValue)&&!o){var s=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(s)}}),q.combineFilters(e)}},columnsResizer:a=>class extends a{_startResizing(){if(super._startResizing.apply(this,arguments),this.isResizing()){var e=this._columnHeadersView.getFilterRangeOverlayInstance();if(e){var t=e.$element().closest("td").index();(t===this._targetPoint.columnIndex||t===this._targetPoint.columnIndex+1)&&e.$content().hide()}}}_endResizing(){var e;if(this.isResizing()){var t=this._columnHeadersView.getFilterRangeOverlayInstance();t&&(e=t.$element().closest("td"),this._columnHeadersView._updateFilterRangeOverlay({width:(0,F.Ot)(e,!0)+1}),t.$content().show())}super._endResizing.apply(this,arguments)}},editing:a=>class extends a{updateFieldValue(e){return e.column.lookup&&(this._needUpdateLookupDataSource=!0),super.updateFieldValue.apply(this,arguments)}_afterSaveEditData(e){var t;return this._needUpdateLookupDataSource&&!e&&(null===(t=this.getView("columnHeadersView"))||void 0===t||t.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,super._afterSaveEditData.apply(this,arguments)}_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,super._afterCancelEditData.apply(this,arguments)}}},views:{columnHeadersView:a=>class extends a{init(){super.init(),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;case"syncLookupFilterValues":e.value?this.updateLookupDataSource():this.render(),e.handled=!0;break;default:super.optionChanged(e)}}_updateEditorValue(e,t){var i=$d(t);i&&i.option("value",Xd(this,e.index,t))}_columnOptionChanged(e){var t,r,o,s,c,{optionNames:i}=e;if(q.checkChanges(i,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==e.columnIndex){var d=this._columnsController.getVisibleIndex(e.columnIndex),u=this._columnsController.columnOption(e.columnIndex);
1if(o=(r=null!==(t=this._getCellElement(this.element().find(".".concat(this.addWidgetPrefix(no))).index(),d))&&void 0!==t?t:(0,x.A)()).find(".".concat(ti)).first(),i.filterValue||i.bufferedFilterValue){this._updateEditorValue(u,o);var p=r.find(".".concat(this.addWidgetPrefix(Na))).data("dxOverlay");p&&(s=p.$content().find(".".concat(ti)),this._updateEditorValue(u,s.first()),this._updateEditorValue(u,s.last())),(!p||!p.option("visible"))&&this._updateFilterRangeContent(r,Wd(this,u))}(i.selectedFilterOperation||i.bufferedSelectedFilterOperation)&&d>=0&&u&&(c=r.find(".".concat(ng))).length&&(this._updateFilterOperationChooser(c,u,o),"between"===qt(this,u)?this._renderFilterRangeContent(r,u):o.find(".".concat(jd)).length&&(this._renderEditor(o,this._getEditorOptions(o,u)),this._hideFilterRange()))}else super._columnOptionChanged(e)}_renderCore(){return this._filterRangeOverlayInstance=null,super._renderCore.apply(this,arguments)}_resizeCore(){var e;super._resizeCore.apply(this,arguments),null===(e=this._filterRangeOverlayInstance)||void 0===e||e.repaint()}isFilterRowVisible(){return this._isElementVisible(this.option("filterRow"))}isVisible(){return super.isVisible()||this.isFilterRowVisible()}_initFilterRangeOverlay(e,t){var i=this,r={},o=e.find(".dx-editor-container"),s=i.addWidgetPrefix(Na),c=(0,x.A)("<div>").addClass(s).appendTo(e);return i._createComponent(c,Ia.A,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:s},animation:!1,position:{my:"top",at:"top",of:o.length&&o||e,offset:"0 -1"},contentTemplate(d){var u,p=(0,x.A)("<div>").addClass("".concat(ti," ").concat(i.addWidgetPrefix(za))).appendTo(d);return t=i._columnsController.columnOption(t.index),(u=i._getEditorOptions(p,t)).sharedData=r,i._renderEditor(p,u),n.A.on(p.find(io),"keydown",v=>{var f=e.find("[tabindex]").not(v.target).first();"tab"===(0,D.YD)(v)&&v.shiftKey&&(v.preventDefault(),i._hideFilterRange(),f.length||(f=e.prev().find("[tabindex]").last()),n.A.trigger(f,"focus"))}),p=(0,x.A)("<div>").addClass("".concat(ti," ").concat(i.addWidgetPrefix("filter-range-end"))).appendTo(d),(u=i._getEditorOptions(p,t)).sharedData=r,i._renderEditor(p,u),n.A.on(p.find(io),"keydown",v=>{"tab"===(0,D.YD)(v)&&!v.shiftKey&&(v.preventDefault(),i._hideFilterRange(),n.A.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,x.A)(d).addClass(i.getWidgetContainerClass())},onShown(d){var u=d.component.$content().find(".".concat(ti)).first();n.A.trigger(u.find(io),"focus")},onHidden(){t=i._columnsController.columnOption(t.index),e.find(".".concat(ng)).parent().addClass(ig),"between"===qt(i,t)&&(i._updateFilterRangeContent(e,Wd(i,t)),i.component.updateDimensions())}})}_updateFilterRangeOverlay(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)}_showFilterRange(e,t){var i=e.children(".".concat(this.addWidgetPrefix(Na))),r=i.length&&i.data("dxOverlay");!r&&t&&(r=this._initFilterRangeOverlay(e,t)),r.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=r,this._updateFilterRangeOverlay({width:(0,F.Ot)(e,!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())}_hideFilterRange(){var e=this._filterRangeOverlayInstance;e&&e.hide()}getFilterRangeOverlayInstance(){return this._filterRangeOverlayInstance}_createRow(e){var t=super._createRow(e);return"filter"===e.rowType&&(t.addClass(this.addWidgetPrefix(no)),this.option("useLegacyKeyboardNavigation")||n.A.on(t,"keydown",i=>En("filterRow",this,i))),t}_getRows(){var e=super._getRows();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e}_renderFilterCell(e,t){var{column:i}=t,r=(0,x.A)(e);this.component.option("showColumnHeaders")&&this.setAria("describedby",i.headerId,r),this.setAria("label",R.A.format("dxDataGrid-ariaFilterCell"),r),r.addClass(Gd);var o=(0,x.A)("<div>").appendTo(r),s=(0,x.A)("<div>").addClass(ti).appendTo(o);if("between"===qt(this,i))this._renderFilterRangeContent(r,i);else{var c=this._getEditorOptions(s,i);this._renderEditor(s,c)}var{alignment:d}=i;d&&"center"!==d&&r.find(io).first().css("textAlign",i.alignment),i.filterOperations&&i.filterOperations.length&&this._renderFilterOperationCh
1ooser(o,i,s)}_renderCellContent(e,t){var i=this,{column:r}=t;if("filter"===t.rowType)if(r.command)e.html("&nbsp;");else if(r.allowFiltering)return void i.renderTemplate(e,i._renderFilterCell.bind(i),t).done(()=>{i._updateCell(e,t)});super._renderCellContent.apply(this,arguments)}_getEditorOptions(e,t){var i=this,r={editorOptions:{inputAttr:i._getFilterInputAccessibilityAttributes(t)}},o=(0,A.X)(r,t,{value:Xd(i,t.index,e),parentType:"filterRow",showAllText:i.option("filterRow.showAllText"),updateValueTimeout:"onClick"===i.option("filterRow.applyFilter")?0:700,width:null,setValue(s,c){!function(a,e){var t=""===e.value?null:e.value,i=e.container,r=a._columnsController.columnOption(e.column.index),o=Xd(a,r.index,i);if((0,m.O9)(o)||(0,m.O9)(t)){a._applyFilterViewController.setHighLight(i,o!==t);var s=zi(a)?"bufferedFilterValue":"filterValue",c=function(a,e,t,i){if("between"===qt(a,t)){var r=Kd(a,t);return i.hasClass(a.addWidgetPrefix(za))?[e,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,e]}return e}(a,t,r,i),d="between"===qt(a,r),u=e.notFireEvent||d&&Array.isArray(c)&&c.includes(void 0);a._columnsController.columnOption(r.index,s,c,u)}}(i,{column:t,value:s,container:e,notFireEvent:c})}});return"between"===qt(i,t)&&(o.placeholder=e.hasClass(i.addWidgetPrefix(za))?i.option("filterRow.betweenStartText"):i.option("filterRow.betweenEndText")),o}_getFilterInputAccessibilityAttributes(e){var t=R.A.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}}_renderEditor(e,t){e.empty();var i=(0,x.A)("<div>").appendTo(e),r=this._dataController.dataSource();if(t.lookup&&this.option("syncLookupFilterValues")){this._applyFilterViewController.setCurrentColumnForFiltering(t);var o=this._dataController.getCombinedFilter();this._applyFilterViewController.setCurrentColumnForFiltering(null);var s=q.getWrappedLookupDataSource(t,r,o),c=(0,U.A)((0,U.A)({},t),{lookup:(0,U.A)((0,U.A)({},t.lookup),{dataSource:s})});return this._editorFactoryController.createEditor(i,c)}return this._editorFactoryController.createEditor(i,t)}_renderFilterRangeContent(e,t){var i=this,r=e.find(".".concat(ti)).first();r.empty();var o=(0,x.A)("<div>").addClass(jd).attr("tabindex",this.option("tabIndex"));n.A.on(o,"focusin",()=>{i._showFilterRange(e,t)}),o.appendTo(r),i._updateFilterRangeContent(e,Wd(i,t))}_updateFilterRangeContent(e,t){var i=e.find(".".concat(jd));i.length&&(""===t?i.html("&nbsp;"):i.text(t))}_updateFilterOperationChooser(e,t,i){var o,r=this,s=function(){var d=Qp.getInstance(e);d&&d.option("focusedElement",null),o&&r._focusEditor(i)},c=this._editorFactoryController;r._createComponent(e,Qp,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:"".concat(r.getWidgetContainerClass()," ").concat("dx-cell-focus-disabled"," ").concat("dx-filter-menu"),showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(t.filterOperations&&t.filterOperations.length),icon:zd[qt(r,t)||"default"],selectable:!1,items:r._getFilterOperationMenuItems(t)}],onItemRendered:d=>{var{itemElement:u}=d;this.setAria("label",dm,(0,x.A)(u))},onItemClick(d){var u=d.itemData.name,p=qt(r,t),v=!1,f=zi(r),O={};if(!(d.itemData.items||u&&u===p)){if(u?(O[f?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=u,("between"===u||"between"===p)&&(v="between"===u,O[f?"bufferedFilterValue":"filterValue"]=null)):(O[f?"bufferedFilterValue":"filterValue"]=null,O[f?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=t.defaultSelectedFilterOperation||null),r._columnsController.columnOption(t.index,O),r._applyFilterViewController.setHighLight(i,!0),!u){var b=$d(i);b&&"dxDateBox"===b.NAME&&!b.option("isValid")&&(b.clear(),b.option("isValid",!0))}
1v?r._showFilterRange(i.closest(".".concat(Gd)),t):r._focusEditor(i)}},onSubmenuShowing(){o=r._isEditorFocused(i),c.loseFocus()},onSubmenuHiding(){n.A.trigger(e,"blur"),s()},onContentReady(d){n.A.on(e,"blur",()=>{d.component._hideSubmenuAfterTimeout(),s()})},rtlEnabled:r.option("rtlEnabled")})}_isEditorFocused(e){return e.hasClass(rg)||e.parents(".".concat(rg)).length}_focusEditor(e){this._editorFactoryController.focus(e),n.A.trigger(e.find(io),"focus")}_renderFilterOperationChooser(e,t,i){var r;this.option("filterRow.showOperationChooser")&&(e.addClass(ig),r=(0,x.A)("<div>").prependTo(e),this._updateFilterOperationChooser(r,t,i))}_getFilterOperationMenuItems(e){var t=this,i=[{}],r=t.option("filterRow"),o=r&&r.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var s=e.filterOperations.filter(c=>(0,m.O9)(eg[c]));(i=(0,w.Tj)(s,c=>{var d=eg[c];return{name:c,selected:(qt(t,e)||e.defaultFilterOperation)===c,text:o[d],icon:zd[c]}})).push({name:null,text:r&&r.resetOperationText,icon:zd.default})}return i}_handleDataChanged(e){var t,i,r,o,s,c,d=null===(i=null===(t=this._dataController)||void 0===t?void 0:t.dataSource)||void 0===i?void 0:i.call(t),u=null===(r=d?.lastLoadOptions)||void 0===r?void 0:r.call(d);super._handleDataChanged.apply(this,arguments),(null!==(o=e.operationTypes)&&void 0!==o&&o.filtering||null!==(s=e.operationTypes)&&void 0!==s&&s.fullReload)&&this.updateLookupDataSource((null===(c=e.operationTypes)||void 0===c?void 0:c.filtering)||u?.filter)}updateLookupDataSource(e){if(this.option("syncLookupFilterValues")&&this.element()){var t=this._columnsController.getVisibleColumns(),i=this._dataController.dataSource(),r=this._applyFilterViewController,o=this.element().find(".".concat(this.addWidgetPrefix(no))).index();-1!==o&&t.forEach((s,c)=>{if(s.lookup&&s.calculateCellValue===s.defaultCalculateCellValue){var d=this._getCellElement(o,c),u=$d(d?.find(".dx-editor-container"));if(u){r.setCurrentColumnForFiltering(s);var p=this._dataController.getCombinedFilter()||null;r.setCurrentColumnForFiltering(null);var v=u.option("dataSource");if(!e||!(0,j.RL)(v.__dataGridSourceFilter||null,p)){var O=q.getWrappedLookupDataSource(s,i,p);u.option("dataSource",O)}}}})}}},headerPanel:a=>class extends a{init(){super.init(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_getToolbarItems(){var e=super._getToolbarItems();return this._prepareFilterItem().concat(e)}_prepareFilterItem(){var e=this,t=[];if(e._isShowApplyFilterButton()){var i=e.option("filterRow.applyFilterText"),o=!e._columnsController.getColumns().filter(c=>void 0!==c.bufferedFilterValue).length;t.push({widget:"dxButton",options:{icon:"apply-filter",disabled:o,onClick:function(){e._applyFilterViewController.applyFilter()},hint:i,text:i,onInitialized:function(c){(0,x.A)(c.element).addClass(e._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10})}return t}_isShowApplyFilterButton(){var e=this.option("filterRow");return!!e?.visible&&"onClick"===e.applyFilter}enableApplyButton(e){this.setToolbarItemDisabled("applyFilterButton",!e)}isVisible(){return super.isVisible()||this._isShowApplyFilterButton()}}}}}),P(9067),P(9700);var Yd=P(6536),og="dx-header-filter",sg="dx-header-filter-menu";function ag(a){a=a||[];for(var e=0;e<a.length;e++)a[e].selected=!1,ag(a[e].items)}function lg(a){var e="dxTreeView"===a.NAME?".dx-treeview-select-all-item":".dx-list-select-all-checkbox";return a.$element().find(e).dxCheckBox("instance")}function cg(a,e){if(!a.component.option("searchValue")){var t=lg(a.component);t&&e&&e.length&&t.option("value",void 0)}}function Pm(a,e,t){if(e^t){if(a.selected=!0,t&&a.items)for(var i=0;i<a.items.length;i++)if(!a.items[i].selected){a.selected=void 0;break}}else(t||a.selected)&&(a.selected=!1,ag(a.items))}var Ga=function(a){return(0,m.O9)(a.allowHeaderFiltering)?a.allowHeaderFiltering:a.allowFiltering},dg=a=>class extends a{optionChanged(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else super.optionChanged(e)}_applyColumnState(e){var t,{rootElement:i}=e,{column:r}=e;if("headerFilter"===e.name){if(i.find(".".concat(og)).remove(),Ga(r)){t=super._applyColumnState(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(r)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0);var o=R.A.format("dxDataGrid-headerFilterIndicatorLabel",r.caption);t.attr("aria-label",o),t.attr("aria-haspopup","dialog"),t.attr("role","button")}return t}return super._applyColumnState(e)}_isHeaderFilterEmpty(e){return!e.filterValues||!e.filterValues.length}_getIndicatorClassName(e){return"headerFilter"===e?og:super._getIndicatorClassName(e)}_renderIndicator(e){var t=e.container,i=e.indicator;if("headerFilter"===e.name){var r=this.option("rtlEnabled");if(t.children().length&&(!r&&"right"===e.columnAlignment||r&&"left"===e.columnAlignment))return void t.prepend(i)}super._renderIndicator(e)}},Mm={month:a=>dt.A.getMonthNames()[a-1],quarter:a=>dt.A.format(new Date(2e3,3*a-1),"quarter")};function ug(a,e,t){return e=e||[],t=t||[],a.forEach(i=>
1{if((0,m.O9)(i.key)){if(e.push(1===e.length?i.key-1:i.key),i.items)ug(i.items,e,t);else{var o=new Date(Date.UTC.apply(Date,e));t.push(o)}e.pop()}else t.push(null)}),t}function wm(a,e){var t=ug(a),i=(0,h.A)(t),r=q.getHeaderFilterGroupParameters((0,U.A)((0,U.A)({},e),{calculateCellValue:o=>o}));return _.A.queryByOptions(i,{group:r}).toArray()}W.registerModule("headerFilter",{defaultOptions:()=>({syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSelectAll:!0,search:{enabled:!1,timeout:500,mode:"contains",editorOptions:{}},texts:{emptyValue:R.A.format("dxDataGrid-headerFilterEmptyValue"),ok:R.A.format("dxDataGrid-headerFilterOK"),cancel:R.A.format("dxDataGrid-headerFilterCancel")}}}),controllers:{headerFilter:class Em extends ge.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")}_updateSelectedState(e,t){for(var i=e.length,r="exclude"===t.filterType;i--;){var o=e[i];"items"in e[i]&&this._updateSelectedState(e[i].items,t),Pm(o,q.getIndexByKey(e[i].value,t.filterValues,null)>-1,r)}}_normalizeGroupItem(e,t,i){var r,o,{path:s}=i,{valueSelector:c}=i,{displaySelector:d}=i,{column:u}=i;return c&&d?(r=c(e),o=d(e)):o=r=e.key,e=(0,m.Gv)(e)?(0,A.X)({},e):{},s.push(r),e.value=1===s.length?s[0]:s.join("/"),e.text=this.getHeaderItemText(o,u,t,i.headerFilterOptions),e}getHeaderItemText(e,t,i,r){var o=q.formatValue(e,function(a,e,t){var i=At.getGroupInterval(e),r=q.getFormatOptionsByColumn(e,"headerFilter");return i&&(r.groupInterval=i[t],q.isDateType(e.dataType)?r.format=Mm[i[t]]:"number"===e.dataType&&(r.getDisplayFormat=function(){var o={format:e.format,target:"headerFilter"},s=q.formatValue(a,o),d=q.formatValue(a+i[t],o);return s&&d?"".concat(s," - ").concat(d):""})),r}(e,t,i));return o||(o=r.texts.emptyValue),o}_processGroupItems(e,t,i,r){var o,s,{column:c}=r,{lookup:d}=c,{level:u}=r;i=i||[],t=t||0,d&&(o=(0,me.Hz)(d.displayExpr),s=(0,me.Hz)(d.valueExpr));for(var p=0;p<e.length;p++)e[p]=this._normalizeGroupItem(e[p],t,{column:r.column,headerFilterOptions:r.headerFilterOptions,displaySelector:o,valueSelector:s,path:i}),"items"in e[p]&&(t!==u&&(0,m.O9)(e[p].value)?this._processGroupItems(e[p].items,t+1,i,r):delete e[p].items),i.pop()}getDataSource(e){var t,i=this._dataController.dataSource(),r=i?.remoteOperations().grouping,o=q.getHeaderFilterGroupParameters(e,r),s=null===(t=e.headerFilter)||void 0===t?void 0:t.dataSource,c=this.option("headerFilter"),d=!1,u={component:this.component};if(i){if((0,m.O9)(s)&&!(0,m.Tn)(s))u.dataSource=(0,cn.ho)(s);else if(e.lookup)if(d=!0,this.option("syncLookupFilterValues")){this._currentColumn=e;var p=this._dataController.getCombinedFilter();this._currentColumn=null,u.dataSource=q.getWrappedLookupDataSource(e,i,p)}else u.dataSource=q.normalizeLookupDataSource(e.lookup);else{var v=Array.isArray(o)?o.length-1:0;this._currentColumn=e;var f=this._dataController.getCombinedFilter();this._currentColumn=null,u.dataSource={filter:f,group:o,useDefaultSearch:!0,load:S=>{var E=new k.cY;return S.dataField=e.dataField||e.name,i.load(S).done(L=>{r&&function Sm(a){return"Z"===a?.slice(-1)||"'Z'"===a?.slice(-3)}(e.serializationFormat)&&v>3&&(L=wm(L,e)),b._processGroupItems(L,null,null,{level:v,column:e,headerFilterOptions:c}),E.resolve(L)}).fail(E.reject),E}}}(0,m.Tn)(s)&&s.call(e,u);var O=u.dataSource.postProcess,b=this;return u.dataSource.postProcess=function(S){var E=S;return d&&(E=E.filter(L=>null!==L[e.lookup.valueExpr]),0===this.pageIndex()&&!this.searchValue()&&(E=E.slice(0)).unshift(null),b._processGroupItems(E,null,null,{level:0,column:e,headerFilterOptions:c})),E=O&&O.call(this,E)||E,b._updateSelectedState(E,e),E},u.dataSource}}getCurrentColumn(){return this._currentColumn}showHeaderFilterMenu(e,t){var i=this._columnsController,r=(0,A.X)(!0,{},this._columnsController.getColumns()[e]);if(r){var o=i.getVisibleIndex(e),c=this.getView(t?"headerPanel":"columnHeadersView").getColumnElements().eq(t?r.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:c,column:r,applyFilter:!0,apply(){i.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}}showHeaderFilterMenuBase(e){var{column:t}=e;if(t){var i=At.getGroupInterval(t),r=this._dataController.dataSource(),o=r&&r.remoteOperations().filtering,
1s=e.onHidden;(0,A.X)(e,t,{type:i&&i.length>1?"tree":"list",remoteFiltering:o,onShowing:c=>{var d=c.component.$overlayContent().dxResizable("instance");d&&d.option("onResizeEnd",u=>{var p=this._columnsController.columnOption(e.dataField,"headerFilter");(p=p||{}).width=u.width,p.height=u.height,this._columnsController.columnOption(e.dataField,"headerFilter",p,!0)})},onHidden:()=>{s?.(),Et(this)}}),e.dataSource=this.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),this._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}}hideHeaderFilterMenu(){this._headerFilterView.hideHeaderFilterMenu()}}},views:{headerFilterView:class bm extends ge.View{getPopupContainer(){return this._popupContainer}getListComponent(){return this._listComponent}applyHeaderFilter(e){var t=this.getListComponent(),i=t.option("searchValue"),r=lg(t),s=[];i||e.isFilterBuilder||!r?.option("value")?"tree"===e.type&&(e.filterType&&(e.filterType="include"),function c(d,u,p){(0,w.__)(u,(v,f)=>{if(void 0!==f.selected&&!!f.selected^p){var O=t._getNode(f),S=t._hasChildren(O)&&f.items&&f.items.some(E=>E.selected);if(!i||!S)return void d.push(f.value)}f.items&&f.items.length&&c(d,f.items,p)})}(s,t.option("items"),!1),e.filterValues=s):("tree"===e.type&&(e.filterType="exclude"),Array.isArray(e.filterValues)&&(e.filterValues=[])),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()}showHeaderFilterMenu(e,t){if(t){this._initializePopupContainer(t);var i=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(e,t),i.show()}}hideHeaderFilterMenu(){var e=this.getPopupContainer();e&&e.hide()}updatePopup(e,t){var i=this.option("showColumnLines"),r="right"===t.alignment^!i?"left":"right";this._popupContainer.setAria({role:"dialog",label:R.A.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:"".concat(r," top"),at:"".concat(r," bottom"),of:e,collision:"fit fit"}))}_getSearchExpr(e,t){var{lookup:i}=e,{useDefaultSearchExpr:r}=e,o=t.dataSource,s=t.search.searchExpr;if(s)return s;if(r||(0,m.O9)(o)&&!(0,m.Tn)(o))return"text";if(i)return i.displayExpr||"this";if(e.dataSource){var{group:c}=e.dataSource;if(Array.isArray(c)&&c.length>0)return c[0].selector;if((0,m.Tn)(c)&&!e.remoteFiltering)return c}return e.dataField||e.selector}_cleanPopupContent(){this._popupContainer&&this._popupContainer.$content().empty()}_initializePopupContainer(e){var t=this,i=t.element(),r=this._normalizeHeaderFilterOptions(e),{height:o,width:s}=r,c={width:s,height:o,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:sg},focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:r.texts.ok,onClick(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:r.texts.cancel,onClick(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing(d){d.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e,r),e.onShowing&&e.onShowing(d)},onShown(){t.getListComponent().focus()},onHidden:e.onHidden,onInitialized(d){var{component:u}=d;u.option("animation",u._getDefaultOptions().animation)}};(0,m.O9)(t._popupContainer)?t._popupContainer.option(c):t._popupContainer=t._createComponent(i,xn.A,c)}_initializeListContainer(e,t){var i=this,r=i._popupContainer.$content(),o=!e.isFilterBuilder&&t.allowSelectAll,s={searchEnabled:t.search.enabled,searchTimeout:t.search.timeout,searchEditorOptions:t.search.editorOptions,searchMode:t.search.mode||"",dataSource:e.dataSource,onContentReady(){i.renderCompleted.fire()},itemTemplate(d,u,p){var v=(0,x.A)(p);return e.encodeHtml?v.text(d.text):v.html(d.text)}};function c(d){"searchValue"===d.fullName&&o&&!1!==i.option("headerFilter.hideSelectAllOnSearch")&&("tree"===e.type?d.component.option("showCheckBoxesMode",d.value?"normal":"selectAll"):d.component.option("selectionMode",d.value?"multiple":"all"))}i._listComponent="tree"===e.type?i._createComponent((0,x.A)("<div>
1").appendTo(r),Ai.A,(0,A.X)(s,{showCheckBoxesMode:o?"selectAll":"normal",onOptionChanged:c,keyExpr:"id"})):i._createComponent((0,x.A)("<div>").appendTo(r),Yd.A,(0,A.X)(s,{searchExpr:i._getSearchExpr(e,t),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:o?"all":"multiple",onOptionChanged:c,onSelectionChanged(d){var u=d.component.option("items"),p=d.component.option("selectedItems");if(!d.component._selectedItemsUpdating&&!d.component.option("searchValue")&&!e.isFilterBuilder){var v=e.filterValues||[];0===p.length&&u.length&&(v.length<=1||"exclude"===e.filterType&&v.length===u.length-1)?(e.filterType="include",e.filterValues=[]):p.length===u.length&&(e.filterType="exclude",e.filterValues=[])}(0,w.__)(u,(O,b)=>{var S=q.getIndexByKey(b,p,null)>=0;if(!!b.selected!==S){b.selected=S,e.filterValues=e.filterValues||[];var L=q.getIndexByKey(b.value,e.filterValues,null);L>=0&&e.filterValues.splice(L,1),S^"exclude"===e.filterType&&e.filterValues.push(b.value)}}),cg(d,e.filterValues)},onContentReady(d){var{component:u}=d,p=u.option("items"),v=[];(0,w.__)(p,function(){this.selected&&v.push(this)}),u._selectedItemsUpdating=!0,u.option("selectedItems",v),u._selectedItemsUpdating=!1,cg(d,e.filterValues)}}))}_normalizeHeaderFilterOptions(e){var t=this.option("headerFilter")||{},i=e.headerFilter||{};return(0,A.X)(!0,{},t,{search:{enabled:t.allowSearch,timeout:t.searchTimeout}},i,{search:{enabled:i.allowSearch,mode:i.searchMode,timeout:i.searchTimeout}})}_renderCore(){this.element().addClass(sg)}}},extenders:{controllers:{data:a=>class extends a{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getVisibleColumns(null,!0),r=this._headerFilterController.getCurrentColumn();return(0,w.__)(t,(o,s)=>{var c;if((!r||r.index!==s.index)&&Ga(s)&&s.calculateFilterExpression&&Array.isArray(s.filterValues)&&s.filterValues.length){var d=[];(0,w.__)(s.filterValues,(u,p)=>{Array.isArray(p)?c=p:(s.deserializeValue&&!q.isDateType(s.dataType)&&"number"!==s.dataType&&(p=s.deserializeValue(p)),c=s.createFilterExpression(p,"=","headerFilter")),c&&(c.columnIndex=s.index),d.push(c)}),d=q.combineFilters(d,"or"),e.push("exclude"===s.filterType?["!",d]:d)}}),q.combineFilters(e)}}},views:{columnHeadersView:a=>class extends(dg(a)){_renderCellContent(e,t){var i,{column:r}=t;!r.command&&Ga(r)&&this.option("headerFilter.visible")&&"header"===t.rowType&&(i=this._applyColumnState({name:"headerFilter",rootElement:e,column:r,showColumnLines:this.option("showColumnLines")}))&&this._subscribeToIndicatorEvent(i,r,"headerFilter"),super._renderCellContent.apply(this,arguments)}_subscribeToIndicatorEvent(e,t,i){"headerFilter"===i&&n.A.on(e,ke.U,this.createAction(r=>{r.event.stopPropagation(),Y(e,this),this._headerFilterController.showHeaderFilterMenu(t.index,!1)}))}_updateIndicator(e,t,i){var r=super._updateIndicator(e,t,i);r&&this._subscribeToIndicatorEvent(r,t,i)}_updateHeaderFilterIndicators(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")}_needUpdateFilterIndicators(){return!0}_columnOptionChanged(e){var{optionNames:t}=e,i=q.checkChanges(t,["filterValues","filterValue"]),r=q.checkChanges(t,["filterValues","filterType"]);(i||r)&&this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators(),r||super._columnOptionChanged(e)}},headerPanel:a=>class extends(dg(a)){_createGroupPanelItem(e,t){var r,i=super._createGroupPanelItem.apply(this,arguments);return!t.command&&Ga(t)&&this.option("headerFilter.visible")&&(r=this._applyColumnState({name:"headerFilter",rootElement:i,column:{alignment:(0,De.n)(this.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0,caption:t.caption},showColumnLines:!0}))&&n.A.on(r,ke.U,this.createAction(o=>{var{event:s}=o;s.stopPropagation(),this._headerFilterController.showHeaderFilterMenu(t.index,!0)})),i}}}}});var Ha="dx-filterbuilder-range",km="".concat(Ha,"-start"),Fm="".concat(Ha,"-end"),Dm="".concat(Ha,"-separator"),pg="\u2013";function Vm(a,e){var t=(0,x.A)("<div>").addClass(km),i=(0,x.A)("<div>").addClass(Fm),r=a.value||[],o=function(c){return c&&c.length>0?c[0]:null},s=function(c){return c&&2===c.length?c[1]:null};e.append(t),e.append((0,x.A)("<span>").addClass(Dm).text(pg)),e.append(i),e.addClass(Ha),this._editorFactory.createEditor.call(this,t,(0,A.X)({},a.field,a,{value:o(r),parentType:"filterBuilder",setValue(c){r=[c,s(r)],a.setValue(r)}})),this._editorFactory.createEditor.call(this,i,(0,A.X)({},a.field,a,{value:s(r),parentType:"filterBuilder",setValue(c){r=[o(r),c],a.setValue(r)}}))}function gg(a,e){return{name:"between",caption:a,icon:"range",valueSeparator:pg,dataTypes:["number","date","datetime"],editorTemplate:Vm.bind(e),notForLookup:!0}
1}var Lm={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},qm={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};const hg_getIconByFilterOperation=a=>Lm[a],hg_getNameByFilterOperation=a=>qm[a];var Jd="string",_g="icon-none",wn="and",Zd="=",Nm={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},zm={date:"shortDate",datetime:"shortDateShortTime"},Gm=["=","<>","isblank","isnotblank"],Hm=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],vg="".concat("dx-filterbuilder","-text"),Um="".concat(vg,"-part"),Cg="".concat(vg,"-separator"),$m="".concat(Cg,"-empty");function ni(a){return a&&a.length>1&&"!"===a[0]&&!Le(a)}function tn(a){return ni(a)?a[1]:a}function mg(a){if(Le(a))return wn;for(var e="",t=0;t<a.length;t++){var i=a[t];if(!Array.isArray(i)){if(e&&e!==i)throw new Xn.sO.Error("E4019");"!"!==i&&(e=i)}}return e}function ii(a){var e=tn(a),t=mg(e);return t||(t=wn),e!==a&&(t="!".concat(t)),t}function fg(a){var e=function Qm(a){return Array.isArray(a)&&a.length}(a.filterOperations)?a.filterOperations:function Zm(a){return a.lookup&&Gm||Nm[a.dataType||Jd]}(a);return(0,A.X)([],e)}function Qd(a,e){var t=hg_getNameByFilterOperation(a);return e&&e[t]?e[t]:t}function nn(a,e){var t=a.filter(i=>i.name===e);return t.length?t[0]:null}function eu(a){return a.defaultFilterOperation||fg(a)[0]}function tu(a,e){var t=tn(a),i=t.indexOf(e);return t.splice(i,1),1!==t.length&&t.splice(i,1),a}function Og(a){var e=nu(a),t=e?iu(a):a;return e?["!",[t]]:[t]}function ja(a,e){var t=tn(e),i=ii(t);return 1===t.length?t.unshift(a):t.push(a,i),e}function Ua(a,e){for(var t=0;t<e.length;t++)if(e[t].name===a||e[t].dataField.toLowerCase()===a.toLowerCase())return e[t];var i=Rg(e,!0).filter(r=>r.dataField.toLowerCase()===a.toLowerCase());if(i.length>0)return i[0];throw new Oe.A.Error("E1047",a)}function Sn(a){return!!Array.isArray(a)&&(a.length<2||Array.isArray(a[0])||Array.isArray(a[1]))}function Le(a){return!!Array.isArray(a)&&a.length>1&&!Array.isArray(a[0])&&!Array.isArray(a[1])}function xg(a,e,t){t=t||wn;for(var i=mg(a).toLowerCase()||t,r=[],o=0;o<a.length;o++)Sn(a[o])?(r.push(su(a[o],e,t)),r=ou(r,i)):Le(a[o])&&(r.push($a(a[o],e)),r=ou(r,i));return 0===r.length&&(r=ou(r,i)),r}function $a(a,e){return function rf(a,e){var t=nn(e,a[1]);return t&&t.name===a[1]}(a,e)||a.length<3&&(a[2]=a[1],a[1]=Zd),a}function nu(a){return-1!==a.indexOf("not")}function iu(a){return a.substring(3).toLowerCase()}function ru(a,e){var t=nu(e);return e=t?iu(e):e,t?["!",a,e]:[a,e]}function ou(a,e){var t=nu(e);e=t?iu(e):e,a.push(e);var i=a;return t&&(i=["!",i]),i}function su(a,e,t){return t=t||wn,a?Le(a=(0,A.X)(!0,[],a))?ru($a(a,e),t):ni(a)?["!",Le(a[1])?ru($a(a[1],e),t):ni(a[1])?ru(su(a[1],e),t):xg(a[1],e,t)]:xg(a,e,t):Og(t)}function Pg(a,e,t,i){var r=Ua(a[0],e),o=$a(a,t),s=t.length&&nn(t,o[1]);return s&&s.calculateFilterExpression?s.calculateFilterExpression.apply(s,[o[2],r,e]):r.createFilterExpression?r.createFilterExpression.apply(r,[o[2],o[1],i]):r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[o[2],o[1],i]):r.defaultCalculateFilterExpression.apply(r,[o[2],o[1],i])}function Gi(a,e,t,i){if(!(0,m.O9)(a))return null;if(ni(a))return["!",Gi(a[1],e,t,i)];var o=tn(a);if(Le(o))return Pg(o,e,t,i)||null;for(var c,s=[],d=ii(o),u=0;u<o.length;u++)Sn(o[u])?(c=Gi(o[u],e,t,i))&&(u&&s.push(d),s.push(c)):Le(o[u])&&(c=Pg(o[u],e,t,i))&&(s.length&&s.push(d),s.push(c));return 1===s.length&&(s=s[0]),s.length?s:null}function ro(a){var t,e=tn(a);if(0===e.length)return null;var i=[];for(t=0;t<e.length;t++)if(Sn(e[t])){var r=ro(e[t]);r?e[t]=r:i.push(e[t])}else Le(e[t])&&(af(e[t])||i.push(e[t]));for(t=0;t<i.length;t++)tu(e,i[t]);return 1===e.length||(e.splice(e.length-1,1),1===e.length&&(a=function Km(a,e){return ni(a)?a[1]=e:a=e,a}(a,e[0])),0===a.length)?null:a}function bg(a,e,t){if(""!==e){var{lookup:i}=a;if(i.items)t(i.calculateCellValue(e)||"");else{var r=(0,m.Tn)(i.dataSource)?i.dataSource({}):i.dataSource;new It.q(r).loadSingle(i.valueExpr,e).done(s=>{var c="";s&&(c=i.displayExpr?(0,me.Hz)(i.displayExpr)(s):s),a.customizeText&&(c=a.customizeText({value:e,valueText:c})),t(c)}).fail(()=>{t("")}
1)}}else t("")}function Mg(a,e,t,i,r){var o;return o=!0===e?a.trueText||R.A.format("dxDataGrid-trueText"):!1===e?a.falseText||R.A.format("dxDataGrid-falseText"):function Wm(a,e){return Qi.format(e,a.format||zm[a.dataType])}(a,e),a.customizeText&&(o=a.customizeText.call(a,{value:e,valueText:o,target:i})),t&&t.customizeText&&(o=t.customizeText.call(t,{value:e,valueText:o,field:a,target:i},r)),o}function au(a){return""===a||null===a}function wg(a,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(au(e))return"";if(Array.isArray(e)){var r=new k.cY;return k.z7.apply(this,function sf(a,e,t,i){var r={values:e};return e.map(o=>Mg(a,o,t,i,r))}(a,e,t,i)).done(function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];var d=s.some(u=>!au(u))?s.map(u=>au(u)?"?":u):"";r.resolve(d)}),r}return Mg(a,e,t,i)}function Sg(a,e){return a.some(t=>t.dataField===e)}function yg(a,e,t){var{dataField:i}=t;lu(i)&&(t.parentId=Ig(i),!Sg(e,t.parentId)&&!Sg(a,t.parentId)&&yg(a,e,{id:t.parentId,dataType:"object",dataField:t.parentId,caption:Eg(t.parentId,!0),filterOperations:["isblank","isnotblank"],defaultCalculateFilterExpression:At.defaultCalculateFilterExpression})),e.push(t)}function Eg(a,e){var t="";if(e)a=a.substring(a.lastIndexOf(".")+1);else if(lu(a))return a.split(".").forEach((i,r,o)=>{t+=(0,qn.Bc)(i),r!==o.length-1&&(t+=".")}),t;return(0,qn.Bc)(a)}function Rg(a,e){for(var t=[],i=0;i<a.length;i++){var r=(0,A.X)(!0,{caption:Eg(a[i].dataField,e)},a[i]);r.id=r.name||r.dataField,e?yg(a,t,r):t.push(r)}return t}function lu(a){return-1!==a.lastIndexOf(".")}function Ig(a){return a.substring(0,a.lastIndexOf("."))}function Ag(a,e){if(lu(a.dataField))for(var t=Ig(a.dataField),i=0;i<e.length;i++)if(e[i].dataField===t)return"".concat(Ag(e[i],e),".").concat(a.caption);return a.caption}function cu(a,e,t){var i=nn(t,e);return i?(!1===i.hasValue?(a[1]=e,a.length=2):(a[1]=e,a[2]=""),a):("isblank"===e?(a[1]=Zd,a[2]=null):"isnotblank"===e?(a[1]="<>",a[2]=null):(((i=nn(t,a[1]))||2===a.length||null===a[2])&&(a[2]=""),a[1]=e),a)}function Tg(a){return null===a[2]?a[1]===Zd?"isblank":"isnotblank":a[1]}function af(a){return""!==a[2]}function oo(a,e){return a[0]===e}function du(a,e){return a&&0!==a.length?Le(a)?oo(a,e)?null:a:kg(a,[e],!1):null}function kg(a,e,t){var i=[];return a.forEach(r=>{Le(r)?oo(r,e[0])?t?(i.push(e),t=!1):i.splice(i.length-1,1):i.push(r):(i.length||Sn(r))&&i.push(r)}),0===i.length?null:(t&&(i.push(wn),i.push(e)),1===i.length?i[0]:i)}function Fg(a,e){return null===a||0===a.length?e:Le(a)?oo(a,e[0])?e:[a,wn,e]:ii(a)!==wn?[e,"and",a]:kg(a,e,!0)}function Dg(a,e){return null!==a&&0!==a.length&&(Le(a)?a[0]===e:a.some(t=>(Le(t)||Sn(t))&&Dg(t,e)))}var uu=function(a,e,t){if(Array.isArray(e)){var i=e.length-1;a.empty(),e.forEach((r,o)=>{(0,x.A)("<span>").addClass(Um).text(r).appendTo(a),o!==i&&(0,x.A)("<span>").addClass(Cg).text(t&&t.valueSeparator?t.valueSeparator:"|").addClass($m).appendTo(a)})}else a.text(e||R.A.format("dxFilterBuilder-enterValueText"))};function Vg(a){var e=function(i,r){return r?"".concat(r,"/").concat(i):i},t=a&&a.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(i,r,o){var s=[],c=i.length-1;return i&&i.forEach((d,u)=>{if(Le(d)||Sn(d)){var p=Gi(d,o,[],"headerFilter");s.push(p)}else{var v=Gi([r.dataField,"=",d],o,[],"headerFilter");s.push(v)}u!==c&&s.push("or")}),1===s.length?s[0]:s},editorTemplate(i,r){var o=(0,x.A)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(r),s=(0,A.X)(!0,{},a.columnOption(i.field.dataField));return uu(o,i.text&&i.text.split("|")),s.filterType="include",s.filterValues=i.value?i.value.slice():[],t.showHeaderFilterMenuBase({columnElement:o,column:s,apply(){i.setValue(this.filterValues),t.hideHeaderFilterMenu(),i.closeEditor()},onHidden(){i.closeEditor()},isFilterBuilder:!0}),r},customizeText:function(i,r){r=r||{};var{value:o}=i,s=a.columnOption(i.field.dataField),c=s&&s.headerFilter,d=s&&s.lookup,u=r.values||[o];if(c&&c.dataSource||d&&d.dataSource){var p=new k.cY,v=r.items||new k.cY;if(!r.items){s=(0,A.X)({},s,{filterType:"include",filterValues:u});var f=t.getDataSource(s);f.paginate=!1;var O=new It.q(f),b=O.store().key();if(b){var{values:S}=r;if(S&&S.length>1){var E=S.reduce((G,J)=>
1(G.length&&G.push("or"),G.push([b,"=",J]),G),[]);O.filter(E)}else O.filter([b,"=",i.value])}else i.field.calculateDisplayValue&&Oe.A.log("W1017");r.items=v,O.load().done(v.resolve)}return v.done(G=>{var J=u.indexOf(i.value);p.resolve(function he(ee,oe){var _e=[];return ee.forEach(be=>{if(be.items){var ve=he(be.items,e(be.text,oe));_e=_e.concat(ve)}be.selected&&_e.push(e(be.text,oe))}),_e}(G,null)[J])}),p}return t.getHeaderItemText(o,s,0,a.option("headerFilter"))}}}function uf(a){var e=Vg(a);return(0,A.X)({},e,{calculateFilterExpression(t,i,r){var o=e.calculateFilterExpression(t,i,r);return o&&0!==o.length?"!"===o[0]?o:["!",o]:null},name:"noneof",icon:"unselectall",caption:R.A.format("dxFilterBuilder-filterOperationNoneOf")})}var pf=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],Lg="include",so="exclude";function Bt(a){return a.name||a.dataField}var pu=function(){return{filterType:Lg,filterValues:void 0}},qg=function(a){var e=a.filterValues||[];return!At.getGroupInterval(a)&&!(a.headerFilter&&a.headerFilter.dataSource)||1===e.length&&null===e[0]},Bg=function(a){if((0,m.O9)(a.filterValue)){var t=a.selectedFilterOperation||a.defaultFilterOperation||eu(a);return[Bt(a),t,a.filterValue]}return null},Ng=function(a){var e,t,{filterValues:i}=a;return i?(1===i.length&&qg(a)&&!Array.isArray(i[0])?(e=a.filterType===so?"<>":"=",t=i[0]):(e=a.filterType===so?"noneof":"anyof",t=i),[Bt(a),e,t]):null},zg=function(a,e,t){var i=function(a,e){if(!a)return pu();var t,i=a[1],r=a[2],o=Array.isArray(r);if(!o&&!qg(e))return pu();switch(i){case"anyof":case"=":t=Lg;break;case"noneof":case"<>":t=so;break;default:return pu()}return{filterType:t,filterValues:o?r:[r]}}(t,e);a.columnOption(Bt(e),i)},Gg=function(a,e,t){var i,r=t?.[1],o=t?.[2],s=e.filterOperations||e.defaultFilterOperations;(!s||s.indexOf(r)>=0||r===e.defaultFilterOperation)&&pf.includes(r)&&null!==o?(r===e.defaultFilterOperation&&!(0,m.O9)(e.selectedFilterOperation)&&(r=e.selectedFilterOperation),i={filterValue:o,selectedFilterOperation:r}):i={filterValue:void 0,selectedFilterOperation:void 0},a.columnOption(Bt(e),i)};W.registerModule("filterSync",{defaultOptions:()=>({filterValue:null,filterSyncEnabled:"auto"}),controllers:{filterSync:class _f extends ge.Controller{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._dataController.isFilterSyncActive()&&(this._columnsController.isAllDataTypesDefined()?this._initSync():this._dataController.dataSourceChanged.add(()=>this._initSync()))}publicMethods(){return["getCustomFilterOperations"]}syncFilterValue(){var e=this,t=this._columnsController.getFilteringColumns();this._skipSyncColumnOptions=!0,t.forEach(i=>{var r=function cf(a,e){return null===a||0===a.length?[]:Le(a)?oo(a,e)?[a]:[]:ii(a)!==wn?[]:a.filter(r=>Le(r)&&oo(r,e))}(e.option("filterValue"),Bt(i));if(1===r.length){var o=r[0];zg(this._columnsController,i,o),Gg(this._columnsController,i,o)}else(0,m.O9)(i.filterValues)&&zg(this._columnsController,i,null),(0,m.O9)(i.filterValue)&&Gg(this._columnsController,i,null)}),this._skipSyncColumnOptions=!1}_initSync(){var e=this._columnsController.getColumns(),t=this._dataController.pageIndex();if(function gf(a){a.forEach(e=>{var t=Bt(e);if(!(0,m.O9)(t)&&e.allowFiltering)throw new Oe.A.Error("E1049",e.caption)})}(e),!this.option("filterValue")){var i=this._columnsController.getFilteringColumns(),r=this.getFilterValueFromColumns(i);this._silentOption("filterValue",r)}this.syncFilterValue(),this._dataController.pageIndex(t)}_getSyncFilterRow(e,t){var i=Bg(t);return(0,m.O9)(i)?Fg(e,i):du(e,Bt(t))}_getSyncHeaderFilter(e,t){var i=Ng(t);return i?Fg(e,i):du(e,Bt(t))}getFilterValueFromColumns(e){if(!this._dataController.isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(i=>{var r=Ng(i),o=Bg(i);r&&ja(r,t),o&&ja(o,t)}),ro(t)}syncFilterRow(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))}syncHeaderFilter(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))}getCustomFilterOperations(){var e,a,t=null!==(e=this.option("filterBuilder.customOperations"))&&void 0!==e?e:[];return[(a=this.component,(0,A.X)(Vg(a),{name:"anyof",icon:"selectall",caption:R.A.format("dxFilterBuilder-filterOperationAnyOf")})),uf(this.component)].concat(t)}}},extenders:{controllers:{data:a=>class extends a{optionChanged(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this._filterSyncController.syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this._columnsController.getColumnByPath(e.fullName);if(t&&!this._filterSyncController._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);this._filterSyncController._skipSyncColumnOptions=!0,"filterType"===i?(so===e.value||so===e.previousValue)&&this._filterSyncController.syncHeaderFilter(t):"filterValues"===i?this._filterSyncController.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].includes(i)&&this._filterSyncController.syncFilterRow(t,t.f
1ilterValue),this._filterSyncController._skipSyncColumnOptions=!1}}super.optionChanged(e);break;default:super.optionChanged(e)}}isFilterSyncActive(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e}skipCalculateColumnFilters(){return((0,m.O9)(this.option("filterValue"))||this._filterSyncController._skipSyncColumnOptions)&&this.isFilterSyncActive()}_calculateAdditionalFilter(){if(!1===this.option("filterPanel.filterEnabled"))return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getFilteringColumns(),i=this.option("filterValue");if(this.isFilterSyncActive()){var r=this._headerFilterController.getCurrentColumn(),o=this._applyFilterController.getCurrentColumnForFiltering(),s=r||o;(r||(0,m.O9)(o?.filterValue))&&i&&(i=du(i,Bt(s)))}var u=Gi(i,t,this._filterSyncController.getCustomFilterOperations(),"filterBuilder");return u&&e.push(u),q.combineFilters(e)}_parseColumnPropertyName(e){var t=e.match(/.*\.(.*)/);return t?t[1]:null}clearFilter(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),super.clearFilter(e)):(this.option("filterValue",null),super.clearFilter()),this.component.endUpdate()}_applyFilter(){return this._filterSyncController._skipSyncColumnOptions?(new k.cY).resolve():super._applyFilter.apply(this,arguments)}}},views:{columnHeadersView:a=>class extends a{optionChanged(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():super.optionChanged(e)}_isHeaderFilterEmpty(e){return this._dataController.isFilterSyncActive()?!Dg(this.option("filterValue"),Bt(e)):super._isHeaderFilterEmpty(e)}_needUpdateFilterIndicators(){return!this._dataController.isFilterSyncActive()}}}}});var ff=P(4038),at="dx-filterbuilder",Hi="".concat(at,"-group"),Hg="".concat(Hi,"-item"),jg="".concat(Hi,"-content"),Of="".concat(Hi,"-operations"),xf="".concat(Hi,"-operation"),gu="".concat(at,"-action"),Ug="".concat(gu,"-icon"),ao="".concat(at,"-text"),Mf="".concat(at,"-item-field"),wf="".concat(at,"-item-operation"),$g="".concat(at,"-item-value"),Sf="".concat(at,"-item-value-text"),yf="".concat(at,"-overlay"),Ef="".concat(at,"-operations"),Rf="".concat(at,"-fields"),If="".concat(at,"-add-condition"),Wa="dx-state-active",Af="".concat(at,"-menu-custom-operation"),Wg="filterBuilder",hu="enter",kf=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],Yg={and:"and",or:"or",notAnd:"!and",notOr:"!or"},Ff=Ju(class{});class Jg extends fn.A{_getDefaultOptions(){return(0,A.X)(super._getDefaultOptions(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:R.A.format("dxFilterBuilder-and"),or:R.A.format("dxFilterBuilder-or"),notAnd:R.A.format("dxFilterBuilder-notAnd"),notOr:R.A.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:R.A.format("dxFilterBuilder-filterOperationBetween"),equal:R.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:R.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:R.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:R.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:R.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:R.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:R.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:R.A.format("dxFilterBuilder-filterOperationContains"),notContains:R.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:R.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:R.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:R.A.format("dxFilterBuilder-filterOperationIsNotBlank")}})}_optionChanged(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:super._optionChanged(e)}}getFilterExpression(){var e=this._getNormalizedFields();return Gi(ro((0,A.X)(!0,[],this._model)),e,this._customOperations,Wg)}_getNormalizedFields(){return function of(a){return a.reduce((e,t)=>
1{if((0,m.O9)(t.dataField)){var i={};for(var r in t)t[r]&&Hm.includes(r)&&(i[r]=t[r]);i.defaultCalculateFilterExpression=At.defaultCalculateFilterExpression,(0,m.O9)(i.dataType)||(i.dataType=Jd),(0,m.O9)(i.trueText)||(i.trueText=R.A.format("dxDataGrid-trueText")),(0,m.O9)(i.falseText)||(i.falseText=R.A.format("dxDataGrid-falseText")),e.push(i)}return e},[])}(this.option("fields"))}_updateFilter(){this._disableInvalidateForValue=!0;var t=ro((0,A.X)(!0,[],this._model)),i=ro(this._getModel(this.option("value")));JSON.stringify(i)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()}_init(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),super._init()}_initEditorFactory(){this._editorFactory=new Ff}_initCustomOperations(){this._customOperations=function lf(a,e,t){var i=(0,A.X)(!0,[],a),r=-1;return i.some((o,s)=>{if("between"===o.name)return r=s,!0}),-1!==r?i[r]=(0,A.X)(gg(e,t),i[r]):i.unshift(gg(e,t)),i}(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)}_getDefaultGroupOperation(){var e,t;return null!==(t=null===(e=this.option("groupOperations"))||void 0===e?void 0:e[0])&&void 0!==t?t:Yg.and}_getModel(e){return su(e,this._customOperations,this._getDefaultGroupOperation())}_initModel(){this._model=this._getModel(this.option("value"))}_initActions(){var e=this;e._actions={},kf.forEach(t=>{var i=(0,A.X)({},t.config);e._actions[t.name]=e._createActionByOption(t.name,i)})}executeAction(e,t){var i=this._actions[e];return i&&i(t)}_initMarkup(){this.$element().addClass(at),super._initMarkup(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())}_createConditionElement(e,t){return(0,x.A)("<div>").addClass(Hi).append(this._createConditionItem(e,t))}_createGroupElementByCriteria(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._createGroupElement(e,t,i),o=r.find(".".concat(jg)),s=tn(e),c=0;c<s.length;c++){var d=s[c];Sn(d)?this._createGroupElementByCriteria(d,e,i+1).appendTo(o):Le(d)&&this._createConditionElement(d,e).appendTo(o)}return r}_createGroupElement(e,t,i){var r=(0,x.A)("<div>").addClass(Hg),o=(0,x.A)("<div>").addClass(jg),s=(0,x.A)("<div>").addClass(Hi).append(r).append(o);return null!=t&&this._createRemoveButton(()=>{tu(t,e),s.remove(),this._updateFilter()}).appendTo(r),this._createGroupOperationButton(e).appendTo(r),this._createAddButton(()=>{var c=Og(this._getDefaultGroupOperation());ja(c,e),this._createGroupElement(c,e,i+1).appendTo(o),this._updateFilter()},()=>{var d=function nf(a,e){var t=[a.dataField,"",""];return cu(t,eu(a),e),t}(this.option("fields")[0],this._customOperations);ja(d,e),this._createConditionElement(d,e).appendTo(o),this._updateFilter()},i).appendTo(r),s}_createButton(e){return(0,x.A)("<div>").text(e)}_createGroupOperationButton(e){var t=this._getGroupOperations(e),i=function Jm(a,e){var t=ii(a);return e.filter(i=>i.value===t)[0]}(e,t),r=i.text,o=t&&t.length<2?this._createButton(r).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:r,menu:{items:t,displayExpr:"text",keyExpr:"value",onItemClick:s=>{i!==s.itemData&&(function Ym(a,e){var i,r;return function Xm(a,e){-1!==e.indexOf("!")?ni(a)||function(t){var i=t.slice(0);t.length=0,t.push("!",i)}(a):ni(a)&&function(t){var i=tn(t);t.length=0,[].push.apply(t,i)}(a)}(a,e),function(r,o){for(i=0;i<r.length;i++)Array.isArray(r[i])||(r[i]=o)}(tn(a),e=-1===(r=e).indexOf("!")?r:r.substring(1)),a}(e,s.itemData.value),o.text(s.itemData.text),i=s.itemData,this._updateFilter())},onContentReady(s){s.component.selectItem(i)},cssClass:Of}});return o.addClass(ao).addClass(xf).attr("tabindex",0)}_createButtonWithMenu(e){var c,t=this,i=function(){t.$element().find(".".concat(Wa)).removeClass(Wa),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},r=this.option("rtlEnabled"),o=r?"right":"left",s=this._createButton(e.caption);return(0,A.X)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(c=e.menu.onItemClick,function(d){c(d),"dxclick"===d.event.type&&i()}),onHiding(){s.removeClass(Wa)},position:{my:"".concat(o," top"),at:"".concat(o," bottom"),offset:"0 1",of:s,collision:"flip"},animation:null,onHidden(){i()},cssClass:"".concat(yf," ").concat(e.menu.cssClass),rtlEnabled:r}),e.popup={onShown(d){var u=(0,x.A)(d.component.content()).find(".dx-treeview"),p=u.dxTreeView("instance");n.A.on(u,"keyup keydown",v=>{var f=(0,D.YD)(v);("keydown"===v.type&&"tab"===f||"keyup"===v.type&&("escape"===f||f===hu))&&(d.component.hide(),n.A.trigger(e.menu.position.of,"focus"))}),p.focus(),p.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(s,()=>{i(),t._createPopupWithTreeView(e,t.$element()),s.addClass(Wa)}),s}_hasValueButton(e){var t=nn(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]}_createOperationButtonWithMenu(e,t){var i=this,r=function tf(a,e,t){var i=fg(a),r=!!a.lookup;return t.forEach(o=>{if(!a.filterOperations&&-1===i.indexOf(o.name)){var s=o&&o.dataTypes;(!r||!o.notForLookup)&&s&&s.indexOf(a.dataType||Jd)>=0&&i.push(o.name)}}),i.map(o=>{var s=nn(t,o);return s?{icon:s.icon||_g,text:s.caption||(0,qn.Bc)(s.name),value:s.name,isCustom:!0}:{icon:hg_getIconByFilterOperation(o)||_g,text:Qd(o,e),value:o}})}(t,this.option("filterOperationDescriptions"),this._customOperations),o=function ef(a,e){for(var t=0;t<e.length;t++)if(e[t].value===a)return e[t];throw new Oe.A.Error("E1048",a)}(Tg(e),r),s=this._createButtonWithMenu({caption:o.text,menu:{items:r,displayExpr:"text",onItemRendered(c){c.itemData.isCustom&&(0,x.A)(c.itemElement).addClass(Af)},onContentReady(c){c.component.selectItem(o)},onItemClick:c=>{if(o!==c.itemData){cu(e,(o=c.itemData).value,i._customOperations);var d=s.siblings().filter(".".concat($g));i._hasValueButton(e)?(0!==d.length&&d.remove(),i._createValueButton(e,t).appendTo(s.parent())):d.remove(),s.text(o.text),this._updateFilter()}},cssClass:Ef}}).addClass(ao).addClass(wf).attr("tabindex",0);return s}_createOperationAndValueButtons(e,t,i){this._createOperationButtonWithMenu(e,t).appendTo(i),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(i)}_createFieldButtonWithMenu(e,t,i){var r=this,o=this.option("allowHierarchicalFields"),s=Rg(e,o),c=Ua(i.name||i.dataField,s),d=function(p,v){return o?Ag(p,v):p.caption},u=this._createButtonWithMenu({caption:d(c,s),menu:{items:s,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:p=>{if(c!==p.itemData){t[0]=(c=p.itemData).name||c.dataField,t[2]="object"===c.dataType?null:"",cu(t,eu(c),r._customOperations),u.siblings().filter(".".concat(ao)).remove(),r._createOperationAndValueButtons(t,c,u.parent());var v=d(c,p.component.option("items"));u.text(v),this._updateFilter()}},onContentReady(p){p.component.selectItem(c)},cssClass:Rf}}).addClass(ao).addClass(Mf).attr("tabindex",0);return u}_createConditionItem(e,t){var i=(0,x.A)("<div>").addClass(Hg),r=this._getNormalizedFields(),o=Ua(e[0],r);return this._createRemoveButton(()=>{tu(t,e),1===i.parent().children().length?i.parent().remove():i.remove(),this._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(r,e,o).appendTo(i),this._createOperationAndValueButtons(e,o,i),i}_getGroupOperations(e){var t=this.option("groupOperations"),i=this.option("groupOperationDescriptions");return(!t||!t.length)&&(t=[ii(e).replace("!","not")]),t.map(r=>({text:i[r],value:Yg[r]}))}_createRemoveButton(e){var t=(0,x.A)("<div>").addClass(Ug).addClass("dx-icon-remove").addClass(gu).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t}_createAddButton(e,t,i){var r,o=this.option("maxGroupLevel");return(0,m.O9)(o)&&i>=o?(r=this._createButton(),this._subscribeOnClickAndEnterKey(r,t)):r=this._createButtonWithMenu({menu:{items:[{caption:R.A.format("dxFilterBuilder-addCondition"),click:t},{caption:R.A.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick(s){s.itemData.click()},cssClass:If}}),r.addClass(Ug).addClass("dx-icon-plus").addClass(gu).attr("tabindex",0)}_createValueText(e,t,i){var r=this,o=(0,x.A)("<div>").html("&nbsp;").addClass(Sf).attr("tabindex",0).appendTo(i),s=e[2],c=nn(r._customOperations,e[1]);return!c&&t.lookup?bg(t,s,d=>{uu(o,d)}):(0,k.z7)(wg(t,s,c)).done(d=>{uu(o,d,c)}),r._subscribeOnClickAndEnterKey(o,d=>{"keyup"===d.type&&d.stopPropagation(),r._createValueEditorWithEvents(e,t,i)}),o}_updateConditionValue(e,t,i){e[2]!==t&&(e[2]=t),i(),this._updateFilter()}_addDocumentKeyUp(e,t){var i=!1,r=!1,o=I.A.getDocument(),s=d=>{i||r?r=!1:t(d)};n.A.on(o,"keyup",s);var c=e.find("input");n.A.on(c,"compositionstart",()=>{i=!0}),n.A.on(c,"compositionend",()=>{i=!1,r=!0}),n.A.on(c,"keydown",d=>{229!==d.which&&(r=!1)}),this._documentKeyUpHandler=s}_addDocumentClick(e,t){var i=I.A.getDocument(),r=o=>{this._isFocusOnEditorParts(e,o.target)||(n.A.trigger(e.find("input"),"change"),t())};n.A.on(i,"dxpointerdown",r),this._documentClickHandler=r}_isFocusOnEditorParts(e,t){var i=t||I.A.getActiveElement();return(0,x.A)(i).closest(e.children()).length||(0,x.A)(i).closest(".dx-dropdowneditor-overlay").length}_removeEvents(){var e=I.A.getDocument();(0,m.O9)(this._documentKeyUpHandler)&&n.A.off(e,"keyup",this._documentKeyUpHandler),(0,m.O9)(this._documentClickHandler)&&n.A.off(e,"dxpointerdown",this._documentClickHandler)}_dispose(){this._removeEvents(),super._dispose()}_createValueEditorWithEvents(e,t,i){var r=e[2],o=()=>(i.empty(),this._removeEvents(),this._createValueText(e,t,i)),s=()=>{this._updateConditionValue(e,r,()=>{o()})},c={value:""===r?null:r,filterOperation:Tg(e),setValue(u){r=null===u?"":u},closeEditor:s,text:i.text()};i.empty();var d=this._createValueEditor(i,t,c);n.A.trigger(d.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(d,s),this._addDocumentKeyUp(d,u=>{var p=(0,D.YD)(u);if("tab"===p){if(this._isFocusOnEditorParts(d))return;this._updateConditionValue(e,r,()=>{o(),u.shiftKey&&n.A.trigger(i.prev(),"focus")})}"escape"===p&&n.A.trigger(o(),"focus"),p===hu&&this._updateConditionValue(e,r,()=>{n.A.trigger(o(),"focus")})}),this._fireContentReadyAction()}_createValueButton(e,t){var i=(0,x.A)("<div>").addClass(ao).addClass($g);return this._createValueText(e,t,i),i}_createValueEditor(e,t,i){var r=(0,x.A)("<div>").attr("tabindex",0).appendTo(e),o=nn(this._customOperations,i.filterOperation),s=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;return s?this._getTemplate(s).render({model:(0,A.X)({field:t},i),container:r}):this._editorFactory.createEditor.call(this,r,(0,A.X)({},t,i,{parentType:Wg})),r}_createPopupWithTreeView(e,t){var i=this,r=(0,x.A)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(r,ff.A,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate(o){var s=(0,x.A)("<div>").appendTo(o);i._createComponent(s,Ai.A,e.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:()=>$p(e.menu.position.of),visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:e.menu.cssClass})}_subscribeOnClickAndEnterKey(e,t){n.A.on(e,"dxclick",t),n.A.on(e,"keyup",i=>{(0,D.YD)(i)===hu&&t(i)})}}(0,jn.A)("dxFilterBuilder",Jg);const Df=Jg;var Vf=P(6121);W.registerModule("filterBuilder",{defaultOptions:()=>({filterBuilder:{groupOperationDescriptions:{and:R.A.format("dxFilterBuilder-and"),or:R.A.format("dxFilterBuilder-or"),notAnd:R.A.format("dxFilterBuilder-notAnd"),notOr:R.A.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:R.A.format("dxFilterBuilder-filterOperationBetween"),equal:R.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:R.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:R.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:R.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:R.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:R.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:R.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:R.A.format("dxFilterBuilder-filterOperationContains"),notContains:R.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:R.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:R.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:R.A.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}),views:{filterBuilderView:class Lf extends ge.View{init(){super.init(),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync")}optionChanged(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:super.optionChanged(e)}}_renderCore(){this._updatePopupOptions()}_updatePopupOptions(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()}_disposePopup(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dis
1pose(),this._filterBuilder=void 0)}_initPopup(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),xn.A,(0,A.X)({title:R.A.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:t=>e._getPopupContentTemplate(t),onOptionChanged(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden(){Et(e),e._disposePopup()}}))}_getPopupContentTemplate(e){var t=(0,x.A)(e),i=(0,x.A)("<div>").appendTo((0,x.A)(e));this._filterBuilder=this._createComponent(i,Df,(0,A.X)({value:this.option("filterValue"),fields:this._columnsController.getFilteringColumns()},this.option("filterBuilder"),{customOperations:this._filterSyncController.getCustomFilterOperations()})),this._createComponent(t,Vf.A,{direction:"both"})}_getPopupToolbarItems(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:R.A.format("OK"),onClick(){var t=e._filterBuilder.option("value");e.option("filterValue",t),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:R.A.format("Cancel"),onClick(){e._filterBuilderPopup.hide()}}}]}}}});var lo="filter-panel",Bf="".concat(lo,"-text"),Nf="".concat(lo,"-checkbox"),zf="".concat(lo,"-clear-filter"),Gf="".concat(lo,"-left");W.registerModule("filterPanel",{defaultOptions:()=>({filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:R.A.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:R.A.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:R.A.format("dxDataGrid-filterPanelFilterEnabledHint")}}}),views:{filterPanelView:class jf extends ge.View{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync"),this._dataController.dataSourceChanged.add(()=>this.render())}isVisible(){return this.option("filterPanel.visible")&&this._dataController.dataSource()}_renderCore(){var e=this.element();if(e.empty(),this._columnsController.getColumns().length){e.addClass(this.addWidgetPrefix(lo));var i=(0,x.A)("<div>").addClass(this.addWidgetPrefix(Gf)).appendTo(e);this._renderFilterBuilderText(e,i)}}_renderFilterBuilderText(e,t){var i=this._getFilterElement(),r=this._getTextElement();if(this.option("filterValue")||this._filterValueBuffer){var o=this._getCheckElement(),s=this._getRemoveButtonElement();return t.append(o).append(i).append(r),void e.append(s)}t.append(i).append(r)}_getCheckElement(){var e=this,t=(0,x.A)("<div>").addClass(this.addWidgetPrefix(Nf));return e._createComponent(t,R_.A,{value:e.option("filterPanel.filterEnabled"),onValueChanged(i){e.option("filterPanel.filterEnabled",i.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t}_getFilterElement(){var e=this,t=(0,x.A)("<div>").addClass("dx-icon-filter");return n.A.on(t,"click",()=>e._showFilterBuilder()),an("filterPanel",e,t,void 0,()=>e._showFilterBuilder()),e._addTabIndexToElement(t),t}_getTextElement(){var i,e=this,t=(0,x.A)("<div>").addClass(e.addWidgetPrefix(Bf)),r=e.option("filterValue");return r?(0,k.z7)(e.getFilterText(r,this._filterSyncController.getCustomFilterOperations())).done(o=>{var s=e.option("filterPanel.customizeText");if(s){var c=s({component:e.component,filterValue:r,text:o});"string"==typeof c&&(o=c)}t.text(o)}):(i=e.option("filterPanel.texts.createFilter"),t.text(i)),n.A.on(t,"click",()=>e._showFilterBuilder()),an("filterPanel",e,t,void 0,()=>e._showFilterBuilder()),e._addTabIndexToElement(t),t}_showFilterBuilder(){this.option("filterBuilderPopup.visible",!0)}_getRemoveButtonElement(){var e=this,t=()=>e.option("filterValue",null),i=(0,x.A)("<div>").addClass(e.addWidgetPrefix(zf)).text(e.option("filterPanel.texts.clearFilter"));return n.A.on(i,"click",t),an("filterPanel",this,i,void 0,t),e._addTabIndexToElement(i),i}_addTabIndexToElement(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}}optionChanged(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:super.optionChanged(e)}}_getConditionText(e,t,i){var r="[".concat(e,"] ").concat(t);return(0,m.O9)(i)&&(r+=i),r}_getValueMaskedText(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")}_getValueText(e,t,i){var r=new k.cY,o=t&&t.customizeText;if((0,m.O9)(i)||o)if(!o&&e.lookup)bg(e,i,c=>{r.resolve(this._getValueMaskedText(c))});else{var s=Array.isArray(i)?i:q.getDisplayValue(e,i,null);(0,k.z7)(wg(e,s,t,"filterPanel")).done(c=>{r.resolve(this._getValueMaskedText(c))})}else r.resolve("");return r.promise()}getConditionText(e,t){var c,i=this,r=e[1],o=new k.cY,s=nn(t.customOperations,r),d=Ua(e[0],t.columns),u=d.caption||"",p=e[2];return c=s?s.caption||(0,qn.Bc)(s.name):Qd(null===p?"="===r?"isblank":"isnotblank":r,t.f
1ilterOperationDescriptions),this._getValueText(d,s,p).done(v=>{o.resolve(i._getConditionText(u,c,v))}),o}getGroupText(e,t,i){var r=this,o=new k.cY,s=[],c=ii(e);return e.forEach(d=>{Le(d)?s.push(r.getConditionText(d,t)):Sn(d)&&s.push(r.getGroupText(d,t,!0))}),k.z7.apply(this,s).done(function(){for(var d,u=arguments.length,p=new Array(u),v=0;v<u;v++)p[v]=arguments[v];if(c.startsWith("!")){var f=t.groupOperationDescriptions["not".concat(c.substring(1,2).toUpperCase()).concat(c.substring(2))].split(" ");d="".concat(f[0]," ").concat(p[0])}else d=p.join(" ".concat(t.groupOperationDescriptions[c]," "));i&&(d="(".concat(d,")")),o.resolve(d)}),o}getFilterText(e,t){var i={customOperations:t,columns:this._columnsController.getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return Le(e)?this.getConditionText(e,i):this.getGroupText(e,i)}}},extenders:{controllers:{data:a=>class extends a{optionChanged(e){"filterPanel"===e.name?(this._applyFilter(),e.handled=!0):super.optionChanged(e)}}}}});var Zg="search-panel",Qg="search-text";function eh(a){var e;return!!(null!==(e=a.allowSearch)&&void 0!==e?e:a.allowFiltering)}function th(a,e){var{lookup:t}=a;return a.parseValue?t?a.parseValue.call(t,e):a.parseValue(e):e}W.registerModule("search",{defaultOptions:()=>({searchPanel:{visible:!1,width:160,placeholder:R.A.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}),extenders:{controllers:{data:a=>class extends a{optionChanged(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:super.optionChanged(e)}}publicMethods(){return super.publicMethods().concat(["searchByText"])}_calculateAdditionalFilter(){var e=super._calculateAdditionalFilter(),t=this.calculateSearchFilter(this.option("searchPanel.text"));return q.combineFilters([e,t])}searchByText(e){this.option("searchPanel.text",e)}calculateSearchFilter(e){var t,i,s,r=this._columnsController.getColumns(),o=this.option("searchPanel.searchVisibleColumnsOnly"),c=[];if(!e)return null;function d(p){for(var v=(0,me.Hz)(s.valueExpr),f=0;f<p.length;f++){var O=v(p[f]);c.push(i.createFilterExpression(O,null,"search"))}}for(t=0;t<r.length;t++)if(i=r[t],(!o||i.visible)&&eh(i)&&i.calculateFilterExpression){s=i.lookup;var u=th(i,e);s&&s.items?(0,h.A)(s.items).filter(i.createFilterExpression.call({dataField:s.displayExpr,dataType:s.dataType,calculateFilterExpression:i.calculateFilterExpression},u,null,"search")).enumerate().done(d):void 0!==u&&c.push(i.createFilterExpression(u,null,"search"))}return 0===c.length?["!"]:q.combineFilters(c,"or")}}},views:{headerPanel:a=>class extends a{optionChanged(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else super.optionChanged(e)}_getToolbarItems(){var e=super._getToolbarItems();return this._prepareSearchItem(e)}_prepareSearchItem(e){var t=this,i=this._dataController,r=this.option("searchPanel");return r&&r.visible&&e.push({template(s,c,d){var u=(0,x.A)("<div>").addClass(t.addWidgetPrefix(Zg)).appendTo(d);t._editorFactoryController.createEditor(u,{width:r.width,placeholder:r.placeholder,parentType:"searchPanel",value:t.option("searchPanel.text"),updateValueTimeout:700,setValue(p){i.searchByText(p)},editorOptions:{inputAttr:{"aria-label":R.A.format("".concat(t.component.NAME,"-ariaSearchInGrid"))}}}),t.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),e}getSearchTextEditor(){var e=this,t=e.element(),i=t.find(".".concat(e.addWidgetPrefix(Zg))).filter(function(){return(0,x.A)(this).closest(".".concat(e.addWidgetPrefix("header-panel"))).is(t)});return i.length?i.dxTextBox("instance"):null}isVisible(){var e=this.option("searchPanel");return super.isVisible()||!!e?.visible}},rowsView:a=>class extends a{init(){super.init.apply(this,arguments),this._searchParams=[],this._dataController=this.getController("data")}dispose(){clearTimeout(this._highlightTimer),super.dispose()}_getFormattedSearchText(e,t){var i=th(e,t),r=q.getFormatOptionsByColumn(e,"search");return q.formatValue(i,r)}_getStringNormalizer(){var e,t,i,r,o=this.option("searchPanel.highlightCaseSensitive"),s=null===(t=null===(e=this._dataController)||void 0===e?void 0:e.getDataSource)||void 0===t?void 0:t.call(e),c=null===(r=null===(i=s?.loadOptions)||void 0===i?void 0:i.call(s))||void 0===r?void 0:r.langParams;return d=>(0,me.ao)(d,o,c)}_findHighlightingTextNodes(e,t,i){var o,r=t.parent(),s=this._getStringNormalizer(),c=s(i),d=[];if(r.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)o=t;else{var u=this._columnsController.getVisibleIndex(e.index);o=r.children("td").eq(u).find("*")}}else r=(0,x.A)("<div>").append(t);return(o=o?.length?o:r.find("*")).each((p,v)=>{for(var f,O,b=(0,x.A)(v).contents(),S=0;S<b.length;S++){var E=b.get(S);3===E.nodeType&&s(null!==(O=null!==(f=E.textContent)&&void 0!==f?f:E.nodeValue)&&void 0!==O?O:"").includes(c)&&d.push(E)}}),d}_highlightSearchTextCore(e,t){var i=(0,x.A)("<span>").addClass(this.addWidgetPrefix(Qg)),r=e.text(),o=e[0],s=this._getStringNormalizer(),c=s(r).indexOf(s(t));if(c>=0)return o.textContent?o.textContent=r.substr(0,c):o.nodeValue=r.substr(0,c),e.after(i.text(r.substr(c,t.length))),e=(0,x.A)(I.A.createTextNode(r.substr(c+t.length))).insertAfter(i),this._highlightSearchTextCore(e,t)}_highlightSearchText(e,t,i){var r=this,o=this._getStringNormalizer(),s=r.option("searchPanel.text");t&&i&&(s=s&&r._getFormattedSearchText(i,s)),s&&r.option("searchPanel.highlightSearchText")&&r._findHighlightingTextNodes(i,e,s).forEac
1h(d=>{t?o((0,x.A)(d).text())===o(s??"")&&(0,x.A)(d).replaceWith((0,x.A)("<span>").addClass(r.addWidgetPrefix(Qg)).text((0,x.A)(d).text())):r._highlightSearchTextCore((0,x.A)(d),s)})}_renderCore(){var e=super._renderCore.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._highlightSearchText(this.getTableElement())})):this._highlightSearchText(this.getTableElement())),e}_updateCell(e,t){var{column:i}=t,o="string"!==(i.lookup&&i.lookup.dataType||i.dataType);eh(i)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._searchParams.forEach(s=>{this._highlightSearchText.apply(this,s)}),this._searchParams=[]})),this._searchParams.push([e,o,i])):this._highlightSearchText(e,o,i)),super._updateCell(e,t)}}}}});var Qf=P(8887);class e1 extends Qf.A{_optionChanged(e){switch(e.name){case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value);break;case"pageSize":var i=this.option("pageSizeChanged");i&&i(e.value)}super._optionChanged(e)}}var Ze=P(8587),se=P(1522),Ee=P(6806),nh=P(348),t1=P(505),n1=P(9228);function rn(a,e){var t,i=null!==(t=(0,t1.A)(e))&&void 0!==t?t:{};return(0,n1.R)(i[a])}function Ka(a){return rn("marginLeft",a)+rn("marginRight",a)+rn("width",a)}function ih(a){return rn("minWidth",a)}var r1=["contentTemplate","pagerProps"];var c1={},d1=a=>a&&(a.defaultProps?e=>(0,se._B)((0,se.sO)(2,a,(0,U.A)({},e))):a);let u1=(()=>{class a extends Ee.JP{constructor(t){super(t),this.parentRef=(0,se._3)(),this.pageSizesRef=(0,se._3)(),this.infoTextRef=(0,se._3)(),this.pagesRef=(0,se._3)(),this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdate
1ChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new Ee.Lt(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new Ee.Lt(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var t,i;null===(t=this._effects[0])||void 0===t||t.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(i=this._effects[1])||void 0===i||i.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var t=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return nh.A.add(t),()=>{nh.A.remove(t)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:t,displayMode:i,gridCompatibility:r,hasKnownLastPage:o,infoText:s,label:c,lightModeEnabled:d,maxPagesCount:u,onKeyDown:p,pageCount:v,pageIndex:f,pageIndexChange:O,pageSize:b,pageSizeChange:S,pageSizes:E,pagesCountText:L,pagesNavigatorVisible:G,rtlEnabled:J,showInfo:he,showNavigationButtons:ee,showPageSizes:oe,totalCount:_e,visible:be}=this.props.pagerProps;return(0,U.A)({},this.restAttributes,{pageSize:b,pageIndex:f,pageIndexChange:O,pageSizeChange:S,gridCompatibility:r,className:t,showInfo:he,infoText:s,lightModeEnabled:d,displayMode:i,maxPagesCount:u,pageCount:v,pagesCountText:L,visible:be,hasKnownLastPage:o,pagesNavigatorVisible:G,showPageSizes:oe,pageSizes:E,rtlEnabled:J,showNavigationButtons:ee,totalCount:_e,onKeyDown:p,label:c})}get parentWidth(){return this.parentRef.current?Ka(this.parentRef.current):0}updateAdaptivityProps(){var t=function l1(a){var{info:e,pageSizes:t,pages:i,parent:r}=a,o=function i1(a){var e=rn("paddingLeft",a)+rn("paddingRight",a);return rn("width",a)-e}(r),s=Ka(t),c=Ka(e),d=Ka(i);return{parent:o,pageSizes:s,info:c+rn("marginLeft",e)+rn("marginRight",e),pages:d}}({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible===this.state.infoTextVisible&&this.actualIsLargeDisplayMode===this.state.isLargeDisplayMode){var i=!(0,m.O9)(this.elementsWidth);i&&(this.elementsWidth={}),(i||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=t.pageSizes,this.elementsWidth.pages=t.pages),(i||this.state.infoTextVisible)&&(this.elementsWidth.info=t.info),this.actualIsLargeDisplayMode=function s1(a){var{pageSizes:e,pages:t,parent:i}=a;return i-(e+t)>0}((0,U.A)({parent:t.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function a1(a){var{info:e,pageSizes:t,pages:i,parent:r}=a;return r-(t+i+e)>0}((0,U.A)({},t,{info:this.elementsWidth.info})),this.setState(r=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(r=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}}get restAttributes(){return(0,Ze.A)(this.props,r1)}render(){var t=this.props;return(a=>{var{contentAttributes:e,infoTextRef:t,infoTextVisible:i,isLargeDisplayMode:r,pageSizesRef:o,pagesRef:s,parentRef:c,props:{contentTemplate:d}}=a;return d((0,U.A)({rootElementRef:c,pageSizesRef:o,infoTextRef:t,pagesRef:s,infoTextVisible:i,isLargeDisplayMode:r},e))})({props:(0,U.A)({},t,{contentTemplate:d1(t.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}return a.defaultProps=c1,a})();var rh={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return R.A.format("dxPager-ariaLabel")}},p1=Object.create(Object.prototype,(0,U.A)(Object.getOwnPropertyDescriptors(rh),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),He=Object.create(Object.prototype,(0,U.A)(Object.getOwnPropertyDescriptors(rh),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),g1=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],oh="dx-info",_1={get pageIndex(){return He.pageIndex},get pageCount(){return He.pageCount},get totalCount(){return He.totalCount}};let v1=(()=>
1{class a extends Ee.eh{constructor(t){super(t),this.state={}}get infoText(){var t;return(null!==(t=this.props.infoText)&&void 0!==t?t:"")||R.A.getFormatter("dxPager-infoText")()}get text(){var{pageCount:t,pageIndex:i,totalCount:r}=this.props;return(0,bt.GP)(this.infoText,(i+1).toString(),t.toString(),r.toString())}get restAttributes(){return(0,Ze.A)(this.props,g1)}render(){return(a=>{var{props:{rootElementRef:e},text:t}=a;return(0,se.bF)(1,"div",oh,t,0,null,null,e)})({props:(0,U.A)({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return a.defaultProps=_1,a})();var C1=P(410),co=(0,Ee.q6)(void 0),m1=["children","className","label","onClick","selected","tabIndex"],O1={className:"",label:"",tabIndex:0,selected:!1};let Xa=(()=>{class a extends Ee.JP{constructor(t){super(t),this.state={},this.widgetRef=(0,se._3)(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return this.context[co.id]?this.context[co.id]:co.defaultValue}createEffects(){return[new Ee.Lt(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new Ee.Lt(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var t,i;null===(t=this._effects[0])||void 0===t||t.update([this.keyboardContext,this.props.onClick]),null===(i=this._effects[1])||void 0===i||i.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return(0,C1.Ao)(this.widgetRef.current,this.props.onClick)}get restAttributes(){return(0,Ze.A)(this.props,m1)}render(){return(a=>{var{props:{children:e,className:t,label:i,selected:r,tabIndex:o},widgetRef:s}=a;return(0,se.bF)(1,"div",t,e,0,{tabIndex:o,role:"button","aria-label":i,"aria-current":r?"page":void 0},null,s)})({props:(0,U.A)({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return a.defaultProps=O1,a})();var sh="dx-selection",ah="dx-page-size",y1="".concat(ah," ").concat(sh),Ya=P(2243),R1=["className","index","onClick","selected"],A1={index:0,selected:!1,className:"dx-page"};let lh=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={}}get label(){return(0,bt.GP)(R.A.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:t}=this.props;return(0,Ya.g)({["".concat(this.props.className)]:!!this.props.className,[sh]:!!t})}get restAttributes(){return(0,Ze.A)(this.props,R1)}render(){return(a=>{var{className:e,label:t,props:{onClick:i,selected:r},value:o}=a;return(0,se.sO)(2,Xa,{className:e,label:t,onClick:i,selected:r,children:o})})({props:(0,U.A)({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return a.defaultProps=A1,a})();var Nt=P(3435),T1=["pageIndexes"],k1=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function ch(a,e,t){return 1===a?"high":a+e===t-1?"low":"both"}function dh(a,e,t){var i=[],r=[];switch(t){case"none":i=[...a];break;case"both":i=[0,"low",...a,"high",e-1],r=a.slice(1,-1);break;case"high":i=[0,...a,"high",e-1],r=a.slice(0,-1);break;case"low":i=[0,"low",...a,e-1],r=a.slice(1)}return{slidingWindowIndexes:a,indexesForReuse:r,pageIndexes:i}}function uh(a,e,t,i){for(var r=[],o=0;o<e;o+=1)r.push(o+a);return dh(r,t,i)}var V1={get pageIndex(){return He.pageIndex},get maxPagesCount(){return He.maxPagesCount},get pageCount(){return He.pageCount}};let L1=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get config(){return this.context[Nt.Q.id]?this.context[Nt.Q.id]:Nt.Q.defaultValue}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(t,i){var{indexesForReuse:r}=this.slidingWindowState,o=r.slice(-1)[0]<t-1,s=r.includes(i);return o&&s}generatePageIndexes(){var r,{pageCount:t,pageIndex:i}=this.props,{slidingWindowIndexes:o}=this.slidingWindowState,d=uh(r=i===o[0]?i-1:i===o[o.length-1]?i+2-4:i<4?1:i>=t-4?t-4-1:i-1,4,t,ch(r,4,t)),{pageIndexes:u}=d,p=(0,Ze.A)(d,T1);return this.slidingWindowStateHolder=p,u}isSlidingWindowMode(){var{maxPagesCount:t,pageCount:i}=this.props;return i<=4||i<=t}onPageClick(t){this.props.pageIndexChange(t)}
1get pageIndexes(){var{pageCount:t}=this.props;if(this.isSlidingWindowMode())return uh(0,t,t,"none").pageIndexes;if(this.canReuseSlidingWindow(t,this.props.pageIndex)){var{slidingWindowIndexes:i}=this.slidingWindowState;return dh(i,t,ch(i[0],4,t)).pageIndexes}return this.generatePageIndexes()}get pages(){var t,{pageIndex:i}=this.props,r=s=>{var c="low"===s||"high"===s?null:{index:s,onClick:()=>this.onPageClick(s),selected:i===s};return{key:s.toString(),pageProps:c}};return(null!==(t=this.config)&&void 0!==t&&t.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(s=>r(s))}get restAttributes(){return(0,Ze.A)(this.props,k1)}render(){return(a=>{var{pages:e}=a,t=e.map(i=>{var{key:r,pageProps:o}=i;return o?(0,se.sO)(2,lh,{index:o.index,selected:o.selected,onClick:o.onClick},r):(0,se.bF)(1,"div","dx-separator",". . .",16,null,r)});return(0,se.nl)(t,0)})({props:(0,U.A)({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return a.defaultProps=V1,a})();var ph=P(8854),gh=P(9060),ji={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===Je.A.real().deviceType&&!Je.A.isSimulator()}},Ja={label:"",get labelMode(){return(0,je.gx)((0,je.ss)())?"floating":"static"}},q1=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","invalidValueMessage","isDirty","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Qe=Object.create(Object.prototype,(0,U.A)(Object.getOwnPropertyDescriptors(gh.eH),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),z1={get defaultValue(){return Qe.defaultValue},get readOnly(){return Qe.readOnly},get name(){return Qe.name},get validationError(){return Qe.validationError},get validationErrors(){return Qe.validationErrors},get validationMessageMode(){return Qe.validationMessageMode},get validationMessagePosition(){return Qe.validationMessagePosition},get validationStatus(){return Qe.validationStatus},get isValid(){return Qe.isValid},get isDirty(){return Qe.isDirty},get inputAttr(){return Qe.inputAttr},get className(){return Qe.className},get activeStateEnabled(){return ji.activeStateEnabled},get disabled(){return Qe.disabled},get focusStateEnabled(){return ji.focusStateEnabled},get hoverStateEnabled(){return ji.hoverStateEnabled},get tabIndex(){return Qe.tabIndex},get visible(){return Qe.visible},get label(){return Ja.label},get labelMode(){return Ja.labelMode},isReactComponentWrapper:!0};let G1=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var t=(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Ze.A)(t,q1)}render(){return(a=>{var{componentProps:e,restAttributes:t}=a;return(0,se._B)((0,se.sO)(2,ph.FU,(0,U.A)({componentType:E_.A,componentProps:e,templateNames:[]},t)))})({props:(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return a.defaultProps=z1,a})();function hh(a,e){return a+10*Math.max(...e).toString().length}var j1=["inputAttr","pageCount","pageIndex","pageIndexChange","pagesCountText"],U1="".concat(oh,"  dx-info-text"),_h="dx-page-index",X1={inputAttr:Object.freeze({"aria-label":R.A.format("dxPager-ariaPageNumber")})},Y1={get pageIndex(){return He.pageIndex},get pageCount(){return He.pageCount},get inputAttr(){return X1.inputAttr}};let J1=(()=>{class a extends Ee.JP{constructor(t){super(t),this.pageIndexRef=(0,se._3)(),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}
1createEffects(){return[new Ee.Lt(this.updateWidth,[this.state.minWidth])]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.state.minWidth])}updateWidth(){var t,i=null===(t=this.pageIndexRef.current)||void 0===t?void 0:t.querySelector(".".concat(_h));this.setState(r=>({minWidth:i&&ih(i)||r.minWidth}))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:t}=this.props;return hh(this.state.minWidth,[t])}get pagesCountText(){var t;return(null!==(t=this.props.pagesCountText)&&void 0!==t?t:"")||R.A.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(t){this.props.pageIndexChange(t-1)}get restAttributes(){return(0,Ze.A)(this.props,j1)}render(){return(a=>{var{pageIndexRef:e,pagesCountText:t,props:{inputAttr:i,pageCount:r},selectLastPageIndex:o,value:s,valueChange:c,width:d}=a;return(0,se.bF)(1,"div","dx-light-pages",[(0,se.sO)(2,G1,{className:_h,min:1,max:Math.max(r,s),width:d,value:s,valueChange:c,inputAttr:i}),(0,se.bF)(1,"span",U1,t,0),(0,se.sO)(2,lh,{className:"dx-pages-count",selected:!1,index:r-1,onClick:o})],4,null,null,e)})({props:(0,U.A)({},this.props),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}return a.defaultProps=Y1,a})();var Z1=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],Za="dx-navigate-button",vh="dx-prev-button",Ch="dx-next-button",mh="dx-button-disable",t0={nextEnabledClass:"".concat(Za," ").concat(Ch),prevEnabledClass:"".concat(Za," ").concat(vh),nextDisabledClass:"".concat(mh," ").concat(Za," ").concat(Ch),prevDisabledClass:"".concat(mh," ").concat(Za," ").concat(vh)},n0={next:"prev",prev:"next"},s0={get pageIndex(){return He.pageIndex},get maxPagesCount(){return He.maxPagesCount},get pageCount(){return He.pageCount},get hasKnownLastPage(){return He.hasKnownLastPage},get showNavigationButtons(){return He.showNavigationButtons},get totalCount(){return He.totalCount},get isLargeDisplayMode(){return true}};let a0=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}get config(){return this.context[Nt.Q.id]?this.context[Nt.Q.id]:Nt.Q.defaultValue}pageIndexChange(t){this.canNavigateToPage(t)&&this.props.pageIndexChange(t)}getButtonProps(t){var i,r=null!==(i=this.config)&&void 0!==i&&i.rtlEnabled?n0[t]:t,o=this.canNavigateTo(r);return{className:t0["".concat(t).concat(o?"Enabled":"Disabled","Class")],tabIndex:o?0:-1,navigate:()=>this.navigateToPage(r)}}canNavigateToPage(t){return this.props.hasKnownLastPage?t>=0&&t<=this.props.pageCount-1:t>=0}getNextPageIndex(t){return this.props.pageIndex+function r0(a){return"next"===a?1:-1}(t)}canNavigateTo(t){return this.canNavigateToPage(this.getNextPageIndex(t))}navigateToPage(t){this.pageIndexChange(this.getNextPageIndex(t))}get renderPrevButton(){var{isLargeDisplayMode:t,showNavigationButtons:i}=this.props;return!t||i}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=this.getButtonProps("prev")}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=this.getButtonProps("next")}get restAttributes(){return(0,Ze.A)(this.props,Z1)}componentWillUpdate(t,i,r){(this.context[Nt.Q.id]!==r[Nt.Q.id]||this.props.hasKnownLastPage!==t.hasKnownLastPage||this.props.pageCount!==t.pageCount||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[Nt.Q.id]!==r[Nt.Q.id]||this.props.hasKnownLastPage!==t.hasKnownLastPage||this.props.pageCount!==t.pageCount||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(a=>{var{nextButtonProps:e,pageIndexChange:t,prevButtonProps:i,props:{isLargeDisplayMode:r,maxPagesCount:o,pageCount:s,pageIndex:c,pagesCountText:d},renderNextButton:u,renderPrevButton:p}=a;return(0,se.nl)([p&&(0,se.sO)(2,Xa,{label:R.A.getFormatter("dxPager-prevPage")(),className:i.className,tabIndex:i.tabIndex,onClick:i.navigate}),r&&(0,se.sO)(2,L1,{maxPagesCount:o,pageCount:s,pageIndex:c,pageIndexChange:t}),!r&&(0,se.sO)(2,J1,{pageCount:s,pageIndex:c,pageIndexChange:t,pagesCountText:d}),u&&(0,se.sO)(2,Xa,{label:R.A.getFormatter("dxPager-nextPage")(),className:e.className,tabIndex:e.tabIndex,onClick:e.navigate})],0)})({props:(0,U.A)({},this.props),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}return a.defaultProps=s0,a})();var l0=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","isDirty","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],Ue=Object.create(Object.prototype,(0,U.A)(Object.getOwnPropertyDescriptors(gh.eH),Ob
1ject.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),d0={get placeholder(){return Ue.placeholder},get hoverStateEnabled(){return ji.hoverStateEnabled},get searchEnabled(){return Ue.searchEnabled},get defaultValue(){return Ue.defaultValue},get readOnly(){return Ue.readOnly},get name(){return Ue.name},get validationError(){return Ue.validationError},get validationErrors(){return Ue.validationErrors},get validationMessageMode(){return Ue.validationMessageMode},get validationMessagePosition(){return Ue.validationMessagePosition},get validationStatus(){return Ue.validationStatus},get isValid(){return Ue.isValid},get isDirty(){return Ue.isDirty},get inputAttr(){return Ue.inputAttr},get className(){return Ue.className},get activeStateEnabled(){return ji.activeStateEnabled},get disabled(){return Ue.disabled},get focusStateEnabled(){return ji.focusStateEnabled},get tabIndex(){return Ue.tabIndex},get visible(){return Ue.visible},get label(){return Ja.label},get labelMode(){return Ja.labelMode},isReactComponentWrapper:!0};let u0=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var t=(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Ze.A)(t,l0)}render(){return(a=>{var{componentProps:e,restAttributes:t}=a;return(0,se._B)((0,se.sO)(2,ph.FU,(0,U.A)({componentType:I_.A,componentProps:e,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},t)))})({props:(0,U.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return a.defaultProps=d0,a})();var p0=["inputAttr","pageSize","pageSizeChange","pageSizes","parentRef"],h0={inputAttr:Object.freeze({"aria-label":R.A.format("dxPager-ariaPageSize")})},_0={get pageSize(){return He.pageSize},get inputAttr(){return h0.inputAttr}};let v0=(()=>{class a extends Ee.JP{constructor(t){super(t),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new Ee.Lt(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])}updateWidth(){this.setState(t=>({minWidth:ih(this.props.parentRef.current)||t.minWidth}))}get width(){return hh(this.state.minWidth,this.props.pageSizes.map(t=>t.value))}get restAttributes(){return(0,Ze.A)(this.props,p0)}render(){return(a=>{var{props:{inputAttr:e,pageSize:t,pageSizeChange:i,pageSizes:r},width:o}=a;return(0,se.sO)(2,u0,{displayExpr:"text",valueExpr:"value",dataSource:r,value:t,valueChange:i,width:o,inputAttr:e})})({props:(0,U.A)({},this.props),width:this.width,restAttributes:this.restAttributes})}}return a.defaultProps=_0,a})();
1var C0=["pageSize","pageSizeChange","pageSizes"],f0={get pageSize(){return He.pageSize}};let O0=(()=>{class a extends Ee.eh{constructor(t){super(t),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{var{pageSize:t,pageSizes:i}=this.props;return i.map((r,o)=>{var{text:s,value:c}=r;return{className:(0,Ya.g)({[c===t?y1:ah]:!0,"dx-first-child":0===o}),click:this.onPageSizeChange(c),label:(0,bt.GP)(R.A.getFormatter("dxPager-pageSize"),c||R.A.getFormatter("dxPager-pageSizesAllText")),text:s}})})()}onPageSizeChange(t){return()=>(this.props.pageSizeChange(t),this.props.pageSize)}get restAttributes(){return(0,Ze.A)(this.props,C0)}componentWillUpdate(t,i,r){(this.props.pageSize!==t.pageSize||this.props.pageSizes!==t.pageSizes||this.props.pageSizeChange!==t.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(a=>{var{pageSizesText:e}=a;return(0,se.nl)(e.map(t=>{var{className:i,click:r,label:o,text:s}=t;return(0,se.sO)(2,Xa,{className:i,label:o,onClick:r,children:s},s)}),0)})({props:(0,U.A)({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return a.defaultProps=f0,a})();var x0=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],w0={get pageSize(){return He.pageSize},get pageSizes(){return He.pageSizes},get isLargeDisplayMode(){return true}};let S0=(()=>{class a extends Ee.JP{constructor(t){super(t),this.state={},this.htmlRef=(0,se._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new Ee.Lt(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:t}=this.props;t&&(t.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:t}=this.props;return t.map(i=>"all"===i||0===i?{text:R.A.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(i),value:i})})()}get restAttributes(){return(0,Ze.A)(this.props,x0)}componentWillUpdate(t,i,r){super.componentWillUpdate(),this.props.pageSizes!==t.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(a=>{var{htmlRef:e,normalizedPageSizes:t,props:{isLargeDisplayMode:i,pageSize:r,pageSizeChange:o}}=a;return(0,se.bF)(1,"div","dx-page-sizes",[i&&(0,se.sO)(2,O0,{pageSizes:t,pageSize:r,pageSizeChange:o}),!i&&(0,se.sO)(2,v0,{parentRef:e,pageSizes:t,pageSize:r,pageSizeChange:o})],0,null,null,e)})({props:(0,U.A)({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return a.defaultProps=w0,a})();var y0=P(7476),E0=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],I0=Object.create(Object.prototype,(0,U.A)(Object.getOwnPropertyDescriptors(He),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let A0=(()=>{class a extends Ee.JP{constructor(t){super(t),this.state={},this.widgetRootElementRef=(0,se._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new Ee.Lt(this.setRootElementRef,[])]}getChildContext(){return(0,U.A)({},this.context,{[co.id]:this.keyboardAction||co.defaultValue})}setRootElementRef(){var{rootElementRef:t}=this.props;t&&(t.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>t=>{var i,r;null===(i=(r=this.props).onKeyDown)||void 0===i||i.call(r,t)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction={registerKeyboardAction:(t,i)=>lt("pager",this.createFakeInstance(),t,void 0,i)}}get infoVisible(){var{infoTextVisible:t,showInfo:i}=this.props;return i&&t}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:t,lightModeEnabled:i}=this.props;return"adaptive"===t&&void 0!==i?i?"compact":"full":t}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){var t=this.normalizedDisplayMode;return"adaptive"===t?this.props.isLargeDisplayMode:"full"===t}get classes(){var t={["".concat(this.props.className)]:!!this.props.className,"dx-pager":!0,"dx-light-mode":!this.isLargeDisplayMode};return(0,Ya.g)(t)}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return(0,Ze.A)(this.props,E0)}componentWillUpdate(t,i,r){super.componentWillUpdate(),this.props.onKeyDown!==t.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(a=>{var{aria:e,classes:t,infoVisible:i,isLargeDisplayMode:r,pageIndexSelectorVisible:o,pagesContainerVisibility:s,pagesContainerVisible:c,props:{hasKnownLastPage:d,infoText:u,infoTextRef:p,maxPagesCount:v,pageCount:f,pageIndex:O,pageIndexChange:b,pageSize:S,pageSizeChange:E,pageSizes:L,pageSizesRef:G,pagesCountText:J,pagesRef:he,rtlEnabled:ee,showNavigationButtons:oe,showPageSizes:_e,totalCount:be,visible:ve},restAttributes:$e,widgetRootElementRef:zt}=a;return(0,se._B)((0,se.sO)(2,y0.x0,(0,U.A)({rootElementRef:zt,rtlEnabled:ee,classes:t,visible:ve,aria:e},$e,{children:[_e&&(0,se.sO)(2,S0,{rootElementRef:G,isLargeDisplayMode:r,pageSize:S,pageSizeChange:E,pageSizes:L}),c&&(0,se.bF)(1,"div","dx-pages",[i&&(0,se.sO)(2,v1,{rootElementRef:p,infoText:u,pageCount:f,pageIndex:O,totalCount:be}),o&&(0,se.bF)(1,"div","dx-page-indexes",(0,se.sO)(2,a0,{hasKnownLastPage:d,isLargeDisplayMode:r,maxPagesCount:v,pageCount:f,pageIndex:O,pageIndexChange:b,pagesCountText:J,showNavigationButtons:oe,totalCount:be}),2,null,null,he)],0,{style:(0,Ee.gs)({visibility:s})})]})))})({props:(0,U.A)({},this.props),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}return a.defaultProps=I0,a})();var T0=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];let F0=(()=>
1{class a extends Ee.oe{constructor(t){super(t),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[(0,Ee.h2)()]}pageIndexChange(t){var i,r;this.props.gridCompatibility?(this.setState(o=>({pageIndex:i=t+1})),this.props.pageIndexChange(i)):(this.setState(o=>({pageIndex:r=t})),this.props.pageIndexChange(r))}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(t){var i;this.setState(r=>({pageSize:i=t})),this.props.pageSizeChange(i)}get className(){return this.props.gridCompatibility?(0,Ya.g)({"dx-datagrid-pager":!0,["".concat(this.props.className)]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(0,U.A)({},(0,U.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:t=>this.pageIndexChange(t),pageSizeChange:t=>this.pageSizeChange(t)})}get restAttributes(){var t=(0,U.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex});return(0,Ze.A)(t,T0)}componentWillUpdate(t,i,r){super.componentWillUpdate(),(this.props!==t||this.props.gridCompatibility!==t.gridCompatibility||this.props.className!==t.className||this.state.pageIndex!==i.pageIndex||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange||this.props.pageSizeChange!==t.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(a=>{var{pagerProps:e,restAttributes:t}=a;return(0,se._B)((0,se.sO)(2,u1,(0,U.A)({contentTemplate:A0,pagerProps:e},t)))})({props:(0,U.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}return a.defaultProps=p1,a})();class fh extends e1{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return F0}}(0,jn.A)("dxPager",fh);const D0=fh;var Oh=function(a){return 1+(parseInt(a.pageIndex())||0)};W.registerModule("pager",{defaultOptions:()=>({pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:R.A.format("dxPager-ariaLabel")}}),views:{pagerView:class q0 extends ge.View{init(){var e=this.getController("data");e.changed.add(t=>{if(t&&t.repaintChangesOnly){var i=this._pager;i?i.option({pageIndex:Oh(e),pageSize:e.pageSize(),pageCount:e.pageCount(),totalCount:e.totalCount(),hasKnownLastPage:e.hasKnownLastPage()}):this.render()}else(!t||"update"!==t.changeType&&"updateSelection"!==t.changeType&&"updateFocusedRow"!==t.changeType)&&(this._pager=null,this.render())})}dispose(){this._pager=null}optionChanged(e){var{name:t}=e,i="pager"===t,r="paging"===t,o="dataSource"===t,s="scrolling"===t,c=this.getController("data");if(i||r||s||o){if(e.handled=!0,c.skipProcessingPagingChange(e.fullName))return;(i||r)&&(this._pageSizes=null),o||(this._pager=null,this._invalidate(),(0,fe.Vd)()&&i&&this.component&&this.component.resize())}}
1_renderCore(){var e,t=this.element().addClass(this.addWidgetPrefix("pager")),i=null!==(e=this.option("pager"))&&void 0!==e?e:{},r=this.getController("data"),o=this.getController("keyboardNavigation"),s={maxPagesCount:10,pageIndex:Oh(r),pageCount:r.pageCount(),pageSize:r.pageSize(),showPageSizes:i.showPageSizeSelector,showInfo:i.showInfo,displayMode:i.displayMode,pagesNavigatorVisible:i.visible,showNavigationButtons:i.showNavigationButtons,label:i.label,pageSizes:this.getPageSizes(),totalCount:r.totalCount(),hasKnownLastPage:r.hasKnownLastPage(),pageIndexChanged(c){r.pageIndex()!==c-1&&r.pageIndex(c-1)},pageSizeChanged(c){r.pageSize(c)},onKeyDown:c=>o&&o.executeAction("onKeyDown",c),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,m.O9)(i.infoText)&&(s.infoText=i.infoText),this._pager?this._pager.repaint():(0,fe.Vd)()?this._pager=this._createComponent(t,D0,s):t.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')}getPager(){return this._pager}getPageSizes(){var e=this.getController("data"),t=this.option("pager"),i=t&&t.allowedPageSizes,r=e.pageSize();return(!(0,m.O9)(this._pageSizes)||!this._pageSizes.includes(r))&&(this._pageSizes=[],t&&(Array.isArray(i)?this._pageSizes=i:i&&r>1&&(this._pageSizes=[Math.floor(r/2),r,2*r]))),this._pageSizes}isVisible(){var e=this.getController("data"),t=this.option("pager"),i=t&&t.visible,r=this.option("scrolling");return"auto"===i&&(i=(!r||"virtual"!==r.mode&&"infinite"!==r.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),!!i}getHeight(){return this.getElementHeight()}}}});var xh=P(3930),Ui=P(9393),N0=P(9049),Ph="columns-separator-transparent",bh="drag-header",_u="drag-action",Mh="tracker",wh="drop-highlight",Sh="dx-block-separator",yh="dx-header-row",nt="dxDataGridResizingReordering",uo=function(a){return a.option("allowColumnResizing")||a.getController("columns").isColumnOptionUsed("allowResizing")},Rh=function(a){return a.option("allowColumnReordering")||a.getController("columns").isColumnOptionUsed("allowReordering")};class Ih extends ge.View{_renderSeparator(){}_renderCore(e){var t=super._renderCore(e);return this._isShown=!0,this._renderSeparator(),this.hide(),t}show(){this._isShown=!0}hide(){this._isShown=!1}height(e){var t=this.element();if(t){if(!(0,m.O9)(e))return(0,F.Oq)(t);(0,F.k$)(t,e)}}width(e){var t=this.element();if(t){if(!(0,m.O9)(e))return(0,F.RG)(t);(0,F.zj)(t,e)}}}var Cu=function(a){return"widget"!==a.option("columnResizingMode")};W.registerModule("columnsResizingReordering",{views:{columnsSeparatorView:class W0 extends Ih{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._init()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=uo(this),this.hide(!0))),super.optionChanged(e)}_renderSeparator(){super._renderSeparator(),this.element().addClass(this.addWidgetPrefix("columns-separator"))}_subscribeToCallback(){var t,e=this;e._positionChanged=function(i){(t=e.element())&&(t.css({top:i.top}),(0,F.k$)(t,i.height))},e._tablePositionController.positionChanged.add(e._positionChanged)}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_init(){this._isTransparent=uo(this),this.isVisible()&&this._subscribeToCallback()}isVisible(){return this.option("showColumnHeaders")&&(Rh(this)||uo(this))}show(){var e=this.element();e&&!this._isShown&&(this._isTransparent?e.removeClass(this.addWidgetPrefix(Ph)):e.show()),super.show()}hide(e){var t=this.element(),i=this.addWidgetPrefix(Ph);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(i),t.css("left",""),t.show()):(t.hasClass(i)&&t.removeClass(i),t.hide())),super.hide()}moveByX(e){var t=this.element();t&&t.css("left",null===e?0:e-this._parentElement().offset().left)}changeCursor(e){e=(0,m.O9)(e)?e:"";var t=this.element();t&&t.css("cursor",e)}},blockSeparatorView:class K0 extends Ih{init(){super.init(),this.getController("data").loadingChanged.add(t=>{t||this.hide()})}
1_renderSeparator(){super._renderSeparator(),this.element().addClass(Sh).html("&nbsp;")}hide(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children(".".concat(Sh)).length&&e.prepend(this.element()),super.hide()}isVisible(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled}show(e){var i,t=this.element();if(t&&!this._isShown)switch(e){case"group":this.element().css("display","block");break;case"columnChooser":i={width:"100%",display:"block"},xh.A.stop(t,!0),xh.A.animate(t,{type:"slide",from:{width:0,display:i.display},to:i,duration:300,easing:"swing"});break;default:t.css("display","")}super.show()}},draggingHeaderView:class X0 extends ge.View{init(){super.init();var e=this.getController("data");this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this._columnsController=this.getController("columns"),this._isDragging=!1,e.loadingChanged.add(t=>{var i=this.element();!t&&i&&i.hide()})}isDragging(){return this._isDragging}_getDraggingPanelByPos(e){var t;return(0,w.__)(this._dragOptions.draggingPanels,(i,r)=>{if(r){var o=r.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=r,!1}}),t}_renderCore(){this.element().addClass("".concat(this.addWidgetPrefix(bh)," ").concat(this.addWidgetPrefix("text-content")," ").concat("dx-widget")).hide()}_resetTargetColumnOptions(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY}_getVisibleIndexObject(e,t){return(0,m.O9)(e)?{columnIndex:t,rowIndex:e}:t}dispose(){var e=this.element();this._dragOptions=null,e&&e.parent().find(".".concat(this.addWidgetPrefix(bh))).remove()}isVisible(){var e=this._columnsController.getCommonSettings();return this.option("showColumnHeaders")&&(Rh(this)||e.allowGrouping||e.allowHiding)}dragHeader(e){var{columnElement:t}=e,i=!!e.sourceColumn.type;this._isDragging=!0,this._dragOptions=e,this._dropOptions={sourceIndex:e.index,sourceColumnIndex:this._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var r=I.A.getDocument();this._onSelectStart=r.onselectstart,r.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:t&&t.css("textAlign"),height:t&&(i&&t.get(0).clientHeight||(0,F.Oq)(t)),width:t&&(i&&t.get(0).clientWidth||(0,F.RG)(t)),whiteSpace:t&&t.css("whiteSpace")}).addClass(this.addWidgetPrefix(_u)).toggleClass("dx-drag-command-cell",i).text(i?"":e.sourceColumn.caption),this.element().appendTo(N0.A.getSwatchContainer(t))}moveHeader(e){var t=e.event,{that:i}=t.data,r=(0,D.rw)(t),o=!!i._columnsResizerViewController&&i._columnsResizerViewController.isResizing(),s=i._dragOptions;if(i._isDragging&&!o){var c=i.element(),d=Math.abs(r.x-s.columnElement.offset().left-s.deltaX),u=Math.abs(r.y-s.columnElement.offset().top-s.deltaY);(c.is(":visible")||d>5||u>5)&&(c.show(),c.css({left:r.x-s.deltaX,top:r.y-s.deltaY}),i.dockHeader(r)),t.preventDefault()}}dockHeader(e){var t=this._getDraggingPanelByPos(e),i=this._controller,r=this._dropOptions,o=this._dragOptions;if(t){var s=this.option("rtlEnabled"),c="columnChooser"===t.getName(),d=c?"y":"x",u=t.getName(),p="headers"===u?o.rowIndex:void 0,{sourceColumn:v}=o,f=t.getColumnElements(p,v?.ownerBand)||[],O=o.pointsByTarget=o.pointsByTarget||{},b="columnChooser"===u?[]:O[u]||i._generatePointsByColumns((0,A.X)({},o,{targetDraggingPanel:t,columns:t.getColumns(p),columnElements:f,isVerticalOrientation:c,startColumnIndex:"headers"===u&&(0,x.A)(f[0]).index()}));if(O[u]=b,r.targetLocation=u,b.length>0)for(var S=0;S<b.length;S++){var E=b[S+1]&&(b[S][d]+b[S+1][d])/2;if(void 0===E||(s&&"x"===d?e[d]>E:e[d]<E)){r.targetColumnIndex=this._getVisibleIndexObject(p,b[S].columnIndex),f[S]?(r.targetColumnElement=f.eq(S),r.isLast=!1):(r.targetColumnElement=f.last(),r.isLast=!0),r.posX=b[S].x,r.posY=b[S].y,i.dock(r);break}}else this._resetTargetColumnOptions(),i.dock(r)}}dropHeader(e){var t=e.event,{that:i}=t.data,r=i._controller;
1i.element().hide(),r&&i._isDragging&&r.drop(i._dropOptions),i.element().appendTo(i._parentElement()),i._dragOptions=null,i._dropOptions=null,i._isDragging=!1,I.A.getDocument().onselectstart=i._onSelectStart||null}},trackerView:class $0 extends ge.View{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),super.optionChanged(e)}_renderCore(){var e=super._renderCore();return this.element().addClass(this.addWidgetPrefix(Mh)),this.hide(),e}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_subscribeToCallback(){var e=this;e._positionChanged=function(t){var i=e.element();i&&i.hasClass(e.addWidgetPrefix(Mh))&&(i.css({top:t.top}),(0,F.k$)(i,t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)}isVisible(){return uo(this)}show(){this.element().show()}hide(){this.element()&&this.element().hide()}setHeight(e){(0,F.k$)(this.element(),e)}}},controllers:{draggingHeader:class Z0 extends ge.ViewController{init(){super.init(),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._columnHeadersView=this.getView("columnHeadersView"),this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._draggingHeaderView=this.getView("draggingHeaderView"),this._rowsView=this.getView("rowsView"),this._blockSeparatorView=this.getView("blockSeparatorView"),this._headerPanelView=this.getView("headerPanel"),this._columnChooserView=this.getView("columnChooserView");var e=()=>{if(this._draggingHeaderView){var t=[this._columnChooserView,this._columnHeadersView,this._headerPanelView];this._unsubscribeFromEvents(this._draggingHeaderView,t),this._subscribeToEvents(this._draggingHeaderView,t)}};this._columnHeadersView.renderCompleted.add(e),this._headerPanelView&&this._headerPanelView.renderCompleted.add(e),this._columnChooserView&&this._columnChooserView.renderCompleted.add(e)}dispose(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}_generatePointsByColumns(e){var t=this;return this.isCustomGroupColumnPosition=this.checkIsCustomGroupColumnPosition(e),q.getPointsByColumns(e.columnElements,r=>t._pointCreated(r,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn),e.isVerticalOrientation,e.startColumnIndex)}checkIsCustomGroupColumnPosition(e){for(var t=!0,i=0;i<e.columns.length;i+=1){var r=e.columns[i];if("expand"===r.command&&!t)return!0;r.command||(t=!1)}return!1}_pointCreated(e,t,i,r){var o,s=t[e.columnIndex],c=t[e.columnIndex-1],d="expand"===c?.command,u="expand"===s?.command&&"expand"!==c?.command,p=r&&!r.allowReordering,v=!s?.allowReordering&&!c?.allowReordering;switch(i){case"columnChooser":return!0;case"headers":if(p)return!0;if(!u)return d||v;if(this.isCustomGroupColumnPosition)return!1;for(;"expand"===(null===(o=t[e.columnIndex])||void 0===o?void 0:o.command);)e.columnIndex+=1;return!1;default:return 0===t.length}}_subscribeToEvents(e,t){var i=this;(0,w.__)(t,(r,o)=>{if(o)for(var s,c=o.getRowCount?o.getRowCount():1,d=o.getName(),u=function(f,O){if(O){var b=(0,x.A)(O),S=s[f];S&&o.allowDragging(S)&&(b.addClass(i.addWidgetPrefix(_u)),n.A.on(b,(0,D.b4)(Ui.ni,nt),i.createAction(E=>{var L=E.event,G=(0,D.rw)(L);e.dragHeader({deltaX:G.x-(0,x.A)(L.currentTarget).offset().left,deltaY:G.y-(0,x.A)(L.currentTarget).offset().top,sourceColumn:S,index:S.index,columnIndex:f,columnElement:b,sourceLocation:d,draggingPanels:t,rowIndex:i._columnsController.getRowIndex(S.index,!0)})})),n.A.on(b,(0,D.b4)(Ui.Cy,nt),{that:e},i.createAction(e.moveHeader)),n.A.on(b,(0,D.b4)(Ui._N,nt),{that:e},i.createAction(e.dropHeader)))}},p=0;p<c;p++){var v=o.getColumnElements(p)||[];v.length&&(s=o.getColumns(p)||[],(0,w.__)(v,u))}})}_unsubscribeFromEvents(e,t){var i=this;(0,w.__)(t,(r,o)=>{if(o){var s=o.getColumnElements()||[];(0,w.__)(s,(c,d)=>{var u=(0,x.A)(d);n.A.off(u,(0,D.b4)(Ui.ni,nt)),n.A.off(u,(0,D.b4)(Ui.Cy,nt)),n.A.off(u,(0,D.b4)(Ui._N,nt)),u.removeClass(i.addWidgetPrefix(_u))})}})}_getSeparator(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView}hideSeparators(e){var t=this._blockSeparatorView,i=this._columnsSeparatorView;this._animationColumnIndex=void 0,t&&t.hide(),"block"!==e&&i&&i.hide()}allowDrop(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}drag(e){var{sourceIndex:t}=e,{sourceLocation:i}=e,{sourceColumnElement:r}=e,o=this._columnHeadersView,s=this._rowsView;r&&(r.css({opacity:.5}),"headers"===i&&(o&&o.setRowsOpacity(t,.5),s&&s.setRowsOpacity(t,.5)))}dock(e){var t=this,i=(0,m.Gv)(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,{sourceLocation:r}
1=e,{targetLocation:o}=e,s=t._getSeparator(o),c=i>=0;t._columnHeadersView.element().find(".".concat(yh)).toggleClass(t.addWidgetPrefix(wh),"headers"!==r&&"headers"===o&&!c),s&&(t.allowDrop(e)&&c?"group"===o||"columnChooser"===o?t._animationColumnIndex!==i&&(t.hideSeparators(),s.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=i,s.show(o)):(t.hideSeparators("block"),t._tablePositionController.update(e.posY),s.moveByX(e.posX-s.width()),s.show()):t.hideSeparators())}drop(e){var{sourceColumnElement:t}=e;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find(".".concat(yh)).removeClass(this.addWidgetPrefix(wh))),this.allowDrop(e)){var i=this._getSeparator(e.targetLocation);i&&i.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}}},tablePosition:class J0 extends ge.ViewController{constructor(e){super(e),this.positionChanged=(0,Ye.A)()}init(){super.init(),this._columnsResizerController=this.getController("columnsResizer"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView"),this._pagerView=this.getView("pagerView"),this._rowsView.resizeCompleted.add(()=>{if(this.option("allowColumnResizing")){var e=this._columnsResizerController._targetPoint;this.update(e?e.y:null)}})}update(e){var t={},i=this._columnHeadersView.element(),r=i&&i.offset(),o=r&&r.top||0,s=(0,m.O9)(e)?Math.abs(e-o):0,c=this._columnHeadersView?this._columnHeadersView.getHeight():0,d=this._rowsView.getScrollbarWidth(!0),u=this._rowsView?this._rowsView.height()-d:0,p=this.component.getView("draggingHeaderView");t.height=c,(this._columnsResizerController.isResizing()||p.isDragging())&&(t.height+=u-s),null!==e&&i&&i.length&&(t.top=i[0].offsetTop+s),this.positionChanged.fire(t)}},columnsResizer:class Y0 extends ge.ViewController{init(){this._subscribesToCallbacks=[],uo(this)&&this._init()}dispose(){this._unsubscribes(),super.dispose()}optionChanged(e){super.optionChanged(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())}_isHeadersRowArea(e){if(this._columnHeadersView){var t=this._columnHeadersView.element();if(t){var i=t.offset().top,r=this._columnHeadersView.getHeadersRowHeight();return e>=i&&e<=i+r}}return!1}_isRtlParentStyle(){var e;return this.option("rtlEnabled")&&"rtl"===(null===(e=this._$parentContainer)||void 0===e?void 0:e.parent().css("direction"))}_pointCreated(e,t,i){var r=Cu(this),o=this.option("rtlEnabled"),s=this._isRtlParentStyle(),c=r||!o||s?1:0;if(e.index>=c&&e.index<t+(r||o&&!s?0:1)){e.columnIndex-=c;var d=i[e.columnIndex]||{};return!(r?d.allowResizing&&(i[e.columnIndex+1]||{}).allowResizing:d.allowResizing)}return!0}_getTargetPoint(e,t,i){if(e)for(var r=0;r<e.length;r++)if((e[r].x!==e[0].x||!e[r+1]||e[r].x!==e[r+1].x)&&e[r].x-i<=t&&t<=e[r].x+i)return e[r];return null}_moveSeparator(e){var t,i=e.event,r=i.data,o=r._columnsSeparatorView.width(),s=Cu(r),c=o/2,d=r._$parentContainer.offset(),u=d.left,p=(0,D.rw)(i),v=r.option("rtlEnabled"),f=this._isRtlParentStyle(),O=null===(t=r._draggingHeaderView)||void 0===t?void 0:t.isDragging();if(r._isResizing&&r._resizingInfo){if((u<=p.x||!s&&f)&&(!s||p.x<=u+(0,F.RG)(r._$parentContainer))&&r._updateColumnsWidthIfNeeded(p.x)){var b=r._columnHeadersView.getColumnElements().eq(r._resizingInfo.currentColumnIndex),S=b[0];if(S){var E=S.getBoundingClientRect().width;r._columnsSeparatorView.moveByX(b.offset().left+((s||f)&&v?0:E)),r._tablePositionController.update(r._targetPoint.y),i.preventDefault()}}}else O||(r._isHeadersRowArea(p.y)?(r._previousParentOffset&&(r._previousParentOffset.left!==d.left||r._previousParentOffset.top!==d.top)&&r.pointsByColumns(null),r._targetPoint=r._getTargetPoint(r.pointsByColumns(),p.x,o),r._previousParentOffset=d,r._isReadyResizing=!1,r._targetPoint?(r._columnsSeparatorView.changeCursor("col-resize"),r._columnsSeparatorView.moveByX(r._targetPoint.x-c),r._tablePositionController.update(r._targetPoint.y),r._isReadyResizing=!0,i.preventDefault()):(r._columnsSeparatorView.changeCursor(
1),r._columnsSeparatorView.moveByX(null))):(r.pointsByColumns(null),r._isReadyResizing=!1,r._columnsSeparatorView.changeCursor(),r._columnsSeparatorView.moveByX(null)))}_endResizing(e){var i=e.event.data;i._isResizing&&(i.pointsByColumns(null),i._resizingInfo=null,i._columnsSeparatorView.hide(),i._columnsSeparatorView.changeCursor(),i._trackerView.hide(),i._isReadyResizing=!1,i._isResizing=!1)}_getNextColumnIndex(e){return e+1}_setupResizingInfo(e){var t=this._targetPoint.columnIndex,i=this._getNextColumnIndex(t),r=this._columnHeadersView.getHeaderElement(t),o=this._columnHeadersView.getHeaderElement(i);this._resizingInfo={startPosX:e,currentColumnIndex:t,currentColumnWidth:r&&r.length>0?(0,De.N)(r[0]).width:0,nextColumnIndex:i,nextColumnWidth:o&&o.length>0?(0,De.N)(o[0]).width:0}}_startResizing(e){var t=e.event,i=t.data,r=(0,D.rw)(t);if((0,D.kH)(t)&&(i._isHeadersRowArea(r.y)?(i._targetPoint=i._getTargetPoint(i.pointsByColumns(),r.x,10),i._targetPoint&&(i._columnsSeparatorView.moveByX(i._targetPoint.x-i._columnsSeparatorView.width()/2),i._isReadyResizing=!0)):i._isReadyResizing=!1),i._isReadyResizing){i._setupResizingInfo(r.x),i._isResizing=!0,i._tablePositionController.update(i._targetPoint.y),i._columnsSeparatorView.show(),i._trackerView.show();var o=i.component.getScrollable();o&&i._isRtlParentStyle()&&(i._scrollRight=(0,F.RG)(o.$content())-(0,F.RG)(o.container())-o.scrollLeft()),t.preventDefault(),t.stopPropagation()}this.isResizing()&&this._editorFactoryController.loseFocus()}_generatePointsByColumns(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],i=e._columnHeadersView.getColumnElements(),r=[];i&&i.length>0&&(r=q.getPointsByColumns(i,o=>e._pointCreated(o,i.length,t))),e._pointsByColumns=r}_unsubscribeFromEvents(){this._moveSeparatorHandler&&n.A.off(I.A.getDocument(),(0,D.b4)(Se.A.move,nt),this._moveSeparatorHandler),this._startResizingHandler&&n.A.off(this._$parentContainer,(0,D.b4)(Se.A.down,nt),this._startResizingHandler),this._endResizingHandler&&(n.A.off(this._columnsSeparatorView.element(),(0,D.b4)(Se.A.up,nt),this._endResizingHandler),n.A.off(I.A.getDocument(),(0,D.b4)(Se.A.up,nt),this._endResizingHandler))}_subscribeToEvents(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),n.A.on(I.A.getDocument(),(0,D.b4)(Se.A.move,nt),this,this._moveSeparatorHandler),n.A.on(this._$parentContainer,(0,D.b4)(Se.A.down,nt),this,this._startResizingHandler),n.A.on(this._columnsSeparatorView.element(),(0,D.b4)(Se.A.up,nt),this,this._endResizingHandler),n.A.on(I.A.getDocument(),(0,D.b4)(Se.A.up,nt),this,this._endResizingHandler)}_updateColumnsWidthIfNeeded(e){var t,i,r=this._rowsView.contentWidth(),o=this._resizingInfo,s=this._columnsController,c=s.getVisibleColumns(),d=this._columnsSeparatorView.width(),u=Cu(this),p=u&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),v=this.option("rtlEnabled"),f=this._isRtlParentStyle(),O=c[o.currentColumnIndex],b=c[o.nextColumnIndex];function S(ve){return(0,m.Kg)(ve)&&ve.endsWith("%")}function E(ve,$e,zt,yn){if(ve){var yt=ve.width;yt&&(yn=S(yt)),yn?(s.columnOption(ve.index,"visibleWidth",$e),s.columnOption(ve.index,"width","".concat(($e/zt*100).toFixed(3),"%"))):(s.columnOption(ve.index,"visibleWidth",null),s.columnOption(ve.index,"width",$e))}}t=e-o.startPosX,(u||f)&&v&&(t=-t);var ve,$e,zt,yn,yt,$i,ci,{cellWidth:L,nextCellWidth:G}=(ci={},(yt=o.currentColumnWidth+(ve=t))>=($i=O&&O.minWidth||d)?ci.cellWidth=yt:(ci.cellWidth=$i,yn=!0),u&&((zt=o.nextColumnWidth-ve)>=($e=b&&b.minWidth||d)?ci.nextCellWidth=yn?o.nextColumnWidth-(ve+$i-yt):zt:(ci.nextCellWidth=$e,ci.cellWidth=o.currentColumnWidth+(ve-$e+zt))),ci);if(i=O.width!==L){if(s.beginUpdate(),L=Math.floor(L),r=function(ve,$e){var zt=$e.every(yt=>yt.width);if(zt){var yn=$e.reduce((yt,$i)=>(S($i.width)&&(yt+=parseFloat($i.width)),yt),0);yn>100&&(ve=ve/yn*100)}return ve}(r,c),E(O,L,r,p),u)E(b,G=Math.floor(G),r,p);else{var J=this._columnHeadersView.getColumnWidths();J[o.currentColumnIndex]=L;var he=J.reduce((ve,$e)=>ve+$e,0)>this._rowsView.contentWidth();if(!he){var ee=q.getLastResizableColumnIndex(c);ee>
1=0&&s.columnOption(c[ee].index,"visibleWidth","auto")}for(var oe=0;oe<J.length;oe++)c[oe]&&c[oe]!==O&&void 0===c[oe].width&&s.columnOption(c[oe].index,"width",J[oe])}if(s.endUpdate(),!u){this.component.updateDimensions();var _e=this.component.getScrollable();if(_e&&f){var be=(0,F.RG)(_e.$content())-(0,F.RG)(_e.container())-this._scrollRight;_e.scrollTo({left:be})}}}return i}_subscribeToCallback(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})}_unsubscribeFromCallbacks(){for(var e=0;e<this._subscribesToCallbacks.length;e++){var t=this._subscribesToCallbacks[e];t.callback.remove(t.handler)}this._subscribesToCallbacks=[]}_unsubscribes(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()}_init(){var e=()=>{this._isResizing||this.pointsByColumns(null)},t=o=>{this._scrollLeft!==o.left&&(this._scrollLeft=o.left,this.pointsByColumns(null))};this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._columnHeadersView=this.getView("columnHeadersView"),this._trackerView=this.getView("trackerView"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._editorFactoryController=this.getController("editorFactory"),this._draggingHeaderView=this.component.getView("draggingHeaderView"),this._$parentContainer=this.component.$element(),this._subscribeToCallback(this._columnHeadersView.renderCompleted,e),this._subscribeToCallback(this._columnHeadersView.resizeCompleted,e),this._subscribeToCallback(this._columnsSeparatorView.renderCompleted,()=>{this._unsubscribeFromEvents(),this._subscribeToEvents()}),this._subscribeToCallback(this._rowsView.renderCompleted,()=>{this._rowsView.scrollChanged.remove(t),this._rowsView.scrollChanged.add(t)});var i=0!==this._rowsView.getScrollbarWidth(),r=0;this._subscribeToCallback(this._tablePositionController.positionChanged,o=>{if(this._isResizing&&!this._rowsView.isResizing){var s=0!==this._rowsView.getScrollbarWidth();i!==s||r&&r!==o.height?(i=s,r=o.height,this.component.updateDimensions()):this._rowsView.updateFreeSpaceRowHeight()}r=o.height})}isResizing(){return this._isResizing}pointsByColumns(e){if(void 0===e)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=e}}},extenders:{views:{rowsView:a=>class extends a{_needUpdateRowHeight(e){var t=this.option("wordWrapEnabled"),i=this._columnsResizerController.isResizing();return super._needUpdateRowHeight.apply(this,arguments)||e>0&&t&&i}}},controllers:{editorFactory:a=>class extends a{renderFocusOverlay(){if(!this._columnsResizerController.isResizing())return super.renderFocusOverlay.apply(this,arguments)}}}}});var mu=P(8257),t2=(a,e)=>a.length===e.length&&!Object.keys(a).some(t=>a[t]!==e[t]),n2=(a,e)=>(0,j.RL)(a,e,{maxDepth:4}),r2={compareType:"reference"},Ah=function(a){var{compareType:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r2,t=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(!t){var s=a(...r);return t=((a,e,t,i)=>{var r=a,o=e;return function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return i(c,r)||(r=c,o=t(...r)),o}})(r,s,a,"reference"===e?t2:n2),s}return t(...r)}},Ou="rowsview",Th="dx-data-row",kh="dx-freespace-row",Fh="dx-master-detail-cell",Qa="dx-command-expand",Dh="dx-command-select",Vh="dx-command-edit",Lh="[class^=dx-command]",el="dx-cell-focus-disabled",qh="dx-state-focused",Bh="dx-focused",xu="delete",tl='\n  input:not([type="hidden"]):not([disabled]),\n  textarea:not([disabled]),\n  a:not([disabled]),\n  select:not([disabled]),\n  button:not([disabled]),\n  [tabindex]:not([disabled]),\n  .dx-checkbox:not([disabled],.dx-state-readonly)\n',Nh="".concat(tl,", .dx-dropdowneditor-icon"),Hh="columnHeadersView",_2=["shift","control","alt"];function po(a){return a&&a.hasClass("dx-group-row")}function Pu(a){return a&&a.hasClass("dx-master-detail-row")}function go(a){return a&&a.hasClass(Th)}function Uh(a,e){return!a._isRowEditMode()&&e&&!e.hasClass(Dh)&&e.hasClass(Sa)}function mt(a){return(0,m.O9)(a)&&a.length>0}function bu(){return"desktop"!==Je.A.current().deviceType}function $h(a){return!!a.parent(".".concat("dx-header-row")).length}function Mu(a,e,t,i){var r=0;if(a<e)for(;r<t.items.length;r++)Mu(a+1,e,t.items[r],i);a===e&&i(t)}function nl(a,e){var t;if("map"in a)return a.map(e);var i=new Array(a.length);for(t in a)i[t]=e(a[t],t);return i}function Wh(a){var e=(0,me.Hz)(a.selector),t=!("skipEmptyValues"in a)||a.skipEmptyValues,{aggregator:i}=a;if("string"==typeof i&&!(i=ct.zL[i]))throw Xn.sO.Error("E4001",a.aggregator);return{selector:e,aggregator:i,skipEmptyValues:t}}W.registerModule("keyboardNavigation",{defaultOptions:()=>({useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}),controllers:{keyboardNavigation:class M2 extends ge.ViewController{init(){var e,t;this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnResizerController=this.getController("columnsResizer"),this._memoFireFocusedCellChanged=Ah(this._memoFireFocusedCellChanged.bind(this),{compareType:"value"}),this._memoFireFocusedRowChanged=Ah(this._memoFireFocusedRowChanged.bind(this),{compareType:"value"}
1),this.focusedHandlerWithContext=this.focusedHandlerWithContext||this.focusedHandler.bind(this),this.renderCompletedWithContext=this.renderCompletedWithContext||this.renderCompleted.bind(this),this.rowsViewFocusHandlerContext=this.rowsViewFocusHandlerContext||this.rowsViewFocusHandler.bind(this),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this.isKeyboardEnabled()?(function we(){n.A.on(I.A.getDocument(),"visibilitychange",ze)}(),null===(e=this._editorFactory)||void 0===e||e.focused.add(this.focusedHandlerWithContext),this.createAction("onKeyDown")):(Ot(),null===(t=this._editorFactory)||void 0===t||t.focused.remove(this.focusedHandlerWithContext)),this.initViewHandlers(),this.initDocumentHandlers()}dispose(){super.dispose(),this._resetFocusedView(),mu.QJ.off(this._keyDownListener),n.A.off(I.A.getDocument(),(0,D.b4)(Se.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),Ot()}focusedHandler(e){this.setupFocusedView(),this._isNeedScroll&&e.is(":visible")&&this._focusedView&&this._focusedView.getScrollable()&&(this._focusedView._scrollToElement(e),this._isNeedScroll=!1)}rowsViewFocusHandler(e){var t,i=(0,x.A)(e.target),r=(0,x.A)(e.relatedTarget).closest(this._rowsView.element()).length,o=i.is("a");if(e.relatedTarget&&o&&!r&&this._isEventInCurrentGrid(e)){var s=this._getFocusedCell();s=mt(s)?s:this._rowsView.getCellElements(0).filter("[tabindex]").eq(0),i.closest(s).length||(e.preventDefault(),n.A.trigger(s,"focus"))}var c=i.is("td"),d=(null!==(t=this.option("focusedRowIndex"))&&void 0!==t?t:-1)<0;c&&d&&this._updateFocusedCellPosition(i)}subscribeToRowsViewFocusEvent(){var e,t=null===(e=this._rowsView)||void 0===e?void 0:e.element();n.A.on(t,"focusin",this.rowsViewFocusHandlerContext)}unsubscribeFromRowsViewFocusEvent(){var e,t=null===(e=this._rowsView)||void 0===e?void 0:e.element();n.A.off(t,"focusin",this.rowsViewFocusHandlerContext)}renderCompleted(e){var t=this._rowsView.element(),i=!e||"refresh"===e.changeType,r=this._focusedView&&this._focusedView.name===this._rowsView.name,s=e&&("append"===e.changeType||"prepend"===e.changeType),d=(0,x.A)(I.A.getRootNode(t.get&&t.get(0))).find(":focus"),u=!d.length||d.closest(t).length;this.unsubscribeFromRowsViewFocusEvent(),this.subscribeToRowsViewFocusEvent(),this.initPointerEventHandler(),this.initKeyDownHandler(),this._setRowsViewAttributes(),r&&u&&(this._isNeedFocus?!s:this._isHiddenFocus&&i&&!e?.virtualColumnsScrolling)&&this._updateFocus(!0)}initViewHandlers(){var e,t;this.unsubscribeFromRowsViewFocusEvent(),this.unsubscribeFromPointerEvent(),this.unsubscribeFromKeyDownEvent(),null===(t=null===(e=this._rowsView)||void 0===e?void 0:e.renderCompleted)||void 0===t||t.remove(this.renderCompletedWithContext),this.isKeyboardEnabled()&&this._rowsView.renderCompleted.add(this.renderCompletedWithContext)}initDocumentHandlers(){var e=I.A.getDocument();this._documentClickHandler=this._documentClickHandler||this.createAction(t=>{var i=(0,x.A)(t.event.target),r=this._isEventInCurrentGrid(t.event)&&i.closest(".".concat(this.addWidgetPrefix(Ou))).length,o=i.closest(".".concat("dx-dropdowneditor-overlay")).length,s=!!this._columnResizerController&&this._columnResizerController.isResizing();r||o||s||(!(this._focusedView&&i.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),n.A.off(e,(0,D.b4)(Se.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),this.isKeyboardEnabled()&&n.A.on(e,(0,D.b4)(Se.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)}_setRowsViewAttributes(){var e=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(e)}unsubscribeFromPointerEvent(){var e=bu()?ke.U:Se.A.down,t=this._getRowsViewElement();this._pointerEventAction&&n.A.off(t,(0,D.b4)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction)}subscribeToPointerEvent(){var e=bu()?ke.U:Se.A.down,t=this._getRowsViewElement(),i=".".concat(Pn," > td, .").concat(Pn);n.A.on(t,(0,D.b4)(e,"dxDataGridKeyboardNavigation"),i,this._pointerEventAction)}initPointerEventHandler(){this._pointerEventAction=this._pointerEventAction||this.createAction(this._pointerEventHandler),this.unsubscribeFromPointerEvent(),this.subscribeToPointerEvent()}unsubscribeFromKeyDownEvent(){mu.QJ.off(this._keyDownListener)}subscribeToKeyDownEvent(){var e=this._getRowsViewElement();this._keyDownListener=mu.QJ.on(e,null,t=>this._keyDownHandler(t))}initKeyDownHandler(){this._keyDownListener&&this.unsubscribeFromKeyDownEvent(),this.subscribeToKeyDownEvent()}optionChanged(e){switch(e.name){case"keyboardNavigation":"keyboardNavigation.enabled"===e.fullName&&this.init(),e.handled=!0;break;case"useLegacyKeyboardNavigation":this.init(),e.handled=!0;break;default:super.optionChanged(e)}}isRowFocusType(){return"row"===this.focusType}isCellFocusType(){return"cell"===this.focusType}setRowFocusType(){this.option("focusedRowEnabled")&&(this.focusType="row")}setCellFocusType(){this.focusType="cell"}_keyDownHandler(e){var t,i=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var r=this._processOnKeyDown(e),o=null===(t=this._editingController)||void 0===t?void 0:t.isEditing(),{originalEvent:s}=e;if(s.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);
1if(!_2.includes(e.keyName)&&this._updateFocusedCellPositionByTarget(s.target),!r){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,o),r=!0;break;case"upArrow":case"downArrow":e.ctrl?En("rowsView",this,s):this._upDownKeysHandler(e,o),r=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e),r=!0;break;case"space":r=this._spaceKeyHandler(e,o);break;case"A":(0,D.By)(e.originalEvent)?(this._ctrlAKeyHandler(e,o),r=!0):r=this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,o),r=!0;break;case"enter":this._enterKeyHandler(e,o),r=!0;break;case"escape":r=this._escapeKeyHandler(e,o);break;case"F":(0,D.By)(e.originalEvent)?(this._ctrlFKeyHandler(e),r=!0):r=this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler(),r=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(r=this._beginFastEditing(s,!0))}!r&&!this._beginFastEditing(s)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,i=!1),i&&s.stopPropagation()}}_processOnKeyDown(e){var{originalEvent:t}=e,i={handled:!1,event:t};return this.executeAction("onKeyDown",i),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!i.handled}_closeEditCell(){setTimeout(()=>{this._editingController.closeEditCell()})}_leftRightKeysHandler(e,t){var i=this.getVisibleRowIndex(),r=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(i),s=this._getDirectionCodeByKey(e.keyName),c=this._isFastEditingStarted();if((!t||c)&&go(o)){this.setCellFocusType(),c&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(s);var u=this._getNextCell(s);mt(u)&&this._arrowKeysHandlerFocusCell(r,u,s),r&&r.preventDefault()}}_upDownKeysHandler(e,t){var i,r,o=this.getVisibleRowIndex(),s=this._focusedView&&this._focusedView.getRow(o),c=e.originalEvent,d="upArrow"===e.keyName,u=this._dataController.dataSource(),p=null===(r=null===(i=this._editingController)||void 0===i?void 0:i.isEditRowByIndex)||void 0===r?void 0:r.call(i,o),v=this._isFastEditingStarted();if((!p||!t||v)&&s&&!Pu(s)){if(v&&this._closeEditCell(),!this._navigateNextCell(c,e.keyName)&&this._isVirtualRowRender()&&d&&u&&!u.isLoading()){var O=(0,F.P$)(s);this._scrollBy(0,-O,this._focusedCellPosition.rowIndex-1,c)}c&&c.preventDefault()}}_pageUpDownKeyHandler(e){var t=this._dataController.pageIndex(),i=this._dataController.pageCount(),r=this.option("paging.enabled"),o="pageUp"===e.keyName,s=o?-1:1,c=this._rowsView.getScrollable();r&&!this._isVirtualScrolling()?(o?t>0:t<i-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+s),e.originalEvent.preventDefault()):c&&(0,F.Oq)(c.container())<(0,F.Oq)(c.$content())&&(this._scrollBy(0,(0,F.Oq)(c.container())*s),e.originalEvent.preventDefault())}_spaceKeyHandler(e,t){var i=this.getVisibleRowIndex(),r=(0,x.A)(e.originalEvent&&e.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!t){var o="row"===this._getElementType(r)&&this.isRowFocusType()&&go(r);return r.hasClass(Dh)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(o||r.parent().hasClass(Th)||r.hasClass(this.addWidgetPrefix(Ou)))&&(this._selectionController.changeItemSelection(i,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault(),!0)}return this._beginFastEditing(e.originalEvent)}_ctrlAKeyHandler(e,t){!t&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())}_tabKeyHandler(e,t){var i=this.option("editing"),r=e.shift?"previous":"next",s=!((0,m.O9)(this._focusedCellPosition)&&!(0,m.RI)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),c=e.originalEvent.target,d=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(c,r)){if((0,x.A)(d).addClass(qh),i&&c&&!s)if((0,x.A)(c).hasClass(this.addWidgetPrefix(Ou))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(r),t){if(!this._editingCellTabHandler(e,r))return}else this._targetCellTabHandler(e,r)&&(s=!0);s?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):e.originalEvent.preventDefault()}}_getMaxHorizontalOffset(){var e=this.component.getScrollable();
1return e?e.scrollWidth()-(0,F.RG)(this._rowsView.element()):0}_isColumnRendered(e){var t=this._columnsController.getVisibleColumns(null,!0),i=this._columnsController.getVisibleColumns(),r=t[e],o=!1;return r&&(o=i.indexOf(r)>=0),o}_isFixedColumn(e){var i=this._columnsController.getVisibleColumns(null,!0)[e];return!!i&&!!i.fixed}_isColumnVirtual(e){var t=e-this._columnsController.getColumnIndexOffset(),r=this._columnsController.getVisibleColumns()[t];return!!r&&"virtual"===r.command}_processVirtualHorizontalPosition(e){var r,t=this.component.getScrollable(),i=this.getColumnIndex(),o=0,s=!1;switch(e){case"next":case"nextInRow":var c=this._getVisibleColumnCount();r=i+1,o=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,s="next"===e?c===r||this._isFixedColumn(i)&&!this._isColumnRendered(r):c>r&&this._isFixedColumn(i)&&!this._isColumnRendered(r);break;case"previous":case"previousInRow":if(r=i-1,o=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var d=this._columnsController.getColumnIndexOffset();s=r<0&&0===d||this._isFixedColumn(i)&&!this._isColumnRendered(r)}else s=r>=0&&this._isFixedColumn(i)&&!this._isColumnRendered(r)}s?t.scrollTo({left:o}):(0,m.O9)(r)&&(0,m.O9)(e)&&this._isColumnVirtual(r)&&0!==(o=this._getHorizontalScrollPositionOffset(e))&&t.scrollBy({left:o,top:0})}_getHorizontalScrollPositionOffset(e){var t=0,i=this._getCell(this._focusedCellPosition),r=i&&(0,F.Ot)(i);if(r>0){var o=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?r*o:r*o*-1}return t}_editingCellTabHandler(e,t){var o,i=e.originalEvent.target,r=this._getCellElementFromTarget(i),s=e.originalEvent,c=this._getElementType(i);if(r.is(Lh))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(r);var d=this._getNextCellByTabKey(s,t,c);if(!(r=d.$cell)||this._handleTabKeyOnMasterDetailCell(r,t))return!1;var u=this._getColumnByCellElement(r),p=r.parent(),v=this._getRowIndex(p),f=this._dataController.items()[v];if(u&&u.allowEditing){var b=!f||"data"===f.rowType;o=this._editingController.allowUpdating({row:f})?b:f&&f.isNewRow}return o||this._closeEditCell(),this._focusCell(r,!d.isHighlighted)&&(!this._isRowEditMode()&&o?this._editFocusedCell():this._focusInteractiveElement(r,e.shift)),!0}_targetCellTabHandler(e,t){var i=e.originalEvent,r=i.target,o=this._getElementType(r),s=this._getCellElementFromTarget(r),c="cell"===o&&this._getInteractiveElement(s,!e.shift),d=!1;if(!Uh(this,s)&&c?.length&&r!==c.get(0))d=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,x.A)(r).hasClass(Pn)&&this._updateFocusedCellPosition(s),o=this._getElementType(r),this.isRowFocusType()&&(this.setCellFocusType(),"row"===o&&go((0,x.A)(r))&&(r=this.getFirstValidCellInRow((0,x.A)(r)),o=this._getElementType(r)));var u=this._getNextCellByTabKey(i,t,o);if(!(s=u.$cell)||!(s=this._checkNewLineTransition(i,s)))return!1;this._focusCell(s,!u.isHighlighted),Uh(this,s)||this._focusInteractiveElement(s,e.shift)}return d}_getNextCellByTabKey(e,t,i){var r=this._getNextCell(t,i),o=r&&this._fireFocusedCellChanging(e,r,!0);return!o||o.cancel?{}:(o.$newCellElement&&(r=o.$newCellElement),{$cell:r,isHighlighted:o.isHighlighted})}_checkNewLineTransition(e,t){var i=this.getVisibleRowIndex(),r=t.parent();if(i!==this._getRowIndex(r)){var o=this._getCellPosition(t),s=this._fireFocusedRowChanging(e,r);if(s.cancel)return;s.rowIndexChanged&&o&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t}_enterKeyHandler(e,t){var i,r=this.getVisibleRowIndex(),o=this._dataController.getKeyByRowIndex(r),s=null===(i=this._focusedView)||void 0===i?void 0:i.getRow(r),c=this._getFocusedCell(),d=this.option("grouping.allowCollapsing")&&po(s),u=this.option("masterDetail.enabled")&&c?.hasClass(Qa),p=c?.hasClass("dx-command-adaptive");if(d||u){var v=this._dataController.items()[r],f=v?.data&&!v.data.isContinuation;(0,m.O9)(o)&&f&&this._dataController.changeRowExpand(o)}else p?(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(o),this._updateFocusedCellPosition(c)):c?.hasClass(Vh)||this._processEnterKeyForDataCell(e,t)}_processEnterKeyForDataCell(e,t){var i=this._getEnterKeyDirection(e),r=this._allowEditingOnEnterKey();t||!r&&i?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===i||"previous"===i?this._targetCellTabHandler(e,i
1):("upArrow"===i||"downArrow"===i)&&this._navigateNextCell(e.originalEvent,i)):r&&this._startEditing(e)}_getEnterKeyDirection(e){var t=this.option("keyboardNavigation.enterKeyDirection"),i=e.shift;return"column"===t?i?"upArrow":"downArrow":"row"===t?i?"previous":"next":void 0}_handleEnterKeyEditingCell(e){var{target:t}=e,i=this._getCellElementFromTarget(t),r=this._isRowEditMode();this._updateFocusedCellPosition(i),r?(this._focusEditFormCell(i),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(n.A.trigger((0,x.A)(t),"change"),this._closeEditCell(),e.preventDefault())}_escapeKeyHandler(e,t){var i=this._getCellElementFromTarget(e.originalEvent.target);return!!t&&(this._updateFocusedCellPosition(i),this._isRowEditMode()?(this._focusEditFormCell(i),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault(),!0)}_ctrlFKeyHandler(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}}_f2KeyHandler(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),i=this._focusedView&&this._focusedView.getRow(t);!e&&go(i)&&this._startEditing()}_navigateNextCell(e,t){var i=this._getNextCell(t),r=this._getDirectionCodeByKey(t);return!(!i||!this._isCellValid(i))&&this._arrowKeysHandlerFocusCell(e,i,r)}_arrowKeysHandlerFocusCell(e,t,i){var o=this._fireFocusChangingEvents(e,t,"prevRow"===i||"nextRow"===i,!0);return t=o.$newCellElement,!(o.cancel||!this._isCellValid(t)||(this._focus(t,!o.isHighlighted),0))}_beginFastEditing(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,xu);else{var{key:i}=e,r=e.keyCode||e.which,o=i||r&&String.fromCharCode(r);o&&(1===o.length||o===xu)&&this._startEditing(e,o)}return!0}_pointerEventHandler(e){var t,i=e.event||e,r=(0,x.A)(i.currentTarget),o=null===(t=this._rowsView)||void 0===t?void 0:t.element(),s=r.parent(),c=(0,x.A)(i.target).is(tl),d=!!(0,x.A)(i.target).closest(".".concat("dx-revert-button")).length,u=r.hasClass(Qa);this._isEventInCurrentGrid(i)&&(d||!this._isCellValid(r,!c)&&!u?r.is("td")&&this._resetFocusedCell():(r=this._isInsideEditForm(r)?(0,x.A)(i.target):r,this._focusView(),(0,x.A)(o).removeClass(qh),s.hasClass(kh)?(this._updateFocusedCellPosition(r),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(r)?this._updateFocusedCellPosition(r):this._clickTargetCellHandler(i,r)))}_clickTargetCellHandler(e,t){var i=this._getColumnByCellElement(t),r=this._isCellEditMode();this.setCellFocusType();var o=this._fireFocusChangingEvents(e,t,!0);if(t=o.$newCellElement,o.cancel)this.setRowFocusType(),this.setFocusedRowIndex(o.prevRowIndex),this._editingController.isEditing()&&r&&this._closeEditCell();else{if(o.resetFocusedRow)return void this._focusController._resetFocusedRow();if(o.rowIndexChanged&&(t=this._getFocusedCell()),!o.isHighlighted&&!r&&this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&r&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{t=this._getFocusedCell();var s=e&&(0,x.A)(e.target).closest("".concat(Nh,", td")),c=s&&s.not(t).is(Nh),d=!!i&&!i.command&&t.hasClass(Sa);this._focus(t,!d&&(!o.isHighlighted||c),c)}}}_allowRowUpdating(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")}focus(e){var t,i=this.option("focusedRowEnabled"),r=this._isCellElement((0,x.A)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",i||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,x.A)(e),r)}getFocusedView(){return this._focusedView}setupFocusedView(){this.isKeyboardEnabled()&&!(0,m.O9)(this._focusedView)&&this._focusView()}_focusElement(e,t){var i=(0,x.A)(this._getRowsViewElement()),r=e.closest(i),o=this.isRowFocusType(),s={};!r.length||this._isCellElement(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(e)||po(e))&&(this.setCellFocusType(),e=(s=this._fireFocusChangingEvents(null,e,!0,t)).$newCellElement,o&&!s.isHighlighted&&this.setRowFocusType()),s.cancel||(this._focus(e,!s.isHighlighted),this._focusInteractiveElement(e)))}_getFocusedViewByElement(e){var t=this.getFocusedView(),i=t&&(0,x.A)(t.element());return e&&0!==e.closest(i).length}_focusView(){this._focusedView=this._rowsView}_resetFocusedView(){this.setRowFocusType(),this._focusedView=null}_focusInteractiveElement(e,t){if(e){var i=this._getInteractiveElement(e,t);q.focusAndSelectElement(this,i)}}_focus(e,t,i){var r=e&&!e.hasClass(Pn)?e.closest(".".concat(Pn)):e;if(!r||!function O2(a){return!a||a.hasClass(kh)||a.hasClass("dx-virtual-row")}
1(r)){var c,o=this._focusedView,s=o&&o.element();this._isHiddenFocus=t;var d=po(r)||function f2(a){return a&&a.hasClass("dx-datagrid-group-footer")}(r)||this.isRowFocusType();d?(c=r,o&&this.setFocusedRowIndex(this._getRowIndex(r))):this._isCellElement(e)&&(c=e,this._updateFocusedCellPosition(e)),c&&(s&&s.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(c).removeClass(el).removeClass(Bh).removeAttr("tabindex"),n.A.one(c,"blur",u=>{u.relatedTarget&&c.removeClass(el).removeClass(Bh)}),i||(this._applyTabIndexToElement(c),n.A.trigger(c,"focus")),t?(c.addClass(el),d&&e.addClass(el)):this._editorFactory.focus(c))}}_updateFocus(e){this._updateFocusTimeout=setTimeout(()=>{if(this._needFocusEditingCell())this._editingController._focusEditingCell();else{var t=this._getFocusedCell(),i=this._editingController.isEditing();if((!this._isMasterDetailCell(t)||this._isRowEditMode())&&(this._hasSkipRow(t.parent())&&(t=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),mt(t)))if(t.is("td")||t.hasClass(this.addWidgetPrefix("edit-form-item"))){var o=t.is(Lh),s=t.find(":focus"),c=mt(s),d=this._getColumnByCellElement(t);if(!e&&o||!this._editorFactory.focus())!c&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(t,this._isHiddenFocus);else{if(o&&c)return void q.focusAndSelectElement(this,s);!c&&this._focus(t)}i&&!d?.showEditorAlways&&this._focusInteractiveElement.bind(this)(t)}else n.A.trigger(t,"focus")}})}_getColumnByCellElement(e){var i=this._rowsView.getCellIndex(e)+this._columnsController.getColumnIndexOffset();return this._columnsController.getVisibleColumns(null,!0)[i]}_needFocusEditingCell(){var e=this._editingController.getEditMode()===Vi,t=this._editingController.getEditMode()===Qn,i=e&&this._editingController.hasChanges(),r=t&&this._editingController.isNewRowInEditMode(),o=this._getFocusedCell();return(0===o.children().length||o.find(bd).length>0)&&(i||r)}_getFocusedCell(){return(0,x.A)(this._getCell(this._focusedCellPosition))}_updateFocusedCellPositionByTarget(e){var t;if("row"===this._getElementType(e)&&(0,m.O9)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var r=(0,x.A)(e);this._focusedView&&po(r)&&this.setFocusedRowIndex(this._getRowIndex(r))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))}_updateFocusedCellPosition(e,t){var i=this._getCellPosition(e,t);return i&&(!e.length||i.rowIndex>=0&&i.columnIndex>=0)&&this.setFocusedCellPosition(i.rowIndex,i.columnIndex),i}_getFocusedColumnIndexOffset(e){var t=0,i=this._columnsController.getVisibleColumns()[e];return i&&i.fixed?t=this._getFixedColumnIndexOffset(i):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t}_getFixedColumnIndexOffset(e){var t=function x2(a,e){return a.option("rtlEnabled")?!("right"===e.fixedPosition||(0,m.O9)(e.command)&&!(0,m.O9)(e.fixedPosition)):!(!(0,m.O9)(e.fixedPosition)||"left"===e.fixedPosition)}(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return t}_getCellPosition(e,t){var i,r=mt(e)&&e.closest("tr");if(mt(r)){var o=this._getRowIndex(r);return i=this._rowsView.getCellIndex(e,o),i+=this._getFocusedColumnIndexOffset(i),t&&(i=this._applyColumnIndexBoundaries(i="previous"===t?i-1:i+1)),{rowIndex:o,columnIndex:i}}}_focusCell(e,t){if(this._isCellValid(e))return this._focus(e,t),!0}_focusEditFormCell(e){e.hasClass(Fh)&&this._editorFactory.focus(e,!0)}_resetFocusedCell(e){var t,i=this._getFocusedCell();mt(i)&&i.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState({preventScroll:e})}restoreFocusableElement(e,t){var i,r,o=(0,m.O9)(e),s=this._rowsView.element(),{columnIndex:c}=this._focusedCellPosition,d=this._dataController.getRowIndexOffset();e=o?e:this._rowsView.getTopVisibleItemIndex()+d,o?(r=this._rowsView.getRow(e-d),!(i=this._fireFocusedRowChanging(t,r)).cancel&&i.rowIndexChanged&&(e=i.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(s),n.A.trigger(s,"focu
1s")),(!o||!i.cancel)&&this.setFocusedCellPosition(e,c),o&&this._updateFocus()}_getNewPositionByCode(e,t,i){var{columnIndex:r}=e,{rowIndex:o}=e;if(void 0===e.rowIndex&&"next"===i)return{columnIndex:0,rowIndex:0};switch(i){case"nextInRow":case"next":r<this._getVisibleColumnCount()-1&&"row"!==t&&this._hasValidCellAfterPosition({columnIndex:r,rowIndex:o})?r++:!this._isLastRow(o)&&"next"===i&&(r=0,o++);break;case"previousInRow":case"previous":r>0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:r,rowIndex:o})?r--:o>0&&"previous"===i&&(o--,r=this._getVisibleColumnCount()-1);break;case"upArrow":o=o>0?o-1:o;break;case"downArrow":o=this._isLastRow(o)?o:o+1}return{columnIndex:r,rowIndex:o}}setFocusedCellPosition(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)}setFocusedRowIndex(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e}setFocusedColumnIndex(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e}getRowIndex(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1}getColumnIndex(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1}getVisibleRowIndex(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.rowIndex;return!(0,m.O9)(t)||t<0?-1:t-this._dataController.getRowIndexOffset()}getVisibleColumnIndex(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.columnIndex;return(0,m.O9)(t)?t-this._columnsController.getColumnIndexOffset():-1}_applyColumnIndexBoundaries(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e}_isCellByPositionValid(e){var t=(0,x.A)(this._getCell(e));return this._isCellValid(t)}_isLastRow(e){var t=this._dataController;return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===Math.max(...t.items().map((r,o)=>!1!==r.visible?o:-1))}_isFirstValidCell(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t}_hasValidCellBeforePosition(e){for(var{columnIndex:t}=e,i=!1;t>0&&!i;){var r={columnIndex:--t,rowIndex:e.rowIndex};i=this._isCellByPositionValid(r)}return i}_hasValidCellAfterPosition(e){for(var{columnIndex:t}=e,i=!1,r=this._getVisibleColumnCount();t<r-1&&!i;){var o={columnIndex:++t,rowIndex:e.rowIndex};i=this._isCellByPositionValid(o)}return i}_isLastValidCell(e){var t=e.columnIndex>=0?e.columnIndex+1:0,{rowIndex:i}=e,r={columnIndex:t,rowIndex:i},o=this._dataController.getVisibleRows(),s=o&&o[i];return!!this._isLastRow(i)&&(!!(("group"===s?.rowType||"groupFooter"===s?.rowType)&&e.columnIndex>0||e.columnIndex===this._getVisibleColumnCount()-1)||!this._isCellByPositionValid(r)&&this._isLastValidCell(r))}_isCellValid(e,t){if(mt(e)){var i=e.parent(),r=this._rowsView.getCellIndex(e)+this._columnsController.getColumnIndexOffset(),o=this._getColumnByCellElement(e),s=this._getVisibleColumnCount(),c=this._editingController,d=Pu(i),u=o&&o.showWhenGrouped,p=o&&!e.hasClass(Qa)&&go(i);if(void 0!==e.attr("dx-drag-cell"))return!1;if(this._isMasterDetailCell(e))return!0;if(s>r&&(!d&&o&&(!(0,m.O9)(o.groupIndex)||u&&p)||parseInt(e.attr("colspan"),10)>1)){var f=this._dataController.items(),O=this._rowsView.getRowIndex(i),b=f[O],S=c&&this._isCellEditMode()&&c.isEditing(),E=c&&c.isEditRow(O),L=E||S;return o.command?this._isLegacyNavigation()?!L&&"expand"===o.command:!S&&(E?"select"!==o.command:!L):(!S||!b||"data"===b.rowType)&&(!L||o.allowEditing||t)}}}getFirstValidCellInRow(e,t){for(var r,o,i=e.find("> td"),s=t=t||0;s<i.length;++s)if(r=i.eq(s),this._isCellValid(r)){o=r;break}return o}_getNextCell(e,t,i){var c,d,r=i||this._focusedCellPosition,o=this.isRowFocusType(),s=o||["next","previous"].includes(e);if(this._focusedView&&r){var u=this._getNewPositionByCode(r,t,e);c=(0,x.A)(this._getCell(u));var p="previous"===e?this._isFirstValidCell(u):this._isLastValidCell(u);if(mt(c)&&!this._isCellValid(c)&&this._isCellInRow(u,s)&&!p&&(c=o?this.getFirstValidCellInRow(c.parent(),u.columnIndex):this._getNextCell(e,"cell",u)),d=mt(c)&&c.parent(),this._hasSkipRow(d)){var v=this._getRowIndex(d);if(this._isLastRow(v))return null;c=this._getNextCell(e,"row",{columnIndex:r.columnIndex,rowIndex:v})}return mt(c)?c:null}return null}_startEditing(e,t){var i=this._focusedCellPosition,r=this.getVisibleRowIndex(),o=this.getVisibleColumnIndex(),s=this._dataController.items()[r],c=this._columnsController.getVisibleColumns()[o];this._isAllowEditing(s,c)&&(this._isRowEditMode()?this._editingController.editRow(r):i&&this._startEditCell(e,t))}
1_isAllowEditing(e,t){return this._editingController.allowUpdating({row:e})&&t&&t.allowEditing}_editFocusedCell(){var e=this.getVisibleRowIndex(),t=this.getVisibleColumnIndex();return this._editingController.editCell(e,t)}_startEditCell(e,t){this._fastEditingStarted=(0,m.O9)(t);var i=this._editFocusedCell(),r=(0,m.uF)(i);if(this._isFastEditingStarted()&&(r||i)){var s=r&&t===xu?"":t,c=r?i:(0,k.cY)().resolve(),d=this._rowsView.waitAsyncTemplates(!0);(0,k.z7)(c,d).done(()=>{this._editingCellHandler(e,s)})}}_editingCellHandler(e,t){var i,r,o=this._getFocusedCell().find(tl).eq(0),s=o.get(0);if(s){var c=(0,D.lh)(e,{type:"keydown",target:s}),d=(0,D.lh)(e,{type:"keypress",target:s}),u=(0,D.lh)(e,{type:"input",target:s});u.originalEvent&&(u.originalEvent=(0,D.lh)(u.originalEvent,{data:t})),null===(r=(i=s).select)||void 0===r||r.call(i),n.A.trigger(o,c),c.isDefaultPrevented()||(n.A.trigger(o,d),d.isDefaultPrevented())||setTimeout(()=>{var v=this._getKeyPressInputValue(o,t);o.val(v);var f=o.closest(".".concat("dx-widget"));n.A.off(f,"focusout"),n.A.one(f,"focusout",()=>{n.A.trigger(o,"change")}),n.A.trigger(o,u)},Ie.A.mozilla?25:0)}}_getKeyPressInputValue(e,t){var i=e.val();return"-"===t&&"-0"===i?"-0":t}_fireFocusChangingEvents(e,t,i,r){var o,s={},c=null!==(o=this._getCellPosition(t))&&void 0!==o?o:{};return this.isCellFocusType()&&((s=this._fireFocusedCellChanging(e,t,r)).cancel||(c.columnIndex=s.newColumnIndex,c.rowIndex=s.newRowIndex,r=s.isHighlighted,t=(0,x.A)(this._getCell(c)))),!s.cancel&&i&&t&&((s=this._fireFocusedRowChanging(e,t.parent())).cancel||(c.rowIndex=s.newRowIndex,s.isHighlighted=r)),s.$newCellElement=(0,x.A)(this._getCell(c)),s.$newCellElement.length||(s.$newCellElement=t),s}_fireFocusedCellChanging(e,t,i){var r=this.option("focusedColumnIndex"),o=this.option("focusedRowIndex"),s=this._getCellPosition(t),c=s?s.columnIndex:-1,d=s?s.rowIndex:-1,v={cellElement:t,prevColumnIndex:r,prevRowIndex:o,newColumnIndex:c,newRowIndex:d,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:e,isHighlighted:i||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",v),(v.newColumnIndex!==c||v.newRowIndex!==d)&&(v.$newCellElement=(0,x.A)(this._getCell({columnIndex:v.newColumnIndex,rowIndex:v.newRowIndex}))),v.cancel&&(this._canceledCellPosition={rowIndex:d,columnIndex:c}),v}_fireFocusedCellChanged(e){var t=this._rowsView.getCellIndex(e),i=e?.parent().data("options"),r=i?.key;this._memoFireFocusedCellChanged(r,t)}_memoFireFocusedCellChanged(e,t){var i=this._getFocusedCell(),r=this._getRowIndex(i?.parent()),o=Math.min(r-this._dataController.getRowIndexOffset(),this._dataController.items().length-1);if(!this._editingController.isEditCell(o,t)){var c=this._dataController.items()[o],d=this._columnsController.getVisibleColumns()[t];this.executeAction("onFocusedCellChanged",{cellElement:i?(0,Re.c)(i):void 0,columnIndex:t,rowIndex:r,row:c,column:d})}}_fireFocusedRowChanging(e,t){var i=this._getRowIndex(t),r=this.option("focusedRowIndex"),o=this._dataController.loadingOperationTypes(),s={rowElement:t,prevRowIndex:r,newRowIndex:i,event:e,rows:this._dataController.getVisibleRows(),cancel:!1},c=o.sorting||o.grouping||o.filtering||o.paging;return!this._dataController||this._dataController.isLoading()&&c?(s.cancel=!0,s):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",s),!s.cancel&&s.newRowIndex!==i&&(s.resetFocusedRow=s.newRowIndex<0,s.resetFocusedRow||this.setFocusedRowIndex(s.newRowIndex),s.rowIndexChanged=!0)),s)}_fireFocusedRowChanged(){var e,t=this.option("focusedRowEnabled"),i=this.option("focusedRowKey"),r=null===(e=this._focusController)||void 0===e?void 0:e.getFocusedRowIndexByKey(i);!t||(0,m.O9)(i)&&r<0||this._memoFireFocusedRowChanged(i,r)}_memoFireFocusedRowChanged(e,t){var i=t-this._dataController.getRowIndexOffset();this.executeAction("onFocusedRowChanged",{rowElement:t<0?void 0:this._rowsView.getRowElement(i),rowIndex:t,row:t<0?void 0:this._dataController.getVisibleRows()[i]})}_isEventInCurrentGrid(e){return q.isElementInCurrentGrid(this,(0,x.A)(e.target))}_isRowEditMode(){var e=this._editingController.getEditMode();return e===Qt||e===Li}_isCellEditMode(){var e=this._editingController.getEditMode();return e===Vi||e===Qn}_isFastEditingAllowed(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")}_getInteractiveElement(e,t){var i=e.find(tl).filter(":visible");
1return t?i.last():i.first()}_applyTabIndexToElement(e){var t,i=null!==(t=this.option("tabIndex"))&&void 0!==t?t:0;e.attr("tabindex",i)}_getCell(e){if(this._focusedView&&e){var t=this._dataController.getRowIndexOffset(),i=this._columnsController.getVisibleColumns(null,!0)[e.columnIndex],r=i&&i.fixed?this._getFixedColumnIndexOffset(i):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:e.rowIndex>=0?e.rowIndex-t:-1,columnIndex:e.columnIndex>=0?e.columnIndex-r:-1})}}_getRowIndex(e){var t=this._rowsView.getRowIndex(e);return t>=0&&(t+=this._dataController.getRowIndexOffset()),t}_hasSkipRow(e){var t=e&&e.get(0);return t&&("none"===t.style.display||Pu(e)&&!e.hasClass(this.addWidgetPrefix(ya)))}_allowEditingOnEnterKey(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")}_isLegacyNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDirectionCodeByKey(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t}_isVirtualScrolling(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e}_isVirtualRowRender(){return this._isVirtualScrolling()||q.isVirtualRowRendering(this)}_isVirtualColumnRender(){return"virtual"===this.option("scrolling.columnRenderingMode")}_scrollBy(e,t,i,r){var o=this,s=this._rowsView.getScrollable();return o._focusedCellPosition&&s.on("scroll",function c(){s.off("scroll",c),setTimeout(o.restoreFocusableElement.bind(o,i,r))}),s.scrollBy({left:e,top:t})}_isInsideEditForm(e){var t=(0,x.A)(e).closest(".".concat(this.addWidgetPrefix(ya)));return t.length&&this.elementIsInsideGrid(t)}_isMasterDetailCell(e){var t=(0,x.A)(e).closest(".".concat(Fh));return t.length&&this.elementIsInsideGrid(t)}_processNextCellInMasterDetail(e,t){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)}_handleTabKeyOnMasterDetailCell(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,x.A)(e),t);var i=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(i,(0,x.A)(e)),!0}return!1}_getElementType(e){return(0,x.A)(e).is("tr")?"row":"cell"}_isFastEditingStarted(){return this._isFastEditingAllowed()&&this._fastEditingStarted}_getVisibleColumnCount(){return this._columnsController.getVisibleColumns(null,!0).length}_isCellInRow(e,t){var{columnIndex:i}=e,r=this._getVisibleColumnCount();return t?i>=0&&i<=r-1:i>0&&i<r-1}_isCellElement(e){return e.length&&"TD"===e[0].tagName}_getCellElementFromTarget(e){var t=this._getElementType(e),i=(0,x.A)(e);return"cell"===t?i.closest(".".concat(Pn," > td")):i.children().not(".".concat(Qa)).first()}_getRowsViewElement(){var e;return null===(e=this._rowsView)||void 0===e?void 0:e.element()}isKeyboardEnabled(){return this.option("keyboardNavigation.enabled")}_processCanceledEditCellPosition(e,t){if(this._canceledCellPosition){var i=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,i}}updateFocusedRowIndex(){var e=this._dataController,t=this.getVisibleRowIndex(),i=e.items(),r=i.length?i.length-1:-1,o=e.getRowIndexOffset();r>=0&&t>r&&this.setFocusedRowIndex(r+o)}}},extenders:{views:{rowsView:a=>class extends a{_rowClick(e){var t=this._editingController.getEditRowIndex(),i=this._keyboardNavigationController.isKeyboardEnabled();t===e.rowIndex&&this._keyboardNavigationController.setCellFocusType(),(bu()||!i)&&this.option("focusedRowEnabled")&&this._triggerPointerDownEventHandler(e,!i),super._rowClick.apply(this,arguments)}_triggerPointerDownEventHandler(e,t){var{originalEvent:i}=e.event;if(i){var r=(0,x.A)(i.target),o=this.getCellIndex(r),s=this._columnsController.getVisibleColumns()[o],c=this._dataController.items()[e.rowIndex];if(this._keyboardNavigationController._isAllowEditing(c,s)||t){var d=(0,D.lh)(i,{currentTarget:i.target});this._keyboardNavigationController._pointerEventHandler(d)}}}renderFocusState(e){var{preventScroll:t,pageSizeChanged:i}=e??{}
1,r=this.element();r&&!(0,Pp.in)(r)&&r.attr("tabindex",null),i&&this._keyboardNavigationController.updateFocusedRowIndex();var o=this._keyboardNavigationController.getVisibleRowIndex();(!(0,m.O9)(o)||o<0)&&(o=0);var s=this.getCellElements(o);this._keyboardNavigationController.isKeyboardEnabled()&&s?.length&&this.updateFocusElementTabIndex(s,t)}updateFocusElementTabIndex(e,t){var i=e.eq(0).parent();if(po(i))this._keyboardNavigationController._applyTabIndexToElement(i);else{var r=this._keyboardNavigationController.getColumnIndex();(!(0,m.O9)(r)||r<0)&&(r=0),this._updateFocusedCellTabIndex(e,r)}}_updateFocusedCellTabIndex(e,t){var i=this._keyboardNavigationController,r=e?e.length:-1,o=function(d){var u=i._isMasterDetailCell(d),p=i._isCellValid(d);if(!u&&p&&i._isCellElement(d))return i._applyTabIndexToElement(d),i.setCellFocusType(),!0},s=((a,e)=>a.filter("[".concat("aria-colindex",'="').concat(e+1,'"]:not([').concat("dx-drag-cell","])")).first())(e,t);if(s.length)o(s);else{r<=t&&(t=r-1);for(var c=t;c<r&&!o((0,x.A)(e[c]));++c);}}renderDelayedTemplates(e){super.renderDelayedTemplates.apply(this,arguments),this.waitAsyncTemplates().done(()=>{this._renderFocusByChange(e)})}_renderFocusByChange(e){var t,{operationTypes:i,repaintChangesOnly:r}=e??{},{fullReload:o,pageSize:s}=i??{},c=!(null===(t=e?.changeTypes)||void 0===t||!t.find(u=>"insert"===u||"remove"===u));if(!e||!r||o||s||c){var d=function P2(a){var e=a.getController("keyboardNavigation");return!!e._isVirtualScrolling()&&a.option("focusedRowIndex")===e.getRowIndex()}(this);this.renderFocusState({preventScroll:d,pageSizeChanged:s})}}_renderCore(e){var t=super._renderCore.apply(this,arguments);return this._renderFocusByChange(e),t}_editCellPrepared(e){var t,i=this._getEditorInstance(e),r=null===(t=this._keyboardNavigationController)||void 0===t?void 0:t._isFastEditingStarted();i&&r&&this._handleEditingNavigationMode(i),super._editCellPrepared.apply(this,arguments)}_handleEditingNavigationMode(e){["downArrow","upArrow"].forEach(i=>{var r=e._supportedKeys()[i];e.registerKeyHandler(i,o=>{if("true"===e._input().attr("aria-expanded"))return r&&r.call(e,o)})}),e.registerKeyHandler("leftArrow",j.lQ),e.registerKeyHandler("rightArrow",j.lQ),"dxDateBox"===e.NAME&&e.option("useMaskBehavior")&&e.registerKeyHandler("enter",j.lQ)}_getEditorInstance(e){var t=e.find(".dx-texteditor").eq(0);return q.getWidgetInstance(t)}}},controllers:{editing:a=>class extends a{editCell(e,t){if(this._keyboardNavigationController._processCanceledEditCellPosition(e,t))return!1;var i=super.editCell(e,t);return i&&this._keyboardNavigationController.setupFocusedView(),i}editRow(e){var t=this._keyboardNavigationController.getVisibleColumnIndex(),i=this._columnsController.getVisibleColumns()[t];(i&&i.type||this.option("editing.mode")===Li)&&this._keyboardNavigationController._resetFocusedCell(),super.editRow(e)}addRow(e){return this._keyboardNavigationController.setupFocusedView(),this._keyboardNavigationController.setCellFocusType(),super.addRow.apply(this,arguments)}getFocusedCellInRow(e){var t=super.getFocusedCellInRow(e),i=this._dataController.getRowIndexOffset(),r=this._keyboardNavigationController._focusedCellPosition.rowIndex-i;if(this._keyboardNavigationController.isKeyboardEnabled()&&r===e){var o=this._keyboardNavigationController._getFocusedCell();mt(o)&&!o.hasClass(Vh)&&(t=o)}return t}_processCanceledEditingCell(){this.closeEditCell().done(()=>{this._keyboardNavigationController._updateFocus()})}closeEditCell(){var e=this._keyboardNavigationController;e._fastEditingStarted=!1;var t=super.closeEditCell.apply(this,arguments);return e._updateFocus(),t}_delayedInputFocus(){this._keyboardNavigationController._isNeedScroll=!0,super._delayedInputFocus.apply(this,arguments)}_isEditingStart(){var e=super._isEditingStart.apply(this,arguments);if(e&&!this._keyboardNavigationController._isNeedFocus){var t=this._keyboardNavigationController._getFocusedCell();this._keyboardNavigationController._focus(t,!0)}return e}},data:a=>class extends a{_correctRowIndices(e){var t=this._keyboardNavigationController._focusedCellPosition;if(super._correctRowIndices.apply(this,arguments),t&&t.rowIndex>=0){var i=e(t.rowIndex);i&&(t.rowIndex+=i,this._editorFactoryController.refocus())}}getMaxRowIndex(){var e=this.items().length-1,t=this.virtualItemsCount();return t&&(e+=this.getRowIndexOffset()+t.end),e}},adaptiveColumns:a=>class extends a{_showHiddenCellsInView(e){var{viewName:t,$cells:i,isCommandColumn:r}=e;super._showHiddenCellsInView.apply(this,arguments),t===Hh&&!r&&i.each((o,s)=>{var c=(0,x.A)(s);$h(c)&&c.attr("tabindex",0)})}_hideVisibleCellInView(e){var{viewName:t,$cell:i,isCommandColumn:r}=e;super._hideVisibleCellInView.apply(this,arguments),t===Hh&&!r&&$h(i)&&i.removeAttr("tabindex")}},keyboardNavigation:a=>class extends a{init(){var e;super.init(),this.rowsViewFocusOutHandlerContext=null!==(e=this.rowsViewFocusOutHandlerContext)&&void 0!==e?e:this.rowsViewFocusOutHandler.bind(this)}subscribeToRowsViewFocusEvent(){var e;super.subscribeToRowsViewFocusEvent();var t=null===(e=this._rowsView)||void 0===e?void 0:e.element();n.A.on(t,"focusout",this.rowsViewFocusOutHandlerContext)}unsubscribeFromRowsViewFocusEvent(){var e;super.unsubscribeFromRowsViewFocusEvent();var t=null===(e=this._rowsView)||void 0===e?void 0:e.element();n.A.off(t,"focusout",this.rowsViewFocusOutHandlerContext)}rowsViewFocusHandler(e){var t=(0,x.A)(e.target);this.translateFocusIfNeed(e,t),super.rowsViewFocusHandler(e)}rowsViewFocusOutHandler(){this.makeScrollableFocusableIfNeed()}translateFocusIfNeed(e,t){var i=this.isScrollableNeedFocusable(),r=this._isFixedColumn(0);if(i&&r){var o=this._rowsView.getCell({rowIndex:0,columnIndex:0}),s=!!o.attr("tabindex"),c=t.is(this._$firstNotFixedCell);
1s&&c&&(e.preventDefault(),this._focus(o))}}renderCompleted(e){this._$firstNotFixedCell=this.getFirstNotFixedCell(),this.makeScrollableFocusableIfNeed(),super.renderCompleted(e)}_focus(e,t,i){super._focus(e,t,i),this.makeScrollableFocusableIfNeed()}_tabKeyHandler(e,t){var i,o=!((0,m.O9)(this._focusedCellPosition)&&!(0,m.RI)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),s=this.isScrollableNeedFocusable();o&&s&&(null===(i=this._$firstNotFixedCell)||void 0===i||i.removeAttr("tabIndex")),super._tabKeyHandler(e,t)}getFirstNotFixedCell(){var t=this._columnsController.getVisibleColumns().findIndex(i=>{var{fixed:r}=i;return!r});return-1===t?void 0:this._rowsView._getCellElement(0,t)}isScrollableNeedFocusable(){var e,t,i=!!this._rowsView.getScrollable(),r=!(null===(e=this._rowsView._fixedTableElement)||void 0===e||!e.length),o=!(null===(t=this._rowsView.getCellElements(0))||void 0===t||!t.length);return i&&r&&o}makeScrollableFocusableIfNeed(){!this.isScrollableNeedFocusable()||!this._$firstNotFixedCell||this._applyTabIndexToElement(this._$firstNotFixedCell)}}}}});class T2{constructor(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=nl(e.totalAggregates||[],Wh),this._groupAggregates=nl(e.groupAggregates||[],Wh),this._totals=[]}calculate(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})}totalAggregates(){return this._totals}_aggregate(e,t,i){for(var r=t.items?t.items.length:0,o=0;o<e.length;o++)if(e[o].aggregator!==ct.zL.count)for(var s=0;s<r;s++)this._accumulate(o,e[o],i,t.items[s]);else i[o]=(i[o]||0)+r}_calculateTotals(e,t){if(0===e&&(this._totals=this._seed(this._totalAggregates)
1),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(var i=0;i<t.items.length;i++)this._calculateTotals(e+1,t.items[i]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))}_calculateGroups(e){var t=this._groupLevel,i=t+1,r=this._seed.bind(this,this._groupAggregates),o=this._aggregate.bind(this,this._groupAggregates),s=this._finalize.bind(this,this._groupAggregates);function c(d){d.aggregates=r(i-1),i===t?o(d,d.aggregates):Mu(i,t,d,u=>{o(u,d.aggregates)}),d.aggregates=s(d.aggregates)}for(;--i>0;)Mu(0,i,e,c)}_seed(e,t){return nl(e,i=>{var{aggregator:r}=i;return"seed"in r?(0,m.Tn)(r.seed)?r.seed(t):r.seed:NaN})}_accumulate(e,t,i,r){var o=t.selector(r),{aggregator:s}=t,{skipEmptyValues:c}=t;c&&function I2(a){return a!=a||""===a||null==a}(o)||(i[e]=i[e]!=i[e]?o:s.step(i[e],o))}_finalize(e,t){return nl(e,(i,r)=>{var o=i.aggregator.finalize;return o?o(t[r]):t[r]})}}var wu="groupFooter",Kh="totalFooter",Xh=function(a,e){var t=(0,x.A)(a),{column:i}=e,{summaryItems:r}=e,o=[];if(!i.command&&r){for(var s=0;s<r.length;s++){var c=r[s],d=W.getSummaryText(c,e.summaryTexts);o.push((0,x.A)("<div>").css("textAlign",c.alignment||i.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(c.cssClass).toggleClass("dx-datagrid-group-text-content","group"===e.rowType).text(d).attr("aria-label","".concat(i.caption," ").concat(d)))}t.append(o)}},Yh=function(a,e){var t=a.option("summary.texts")||{};return{totalItem:e.row,summaryItems:e.row.summaryCells[e.columnIndex],summaryTexts:t}},Su=function(a){return a.summary||a.aggregates||[]},yu=function(a){return a.option("summary.recalculateWhileEditing")},z2=function a(e,t,i,r){r=r||[];for(var o=0;o<e.length;o++)r.push(e[o].key),1===t?i(r,e[o].items):a(e[o].items,t-1,i,r),r.pop()},G2=function a(e,t,i){return i?a(e,t.map(r=>({items:[r]}),i-1)):e.concat(t)},H2=function a(e,t,i){return i?e.map(r=>{var o={},s=a(r.items||[],t,i-1);return Object.defineProperty(o,"aggregates",{get:()=>r.aggregates,set:c=>{r.aggregates=c}}),(0,A.X)(o,r,{items:s})}):e.filter(r=>t.indexOf(r)<0)},j2=function a(e,t,i){if(!e||!t.length)return e;var s,o=i[0];return t[0]&&o&&o.length&&(s=(0,h.A)(e),(0,w.__)(o,function(c){s=0===c?s.sortBy(this.selector,this.desc):s.thenBy(this.selector,this.desc)}),s.enumerate().done(c=>{e=c})),t=t.slice(1),i=i.slice(1),t.length&&i.length&&(0,w.__)(e,function(){this.items=a(this.items,t,i)}),e},Jh=function(a,e,t){var i=t&&t.sortByGroups&&t.sortByGroups();return i&&i.length?j2(a,e,i):a},Zh=function(a,e,t,i){var r;if(yu(a)){var o=a.getController("editing");if(o){var s=o.getInsertedData();s.length&&(t=G2(t,s,i));var c=o.getRemovedData();c.length&&(t=H2(t,c,i))}}return e&&(r=new T2({totalAggregates:e.totalAggregates,groupAggregates:e.groupAggregates,data:t,groupLevel:i})).calculate(),r?r.totalAggregates():[]};wi.extend(a=>class extends a{init(){super.init.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=j.lQ}summaryGetter(e){if(!arguments.length)return this._summaryGetter;(0,m.Tn)(e)&&(this._summaryGetter=e)}summary(e){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return e}}totalAggregates(){return this._totalAggregates}isLastLevelGroupItemsPagingLocal(){var e=this.summary(),t=e?.sortByGroups();return t?.length}sortLastLevelGroupItems(e,t,i){var r=_.A.multiLevelGroup((0,h.A)(e),t).toArray(),o=[];return i.forEach(s=>{z2(r,t.length,(c,d)=>{s.toString()===c.toString()&&(o=o.concat(d))})}),o}_customizeRemoteOperations(e){var t=this.summary();t&&(e.remoteOperations.summary?(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)&&(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),super._customizeRemoteOperations.apply(this,arguments);var i=e.cachedData.extra;i?.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)}_handleDataLoadedCore(e){var t,i,r=(0,ct.st)(e.storeLoadOptions.group||e.loadOptions.group||[]),o=e.remoteOperations||{},s=this.summaryGetter()(o);if(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)if(o.summary)!o.paging&&r.length&&s&&(o.grouping||Zh(this,{groupAggregates:s.groupAggregates},e.data,r.length),e.data=Jh(e.data,r,s));else if(!o.paging&&s){var c=e.operationTypes||{};if(!Object.keys(c).some(p=>c[p])||null===(i=null===(t=e.cachedData)||void 0===t?void 0:t.extra)||void 0===i||!i.summary||r.length&&s.groupAggregates.length){var u=Zh(this,s,e.data,r.length);e.extra=(0,m.Qd)(e.extra)?e.extra:{}
1,e.extra.summary=u,e.cachedData&&(e.cachedData.extra=e.extra)}e.data=Jh(e.data,r,s)}e.isCustomLoading||(this._totalAggregates=e.extra&&e.extra.summary||this._totalAggregates),super._handleDataLoadedCore(e)}}),W.registerModule("summary",{defaultOptions:()=>({summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:R.A.format("dxDataGrid-summarySum"),sumOtherColumn:R.A.format("dxDataGrid-summarySumOtherColumn"),min:R.A.format("dxDataGrid-summaryMin"),minOtherColumn:R.A.format("dxDataGrid-summaryMinOtherColumn"),max:R.A.format("dxDataGrid-summaryMax"),maxOtherColumn:R.A.format("dxDataGrid-summaryMaxOtherColumn"),avg:R.A.format("dxDataGrid-summaryAvg"),avgOtherColumn:R.A.format("dxDataGrid-summaryAvgOtherColumn"),count:R.A.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}),views:{footerView:class U2 extends Ht{_getRows(){return this._dataController.footerItems()}_getCellOptions(e){return(0,A.X)(super._getCellOptions(e),Yh(this,e))}_renderCellContent(e,t){Xh(e,t),super._renderCellContent.apply(this,arguments)}_renderCore(e){var t=!1,i=this._dataController.footerItems()[0];(!e||!e.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t=!0),i&&i.summaryCells&&i.summaryCells.length&&(this._updateContent(this._renderTable({change:e}),e),t&&this._updateScrollLeftPosition())}_updateContent(e,t){return t&&"update"===t.changeType&&t.columnIndices?this.waitAsyncTemplates().done(()=>{var i=this.getTableElement().find(".dx-row"),r=e.find(".dx-row");this._updateCells(i,r,t.columnIndices[0])}):super._updateContent.apply(this,arguments)}_rowClick(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,A.X)({},e,t))}_columnOptionChanged(e){var{optionNames:t}=e;e.changeTypes.grouping||(t.width||t.visibleWidth)&&super._columnOptionChanged(e)}_handleDataChanged(e){var{changeType:t}=e;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():("refresh"===t||"append"===t||"prepend"===t)&&this.render()}_createRow(e){var t=super._createRow.apply(this,arguments);return e.rowType===Kh&&(t.addClass("dx-footer-row"),t.addClass("dx-cell-focus-disabled"),t.attr("tabindex",0)),t}getHeight(){return this.getElementHeight()}isVisible(){return!!this._dataController.footerItems().length}}},extenders:{controllers:{data:a=>class extends a{_isDataColumn(e){return e&&(!(0,m.O9)(e.groupIndex)||e.showWhenGrouped)}_isGroupFooterVisible(){for(var e=this.option("summary.groupItems")||[],t=0;t<e.length;t++){var i=e[t],r=this._columnsController.columnOption(i.showInColumn||i.column);if(i.showInGroupFooter&&this._isDataColumn(r))return!0}return!1}_processGroupItems(e,t,i){var r=i&&i.data,o=super._processGroupItems.apply(this,arguments);return i&&(void 0===i.isGroupFooterVisible&&(i.isGroupFooterVisible=this._isGroupFooterVisible()),r&&r.items&&i.isGroupFooterVisible&&(i.collectContinuationItems||!r.isContinuationOnNextPage)&&o.push({rowType:wu,key:i.path.slice(),data:r,groupIndex:i.path.length-1,values:[]})),o}_processGroupItem(e,t){var i=this;if(t.summaryGroupItems||(t.summaryGroupItems=i.option("summary.groupItems")||[]),"group"===e.rowType){var r=-1,o=-1;(0,w.__)(t.visibleColumns,function(s){e.groupIndex===this.groupIndex&&(r=this.index),s>0&&"expand"===t.visibleColumns[s-1].command&&"expand"!==this.command&&(o=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,Su(e.data),t.visibleColumns,(s,c)=>s.showInGroupFooter?-1:s.alignByColumn&&c&&!(0,m.O9)(c.groupIndex)&&c.index!==o?c.index:r,!0)}return e.rowType===wu&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,Su(e.data),t.visibleColumns,(s,c)=>s.showInGroupFooter&&i._isDataColumn(c)?c.index:-1)),e}_calculateSummaryCells(e,t,i,r,o){var s=this,c=[],d={};return(0,w.__)(e,(u,p)=>{var v=s._columnsController.columnOption(p.column),f=p.showInColumn&&s._columnsController.columnOption(p.showInColumn)||v,O=r(p,f);if(O>
1=0){d[O]||(d[O]=[]);var S,b=t[u];b==b&&((0,m.O9)(p.valueFormat)?S=p.valueFormat:"count"!==p.summaryType&&(S=W.getFormatByDataType(v&&v.dataType)),d[O].push((0,A.X)({},p,{value:(0,m.Kg)(b)&&v&&v.deserializeValue?v.deserializeValue(b):b,valueFormat:S,columnCaption:v&&v.index!==O?v.caption:void 0})))}}),(0,m.RI)(d)||i.forEach((u,p)=>{var v=i[p-1];c.push(d[!o||"expand"!==v?.command&&"expand"!==u.command?u.index:v?.index]||[])}),c}_getSummaryCells(e,t){var i=this;return i._calculateSummaryCells(e,t,i._columnsController.getVisibleColumns(),(o,s)=>i._isDataColumn(s)?s.index:-1)}_updateItemsCore(e){var t,i=this._dataSource,r=this._footerItems,o=r&&r[0]&&r[0].summaryCells,s=this.option("summary.totalItems");if(this._footerItems=[],i&&s&&s.length){var c=i.totalAggregates();t=this._getSummaryCells(s,c),e&&e.repaintChangesOnly&&o&&(e.totalColumnIndices=t.map((d,u)=>JSON.stringify(d)!==JSON.stringify(o[u])?u:-1).filter(d=>d>=0)),t.length&&this._footerItems.push({rowType:Kh,summaryCells:t})}super._updateItemsCore(e)}_prepareUnsavedDataSelector(e){if(yu(this)){var t=this.getController("editing");if(t)return function(i){return i=t.getUpdatedData(i),e(i)}}return e}_prepareAggregateSelector(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(i){var r=e(i);return(0,m.O9)(r)?Number(r):r}:e}_getAggregates(e,t){var i=this,r=i.getController("columns"),o=i.option("summary.calculateCustomSummary"),s=i.option("summary.skipEmptyValues");return(0,w.Tj)(e||[],c=>{var d=r.columnOption(c.column),u=d&&d.calculateCellValue?d.calculateCellValue.bind(d):(0,me.Hz)(d?d.dataField:c.column),p=c.summaryType||"count",v=(0,m.O9)(c.skipEmptyValues)?c.skipEmptyValues:s;if(t)return{selector:c.column,summaryType:p};var f=i._prepareAggregateSelector(u,p);if("custom"===p){o||(Oe.A.log("E1026"),o=function(){});var O={component:i.component,name:c.name};o(O),O.summaryProcess="calculate",p={seed:b=>(O.summaryProcess="start",O.totalValue=void 0,O.groupIndex=b,delete O.value,o(O),O.totalValue),step:(b,S)=>(O.summaryProcess="calculate",O.totalValue=b,O.value=S,o(O),O.totalValue),finalize:b=>(O.summaryProcess="finalize",O.totalValue=b,delete O.value,o(O),O.totalValue)}}return{selector:f,aggregator:p,skipEmptyValues:v}})}_addSortInfo(e,t,i,r){if(t){var{groupIndex:o}=t;r=r||t.sortOrder,(0,m.O9)(o)&&(e[o]=e[o]||[],e[o].push({selector:i,desc:"desc"===r}))}}_findSummaryItem(e,t){var i=-1;return(0,m.O9)(t)&&(0,w.__)(e||[],function(r){if(this.name===t||r===t||this.summaryType===t||this.column===t||function(o){var{summaryType:s}=o,{column:c}=o;return s&&c&&"".concat(s,"_").concat(c)}(this)===t)return i=r,!1}),i}_getSummarySortByGroups(e,t){var i=this,r=i._columnsController,o=r.getGroupColumns(),s=[];if(t&&t.length)return(0,w.__)(e||[],function(){var{sortOrder:c}=this,{groupColumn:d}=this,u=i._findSummaryItem(t,this.summaryItem);if(!(u<0)){var p=function(v){return Su(v)[u]};(0,m.O9)(d)?(d=r.columnOption(d),i._addSortInfo(s,d,p,c)):(0,w.__)(o,(v,f)=>{i._addSortInfo(s,f,p,c)})}}),s}_createDataSourceAdapterCore(e,t){var i=this,r=super._createDataSourceAdapterCore(e,t);return r.summaryGetter(o=>i._getSummaryOptions(o||t)),r}_getSummaryOptions(e){var t=this,i=t.option("summary.groupItems"),r=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),s=t._getAggregates(i,e&&e.grouping&&e.summary),c=t._getAggregates(r,e&&e.summary);if(s.length||c.length)return{groupAggregates:s,totalAggregates:c,sortByGroups:function(){return t._getSummarySortByGroups(o,i)}}}publicMethods(){var e=super.publicMethods();return e.push("getTotalSummaryValue"),e}getTotalSummaryValue(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),i=this._dataSource.totalAggregates();if(i.length&&t>-1)return i[t]}optionChanged(e){("summary"===e.name||"sortByGroupSummaryInfo"===e.name)&&(e.name="dataSource"),super.optionChanged(e)}init(){this._footerItems=[],super.init()}footerItems(){return this._footerItems}},editing:a=>class extends a{_refreshSummary(){yu(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})}_addChange(e){var t=super._addChange.apply(this,arguments);return e.type&&this._refreshSummary(),t}_removeChange(){var e=super._removeChange.apply(this,arguments);return this._refreshSummary(),e}cancelEditData(){var e=super.cancelEditData.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:a=>class extends a{_createRow(e){var t=super._createRow.apply(this,arguments);return e&&t.addClass(e.rowType===wu?"dx-datagrid-group-footer":""),t}_renderCells(e,t){super._renderCells.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)}_hasAlignByColumnSummaryItems(e,t){return!(0,m.O9)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length}_getAlignByColumnCellCount(e,t){for(var i=0,r=1;r<e;r++)i=this._hasAlignByColumnSummaryItems(t.row.summaryCells.length-r,t)?r:i;return i}
1_renderGroupSummaryCells(e,t){var i=e.children().last(),r=Number(i.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(r,t);this._renderGroupSummaryCellsCore(i,t,r,o)}_renderGroupSummaryCellsCore(e,t,i,r){if(r>0){e.attr("colSpan",i-r);for(var o=0;o<r;o++){var s=t.columns.length-r+o;this._renderCell(e.parent(),(0,A.X)({column:t.columns[s],columnIndex:this._getSummaryCellIndex(s,t.columns)},t))}}}_getSummaryCellIndex(e,t){return e}_getCellTemplate(e){return!e.column.command&&!(0,m.O9)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?Xh:super._getCellTemplate(e)}_getCellOptions(e){var t=super._getCellOptions(e);return e.row.summaryCells?(0,A.X)(t,Yh(this,e)):t}}}}});var Y2=P(2824),J2=P(9544),Qh="content",ho="content-fixed",e_="dx-first-cell",t_="dx-state-hover",n_="dx-col-fixed",Eu="dx-pointer-events-none",si="transparent",i_="dx-group-row",on=function(a){var e=-1;return(0,w.__)(a,(t,i)=>{if(i.command===si)return e=t,!1}),e},r_=function(a,e,t){var i=0;if(a&&e&&t)for(var r=0;r<a.length;r++)a[r].command===si?i+=a[r].colspan:(e[i]<t[r]&&(e[i]=t[r]),i++);return e},Ru=a=>class extends a{init(){super.init(),this._isFixedTableRendering=!1,this._isFixedColumns=!1}_createCol(e){return super._createCol(e).toggleClass(n_,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==si)))}_correctColumnIndicesForFixedColumns(e,t){var i=on(e),r=e[i].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map(s=>{if(s)return s.map(c=>c<i?c:c>=i+r?c-r+1:-1).filter(c=>c>=0)}))}_partialUpdateFixedTable(e){var t=this._fixedTableElement,i=this._getRowElementsCore(t);t.children("colgroup").replaceWith(this._createColGroup(e));for(var o=0;o<i.length;o++)this._partialUpdateFixedRow((0,x.A)(i[o]),e)}_partialUpdateFixedRow(e,t){var i,d,r=e.get(0).childNodes,o=on(t),s=t[o],u=this._columnsController.getColumnIndexOffset()+1,{colspan:p}=s;if(e.hasClass("dx-master-detail-row"))r[0].setAttribute("colspan",null===(i=this._columnsController.getVisibleColumns())||void 0===i?void 0:i.length);else{e.hasClass(i_)&&(p=(d=this._getGroupCellOptions({row:e.data("options"),columns:this._columnsController.getVisibleColumns()})).colspan-Math.max(0,r.length-(d.columnIndex+2)));for(var v=0;v<r.length;v++){var f=d?v===d.columnIndex+1:v===o;r[v].setAttribute("aria-colindex",u),f?(r[v].setAttribute("colspan",p),u+=p):u++}}}_renderTable(e){var t,i,r=this.getFixedColumns();this._isFixedColumns=!!r.length;var o=super._renderTable(e);if(this._isFixedColumns){var s=e?.change,c=this._getRowElements(this._fixedTableElement),d=s?.virtualColumnsScrolling&&c.length===(null===(t=s?.items)||void 0===t?void 0:t.length);if(this._isFixedTableRendering=!0,d&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(r),this._isFixedTableRendering=!1;else{var u=s?.columnIndices;this._correctColumnIndicesForFixedColumns(r,s),i=this._createTable(r),this._renderRows(i,(0,A.X)({},e,{columns:r})),this._updateContent(i,s,!0),u&&(s.columnIndices=u),this._isFixedTableRendering=!1}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return o}_renderRow(e,t){var i,{cells:r}=t.row;if(super._renderRow.apply(this,arguments),this._isFixedTableRendering&&r&&r.length){i=0;var o=t.row.cells||[];r=r.slice(),t.row.cells=r;for(var s=0;s<o.length;s++)o[s].column&&o[s].column.command===si?i=(o[s].column.colspan||1)-1:r[s+i]=o[s]}}_createCell(e){var s,c,d,{column:t}=e,i=t&&t.command,{rowType:r}=e,o=super._createCell.apply(this,arguments);(this._isFixedTableRendering||"filter"===r)&&(c=(s=this.getFixedColumns())[(d=on(s))-1]),this._isFixedTableRendering?i===si&&(o.addClass(Eu).toggleClass(e_,0===d||c&&"expand"===c.command).toggleClass("dx-last-cell",s.length&&d===s.length-1),"freeSpace"!==r&&q.setEmptyText(o)):"filter"===r&&o.toggleClass(e_,e.columnIndex===d);var u=this.option("rowAlternationEnabled")&&e.isAltRow,p="multiple"===this.option("selection.mode")&&0===e.columnIndex&&"header"===e.rowType;return Ie.A.mozilla&&e.column.fixed&&"group"!==e.rowType&&!u&&!p&&o.addClass(n_),o}_getContent(e){var t;return e?null===(t=this._fixedTableElement)||void 0===t?void 0:t.parent():super._getContent.apply(this,arguments)}_wrapTableInScrollContainer(e,t){var i=super._wrapTableInScrollContainer.apply(this,arguments);return(this._isFixedTableRendering||t)&&i.addClass(this.addWidgetPrefix(ho)),i}_renderCellContent(e,t){var i,{column:r}=t,o=this._isFixedTableRendering,s="group"===t.rowType&&(0,m.O9)(r.groupIndex);if(o&&s&&!r.command&&!r.groupCellTemplate&&e.css("pointerEvents","none"),!o&&this._isFixedColumns){if(i=r.fixed||r.command&&!1!==r.fixed,s&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length)){var c=this._columnsController.getVisibleColumns(),d=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(r.colspan,{columns:c,row:t.row,isFixed:!0}):0;if(d>0){var u=on(this._columnsController.getFixedColumns());i=c.length-d<u}}if(i){if(r.command&&"buttons"!==r.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(r.cssClass);e.addClass("dx-hidden-cell")}}r.command!==si&&super._renderCellContent.apply(this,arguments)}_getCellElementsCore(e){var t=super._getCellElementsCore.apply(this,arguments),i=t?.parent().hasClass(i_),r="columnHeadersView"===this.name?e:void 0;if(this._fixedTableElement&&t){var o=this.getFixedColumns(r),s=this._getRowElements(this._fixedTableElement).eq(e).children("td");(0,w.__)(s,(c,d)=>
1{if(i)t[c]&&"hidden"!==d.style.visibility&&(t[c]=d);else{var u=o[c];if(u)if(u.command===si)s.eq(c).hasClass("dx-master-detail-cell")&&(t[c]=d||t[c]);else{var p=this._columnsController.getVisibleIndexByColumn(u,r);t[p]=d||t[p]}}})}return t}getColumnWidths(e){var t=super.getColumnWidths(),i=this.getFixedColumns(),r=this._fixedTableElement&&t.length?super.getColumnWidths(this._fixedTableElement):void 0;return r_(i,t,r)}getTableElement(e){return(e=this._isFixedTableRendering||e)?this._fixedTableElement:super.getTableElement()}setTableElement(e,t){this._isFixedTableRendering||t?this._fixedTableElement=e.addClass(Eu):super.setTableElement(e)}getColumns(e){var t=this.getTableElement();return this._isFixedTableRendering?this.getFixedColumns(e):super.getColumns(e,t)}getRowIndex(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):super.getRowIndex(e)}getTableElements(){var e=super.getTableElements.apply(this,arguments);return this._fixedTableElement&&(e=(0,x.A)([e.get(0),this._fixedTableElement.get(0)])),e}getFixedColumns(e){return this._columnsController.getFixedColumns(e)}getFixedColumnsOffset(){var t,e={left:0,right:0};if(this._fixedTableElement){var i=(t=this.getTransparentColumnElement()).position();e={left:i.left,right:(0,F.Ot)(this.element(),!0)-((0,F.Ot)(t,!0)+i.left)}}return e}getTransparentColumnElement(){return this._fixedTableElement&&this._fixedTableElement.find(".".concat(Eu)).first()}getFixedTableElement(){return this._fixedTableElement}isFixedColumns(){return this._isFixedColumns}_resizeCore(){super._resizeCore(),this.synchronizeRows()}setColumnWidths(e){var t,{widths:i}=e,r=this._columnsController.getVisibleColumns(),o=i?.length&&r.some(f=>(0,m.O9)(f.visibleWidth)),s=null===(t=e.optionNames)||void 0===t?void 0:t.width;if(super.setColumnWidths(e),this._fixedTableElement){var c=i?.some(f=>"auto"===f||!(0,m.O9)(f)),u=!c||o&&this.isScrollbarVisible(!0)?this.getFixedColumns():r;this.setFixedTableColumnWidths(u,i)}var p=this.option("wordWrapEnabled");(o||s&&p)&&this.synchronizeRows()}setFixedTableColumnWidths(e,t){if(this._fixedTableElement&&t){var i=this._fixedTableElement.children("colgroup").children("col");i.toArray().forEach(o=>o.removeAttribute("style"));var r=0;e.forEach(o=>{if(o.colspan)r+=o.colspan;else{var s=pn(t[r]);(0,m.O9)(s)&&(0,it.zj)(i.eq(r),s),r+=1}})}}_getClientHeight(e){var t=e.getBoundingClientRect&&(0,De.N)(e);return t&&t.height?t.height:e.clientHeight}synchronizeRows(){var i,r,o,s,e=[],t=[];this.waitAsyncTemplates(!0).done(()=>{if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var c=this._getClientHeight(this._tableElement.get(0)),d=this._getClientHeight(this._fixedTableElement.get(0));if(r=this._getRowElements(this._tableElement),o=this._getRowElements(this._fixedTableElement),s=this._findContentElement(),c!==d){for(s&&s.css("height",c),r.css("height",""),o.css("height",""),i=0;i<r.length;i++)e.push(this._getClientHeight(r.get(i))),t.push(this._getClientHeight(o.get(i)));for(i=0;i<r.length;i++){var u=e[i],p=t[i];u>p?o.eq(i).css("height",u):u<p&&r.eq(i).css("height",p)}s&&s.css("height","")}}})}setScrollerSpacing(e,t){var i=this.option("rtlEnabled");super.setScrollerSpacing(e),this.element().children(".".concat(this.addWidgetPrefix(ho))).css({paddingLeft:i?e:"",paddingRight:i?"":e})}};W.registerModule("columnFixing",{defaultOptions:()=>({columnFixing:{enabled:!1,texts:{fix:R.A.format("dxDataGrid-columnFixingFix"),unfix:R.A.format("dxDataGrid-columnFixingUnfix"),leftPosition:R.A.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:R.A.format("dxDataGrid-columnFixingRightPosition")}}}),extenders:{views:{columnHeadersView:a=>class extends(Ru(a)){_getRowVisibleColumns(e){return this._isFixedTableRendering?this.getFixedColumns(e):super._getRowVisibleColumns(e)}getContextMenuItems(e){var{column:t}=e,i=this.option("columnFixing"),r=super.getContextMenuItems(e);if(e.row&&"header"===e.row.rowType&&!0===i.enabled&&t&&t.allowFixing){var o=s=>{switch(s.itemData.value){case"none":this._columnsController.columnOption(t.index,"fixed",!1);break;case"left":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"right"})}};(r=r||[]).push({text:i.texts.fix,beginGroup:!0,items:[{text:i.texts.leftPosition,value:"left",disabled:t.fixed&&(!t.fixedPosition||"left"===t.fixedPosition),onItemClick:o},{text:i.texts.rightPosition,value:"right",disabled:t.fixed&&"right"===t.fixedPosition,onItemClick:o}]},{text:i.texts.unfix,value:"none",disabled:!t.fixed,onItemClick:o})}return r}getFixedColumnElements(e){if((0,m.O9)(e))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children();var t=this.getColumnElements(),i=this.getTransparentColumnElement();if(t&&i&&i.length){var r=on(this.getFixedColumns());t.splice(r,i.get(0).colSpan,i.get(0))}return t}getColumnWidths(){var e,t=super.getColumnWidths(),i=this.getFixedColumnElements(),r=this.getFixedColumns();return this._fixedTableElement&&(e=i&&i.length?this._getWidths(i):super.getColumnWidths(this._fixedTableElement)),r_(r,t,e)}},rowsView:a=>class extends(Ru(a)){dispose(){super.dispose.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}optionChanged(e){super.optionChanged(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHover
1Events():this._detachHoverEvents())}_detachHoverEvents(){var e=this.element();this._fixedTableElement&&this._tableElement&&n.A.off(e,"mouseover mouseout",".dx-data-row")}_attachHoverEvents(){this._fixedTableElement&&this._tableElement&&n.A.on(this.element(),"mouseover mouseout",".dx-data-row",this.createAction(e=>{var{event:t}=e,i=this.getRowIndex((0,x.A)(t.target).closest(".dx-row")),r="mouseover"===t.type;i>=0&&(this._tableElement&&this._getRowElements(this._tableElement).eq(i).toggleClass(t_,r),this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(i).toggleClass(t_,r))}))}_getScrollDelay(){var e;return(null===(e=this._resizingController)||void 0===e?void 0:e.hasResizeTimeout())?this.option("scrolling.updateTimeout"):Ie.A.mozilla?60:0}_findContentElement(e){var t,i,r=this.addWidgetPrefix(Qh),o=this.element();if(e=this._isFixedTableRendering||e,o&&e){t=o.children(".".concat(r));var s=this.getScrollable();return!t.length&&s&&(t=(0,x.A)("<div>").addClass(r),n.A.on(t,"scroll",c=>{var{target:d}=c,u=this._getScrollDelay();clearTimeout(this._fixedScrollTimeout),this._fixedScrollTimeout=setTimeout(()=>{i=(0,x.A)(d).scrollTop(),s.scrollTo({y:i})},u)}),n.A.on(t,J2.U,c=>{var d=(0,x.A)(c.target).closest(".dx-scrollable"),u=!1;if(s&&s.$element().is(d))u=!0;else{var p=d.length&&Cn.A.getInstance(d.get(0)),v=p&&p.scrollHeight()-p.clientHeight()>0;u=p&&!v}if(u){i=s.scrollTop(),s.scrollTo({y:i-c.delta});var f=s.scrollTop()+s.clientHeight(),O=s.scrollHeight()+this.getScrollbarWidth();if(s.scrollTop()>0&&f<O)return!1}}),t.appendTo(o)),t}return super._findContentElement()}_updateScrollable(){super._updateScrollable();var e=this.getScrollable();if(!e?._disposed){var t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)}}_renderContent(e,t,i){return this._isFixedTableRendering||i?e.empty().addClass("".concat(this.addWidgetPrefix(Qh)," ").concat(this.addWidgetPrefix(ho))).append(t):super._renderContent(e,t)}_getGroupCellOptions(e){return super._getGroupCellOptions(this._isFixedTableRendering?(0,A.X)({},e,{columns:this._columnsController.getVisibleColumns()}):e)}_renderGroupedCells(e,t){return super._renderGroupedCells(e,(0,A.X)({},t,{columns:this._columnsController.getVisibleColumns()}))}_renderGroupSummaryCells(e,t){super._renderGroupSummaryCells(e,this._isFixedTableRendering?(0,A.X)({},t,{columns:this._columnsController.getVisibleColumns()}):t)}_hasAlignByColumnSummaryItems(e,t){var i=super._hasAlignByColumnSummaryItems.apply(this,arguments),r=t.columns[e];return t.isFixed?r.fixed&&(i||"right"===r.fixedPosition):i&&(!this._isFixedColumns||!r.fixed)}_renderGroupSummaryCellsCore(e,t,i,r){var o;if(this._isFixedTableRendering){t.isFixed=!0,o=this._getAlignByColumnCellCount(i,t),t.isFixed=!1;var s=t.columns.length-o;
1t=(0,A.X)({},t,{columns:this.getFixedColumns()});var c=on(t.columns);s<c?(o-=t.columns[c].colspan-1||0,i-=t.columns[c].colspan-1||0):r>0&&e.css("visibility","hidden"),r=o}super._renderGroupSummaryCellsCore(e,t,i,r)}_getSummaryCellIndex(e,t){if(this._isFixedTableRendering){var i=on(t);return e>i&&(e+=t[i].colspan-1),e}return super._getSummaryCellIndex.apply(this,arguments)}_renderCore(e){this._detachHoverEvents();var t=super._renderCore(e),i=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",i),this.option("hoverStateEnabled")&&i&&this._attachHoverEvents(),t}setAriaOwns(e,t,i){var r,o;if(i){var s=this.addWidgetPrefix(ho),c=null===(r=this.element())||void 0===r?void 0:r.children(".".concat(s)),d=this.getFixedTableElement();c.length&&d?.length&&this.setAria("owns","".concat(e??""," ").concat(null!==(o=d.attr("id"))&&void 0!==o?o:""," ").concat(t??"").trim(),c)}else super.setAriaOwns.apply(this,arguments)}setRowsOpacity(e,t){super.setRowsOpacity(e,t);var i=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(i,this.getFixedColumns(),e,t)}getCellIndex(e){var t=this._fixedTableElement,i=0;if(t&&e.is("td")&&e.closest(t).length){var r=this.getFixedColumns();return(0,w.__)(r,(o,s)=>{if(o===e[0].cellIndex)return!1;s.colspan?i+=s.colspan:i++}),i}return super.getCellIndex.apply(this,arguments)}_updateFixedTablePosition(e,t){var i;this._fixedTableElement&&this._tableElement&&(this._fixedTableElement.parent().scrollTop(e),t&&this._editorFactoryController&&(i=this._editorFactoryController.focus())&&this._editorFactoryController.focus(i))}setScrollerSpacing(e,t){var i={marginBottom:0},r=this.element().children(".".concat(this.addWidgetPrefix(ho)));r.length&&this._fixedTableElement&&(r.css(i),this._fixedTableElement.css(i),i[this.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t,(this._scrollable&&this._scrollable.option("useNative")?r:this._fixedTableElement).css(i))}_getElasticScrollTop(e){var t=0;if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=(0,x.A)(e.component.content()),r=(0,x.A)(e.component.container()),o=Math.max(i.get(0).clientHeight-r.get(0).clientHeight,0);t=Math.min(o-e.scrollOffset.top,0)}return Math.floor(t)}_applyElasticScrolling(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?(0,Y2.Cy)(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}}_handleScroll(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),super._handleScroll(e)}_updateContentPosition(e){super._updateContentPosition.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)}_afterRowPrepared(e){this._isFixedTableRendering||super._afterRowPrepared(e)}_scrollToElement(e){super._scrollToElement(e,this.getFixedColumnsOffset())}},footerView:a=>class extends(Ru(a)){}},controllers:{draggingHeader:a=>class extends a{_generatePointsByColumns(e){var t=e.columns,{targetDraggingPanel:i}=e;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=i.getFixedColumnElements(0)),e.columns=i.getFixedColumns(e.rowIndex);var r=super._generatePointsByColumns(e);return function(a,e,t){var i=on(e),r=a.length-e.length;(0,w.__)(t,(o,s)=>{s.index>i&&(s.columnIndex+=r,s.index+=r)})}(t,e.columns,r),r}return super._generatePointsByColumns(e)}_pointCreated(e,t,i,r){var o=super._pointCreated.apply(this,arguments),s=t[e.columnIndex],c=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===i&&c&&c.length){var d=(0,De.N)(c.get(0));return r&&r.fixed?"right"===r.fixedPosition?e.x<d.right:e.x>d.left:!(!s||!s.fixed||"right"===s.fixedPosition)||e.x<d.left||e.x>d.right}return o}},columnsResizer:a=>class extends a{_generatePointsByColumns(){var e=this,t=e._columnsController,i=t&&e._columnsController.getVisibleColumns(),r=t&&e._columnsController.getFixedColumns(),o=on(r),s=i.length-r.length,c=e._columnHeadersView.getFixedColumnElements();super._generatePointsByColumns(),c&&c.length>0&&(e._pointsByFixedColumns=q.getPointsByColumns(c,d=>(d.index>o&&(d.columnIndex+=s,d.index+=s),e._pointCreated(d,i.length,i))))}_getTargetPoint(e,t,i){var r=this._columnHeadersView.getTransparentColumnElement();if(r&&r.length){var o=(0,De.N)(r.get(0));if(t<=o.left||t>
1=o.right)return super._getTargetPoint(this._pointsByFixedColumns,t,i)}return super._getTargetPoint(e,t,i)}},resizing:a=>class extends a{_setAriaOwns(){var e,t,i;super._setAriaOwns.apply(this,arguments);var r=null===(e=this._columnHeadersView)||void 0===e?void 0:e.getFixedTableElement(),o=null===(t=this._footerView)||void 0===t?void 0:t.getFixedTableElement();null===(i=this._rowsView)||void 0===i||i.setAriaOwns(r?.attr("id"),o?.attr("id"),!0)}}}}});var o_="columnHeadersView",s_="rowsView",Iu=[o_,s_,"footerView"],sn="adaptiveHidden",ai="detailAdaptive",Au="dx-field-item-content",_o="hidden-column",a_="dx-command-adaptive",il="dx-command-adaptive-hidden",Tu="dx-adaptive-item-text",rl="adaptive",l_="dx-group-cell",c_="dxDataGrid-ariaAdaptiveExpand";function ol(a,e){return a._columnsController.getColumnId(e)}function w3(a,e){var t,i=(0,x.A)(a),r=e.component.getController("adaptiveColumns");"data"===e.rowType?(t=(0,x.A)("<span>").addClass(r.addWidgetPrefix("adaptive-more")),n.A.on(t,(0,D.b4)(ke.U,"dxDataGridAdaptivity"),r.createAction(()=>{r.toggleExpandAdaptiveDetailRow(e.key)})),t.appendTo(i)):q.setEmptyText(i)}function Fu(a){var e,t=null===(e=a.data)||void 0===e?void 0:e.$nextCell;n.A.off(t,"focus",Fu),n.A.trigger(t,"dxclick")}function d_(a,e,t,i,r,o){o=o||[],(i=i||[])[t=t||0]=i[t]||0;var u,s=a[t],d=0;if(s){for(u=o[t]+1||0;u<s.length;u++){var p=s[u],v=u+i[t],f=p.colspan||1;if(d_(a,e,t+(p.rowspan||1),i,f,o),i[t]+=f-1,d+=f,p.rowspan)for(var O=t+1;O<t+p.rowspan;O++)i[O]=i[O]||0,i[O]+=p.colspan||1;if(!1===e(p,v,t,u)||void 0!==r&&d>=r)break}o[t]=u}}function Du(a,e,t){var i=[];d_(a,(o,s,c)=>{var u,d=o,p=d.colspan||1,v=s+p-1>=e&&s<t;if(i[c]=i[c]||[],v)s<e?(u=p-(e-s),s=e):u=p,s+u>t&&(u=t-s),u!==p&&(d=(0,A.X)({},d,{colspan:u})),i[c].push(d);else if(s>t)return!1});for(var r=0;r<i.length;r++)i[r]=i[r]||[];return i}W.registerModule("adaptivity",{defaultOptions:()=>({columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}),controllers:{adaptiveColumns:class S3 extends ge.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._rowsView=this.getView("rowsView"),this._columnsController.addCommandColumn({type:rl,command:rl,visible:!0,adaptiveHidden:!0,cssClass:a_,alignment:"center",width:"auto",cellTemplate:w3,fixedPosition:"right"}),this._columnsController.columnsChanged.add(()=>{var e=!!this.updateHidingQueue(this._columnsController.getColumns()).length;this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e,!0)}),this._hidingColumnsQueue=[],this._hiddenColumns=[],this.createAction("onAdaptiveDetailRowPreparing"),super.init()}optionChanged(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),super.optionChanged(e)}publicMethods(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]}_isRowEditMode(){return"row"===this._getEditMode()}_isItemModified(e,t){var i=this._columnsController.getVisibleIndex(e.column.index),r=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[r+1];return o&&o.modifiedValues&&(0,m.O9)(o.modifiedValues[i])}_renderFormViewTemplate(e,t,i){var r=this,{column:o}=e,s=r.createAction(()=>{r._editingController.isEditing()&&n.A.trigger(i,ke.U)}),c=t.row.data,d=o.calculateCellValue(c),u=q.getDisplayValue(o,d,c,t.rowType),p=q.formatValue(u,o),v=this._editingController.isCellOrBatchEditMode(),f=r._rowsView;if(o.allowEditing&&this._keyboardNavigationController.isKeyboardEnabled()&&(i.attr("tabIndex",r.option("tabIndex")),v&&(n.A.off(i,"focus",s),n.A.on(i,"focus",s))),o.cellTemplate){var O=(0,A.X)({},t,{value:d,displayValue:u,text:p,column:o});f.renderTemplate(i,o.cellTemplate,O,(0,Di.A1)(i)).done(()=>{f._cellPrepared(i,t)})}else{var b=i.get(0);o.encodeHtml?b.textContent=p:b.innerHTML=p,i.addClass(Tu),(!(0,m.O9)(p)||""===p)&&i.html("&nbsp;"),r._isRowEditMode()||r._isItemModified(e,t)&&i.addClass("dx-item-modified"),f._cellPrepared(i,t)}}_getTemplate(e,t,i){var r=this,{column:o}=e,s=this._editingController;return function(c,d){var u=(0,x.A)(d),p=r._columnsController.getVisibleIndex(o.index),v=(0,A.X)({},t),f=function(){var b=r._isItemEdited(e);v.value=t.row.values[p],b||o.showEditorAlways?s.renderFormEditorTemplate(v,e,c,u,!b):(v.column=o,v.columnIndex=p,r._renderFormViewTemplate(e,v,u))};if(f(),v.watch){var O=v.watch(()=>({isItemEdited:r._isItemEdited(e),value:t.row.values[p]}),()=>{u.contents().remove(),u.removeClass(Tu),f()});n.A.on(u,Rt.N,O)}}}_isVisibleColumnsValid(e){return!(e<2||e.length-function(){for(var t=0,i=0;i<e.length;i++)e[i].command&&t++;return t}()<=1)}_calculatePercentWidths(e,t){var i=this,r=0;return t.forEach((o,s)=>{e[s]!==sn&&(r+=i._getItemPercentWidth(o))}),r}_isPercentWidth(e){return(0,m.Kg)(e)&&e.endsWith("%")}_isColumnHidden(e){return this._hiddenColumns.filter(t=>t.index===e.index).length>0}_getAverageColumnsWidth(e,t,i){var r=this,o=0,s=0;return t.forEach(c=>{if(!r._isColumnHidden(c)){var{width:d}=c;(0,m.O9)(d)&&!isNaN(parseFloat(d))?o+=r._isPercentWidth(d)?r._calculatePercentWidth({visibleIndex:c.visibleIndex,columnsCount:t.length,columnsCanFit:i,bestFitWidth:c.bestFitWidth,columnWidth:d,containerWidth:e}):parseFloat(d):s++}}
1),(e-o)/s}_calculateColumnWidth(e,t,i,r){var u,o=ol(this,e),s=this._columnsController.columnOption(o,"width"),c=this._columnsController.columnOption(o,"bestFitWidth"),d=i.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return parseFloat(s);u=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:d,columnsCanFit:r,bestFitWidth:c,columnWidth:s,containerWidth:t})}else u=this.option("columnAutoWidth")||e.command?c:this._getAverageColumnsWidth(t,i,r);return u}_calculatePercentWidth(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,i=e.containerWidth*parseFloat(e.columnWidth)/100,r=e.columnsCanFit&&i<e.bestFitWidth?e.bestFitWidth:i;return t?e.containerWidth*parseFloat(e.columnWidth)/100:r}_getNotTruncatedColumnWidth(e,t,i,r){var o=ol(this,e),s=this._columnsController.columnOption(o,"width"),c=this._columnsController.columnOption(o,"bestFitWidth");if(s&&"auto"!==s&&!this._isPercentWidth(s))return parseFloat(s);var d=this._calculateColumnWidth(e,t,i,r);return d<c?null:d}_getItemPercentWidth(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t}_getCommandColumnsWidth(){var e=this,t=e._columnsController.getVisibleColumns(),i=0;return(0,w.__)(t,(r,o)=>{(o.index<0||o.command)&&(i+=e._columnsController.columnOption(ol(e,o),"bestFitWidth")||0)}),i}_isItemEdited(e){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var i=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,r=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(i,r)}var t=this.option("editing.editRowKey");return!!(0,j.RL)(t,this._dataController.adaptiveExpandedKey())||void 0}_getFormItemsByHiddenColumns(e){var t=[];return(0,w.__)(e,(i,r)=>{t.push({column:r,name:r.name,dataField:r.dataField,visibleIndex:r.visibleIndex})}),t}_getAdaptiveColumnVisibleIndex(e){for(var t=0;t<e.length;t++)if(e[t].command===rl)return t}_hideAdaptiveColumn(e,t){var i=this._getAdaptiveColumnVisibleIndex(t);(0,m.O9)(i)&&(e[i]=sn,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:i}))}_showHiddenCellsInView(e){var{$cells:t,isCommandColumn:i}=e,r=this.addWidgetPrefix(_o);i?(r=il,t.attr({tabIndex:0,"aria-hidden":null}).removeClass(r)):t.removeClass(r)}_showHiddenColumns(){for(var e=0;e<Iu.length;e++){var t=this.getView(Iu[e]);if(t&&t.isVisible()&&t.element()){var i=t.name,r=t.element().find(".".concat(il));this._showHiddenCellsInView({viewName:i,$cells:r,isCommandColumn:!0});var o=t.element().find(".".concat(this.addWidgetPrefix(_o)));this._showHiddenCellsInView({viewName:i,$cells:o})}}}_isCellValid(e){return e&&e.length&&!e.hasClass("dx-master-detail-cell")&&!e.hasClass(l_)}_hideVisibleColumn(e){var{isCommandColumn:t,visibleIndex:i}=e,r=this;Iu.forEach(o=>{var s=r.getView(o);s&&r._hideVisibleColumnInView({view:s,isCommandColumn:t,visibleIndex:i})})}_hideVisibleColumnInView(e){var s,{view:t,isCommandColumn:i,visibleIndex:r}=e,o=t.name,c=this._columnsController.getVisibleColumns()[r],d=this._editingController&&this._editingController.getEditFormRowIndex();if(t&&t.isVisible()&&c)for(var u=t.getRowsCount(),p=t._getRowElements(),v=0;v<u;v++)if(v!==d||o!==s_||"popup"===this.option("editing.mode")){var O=o===o_?this._columnsController.getVisibleIndex(c.index,v):r;if(O>=0){var b=p.eq(v);s=this._findCellElementInRow(b,O),this._isCellValid(s)&&this._hideVisibleCellInView({viewName:o,isCommandColumn:i,$cell:s})}}}_findCellElementInRow(e,t){var i=e.children(),r=t,o=!1;if(e.hasClass("dx-group-row")){var s=e.find(".".concat(l_)),c=s.attr("colspan");if(s.length&&(0,m.O9)(c)){var d=parseInt(c);t>s.index()+d-1?r=t-d+1:o=!0}}return o?void 0:i.eq(r)}_hideVisibleCellInView(e){var{$cell:t,isCommandColumn:i}=e,r=i?il:this.addWidgetPrefix(_o);t.attr({tabIndex:-1,"aria-hidden":!0}).addClass(r)}_getEditMode(){return this._editingController.getEditMode()}isFormOrPopupEditMode(){var e=this._getEditMode();return"form"===e||"popup"===e}hideRedundantColumns(e,t,i){if(this._hiddenColumns=[],this._isVisibleColumnsValid(t)&&i.length){var p,v,f,r=0,o=this.component.$element(),s=(0,F.RG)(o)-this._getCommandColumnsWidth(),c=function(){return t.filter(_e=>!_e.command&&0===this._hiddenColumns.filter(be=>be.index===_e.index).length)}.bind(this),d=c(),u=d.length;do{f=!1,r=0;var O=this._calculatePercentWidths(e,t),b=O<100&&0!==O;for(p=0;p<t.length;p++){var S=t[p],E=this._getNotTruncatedColumnWidth(S,s,d,b),L=ol(this,S),G=this._columnsController.columnOption(L,"width"),J=this._columnsController.columnOption(L,"minWidth"),he=this._columnsController.columnOption(L,"bestFitWidth");if(e[p]!==sn){if(!E&&!S.command&&!S.fixed){f=!0;break}(!G||"auto"===G)&&(E=Math.max(he||0,J||0)),(S.command!==rl||v)&&(r+=E)}else v=!0}if(f=f||r>(0,F.RG)(o)){var ee=i.pop(),oe=this._columnsController.getVisibleIndex(ee.index);s+=this._calculateColumnWidth(ee,s,d,b),this._hideVisibleColumn({visibleIndex:oe}),e[oe]=sn,this._hiddenColumns.push(ee),d=c()}}while(f&&d.length>1&&i.length);u===d.length&&this._hideAdaptiveColumn(e,t)}else this._hideAdaptiveColumn(e,t)}getAdaptiveDetailItems(){return this._$itemContents}getItemContentByColumnIndex(e){for(var t,i=0;i<this._$itemContents.length;i++){var r=(t=this._$itemContents.eq(i)).data("dx-form-item");if(r&&r.column&&this._columnsController.getVisibleIndex(r.column.index)===e)return t}}toggleExpandAdaptiveDetailRow(e,t){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this._dataController.toggleExpandAdaptiveDetailRow(e,t)}createFormByHiddenColumns(e,t){var i=this,r=(0,x.A)(e),o={items:i._getFormItemsByHiddenColumns(i._hiddenColumns),formID:"dx-".concat(new xt.A)},s=(0,je.gx)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:o}),i._$itemContents=null,i._form=i._createComponent((0,x.A)("<div>").appendTo(r),xp.A,(0,A.X)(s,o,{customizeItem(c){var d=c.column||i._columnsController.columnOption(c.name||c.dataField);d&&(c.label=c.label||{},c.label.text=c.label.text||d.caption,c.column=d,c.template=i._getTemplate(c,t,i.updateForm.bind(i))),o.customizeItem&&o.customizeItem.call(this,c)},onContentReady(c){o.onContentReady&&o.onContentReady.call(this,c),i._$itemContents=r.find(".".concat(Au))}}))}hasAdaptiveDetailRowExpanded(){return(0,m.O9)(this._dataController.adaptiveExpandedKey())}updateForm(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,m.O9)(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())}updateHidingQueue(e){var i,r,t=e.filter(s=>s.visible&&!s.type&&!s.fixed&&!((0,m.O9)(s.groupIndex)&&s.groupIndex>=0));if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(r=0;r<t.length;r++)(0,m.O9)(t[r].hidingPriority)&&t[r].hidingPriority>=0&&(i=!0,this._hidingColumnsQueue[t[r].hidingPriority]=t[r]);if(i)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(r=0;r<t.length;r++){var o=this._columnsController.getVisibleIndex(t[r].index);this._hidingColumnsQueue[o]=t[r]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue}getHiddenColumns(){return this._hiddenColumns}hasHiddenColumns(){return this._hiddenColumns.length>0}getHidingColumnsQueue(){return this._hidingColumnsQueue}isAdaptiveDetailRowExpanded(e){var t=this._dataController;return t.adaptiveExpandedKey()&&(0,j.RL)(t.adaptiveExpandedKey(),e)}expandAdaptiveDetailRow(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)}collapseAdaptiveDetailRow(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}updateCommandAdaptiveAriaLabel(e,t){var i=this._dataController.getRowIndexByKey(e);if(-1!==i){var r=(0,x.A)(this.component.getRowElement(i));this.setCommandAdaptiveAriaLabel(r,t)}}setCommandAdaptiveAriaLabel(e,t){e.find(".dx-command-adaptive").attr("aria-label",R.A.format(t))}}},extenders:{views:{rowsView:a=>class extends a{_getCellTemplate(e){var t=this,{column:i}=e;return e.rowType===ai&&"detail"===i.command?function(r,o){t._adaptiveColumnsController.createFormByHiddenColumns((0,x.A)(r),o)}:super._getCellTemplate(e)}_createRow(e){var t=super._createRow.apply(this,arguments);return e&&e.rowType===ai&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass("dx-adaptive-detail-row"),t}_renderCells(e,t){super._renderCells(e,t);var i=this._adaptiveColumnsController,r=i.getHidingColumnsQueue().length,o=i.getHiddenColumns().length;r&&!o&&function M3(a){return a.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}
1(e).last().addClass("dx-last-data-cell"),"data"===t.row.rowType&&i.setCommandAdaptiveAriaLabel(e,c_)}_getColumnIndexByElementCore(e){var t=e.closest(".".concat(Au));if(t.length&&t.closest(this.component.$element()).length){var i=t.length?t.first().data("dx-form-item"):null;return i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)}return super._getColumnIndexByElementCore(e)}_cellPrepared(e,t){super._cellPrepared.apply(this,arguments),t.row.rowType!==ai&&t.column.visibleWidth===sn&&e.addClass(this.addWidgetPrefix(_o))}getCell(e,t){var i=this._dataController.items()[e?.rowIndex];if(i?.rowType===ai){var r=this._adaptiveColumnsController.getAdaptiveDetailItems();return super.getCell(e,t,r)}return super.getCell.apply(this,arguments)}_getCellElement(e,t){var i=this._dataController.items()[e];return i&&i.rowType===ai?this._adaptiveColumnsController.getItemContentByColumnIndex(t):super._getCellElement.apply(this,arguments)}getContextMenuItems(e){var t;if(e.row&&"detailAdaptive"===e.row.rowType){var i=this._columnHeadersView,r=(0,x.A)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=r?r.column:e.column,i.getContextMenuItems&&i.getContextMenuItems(e)}return null===(t=super.getContextMenuItems)||void 0===t?void 0:t.call(this,e)}isClickableElement(e){var t,i;return null!==(i=null===(t=super.isClickableElement)||void 0===t?void 0:t.call(this,e))&&void 0!==i&&i||!!e.closest(".".concat(a_)).length}}},controllers:{export:a=>class extends a{_updateColumnWidth(e,t){super._updateColumnWidth(e,e.visibleWidth===sn?e.bestFitWidth:t)}},columnsResizer:a=>class extends a{_pointCreated(e,t,i){var r=super._pointCreated(e,t,i),o=i[e.columnIndex]||{},s=this._getNextColumnIndex(e.columnIndex);return r||o.visibleWidth===sn||s!==e.columnIndex+1&&(i[s]||{}).command}_getNextColumnIndex(e){for(var t=this._columnsController.getVisibleColumns(),i=super._getNextColumnIndex(e);t[i]&&t[i].visibleWidth===sn;)i++;return i}},draggingHeader:a=>class extends a{_pointCreated(e,t,i,r){return super._pointCreated(e,t,i,r)||(t[e.columnIndex-1]||{}).visibleWidth===sn}},editing:a=>class extends a{_isRowEditMode(){return"row"===this.getEditMode()}_getFormEditItemTemplate(e,t){return"row"!==this.getEditMode()&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):super._getFormEditItemTemplate(e,t)}_closeEditItem(e){var t=e.closest(".".concat(Au)),i=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,r=t.length?t.first().data("dx-form-item"):null,o=r&&r.column&&this._columnsController.getVisibleIndex(r.column.index);this.isEditCell(i,o)||super._closeEditItem(e)}_beforeUpdateItems(e,t){if(!this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()){var i=this._dataController.items(),r=i[t],o=q.getIndexByKey(this._dataController.adaptiveExpandedKey(),i);this._isForceRowAdaptiveExpand=!this._adaptiveColumnsController.hasAdaptiveDetailRowExpanded(),o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(r.key)}}_afterInsertRow(e){super._afterInsertRow.apply(this,arguments),this._adaptiveColumnsController.hasHiddenColumns()&&(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(e,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)}_collapseAdaptiveDetailRow(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveColumnsController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)}_cancelEditAdaptiveDetailRow(){this._adaptiveColumnsController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()}_afterSaveEditData(){super._afterSaveEditData.apply(this,arguments);var e=new k.cY;return this._isRowEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()?(0,k.z7)(this._validatingController.validate(!0)).done(t=>{t&&this._cancelEditAdaptiveDetailRow(),e.resolve()}):e.resolve(),e.promise()}_beforeCancelEditData(){super._beforeCancelEditData(),this._cancelEditAdaptiveDetailRow()}_getRowIndicesForCascadeUpdating(e){var t=super._getRowIndicesForCascadeUpdating.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(e.key)&&t.pu
1sh(e.rowType===ai?e.rowIndex-1:e.rowIndex+1),t}_beforeCloseEditCellInBatchMode(e){var t=this._dataController._adaptiveExpandedKey;if(t){var i=q.getIndexByKey(t,this._dataController.items());i>-1&&e.unshift(i)}}editRow(e){return this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.editRow(e)}deleteRow(e){var t=this._dataController.getKeyByRowIndex(e);"batch"===this.getEditMode()&&this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.deleteRow(e)}},resizing:a=>class extends a{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}_needBestFit(){return super._needBestFit()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length}_correctColumnWidths(e,t){var i=this._adaptiveColumnsController,r=i.getHiddenColumns(),o=i.updateHidingQueue(this._columnsController.getColumns());i.hideRedundantColumns(e,t,o);var s=i.getHiddenColumns();return i.hasAdaptiveDetailRowExpanded()&&r.length!==s.length&&i.updateForm(s),!s.length&&i.collapseAdaptiveDetailRow(),super._correctColumnWidths.apply(this,arguments)}_toggleBestFitMode(e){e&&this._adaptiveColumnsController._showHiddenColumns(),super._toggleBestFitMode(e)}_needStretch(){var e=this._adaptiveColumnsController;return super._needStretch.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()}},data:a=>class extends a{_processItems(e,t){var{changeType:i}=t;if(e=super._processItems.apply(this,arguments),"loadingAll"===i||!(0,m.O9)(this._adaptiveExpandedKey))return e;var r=q.getIndexByKey(this._adaptiveExpandedKey,e),o=!1===this.option("scrolling.legacyMode");if(r>=0){var s=e[r];e.splice(r+1,0,{visible:!0,rowType:ai,key:s.key,data:s.data,node:s.node,modifiedValues:s.modifiedValues,isNewRow:s.isNewRow,values:s.values})}else"refresh"===i&&(!o||!t.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return e}_getRowIndicesForExpand(e){var t=super._getRowIndicesForExpand.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(e)&&t.push(t[t.length-1]+1),t}adaptiveExpandedKey(e){if(!(0,m.O9)(e))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=e}toggleExpandAdaptiveDetailRow(e,t){var i=q.getIndexByKey(this._adaptiveExpandedKey,this._items),r=q.getIndexByKey(e,this._items);i>=0&&i===r&&!t&&(e=void 0,r=-1);var o=this._adaptiveExpandedKey;this._adaptiveExpandedKey=e,i>=0&&i++,r>=0&&r++;var s=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-s,r-s]}),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(e,"dxDataGrid-ariaAdaptiveCollapse"),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(o,c_)}},editorFactory:a=>class extends a{_needHideBorder(e){return super._needHideBorder(e)||e?.hasClass("dx-field-item-content")&&e?.find(".dx-checkbox").length}_getFocusCellSelector(){return"".concat(super._getFocusCellSelector(),", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content")}_getRevertTooltipsSelector(){return"".concat(super._getRevertTooltipsSelector(),", .dx-field-item-content .").concat(this.addWidgetPrefix("revert-tooltip"))}},columns:a=>class extends a{_isColumnVisible(e){return super._isColumnVisible(e)&&!e.adaptiveHidden}},keyboardNavigation:a=>class extends a{_isCellValid(e,t){return super._isCellValid(e,t)&&!e.hasClass(this.addWidgetPrefix(_o))&&!e.hasClass(il)}_processNextCellInMasterDetail(e,t){super._processNextCellInMasterDetail(e,t);var i=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&e&&i&&!this._isInsideEditForm(e)&&(n.A.off(e,"focus",Fu),n.A.on(e,"focus",{$nextCell:e},Fu),n.A.trigger(t,"focus"))}_isCellElement(e){return super._isCellElement(e)||e.hasClass(Tu)}}}}});var sl=function(a){return a.map(e=>e.visibleWidth||parseFloat(e.width)||50)};W.registerModule("virtualColumns",{defaultOptions:()=>({scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}),extenders:{controllers:{columns:a=>
1class extends a{init(){super.init.apply(this,arguments),this._resizingController=this.getController("resizing"),this._beginPageIndex=null,this._endPageIndex=null,this._position=0,this._virtualVisibleColumns={}}dispose(){clearTimeout(this._changedTimeout),super.dispose.apply(this,arguments)}resetColumnsCache(){super.resetColumnsCache(),this._virtualVisibleColumns={}}getBeginPageIndex(e){for(var t=this.getVisibleColumns(void 0,!0),i=sl(t),r=0,o=0;o<i.length;o++){if(r>=e)return Math.floor(o/this.getColumnPageSize());r+=i[o]}return 0}getTotalWidth(){var e=this.option("width");return"number"==typeof e?e:this._resizingController._lastWidth||(0,F.Ot)(this.component.$element())}getEndPageIndex(e){var t=this.getVisibleColumns(void 0,!0),i=sl(t),r=0;e+=this.getTotalWidth();for(var o=0;o<i.length;o++){if(r>=e)return Math.ceil(o/this.getColumnPageSize());r+=i[o]}return Math.ceil(i.length/this.getColumnPageSize())}getColumnPageSize(){return this.option("scrolling.columnPageSize")}_fireColumnsChanged(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e}getScrollingTimeout(){var e=this.option("scrolling.columnRenderingThreshold"),t=this.option("scrolling.renderAsync"),i=0;return(!(0,m.O9)(t)&&this._renderTime>e||t)&&(i=this.option("scrolling.timeout")),i}setScrollPosition(e){var t=this.getScrollingTimeout();t>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(e)},t)):this._setScrollPositionCore(e)}isVirtualMode(){return(0,fe.Vd)()&&"virtual"===this.option("scrolling.columnRenderingMode")}resize(){this._setScrollPositionCore(this._position)}_setScrollPositionCore(e){if(this.isVirtualMode()){var t=this.getBeginPageIndex(e),i=this.getEndPageIndex(e),r=e<this._position?this._beginPageIndex>t:this._endPageIndex<i;this._position=e,r&&(this._beginPageIndex=t,this._endPageIndex=i,this._fireColumnsChanged())}}getFixedColumns(e,t){var i=super.getFixedColumns(e);if(this.isVirtualMode()&&!t&&i.length){var r=i.map(o=>o.command).indexOf("transparent");return i[r].colspan=this.getVisibleColumns().length-super.getFixedColumns().length+1,i}return i}_compileVisibleColumns(e,t){var i;if(t||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return super._compileVisibleColumns(e);null!==(i=this._columns)&&void 0!==i&&i.length&&!(0,m.O9)(this._beginPageIndex)&&!(0,m.O9)(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var r=this._beginPageIndex,o=this._endPageIndex,s="".concat(e,"-").concat(r,"-").concat(o);if(this._virtualVisibleColumns[s])return this._virtualVisibleColumns[s];var c=super._compileVisibleColumns(),d=this.getRowCount(),u=this.getColumnPageSize(),p=r*u,v=o*u,f=this.getFixedColumns(void 0,!0),O=f.map(be=>be.command).indexOf("transparent"),b=f.length?O:0,S=c.slice(0,b),E=c.slice(b,p),L=sl(E).reduce((be,ve)=>be+ve,0);L||(p=0);var G=f.length?f.length-O-1:0,J=c.slice(c.length-G),he=c.slice(v,c.length-G),ee=sl(he).reduce((be,ve)=>be+ve,0);if(ee||(v=c.length),d>1&&"number"==typeof e){for(var oe=[],_e=0;_e<=d;_e++)oe.push(super._compileVisibleColumns(_e));S=Du(oe,0,S.length)[e]||[],J=Du(oe,c.length-J.length,c.length)[e]||[],c=Du(oe,p,v)[e]||[]}else c=c.slice(p,v);return L&&(c.unshift({command:"virtual",width:L}),c=S.concat(c)),ee&&(c.push({command:"virtual",width:ee}),c=c.concat(J)),this._virtualVisibleColumns[s]=c,c}getColumnIndexOffset(){var e=0;if(this._beginPageIndex>0){var i=this.getFixedColumns().map(o=>o.command).indexOf("transparent"),r=i>=0?i:0;e=this._beginPageIndex*this.getColumnPageSize()-r-1}return e>0?e:0}}},views:{columnHeadersView:a=>class extends a{_renderCore(){var e=super._renderCore.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),e}},rowsView:a=>class extends a{_resizeCore(){super._resizeCore.apply(this,arguments),this._columnsController.resize()}_handleScroll(e){var t=this.getScrollable(),{left:i}=e.scrollOffset;super._handleScroll.apply(this,arguments),this.option("rtlEnabled")&&t&&(i=(0,F.RG)(t.$content())-(0,F.RG)(t.$element())-i),this._columnsController.setScrollPosition(i)}_renderCore(e){var t,i;if(e?.virtualColumnsScrolling){var r=this._findContentElement(),o=null===(t=this._columnsController)||void 0===t?void 0:t.getFixedColumns(),s=null===(i=this._scrollable)||void 0===i?void 0:i.option("useNative");if(o?.length){r.css({minHeight:s?(0,F.Oq)(r):q.getContentHeightLimit(Ie.A)});var c=()=>{this.resizeCompleted.remove(c),r.css({minHeight:""})};this.resizeCompleted.add(c)}}return super._renderCore.apply(this,arguments)}}}}});var H3=P(3798),j3=P(2374),U3=P(2236),Vu=P(2773),u_="dx-dropdownbutton",p_="dx-dropdownbutton-action",g_="dx-dropdownbutton-toggle",Q3=fn.A.inherit({_getDefaultOptions(){return(0,A.X)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,
1stylingMode:"outlined",deferRendering:!0,noDataText:R.A.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",type:"normal",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference(){this.callBase(),(0,A.X)(this._optionsByReference,{selectedItem:!0})},_init(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates(){this._templateManager.addDefaultTemplates({content:new H3.l(a=>{var e=(0,x.A)(a.container),t=(0,x.A)("<div>").appendTo(e);this._list=this._createComponent(t,Yd.A,this._listOptions()),this._list.registerKeyHandler("escape",this._escHandler.bind(this)),this._list.registerKeyHandler("tab",this._escHandler.bind(this)),this._list.registerKeyHandler("leftArrow",this._escHandler.bind(this)),this._list.registerKeyHandler("rightArrow",this._escHandler.bind(this))})}),this.callBase()},_itemsToDataSource:function(a){this._dataSource||(this._dataSource=new It.q({store:new Sr.A({key:this._getKey(),data:a}),pageSize:0}))},_getKey:function(){var a,e=this.option("keyExpr"),t=null===(a=this._dataSource)||void 0===a?void 0:a.key();return!(0,m.O9)(t)||(0,m.O9)(e)&&"this"!==e?e:t},_compileKeyGetter(){this._keyGetter=(0,me.Hz)(this._getKey())},_compileDisplayGetter(){this._displayGetter=(0,me.Hz)(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass(u_),this._renderButtonGroup(),this._updateArrowClass(),(0,m.O9)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:j.lQ,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var a;null===(a=this._loadSingleDeferred)||void 0===a||a.reject();var e=new k.cY;if(this._list&&void 0!==this._lastSelectedItemData){var t=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return e.resolve(t)}this._lastSelectedItemData=void 0;var i=this.option("selectedItemKey");return this._loadSingle(this._getKey(),i).done(e.resolve).fail(()=>{e.resolve(null)}),this._loadSingleDeferred=e,e.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(a){var{previousValue:e,value:t}=a;this._selectionChangedAction({item:t,previousItem:e})},_fireItemClickAction(a){var{event:e,itemElement:t,itemData:i}=a;return this._itemClickAction({event:e,itemElement:t,itemData:this._actionItem||i})},_actionButtonConfig(){var{icon:a,text:e,type:t}=this.option();return{text:e,icon:a,type:t,elementAttr:{class:p_}}},_getButtonGroupItems(){var{splitButton:a,type:e}=this.option(),t=[];return t.push(this._actionButtonConfig()),a&&t.push({icon:"spindown",type:e,elementAttr:{class:g_}}),t},_buttonGroupItemClick(a){var{event:e,itemData:t}=a,i=t.elementAttr.class===p_;t.elementAttr.class===g_?this.toggle():i&&(this._actionClickAction({event:e,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions(){var{splitButton:a,showArrowIcon:e,focusStateEnabled:t,hoverStateEnabled:i,stylingMode:r,accessKey:o,tabIndex:s}=this.option(),c=a||!e?"content":(d,u)=>{var{text:p,icon:v}=d,f=(0,Ma.N)(v),O=p?(0,x.A)("<span>").text(p).addClass("dx-button-text"):void 0,b=(0,Ma.N)("spindown").addClass("dx-icon-right");(0,x.A)(u).append(f,O,b)};return(0,A.X)({items:this._getButtonGroupItems(),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",selectionMode:"none",onKeyboardHandled:d=>this._keyboardHandler(d),buttonTemplate:c,focusStateEnabled:t,hoverStateEnabled:i,stylingMode:r,accessKey:o,tabIndex:s},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){var a=this._popup.$content(),e=this._getTemplateByOption("dropDownContentTemplate");return a.empty(),this._popupContentId="dx-"+new xt.A,this.setAria("id",this._popupContentId,a),e.render({container:(0,Re.c)(a),model:this.option("items")||this._dataSource})},_popupOptions(){var a=this.option("rtlEnabled")?"right":"left";return(0,A.X)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:e=>{var t=this.$element();return!(0,x.A)(e.target).closest(".".concat(u_)).is(t)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>(0,Vu.v)(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:a+" top",at:a+" bottom"},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){var a=this.option("selectedItemKey"),e=this.option("use
1SelectMode");return{selectionMode:e?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:(0,m.O9)(a)&&e?[a]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:t=>{this.option("useSelectMode")||(this._lastSelectedItemData=t.itemData),this.option("selectedItemKey",this._keyGetter(t.itemData)),!1!==this._fireItemClickAction(t)&&(this.toggle(!1),this._buttonGroup.focus())}}},_upDownKeyHandler(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler(){return this.close(),!0},_renderPopup(){var a=(0,x.A)("<div>");this.$element().append(a),this._popup=this._createComponent(a,xn.A,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler(){this.option("opened",!1),this._updateAriaAttributes(!1)},_popupOptionChanged:function(a){var e=fn.A.getOptionsFromContainer(a);this._setPopupOption(e);var t=Object.keys(e);(-1!==t.indexOf("width")||-1!==t.indexOf("height"))&&this._dimensionChanged()},_dimensionChanged:function(){void 0===(0,Vu.b)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,Vu.v)(this.$element()))},_setPopupOption:function(a,e){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._updateAriaAttributes(!0)},_setElementAria(a){this.setAria({owns:a?this._popupContentId:void 0},this.$element())},_setButtonsAria(a){var e={expanded:a,haspopup:"listbox"},t={};this.option("text")||(t.label="dropdownbutton"),this._getButtons().each((i,r)=>{this.setAria(0===i?(0,U.A)({},t,e):e,(0,x.A)(r))})},_updateAriaAttributes(a){this._setElementAria(a),this._setButtonsAria(a)},_getButtons(){return this._buttonGroup.$element().find(".".concat("dx-button"))},_renderButtonGroup(){var a=this._buttonGroup&&this._buttonGroup.$element()||(0,x.A)("<div>");this._buttonGroup||this.$element().append(a),this._buttonGroup=this._createComponent(a,j3.A,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions"),this._updateAriaAttributes(this.option("opened"))},_updateArrowClass(){var a=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",a)},toggle(a){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(a)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(a,e){this._list&&this._list.option(a,e)},_getDisplayValue(a){var t=(0,m.Qd)(a)?this._displayGetter(a):a;return(0,m.Qd)(t)?"":String((0,j.YD)(t,""))},_updateActionButton(a){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(a),icon:(0,m.Qd)(a)?a.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",a),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(a))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(a){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,m.O9)(a)?[a]:[]);var e=this.option("selectedItem");this._loadSelectedItem().done(t=>{this._updateActionButton(t),this._displayGetter(e)!==this._displayGetter(t)&&this._fireSelectionChangedAction({previousValue:e,value:t})})},_updateButtonGroup(a,e){this._buttonGroup.option(a,e),this._updateAriaAttributes(this.option("opened"))},_actionButtonOptionChanged(a){var{name:e,value:t}=a,i={};i[e]=t,this._updateButtonGroup("items[0]",(0,A.X)({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()}
1,_selectModeChanged(a){if(a){this._setListOption("selectionMode","single");var e=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,m.O9)(e)?[e]:[]),this._selectedItemKeyChanged(this.option("selectedItemKey"))}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0}),this._actionButtonOptionChanged({text:this.option("text")})},_updateItemCollection(a){var e=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[a]),(0,m.O9)(e)&&this._loadSelectedItem().done(t=>{this._setListOption("selectedItemKeys",[e]),this._setListOption("selectedItem",t)}).fail(t=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(a),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged(a){var e,{name:t,value:i}=a;switch(t){case"useSelectMode":this._selectModeChanged(i);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(t,i),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,a);break;case"dropDownOptions":if("dropDownOptions.visible"===a.fullName)break;void 0!==a.value.visible&&delete a.value.visible,this._popupOptionChanged(a),this._innerWidgetOptionChanged(this._popup,a);break;case"opened":this.toggle(i);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(t,i),this._updateButtonGroup(t,i),this.callBase(a);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(t);break;case"dataSource":Array.isArray(i)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(t);break;case"icon":case"text":this._actionButtonOptionChanged(a);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(a),null===(e=this._popup)||void 0===e||e.repaint();break;case"stylingMode":case"tabIndex":this._updateButtonGroup(t,i);break;case"type":this._updateButtonGroup("items",this._getButtonGroupItems());break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(t,i);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(i);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(a)}}}).include(U3.A);(0,jn.A)("dxDropDownButton",Q3);var h_="dx-datagrid-export-button";class sO{constructor(e,t,i){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=i}_getGroupValue(e){var{key:t,data:i,rowType:r,groupIndex:o,summaryCells:s}=e,c=this._options.groupColumns[o],d=W.getDisplayValue(c,c.deserializeValue?c.deserializeValue(t[o]):t[o],i,r),u="".concat(c.caption,": ").concat(W.formatValue(d,c));return s&&s[0]&&s[0].length&&(u+=" ".concat(W.getGroupRowSummaryText(s[0],this._options.summaryTexts))),u}_correctCellIndex(e){return e}_initOptions(){var e=this._exportController,t=e._columnsController.getGroupColumns();this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),rtlEnabled:e.option("rtlEnabled")}}getHeaderStyles(){return[{bold:!0,alignment:"center"},{bold:!0,alignment:"left"},{bold:!0,alignment:"right"}]}getGroupRowStyle(){return{bold:!0,alignment:(0,De.n)(this._options.rtlEnabled)}}getColumnStyles(){var e=[];
1return this.getColumns().forEach(t=>{e.push({alignment:t.alignment||"left",format:t.format,dataType:t.dataType})}),e}getStyles(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]}_getTotalCellStyleId(e){var t,i=(null===(t=this.getColumns()[e])||void 0===t?void 0:t.alignment)||"right";return this.getHeaderStyles().map(r=>r.alignment).indexOf(i)}getStyleId(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:t+this.getHeaderStyles().length}getColumns(e){var{columns:t}=this._options;return e?t:t[t.length-1]}getColumnsWidths(){var e=this.getColumns();return(0,m.O9)(e)?e.map(t=>t.width):void 0}getRowsCount(){return this._options.items.length+this.getHeaderRowCount()}getHeaderRowCount(){return this.isHeadersVisible()?this._options.columns.length-1:0}isGroupRow(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType}getGroupLevel(e){var t=this._options.items[e-this.getHeaderRowCount()],i=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,m.O9)(i)?i:this._options.groupColumns.length}getCellType(e,t){var i=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<i.length){var r=this._options.items.length&&this._options.items[e],o=i[t];return r&&"data"===r.rowType&&isFinite(r.values[this._correctCellIndex(t)])&&!(0,m.O9)(o.customizeText)?(0,m.O9)(o.lookup)?o.lookup.dataType:o.dataType:"string"}}ready(){this._initOptions();var e=this._options;return(0,k.z7)(e.items).done(t=>{e.items=t}).fail(()=>{e.items=[]})}_convertFromGridGroupSummaryItems(e){if((0,m.O9)(e)&&e.length>0)return e.map(t=>({value:t.value,name:t.name}))}getCellData(e,t,i){var r,o,s={cellSourceData:{},value:r},c=this.getColumns(),d=this._correctCellIndex(t);if(e<this.getHeaderRowCount())o=this.getColumns(!0)[e][t],s.cellSourceData.rowType="header",s.cellSourceData.column=o&&o.gridColumn,s.value=o&&o.caption;else{e-=this.getHeaderRowCount();var p=this._options.items.length&&this._options.items[e];if(p){var v=p.values;switch(s.cellSourceData.rowType=p.rowType,s.cellSourceData.column=c[t]&&c[t].gridColumn,p.rowType){case"groupFooter":case"totalFooter":d<v.length&&((0,m.O9)(r=v[d])?(s.cellSourceData.value=r.value,s.cellSourceData.totalSummaryItemName=r.name,s.value=W.getSummaryText(r,this._options.summaryTexts)):s.
1cellSourceData.value=void 0);break;case"group":if(s.cellSourceData.groupIndex=p.groupIndex,t<1)s.cellSourceData.column=this._options.groupColumns[p.groupIndex],s.cellSourceData.value=p.key[p.groupIndex],s.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(p.summaryCells[0]),s.value=this._getGroupValue(p);else{var f=p.values[d];if(Array.isArray(f)){s.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(f),r="";for(var O=0;O<f.length;O++)r+=(O>0?i?"\n":" \n ":"")+W.getSummaryText(f[O],this._options.summaryTexts);s.value=r}else s.cellSourceData.value=void 0}break;default:if(o=c[t]){var b=v[d],S=W.getDisplayValue(o,b,p.data,p.rowType);s.value=!isFinite(S)||(0,m.O9)(o.customizeText)?i&&(0,m.O9)(o.customizeText)&&o.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?S:W.formatValue(S,o):S,s.cellSourceData.value=b}s.cellSourceData.data=p.data}}}return s}isHeadersVisible(){return this._options.isHeadersVisible}isTotalCell(e,t){var{items:i}=this._options,r=i[e],o=this._correctCellIndex(t);return r&&"groupFooter"===r.rowType||"totalFooter"===r.rowType||r.summaryCells&&r.summaryCells[o]&&r.summaryCells[o].length>0&&r.summaryCells[o][0].alignByColumn}getCellMerging(e,t){var{columns:i}=this._options,r=i[e]&&i[e][t];return r?{colspan:(r.exportColspan||1)-1,rowspan:(r.rowspan||1)-1}:{colspan:0,rowspan:0}}getFrozenArea(){return{x:0,y:this.getHeaderRowCount()}}}W.registerModule("export",{defaultOptions:()=>({export:{enabled:!1,fileName:"DataGrid",formats:["xlsx"],allowExportSelectedData:!1,texts:{exportTo:R.A.format("dxDataGrid-exportTo"),exportAll:R.A.format("dxDataGrid-exportAll"),exportSelectedRows:R.A.format("dxDataGrid-exportSelectedRows")}}}),controllers:{export:class aO extends W.ViewController{_getEmptyCell(){return{caption:"",colspan:1,rowspan:1}}_updateColumnWidth(e,t){e.width=t}_getColumns(e){var i,r,t=[],o=this._columnsController,s=o.getRowCount();for(i=0;i<=s;i++){var c=[];r=o.getVisibleColumns(i,!0);var d=void 0;if(i===s)if(this._updateLockCount)d=e;else{var u=this._getColumnWidths(this._headersView,this._rowsView);if(u&&u.length){d={};for(var p=0;p<r.length;p++)d[r[p].index]=u[p]}}for(var v=0;v<r.length;v++){var f=(0,A.X)({},r[v],{dataType:"datetime"===r[v].dataType?"date":r[v].dataType,gridColumn:r[v]});if(this._needColumnExporting(f)){var O=this._calculateExportColspan(f);(0,m.O9)(O)&&(f.exportColspan=O),d&&this._updateColumnWidth(f,d[f.index]),c.push(f)}}t.push(c)}return r=t[s],t=function eO(a,e){for(var t=p=>p||1,i=[],r=(a[0]||[]).reduce((p,v)=>p+t(v.colspan),0),o=(p=>{var v=0,f=0;return()=>{var O=p[v]||[],b=O[f++];return f>=O.length&&(v++,f=0),b&&(b.colspan=t(b.colspan),b.rowspan=t(b.rowspan)),b}})(a),s=(p,v,f)=>{if((i[p]=i[p]||[])[v]=f,f.colspan>1||f.rowspan>1){for(var b=(0,A.X)({},f,e),S=1;S<f.colspan;S++)s(p,v+S,b);for(var E=1;E<f.rowspan;E++)for(var L=0;L<f.colspan;L++)s(p+E,v+L,b)}},c=o(),d=0;c;){for(var u=0;u<r&&c;u++)i[d]&&i[d][u]||(s(d,u,c),u+=c.colspan-1,c=o());d++}return i}(t.slice(0,-1),this._getEmptyCell()),t.push(r),t}_calculateExportColspan(e){if(e.isBand){var t=this._columnsController.getChildrenByBandColumn(e.index,!0);if((0,m.O9)(t))return t.reduce((i,r)=>this._needColumnExporting(r)?i+(this._calculateExportColspan(r)||1):i,0)}}_needColumnExporting(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)}_getFooterSummaryItems(e,t){var i=[],r=1,o=0;do{for(var s=[],c=0;c<e.length;c++){var d=e[c],u=d.length;r<u&&(r=u),s.push(d[o])}i.push({values:s,rowType:t?"totalFooter":"groupFooter"})}while(o++<r-1);return i}_hasSummaryGroupFooters(){var e=this.option("summary.groupItems");if((0,m.O9)(e))for(var t=0;t<e.length;t++)if(e[t].showInGroupFooter)return!0;return!1}_getItemsWithSummaryGroupFooters(e){for(var t=[],i=[],r=[],o=0;o<e.length;o++){var s=e[o];"groupFooter"===s.rowType?(r=this._getFooterSummaryItems(s.summaryCells),t=t.concat(i,r),i=[]):i.push(s)}return t.length?t:i}_updateGroupValuesWithSummaryByColumn(e){for(var t=[],i=0;i<e.length;i++){var r=e[i],{summaryCells:o}=r;if("group"===r.rowType&&o&&o.length>1){for(var s=r.values.length,c=1;c<o.length;c++)for(var d=0;d<o[c].length;d++){var u=o[c][d];u&&u.alignByColumn&&(Array.isArray(t[c-s])||(t[c-s]=[]),t[c-s].push(u))}t.length>0&&(r.values.push(...t),t=[])}}}_processUnExportedItems(e){for(var r,o,t=this._columnsController.getVisibleColumns(null,!0),i=this._columnsController.getGroupColumns(),s=0;s<e.length;s++){var c=e[s],d=!1;r=[],o=[];for(var u=0;u<t.length;u++){var p=t[u];
1if(d||(d=["detailExpand","buttons"].includes(p.type)),this._needColumnExporting(p)&&(c.values&&r.push("group"!==c.rowType||r.length?c.values[u]:c.key[c.groupIndex]),c.summaryCells))if("group"!==c.rowType||o.length)o.push(c.summaryCells[u]);else{var v=u-i.length+c.groupIndex;o.push(c.summaryCells[d?v:v+1])}}r.length&&(c.values=r),o.length&&(c.summaryCells=o)}}_getAllItems(e){var u,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this,r=new k.cY,o=this.getController("data"),s=o.footerItems(),c=s.length&&s[0],d=i.option("summary.totalItems");return(0,k.z7)(e).done(p=>{o.loadAll(p,t).done((v,f)=>{i._updateGroupValuesWithSummaryByColumn(v),i._hasSummaryGroupFooters()&&(v=i._getItemsWithSummaryGroupFooters(v)),u=c&&c.summaryCells,(0,m.O9)(f)&&d&&(u=i._getSummaryCells(d,f));var O=c&&i._getFooterSummaryItems(u,!0);O&&(v=v.concat(O)),i._processUnExportedItems(v),r.resolve(v)}).fail(r.reject)}).fail(r.reject),r}_getSummaryCells(e,t){var i=this.getController("data");return i._calculateSummaryCells(e,t,i._columnsController.getVisibleColumns(null,!0),(o,s)=>i._isDataColumn(s)?s.index:-1)}_getSelectedItems(){var e=this.getController("selection");return this.needLoadItemsOnExportingSelectedItems()?this._getAllItems(e.loadSelectedItemsWithFilter(),!0):this._getAllItems(e.getSelectedRowsData())}_getColumnWidths(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()}throwWarningIfNoOnExportingEvent(){var e,t,i=null===(t=(e=this.component).hasActionSubscription)||void 0===t?void 0:t.call(e,"onExporting");this.option("export.enabled")&&!i&&Oe.A.log("W1024")}init(){this.throwWarningIfNoOnExportingEvent(),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]})}callbackNames(){return["selectionOnlyChanged"]}getDataProvider(e){var i,t=this._getColumnWidths(this._headersView,this._rowsView);if(t&&t.length){i={};for(var r=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),o=0;o<r.length;o++)i[r[o].index]=t[o]}return new sO(this,i,e)}exportTo(e,t){this._selectionOnly=e;var i=this.getAction("onExporting"),r={rtlEnabled:this.option("rtlEnabled"),selectedRowsOnly:!!e,format:t,fileName:"DataGrid",cancel:!1};(0,m.Tn)(i)&&i(r)}publicMethods(){return["getDataProvider"]}selectionOnly(e){if(!(0,m.O9)(e))return this._isSelectedRows;this._isSelectedRows=e,this.selectionOnlyChanged.fire()}optionChanged(e){super.optionChanged(e),"export"===e.name&&this.throwWarningIfNoOnExportingEvent()}needLoadItemsOnExportingSelectedItems(){var e;return null!==(e=this.option("loadItemsOnExportingSelectedItems"))&&void 0!==e?e:this.getController("data")._dataSource.remoteOperations().filtering}}},extenders:{controllers:{editing:a=>class extends a{callbackNames(){var e=super.callbackNames();return(0,m.O9)(e)?e.push("editingButtonsUpdated"):["editingButtonsUpdated"]}_updateEditButtons(){super._updateEditButtons(),this.editingButtonsUpdated.fire()}}},views:{headerPanel:a=>class extends a{_getToolbarItems(){var e=super._getToolbarItems(),t=this._getExportToolbarButton();return t&&(e.push(t),this._correctItemsPosition(e)),e}_getExportToolbarButton(){var e=this._getExportToolbarItems();if(0===e.length)return null;var t=this._needDisableExportButton(),i={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:e},disabled:t};if(1===e.length){var r=(0,U.A)((0,U.A)({},e[0]),{hint:e[0].text,elementAttr:{class:h_}});i.widget="dxButton",i.showText="inMenu",i.options=r}else{var o={icon:"export",displayExpr:"text",items:e,hint:this.option("export.texts.exportTo"),elementAttr:{class:h_},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};i.options=o,i.widget="dxDropDownButton",i.menuItemTemplate=(s,c,d)=>{this._createComponent((0,x.A)(d),Yd.A,{items:e})}}return i}_getExportToolbarItems(){var e,t=this.option("export"),i=this.option("export.texts"),r=null!==(e=this.option("export.formats"))&&void 0!==e?e:[];if(!t.enabled)return[];var o=[];return r.forEach(s=>{var c=s.toUpperCase(),d="export";"xlsx"===s&&(c="Excel",d="xlsxfile"),"pdf"===s&&(d="pdffile"),o.push({text:(0,bt.GP)(i.exportAll,c),icon:d,onClick:()=>{this._exportController.exportTo(!1,s)}}),t.allowExportSelectedData&&o.push({text:(0,bt.GP)(i.exportSelectedRows,c),icon:"exportselected",onClick:()=>{this._exportController.exportTo(!0,s)}})}),o}_correctItemsPosition(e){e.sort((t,i)=>t.sortIndex-i.sortIndex)}_isExportButtonVisible(){return this.option("export.enabled")}optionChanged(e){super.optionChanged(e),"export"===e.name&&(e.handled=!0,this._invalidate())}_needDisableExportButton(){var e=!this._columnsController.hasVisibleDataColumns(),t=this._editingController.hasChanges();return e||t}_columnOptionChanged(e){if(super._columnOptionChanged(e),W.checkChanges(e.optionNames,["groupIndex","visible","all"])){var i=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",i)}}init(){super.init(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingButtonsUpdated.add(()=>{var e=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",e)})}isVisible(){return super.isVisible()||this._isExportButtonVisible()}}}}});var vo="dx-row-focused",pO=".dx-row.".concat(vo),v_="dx-cell-focus-disabled",al
1={defaultOptions:()=>({focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}),controllers:{focus:class hO extends ge.ViewController{get _keyboardController(){return this.getController("keyboardNavigation")}get _dataController(){return this.getController("data")}init(){this.component._optionsByReference.focusedRowKey=!0}optionChanged(e){var{name:t,value:i,previousValue:r}=e;switch(t){case"focusedRowIndex":this._focusRowByIndex(i),this._keyboardController._fireFocusedRowChanged(),e.handled=!0;break;case"focusedRowKey":if(Array.isArray(i)&&JSON.stringify(i)===JSON.stringify(r))return;this._focusRowByKey(i),this._keyboardController._fireFocusedRowChanged(),e.handled=!0;break;case"focusedColumnIndex":case"focusedRowEnabled":case"autoNavigateToFocusedRow":e.handled=!0;break;default:super.optionChanged(e)}}publicMethods(){return["navigateToRow","isRowFocused"]}isAutoNavigateToFocusedRow(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")}_focusRowByIndex(e,t){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e,t))}_focusRowByIndexCore(e,t){var i=this._dataController.pageSize(),r=()=>{if(this._isValidFocusedRowIndex(e)){var s=e-this._dataController.getRowIndexOffset(!0);if(!t||t.paging&&!t.filtering){var c=this._dataController._getLastItemIndex();s=Math.min(s,c)}var d=this._dataController.getKeyByRowIndex(s,!0);(0,m.O9)(d)&&!this.isRowFocused(d)&&this.option("focusedRowKey",d)}};if(i>=0)if(this._isLocalRowIndex(e))r();else{var o=Math.floor(e/this._dataController.pageSize());(0,k.z7)(this._dataController.pageIndex(o),this._dataController.waitReady()).done(()=>{r()})}}_isLocalRowIndex(e){if(this._keyboardController._isVirtualScrolling()){var i=Math.floor(e/this._dataController.pageSize()),r=this._dataController.virtualItemsCount(),o=r?r.begin:-1,s=this._dataController.getVisibleRows().length+this._dataController.getRowIndexOffset(),c=Math.ceil(s/this._dataController.pageSize());return o<=e&&c>i}return!0}_setFocusedRowKeyByIndex(e){if(this._isValidFocusedRowIndex(e)){var t=Math.min(e-this._dataController.getRowIndexOffset(),this._dataController.items().length-1),i=this._dataController.getKeyByRowIndex(t);(0,m.O9)(i)&&!this.isRowFocused(i)&&this.option("focusedRowKey",i)}}_focusRowByKey(e){(0,m.O9)(e)?this._navigateToRow(e,!0):this._resetFocusedRow()}_resetFocusedRow(){var e=this.option("focusedRowKey"),t=(0,m.O9)(e);!t&&this.option("focusedRowIndex")<0||(t&&this.option("focusedRowKey",null),this._keyboardController.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this._dataController.updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),this._keyboardController._fireFocusedRowChanged())}_isValidFocusedRowIndex(e){var t=this._dataController.getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType}navigateToRow(e){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)}_navigateToRow(e,t){var i=this,r=i.isAutoNavigateToFocusedRow(),o=new k.cY;if(void 0===e||!this._dataController.dataSource())return o.reject().promise();var s=i.getFocusedRowIndexByKey(e);return!r&&t||s>=0?i._navigateTo(e,o,t):this._dataController.getPageIndexByKey(e).done(c=>{c<0?o.resolve(-1):c===this._dataController.pageIndex()?this._dataController.reload().done(()=>{i.isRowFocused(e)&&this._dataController.getRowIndexByKey(e)>=0?o.resolve(i.getFocusedRowIndexByKey(e)):i._navigateTo(e,o,t)}).fail(o.reject):this._dataController.pageIndex(c).done(()=>{i._navigateTo(e,o,t)}).fail(o.reject)}).fail(o.reject),o.promise()}_navigateTo(e,t,i){var r=this._dataController.getRowIndexByKey(e),o=q.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&o&&r<0?this._navigateToVirtualRow(e,t,i):this._navigateToVisibleRow(e,t,i)}_navigateToVisibleRow(e,t,i){if(i)this._triggerUpdateFocusedRow(e,t);else{var r=this.getFocusedRowIndexByKey(e);this.getView("rowsView").scrollToRowElement(e,t).done(()=>{t.resolve(r)})}}_navigateToVirtualRow(e,t,i){var r=this._dataController._rowsScrollController,o=q.getIndexByKey(e,this._dataController.items(!0)),s=this.getView("rowsView").getScrollable();if(r&&s&&o>=0){var c=o+this._dataController.getRowIndexOffset(!0),d=r.getItemOffset(c),u=()=>{this._dataController.totalCount()&&!this._dataController.items().length||(this.component.off("contentReady",u),i?this._triggerUpdateFocusedRow(e,t):t.resolve(c))};this.component.on("contentReady",u),this.getView("rowsView").scrollTopPosition(d)}else t.resolve(-1)}_triggerUpdateFocusedRow(e,t){var r,i=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(i)?(this.option("focusedRowEnabled")?this._dataController.updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):r=this.getView("rowsView").scrollToRowElement(e),(0,k.z7)(r).done(()=>{this._keyboardController.setFocusedRowIndex(i),t&&t.resolve(i)})):t&&t.resolve(-1)}getFocusedRowIndexByKey(e){var t=this._dataController.getRowIndexByKey(e,!0);return t>=0?t+this._dataController.getRowIndexOffset(!0):-1}_focusRowByKeyOrIndex(){var e=this.option("focusedRowKey"),t=this.option("focusedRowIndex");if((0,m.O9)(e)){var i=this._dataController.getRowIndexByKey(e);i>=0?(this._keyboardController._isVirtualScrolling()&&(t=i+this._dataController.getRowIndexOffset()),this._keyboardController.setFocusedRowIndex(t),this._triggerUpdateFocusedRow(e)):this._navigateToRow(e,!0).done(r=>{t>=0&&r<0?this._focusRowByIndex():t<0&&r>=0&&this._keyboardController.setFocusedRowIndex(r)})}else t>=0&&this._focusRowByIndex(t)}
1isRowFocused(e){var t=this.option("focusedRowKey");if((0,m.O9)(t))return(0,j.RL)(e,this.option("focusedRowKey"))}updateFocusedRow(e){var s,c,{focusedRowKey:t}=e,i=this,r=i._dataController.getRowIndexByKey(t),o=i.getView("rowsView");(0,w.__)(o.getTableElements(),(d,u)=>{var p=0===d;s=(0,x.A)(u),i._clearPreviousFocusedRow(s,r);var v=i._prepareFocusedRow({changedItem:i._dataController.getVisibleRows()[r],$tableElement:s,focusedRowIndex:r});p&&(c=v)}),c&&o.scrollToElementVertically(c)}_clearPreviousFocusedRow(e,t){var i=e.find(pO).filter((o,s)=>{var c=(0,x.A)(s).closest(".".concat(this.addWidgetPrefix("table")));return e.is(c)});i.removeClass(vo).removeClass(v_).removeAttr("tabindex"),i.children("td").removeAttr("tabindex"),0!==t&&(0,x.A)(this.getView("rowsView").getRowElement(0)).removeClass(v_).removeAttr("tabIndex")}_prepareFocusedRow(e){var t,{changedItem:i}=e;if(i&&("data"===i.rowType||"group"===i.rowType)){var{focusedRowIndex:r}=e,{$tableElement:o}=e,s=this.option("tabindex")||0,c=this.getView("rowsView");(t=(0,x.A)(c._getRowElements(o).eq(r))).addClass(vo).attr("tabindex",s)}return t}}},extenders:{controllers:{keyboardNavigation:a=>class extends a{init(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),super.init(),this.setRowFocusType(),this._focusedCellPosition={},(0,m.O9)(e)&&e>=0&&(this._focusedCellPosition.rowIndex=e),(0,m.O9)(t)&&t>=0&&(this._focusedCellPosition.columnIndex=t)}setFocusedRowIndex(e){super.setFocusedRowIndex(e),this.option("focusedRowIndex",e)}setFocusedColumnIndex(e){super.setFocusedColumnIndex(e),this.option("focusedColumnIndex",e)}_escapeKeyHandler(e,t){return t||!this.option("focusedRowEnabled")?super._escapeKeyHandler(e,t):!!this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0),!0)}_updateFocusedCellPosition(e,t){var i=super._updateFocusedCellPosition(e,t);return i&&i.columnIndex>=0&&this._fireFocusedCellChanged(e),i}},editorFactory:a=>class extends a{renderFocusOverlay(e,t){var i,o,r=this.option("focusedRowEnabled");r&&null!==(i=this._keyboardNavigationController)&&void 0!==i&&i.isRowFocusType()&&!this._editingController.isEditing()?r&&"row"===this._keyboardNavigationController._getElementType(e)&&!e.hasClass(vo)&&(o=this._keyboardNavigationController.getFirstValidCellInRow(e),this._keyboardNavigationController.focus(o)):super.renderFocusOverlay(e,t)}},columns:a=>class extends a{getSortDataSourceParameters(e,t){var i=super.getSortDataSourceParameters.apply(this,arguments),r=this._dataController._dataSource,o=this._dataController.store(),s=o&&o.key(),c=r&&r.remoteOperations()||{},d=Object.keys(c).every(p=>!c[p]);if(s&&(this.option("focusedRowEnabled")&&!1!==this._focusController.isAutoNavigateToFocusedRow()||t)){var u=(s=Array.isArray(s)?s:[s]).filter(p=>!this.columnOption(p,"sortOrder"));u.length&&(i=i||[],d?i.push({selector:r.getDataIndexGetter(),desc:!1}):u.forEach(p=>i.push({selector:p,desc:!1})))}return i}},data:a=>class extends a{_applyChange(e){if(!e||"updateFocusedRow"!==e.changeType)return super._applyChange.apply(this,arguments)}_fireChanged(e){if(super._fireChanged(e),this.option("focusedRowEnabled")&&this._dataSource){var i="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||i?(this._updatePageIndexes(),this._updateFocusedRow(e)):"append"===e.changeType||"prepend"===e.changeType?this._updatePageIndexes():"update"===e.changeType&&e.repaintChangesOnly&&this._updateFocusedRow(e)}}_updatePageIndexes(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e}isPagingByRendering(){return this._isPagingByRendering}_updateFocusedRow(e){var t=e.operationTypes||{},{reload:i,fullReload:r,pageIndex:o,paging:s}=t,c=this._keyboardNavigationController._isVirtualScrolling(),d=s&&!c,u=this.option("focusedRowKey"),p=this._focusController.isAutoNavigateToFocusedRow();if(i&&!1===o&&!r&&(0,m.O9)(u))this._focusController._navigateToRow(u,!0).done(L=>{L<0&&this._focusController._focusRowByIndex(void 0,t)});else if(d&&p){var f=this.getRowIndexByKey(u),O=this.option("focusedRowIndex");O>=0&&(O===f||!(f>=0))&&this._focusController._focusRowByIndex(O,t)}else d&&!p&&this.getRowIndexByKey(u)<0?this.option("focusedRowIndex",-1):t.fullReload&&this._focusController._focusRowByKeyOrIndex()}getPageIndexByKey(e){var t=this,i=new k.cY;return t.getGlobalRowIndexByKey(e).done(r=>{i.resolve(r>=0?Math.floor(r/t.pageSize()):-1)}).fail(i.reject),i.promise()}getGlobalRowIndexByKey(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)}_calculateGlobalRowIndexByFlatData(e,t,i){var r=this,o=new k.cY,s=r._dataSource;if(Array.isArray(e)||(a=>"string"==typeof a&&a.startsWith(Sd)&&44===a.length)(e))return o.resolve(-1).promise();var c=r._generateFilterByKey(e);return s.load({filter:r._concatWithCombinedFilter(c),skip:0,take:1}).done(d=>{d.length>0?(c=r._generateOperationFilterByKey(e,d[0],i),s.load({filter:r._concatWithCombinedFilter(c,t),skip:0,take:1,requireTotalCount:!0}).done((u,p)=>{o.resolve(p.totalCount)})):o.resolve(-1)}),o.promise()}_concatWithCombinedFilter(e,t){var i=this.getCombinedFilter();return q.combineFilters([e,i,t])}_generateBooleanFilter(e,t,i){var{desc:r}=i;switch(!0){case!1===t&&r:return[e,"=",!0];case!1===t&&!r:return[e,"=",null];case!0===t&&!r:case!(0,m.Lm)(t)&&r:return[e,"<>",t];default:return}}_generateOperationFilterByKey(e,t,i){var r=this,o=r.option("dateSerializationFormat"),s=r._dataSource.remoteOperations().filtering,c=r._dataSource.remoteOperations().sorting,d=r._generateFilterByKey(e,"<"),u=r._columnsController.getSortDataSourceParameters(!s,!0);if(i){var p=r._columnsController.getGroupDataSourceParameters(!s);p&&(u=u?p.concat(u):p)}
1return u&&u.slice().reverse().forEach(v=>{var{selector:f,desc:O,compare:b}=v,{getter:S,rawValue:E,safeValue:L}=((a,e,t)=>{var{isRemoteFiltering:i,dateSerializationFormat:r,getSelector:o}=t,{selector:s}=a,c=(0,m.Tn)(s)?s:o(s),d=c?c(e):e[s];return{getter:c,rawValue:d,safeValue:i&&(0,m.$P)(d)?Oi.A.serializeDate(d,r):d}})(v,t,{isRemoteFiltering:s,dateSerializationFormat:o,getSelector:ee=>r._columnsController.columnOption(ee,"selector")});if(d=[[f,"=",L],"and",d],null===E||(0,m.Lm)(E)){var G=r._generateBooleanFilter(f,L,O);G&&(d=[G,"or",d])}else{var he,J=O?">":"<";b&&!c?he=ee=>"<"===J?b(E,S(ee))>=1:b(E,S(ee))<=-1:(he=[f,J,L],O||(he=[he,"or",[f,"=",null]])),d=[he,"or",d]}}),d}_generateFilterByKey(e,t){var i=this._dataSource.key(),r=[];if(t||(t="="),Array.isArray(i))for(var o=0;o<i.length;++o){var s=e[i[o]];s&&(r.length>0&&r.push("and"),r.push([i[o],t,s]))}else r=[i,t,e];return r}_getLastItemIndex(){return this.items(!0).length-1}},editing:a=>class extends a{_deleteRowCore(e){var t=super._deleteRowCore.apply(this,arguments),i=this._dataController.getKeyByRowIndex(e);t.done(()=>{var r=this._dataController.getRowIndexByKey(i),o=this._dataController.getVisibleRows();-1===r&&!o.length&&this._focusController._resetFocusedRow()})}}},views:{rowsView:a=>class extends a{_createRow(e){var t=super._createRow.apply(this,arguments);return this.option("focusedRowEnabled")&&e&&this._focusController.isRowFocused(e.key)&&t.addClass(vo),t}_checkRowKeys(e){if(super._checkRowKeys.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}}_update(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this._focusController.updateFocusedRow(e):super._update(e)}updateFocusElementTabIndex(e,t){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex(t):super.updateFocusElementTabIndex(e)}_setFocusedRowElementTabIndex(e){var t,i=this.option("focusedRowKey"),r=null!==(t=this.option("tabIndex"))&&void 0!==t?t:0,o=this._columnsController,s=this._dataController.getRowIndexByKey(i),c=this.option("focusedColumnIndex"),d=this._findRowElementForTabIndex();if((0,m.O9)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),d.attr("tabIndex",r),s>=0&&!e&&(c<0&&(c=0),s+=this._dataController.getRowIndexOffset(),c+=o.getColumnIndexOffset(),this._keyboardNavigationController.setFocusedCellPosition(s,c),this._focusController.isAutoNavigateToFocusedRow())){var u=this._dataController.dataSource(),p=u&&u.operationTypes();p&&!p.paging&&!this._dataController.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}}_findRowElementForTabIndex(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,x.A)(this.getRowElement(t>=0?t:0))}scrollToRowElement(e){var t=this._dataController.getRowIndexByKey(e),i=(0,x.A)(this.getRow(t));return this.scrollToElementVertically(i)}scrollToElementVertically(e){var t=this.getScrollable();if(t&&e.length){var i=t.getScrollElementPosition(e,"vertical");return this.scrollTopPosition(i)}return(new k.cY).resolve()}scrollTopPosition(e){var t=new k.cY,i=this.getScrollable();if(i){var r=i.scrollTop(),o=()=>{i.off("scroll",o),t.resolve()};if(e!==r)return i.on("scroll",o),this._dataController.resetFilterApplying(),i.scrollTo({top:e}),t.promise()}return t.resolve()}}}}},xO=Number.MAX_SAFE_INTEGER||9007199254740991;W.registerModule("focus",(0,U.A)((0,U.A)({},al),{extenders:(0,U.A)((0,U.A)({},al.extenders),{controllers:(0,U.A)((0,U.A)({},al.extenders.controllers),{data:a=>class extends(al.extenders.controllers.data(a)){changeRowExpand(e,t){if(this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)){var i=this.getController("keyboardNavigation");(!t||!i.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(e)&&this.option("focusedRowKey",e)}return super.changeRowExpand(e,t)}_isFocusedRowInsideGroup(e){var t=this.getController("columns"),i=this.option("focusedRowKey"),r=this.getRowIndexByKey(i),o=r>=0&&this.getVisibleRows()[r],s=t.getGroupDataSourceParameters(!0);if(o)for(var c=0;c<e.length;++c)if((0,me.Hz)(s[c]&&s[c].selector)(o.data)!==e[c])return!1;return!0}_getGroupPath(e,t){for(var i=[],r=[e];r&&r[0]&&t;){var o=r[0];void 0!==o.key&&i.push(o.key),r=o.items,t--}return i}_expandGroupByPath(e,t,i){var r=new k.cY;return i++,e.expandRow(t.slice(0,i)).done(()=>{i===t.length?r.resolve():e._expandGroupByPath(e,t,i).done(r.resolve).fail(r.reject)}).fail(r.reject),r.promise()}_calculateGlobalRowIndexByGroupedData(e){var t=this,i=t._dataSource,r=t._generateFilterByKey(e),o=new k.cY,s=Array.isArray(e),c=i.group();return s?o.resolve(-1).promise():i._grouping._updatePagingOptions?(i.load({filter:t._concatWithCombinedFilter(r),group:c}).done(d=>{if(!d||0===d.length||!(0,m.O9)(d[0].key)||-1===d[0].key)return o.resolve(-1).promise();var u=t._getGroupPath(d[0],c.length);t._expandGroupByPath(t,u,0).done(()=>{t._calculateExpandedRowGlobalIndex(o,e,u,c)}).fail(o.reject)}).fail(o.reject),o.promise()):(t._calculateGlobalRowIndexByFlatData(e,null,!0).done(o.resolve).fail(o.reject),o)}_calculateExpandedRowGlobalIndex(e,t,i,r){var p,o=Yt(i,{group:r}),s=this._dataSource,c=this.option("scrolling.mode"),d="virtual"===c||"infinite"===c,u=s.pageSize();s._grouping._updatePagingOptions({skip:0,take:xO}
1,(v,f)=>{(0,j.RL)(v.path,i)&&(p=f)}),this._calculateGlobalRowIndexByFlatData(t,o).done(v=>{var f,O;v<0?e.resolve(-1):(f=(p%u||u)+v-i.length,O=d?0:Math.floor(f/(u-i.length))*i.length,e.resolve(f=p+v+O))}).fail(e.reject)}}})})}));var bO=P(400);W.registerModule("rowDragging",{defaultOptions:()=>({rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}),extenders:{views:{rowsView:a=>class extends a{init(){super.init.apply(this,arguments),this._updateHandleColumn()}optionChanged(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),super.optionChanged.apply(this,arguments)}_allowReordering(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))}_updateHandleColumn(){var e=this.option("rowDragging"),t=this._allowReordering(),i=this._columnsController,r=t&&e.showDragIcons;i?.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",elementAttr:[{name:"dx-drag-cell",value:""}],cssClass:"dx-command-drag",width:"auto",cellTemplate:this._getHandleTemplate(),visible:r}),i?.columnOption("type:drag","visible",r)}_renderContent(){var e=this.option("rowDragging"),t=this._allowReordering(),i=super._renderContent.apply(this,arguments),r=this._isFixedTableRendering,o=r?"_sortableFixed":"_sortable",s=r?"_sortable":"_sortableFixed",c=p=>{var v;null===(v=this._sortableFixed)||void 0===v||v.$element().css("pointerEvents",p?"auto":"")},d=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",u=this.option("dataRowTemplate")?"> table > tbody".concat(d):"> table > tbody > ".concat(d);return(t||this[o])&&i.length&&(this[o]=this._createComponent(i,bO.A,(0,A.X)({component:this.component,contentTemplate:null,filter:u,cursorOffset:p=>{var{event:v}=p,f=(0,x.A)(this.element()).offset();return{x:v.pageX-f.left}},onDraggableElementShown:p=>{if(!e.dragTemplate){var f=(0,x.A)(p.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(f)}},dragTemplate:this._getDraggableRowTemplate(),handle:e.showDragIcons&&".".concat("dx-command-drag"),dropFeedbackMode:"indicate"},e,{onDragStart:p=>{var v,f;null===(v=this.getController("keyboardNavigation"))||void 0===v||v._resetFocusedCell();var O=p.component.getVisibleRows()[p.fromIndex];p.itemData=O&&O.data,p.cancel=!t||!(O&&"data"===O.rowType),null===(f=e.onDragStart)||void 0===f||f.call(e,p)},onDragEnter:()=>{c(!0)},onDragLeave:()=>{c(!1)},onDragEnd:p=>{var v;c(!1),null===(v=e.onDragEnd)||void 0===v||v.call(e,p)},onAdd:p=>{var v;c(!1),null===(v=e.onAdd)||void 0===v||v.call(e,p)},dropFeedbackMode:e.dropFeedbackMode,onOptionChanged:p=>{this._sortableFixed&&("fromIndex"===p.name||"toIndex"===p.name)&&this[s].option(p.name,p.value)}})),i.toggleClass("dx-scrollable-container",r),i.toggleClass("dx-sortable-without-handle",t&&!e.showDragIcons)),i}_renderCore(e){super._renderCore.apply(this,arguments),e&&"update"===e.changeType&&e.repaintChangesOnly&&q.isVirtualRowRendering(this)&&(0,j.OX)(()=>{this._updateSortable()})}_updateSortable(){var e=this._dataController.getRowIndexOffset(),t=e-this._previousOffset;[this._sortable,this._sortableFixed].forEach(i=>{var r=i?.option("toIndex");(0,m.O9)(r)&&(0,m.O9)(this._previousOffset)&&i?.option("toIndex",r-t),i?.option("offset",e),i?.update()}),this._previousOffset=e}_resizeCore(){super._resizeCore.apply(this,arguments),this._updateSortable()}_getDraggableGridOptions(e){var t=this.option(),i=this.getColumns(),r=(0,x.A)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:i.map(o=>({width:o.width||o.visibleWidth,fixed:o.fixed,fixedPosition:o.fixedPosition})),onRowPrepared:o=>{var s=o.component.getView("rowsView");(0,x.A)(o.rowElement).replaceWith(r.eq(s._isFixedTableRendering?1:0).clone())}}}_synchronizeScrollLeftPosition(e){var t=e?.getScrollable();t?.scrollTo({x:this._scrollLeft})}_getDraggableRowTemplate(){return e=>{var t=this.component.$element(),i=(0,x.A)("<div>");(0,F.zj)(i,(0,F.RG)(t));var r=this._dataController.items(),s=this._getDraggableGridOptions(r&&r[e.fromIndex]);return this._createComponent(i,this.component.NAME,s),i.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix("rowsview"),")")).hide(),i.addClass(this.addWidgetPrefix("dragview")),i}}_getHandleTemplate(){return(a=>(e,t)=>{var i=(0,x.A)(e);if("data"===t.rowType)return i.addClass("dx-cell-focus-disabled"),(0,x.A)("<span>").addClass(a("drag-icon"));q.setEmptyText(i)})(e=>this.addWidgetPrefix(e))}}}}});var ft=P(7283),B=P(1837);let IO=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=V.$C({type:a}),a.\u0275inj=V.G2t({imports:[[B.nrj,B.Bkf,B.nwt,B.hXw,B.YGc,B.gf0,B.rvW,B._zS,B.U9o,B.hyP,B._RO,B.YC7,B.GIV,B.X1G,B.W6p,B.Pxf,B.BR_,B.uE7,B.$lK,B.aJg,B.GCl,B.Sy5,B.k61,B.POb,B.hUd,B.HKo,B.Ixj,B.a6E,B.YLo,B.YaD,B.eNx,B.Tob,B.$Ql,B.isg,B.uIe,B.L0X,B.MtA,B.yA4,B.oCB,B.tWd,B.zkV,B.Sn2,B.MBy,B.qCh,B.joz,B.FOK,B.x_w,B.s5o,B.Zac,B.ZaD,B.m1r,B.Wnt,B.rER,B.XUe,B.lkr,B.WC8,B.GQ,B.kYc,B.X6g,B.WXx,B.CWj,B.Mru,B.Hl$,B.l4W,ft.p_,ft.xZ],B.nrj,B.Bkf,B.nwt,B.hXw,B.YGc,B.gf0,B.rvW,B._zS,B.U9o,B.hyP,B._RO,B.YC7,B.GIV,B.X1G,B.W6p,B.Pxf,B.BR_,B.uE7,B.$lK,B.aJg,B.GCl,B.Sy5,B.k61,B.POb,B.hUd,B.HKo,B.Ixj,B.a6E,B.YLo,B.YaD,B.eNx,B.Tob,B.$Ql,B.isg,B.uIe,B.L0X,B.MtA,B.yA4,B.oCB,B.tWd,B.zkV,B.Sn2,B.MBy,B.qCh,B.joz,B.FOK,B.x_w,B.s5o,B.Zac,B.ZaD,B.m1r,B.Wnt,B.rER,B.XUe,B.lkr,B.WC8,B.GQ,B.kYc,B.X6g,B.WXx,B.CWj,B.Mru,B.Hl$,B.l4W,ft.xZ]}),a})()},9101:(Ne,ce,P)=>
1{P.d(ce,{b:()=>pe});var M=P(345),V=P(4438),I=P(4292),x=P(1269),A=P(5042),w=P(4435),F=P(4905),m=P(7951),n=P(2463),R=P(9104),D=P(4159),j=P(6961),Me=P(186),Ae=P(5281),qe=P(2934).A.inherit({_getDefaultOptions:function(){return(0,m.X)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var Y=(0,I.A)("<textarea>");return this._applyInputAttributes(Y,this.option("inputAttr")),this._updateInputAutoResizeAppearance(Y),Y},_setInputMinHeight:A.lQ,_renderScrollHandler:function(){this._eventY=0;var Y=this._input(),ae=(0,Ae.N)(Y,!0);x.A.on(Y,(0,R.b4)(j.A.init,this.NAME),ae,A.lQ),x.A.on(Y,(0,R.b4)(D.A.down,this.NAME),this._pointerDownHandler.bind(this)),x.A.on(Y,(0,R.b4)(D.A.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(Y){this._eventY=(0,R.rw)(Y).y},_pointerMoveHandler:function(Y){var ae=(0,R.rw)(Y).y,z=this._eventY-ae;(0,Ae.f)(this._input(),z)&&(Y.isScrollingEvent=!0,Y.stopPropagation()),this._eventY=ae},_renderDimensions:function(){var Y=this.$element(),ae=Y.get(0),z=this._getOptionValue("width",ae),Pe=this._getOptionValue("height",ae),ze=this.option("minHeight"),we=this.option("maxHeight");Y.css({minHeight:void 0!==ze?ze:"",maxHeight:void 0!==we?we:"",width:z,height:Pe})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&x.A.on(this._input(),(0,R.b4)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){x.A.off(this._input(),(0,R.b4)("input paste",this.NAME)),this.callBase()},_getHeightDifference(Y){return(0,Me.pD)(this._$element.get(0),!1)+(0,Me.pD)(this._$textEditorContainer.get(0),!1)+(0,Me.pD)(this._$textEditorInputContainer.get(0),!1)+(0,Me.GU)("height",(0,w.zk)().getComputedStyle(Y.get(0))).margin},_updateInputHeight:function(){if((0,w.Vd)()){var Y=this._input(),ae=this.option("height"),z=void 0===ae&&this.option("autoResizeEnabled");if(!(z||void 0===ae&&this.option("minHeight")))return void Y.css("height","");this._resetDimensions(),this._$element.css("height",(0,Me.P$)(this._$element)),Y.css("height",0);var ze=this._getHeightDifference(Y);this._renderDimensions();var we=this._getBoundaryHeight("minHeight"),Ot=this._getBoundaryHeight("maxHeight"),Te=Y[0].scrollHeight;if(void 0!==we&&(Te=Math.max(Te,we-ze)),void 0!==Ot){var lt=Ot-ze,Et=Te>lt;Te=Math.min(Te,lt),this._updateInputAutoResizeAppearance(Y,!Et)}Y.css("height",Te),z&&this._$element.css("height","auto")}},_getBoundaryHeight:function(Y){var ae=this.option(Y);if((0,n.O9)(ae))return"number"==typeof ae?ae:(0,Me.hP)(ae,this.$element().get(0).parentElement,this._$element.get(0))},_renderInputType:A.lQ,_visibilityChanged:function(Y){Y&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(Y,ae){if(Y){var z=(0,A.YD)(ae,this.option("autoResizeEnabled"));Y.toggleClass("dx-texteditor-input-auto-resize",z)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(Y){switch(Y.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),Y.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(Y),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(Y),Y.value&&this._updateInputHeight();break;default:this.callBase(Y)}}});(0,F.A)("dxTextArea",qe);const ie=qe;var Z=P(9417),N=P(7283);const $={provide:Z.kq,useExisting:(0,V.Rfq)(()=>T),multi:!0};let T=(()=>{class Y extends N.ic{constructor(z,Pe,ze,we,Ot,Te,lt,Et){super(z,Pe,ze,we,lt,Et),this._watcherHelper=we,this._idh=Ot,this.touched=En=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"autoResizeEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxHeightChange"},{emit:"maxLengthChange"},{emit:"minHeightChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Te.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(z){this._setOption("accessKey",z)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(z){this._setOption("activeStateEnabled",z)}get autoResizeEnabled(){return this._getOption("autoResizeEnabled")}set autoResizeEnabled(z){this._setOption("autoResizeEnabled",z)}get disabled(){return this._getOption("disabled")}set disabled(z){this._setOption("disabled",z)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(z){this._setOption("elementAttr",z)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(z){this._setOption("focusStateEnabled",z)}get height(){return this._getOption("height")}set height(z){this._setOption("height",z)}get hint(){return this._getOption("hint")}set hint(z){this._setOption("hint",z)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(z){this._setOption("hoverStateEnabled",z)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(z){this._setOption("inputAttr",z)}get isDirty(){return this._getOption("isDirty")}set isDirty(z){this._setOption("isDirty",z)}get isValid(){return this._getOption("isValid")}set isValid(z){this._setOption("isValid",z)}get label(){return this._getOption("label")}set label(z){this._setOption("label",z)}get labelMode(){return this._getOption("labelMode")}set labelMode(z){this._setOption("labelMode",z)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(z){this._setOption("maxHeight",z)}get maxLength(){return this._getOption("maxLength")}set maxLength(z){this._setOption("maxLength",z)}get minHeight(){return this._getOption("minHeight")}set minHeight(z){this._setOption("minHeight",z)}get name(){return this._getOption("name")}set name(z){this._setOption("name",z)}get placeholder(){return this._getOption("placeholder")}set placeholder(z){this._setOption("placeholder",z)}get readOnly(){return this._getOption("readOnly")}set readOnly(z){this._setOption("readOnly",z)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(z){this._setOption("rtlEnabled",z)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(z){this._setOption("spellcheck",z)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(z){this._setOption("stylingMode",z)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(z){this._setOption("tabIndex",z)}get text(){return this._getOption("text")}set text(z){this._setOption("text",z)}get validationError(){return this._getOption("validationError")}set validationError(z){this._setOption("validationError",z)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(z){this._setOption("validationErrors",z)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(z){this._setOption("validationMessageMode",z)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(z){this._setOption("validationMessagePosition",z)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(z){this._setOption("validationStatus",z)}get value(){return this._getOption("value")}set value(z){this._setOption("value",z)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(z){this._setOption("valueChangeEvent",z)}get visible(){return this._getOption("visible")}set visible(z){this._setOption("visible",z)}get width(){return this._getOption("width")}set width(z){this._setOption("width",z)}change(z){}_createInstance(z,Pe){return new ie(z,Pe)}writeValue(z){this.eventHelper.lockedValueChangeEvent=!0,this.value=z,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(z){this.disabled=z}registerOnChange(z){this.change=z}registerOnTouched(z){this.touched=z}_createWidget(z){super._createWidget(z),this.instance.on("focusOut",Pe=>{this.eventHelper.fireNgEvent("onBlur",[Pe])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(z){super.ngOnChanges(z),this.setupChanges("validationErrors",z)}setupChanges(z,Pe){z in this._optionsToUpdate||this._idh.setup(z,Pe)}
1ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(z,Pe){let ze=this._idh.setupSingle(z,Pe),we=null!==this._idh.getChanges(z,Pe);(ze||we)&&super._setOption(z,Pe)}}return Y.\u0275fac=function(z){return new(z||Y)(V.rXU(V.aKT),V.rXU(V.SKi),V.rXU(N.zF),V.rXU(N.jS),V.rXU(N.$M),V.rXU(N.fH),V.rXU(M.pJ),V.rXU(V.Agw))},Y.\u0275cmp=V.VBU({type:Y,selectors:[["dx-text-area"]],hostBindings:function(z,Pe){1&z&&V.bIt("valueChange",function(we){return Pe.change(we)})("onBlur",function(we){return Pe.touched(we)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",autoResizeEnabled:"autoResizeEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",label:"label",labelMode:"labelMode",maxHeight:"maxHeight",maxLength:"maxLength",minHeight:"minHeight",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",autoResizeEnabledChange:"autoResizeEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxHeightChange:"maxHeightChange",maxLengthChange:"maxLengthChange",minHeightChange:"minHeightChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[V.Jv_([N.zF,N.jS,$,N.fH,N.$M]),V.Vt3,V.OA$],decls:0,vars:0,template:function(z,Pe){},encapsulation:2}),Y})(),pe=(()=>{class Y{}return Y.\u0275fac=function(z){return new(z||Y)},Y.\u0275mod=V.$C({type:Y}),Y.\u0275inj=V.G2t({imports:[[N.p_,N.xZ],N.xZ]}),Y})()}}]);

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.