1"use strict";(self.webpackChunkapplication_client=self.webpackChunkapplication_client||[]).push([[2587],{2587:(E,v,c)=>{c.r(v),c.d(v,{PromoCodesModule:()=>z});var m=c(6814),d=c(2787),a=c(6223),_=c(3680),p=c(9347),D=c(2296),P=c(5986),C=c(2032),t=c(5879),A=c(3445),b=c(8034),x=c(6747),g=c(9919),M=c(4170),n=c(2557),u=c(4630),y=c(3386);const T=["assignedProductInput"];function k(r,f){1&r&&(t.TgZ(0,"mat-form-field",5),t._UZ(1,"input",25),t.TgZ(2,"mat-label"),t._uU(3,"\u041a\u043e\u0434 *"),t.qZA()())}function I(r,f){1&r&&(t.TgZ(0,"mat-error"),t._uU(1," \u041f\u043e\u043b\u0435\u0442\u043e \u0435 \u0437\u0430\u0434\u044a\u043b\u0436\u0438\u0442\u0435\u043b\u043d\u043e! "),t.qZA())}function N(r,f){if(1&r){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.changePromoType(o.promotionTypes.currency.key))}),t._uU(1," % "),t.qZA()}}function U(r,f){if(1&r){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.changePromoType(o.promotionTypes.percent.key))}),t._uU(1," EUR "),t.qZA()}}function w(r,f){if(1&r){const e=t.EpF();t.TgZ(0,"mat-chip-row",27),t.NdJ("removed",function(){const s=t.CHM(e).index,l=t.oxw();return t.KtG(l.removAssignedProduct(s))}),t._uU(1),t.TgZ(2,"button",28),t._UZ(3,"i",1),t.qZA()()}if(2&r){const e=f.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e.name," ")}}function J(r,f){if(1&r&&(t.TgZ(0,"mat-option",29)(1,"div",30),t._UZ(2,"lazy-image-component",31),t.TgZ(3,"span",32),t._uU(4),t.qZA()()()),2&r){const e=f.$implicit,i=f.index,o=t.oxw();t.Q6J("value",i),t.xp6(2),t.Q6J("src",o.api_url+"/min_uploads/images/"+(null==e.photos[e.frontImage]?null:e.photos[e.frontImage].name)),t.xp6(2),t.Oqu(e.name)}}function R(r,f){1&r&&(t.TgZ(0,"mat-error"),t._uU(1," \u041f\u043e\u043b\u0435\u0442\u043e \u0435 \u0437\u0430\u0434\u044a\u043b\u0436\u0438\u0442\u0435\u043b\u043d\u043e ! "),t.qZA())}const Y=function(){return{standalone:!0}};let Z=(()=>{class r{MatDialogRef;ChangeDetectorRef;PromoCodeProvider;ProductProvider;data;submit=!1;update=!1;promotionTypes=x.$k;form=new a.nJ({key:new a.p4(null),once:new a.p4(!1),promotionType:new a.p4(this.promotionTypes.currency.key,[a.kI.required]),discount:new a.p4("",[a.kI.required]),period:new a.p4(new Date,[a.kI.required]),description:new a.p4(""),minAmount:new a.p4(0)});api_url=x.qA.api_url;assignedProductName="";assignedProducts=[];updateAssignedProducts=!1;assignedProductsFiltered=[];assignedProductInput;constructor(e,i,o,s,l){if(this.MatDialogRef=e,this.ChangeDetectorRef=i,this.PromoCodeProvider=o,this.ProductProvider=s,this.data=l,this.data){const{promoCode:h}=this.data;this.update=!0,this.assignedProducts=h.products.map(O=>O)??[],this.setValues(h)}}setValues(e){const i={};for(let o in this.form.controls)i[o]=e[o];this.form.setValue(i)}onSubmit(){if(this.form.valid)return this.submit=!0,this.update?this.updatePromoCode():this.createPromoCode();this.ChangeDetectorRef.markForCheck()}updatePromoCode(){const e={},{promoCode:i}=this.data,o=this.form.value;e.products=this.assignedProducts.map(s=>s.productKey);for(let s in o)o[s]!==i[s]&&(e[s]=o[s]);this.PromoCodeProvider.put(i._id,e).subscribe(()=>{this.submit=!1,this.MatDialogRef.close()})}createPromoCode(){const e=this.form.value;e.products=this.assignedProducts.map(i=>i.productKey),this.PromoCodeProvider.post(e).subscribe(i=>{this.submit=!1,this.MatDialogRef.close()})}changePromoType(e){this.form.controls.promotionType.setValue(e)}getPromoType(){return this.form.controls.promotionType.value}trackById(e,i){return i._id}removAssignedProduct(e){this.updateAssignedProducts=!0,this.assignedProducts.splice(e,1),this.ChangeDetectorRef.markForCheck()}assignedFilter(e){if(38!=e.keyCode&&40!=e.keyCode&&13!=e.keyCode&&this.assignedProductName.length>0){const i=this.assignedProducts.map(o=>o.productKey);this.ProductProvider.getList(this.assignedProductName,i).subscribe(o=>{this.assignedProductsFiltered=o,this.ChangeDetectorRef.markForCheck()})}}onSelectAssigned(e){const i=this.assignedProductsFiltered[e.option.value],{name:o,productKey:s,price:l}=i;this.updateAssignedProducts=!0,this.assignedProducts.push({name:o,productKey:s,price:l}),this.assignedProductName="",this.assignedProductInput.nativeElement.value="",this.assignedProductsFiltered=[],this.ChangeDetectorRef.markForCheck()}static \u0275fac=function(i){return new(i||r)(t.Y36(p.so),t.Y36(t.sBO),t.Y36(g.He),t.Y36(g.GW),t.Y36(p.WI))};static \u0275cmp=t.Xpm({type:r,selectors:[["promo-code-dialog"]],viewQuery:function(i,o){if(1&i&&t.Gf(T,5),2&i){let s;t.iGM(s=t.CRH())&&(o.assignedProductInput=s.first)}},decls:41,vars:19,consts:[[1,"image-button","close",3,"click"],[1,"flaticon-close"],[1,"flex",3,"formGroup","ngSubmit"],["formControlName","once","color","primary"],["color","primary",4,"ngIf"],["color","primary"],[4,"ngIf"],["matInput","","placeholder","\u0422\u0438\u043f \u043f\u0440\u043e\u043c\u043e\u0446\u0438\u044f","formControlName","discount","type","number","autocomplete","off"],["matSuffix","",3,"ngSwitch"],["mat-icon-button","","aria-label","Promotion","class","promotion","type","button",3,"click",4,"ngSwitchCase"],["matInput","","placeholder","\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u043d\u0430 \u0441\u0443\u043c\u0430","formControlName","minAmount","type","number","autocomplete","off"],[1,"width-100"],["aria-label","product"],["chipListAssigned",""],[3,"removable","removed",4,"ngFor","ngForOf","ngForTrackBy"],["matInput","","placeholder","\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u0438 \u0432\u0430\u043b\u0438\u0434\u043d\u0438 \u0437\u0430 \u043f\u0440\u043e\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u0438\u044f \u043a\u043e\u0434...","aria-label","Name",3,"matAutocomplete","ngModel","ngModelOptions","matChipInputFor","ngModelChange","keyup"],["assignedProductInput",""],[3,"optionSelected"],["asigned","matAutocomplete"],["class","autocomplete wrap",3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["matInput","","placeholder","\u0410\u043a\u0442\u0438\u0432\u0435\u043d \u0434\u043e *","formControlName","period","autocomplete","off",3,"matDatepicker","click"],["matSuffix","",3,"for"],["picker",""],["matInput","","placeholder","\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","formControlName","description","type","text","autocomplete","off"],["mat-raised-button","","type","submit",3,"disabled"],["matInput","","placeholder","\u041a\u043e\u0434 *","formControlName","key","type","text","autocomplete","off"],["mat-icon-button","","aria-label","Promotion","type","button",1,"promotion",3,"click"],[3,"removable","removed"],["matChipRemove","","type","button",1,"image-button","delete"],[1,"autocomplete","wrap",3,"value"],[1,"flex"],["objectFit","cover","width","35px","height","40px",3,"src"],[1,"name"]],template:function(i,o){if(1&i){const s=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){return o.MatDialogRef.close()}),t._UZ(1,"i",1),t.qZA(),t.TgZ(2,"form",2),t.NdJ("ngSubmit",function(){return o.onSubmit()}),t.TgZ(3,"mat-checkbox",3),t._uU(4,"\u0415\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u0435\u043d"),t.qZA(),t.YNc(5,k,4,0,"mat-form-field",4),t.TgZ(6,"mat-form-field",5)(7,"mat-label"),t._uU(8,"\u0422\u0438\u043f \u043f\u0440\u043e\u043c\u043e\u0446\u0438\u044f"),t.qZA(),t.YNc(9,I,2,0,"mat-error",6),t._UZ(10,"input",7),t.ynx(11,8),t.YNc(12,N,2,0,"button",9),t.YNc(13,U,2,0,"button",9),t.BQk(),t.qZA(),t.TgZ(14,"mat-form-field",5)(15,"mat-label"),t._uU(16,"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u043d\u0430 \u0441\u0443\u043c\u0430"),t.qZA(),t._UZ(17,"input",10),t.qZA(),t.TgZ(18,"mat-form-field",11)(19,"mat-chip-grid",12,13),t.YNc(21,w,4,2,"mat-chip-row",14),t.TgZ(22,"input",15,16),t.NdJ("ngModelChange",function(h){return o.assignedProductName=h})("keyup",function(h){return o.assignedFilter(h)}),t.qZA()(),t.TgZ(24,"mat-autocomplete",17,18),t.NdJ("optionSelected",function(h){return o.onSelectAssigned(h)}),t.YNc(26,J,5,3,"mat-option",19),t.qZA()(),t.TgZ(27,"mat-form-field",5),t.YNc(28,R,2,0,"mat-error",6),t.TgZ(29,"input",20),t.NdJ("click",function(){t.CHM(s);const h=t.MAs(32);return t.KtG(h.open())}),t.qZA(),t._UZ(30,"mat-datepicker-toggle",21)(31,"mat-datepicker",null,22),t.TgZ(33,"mat-label"),t._uU(34,"\u0410\u043a\u0442\u0438\u0432\u0435\u043d \u0434\u043e *"),t.qZA()(),t.TgZ(35,"mat-form-field",5),t._UZ(36,"input",23),t.TgZ(37,"mat-label"),t._uU(38,"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"),t.qZA()(),t.TgZ(39,"button",24),t._uU(40," \u041f\u043e\u0442\u0432\u044a\u0440\u0434\u0438 "),t.qZA()()}if(2&i){const s=t.MAs(20),l=t.MAs(25),h=t.MAs(32);t.xp6(2),t.Q6J("formGroup",o.form),t.xp6(3),t.Q6J("ngIf",o.update),t.xp6(4),t.Q6J("ngIf",o.form.controls.discount.hasError("required")),t.xp6(2),t.Q6J("ngSwitch",o.getPromoType()),t.xp6(1),t.Q6J("ngSwitchCase",o.promotionTypes.percent.key),t.xp6(1),t.Q6J("ngSwitchCase",o.promotionTypes.currency.key),t.xp6(8),t.Q6J("ngForOf",o.assignedProducts)("ngForTrackBy",o.trackById),t.xp6(1),t.Q6J("matAutocomplete",l)("ngModel",o.assignedProductName)("ngModelOptions",t.DdM(18,Y))("matChipInputFor",s),t.xp6(4),t.Q6J("ngForOf",o.assignedProductsFiltered)("ngForTrackBy",o.trackById),t.xp6(2),t.Q6J("ngIf",o.form.controls.period.hasError("required")),t.xp6(1),t.Q6J("matDatepicker",h),t.xp6(1),t.Q6J("for",h),t.xp6(9),t.Q6J("disabled",o.submit)}},dependencies:[m.sg,m.O5,m.RF,m.n9,a._Y,a.Fj,a.wV,a.JJ,a.JL,a.sg,a.u,a.On,D.lW,D.RK,C.Nt,M.KE,M.hX,M.TO,M.R9,P.oG,b.Mq,b.hl,b.nW,n.RA,n.oH,n.qH,n.z3,u.XC,_.ey,u.ZL,y.s],styles:["[_nghost-%COMP%]{max-height:75vh;overflow-y:auto}button[type=submit][_ngcontent-%COMP%]{margin-top:10px}form[_ngcontent-%COMP%]{width:350px;max-height:75vh;flex-direction:column}form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:5px 0}
1form[_ngcontent-%COMP%] button.delete[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:before{font-size:13px}button.close[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px}button.close[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:before{font-size:14px}"],changeDetection:0})}return r})();var S=c(3036);let B=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=t.oAB({type:r});static \u0275inj=t.cJS({providers:[{provide:_.Ad,useValue:"bg-BG"},{provide:_._A,useClass:A.t7,deps:[_.Ad]},{provide:_.sG,useValue:A.$o}],imports:[m.ez,a.UX,a.u5,D.ot,C.c,P.p9,b.FA,_.XK,n.Hi,u.Bb,S.M]})}return r})();var F=c(7722),L=c(3453),Q=c(6788);function W(r,f){if(1&r&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&r){const e=t.oxw().$implicit;t.xp6(1),t.hij("\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442: ",t.xi3(2,1,e.discount,"1.2-2")," EUR ")}}function K(r,f){if(1&r&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&r){const e=t.oxw().$implicit;t.xp6(1),t.hij("\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442: ",t.xi3(2,1,e.discount,"1.0-0"),"% ")}}function G(r,f){if(1&r){const e=t.EpF();t.TgZ(0,"div",10)(1,"div",11)(2,"h4"),t._uU(3,"\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u0434: "),t.TgZ(4,"span",12),t._uU(5),t.qZA()(),t.TgZ(6,"div",13),t._UZ(7,"i",14),t.TgZ(8,"button",15),t.NdJ("click",function(){const s=t.CHM(e).index,l=t.oxw();return t.KtG(l.onEdit(s))}),t._UZ(9,"i",16),t.qZA(),t.TgZ(10,"button",15),t.NdJ("click",function(){const s=t.CHM(e).index,l=t.oxw();return t.KtG(l.onDelete(s))}),t._UZ(11,"i",17),t.qZA()()(),t.TgZ(12,"mat-checkbox",18),t.NdJ("ngModelChange",function(o){const l=t.CHM(e).$implicit;return t.KtG(l.active=o)})("change",function(){const s=t.CHM(e).index,l=t.oxw();return t.KtG(l.onChange(s))}),t._uU(13),t.qZA(),t.TgZ(14,"p"),t._uU(15),t.qZA(),t.ynx(16,19),t.YNc(17,W,3,4,"p",20),t.YNc(18,K,3,4,"p",20),t.BQk(),t.TgZ(19,"p"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"p"),t._uU(23),t.ALo(24,"date"),t.qZA()()}if(2&r){const e=f.$implicit,i=t.oxw();t.xp6(5),t.Oqu(e.key),t.xp6(7),t.Q6J("ngModel",e.active),t.xp6(1),t.hij(" ",e.active?"\u0410\u043a\u0442\u0438\u0432\u0435\u043d":"\u041d\u0435\u0430\u043a\u0442\u0438\u0432\u0435\u043d",""),t.xp6(2),t.hij("\u0415\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u0435\u043d: ",e.once?"\u0414\u0430":"\u041d\u0435"," "),t.xp6(1),t.Q6J("ngSwitch",e.promotionType),t.xp6(1),t.Q6J("ngSwitchCase",i.promotionTypes.currency.key),t.xp6(1),t.Q6J("ngSwitchCase",i.promotionTypes.percent.key),t.xp6(2),t.hij("\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u043d\u0430 \u0441\u0443\u043c\u0430: ",t.xi3(21,9,e.minAmount,"1.2-2")," EUR "),t.xp6(3),t.hij("\u0412\u0430\u043b\u0438\u0434\u0435\u043d \u0434\u043e: ",t.xi3(24,12,e.period,"dd.LL.yyyy")," ")}}function j(r,f){if(1&r){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onLoadMore())}),t._uU(1," \u0417\u0440\u0435\u0434\u0438 \u043e\u0449\u0435... "),t.qZA()}}let q=(()=>{class r{PromoCodeProvider;MatDialog;ChangeDetectorRef;SocketProvider;platformId;promoCodes;postPromoCode;putPromoCode;deletePromoCode;promotionTypes=x.$k;skip=20;limit=20;loaded=!1;timeOutListener;timeOut=250;form=new a.cw({text:new a.NI("",[])});constructor(e,i,o,s,l,h){this.PromoCodeProvider=i,this.MatDialog=o,this.ChangeDetectorRef=s,this.SocketProvider=l,this.platformId=h;const{promoCodes:O=[]}=e.snapshot.data;this.promoCodes=O,O.length<this.limit&&(this.loaded=!0)}ngOnInit(){(0,m.NF)(this.platformId)&&(this.postPromoCode=this.SocketProvider.postPromoCode.subscribe(e=>{this.skip++,this.promoCodes.unshift(new F.F(e)),this.ChangeDetectorRef.markForCheck()}),this.putPromoCode=this.SocketProvider.putPromoCode.subscribe(e=>{this.updatePromoCodes(e)&&this.ChangeDetectorRef.markForCheck()}),this.deletePromoCode=this.SocketProvider.deletePromoCode.subscribe(e=>{const i=this.promoCodes.findIndex(o=>o.key==e.key);i>-1&&(this.promoCodes.splice(i,1),this.ChangeDetectorRef.markForCheck())}))}ngOnDestroy(){this.postPromoCode&&this.postPromoCode.unsubscribe(),this.putPromoCode&&this.postPromoCode.unsubscribe()}onChange(e){const i=this.promoCodes[e];this.PromoCodeProvider.put(i._id,{active:i.active}).subscribe()}updatePromoCodes(e){const i=this.getPromoCode(e);if(i>-1){const s=this.promoCodes[i];for(let l in e.data)null!=s[l]&&(s[l]=e.data[l]);return this.promoCodes[i]=new F.F(s),!0}return!1}getPromoCode(e){const i=this.promoCodes;for(let o=0;o<i.length;o++)if(null!=e.promoCodeId&&e.promoCodeId===i[o]._id)return o;return-1}onCreate(){this.MatDialog.open(Z,{autoFocus:!1})}onEdit(e){this.PromoCodeProvider.get(this.promoCodes[e]._id).subscribe(o=>{o&&this.MatDialog.open(Z,{autoFocus:!1,data:{promoCode:o}})})}onLoadMore(){this.loaded||this.PromoCodeProvider.getMany(this.skip,this.limit).subscribe(e=>{this.skip+=this.limit,e.length<this.limit&&(this.loaded=!0);const i=[...this.promoCodes,...e];this.promoCodes=i,this.ChangeDetectorRef.markForCheck()})}onDelete(e){this.MatDialog.open(L.Q,{data:{message:"\u0416\u0435\u043b\u0430\u0442\u0435 \u043b\u0438 \u0434\u0430 \u0438\u0437\u0442\u0440\u0438\u0435\u0442\u0435 \u043f\u0440\u043e\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u0438\u044f\u0442 \u043a\u043e\u0434?"}}).afterClosed().subscribe(o=>{o&&this.PromoCodeProvider.delete(this.promoCodes[e].key).subscribe()})}search(){this.timeOutListener&&clearTimeout(this.timeOutListener),this.timeOutListener=setTimeout(()=>{this.skip=20,this.PromoCodeProvider.getMany(0,this.limit,this.form.value.text).subscribe(e=>{this.promoCodes=e,this.ChangeDetectorRef.markForCheck()})},this.timeOut)}trackById(e,i){return i._id}static \u0275fac=function(i){return new(i||r)(t.Y36(d.gz),t.Y36(g.He),t.Y36(p.uw),t.Y36(t.sBO),t.Y36(g.wP),t.Y36(t.Lbi))};static \u0275cmp=t.Xpm({type:r,selectors:[["promo-codes-page"]],decls:14,vars:4,consts:[[1,"title"],[1,"box"],[3,"formGroup"],["color","primary",1,"bgh-input"],["matInput","","placeholder","\u0422\u044a\u0440\u0441\u0435\u043d\u0435...","formControlName","text","type","text",3,"keyup"],["class","align-top code",4,"ngFor","ngForOf","ngForTrackBy"],[1,"text-right"],["mat-button","",3,"click",4,"ngIf"],["mat-mini-fab","","color","primary",1,"fixed",3,"click"],[1,"flaticon-plus"],[1,"align-top","code"],[1,"actions"],["copy","\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u0434\u044a\u0442 \u0435 \u043a\u043e\u043f\u0438\u0440\u0430\u043d!"],[1,"buttons"],[1,"flaticon-discount"],["matRipple","",1,"image-button",3,"click"],[1,"flaticon-art-and-design"],[1,"flaticon-close"],[3,"ngModel","ngModelChange","change"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-button","",3,"click"]],template:function(i,o){1&i&&(t.TgZ(0,"h4",0)(1,"span"),t._uU(2,"\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u043e\u0432\u0435"),t.qZA()(),t.TgZ(3,"div",1)(4,"form",2)(5,"mat-form-field",3)(6,"mat-label"),t._uU(7,"\u0422\u044a\u0440\u0441\u0435\u043d\u0435..."),t.qZA(),t.TgZ(8,"input",4),t.NdJ("keyup",function(){return o.search()}),t.qZA()()(),t.YNc(9,G,25,15,"div",5),t.TgZ(10,"div",6),t.YNc(11,j,2,0,"button",7),t.qZA()(),t.TgZ(12,"button",8),t.NdJ("click",function(){return o.onCreate()}),t._UZ(13,"i",9),t.qZA()),2&i&&(t.xp6(4),t.Q6J("formGroup",o.form),t.xp6(5),t.Q6J("ngForOf",o.promoCodes)("ngForTrackBy",o.trackById),t.xp6(2),t.Q6J("ngIf",!o.loaded))},dependencies:[m.sg,m.O5,m.RF,m.n9,a._Y,a.Fj,a.JJ,a.JL,a.On,a.sg,a.u,C.Nt,M.KE,M.hX,D.lW,D.nh,_.wG,P.oG,Q.j,m.JJ,m.uU],styles:["div.box[_ngcontent-%COMP%]{margin-left:8px}div.box[_ngcontent-%COMP%] div.code[_ngcontent-%COMP%]{margin-bottom:8px}div.box[_ngcontent-%COMP%] div.actions[_ngcontent-%COMP%]{display:flex;align-items:center}div.box[_ngcontent-%COMP%] div.actions[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-left:12px}div.box[_ngcontent-%COMP%] div.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}div.box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;margin:4px 0 0 8px}
1div.box[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:4px 0}div.box[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#0c3a52;font-weight:600}"],changeDetection:0})}return r})();var H=c(8659);let z=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=t.oAB({type:r});static \u0275inj=t.cJS({imports:[m.ez,a.u5,a.UX,d.Bz.forChild([{path:"",component:q}]),C.c,D.ot,p.Is,_.si,P.p9,B,H.s]})}return r})()},3453:(E,v,c)=>{c.d(v,{Q:()=>_});var m=c(9347),d=c(5879),a=c(2296);let _=(()=>{class p{MatDialogRef;data;constructor(P,C){this.MatDialogRef=P,this.data=C}onSubmit(P){this.MatDialogRef.close(P)}static \u0275fac=function(C){return new(C||p)(d.Y36(m.so),d.Y36(m.WI))};static \u0275cmp=d.Xpm({type:p,selectors:[["confirm-new-dialog"]],decls:10,vars:1,consts:[[1,"header"],[1,"content"],[1,"footer","right"],["mat-raised-button","",1,"left",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(C,t){1&C&&(d.TgZ(0,"div",0)(1,"h3"),d._uU(2,"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435"),d.qZA()(),d.TgZ(3,"div",1),d._uU(4),d.qZA(),d.TgZ(5,"div",2)(6,"button",3),d.NdJ("click",function(){return t.onSubmit(!1)}),d._uU(7," \u041d\u0435 "),d.qZA(),d.TgZ(8,"button",4),d.NdJ("click",function(){return t.onSubmit(!0)}),d._uU(9," \u0414\u0430 "),d.qZA()()),2&C&&(d.xp6(4),d.hij(" ",t.data.message,"\n"))},dependencies:[a.lW],styles:[".header[_ngcontent-%COMP%]{margin-bottom:10px}.header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:400;margin:0}.content[_ngcontent-%COMP%]{font-size:14px;max-width:450px}.footer[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:flex-end}button.left[_ngcontent-%COMP%]{margin-right:5px}"]})}return p})()},3445:(E,v,c)=>{var m;c.d(v,{$o:()=>A,t7:()=>t});var d=c(5879),a=c(3680),_=c(6676);const p=_||m||(m=c.t(_,2)),D=new d.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function P(){return{useUtc:!1}}});function C(g,M){const n=Array(g);for(let u=0;u<g;u++)n[u]=M(u);return n}let t=(()=>{class g extends a._A{constructor(n,u){super(),this._options=u,this.setLocale(n||p.locale())}setLocale(n){super.setLocale(n);let u=p.localeData(n);this._localeData={firstDayOfWeek:u.firstDayOfWeek(),longMonths:u.months(),shortMonths:u.monthsShort(),dates:C(31,y=>this.createDate(2017,0,y+1).format("D")),longDaysOfWeek:u.weekdays(),shortDaysOfWeek:u.weekdaysShort(),narrowDaysOfWeek:u.weekdaysMin()}}getYear(n){return this.clone(n).year()}getMonth(n){return this.clone(n).month()}getDate(n){return this.clone(n).date()}getDayOfWeek(n){return this.clone(n).day()}getMonthNames(n){return"long"==n?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(n){return"long"==n?this._localeData.longDaysOfWeek:"short"==n?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(n){return this.clone(n).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(n){return this.clone(n).daysInMonth()}clone(n){return n.clone().locale(this.locale)}createDate(n,u,y){const T=this._createMoment({year:n,month:u,date:y}).locale(this.locale);return T.isValid(),T}today(){return this._createMoment().locale(this.locale)}parse(n,u){return n&&"string"==typeof n?this._createMoment(n,u,this.locale):n?this._createMoment(n).locale(this.locale):null}format(n,u){return n=this.clone(n),this.isValid(n),n.format(u)}addCalendarYears(n,u){return this.clone(n).add({years:u})}addCalendarMonths(n,u){return this.clone(n).add({months:u})}addCalendarDays(n,u){return this.clone(n).add({days:u})}toIso8601(n){return this.clone(n).format()}deserialize(n){let u;if(n instanceof Date)u=this._createMoment(n).locale(this.locale);else if(this.isDateInstance(n))return this.clone(n);if("string"==typeof n){if(!n)return null;u=this._createMoment(n,p.ISO_8601).locale(this.locale)}return u&&this.isValid(u)?this._createMoment(u).locale(this.locale):super.deserialize(n)}isDateInstance(n){return p.isMoment(n)}isValid(n){return this.clone(n).isValid()}invalid(){return p.invalid()}
1_createMoment(n,u,y){const{strict:T,useUtc:k}=this._options||{};return k?p.utc(n,u,y,T):p(n,u,y,T)}static#t=this.\u0275fac=function(u){return new(u||g)(d.LFG(a.Ad,8),d.LFG(D,8))};static#e=this.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac})}return g})();const A={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}}]);
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.