1"use strict";(self.webpackChunkmp_client=self.webpackChunkmp_client||[]).push([[97],{31004:(y,T,e)=>{e.d(T,{j:()=>h});var o,t=e(15215),d=e(60566),_=e(31794),s=e(41360);let h=((o=class extends _.Y7{constructor(){super(_.Y7.INITIAL_ENTITY_STATE)}}).\u0275fac=function(u){return new(u||o)},o.\u0275prov=s.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),o);h=(0,t.Cg)([(0,d.g7)({name:"photos",resettable:!0})],h)},32245:(y,T,e)=>{e.d(T,{L:()=>n});var t=e(31794);const d={lang:"ru",data:{COLLECTION_LIMIT_DIALOG:{TITLE:"\u0412\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438",DESCRIPTION:"\u0412 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c {count} \u043d\u0435\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043a. \u041e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043a \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043d\u0435\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445.",ACCEPT:"\u041f\u043e\u043d\u044f\u0442\u043d\u043e"}}};var _=e(51671),s=e(73955),o=e(41360);e(48353);const p=r=>({count:r});function u(r,g){1&r&&(o.EFF(0),o.nI1(1,"translate")),2&r&&o.SpI(" ",o.bMT(1,1,"COLLECTION_LIMIT_DIALOG.TITLE"),"\n")}function O(r,g){if(1&r&&(o.EFF(0),o.nI1(1,"translate")),2&r){const a=o.XpG();o.SpI(" ",o.i5U(1,1,"COLLECTION_LIMIT_DIALOG.DESCRIPTION",o.eq3(4,p,a.data.limit)),"\n")}}let n=(()=>{var r;class g{constructor(v,I,W){this.data=I,this.dialog=W,v.load(d)}}return(r=g).\u0275fac=function(v){return new(v||r)(o.rXU(t.iH),o.rXU(t.Xj.DIALOG_DATA),o.rXU(t.Xj))},r.\u0275cmp=o.VBU({type:r,selectors:[["mp-collection-limit-dialog"]],decls:6,vars:5,consts:[["titleTemplate",""],["contentTemplate",""],[3,"accepted","close","acceptLabel","titleTemplate","contentTemplate"]],template:function(v,I){if(1&v){const W=o.RV6();o.j41(0,"mpb-alert-dialog",2),o.nI1(1,"translate"),o.bIt("accepted",function(){return o.eBV(W),o.Njj(I.dialog.close())})("close",function(){return o.eBV(W),o.Njj(I.dialog.close())}),o.k0s(),o.DNE(2,u,2,3,"ng-template",null,0,o.C5r)(4,O,2,6,"ng-template",null,1,o.C5r)}if(2&v){const W=o.sdS(3),C=o.sdS(5);o.Y8G("acceptLabel",o.bMT(1,3,"COLLECTION_LIMIT_DIALOG.ACCEPT"))("titleTemplate",W)("contentTemplate",C)}},dependencies:[t.nI,_.jO,_.y4,s.h,s.D9,t.Py],encapsulation:2,changeDetection:0}),g})()},35997:(y,T,e)=>{e.d(T,{W:()=>p});var t=e(31794),d=e(88141),_=e(96354),s=e(41360),o=e(96281),h=e(47151);let p=(()=>{var u;class O{constructor(r,g,a){this.api=r,this.store=g,this.logger=a}reset(){this.store.reset()}getAvailableCollections(r){return this.api.getAvailableCollections(r).pipe((0,t.M3)(this.store),(0,t.Ek)(this.store,this.logger),(0,d.M)(g=>this.store.set(g)),(0,_.T)(()=>{}))}createCollection(r,g){return this.api.createCollection({name:r,productIds:g}).pipe((0,t.M3)(this.store),(0,t.Ek)(this.store,this.logger),(0,_.T)(a=>a.id))}setProductToCollection(r,g){this.store.update(r,{containsProduct:!0,defaultCoverImageId:g})}}return(u=O).\u0275fac=function(r){return new(r||u)(s.KVO(o.D),s.KVO(h.W),s.KVO(t.gP))},u.\u0275prov=s.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),O})()},38014:(y,T,e)=>{e.d(T,{z:()=>O});var t=e(88141),d=e(25558),_=e(7673),s=e(96354),o=e(41360),h=e(9480),p=e(48529),u=e(31004);let O=(()=>{var n;class r{constructor(a,v,I){this.api=a,this.imageQuery=v,this.imageStore=I}getImageDetails(a){const v=a.filter(I=>!this.imageQuery.hasEntity(I));return 0===v.length?this.imageQuery.selectMany(a):this.api.getImageDetailsV1(v).pipe((0,t.M)(I=>this.imageStore.add(I)),(0,d.n)(()=>this.imageQuery.selectMany(a)))}uploadAvatarPhoto(a,v){return this.api.uploadAvatarPhoto(a,v)}uploadBannerPhoto(a,v,I){return this.api.uploadBannerPhoto(a,v,I)}uploadCollectionImage(a,v){return this.api.uploadCollectionImage(a,v)}uploadCollectionCoverImage(a,v){return this.api.uploadCollectionCoverImage(a,v)}uploadCollectionExpandedWidgetPhoto(a,v){return this.api.uploadCollectionExpandedWidgetPhoto(a,v)}uploadCollectionBannerPhoto(a,v,I){return this.api.uploadCollectionBannerPhoto(a,v,I)}deleteCollectionPhoto(a){return this.api.deleteCollectionPhoto(a)}deleteCoverCollectionPhoto(a){return this.api.deleteCoverCollectionPhoto(a)}deleteCollectionExpandedWidgetPhoto(a){return this.api.deleteCollectionExpandedWidgetPhoto(a)}deleteCollectionBannerPhoto(a){return this.api.deleteCollectionBannerPhoto(a)}deleteBannerPhoto(a){return this.api.deleteBannerPhoto(a)}deleteAvatarPhoto(a){return this.api.deleteAvatarPhoto(a)}loadImageLimits(){return this.imageStore.getValue().imageLimits?(0,_.of)(void 0):this.api.getImageLimitSettings().pipe((0,t.M)(a=>this.imageStore.update({imageLimits:a})),(0,s.T)(()=>{}))}}return(n=r).\u0275fac=function(a){return new(a||n)(o.KVO(h.U),o.KVO(p.e),o.KVO(u.j))},n.\u0275prov=o.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),r})()},43734:(y,T,e)=>{e.d(T,{XR:()=>t,ZN:()=>d,fr:()=>_,zo:()=>s});const t=12,d=2,_=1;function s(o,h){const p=o/h;return p>1.1?"4x3":p<.9?"3x4":"1x1"}},47151:(y,T,e)=>{e.d(T,{W:()=>h});var o,t=e(15215),d=e(60566),_=e(31794),s=e(41360);let h=((o=class extends _.Y7{constructor(){super({..._.Y7.INITIAL_ENTITY_STATE})}}).\u0275fac=function(u){return new(u||o)}
1,o.\u0275prov=s.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),o);h=(0,t.Cg)([(0,d.g7)({name:"collections/available-collections",resettable:!0,idKey:"id"})],h)},48529:(y,T,e)=>{e.d(T,{e:()=>h});var t=e(60566),d=e(96354),_=e(14407),s=e(41360),o=e(31004);let h=(()=>{var p;class u extends t.qU{constructor(n){super(n)}selectImageDetails(){return this.selectAll()}selectImageLimits(){return this.select("imageLimits")}selectImageLimit(n){return this.selectImageLimits().pipe((0,d.T)(r=>r&&r[n]))}selectSafeImageLimit(n){return this.selectImageLimit(n).pipe((0,d.T)(r=>r||_.C[n]))}}return(p=u).\u0275fac=function(n){return new(n||p)(s.KVO(o.j))},p.\u0275prov=s.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}),u})()},55422:(y,T,e)=>{e.d(T,{W:()=>S});var t=e(32881),d=e(89417),_=e(93824),s=e(51671),o=e(31794),h=e(73955),p=e(7673),u=e(88141),O=e(93225),n=e(41360);let r=(()=>{var f;class P extends o.IC{constructor(D,B,A){super(),this.validatorsService=D,this.fb=B,this.locale=A,this.maxNameLength=O.T0,this.inputControl=this.fb.control("",[this.validatorsService.required({trim:!0}),this.validatorsService.maxLength(this.maxNameLength)]),this.formGroup=this.fb.group({input:this.inputControl}),this.formErrors=new o.l$(this.formGroup,this.locale)}getFormValue(){return this.inputControl.value}}return(f=P).\u0275fac=function(D){return new(D||f)(n.KVO(o.RI),n.KVO(d.ze),n.KVO(o.iH))},f.\u0275prov=n.jDH({token:f,factory:f.\u0275fac}),P})();const g={lang:"ru",data:{COLLECTION_CREATE_DIALOG:{TITLE:"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0443",PLACEHOLDER:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438"}}};var a=e(60165);e(48353);const I=["inputComponent"];function W(f,P){1&f&&(n.EFF(0),n.nI1(1,"translate")),2&f&&n.SpI(" ",n.bMT(1,1,"COLLECTION_CREATE_DIALOG.TITLE"),"\n")}function C(f,P){if(1&f&&(n.j41(0,"mpb-label"),n.nrm(1,"mpb-content-editable",4,2),n.nI1(3,"translate"),n.k0s()),2&f){const L=n.XpG();n.R7$(),n.FS9("placeholder",n.bMT(3,3,"COLLECTION_CREATE_DIALOG.PLACEHOLDER")),n.Y8G("formControl",L.form.inputControl)("maxValueLength",L.form.maxNameLength)}}let S=(()=>{var f;class P{constructor(D,B,A,G){this.form=D,this.data=B,this.dialog=A,this.localeService=G,this.submitWith=()=>{const N=this.form.submit();return N?this.data.submitWith(N).pipe((0,u.M)(U=>this.dialog.close(U))):(0,p.of)(!1)},this.localeService.load(g)}ngAfterViewInit(){this.inputComponent.contentEditable.nativeElement.focus()}}return(f=P).\u0275fac=function(D){return new(D||f)(n.rXU(r),n.rXU(o.Xj.DIALOG_DATA),n.rXU(o.Xj),n.rXU(o.iH))},f.\u0275cmp=n.VBU({type:f,selectors:[["mp-product-page-collection-create-dialog"]],viewQuery:function(D,B){if(1&D&&n.GBs(I,5),2&D){let A;n.mGM(A=n.lsd())&&(B.inputComponent=A.first)}},features:[n.Jv_([r])],decls:7,vars:10,consts:[["titleCollectionTemplate",""],["contentCollectionTemplate",""],["inputComponent",""],[3,"confirmLabel","cancelLabel","titleTemplate","contentTemplate","submitWith","disabled"],["mpCdkFormControl","","oneLineValue","",3,"placeholder","formControl","maxValueLength"]],template:function(D,B){if(1&D&&(n.nrm(0,"mp-smart-confirm-dialog",3),n.nI1(1,"translate"),n.nI1(2,"translate"),n.DNE(3,W,2,3,"ng-template",null,0,n.C5r)(5,C,4,5,"ng-template",null,1,n.C5r)),2&D){const A=n.sdS(4),G=n.sdS(6);n.Y8G("confirmLabel",n.bMT(1,6,"ACTIONS.SAVE"))("cancelLabel",n.bMT(2,8,"ACTIONS.CANCEL"))("titleTemplate",A)("contentTemplate",G)("submitWith",B.submitWith)("disabled",!B.form.formGroup.valid)}},dependencies:[t.MD,h.h,h.D9,_.D,a.B,s.Bo,s.UF,o.cv,o.l_,d.X1,d.BC,d.l_,s.x1,s.Nk,o.Py],encapsulation:2,changeDetection:0}),P})()},57551:(y,T,e)=>{e.d(T,{Z:()=>h});var o,t=e(15215),d=e(60566),_=e(31794),s=e(41360);let h=((o=class extends _.Y7{constructor(){super({..._.Y7.INITIAL_ENTITY_STATE})}}).\u0275fac=function(u){return new(u||o)},o.\u0275prov=s.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),o);h=(0,t.Cg)([(0,d.g7)({name:"collections/product-in-collections",resettable:!0,idKey:"productId"})],h)},58461:(y,T,e)=>{e.d(T,{j:()=>p});var t=e(31794),d=e(88141),_=e(96354),s=e(41360),o=e(96281),h=e(57551);let p=(()=>{var u;class O{constructor(r,g,a){this.api=r,this.store=g,this.logger=a}reset(){this.store.reset()}getCollectionsCount(r){return this.api.getCollectionsCount(r).pipe((0,t.M3)(this.store),(0,t.Ek)(this.store,this.logger),(0,d.M)(g=>this.store.upsert(r,{count:g})),(0,_.T)(()=>{}))}addProductToCollection(r,g){return this.api.addProductToCollection(g,r).pi
1pe((0,d.M)(()=>this.increaseProductInCollectionCounter(r)))}increaseProductInCollectionCounter(r){this.store.update(r,g=>({count:g.count+1}))}}return(u=O).\u0275fac=function(r){return new(r||u)(s.KVO(o.D),s.KVO(h.Z),s.KVO(t.gP))},u.\u0275prov=s.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),O})()},68465:(y,T,e)=>{e.d(T,{o:()=>J});var t=e(41360),d=e(31794),_=e(93225),s=e(51671),o=e(68389),h=e(93233),p=e(91012),u=e(73955),O=e(62951),n=e(72932),r=e(45193);const g=(i,E)=>({double:i,imageRatio:E});function a(i,E){if(1&i&&t.nrm(0,"mp-collection-not-found-element-preview",2),2&i){const c=t.XpG(2);t.Y8G("elementType",c.CollectionElementType.PRODUCT)}}function v(i,E){if(1&i){const c=t.RV6();t.j41(0,"mp-products-list-item",6),t.bIt("favoriteButtonClicked",function(m){t.eBV(c);const M=t.XpG(2).$implicit,x=t.XpG();return t.Njj(x.favoriteButtonClick(m,M.id))}),t.k0s()}if(2&i){const c=t.XpG(2).$implicit,l=t.XpG();t.Y8G("brand",c.brand)("id",c.id)("name",c.skinnyName)("picture",c.imageId)("url",l.getGoodsPageUrl(c.skinnyName,c.aliasBrand,c.id))("price",l.ProductStatusTypes.PURCHASABLE===(null==c?null:c.productStatus)?c.price:0)("oldPrice",c.oldPrice)("favorite",l.checkIsFavorite(c.id))("darkMode",!0)("denseGrid",!0)("fixedHeightOnDesktop",!0)}}function I(i,E){if(1&i&&t.nrm(0,"mp-lazy-image",5),2&i){const c=t.XpG(2).$implicit;t.XpG();const l=t.sdS(4);t.Y8G("pictureSource",c.pictureSource)("objectFit","cover")("notFoundTemplate",l)}}function W(i,E){if(1&i&&(t.SS7(0)(1),t.j41(2,"div",3),t.DNE(3,v,1,11,"mp-products-list-item",4)(4,I,1,3,"mp-lazy-image",5),t.k0s()),2&i){const c=t.XpG().$implicit,l=t.XpG(),m=l.isProduct(c),M=l.getImageRatioModifier(c);t.R7$(2),t.Y8G("modifiers",t.l_i(2,g,!m,M)),t.R7$(),t.vxM(m?3:4)}}function C(i,E){1&i&&t.DNE(0,a,1,1,"mp-collection-not-found-element-preview",2)(1,W,5,5,"div",3),2&i&&t.vxM(E.$implicit?1:0)}function S(i,E){if(1&i&&t.nrm(0,"mp-collection-not-found-element-preview",2),2&i){const c=t.XpG();t.Y8G("elementType",c.CollectionElementType.IMAGE)}}let f=(()=>{var i;class E{constructor(){this.elements=[],this.favoriteIds=new Set,this.CollectionElementType=_.RH,this.favoriteButtonClicked=(0,t.CGW)(),this.catalogUrls=(0,t.WQX)(p.k),this.ProductStatusTypes=o.LS}isProduct(l){return"boldName"in l}getGoodsPageUrl(l,m,M){return this.catalogUrls.product(l,m,M)}checkIsFavorite(l){return this.favoriteIds.has(l)}favoriteButtonClick(l,m){this.favoriteButtonClicked.emit({productId:m,isFavorite:l})}getImageRatio(l){return l.imageRatio}getImageRatioModifier(l){return!this.isProduct(l)&&this.getImageRatio(l)}}return(i=E).\u0275fac=function(l){return new(l||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["mp-collection-widget-grid"]],inputs:{elements:"elements",favoriteIds:"favoriteIds"},outputs:{favoriteButtonClicked:"favoriteButtonClicked"},decls:5,vars:0,consts:[["notFoundImageTmpl",""],["block","mp-collection-widget-grid"],["element","element-not-found",3,"elementType"],["element","tile",3,"modifiers"],[3,"brand","id","name","picture","url","price","oldPrice","favorite","darkMode","denseGrid","fixedHeightOnDesktop"],["element","image",3,"pictureSource","alt","objectFit","notFoundTemplate"],[3,"favoriteButtonClicked","brand","id","name","picture","url","price","oldPrice","favorite","darkMode","denseGrid","fixedHeightOnDesktop"]],template:function(l,m){1&l&&(t.j41(0,"div",1),t.Z7z(1,C,2,1,null,null,t.fX1),t.DNE(3,S,1,1,"ng-template",null,0,t.C5r),t.k0s()),2&l&&(t.R7$(),t.Dyx(m.elements))},dependencies:[d.nI,d.LN,d.gw,u.h,h.M,r.T,O.B,s.$$,d.Zu,n.j],styles:[".mp-collection-widget-grid[_ngcontent-%COMP%]{display:grid;gap:1px;grid-template-columns:repeat(2,1fr)}.mp-collection-widget-grid__tile[_ngcontent-%COMP%]{min-width:0}.mp-collection-widget-grid__tile--double[_ngcontent-%COMP%]{grid-column:span 2;position:relative;aspect-ratio:1/1}.mp-collection-widget-grid__tile--image-ratio-3x4[_ngcontent-%COMP%]{aspect-ratio:3/4}.mp-collection-widget-grid__tile--image-ratio-4x3[_ngcontent-%COMP%]{aspect-ratio:4/3}.mp-collection-widget-grid__image[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.mp-collection-widget-grid__element-not-found[_ngcontent-%COMP%]{display:block;width:100%;height:100%}@media (min-width: 768px) and (max-width: 1231px){.mp-collection-widget-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}}@media (min-width: 1232px){.mp-collection-widget-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}}"],changeDetection:0}),E})();var P=e(32881),L=e(49870),D=e(15592),B=e(46974),A=e(82210),G=e(82253),N=e(45441);const U=i=>({isStore:i});
1function k(i,E){if(1&i&&t.nrm(0,"mp-store-avatar",7),2&i){t.XpG(2);const c=t.r8f(1);t.Y8G("storeName",c.name)("storeLogo",c.avatarId)}}function j(i,E){if(1&i&&t.nrm(0,"mp-user-avatar",8),2&i){t.XpG(2);const c=t.r8f(1);t.Y8G("userName",c.name)("userPhotoId",c.avatarId)}}function K(i,E){if(1&i&&(t.j41(0,"a",2),t.DNE(1,k,1,2,"mp-store-avatar",7)(2,j,1,2,"mp-user-avatar",8),t.k0s()),2&i){t.XpG();const c=t.r8f(1);t.Y8G("modifiers",t.eq3(3,U,c.isStore))("routerLink",c.link),t.R7$(),t.vxM(c.isStore?1:2)}}function X(i,E){if(1&i&&(t.j41(0,"a",5),t.EFF(1),t.k0s()),2&i){t.XpG();const c=t.r8f(5),l=t.r8f(7);t.Y8G("routerLink",c),t.R7$(),t.SpI(" ",l," ")}}function H(i,E){if(1&i&&t.EFF(0),2&i){t.XpG();const c=t.r8f(7);t.SpI(" ",c," ")}}function V(i,E){1&i&&t.eu8(0)}function Y(i,E){if(1&i&&(t.j41(0,"div",6),t.DNE(1,V,1,0,"ng-container",9),t.k0s()),2&i){t.XpG();const c=t.r8f(10);t.R7$(),t.Y8G("ngTemplateOutlet",c)}}let $=(()=>{var i;class E{constructor(){this.title=t.hFB.required(),this.userInfo=t.hFB.required(),this.storeInfo=(0,t.hFB)(),this.productsCount=(0,t.hFB)(0),this.publishTime=(0,t.hFB)(""),this.showPublishTime=(0,t.hFB)(!0),this.seeMoreButtonTmpl=(0,t.hFB)(null),this.collectionId=(0,t.hFB)(),this.owner=(0,t.EWP)(()=>this.getOwner()),this.collectionUrl=(0,t.EWP)(()=>{if(!this.collectionId())return null;const l=this.collectionId();if(this.storeInfo()){const{storeName:m,storeAliasId:M}=this.storeInfo();return this.catalogUrls.storeCollection(m,M,l)}return this.userUrls.collection(this.userInfo().aliasId,l)}),this.catalogUrls=(0,t.WQX)(p.k),this.userUrls=(0,t.WQX)(D.s)}getOwner(){const l=this.storeInfo();return l?{name:l.storeName,link:this.catalogUrls.store(l.storeName,l.storeAliasId),avatarId:l.logoId,isStore:!0}:{name:this.userInfo().username,link:this.userUrls.userById(this.userInfo().aliasId),avatarId:this.userInfo().photoId,isStore:!1}}}return(i=E).\u0275fac=function(l){return new(l||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["mp-collection-widget-header"]],inputs:{title:[1,"title"],userInfo:[1,"userInfo"],storeInfo:[1,"storeInfo"],productsCount:[1,"productsCount"],publishTime:[1,"publishTime"],showPublishTime:[1,"showPublishTime"],seeMoreButtonTmpl:[1,"seeMoreButtonTmpl"],collectionId:[1,"collectionId"]},decls:12,vars:12,consts:[["block","mp-collection-widget-header"],["element","inner"],["element","avatar-wrapper",3,"modifiers","routerLink"],["element","meta",3,"ownerName","ownerLink","productsCount","publishTime","showPublishTime"],["element","title"],["element","collection-link",3,"routerLink"],["element","link"],["element","avatar",3,"storeName","storeLogo"],["element","avatar",3,"userName","userPhotoId"],[4,"ngTemplateOutlet"]],template:function(l,m){if(1&l&&(t.j41(0,"div",0),t.SS7(1),t.j41(2,"div",1),t.DNE(3,K,3,5,"a",2),t.nrm(4,"mp-collection-meta",3),t.SS7(5),t.j41(6,"div",4),t.SS7(7),t.DNE(8,X,2,2,"a",5)(9,H,1,1),t.k0s()(),t.SS7(10),t.DNE(11,Y,2,1,"div",6),t.k0s()),2&l){t.R7$();const M=t.bH3(m.owner());t.R7$(2),t.vxM(M?3:-1),t.R7$(),t.Y8G("ownerName",M.name)("ownerLink",M.link)("productsCount",m.productsCount())("publishTime",m.publishTime())("showPublishTime",m.showPublishTime()),t.R7$();const x=t.bH3(m.collectionUrl());t.R7$(2),t.bH3(m.title()),t.R7$(),t.vxM(x?8:9),t.R7$(2);const R=t.bH3(m.seeMoreButtonTmpl());t.R7$(),t.vxM(R?11:-1)}},dependencies:[d.nI,d.LN,d.gw,B.t,G.B,N.a,A.c,P.T3,L.iI,L.Wk],styles:['.mp-collection-widget-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:2rem}.mp-collection-widget-header__inner[_ngcontent-%COMP%]{display:grid;grid-template-areas:"avatar meta" "title title";grid-template-columns:auto 1fr;gap:2rem}.mp-collection-widget-header__avatar-wrapper[_ngcontent-%COMP%]{grid-area:avatar;display:block;background:#fff;border:.25rem solid #FFFFFF;margin:-.25rem;border-radius:100%;overflow:hidden;height:-webkit-max-content;height:max-content}.mp-collection-widget-header__avatar-wrapper--is-store[_ngcontent-%COMP%]{border-radius:2.25rem}.mp-collection-widget-header__avatar[_ngcontent-%COMP%]{display:block;width:8rem;height:8rem;flex-shrink:0}.mp-collection-widget-header__meta[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0;grid-area:meta}.mp-collection-widget-header__title[_ngcontent-%COMP%]{font-family:Lora,Georgia,Times New Roman,Times,serif;font-size:5rem;line-height:5.5rem;font-weight:600;letter-spacing:normal;grid-area:title;margin:0;min-width:0;text-align:left}.mp-collection-widget-header__link[_ngcontent-%COMP%]{display:flex;width:100%;flex-grow:1;justify-content:flex-start}.mp-collection-widget-header__collection-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none}@media (min-width: 768px){.mp-collection-widget-header[_ngcontent-%COMP%]{display:block;padding:0}.mp-collection-widget-header__inner[_ngcontent-%COMP%]{grid-template-areas:"meta avatar" "title avatar";grid-template-columns:1fr auto;grid-template-rows:auto 1fr;gap:1rem 3rem}
1.mp-collection-widget-header__avatar[_ngcontent-%COMP%]{width:11rem;height:11rem}.mp-collection-widget-header__meta[_ngcontent-%COMP%]{display:block;height:-webkit-max-content;height:max-content}.mp-collection-widget-header__title[_ngcontent-%COMP%]{font-family:Lora,Georgia,Times New Roman,Times,serif;font-size:6rem;line-height:6.75rem;font-weight:600;letter-spacing:normal}}'],changeDetection:0}),E})();var F=e(58223),Q=e(78618),z=e(19661),Z=e(89079),b=e(27204);let J=(()=>{var i;class E{constructor(){this.breakpointService=(0,t.WQX)(z.d),this.productsCount=0,this.widget=t.hFB.required(),this.products=t.hFB.required(),this.imageRatios=(0,t.hFB)(new Map),this.favoriteIds=new Set,this.seeMoreButtonTmpl=(0,t.hFB)(null),this.showPublishTime=!1,this.collectionId=(0,t.hFB)(),this.favoriteButtonClicked=(0,t.CGW)(),this.isMobile=(0,Z.ot)(this.breakpointService.selectMobileMedia()),this.collectionPictureSourceService=(0,t.WQX)(F.$c),this.expandedWidgetPictureSourceService=(0,t.WQX)(F.AQ),this.widgetElements=(0,t.EWP)(()=>{const l=this.widget(),m=this.products(),M=!!this.isMobile();return this.getWidgetElements(l,m,M)})}favoriteButtonClick(l){this.favoriteButtonClicked.emit(l)}getWidgetElements(l,m,M){const x=new Set(l.userImageIds);return Q.o.slice(l.elements.filter(R=>!R.draft)).map(R=>{return(0,_.Qv)(R)&&m.size?m.get(R.productId):(0,_.UY)(R)?{imageId:R.imageId,pictureSource:this.getPictureSource(R.imageId,x.has(R.imageId),M),imageRatio:null!==(w=this.imageRatios().get(R.imageId))&&void 0!==w?w:"1x1"}:void 0;var w})}getPictureSource(l,m,M){return m?this.expandedWidgetPictureSourceService.getSource(l):this.collectionPictureSourceService.getSource(l,M?b.Jh.Size.MIDDLE:b.Jh.Size.LARGE)}}return(i=E).\u0275fac=function(l){return new(l||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["mp-collections-widget"]],inputs:{userInfo:"userInfo",storeInfo:"storeInfo",productsCount:"productsCount",title:"title",widget:[1,"widget"],products:[1,"products"],imageRatios:[1,"imageRatios"],favoriteIds:"favoriteIds",seeMoreButtonTmpl:[1,"seeMoreButtonTmpl"],showPublishTime:[2,"showPublishTime","showPublishTime",t.L39],publishTime:"publishTime",collectionId:[1,"collectionId"]},outputs:{favoriteButtonClicked:"favoriteButtonClicked"},decls:3,vars:10,consts:[["block","mp-collections-widget"],[3,"title","userInfo","storeInfo","productsCount","showPublishTime","publishTime","seeMoreButtonTmpl","collectionId"],[3,"favoriteButtonClicked","elements","favoriteIds"]],template:function(l,m){1&l&&(t.j41(0,"div",0),t.nrm(1,"mp-collection-widget-header",1),t.j41(2,"mp-collection-widget-grid",2),t.bIt("favoriteButtonClicked",function(x){return m.favoriteButtonClick(x)}),t.k0s()()),2&l&&(t.R7$(),t.Y8G("title",m.title)("userInfo",m.userInfo)("storeInfo",m.storeInfo)("productsCount",m.productsCount)("showPublishTime",!!m.publishTime)("publishTime",m.publishTime)("seeMoreButtonTmpl",m.seeMoreButtonTmpl())("collectionId",m.collectionId()),t.R7$(),t.Y8G("elements",m.widgetElements())("favoriteIds",m.favoriteIds))},dependencies:[d.nI,d.LN,f,$],styles:[".mp-collections-widget[_ngcontent-%COMP%]{background-color:#1f1f1f;display:flex;flex-direction:column;gap:3rem;width:100%;color:#fff}"],changeDetection:0}),E})()},72932:(y,T,e)=>{e.d(T,{j:()=>W});var t=e(41360),d=e(93225);const _={lang:"ru",data:{COLLECTION_NOT_FOUND_ELEMENT_PREVIEW:{DESCRIPTION:{[d.RH.PRODUCT]:"\u042d\u0442\u043e\u0442 \u0442\u043e\u0432\u0430\u0440<br/>\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430<br/>\u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442<br/> \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f<br/> \u0432 \u043f\u0440\u0435\u0432\u044c\u044e",[d.RH.IMAGE]:"\u042d\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435<br/> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0438<br/> \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432<br/> \u043f\u0440\u0435\u0432\u044c\u044e",DEFAULT:"\u042d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<br/> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430<br/> \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442<br/> \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432<br/> \u043f\u0440\u0435\u0432\u044c\u044e"}}}};var s=e(31794),o=e(73955),h=e(32881);const p=C=>({type:C}),u=()=>({type:"DEFAULT"});function O(C,S){1&C&&t.eu8(0)}function n(C,S){if(1&C&&t.DNE(0,O,1,0,"ng-container",3),2&C){t.XpG();const f=t.sdS(6),P=t.r8f(1);t.Y8G("ngTemplateOutlet",f)("ngTemplateOutletContext",t.eq3(2,p,P))}}function r(C,S){1&C&&t.eu8(0)}function g(C,S){if(1&C&&(t.j41(0,"div",2),t.DNE(1,r,1,0,"ng-container",3),t.k0s()),2&C){t.XpG();const f=t.sdS(6),P=t.r8f(1);t.R7$(),t.Y8G("ngTemplateOutlet",f)("ngTemplateOutletContext",t.eq3(2,p,P))}}function a(C,S){1&C&&t.eu8(0)}function v(C,S){if(1&C&&t.DNE(0,a,1,0,"ng-container",3),2&C){t.XpG();const f=t.sdS(6);t.Y8G("ngTemplateOutlet",f)("ngTemplateOutletContext",t.lJ4(2,u))}}function I(C,S){if(1&C&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"mp-cdk-svg",6),t.k0s(),t.nrm(3,"div",7),t.nI1(4,"mpCdkTranslate"),t.k0s()),2&C){const f=S.type;t.R7$(3),t.Y8G("innerHTML",t.i5U(4,1,"COLLECTION_NOT_FOUND_ELEMENT_PREVIEW.DESCRIPTION",f),t.npT)}}let W=(()=>{var C;class S{constructor(P){this.locale=P,this.elementType=t.hFB.required(),this.CollectionElementType=d.RH,this.modifiers=(0,t.EWP)(()=>({type:this.elementType().toLowerCase()})),this.locale.load(_)}}return(C=S).\u0275fac=function(P){return new(P||C)(t.rXU(s.iH))},C.\u0275cmp=t.VBU({type:C,selectors:[["mp-collection-not-found-element-preview"]],inputs:{elementType:[1,"elementType"]},decls:7,vars:3,consts:[["contentTmpl",""],["block","mp-collection-not-found-element-preview",3,"modifiers"],["element","content-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["element","content"],["element","circle"],["element","icon","icon","alert"],["element","description",3,"innerHTML"]],template:function(P,L){if(1&P&&(t.j41(0,"div",1),t.SS7(1),t.DNE(2,n,1,4,"ng-container")(3,g,2,4,"div",2)(4,v,1,3,"ng-container")(5,I,5,4,"ng-template",null,0,t.C5r),t.k0s()),2&P){let D;t.Y8G("modifiers",L.modifiers()),t.R7$();const B=t.bH3(L.elementType());t.R7$(),t.vxM((D=B)===L.CollectionElementType.IMAGE?2:D===L.CollectionElementType.PRODUCT?3:4)}},dependencies:[o.h,s.Py,s.sO,s.nI,s.LN,s.gw,s.Zu,s.k3,h.T3],styles:['.mp-collection-not-found-element-preview[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;position:relative}.mp-collection-not-found-element-preview--type-product[_ngcontent-%COMP%] .mp-collection-not-found-element-preview__content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.mp-collection-not-found-element-preview--type-product[_ngcontent-%COMP%] .mp-collection-not-found-element-preview__content-wrapper[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:133.3333333333%}.mp-collection-not-found-element-preview__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background-color:#4c4c4c;width:100%;height:100%;gap:1rem;color:#f2c14e}.mp-collection-not-found-element-preview--type-product[_ngcontent-%COMP%] .mp-collection-not-found-element-preview__content[_ngcontent-%COMP%]{position:absolute;
1left:0;top:0}.mp-collection-not-found-element-preview__description[_ngcontent-%COMP%]{font-size:1.75rem;line-height:2.5rem;font-weight:400;letter-spacing:normal;color:currentColor}.mp-collection-not-found-element-preview__circle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:5rem;height:5rem;padding:.75rem 1rem 1rem;border-radius:100%;flex-shrink:0;background-color:currentColor}.mp-collection-not-found-element-preview__icon[_ngcontent-%COMP%]{display:block;width:2rem;height:2rem}'],changeDetection:0}),S})()},78618:(y,T,e)=>{e.d(T,{o:()=>h});var t=e(93225),d=e(43734);const _=[d.XR/2-1,d.XR-1],s={IMAGE:d.ZN,PRODUCT:d.fr},o=p=>p.type===t.RH.IMAGE;let h=(()=>{var p;class u{static slice(n){let r=0,g=0;for(;g<n.length;g++){const I=o(n[g])?_.includes(r)?s.IMAGE+1:s.IMAGE:s.PRODUCT;if(r+I>d.XR)break;r+=I}return n.slice(0,g)}}return(p=u).DEFAULT_MAX_SLOTS=d.XR,p.ELEMENT_WEIGHT=s,u})()}}]);
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.