1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[2056],{2056:(K,w,o)=>{o.d(w,{S:()=>Re});var u=o(89204),e=o(12481),n=o(34456),P=o(60316),R=o(93683),y=o(70271),v=o(51567),D=o(36647),s=o(11249),E=o(52575),L=o(91817),j=o(89475),k=o(61318),M=o(75797),B=o(19999),C=o(47697),p=o(59452),_=o(34722),d=o(92854),g=o(34487),O=o(19838),x=o(82982),U=o(24331),S=o(68010),h=o(25200),f=o(8103),I=o(5049),m=o(9496),T=o(7530),$=o(68071),F=o(36624),G=o(48503),l=o(85240),X=o(48237);function z(a,b){if(1&a){const r=e.RV6();e.j41(0,"li",3)(1,"a",4),e.nI1(2,"localize"),e.bIt("click",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.onCloseSearch())}),e.nrm(3,"app-service-logo",5),e.j41(4,"span",6),e.EFF(5),e.k0s()()()}if(2&a){const r=b.$implicit,t=e.XpG();e.R7$(),e.Y8G("routerLink",e.bMT(2,5,t.defaultMenuRoutePrefix+(null==r?null:r.url))),e.R7$(2),e.Y8G("icon",null==r?null:r.icon)("alt",null==r?null:r.caption),e.R7$(),e.Y8G("title",null==r?null:r.caption),e.R7$(),e.JRh(null==r?null:r.caption)}}let H=(()=>{var a;class b{constructor(){this.defaultMenuRoutePrefix=O.D5.CATALOG_ROUTE_PREFIX,this.closeSearch=new e.bkB}onCloseSearch(){this.closeSearch.emit()}}return(a=b).\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.VBU({type:a,selectors:[["app-search-list"]],inputs:{services:"services",title:"title",defaultMenuRoutePrefix:"defaultMenuRoutePrefix"},outputs:{closeSearch:"closeSearch"},decls:7,vars:3,consts:[[1,"popular-services"],[1,"popular-services-title"],[1,"cust-scrollbar"],[1,"search_dropdown-row","relative"],[1,"search_dropdown-text",3,"click","routerLink"],[1,"search_service_logo",3,"icon","alt"],[1,"truncate",3,"title"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",2),e.Z7z(5,z,6,7,"li",3,e.fX1),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,i.title)),e.R7$(3),e.Dyx(i.services))},dependencies:[G.h,F.B,X.y,g.Wk,G.D9,$.t],styles:[".popular-services[_ngcontent-%COMP%] .popular-services-title[_ngcontent-%COMP%]{margin:6px 16px;font-size:15px;font-weight:400;color:#828282}"],changeDetection:0}),b})();var Q=o(21445),J=o(83292),Z=o(60247),q=o(18652),ee=o(19187),te=o(39539),ne=o(28732),oe=o(98509),ie=o(26751),re=o(16240),se=o(97887);const ae=["searchField"],ce=a=>({"align-center":a}),le=(a,b,r,t,i)=>({isAuth:a,isEmptySearch:b,searchResultServices:r,searchResultFields:t,showOverlay:i}),he=a=>({search_dropdown_display:a}),ue=()=>({duration:"600ms"}),pe=a=>({params:a});function de(a,b){if(1&a){const r=e.RV6();e.j41(0,"span",13),e.bIt("click",function(i){l.eBV(r);const c=e.XpG(2);return l.Njj(c.onCleanSearch(i))}),e.nrm(1,"button",14),e.k0s()}}function _e(a,b){if(1&a){const r=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const i=l.eBV(r).$implicit,c=e.XpG(3);return l.Njj(c.onSuggestSelect(i))}),e.j41(1,"button",23),e.nI1(2,"highlight"),e.bIt("keydown",function(i){l.eBV(r);const c=e.XpG(3);return l.Njj(c.onLinkArrowKeydown(i))}),e.k0s()()}if(2&a){const r=b.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("innerHtml",e.i5U(2,1,r,t.searchInput.value),e.npT)}}function fe(a,b){if(1&a){const r=e.RV6();e.j41(0,"app-search-list",24),e.nI1(1,"translate"),e.nI1(2,"async"),e.bIt("closeSearch",function(){l.eBV(r);const i=e.XpG(3);return l.Njj(i.onCloseSearch())})("keydown",function(i){l.eBV(r);const c=e.XpG(3);return l.Njj(c.onLinkArrowKeydown(i))}),e.k0s()}if(2&a){const r=e.XpG(3);e.Y8G("title",e.bMT(1,3,"shared.header.search.popular-services"))("services",e.bMT(2,5,r.popularServices$))("defaultMenuRoutePrefix",r.defaultMenuRoutePrefix)}}function me(a,b){if(1&a){const r=e.RV6();e.j41(0,"app-search-list",27),e.nI1(1,"translate"),e.nI1(2,"async"),e.bIt("closeSearch",function(){l.eBV(r);const i=e.XpG(4);return l.Njj(i.onCloseSearch())})("keydown",function(i){l.eBV(r);const c=e.XpG(4);return l.Njj(c.onLinkArrowKeydown(i))}),e.k0s()}if(2&a){const r=e.XpG(4);e.Y8G("title",e.bMT(1,3,"shared.header.search.payment-earlier"))("services",e.bMT(2,5,r.latestServices$))("defaultMenuRoutePrefix",r.defaultMenuRoutePrefix)}}function ge(a,b){1&a&&e.nrm(0,"div",26)}function ve(a,b){if(1&a&&(e.qex(0),e.nVh(1,me,3,7,"app-search-list",25),e.nVh(2,ge,1,0,"div",26),e.bVm()),2&a){const r=b.ngLet,t=e.XpG(2).ngLet;e.R7$(),e.vxM(r?1:-1),e.R7$(),e.vxM(t.isEmptySearch||r?-1:2)}}function xe(a,b){if(1&a){const r=e.RV6();e.j41(0,"div",28),e.nI1(1,"translate"),e.nI1(2,"safeHtml"),e.bIt("cdkObserveContent",function(){l.eBV(r);const i=e.XpG(3);return l.Njj(i.pushNotFoundEvent())}),e.k0s()}2&a&&e.Y8G("debounce",100)("innerHTML",e.bMT(2,4,e.bMT(1,2,"shared.header.search.details-not-found")),e.npT)}function Se(a,b){if(1&a){const r=e.RV6();e.j41(0,"a",29),e.nI1(1,"localize"),e.bIt("click",function(){l.eBV(r);const i=e.XpG(3);return l.Njj(i.onCloseSearch())})("keydown",function(i){l.eBV(r);const c=e.XpG(3);return l.Njj(c.onLinkArrowKeydown(i))}),e.nrm(2,"img",30),e.j41(3,"span",31),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&a){const r=e.XpG(2).ngLet,t=e.XpG();e.AVh("empty",r.isEmptySearch),e.Y8G("routerLink",e.bMT(1,4,t.bankTransferRoutePrefix)),e.R7$(4),e.JRh(e.bMT(5,6,"shared.header.search.transfer-details"))}}function Ce(a,b){if(1&a){const r=e.RV6();e.j41(0,"li",16)(1,"button",32),e.nI1(2,"localize"),e.bIt("click",function(){l.eBV(r);const i=e.XpG(3);return l.Njj(i.onCloseSearch())})("keydown",function(i){l.eBV(r);const c=e.XpG(3);return l.Njj(c.onLinkArrowKeydown(i))}),e.nrm(3,"app-service-logo",33),e.nI1(4,"translate"),e.j41(5,"span",34),e.EFF(6),e.k0s()()()}if(2&a){const r=b.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("routerLink",e.bMT(2,5,t.defaultMenuRoutePrefix+(null==r?null:r.url))),e.R7$(2),e.Y8G("icon",r.icon)("alt",r.caption+e.bMT(4,7,"catalog.shared.alt-catalog")),e.R7$(2),e.Y8G("title",r.caption),e.R7$(),e.SpI(" ",r.caption," ")}}function be(a,b){if(1&a){const r=e.RV6();e.j41(0,"li",16)(1,"button",32),e.nI1(2,"localize"),e.bIt("click",function(){l.eBV(r);const i=e.XpG(3);return l.Njj(i.onCloseSearch())})("keydown",function(i){l.eBV(r);const c=e.XpG(3);return l.Njj(c.onLinkArrowKeydown(i))}),e.nrm(3,"app-service-logo",33),e.nI1(4,"translate"),e.j41(5,"span",34),e.EFF(6),e.k0s()()()}if(2&a){const r=b.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("routerLink",e.bMT(2,5,t.defaultMenuRoutePrefix+(null==r?null:r.url))),e.R7$(2),e.Y8G("icon",null==r?null:r.
1icon)("alt",(null==r?null:r.name)+e.bMT(4,7,"catalog.shared.alt-catalog")),e.R7$(2),e.Y8G("title",null==r?null:r.name),e.R7$(),e.SpI(" ",null==r?null:r.name," ")}}function Ee(a,b){if(1&a&&(e.j41(0,"div",12)(1,"ul",15),e.Z7z(2,_e,3,4,"li",16,e.fX1),e.nI1(4,"async"),e.k0s(),e.nVh(5,fe,3,7,"app-search-list",17),e.nI1(6,"async"),e.DNE(7,ve,3,2,"ng-container",18),e.nI1(8,"async"),e.nVh(9,xe,3,6,"div",19),e.nVh(10,Se,6,8,"a",20),e.j41(11,"ul",21),e.Z7z(12,Ce,7,9,"li",16,e.fX1),e.Z7z(14,be,7,9,"li",16,e.fX1),e.k0s()()),2&a){const r=e.XpG().ngLet,t=e.XpG();e.Y8G("ngClass",e.eq3(11,he,t.isSearching)),e.R7$(2),e.Dyx(e.bMT(4,5,t.searchSuggests$)),e.R7$(3),e.vxM(e.bMT(6,7,t.displayPopularServices$)?5:-1),e.R7$(2),e.Y8G("ngLet",e.bMT(8,9,t.displayLatestServices$)),e.R7$(2),e.vxM(r.isEmptySearch?9:-1),e.R7$(),e.vxM(!t.bankTransferRoutePrefix||r.isAuth&&!r.isEmptySearch||r.searchResultServices.length||r.searchResultFields.length?-1:10),e.R7$(2),e.Dyx(r.searchResultServices),e.R7$(2),e.Dyx(r.searchResultFields)}}function ye(a,b){if(1&a){const r=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.navigateToSearch())})("clickOutside",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.onCloseSearch())}),e.j41(1,"section",6)(2,"div",7)(3,"input",8,0),e.nI1(5,"translate"),e.bIt("click",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.onEventSearchInput())})("focus",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.onFocusEvent())})("blur",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.onBluerEvent())})("keydown",function(i){l.eBV(r);const c=e.XpG();return l.Njj(c.onSearchKeydown(i))}),e.k0s(),e.j41(6,"button",9),e.bIt("click",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.navigateToSearch())}),e.k0s(),e.nVh(7,de,2,0,"span",10),e.k0s(),e.j41(8,"app-location",11,1),e.nI1(10,"async"),e.bIt("click",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.isSearching=!1)}),e.k0s()(),e.nVh(11,Ee,16,13,"div",12),e.k0s()}if(2&a){const r=e.XpG();e.R7$(),e.AVh("active",r.isSearching),e.R7$(2),e.Y8G("formControl",r.searchInput)("placeholder",e.bMT(5,7,"shared.search.placeholder-for-search-input")),e.R7$(4),e.vxM(r.searchInput.value?7:-1),e.R7$(),e.Y8G("userLocation",e.bMT(10,9,r.userLocationChanged$)),e.R7$(3),e.vxM(r.isSearching?11:-1)}}function Te(a,b){if(1&a){const r=e.RV6();e.j41(0,"div",35),e.bIt("click",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.removeOverlay())})("clickOutside",function(){l.eBV(r);const i=e.XpG();return l.Njj(i.removeOverlay())}),e.k0s()}2&a&&e.Y8G("@fadeInAnimation",e.eq3(2,pe,e.lJ4(1,ue)))}const N=".search_dropdown-text";let Re=(()=>{var a;class b{constructor(t,i,c,A,V,W,Le,Me,Ie,De,Oe,Pe){this.platformId=t,this.searchService=i,this.router=c,this.loader=A,this.userDataService=V,this.publicService=W,this.authService=Le,this.historyService=Me,this.menuService=Ie,this.bankTransferPaymentService=De,this.localize=Oe,this.ecomService=Pe,this.centered=!1,this.isCatalogPage=!1,this.filterTemplateAvailable=!1,this.hasFocusOnOpen=!1,this.defaultMenuRoutePrefix=O.D5.CATALOG_ROUTE_PREFIX,this.needUpdateBankTransferRoute=!1,this.onSearchFinished=new e.bkB,this.onClose=new e.bkB,this.isBrowser=(0,P.UE)(this.platformId),this.alive=!0,this.isSearching=!1,this.searchRequesting=!1,this.searchSuggests$=new M.t([]),this.searchResultServices$=new M.t([]),this.searchResultFields$=new M.t([]),this.popularServices$=new M.t([]),this.latestServices$=new M.t([]),this.bankTransferRoutePrefix=O.D5.BANK_TRANSFER_ROUTE_PREFIX,this.userLocationChanged$=this.userDataService.userLocationChanged$,this.focusActivated$=new M.t(!1),this.isAuth$=this.authService.isAuth$,this.minSearchLength=3,this.maxSearchResults=null,this.maxSearchPopularServices=5,this.maxSearchLatestServices=5,this.showOverlay$=this.searchService.showOverlay$.asObservable()}ngOnInit(){this.searchInput=new n.hs,this.createSearchInputSubscription(),this.createPopularServicesSubscription(),this.createLatestServicesSubscription(),this.initSearchInput(),this.initIsEmptySearch(),this.initDisplayPopularServices(),this.initDisplayLatestServices(),this.hasFocusOnOpen&&this.callFocusOnInit(
1),this.needUpdateBankTransferRoute&&this.updateBankTransferRoute()}callFocusOnInit(){this.isBrowser&&setTimeout(()=>this.searchField?.nativeElement?.focus(),0)}ngOnDestroy(){this.alive=!1}initDisplayPopularServices(){this.displayPopularServices$=(0,B.z)([this.popularServices$,this.searchSuggests$,this.isAuth$]).pipe((0,y.T)(([t,i,c])=>t?.length&&this.isValidSearchInputData&&!c&&!i?.length))}initDisplayLatestServices(){this.displayLatestServices$=(0,B.z)([this.latestServices$,this.searchSuggests$,this.isAuth$]).pipe((0,y.T)(([t,i,c])=>t?.length&&this.isValidSearchInputData&&c&&!i?.length))}get isValidSearchInputData(){return!this.searchInput.value||this.searchInput.value?.length<this.minSearchLength}initIsEmptySearch(){this.isEmptySearch$=(0,B.z)([this.searchSuggests$,this.searchResultServices$,this.searchResultFields$]).pipe((0,y.T)(t=>t.every(c=>!c?.length)&&this.searchInput.value?.length>=this.minSearchLength))}createLatestServicesSubscription(){(0,B.z)([this.focusActivated$,this.isAuth$]).pipe((0,v.p)(([t,i])=>t&&i&&!this.searchInput.value),(0,D.n)(()=>this.historyService.getLatestServices(this.maxSearchLatestServices)),(0,y.T)(t=>t?.items?.map(i=>i?.menuButton)?.filter(i=>!!i)),(0,y.T)(t=>this.filterTemplateAvailable?this.getIsTemplateAvailable(t):t)).subscribe(t=>this.latestServices$.next(t))}createPopularServicesSubscription(){(0,B.z)([this.focusActivated$,this.isAuth$]).pipe((0,v.p)(([t,i])=>t&&!i&&!this.searchInput.value),(0,D.n)(()=>this.publicService.getPopularButtons(this.maxSearchPopularServices)),(0,y.T)(t=>this.filterTemplateAvailable?this.getIsTemplateAvailable(t):t)).subscribe(t=>this.popularServices$.next(t))}getIsTemplateAvailable(t){return t?.filter(i=>i?.isTemplateAvailable??!0)}createSearchInputSubscription(){this.searchInput.valueChanges.pipe((0,s.v)(()=>this.alive),(0,E.B)(400),(0,L.F)(),(0,v.p)(t=>(t?.length<this.minSearchLength&&!this.searchInput.pristine&&(this.searchSuggests$.next([]),this.searchResultServices$.next([]),this.searchResultFields$.next([]),this.clearSearchedServices()),t?.length>=this.minSearchLength)),(0,D.n)(t=>(0,B.z)([this.searchService.getSearchSuggest(t),this.getSearchedServices(t)]))).subscribe(([t,i])=>{this.searchSuggests$.next(t.data??[]),this.searchResultServices$.next(i?.data||[]),this.searchResultFields$.next(i?.buttons||[])})}initSearchInput(){if(this.isCatalogPage){const t=this.searchService.currentSearchTerm.getValue(),i=this.searchService.currentSearchId.getValue();this.searchInput.setValue(t),t&&this.search(t,i)}this.searchService.currentSearchTerm.next(""),this.searchService.currentSearchId.next("")}onSearchKeydown(t){if(this.isBrowser&&t&&(t.keyCode===_.D.ArrowDown||t.keyCode===_.D.ArrowUp)){t.preventDefault();const i=document.querySelectorAll(N),c=i?.length;c>0&&(t.keyCode===_.D.ArrowDown?i[0]?.focus():i[c-1]?.focus())}}onFocusEvent(){this.onEventSearchInput(),this.focusActivated$.next(!0)}onBluerEvent(){this.focusActivated$.next(!1)}onEventSearchInput(){this.isSearching=!0}onCloseSearch(){this.isSearching=!1,this.onClose.emit(!0)}onLinkArrowKeydown(t){if(this.isBrowser&&t&&(t.keyCode===_.D.ArrowDown||t.keyCode===_.D.ArrowUp)){t.preventDefault();const i=t.target,c=document.querySelectorAll(N),A=Array.from(c);let V=A?.indexOf(i);if(-1===V)return;const W=t.keyCode===_.D.ArrowUp?A[--V]:A[++V];W?W?.focus():this.searchField.nativeElement?.focus()}}onCleanSearch(t){t?.preventDefault(),t?.stopPropagation(),this.clearSearch(),(0,q.A)("qs")}clearSearch(){this.searchInput.reset(""),this.searchSuggests$.next([]),this.searchResultServices$.next([]),this.searchResultFields$.next([]),this.isSearching=!1,this.clearSearchedServices()}clearSearchedServices(){this.onSearchFinished.observers.length>0&&this.onSearchFinished.next({searchTerm:this.searchInput.value,services:[],searchId:""})}navigateToSearch(){const t=this.searchInput.value;if(t){const i=t.length>2?this.sendSelectedSuggestStatistic():"",c={qs:t};this.isSearching=!1,this.focusOut(),this.isCatalogPage?(this.search(t,i),this.setSearchQueryURL(t)):(this.searchService.currentSearchTerm.next(this.searchInput.value),this.searchService.currentSearchId.next(i),this.router.navigate([this.localize.translateRoute("/catalog/popular")],{queryParams:c}))}}onSuggestSelect(t){this.isSearching=!1,this.focusOut();const i=this.sendSelectedSuggestStatistic(t),c={qs:t};this.isCatalogPage?(this.searchInput.setValue(t),this.search(t,i),this.setSearchQueryURL(t)):(this.searchService.currentSearchTerm.next(t),this.searchService.currentSearchId.next(i),this.router.navigate([this.localize.translateRoute("/catalog/popular")],{queryParams:c}))}setSearchQueryURL(t){if(!this.isBrowser)return;const i=window.history.state,c=i.navigationId?++i.navigationId:0,A=new URLSearchParams(window.location.search);A.set("qs",t),window.history.pushState({navigationId:c,suggest:t},"",`${window.location.pathname}?${A}`)}sendSelectedSuggestStatistic(t){const i=this.prepareSuggestStatisticModel(t);return this.searchService.sendSelectedSuggestStatistic(i).subscribe(),i.id}prepareSuggestStatisticModel(t){return{id:this.getRandomGuid(),charactersEnteredByClient:this.searchInput.value,numberOfLetters:this.searchInput.value.length,numberOfHints:this.searchSuggests$.value.length,selectedHint:t||"",indexOfSelectedHint:t?this.searchSuggests$.value.indexOf(t)+1:0}}getRandomGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{var i=16*Math.random()|0;return("x"==t?i:3&i|8).toString(16)})}focusOut(){this.searchField?.nativeElement&&this.searchField.nativeElement.blur()}search(t,i){this.searchRequesting||(this.onSearchReq(!0),this.get
1SearchedServices(t).pipe((0,j.j)(()=>this.onSearchReq(!1))).subscribe(c=>{const A=this.needUseFieldsApi(t)?this.getMenuButtonFromSearchedButtons(c?.buttons):c?.data;this.onSearchFinished.next({searchTerm:this.searchInput.value,services:A,searchId:i})}))}onSearchReq(t){this.loader.isManualMode=t,t?this.loader.start():this.loader.finish(),this.searchRequesting=t}getMenuButtonFromSearchedButtons(t){return t?.map(i=>{const c=i;return c.buttonType="PaymentService",c.buttonKey=i?.serviceKey,c.caption=i?.name,c.enabled=!0,c})}needUseFieldsApi(t){return new RegExp("^ua\\d{1,27}$|^\\d{1,8}$","i").test(t)}getSearchedServices(t){return(0,C.T)(()=>this.needUseFieldsApi(t),this.bankTransferPaymentService.searchCompaniesAndButtons(t),this.getSearchMethod(t))}getSearchMethod(t){return this.menuButtonFilter?this.searchService.searchFilteredServices(t,this.menuButtonFilter,this.maxSearchResults):this.searchService.search(t,this.maxSearchResults)}updateBankTransferRoute(){var t=this;return(0,u.A)(function*(){const{bankTransferToCompany:i}=t.publicService.settings.defaultKeys;t.bankTransferRoutePrefix=yield t.menuService.getMenuButtons(i).pipe((0,y.T)(c=>c?.currentService?.url),(0,y.T)(c=>c?t.defaultMenuRoutePrefix+c:null),(0,k.W)(()=>(0,p.of)(null))).toPromise()})()}removeOverlay(){this.searchService.hideSearchOverlay()}pushNotFoundEvent(){this.isBrowser&&this.ecomService.pushNotFound("service_not_found_search")}}return(a=b).\u0275fac=function(t){return new(t||a)(e.rXU(e.Agw),e.rXU(d.S),e.rXU(oe.Ix),e.rXU(ie.Z),e.rXU(x.J),e.rXU(U.Z),e.rXU(S.u),e.rXU(h.k),e.rXU(I.c),e.rXU(f.t),e.rXU(m.Q),e.rXU(ne.K))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-search"]],viewQuery:function(t,i){if(1&t&&e.GBs(ae,5),2&t){let c;e.mGM(c=e.lsd())&&(i.searchField=c.first)}},inputs:{centered:"centered",isCatalogPage:"isCatalogPage",filterTemplateAvailable:"filterTemplateAvailable",hasFocusOnOpen:"hasFocusOnOpen",defaultMenuRoutePrefix:"defaultMenuRoutePrefix",needUpdateBankTransferRoute:"needUpdateBankTransferRoute",menuButtonFilter:"menuButtonFilter"},outputs:{onSearchFinished:"onSearchFinished",onClose:"onClose"},features:[e.Jv_([f.t])],decls:9,vars:23,consts:[["searchField",""],["location",""],[1,"search","small-16",3,"ngClass"],["class","search-form",3,"ngSubmit","clickOutside",4,"ngLet"],[1,"overlay"],[1,"search-form",3,"ngSubmit","clickOutside"],[1,"search__wrapper","flex-container"],[1,"search__input-container"],["type","search","id","search","name","search","autocomplete","off",1,"search__field","input",3,"click","focus","blur","keydown","formControl","placeholder"],["type","button","tabindex","-1","aria-label","search button",1,"search__submit",3,"click"],[1,"close-button-container"],[1,"search-location",3,"click","userLocation"],[1,"search_dropdown",3,"ngClass"],[1,"close-button-container",3,"click"],["type","button",1,"custom-close-button"],[1,"search_dropdown__suggest","cust-scrollbar"],[1,"search_dropdown-row","relative"],[3,"title","services","defaultMenuRoutePrefix"],[4,"ngLet"],["cdkObserveContent","",1,"not-found-text",3,"debounce","innerHTML"],[1,"props-transfer-container","search_dropdown-text","flex-container",3,"routerLink","empty"],[1,"search_services-list","cust-scrollbar"],[1,"search_dropdown-row","relative",3,"click"],["type","button",1,"search_dropdown-text",3,"keydown","innerHtml"],[3,"closeSearch","keydown","title","services","defaultMenuRoutePrefix"],[1,"latest-service-container",3,"title","services","defaultMenuRoutePrefix"],[1,"search_dropdown-line"],[1,"latest-service-container",3,"closeSearch","keydown","title","services","defaultMenuRoutePrefix"],["cdkObserveContent","",1,"not-found-text",3,"cdkObserveContent","debounce","innerHTML"],[1,"props-transfer-container","search_dropdown-text","flex-container",3,"click","keydown","routerLink"],["src","https://cdn.easypay.ua/images/svg/requisites_icon.svg","alt","",1,"props-transfer-img"],[1,"props-transfer-text"],["type","button",1,"search_dropdown-text","flex-container",3,"click","keydown","routerLink"],[1,"search_service_logo",3,"icon","alt"],[1,"truncate",3,"title"],[1,"overlay",3,"click","clickOutside"]],template:function(t,i){1&t&&(e.j41(0,"div",2),e.DNE(1,ye,12,11,"form",3),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.nVh(7,Te,1,4,"div",4),e.nI1(8,"async"),e.k0s()),2&t&&(e.Y8G("ngClass",e.eq3(15,ce,i.centered)),e.R7$(),e.Y8G("ngLet",e.s1E(17,le,e.bMT(2,3,i.isAuth$),e.bMT(3,5,i.isEmptySearch$),e.bMT(4,7,i.searchResultServices$),e.bMT(5,9,i.searchResultFields$),e.bMT(6,11,i.showOverlay$))),e.R7$(6),e.vxM(e.bMT(8,13,i.showOverlay$)?7:-1))},dependencies:[R.YU,Q.h,re.z,se.N,n.YN,n.qT,n.me,n.BC,n.cb,n.cV,n.X1,n.l_,T.b,H,F.B,X.y,g.Wk,G.h,te.Wv,R.Jj,J.v,G.D9,$.t,Z.$],styles:['.search{background:#fff;border-radius:5px}.search .search__submit{height:100%}.search .overlay{z-index:998}.search_dropdown{z-index:2;display:none;position:absolute;top:42px;width:100%;box-shadow:0 4px 12px #d6dceecf;border:1px solid #E2E2E2;border-top:none;border-radius:0 0 5px 5px;background-color:#fff;font-size:15px;font-weight:300;overflow:hidden;transition:height 1s;max-height:540px}.search_dropdown ul{margin-left:0;margin-bottom:0;list-style-type:none;max-height:200px}.search_dropdown ul.search_services-list{max-height:123px;padding-top:3px}.search_dropdown ul.search_services-list:empty{display:none}.search_dropdown .cust-scrollbar{overflow-y:auto;scrollbar-color:transparent transparent;scrollbar-width:thin;transition:scrollbar-color .2s}.search_dropdown .cust-scrollbar:hover,.search_dropdown .cust-scrollbar:focus-within{scrollbar-color:#e1e4e6 transparent}.search_dropdown-row{display:flex}.search_dropdown-text{display:flex;align-items:center;width:100%;padding:8px 16px;color:#4b4e56;text-align:left;line-height:1.3}.search_dropdown-text:hover,.search_dropdown-text:focus,.search_dropdown-text:active{background-color:#eef2f7;border-radius:2px;color:#4b4e56}.search_dropdown-text .search_service_logo{flex:0 0 auto;width:24px;height:24px;margin-right:10px}.search__submit{position:absolute;top:0;height:100%;width:50px;background:transparent url(https://cdn.easypay.ua/images/svg/search_btn.svg)
1no-repeat 50%;background-size:60%;transition:.3s;opacity:.8;filter:contrast(0)}.search__submit:hover,.search__submit:focus{filter:contrast(1);transition:.3s;opacity:1}.search__field{padding-left:50px;padding-right:40px;background-color:transparent;font-size:15px;height:40px;opacity:1;font-weight:400}.search__field:hover,.search__field:focus{box-shadow:0 2px 8px #00000029;background-color:transparent;border:none}.search__field:placeholder-shown{opacity:.5}.search__field:focus~.search_dropdown{display:block}.search__field::-webkit-search-cancel-button{-webkit-appearance:none}.search_dropdown_display{display:block!important}mark{display:inline;margin:0;padding:0;font-weight:600;background-color:transparent;color:inherit}.search__wrapper{border:1px solid #E2E2E2;border-radius:5px;box-shadow:0 0 12px #d6dceecf;background-color:#fff}.search__wrapper.active{border-radius:5px 5px 0 0}.search__input-container{width:100%;position:relative}.search__input-container .close-button-container{width:40px}.search__input-container .close-button-container .custom-close-button{height:100%;width:100%}.search__input-container .close-button-container .custom-close-button:after,.search__input-container .close-button-container .custom-close-button:before{cursor:pointer;content:"";width:19px;height:1.5px;background-color:#1f83fe;position:absolute;top:50%;left:50%;transform-origin:center}.search__input-container .close-button-container .custom-close-button:after{transform:translate(-50%,-50%) rotate(45deg)}.search__input-container .close-button-container .custom-close-button:before{transform:translate(-50%,-50%) rotate(-45deg)}.search_dropdown-line{height:1px;width:calc(100% - 32px);margin:0 16px -1px;background:#e2e2e2}.search-form{position:relative;padding:0;z-index:999}.not-found-text{margin-top:26px;margin-bottom:18px;font-weight:400;font-size:15px;text-align:center;color:#828282}.latest-service-container{display:block;margin:8px 0 16px}.props-transfer-container{padding:10px 16px;align-items:center;cursor:pointer}.props-transfer-container:hover,.props-transfer-container:focus{background-color:#eef2f7}.props-transfer-container.empty{margin:0 0 18px;justify-content:center}.props-transfer-container .props-transfer-img{margin-right:9px}.props-transfer-container .props-transfer-text{color:#000;font-weight:400;font-size:15px}.search-location{min-width:250px}@media (max-width: 639.8px){.search-location{min-width:50px}}@media only screen and (min-width: 1024px){.header_search .search-location{min-width:clamp(180px,50%,250px)}}\n'],encapsulation:2,data:{animation:[ee.I0]},changeDetection:0}),b})()},7530:(K,w,o)=>{o.d(w,{b:()=>O});var u=o(85240),e=o(99148),n=o(12481),P=o(26454),R=o(48503),y=o(19655),v=o(34722),D=o(59817),s=o(93683),E=o(34456),L=o(33589);const j=["toggleButton"],k=(x,U)=>({active:x,"hide-for-small-only":U}),M=x=>({"not-empty":x});function B(x,U){if(1&x){const S=n.RV6();n.j41(0,"span",11)(1,"button",13),n.bIt("click",function(){u.eBV(S);const f=n.XpG(2);return u.Njj(f.onClearSearch())}),n.k0s()()}}function C(x,U){if(1&x){const S=n.RV6();n.j41(0,"li",14)(1,"button",16),n.bIt("click",function(){const f=u.eBV(S).$implicit,I=n.XpG(3);return u.Njj(I.selectLocation(f))})("keydown",function(f){u.eBV(S);const I=n.XpG(3);return u.Njj(I.onArrowKeydown(f))}),n.EFF(2),n.k0s()()}if(2&x){const S=U.$implicit;n.R7$(),n.Y8G("title",S.label||S.name),n.R7$(),n.SpI(" ",S.label?S.label:S.name," ")}}function p(x,U){1&x&&(n.j41(0,"li",15)(1,"button",17),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&x&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"shared.search.not-found.empty-label")," "))}function _(x,U){if(1&x&&(n.j41(0,"ul",12),n.Z7z(1,C,3,2,"li",14,n.fX1),n.nVh(3,p,4,3,"li",15),n.k0s()),2&x){n.XpG();const S=n.r8f(7),h=n.XpG();n.R7$(),n.Dyx(S),n.R7$(2),n.vxM(h.isEmpty(S)?3:-1)}}function d(x,U){if(1&x){const S=n.RV6();n.j41(0,"div",7)(1,"div",8)(2,"input",9,1),n.nI1(4,"translate"),n.bIt("keydown",function(f){u.eBV(S);const I=n.XpG();return u.Njj(I.onSearchKeydown(f))}),n.k0s(),n.nrm(5,"button",10),n.nVh(6,B,2,0,"span",11),n.k0s(),n.SS7(7),n.nI1(8,"async"),n.nVh(9,_,4,1,"ul",12),n.k0s()}if(2&x){let S;
1const h=n.XpG();n.AVh("hide-for-small-only",h.mobileCollapse),n.R7$(),n.Y8G("ngClass",n.eq3(12,M,null==(S=h.form.get("koatuu"))?null:S.value)),n.R7$(),n.Y8G("placeholder",n.bMT(4,7,"shared.header.search.enter-city"))("formControl",h.form.get("koatuu")),n.R7$(4),n.vxM(h.form.get("koatuu").value?6:-1),n.R7$();const f=n.bH3(n.bMT(8,9,h.cities$));n.R7$(2),n.vxM(null!=f&&f.length?9:-1)}}const g=".cities-item";let O=(()=>{var x;class U extends P.d{constructor(){super(...arguments),this.mobileCollapse=!0,this.displayLocationSearch=!1,this.mobileResolution=640,this.dialog=(0,u.WQX)(D.h),this._cd=(0,u.WQX)(e.gRc),this._elementRef=(0,u.WQX)(n.aKT)}get cityName(){return this.userLocation?.settlement||this.userLocation?.name}selectLocation(h){super.selectLocation(h),this.displayLocationSearch=!1}onToggleLocationSearch(){this.isBrowser&&(window.innerWidth<this.mobileResolution?this.openDialog():(this.displayLocationSearch=!this.displayLocationSearch,this.displayLocationSearch&&this.focusLocationSearch()))}isEmpty(h){return this.form.get("koatuu")?.value&&0===h?.length&&!this.isLoading}onClearSearch(){this.locationSearch?.nativeElement?.focus(),this.form.get("koatuu").setValue(""),this.cities$.next([])}openDialog(){this.dialog.open(y.U,{panelClass:"location-dialog",data:{userLocation:this.userLocation}})}onSearchKeydown(h){this.isBrowser&&h?.keyCode===v.D.ArrowDown&&(h.preventDefault(),document.querySelectorAll(g)?.[0]?.focus()),h.keyCode===v.D.Esc&&(this.displayLocationSearch=!1,this.toggleButton.nativeElement.focus(),this.form.get("koatuu").reset(),this.cities$.next([]))}onArrowKeydown(h){if(this.isBrowser&&h){if(h.keyCode===v.D.ArrowDown||h.keyCode===v.D.ArrowUp){h.preventDefault();const f=h.target,I=document.querySelectorAll(g),m=Array.from(I);let T=m?.indexOf(f);if(-1===T)return;const $=h.keyCode===v.D.ArrowUp?m[--T]:m[++T];$?$?.focus():this.locationSearch.nativeElement?.focus()}h.keyCode===v.D.Esc&&this.locationSearch.nativeElement?.focus()}}onBlur(h){if(!this.isBrowser)return;const f=this._elementRef.nativeElement?.contains(h);setTimeout(()=>{const m=this._elementRef.nativeElement?.contains(document.activeElement);!f&&!m&&(this.displayLocationSearch=!1),this._cd.markForCheck()},100)}}return(x=U).\u0275fac=(()=>{let S;return function(f){return(S||(S=n.xGo(x)))(f||x)}})(),x.\u0275cmp=n.VBU({type:x,selectors:[["app-location"]],viewQuery:function(h,f){if(1&h&&n.GBs(j,5),2&h){let I;n.mGM(I=n.lsd())&&(f.toggleButton=I.first)}},hostBindings:function(h,f){1&h&&n.bIt("focusout",function(m){return f.onBlur(m.relatedTarget)})},inputs:{userLocation:"userLocation",mobileCollapse:"mobileCollapse"},features:[n.Vt3],decls:9,vars:16,consts:[["toggleButton",""],["locationSearch",""],["type","button",1,"location-container","flex-container",3,"click","matTooltip","matTooltipTouchGestures"],["src","https://cdn.easypay.ua/images/svg/location_icon.svg","alt","location",1,"location-icon"],[1,"location-text","truncate","hide-for-small-only"],["src","https://cdn.easypay.ua/images/svg/category-arrow.svg","alt","arrow",1,"location-arrow",3,"ngClass"],[1,"header_region-inner","text-left",3,"hide-for-small-only"],[1,"header_region-inner","text-left"],[1,"regions",3,"ngClass"],["type","search","id","search","name","search","autocomplete","off",1,"search__field","input",3,"keydown","placeholder","formControl"],["type","button","tabindex","-1","aria-label","search button",1,"button","search__submit"],[1,"close-button-container"],[1,"location-dropdown"],["type","button",1,"custom-close-button",3,"click"],[1,"cities-list","flex-dir-column"],[1,"regions-list"],[1,"cities-item",3,"click","keydown","title"],[1,"not-found-item","regions-list__item"]],template:function(h,f){if(1&h){const I=n.RV6();n.j41(0,"button",2,0),n.nI1(2,"translate"),n.bIt("click",function(){return u.eBV(I),u.Njj(f.onToggleLocationSearch())}),n.nrm(3,"img",3),n.j41(4,"span",4),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.nrm(7,"img",5),n.k0s(),n.nVh(8,d,10,14,"div",6)}2&h&&(n.AVh("active",f.displayLocationSearch),n.Y8G("matTooltip",n.bMT(2,9,"location.tooltip"))("matTooltipTouchGestures","on"),n.R7$(4),n.AVh("hide-for-small-only",f.mobileCollapse),n.R7$(),n.Sp
1I(" ",n.bMT(6,11,f.cityName||"shared.header.search.select-city")," "),n.R7$(2),n.Y8G("ngClass",n.l_i(13,k,f.displayLocationSearch,f.mobileCollapse)),n.R7$(),n.vxM(f.displayLocationSearch?8:-1))},dependencies:[s.YU,E.YN,E.me,E.BC,E.X1,E.l_,D.l,L.h,L.e,s.Jj,R.D9],styles:['.ng-placeholder{text-overflow:ellipsis;overflow:hidden}.header_region-inner{position:absolute;z-index:2;width:251px;background:#fff;border:1px solid #D4DDE3;border-radius:0 0 5px 5px}.header_region-inner .ng-select-header-search{height:32px;padding-left:32px;border-radius:0}.header_region-inner .ng-select-header-search::placeholder{font-size:13px}.header_region-inner .ng-option-label,.header_region-inner .ng-option{line-height:1.2}.cities-list{display:flex;justify-content:space-between}.cities-list .cities-item{cursor:pointer;padding:10px 8px;color:#4b4e56;font-size:16px;font-weight:400;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cities-list .cities-item.active{color:#1f83fe}.cities-list .cities-item:hover,.cities-list .cities-item:focus{background:#eef2f7}@media only screen and (max-width: 1023.8px){.cities-list{flex-direction:column}}.region,.region.ng-dropdown-panel{position:relative;line-height:0;background-color:transparent}.regions{overflow:hidden;border-radius:6px;background:#fff;text-align:left;z-index:1}@media (max-width: 639.8px){.regions{width:90%}}.regions.not-empty .search__field{border-bottom-right-radius:0;border-bottom-left-radius:0;font-size:15px;font-weight:400;color:#202020}.regions .search__submit{position:absolute;top:13px;left:12px;height:18px;width:18px;background:transparent url(https://cdn.easypay.ua/images/svg/search.svg) no-repeat;opacity:.7;transition:.3s;cursor:default}.regions .search__field{padding-left:36px;background-color:#fff;border-radius:5px;height:44px;border:1px solid #EBEFF3;font-style:normal;font-weight:300;font-size:13px;line-height:15px;color:#4b4e56}.regions .search__field:placeholder-shown{opacity:.8}.regions .search__field::-webkit-search-cancel-button{-webkit-appearance:none}.regions-list__item{line-height:24px;width:100%;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-weight:400}.location-dropdown{position:absolute;top:43px;left:-1px;border:1px solid #D4DDE3;overflow:auto;background:#fff;width:251px;max-height:305px}.location-dropdown .not-found-item{font-size:15px}.location-container{height:100%;width:100%;align-items:center;padding:0 20px;border-left:1px solid #D4DDE3;cursor:pointer}.location-container.active,.location-container:focus{box-shadow:0 2px 8px #00000029}.location-container .location-icon{margin-right:16px}.location-container .location-arrow{margin-left:auto;transform:rotate(-180deg);transition:.4s ease-in-out}.location-container .location-arrow.active{transform:rotate(0)}.location-container .location-text{font-weight:400;font-size:13px;text-transform:uppercase;color:#4b4e56}@media (max-width: 639.8px){.location-container{padding:0;justify-content:center}.location-container .location-icon{margin-right:0}}.header_region-inner .close-button-container{top:9px;right:30px;width:0;height:0}.header_region-inner .close-button-container .custom-close-button{width:30px;height:30px;cursor:pointer}.header_region-inner .close-button-container .custom-close-button:after,.header_region-inner .close-button-container .custom-close-button:before{content:"";width:19px;height:1.5px;background-color:#1f83fe;position:absolute;pointer-events:none}.header_region-inner .close-button-container .custom-close-button:after{transform:translate(-10px) rotate(45deg)}.header_region-inner .close-button-container .custom-close-button:before{transform:translate(-10px) rotate(-45deg)}.header_region-inner .close-button-container .custom-close-button:focus:after,.header_region-inner .close-button-container .custom-close-button:focus:before,.header_region-inner .close-button-container .custom-close-button:hover:after,.header_region-inner .close-button-container .custom-close-button:hover:before{background-color:#000}app-location.t-cards_location .location-container{min-height:40px;border:1px solid #E2E2E2;border-radius:5px;padding:0 16px}@media (max-width: 639.8px){app-location.t-cards_location .location-container{padding:0 16px!important;justify-content:flex-start}}app-location.t-cards_location .header_region-inner{width:100%}app-location.t-cards_location .regions .search__field{padding-right:38px}app-location.t-cards_location .close-button-container{width:30px;height:30px;right:8px}app-location.t-cards_location .location-container .location-icon{margin-right:16px}\n'],encapsulation:2,changeDetection:0}),U})()},19655:(K,w,o)=>{o.d(w,{U:()=>B});var u=o(85240),e=o(59817),n=o(26454),P=o(70271),R=o(48503),y=o(93683),v=o(34456),D=o(97887),s=o(1248
11);const E=(C,p)=>({cities:C,bigCities:p}),L=C=>({active:C});function j(C,p){if(1&C){const _=s.RV6();s.j41(0,"li")(1,"button",10),s.bIt("click",function(){const g=u.eBV(_).$implicit,O=s.XpG(2);return u.Njj(O.selectLocation(g))}),s.EFF(2),s.k0s()()}if(2&C){const _=p.$implicit,d=s.XpG(2);s.R7$(),s.Y8G("ngClass",s.eq3(2,L,(null==_?null:_.koatuuId)===(null==d.data||null==d.data.userLocation?null:d.data.userLocation.koatuuId))),s.R7$(),s.SpI(" ",_.label||_.name," ")}}function k(C,p){1&C&&(s.j41(0,"div",9),s.EFF(1),s.nI1(2,"translate"),s.k0s()),2&C&&(s.R7$(),s.SpI(" ",s.bMT(2,1,"shared.search.not-found.empty-label")," "))}function M(C,p){if(1&C&&(s.j41(0,"ul",8),s.Z7z(1,j,3,4,"li",null,s.fX1),s.nVh(3,k,3,3,"div",9),s.k0s()),2&C){let _,d;const g=p.ngLet,O=s.XpG();s.R7$(),s.Dyx(null!=(_=O.form.get("koatuu"))&&_.value?g.cities:g.bigCities),s.R7$(2),s.vxM(null!=(d=O.form.get("koatuu"))&&d.value&&0===(null==g.cities?null:g.cities.length)&&!O.isLoading?3:-1)}}let B=(()=>{var C;class p extends n.d{constructor(){super(...arguments),this.data=(0,u.WQX)(e.e),this.dialogRef=(0,u.WQX)(e.k),this.bigCitiesList$=this.profileService.getBigCities().pipe((0,P.T)(d=>d?.cities||[]))}selectLocation(d){super.selectLocation(d),this.close()}close(){this.dialogRef.close()}}return(C=p).\u0275fac=(()=>{let _;return function(g){return(_||(_=s.xGo(C)))(g||C)}})(),C.\u0275cmp=s.VBU({type:C,selectors:[["app-user-location"]],features:[s.Vt3],decls:13,vars:15,consts:[["locationSearch",""],[1,"mat-typography"],[1,"location-dialog_close"],[1,"location-dialog_close-btn",3,"click"],[1,"location-dialog_search","relative"],["type","search","id","search-modal","name","search","autocomplete","off",1,"search__field","input",3,"placeholder","formControl"],["type","button","tabindex","-1","aria-label","search button",1,"button","search__submit"],["class","regions-list",4,"ngLet"],[1,"regions-list"],[1,"regions-list__item"],["type","button",1,"regions-list__item",3,"click","ngClass"]],template:function(d,g){if(1&d){const O=s.RV6();s.j41(0,"mat-dialog-content",1)(1,"div",2)(2,"button",3),s.bIt("click",function(){return u.eBV(O),u.Njj(g.close())}),s.EFF(3),s.nI1(4,"translate"),s.k0s()(),s.j41(5,"div",4),s.nrm(6,"input",5,0),s.nI1(8,"translate"),s.nrm(9,"button",6),s.k0s(),s.DNE(10,M,4,1,"ul",7),s.nI1(11,"async"),s.nI1(12,"async"),s.k0s()}2&d&&(s.R7$(3),s.SpI(" ",s.bMT(4,4,"shared.header.search.cancel")," "),s.R7$(3),s.Y8G("placeholder",s.bMT(8,6,"shared.header.search.enter-city"))("formControl",g.form.get("koatuu")),s.R7$(4),s.Y8G("ngLet",s.l_i(12,E,s.bMT(11,8,g.cities$),s.bMT(12,10,g.bigCitiesList$))))},dependencies:[e.c,y.YU,v.X1,v.me,v.BC,v.l_,D.N,R.D9,y.Jj],styles:[".location-dialog.cdk-overlay-pane{height:100vh;width:100vw;max-width:100vw!important;z-index:2000}.location-dialog .mat-mdc-dialog-container{background:#fff;border-radius:0;overflow:hidden}.location-dialog .mat-mdc-dialog-container .mat-mdc-dialog-content{max-height:100vh;height:100vh;padding:0 10px 150px}.location-dialog_close{display:flex;flex-direction:row;justify-content:flex-end;width:100%;margin:24px 0!important}.location-dialog_close-btn{color:#1f83fe;font-size:15px;font-weight:400}.location-dialog_search{box-shadow:0 0 12px #d6dceecf;margin:0 0 12px}.location-dialog_search .search__submit{position:absolute;top:0;height:100%;width:36px;background:transparent url(https://cdn.easypay.ua/images/svg/search.svg) no-repeat 60% 50%;background-size:50%;opacity:.6;transition:.3s;cursor:default;left:0}.location-dialog_search .search__field{padding-left:36px;background-color:#fff;border-radius:5px;height:48px;border:1px solid #ebeff3;box-shadow:0 0 10px #0000000d;font-style:normal;font-weight:400;font-size:15px;line-height:15px;color:#202020}.location-dialog_search .search__field::-webkit-search-cancel-button{-webkit-appearance:none}.location-dialog .regions-list{display:flex;padding:0;flex-direction:column;align-items:flex-start;justify-content:center;width:100%}.location-dialog .regions-list li{width:100%}.location-dialog .regions-list__item{cursor:pointer;width:100%;font-style:normal;font-weight:400;font-size:16px;line-height:15px;color:#4b4e56;padding:9px 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
1.location-dialog .regions-list__item.active{color:#0073ff}\n"],encapsulation:2}),p})()},26454:(K,w,o)=>{o.d(w,{d:()=>S});var u=o(12481),e=o(20079),n=o(11249),P=o(52575),R=o(91817),y=o(63037),v=o(51567),D=o(36647),s=o(98764),E=o(70271),L=o(61318),j=o(89475),k=o(75797),M=o(59452),B=o(26368),C=o(1522),p=o(82982),_=o(80318),d=o(3166),g=o(68010),O=o(34456),x=o(48503);const U=["locationSearch"];let S=(()=>{var h;class f extends B.I{constructor(m,T,$,F,G,l,X,z){super(m),this.profileService=T,this.formBuilder=$,this.translateService=F,this.userDataService=G,this.sessionStateService=l,this.userLocationService=X,this.authService=z,this.alive=!0,this.cities$=new k.t([]),this.isLoading=!1}ngOnInit(){this.initForm(),this.initFormErrors(),this.getBaseValidationMessages(),this.isBrowser&&this.createSearchSubscription()}ngOnDestroy(){this.alive=!1}initForm(){this.form=this.formBuilder.group({koatuu:[""]})}initFormErrors(){this.formErrors={koatuu:new C.b}}getBaseValidationMessages(){this.translateService.get("validate-messages.required").subscribe(m=>{this.setBaseValidationMessages(m,"required")})}createSearchSubscription(){this.form.get("koatuu").valueChanges.pipe((0,n.v)(()=>this.alive),(0,P.B)(400),(0,R.F)(),(0,y.Z)(""),(0,v.p)(m=>m?.length>=1),(0,D.n)(m=>this.filter(m)),(0,s.M)(this.cities$)).subscribe()}filter(m){return this.isLoading=!0,this.profileService.searchCitiesByMask(m).pipe((0,E.T)(T=>this.mapCities(T)),(0,L.W)(()=>(0,M.of)([])),(0,j.j)(()=>this.isLoading=!1))}mapCities(m){return m?.cities?.map(T=>(T.label=this.getKoatuuLabel(T),T))??[]}getKoatuuLabel(m){const{settlement:T,region:$,district:F,name:G}=m;return T&&$&&F?`${T} (${$} - ${F})`:T&&$?`${T} (${$})`:T&&F?`${T} (${F})`:T||G}selectLocation(m){m?.koatuuId&&(this.sessionStateService.setUserLocation(m),this.userDataService.announceUserLocationChanged(m),this.userDataService.announceNewUserLocation(),this.form.get("koatuu").reset(),this.cities$.next([]),this.authService.isLoggedIn()&&this.userLocationService.setUserKoatuu(m))}focusLocationSearch(){this.isBrowser&&setTimeout(()=>{this.locationSearch?.nativeElement?.focus()},150)}}return(h=f).\u0275fac=function(m){return new(m||h)(u.rXU(u.Agw),u.rXU(e.p),u.rXU(O.ze),u.rXU(x.c$),u.rXU(p.J),u.rXU(_.v),u.rXU(d.G),u.rXU(g.u))},h.\u0275dir=u.FsC({type:h,viewQuery:function(m,T){if(1&m&&u.GBs(U,5),2&m){let $;u.mGM($=u.lsd())&&(T.locationSearch=$.first)}},features:[u.Vt3]}),f})()},47697:(K,w,o)=>{o.d(w,{T:()=>e});var u=o(137);function e(n,P,R){return(0,u.v)(()=>n()?P:R)}},68071:(K,w,o)=>{o.d(w,{t:()=>y});var u=o(9496),e=o(38708),n=o(12481),P=o(99148);let y=(()=>{var v;class D{constructor(E,L){this.localize=E,this._ref=L,this.value="",this.subscription=this.localize.routerEvents.subscribe(()=>{this.transform(this.lastKey)})}ngOnDestroy(){this.subscription?.unsubscribe()}transform(E){if(!E||0===E.length||!this.localize.parser.currentLang)return E;if((0,e.aI)(E,this.lastKey)&&(0,e.aI)(this.lastLanguage,this.localize.parser.currentLang))return this.value;this.lastKey=E,this.lastLanguage=this.localize.parser.currentLang,this.value=this.localize.translateRoute(E),this.lastKey=E;const L=this._ref._view;return L&&128&L.state||setTimeout(()=>{this._ref.detectChanges()},0),this.value}}return(v=D).\u0275fac=function(E){return new(E||v)(n.rXU(u.Q,16),n.rXU(P.gRc,16))},v.\u0275pipe=n.EJ8({name:"localize",type:v,pure:!1}),D})()},83292:(K,w,o)=>{o.d(w,{v:()=>e});var u=o(12481);let e=(()=>{var n;class P{transform(y,v,D=!0){if(!v)return y;const s=D?new RegExp(v,"gi"):v;return y.replace(s,"<mark>$&</mark>").replaceAll(" "," ")}}return(n=P).\u0275fac=function(y){return new(y||n)},n.\u0275pipe=u.EJ8({name:"highlight",type:n,pure:!0}),P})()},92854:(K,w,o)=>{o.d(w,{S:()=>k});var u=o(7488),e=o(63855),n=o(75797),P=o(14876),R=o(61318),y=o(2435),v=o(19838),D=o(81235),s=o(9496),E=o(91318),L=o(85240),j=o(48503);let k=(()=>{var M;class B extends u.F{constructor(p,_,d,g,O){super(),this.partnerKey=p,this.handler=_,this.localizeRouterService=d,this.translateService=g,this.cookieService=O,this.currentSearchTerm=new n.t(""),this.currentSearchId=new n.t(""),this.showOverlay$=new n.t(!1),this.http=new e.Qq(_)}bindUrl(p="",_=this.appConfigService.settings.SEARCH_API){return this.createUrlByParts(_,p)}getSearchHeaders(){let p=new e.Lr;const _=this.localizeRouterService.parser.currentLang?String(this.translateService.currentLang):v.D5.DEFAULT_LANGUAGE,d=this.cookieService.getObject(D.c.USER_LOCATION),g=d?.koatuuId?d.koatuuId:null;return p=p.append("Content-Type","application/json"),p=p.append("Locale",String(_)),p=p.append("PartnerKey",String(this.partnerKey)),g&&(p=p.append("Koatuu",String(g))),p}getSearchSuggest(p,_=30){let d=new e.Nl;return d=d.append("input",p),d=d.append("count",String(_)),this.http.get(this.bindUrl("/catalog/suggests/v2"),{headers:this.getSearchHeaders(),params:d}).pipe((0,R.W)(this.handleError))}sendSelectedSuggestStatistic(p){return this.http.post(this.bindUrl("/catalog/search/v2/collect"),p,{headers:this.getSearchHeaders()}).pipe((0,R.W)(this.handleError))}sendSelectedButtonStatistic(p){return this.http.post(this.bindUrl("/catalog/search/v2/collect/clicked"),p,{headers:this.getSearchHeaders()}).pipe((0,R.W)(this.handleError))}searchFilteredServices(p,_="GroupTemplate",d){let g=new e.Nl;return g=g.append("input",p),d&&(g=g.append("count",String(d))),this.http.get(this.bindUrl(`/catalog/search/v2/filtered/${_}`),{headers:this.getSearchHeaders(),params:g}).pipe((0,R.W)(this.handleError))}search(p,_){let d=new e.Nl;return d=d.append("input",p),_&&(d=d.append("count",String(_))),this.http.get(this.bindUrl("/catalog/search/v2"),{headers:this.getSearchHeaders(),params:d}).pipe((0,R.W)(this.handleError))}showSearchOverlay(){this.showOverlay$.next(!0),this.overlayTimer?.unsubscribe(),this.overlayTimer=(0,P.O)(3e4).pipe((0,y.$)()).subscribe(()=>{this.showOverlay$.next(!1)})}hideSearchOverlay(){this.overlayTimer?.unsubscribe(),this.showOverlay$.next(!1)}}return(M=B).\u0275fac=function(p){return new(p||M)(L.KVO(v.zl,8),L.KVO(e.JV),L.KVO(s.Q),L.KVO(j.c$),L.KVO(E.O))},M.\u0275prov=L.jDH({token:M,factory:M.\u0275fac,providedIn:"root"}),B})()}}]); 2//# sourceMappingURL=2056.d55e1ff771931340.js.map
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.