1import{a as at}from"./chunk-GLA2QRLN.js";import{a as Z}from"./chunk-V2PBGWJR.js";import{a as ct}from"./chunk-ULHTNJNR.js";import{a as Y}from"./chunk-NT4ZVUZT.js";import{a as tt,b as nt}from"./chunk-LDJ26IXT.js";import{a as K,b as V}from"./chunk-FPCDYMAO.js";import{a as q,b as et}from"./chunk-JBTJKVR6.js";import"./chunk-IJCHLI3L.js";import{a as it,b as ot}from"./chunk-PV5OGWUW.js";import"./chunk-W26IJBRQ.js";import"./chunk-ZGTAHPCL.js";import{a as Q}from"./chunk-53DHRQZQ.js";import"./chunk-WH4IAKI5.js";import"./chunk-CWRK4PKB.js";import"./chunk-BN7PI3ME.js";import"./chunk-7WK2NVW6.js";import{a as X,b as U}from"./chunk-43BHIQUI.js";import"./chunk-B5X575YF.js";import{c as S}from"./chunk-U4Q5UK23.js";import{f as J}from"./chunk-G6B23RCS.js";import{Ab as R,Bb as d,Ca as o,Da as C,Db as P,Ec as G,Lb as D,N as H,Nb as E,Od as b,Pa as g,Q as w,Qd as $,Ra as c,Rd as W,Sd as I,Tb as m,Ub as l,V as h,Va as B,Z as u,Zb as z,_ as f,bb as r,cb as s,d as O,db as p,j as T,lb as L,o as F,qb as M,rc as y,sc as x,t as N,y as A,yc as v}from"./chunk-DBLKG7RC.js";import"./chunk-VEVAMKXI.js";var rt=(n,t)=>[n,t];function Ct(n,t){if(n&1&&(r(0,"li",10)(1,"a",11),m(2,"async"),d(3),s()()),n&2){let e,i=t.$implicit,a=M(3);o(),c("routerLink",E(4,rt,(e=l(2,2,a.cityService.activeCitySubject$))==null?null:e.sid,i==null?null:i.sid)),o(2),P(" ",i.title," ");}}function Mt(n,t){if(n&1&&(r(0,"ul",8),g(1,Ct,4,7,"li",9),s()),n&2){let e=M().$implicit;o(),c("ngForOf",e.children);}}function Ot(n,t){if(n&1&&(r(0,"li",3)(1,"a",4),m(2,"async"),p(3,"svg-icon-sprite",5),r(4,"span",6),d(5),s()(),g(6,Mt,2,1,"ul",7),s()),n&2){let e,i=t.$implicit,a=M();o(),B(i==null?null:i.sid),c("routerLink",E(11,rt,(e=l(2,9,a.cityService.activeCitySubject$))==null?null:e.sid,i==null?null:i.sid)),o(2),c("src","mp-category-"+(i==null?null:i.sid)+"-icon")("classes","category-item-link-icon")("height","24")("width","30"),o(2),P(" ",i.title," "),o(),c("ngIf",i.children);}}var st=(()=>{let t=class t{constructor(i){this.cityService=i;}ngOnInit(){}};t.ɵfac=function(a){return new(a||t)(C(S));},t.ɵcmp=u({type:t,selectors:[["app-merchant-categories"]],inputs:{categories:"categories"},decls:3,vars:1,consts:[[1,"categories-container"],[1,"categories-list"],["class","category-item",4,"ngFor","ngForOf"],[1,"category-item"],[1,"category-item-link",3,"routerLink"],[3,"src","classes","height","width"],[1,"category-item-link-title"],["class","subcategories-list container",4,"ngIf"],[1,"subcategories-list","container"],["class","subcategory__item",4,"ngFor","ngForOf"],[1,"subcategory__item"],[1,"subcategory__item-link",3,"routerLink"]],template:function(a,mt){a&1&&(r(0,"nav",0)(1,"ul",1),g(2,Ot,7,14,"li",2),s()()),a&2&&(o(2),c("ngForOf",mt.categories));},dependencies:[y,x,b,X,v],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;list-style:none;padding:0;margin:0;position:relative}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:12.5%;list-style:none;cursor:pointer;transition:all .1s linear}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link[_ngcontent-%COMP%]{color:#000;font-size:14px;padding:40px 10px;width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link[_ngcontent-%COMP%]:after{content:"";position:absolute;height:50px;width:1px;background:#e3e3e3;top:40%;right:0}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link-title[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link-title[_ngcontent-%COMP%] .category-item-link-icon{color:#000}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .subcategories-list[_ngcontent-%COMP%]{display:none;width:calc(100% + 2px);padding:15px 0;margin:-1px;border:1px solid #e3e3e3;background:#fff;position:absolute;top:100%;left:0;box-shadow:0 20px 15px #00000080;z-index:1;column-count:3;list-style:none}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .subcategories-list[_ngcontent-%COMP%] .subcategory__item[_ngcontent-%COMP%]{list-style:none;border-left:1px solid #e3e3e3;margin-left:-1px}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .subcategories-list[_ngcontent-%COMP%] .subcategory__item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;display:block;padding:8px 31px;font-size:14px}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .subcategories-list[_ngcontent-%COMP%] .subcategory__item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#89ba21}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover{border-right:none;box-shadow:0 0 0 1px #e3e3e3}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover:after{background:transparent}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%]{color:#89ba21}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%] .category-item-link-icon{color:#89ba21}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .subcategories-list[_ngcontent-%COMP%]{display:block}@media (max-width: 768px){[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]{width:25%}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link[_ngcontent-%COMP%]{padding:10px;justify-content:start}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%] .category-item-link[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover{box-shadow:none}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%] .category-item-link-icon{color:#000}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%]:active{color:#89ba21}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .category-item-link[_ngcontent-%COMP%]:active .category-item-link-icon{color:#89ba21}[_nghost-%COMP%] .categories-container[_ngcontent-%COMP%] .categories-list[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]:hover .subcategories-list[_ngcontent-%COMP%]{display:none}}'],changeDetection:0});let n=t;return n;})();var Pt=()=>["/"];function ht(n,t){if(n&1&&(r(0,"section"),p(1,"app-merchant-categories",9),m(2,"async"),s()),n&2){let e=M();o(),c("categories",l(2,1,e.categoriesSubject$));}}function ut(n,t){if(n&1&&p(0,"app-banner-promo",10),n&2){let e=t.ngIf;c("bannerData",e)("container",!1)("height","auto")("width","100%");}}function ft(n,t){if(n&1&&(r(0,"li",15),p(1,"app-merchant-tile",16),s()),n&2){let e=t.$implicit;o(),c("merchant",e);}}function yt(n,t){if(n&1&&(r(0,"div",11)(1,"h1",12),d(2),m(3,"async"),s(),r(4,"ul",13),g(5,ft,2,1,"li",14),s()()),n&2){let e,i=t.ngIf,a=M();o(2),P(" ",(e=l(3,2,a.seoService.seoSubject$))==null?null:e.h1," "),o(3),c("ngForOf",i);}}function xt(n,t){if(n&1&&(r(0,"li",22),p(1,"app-campaign-tile",23),s()),n&2){let e=t.$implicit;o(),c("campaign",e)("size","small");}}function vt(n,t){if(n&1&&(r(0,"div",17)(1,"a",18)(2,"h2",19),L(3,1),s()(),r(4,"ul",20),g(5,xt,2,2,"li",21),s()()),n&2){let e=t.ngIf;o(),c("routerLink",D(2,Pt)),o(4),c("ngForOf",e);}}function bt(n,t){n&1&&(r(0,"div",24),p(1,"app-loading"),s());}var _,k=(_=class{constructor(t,e,i,a){this.cityService=t,this.markupService=e,this.seoService=i,this.api=a,this.merchantsSubject$=new O(null),this.campaignsSubject$=new O(null),this.categoriesSubject$=new O(null),this.bannerSubject$=new O(null);}ngOnInit(){this.cityService.activeCitySubject$.pipe(A(t=>!!t),H(t=>
1N([this.getMerchants$(t.id),this.getBanners$(t.id),this.getTopCampaignsWeek$(t.id)])),I(this)).subscribe(),this.getMerchantCategories();}ngOnDestroy(){this.markupService.delete(K.Catalog);}getMerchants$(t){return this.api.getMerchants$({fields:"id,subdomain,type,use_subdomain,images,header_image_file_name,logo_file_name,rating,price,visible_comments_amount,name,active_deals,active_promocodes,addresses,cities,logo_img,friendly_id",city_id:t,per_page:20}).pipe(F(i=>(this.merchantsSubject$.next(i.body),this.markupService.merchantPageCatalog(i.body),i.body)));}getBanners$(t){return this.api.getPageBanners$(t,"web-catalog").pipe(w(e=>{this.bannerSubject$.next(e[e.length-1]);}));}getTopCampaignsWeek$(t){return this.api.getTopCampaignsWeek$(t,12).pipe(w(e=>this.campaignsSubject$.next(e)));}getMerchantCategories(){this.api.getMerchantCategories$("id,title,parent_id,position,sid,icon_url,level,active_count,children").pipe(I(this)).subscribe(e=>this.categoriesSubject$.next(e));}},_.ɵfac=function(e){return new(e||_)(C(S),C(V),C(Q),C(J));},_.ɵcmp=u({type:_,selectors:[["app-merchant-home"]],decls:14,vars:14,consts:()=>{let t;return t="\u0422\u043E\u043F \u0430\u043A\u0446\u0438\u0439",[["loader",""],t,[1,"container"],[3,"type"],[4,"ngIf"],[3,"bannerData","container","height","width",4,"ngIf"],[1,"main-content"],["class","merchants-container",4,"ngIf","ngIfElse"],["class","campaigns-container",4,"ngIf"],[3,"categories"],[3,"bannerData","container","height","width"],[1,"merchants-container"],[1,"merchants-title"],[1,"merchants-list"],["class","merchants-list-item",4,"ngFor","ngForOf"],[1,"merchants-list-item"],["type","medium",3,"merchant"],[1,"campaigns-container"],[3,"routerLink"],[1,"campaigns-title"],[1,"campaigns-list"],["class","campaigns-list-item",4,"ngFor","ngForOf"],[1,"campaigns-list-item"],[3,"campaign","size"],[1,"loader"]];},template:function(e,i){if(e&1&&(r(0,"div",2)(1,"section"),p(2,"app-breadcrumbs",3),s(),g(3,ht,3,3,"section",4),m(4,"async"),g(5,ut,1,4,"app-banner-promo",5),m(6,"async"),r(7,"section",6),g(8,yt,6,4,"div",7),m(9,"async"),g(10,vt,6,3,"div",8),m(11,"async"),s()(),g(12,bt,2,0,"ng-template",null,0,z)),e&2){let a=R(13);o(2),c("type","merchants"),o(),c("ngIf",l(4,6,i.categoriesSubject$)),o(2),c("ngIf",l(6,8,i.bannerSubject$)),o(3),c("ngIf",l(9,10,i.merchantsSubject$))("ngIfElse",a),o(2),c("ngIf",l(11,12,i.campaignsSubject$));}},dependencies:[y,x,b,tt,Z,it,Y,q,st,v],styles:[".container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{padding-bottom:40px}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-title[_ngcontent-%COMP%]{font-weight:500;font-size:35px;line-height:1em;text-transform:none;margin:40px 0}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%]{padding:0;display:flex;flex-wrap:wrap;margin:-10px;list-style:none}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%] .merchants-list-item[_ngcontent-%COMP%]{margin:10px;width:calc(20% - 20px)}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-title[_ngcontent-%COMP%]{font-weight:500;font-size:35px;line-height:1em;text-transform:none;color:#89ba21;margin:20px 0}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-title[_ngcontent-%COMP%]:hover{color:#9bd024;cursor:pointer;text-decoration:underline}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%]{padding:0;display:flex;flex-wrap:wrap;margin:-10px;list-style:none}.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%] .campaigns-list-item[_ngcontent-%COMP%]{margin:10px;width:calc(20% - 20px)}.loader[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:200px}@media (max-width: 1200px){.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%] .merchants-list-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%] .campaigns-list-item[_ngcontent-%COMP%]{width:calc(25% - 20px)}}@media (max-width: 992px){.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%] .merchants-list-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%] .campaigns-list-item[_ngcontent-%COMP%]{width:calc(33.3% - 20px)}}@media (max-width: 768px){.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%] .merchants-list-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%] .campaigns-list-item[_ngcontent-%COMP%]{width:calc(50% - 20px)}}@media (max-width: 576px){.container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .merchants-container[_ngcontent-%COMP%] .merchants-list[_ngcontent-%COMP%] .merchants-list-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .campaigns-container[_ngcontent-%COMP%] .campaigns-list[_ngcontent-%COMP%] .campaigns-list-item[_ngcontent-%COMP%]{width:calc(100% - 20px)}}"]}),_);k=T([W()],k);var St=[{path:"",component:k}],gt=(()=>{let t=class t{};t.ɵfac=function(a){return new(a||t)();},t.ɵmod=f({type:t}),t.ɵinj=h({imports:[$.forChild(St),$]});let n=t;return n;})();var on=(()=>{let t=class t{};t.ɵfac=function(a){return new(a||t)();},t.ɵmod=f({type:t}),t.ɵinj=h({imports:[G,gt,nt,at,ot,ct,U,et]});let n=t;return n;})();export{on as MerchantHomeModule};/**i18n:b750e55462c7a7eef6f9c2b484202a05e58c5d3d72de7790781de51784044eb5*/
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.