1"use strict";(self.webpackChunkkompra_front2_0=self.webpackChunkkompra_front2_0||[]).push([[7593],{57582:(C,u,o)=>{o.d(u,{Mb:()=>M,Q3:()=>c,_9:()=>n,dy:()=>a,zz:()=>s});const n=_=>_.auth,a=_=>_.auth.user,M=_=>!!_.auth.user,s=_=>!_.auth.user,c=_=>_.auth.registerModal},31759:(C,u,o)=>{o.d(u,{Y:()=>p});var n=o(65879),r=o(96814),a=o(50488),M=o(50152),s=o(63734),c=o(16841),_=o(61766);const f=function(t){return{"modal--active":t}};let p=(()=>{class t{constructor(){this.title="support.title",this.opened=!1,this.close=new n.vpe}ngOnInit(){}static{this.\u0275fac=function(T){return new(T||t)}}static{this.\u0275cmp=n.Xpm({type:t,selectors:[["app-support"]],inputs:{title:"title",opened:"opened"},outputs:{close:"close"},decls:23,vars:16,consts:[[1,"modal","modal--400","modal--feedback",3,"ngClass","closeRequest"],[1,"modal__container",3,"clickOutsideEnabled","clickOutside"],[1,"modal__header"],[1,"modal__title","title","title--h5"],[1,"modal__close"],["id","ym-support-modal-close-btn",1,"button","button--icon",3,"click"],[1,"button__icon","icon"],[1,"modal__body"],[1,"modal__system-message","system-message","system-message--feedback"],[1,"system-message__icon","icon"],[1,"system-message__title","title","title--h4"],[1,"system-message__text",3,"innerHTML"],[1,"modal__footer"],["id","ym-support-modal-ok-btn",1,"button","button--expand",3,"click"]],template:function(T,m){1&T&&(n.TgZ(0,"div",0),n.NdJ("closeRequest",function(){return m.close.emit()}),n.TgZ(1,"div",1),n.NdJ("clickOutside",function(){return m.close.emit()}),n.TgZ(2,"div",2)(3,"div",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return m.close.emit()}),n.TgZ(8,"span",6),n._UZ(9,"icon-close"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"div",9),n._UZ(13,"icon-file-color-90"),n.qZA(),n.TgZ(14,"div",10),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._UZ(17,"div",11),n.ALo(18,"translate"),n.qZA()(),n.TgZ(19,"div",12)(20,"button",13),n.NdJ("click",function(){return m.close.emit()}),n._uU(21),n.ALo(22,"translate"),n.qZA()()()()),2&T&&(n.Q6J("ngClass",n.VKq(14,f,m.opened)),n.xp6(1),n.Q6J("clickOutsideEnabled",m.opened),n.xp6(3),n.Oqu(n.lcZ(5,6,m.title)),n.xp6(11),n.hij(" ",n.lcZ(16,8,"support.send")," "),n.xp6(2),n.Q6J("innerHTML",n.lcZ(18,10,"support.message"),n.oJD),n.xp6(4),n.hij(" ",n.lcZ(22,12,"support.close")," "))},dependencies:[r.mk,a.v,M.D,s._,c.z,_.X$]})}}return t})()},45529:(C,u,o)=>{o.d(u,{b:()=>r});var n=o(65879);let r=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275mod=n.oAB({type:a})}static{this.\u0275inj=n.cJS({})}}return a})()},36223:(C,u,o)=>{o.d(u,{R:()=>r});var n=o(65879);let r=(()=>{class a{constructor(){this.addClass=""}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=n.Xpm({type:a,selectors:[["icon-chevron-down"]],inputs:{addClass:"addClass"},standalone:!0,features:[n.jDz],decls:2,vars:3,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512"],["d","M482.397 173.959c11.471-11.472 11.471-30.071 0-41.543-11.471-11.472-30.071-11.472-41.542 0l41.542 41.543zM256 358.813l-20.771 20.771c11.472 11.472 30.071 11.472 41.543 0L256 358.813zM71.146 132.416c-11.472-11.472-30.071-11.472-41.543 0-11.472 11.472-11.472 30.071 0 41.543l41.543-41.543zm369.709 0L235.229 338.041l41.543 41.543 205.625-205.625-41.542-41.543zM276.772 338.041 71.146 132.416l-41.543 41.543 205.625 205.625 41.544-41.543z"]],template:function(c,_){1&c&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA()),2&c&&n.Gre("icon__svg ",_.addClass,"")},encapsulation:2,changeDetection:0})}}return a})()},88213:(C,u,o)=>{o.d(u,{t:()=>r});var n=o(65879);let r=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=n.Xpm({type:a,selectors:[["icon-chevron-left"]],decls:2,vars:0,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",1,"icon__svg"],["d","M338.041 482.397c11.472 11.471 30.071 11.471 41.543 0 11.472-11.471 11.472-30.071 0-41.542l-41.543 41.542zM153.187 256l-20.771-20.771c-11.472 11.472-11.472 30.071 0 41.543L153.187 256zM379.584 71.146c11.472-11.472 11.472-30.071 0-41.543-11.472-11.472-30.071-11.472-41.543 0l41.543 41.543zm0 369.709L173.959 235.229l-41.543 41.543 205.625 205.625 41.543-41.542zM173.959 276.772 379.584 71.146l
1-41.543-41.543-205.625 205.626 41.543 41.543z"]],template:function(c,_){1&c&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA())},encapsulation:2,changeDetection:0})}}return a})()},50152:(C,u,o)=>{o.d(u,{D:()=>r});var n=o(65879);let r=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=n.Xpm({type:a,selectors:[["icon-close"]],standalone:!0,features:[n.jDz],decls:3,vars:0,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",1,"icon__svg"],["d","M461.856,490.993c-7.449,0-14.899-2.843-20.586-8.53L29.53,70.708c-11.373-11.373-11.373-29.798,0-41.171\n s29.798-11.373,41.171,0l411.74,411.755c11.373,11.373,11.373,29.798,0,41.171C476.755,488.15,469.306,490.993,461.856,490.993z"],["d","M50.13,490.993c-7.449,0-14.899-2.843-20.586-8.53c-11.373-11.373-11.373-29.798,0-41.171L441.299,29.537\n c11.373-11.373,29.798-11.373,41.171,0s11.373,29.798,0,41.171L70.715,482.463C65.029,488.15,57.579,490.993,50.13,490.993z"]],template:function(c,_){1&c&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1)(2,"path",2),n.qZA())},encapsulation:2,changeDetection:0})}}return a})()},50488:(C,u,o)=>{o.d(u,{v:()=>r});var n=o(65879);let r=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=n.Xpm({type:a,selectors:[["icon-file-color-90"]],decls:6,vars:0,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",1,"icon__svg"],["d","M125.444 21h261.111C444.239 21 491 67.761 491 125.444v261.111C491 444.239 444.239 491 386.556 491H125.444C67.761 491 21 444.239 21 386.556V125.444C21 67.761 67.761 21 125.444 21z","fill","#f58f00"],["d","M360.077 407.446H148.422c-12.52 0-18.803 0-24.39-2.851a25.967 25.967 0 0 1-11.408-11.408c-2.846-5.584-2.846-11.867-2.846-24.387V240.333a5.222 5.222 0 0 1 10.444 0V368.8c0 10.847 0 16.294 1.708 19.645a15.579 15.579 0 0 0 6.849 6.849c3.348 1.708 8.795 1.708 19.642 1.708h211.656c10.847 0 16.294 0 19.65-1.708a15.545 15.545 0 0 0 6.839-6.844c1.714-3.356 1.714-8.802 1.714-19.65V240.333c0-2.884 2.336-5.222 5.222-5.222s5.222 2.338 5.222 5.222V368.8c0 12.52 0 18.803-2.851 24.387a25.915 25.915 0 0 1-11.398 11.408c-5.595 2.851-11.878 2.851-24.398 2.851z","fill","#ffffff"],["d","M254.261 321.999c-2.545 0-5.09-.291-7.563-.872-5.623-1.321-10.284-4.35-19.571-10.383l-100.602-65.398c-2.632-1.708-4.697-3.05-6.296-4.363-.008.796-.008 1.703-.008 2.736a5.222 5.222 0 0 1-10.444 0c0-4.779 0-7.413.844-10.161a19.097 19.097 0 0 1 3.611-6.65c1.846-2.211 4.054-3.644 8.06-6.247l.972-.607c.974-.66 2.058-1.362 3.256-2.142l25.764-15.962a5.228 5.228 0 0 1 7.186 1.683 5.221 5.221 0 0 1-1.67 7.188l-28.829 17.982c-1.428.969-2.558 1.805-2.848 2.246-.13.331-.133.826.048 1.255.444.648 3.289 2.496 6.043 4.284l100.604 65.395c8.269 5.375 12.418 8.073 16.268 8.976 3.379.796 6.954.796 10.345 0 3.845-.903 7.997-3.6 16.268-8.976L376.3 236.589c2.759-1.79 5.605-3.639 6.099-4.386.128-.329.128-.824-.051-1.255-.224-.324-1.066-.959-2.198-1.739l-23.944-13.012a5.229 5.229 0 0 1-2.111-7.045c1.357-2.53 4.498-3.496 7.028-2.17l20.44 10.676c1.515.977 2.846 1.833 4.003 2.624l.306.168c4.36 2.81 6.569 4.243 8.415 6.456a19.106 19.106 0 0 1 3.611 6.648c.841 2.756.841 5.388.841 10.164 0 2.884-2.336 5.222-5.222 5.222s-5.222-2.338-5.222-5.222c0-1.033 0-1.938-.01-2.734-1.596 1.313-3.662 2.654-6.298 4.363l-100.594 65.395c-9.292 6.033-13.953 9.062-19.573 10.383a33 33 0 0 1-7.559.874z","fill","#ffffff"],["d","m250.612 258.292-26.218-27.126 7.512-7.257 18.706 19.354 41.673-43.114 7.507 7.257zM209.224 188.893h-50.871a5.222 5.222 0 0 1 0-10.444h50.871c5.671 0 9.096 0 10.613-.773a7.057 7.057 0 0 0 3.098-3.101c.773-1.515.773-4.939.773-10.61v-50.871a5.222 5.222 0 0 1 10.444 0v50.871c0 7.479 0 11.6-1.91 15.35a17.442 17.442 0 0 1-7.662 7.665c-3.756 1.913-7.877 1.913-15.356 1.913z","fill","#ffffff"],["d","M352.091 261.219a5.218 5.218 0 0 1-5.222-5.22V123.463c0-4.666-3.973-8.463-8.853-8.463H230.922l-70.661 70.14v68.248a5.222 5.222 0 0 1-10.444 0v-70.423c0-1.392.556-2.726 1.543-3.708l73.731-73.188a5.23 5.23 0 0 1 3.68-1.515h109.246c10.643 0 19.298 8.481 19.298 18.908v132.537a5.222 5.222 0 0 1-5.224 5.22z","fill","#ffffff"]],template:function(c,_){1&c&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5),n.qZA())},encapsulation:2,changeDetection:0})}}return a})()},46568:(C,u,o)=>{o.d(u,{J:()=>r});var n=o(65879);let r=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=n.Xpm({type:a,selectors:[["icon-message-question-square"]],standalone:!0,features:[n.jDz],decls:2,vars:0,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",1,"icon__svg"],["d","M467.027 279.74V147.615c0-20.705-.005-35.682-.967-47.461-.954-11.671-2.8-19.392-6.031-25.733a64.24 64.24 0 0 0-28.071-28.072c-6.342-3.23-14.064-5.077-25.733-6.03-11.779-.962-26.757-.968-47.462-.968H153.237c-20.705 0-35.
1682.005-47.461.968-11.671.954-19.392 2.8-25.733 6.03a64.24 64.24 0 0 0-28.072 28.072c-3.23 6.341-5.077 14.063-6.03 25.733-.962 11.779-.968 26.756-.968 47.461v151.694c0 23.342.077 33.218 2.186 41.091a64.24 64.24 0 0 0 45.419 45.419c7.873 2.109 17.749 2.186 41.091 2.186 5.066.002 9.175 4.109 9.175 9.175v57.138c0 6.699.009 11.093.295 14.255.173 1.905.41 2.769.502 3.056a3.02 3.02 0 0 0 2.07.995c.274-.105 1.099-.443 2.706-1.506 2.65-1.752 6.085-4.488 11.317-8.673l58.366-46.691c11.636-9.308 18.423-14.795 26.082-18.708a82.6 82.6 0 0 1 20.967-7.357c8.425-1.729 17.15-1.685 32.05-1.685h61.564c20.705 0 35.683-.005 47.462-.968 11.67-.953 19.392-2.799 25.733-6.03a64.24 64.24 0 0 0 28.071-28.072c3.231-6.341 5.077-14.063 6.031-25.733.962-11.779.967-26.756.967-47.461m-207.111 10.393c5.065.002 9.173 4.11 9.175 9.175 0 5.066-4.11 9.173-9.175 9.175h-.251c-5.066-.002-9.175-4.109-9.175-9.175.002-5.065 4.11-9.173 9.175-9.175zm-10.134-37.408v-26.818a9.175 9.175 0 0 1 6.272-8.7l.081-.028c.075-.026.199-.065.367-.125.342-.122.867-.322 1.551-.583 1.37-.522 3.371-1.314 5.778-2.384 4.842-2.152 11.226-5.356 17.544-9.569 13.197-8.799 23.421-20.154 23.422-33.618v-.018a45.85 45.85 0 0 0-10.77-29.586 45.84 45.84 0 0 0-78.302 14.309l-17.311-6.084a64.19 64.19 0 0 1 71.393-41.969 64.2 64.2 0 0 1 38.251 21.934 64.18 64.18 0 0 1 15.088 41.414l-.054 2.151c-1.025 22.055-17.679 37.495-31.539 46.735-7.432 4.955-14.803 8.634-20.276 11.066-1.128.501-2.183.943-3.145 1.344v20.527a9.177 9.177 0 0 1-9.175 9.175c-5.066 0-9.174-4.11-9.175-9.175Zm-34.057-97.118c-1.682 4.78-6.922 7.291-11.702 5.609a9.17 9.17 0 0 1-5.609-11.693zM485.377 279.74c0 20.402.007 36.258-1.03 48.957-1.046 12.806-3.198 23.211-7.965 32.57a82.6 82.6 0 0 1-36.091 36.091c-9.359 4.768-19.765 6.919-32.57 7.966-12.7 1.038-28.557 1.03-48.958 1.03h-61.564c-15.633 0-22.182.041-28.359 1.308a64.3 64.3 0 0 0-16.307 5.725c-5.617 2.87-10.764 6.924-22.974 16.692l-58.357 46.691c-4.945 3.957-9.149 7.328-12.66 9.65-3.369 2.227-7.636 4.572-12.616 4.578a21.41 21.41 0 0 1-16.756-8.047c-3.107-3.892-3.944-8.692-4.31-12.714-.381-4.192-.368-9.586-.368-15.922v-47.989c-16.722-.037-27.453-.319-36.665-2.786a82.59 82.59 0 0 1-58.393-58.393c-2.892-10.795-2.813-23.678-2.813-45.84V147.613c0-20.402-.007-36.258 1.03-48.957 1.046-12.806 3.197-23.211 7.965-32.57a82.6 82.6 0 0 1 36.091-36.091c9.359-4.768 19.765-6.919 32.57-7.966 12.699-1.038 28.556-1.03 48.957-1.03H358.76c20.402 0 36.258-.007 48.958 1.03 12.805 1.046 23.211 3.197 32.57 7.966a82.6 82.6 0 0 1 36.091 36.091c4.767 9.359 6.919 19.764 7.965 32.57 1.038 12.699 1.03 28.556 1.03 48.957v132.125Z"]],template:function(c,_){1&c&&(n.O4$(),n.TgZ(0,"svg",0),n._UZ(1,"path",1),n.qZA())},encapsulation:2})}}return a})()},56703:(C,u,o)=>{o.d(u,{v:()=>V});var n=o(56223),r=o(96814),a=o(48180),M=o(56208),s=o(71993),c=o(61766),_=o(43735),f=o(46568),p=o(16841),t=o(65879),y=o(84221),E=o(14961),T=o(9596),m=o(69862),A=o(31759),L=o(50152);function I(l,h){if(1&l){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",46)(2,"icon-close",47),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.consultationForm.name="")}),t.qZA()()()}}function F(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.enter_your_name")," "))}function U(l,h){if(1&l&&(t.TgZ(0,"div",48)(1,"div",49),t.YNc(2,F,3,3,"div",50),t.qZA()()),2&l){t.oxw();const e=t.MAs(21);t.xp6(2),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.name?null:e.controls.name.hasError("required"))}}function J(l,h){if(1&l){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",46)(2,"icon-close",47),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.consultationForm.email="")}),t.qZA()()()}}function B(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.enter_email")," "))}function b(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.email_error")," "))}function K(l,h){if(1&l&&(t.TgZ(0,"div",48)(1,"div",49),t.YNc(2,B,3,3,"div",50),t.YNc(3,b,3,3,"div",50),t.qZA()()),2&l){t.oxw();const e=t.MAs(21);t.xp6(2),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.email?null:e.controls.email.hasError("required")),t.xp6(1),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.email?null:e.controls.email.hasError("pattern"))}}function q(l,h){if(1&l){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",46)(2,"icon-close",47),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.consultationForm.phone="")}),t.qZA()()()}}function N(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.enter_phone")," "))}function R(l,h){if(1&l&&(t.TgZ(0,"div",48)(1,"div",49),t.YNc(2,N,3,3,"div",50),t.qZA()()),2&l){t.oxw();const e=t.MAs(21);t.xp6(2),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.phone?null:e.controls.phone.hasError("required"))}}function w(l,h){if(1&l){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",46)(2,"icon-close",47),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.consultationForm.company="")}),t.qZA()()()}}function k(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.enter_your_company_name")," "))}function W(l,h){if(1&l&&(t.TgZ(0,"div",48)(1,"div",49),t.YNc(2,k,3,3,"div",50),t.qZA()()),2&l){t.oxw();const e=t.MAs(21);t.xp6(2),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.company?null:e.controls.company.hasError("required"))}}function Q(l,h){if(1&l){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",46)(2,"icon-close",47),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.consultationForm.post="")}),t.qZA()()()}}function z(l,h){1&l&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"consultation.enter_your_position_or_department")," "))}function j(l,h){if(1&l&&(t.TgZ(0,"div",48)(1,"div",49),t.YNc(2,z,3,3,"div",50),t.qZA()()),2&l){t.oxw();const e=t.MAs(21);t.xp6(2),t.Q6J("ngIf",null==e||null==e.controls||null==e.controls.post?null:e.controls.post.hasError("required"))}}function Y(l,h){1&l&&t._UZ(0,"div",51)}const S=function(l){return{"modal--active":l}}
1,P=function(l){return{"input--red":l}};let V=(()=>{class l{constructor(e,v,i,g,d,Z){this.translate=e,this.store=v,this.destroy=i,this.route=g,this.utils=d,this.http=Z,this.modalOpened=!1,this.loading=!1,this.emailPattern=/^[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/i,this.supportSuccess=!1,this.sendingText="",this.utm=null,this.consultationForm={name:"",phone:"",email:"",company:"",post:"",buttonText:this.translate.instant("consultation.send_request")}}ngOnInit(){this.store.select("userInfo").pipe((0,s.sL)(this.destroy)).subscribe(e=>{this.consultationForm.name=`${e.user?.firstName||""} ${e.user?.lastName||""}`.trim(),this.consultationForm.phone=e.user?.phone||"",this.consultationForm.email=e.user_name||""}),this.translate.onLangChange.pipe((0,s.sL)(this.destroy)).subscribe(()=>{this.consultationForm.buttonText=this.consultationForm.buttonText?.length?this.translate.instant("consultation.send_request"):null,this.sendingText=this.translate.instant("consultation.send_request")}),this.route.queryParams.pipe((0,s.sL)(this.destroy)).subscribe(e=>{this.utm=this.utils.getUtmBody(e)})}
1isInvalidValid(e){return e?.invalid||!1}get isAllFieldsHas(){return this.consultationForm?.phone?.length>0&&this.consultationForm?.email?.length>0&&this.consultationForm?.name?.length>0&&this.consultationForm?.company?.length>0&&this.consultationForm?.post?.length>0}getConsultation(){this.isAllFieldsHas&&(this.loading=!0,this.consultationForm.buttonText=null,this.http.post("/cabinet/subscription",{phone:this.consultationForm.phone,email:this.consultationForm.email,name:this.consultationForm.name,company:this.consultationForm.company,post:this.consultationForm.post,type:"CONTACT",description:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044e",utm:this.utm}).pipe((0,a.q)(1)).subscribe(()=>{this.loading=!1,this.closeModal(),this.consultationForm.buttonText=this.sendingText,this.supportSuccess=!0},v=>{this.loading=!1,this.consultationForm.buttonText=this.sendingText}))}validatePhoneInput(e){this.consultationForm.phone=e.target.value.replace(/[^0-9+\-() ]/g,"")}closeModal(){this.modalOpened=!1}static{this.\u0275fac=function(v){return new(v||l)(t.Y36(c.sK),t.Y36(y.yh),t.Y36(t.ktI),t.Y36(E.gz),t.Y36(T.FW),t.Y36(m.eN))}}static{this.\u0275cmp=t.Xpm({type:l,selectors:[["app-consultation"]],standalone:!0,features:[t._Bn([(0,_.e$)()]),t.jDz],decls:92,vars:80,consts:[[1,"promo-banner"],[1,"consultation"],[1,"consultation__icon"],[1,"icon","icon--blue","icon--56"],[1,"consultation__title"],[1,"title","title--h4"],[1,"consultation__text"],[1,"text","text--t2"],[1,"consultation__button"],[1,"button","button--secondary",3,"click"],[1,"modal","modal--400",3,"ngClass","closeRequest"],["data-except-click","true",1,"modal__container"],["consultation","ngForm"],[1,"modal__header"],[1,"modal__title","title","title--h5"],[1,"modal__close"],["type","button",1,"button","button--icon",3,"click"],[1,"button__icon","icon"],[1,"modal__body"],[1,"modal__layout"],[1,"input","input--expand",3,"ngClass"],["for","name",1,"input__label"],[1,"input__container"],["type","text","name","name","required","","id","name",1,"input__control",3,"ngModel","placeholder","ngModelChange"],["name","ngModel"],["class","input__actions",4,"ngIf"],["class","input__validation",4,"ngIf"],["for","email",1,"input__label"],["type","email","name","email","required","","id","email","autocomplete","email",1,"input__control",3,"ngModel","pattern","placeholder","ngModelChange"],["email","ngModel"],["for","phone",1,"input__label"],["type","text","name","phone","placeholder","+7 (___) ___-__-__","required","","id","phone",1,"input__control",3,"ngModel","validation","prefix","mask","ngModelChange","input"],["phone","ngModel"],["for","company",1,"input__label"],["type","text","name","company","required","","id","company",1,"input__control",3,"ngModel","placeholder","ngModelChange"],["company","ngModel"],["for","post",1,"input__label"],["type","text","name","post","required","","id","post",1,"input__control",3,"ngModel","placeholder","ngModelChange"],["post","ngModel"],[1,"modal__footer"],[1,"group","group--vertical","group--20"],[1,"group__item"],["type","submit",1,"button","button--expand",3,"disabled","click"],["class","button__loader loader loader--24",4,"ngIf"],[3,"title","opened","close"],[1,"input__actions"],[1,"input__action","icon"],[3,"click"],[1,"input__validation"],[1,"input__validation-message"],[4,"ngIf"],[1,"button__loader","loader","loader--24"]],template:function(v,i){if(1&v&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t._UZ(4,"icon-message-question-square"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"div",6)(10,"div",7),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",8)(14,"button",9),t.NdJ("click",function(){return i.modalOpened=!0}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()(),t.TgZ(17,"div",10),t.NdJ("closeRequest",function(){return i.closeModal()}),t._uU(18," > "),t.TgZ(19,"div",11)(20,"form",null,12)(22,"div",13)(23,"div",14),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"div",15)(27,"button",16),t.NdJ("click",function(){return i.closeModal()}),t.TgZ(28,"span",17),t._UZ(29,"icon-close"),t.qZA()()()(),t.TgZ(30,"div",18)(31,"div",19)(32,"div",20)(33,"label",21),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",22)(37,"input",23,24),t.NdJ("ngModelChange",function(d){return i.consultationForm.name=d}),t.ALo(39,"translate"),t.qZA(),t.YNc(40,I,3,0,"div",25),t.qZA(),t.YNc(41,U,3,1,"div",26),t.qZA()(),t.TgZ(42,"div",19)(43,"div",20)(44,"label",27),t._uU(45," Email "),t.qZA(),t.TgZ(46,"div",22)(47,"input",28,29),t.NdJ("ngModelChange",function(d){return i.consultationForm.email=d}),t.ALo(49,"translate"),t.qZA(),t.YNc(50,J,3,0,"div",25),t.qZA(),t.YNc(51,K,4,2,"div",26),t.qZA()(),t.TgZ(52,"div",19)(53,"div",20)(54,"label",30),t._uU(55),t.ALo(56,"translate"),t.qZA(),t.TgZ(57,"div",22)(58,"input",31,32),t.NdJ("ngModelChange",function(d){return i.consultationForm.phone=d})("input",function(d){return i.validatePhoneInput(d)}),t.qZA(),t.YNc(60,q,3,0,"div",25),t.qZA(),t.YNc(61,R,3,1,"div",26),t.qZA()(),t.TgZ(62,"div",19)(63,"div",20)(64,"label",33),t._uU(65),t.ALo(66,"translate"),t.qZA(),t.TgZ(67,"div",22)(68,"input",34,35),t.NdJ("ngModelChange",function(d){return i.consultationForm.company=d}),t.ALo(70,"translate"),t.qZA(),t.YNc(71,w,3,0,"div",25),t.qZA(),t.YNc(72,W,3,1,"div",26),t.qZA()(),t.TgZ(73,"div",19)(74,"div",20)(75,"label",36),t._uU(76),t.ALo(77,"translate"),t.qZA(),t.TgZ(78,"div",22)(79,"input",37,38),t.NdJ("ngModelChange",function(d){return i.consultationForm.post=d}),t.ALo(81,"translate"),t.qZA(),t.YNc(82,Q,3,0,"div",25),t.qZA(),t.YNc(83,j,3,1,"div",26),t.qZA()()(),t.TgZ(84,"div",39)(85,"div",40)(86,"div",41)(87,"button",42),t.NdJ("click",function(){return i.getConsultation()}),t._uU(88),t.ALo(89,"translate"),t.YNc(90,Y,1,0,"div",43),t.qZA()()()()()()(),t.TgZ(91,"app-support",44),t.NdJ("close",function(){return i.supportSuccess=!1}),t.qZA()),2&v){const g=t.MAs(21),d=t.MAs(38),Z=t.MAs(48),x=t.MAs(59),O=t.MAs(69),D=t.MAs(80);t.xp6(7),t.hij(" ",t.lcZ(8,42,"consultation.have_questions_about_kompra_service")," "),t.xp6(4),t.hij(" ",t.lcZ(12,44,"consultation.submit_request_to_get_consultation")," "),t.xp6(4),t.hij(" ",t.lcZ(16,46,"consultation.get_consultation")," "),t.xp6(2),t.Q6J("ngClass",t.VKq(68,S,i.modalOpened)),t.xp6(7),t.hij(" ",t.lcZ(25,48,"consultation.get_consultation")," "),t.xp6(8),t.Q6J("ngClass",t.VKq(70,P,d.invalid&&(d.dirty||d.touched))
1),t.xp6(2),t.hij(" ",t.lcZ(35,50,"consultation.name")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(39,52,"consultation.enter_your_name")),t.Q6J("ngModel",i.consultationForm.name),t.xp6(3),t.Q6J("ngIf",null==i.consultationForm||null==i.consultationForm.name?null:i.consultationForm.name.length),t.xp6(1),t.Q6J("ngIf",d.invalid&&(d.dirty||d.touched)),t.xp6(2),t.Q6J("ngClass",t.VKq(72,P,Z.invalid&&(Z.dirty||Z.touched))),t.xp6(4),t.s9C("placeholder",t.lcZ(49,54,"consultation.enter_email")),t.Q6J("ngModel",i.consultationForm.email)("pattern",i.emailPattern),t.xp6(3),t.Q6J("ngIf",null==i.consultationForm||null==i.consultationForm.email?null:i.consultationForm.email.length),t.xp6(1),t.Q6J("ngIf",Z.invalid&&(Z.dirty||Z.touched)),t.xp6(2),t.Q6J("ngClass",t.VKq(74,P,x.invalid&&(x.dirty||x.touched))),t.xp6(2),t.hij(" ",t.lcZ(56,56,"consultation.phone")," "),t.xp6(3),t.Q6J("ngModel",i.consultationForm.phone)("validation",!0)("prefix","+7")("mask","(999) 999 99 99"),t.xp6(2),t.Q6J("ngIf",null==i.consultationForm||null==i.consultationForm.phone?null:i.consultationForm.phone.length),t.xp6(1),t.Q6J("ngIf",x.invalid&&(x.dirty||x.touched)),t.xp6(2),t.Q6J("ngClass",t.VKq(76,P,O.invalid&&(O.dirty||O.touched))),t.xp6(2),t.hij(" ",t.lcZ(66,58,"consultation.company")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(70,60,"consultation.enter_your_company_name")),t.Q6J("ngModel",i.consultationForm.company),t.xp6(3),t.Q6J("ngIf",null==i.consultationForm||null==i.consultationForm.company?null:i.consultationForm.company.length),t.xp6(1),t.Q6J("ngIf",O.invalid&&(O.dirty||O.touched)),t.xp6(2),t.Q6J("ngClass",t.VKq(78,P,D.invalid&&(D.dirty||D.touched))),t.xp6(2),t.hij(" ",t.lcZ(77,62,"consultation.position_department")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(81,64,"consultation.enter_your_position_or_department")),t.Q6J("ngModel",i.consultationForm.post),t.xp6(3),t.Q6J("ngIf",null==i.consultationForm||null==i.consultationForm.post?null:i.consultationForm.post.length),t.xp6(1),t.Q6J("ngIf",D.invalid&&(D.dirty||D.touched)),t.xp6(4),t.Q6J("disabled",i.isInvalidValid(g)||i.loading),t.xp6(1),t.hij(" ",t.lcZ(89,66,"consultation.send_request")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("title","consultation.get_consultation")("opened",i.supportSuccess)}},dependencies:[n.u5,n._Y,n.Fj,n.JJ,n.JL,n.Q7,n.c5,n.On,n.F,r.O5,n.UX,r.mk,M.m,A.Y,L.D,c.X$,_.Z6,f.J,p.z],encapsulation:2})}}return l})()},18897:(C,u,o)=>{o.d(u,{B:()=>p});var n=o(96814),r=o(56223),a=o(69862),M=o(36091),s=o(20783),c=o(87719),_=o(9596),f=o(65879);let p=(()=>{class t{static{this.\u0275fac=function(T){return new(T||t)}}static{this.\u0275mod=f.oAB({type:t})}static{this.\u0275inj=f.cJS({providers:[{provide:M.A4,useValue:M.A4},M.N0,c.o,_.FW],imports:[n.ez,r.u5,a.JF,s.X_]})}}return t})()},63734:(C,u,o)=>{o.d(u,{_:()=>r});var n=o(65879);let r=(()=>{class a{constructor(s){this.elementRef=s,this.clickOutside=new n.vpe}onClick(s){s?.matches("a, svg, path, rect")&&!s?.classList?.contains("not-ignor-outside")||String(s?.className||"").includes("apexcharts-legend-text")||this.hasMatCalendarDataExceptClickAttribute(s)||"input"===s?.tagName.toLowerCase()&&"true"===s?.getAttribute("data-except-click")||this.hasDataExceptClickAttribute(s)||!this.enabled||this.elementRef.nativeElement.contains(s)||this.clickOutside.emit()}hasMatCalendarDataExceptClickAttribute(s){if(s?.className)return String(s?.className||"").includes("mat-")||String(s?.className||"").includes("mdc-");for(const c of this.getParents(s))if(String(c?.className||"").includes("mat-")||String(c?.className||"").includes("mdc-"))return!0;return!1}hasDataExceptClickAttribute(s){if("true"===s.getAttribute("data-except-click"))return!0;for(const c of this.getParents(s))if(c.getAttribute("data-except-click"))return!0;return!1}*getParents(s){for(;s=s.parentElement;)yield s}static{this.\u0275fac=function(c){return new(c||a)(n.Y36(n.SBq))}}static{this.\u0275dir=n.lG2({type:a,selectors:[["","clickOutside",""]],hostBindings:function(c,_){1&c&&n.NdJ("click",function(p){return _.onClick(p.target)},!1,n.evT)},inputs:{enabled:["clickOutsideEnabled","enabled"]},outputs:{clickOutside:"clickOutside"},standalone:!0})}}return a})()},83620:(C,u,o)=>{o.d(u,{b:()=>M});var n=o(16321),r=o(79360),a=o(8251);function M(s,c=n.z){return(0,r.e)((_,f)=>{let p=null,t=null,y=null;const E=()=>
1{if(p){p.unsubscribe(),p=null;const m=t;t=null,f.next(m)}};function T(){const m=y+s,A=c.now();if(A<m)return p=this.schedule(void 0,m-A),void f.add(p);E()}_.subscribe((0,a.x)(f,m=>{t=m,y=c.now(),p||(p=c.schedule(T,s),f.add(p))},()=>{E(),f.complete()},void 0,()=>{t=p=null}))})}}}]);
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.