1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5fac9d81-a150-56ee-856c-2cd6e90aec71")}catch(e){}}(); 3import{a as Le}from"./chunk-DOP7N3ZR.js";import{a as B}from"./chunk-CEASNSCG.js";import"./chunk-5FL4OI7B.js";import"./chunk-CMWXI3RU.js";import"./chunk-UCK4FYGQ.js";import"./chunk-GNHERFY5.js";import{a as Ve}from"./chunk-OYGGVNKF.js";import"./chunk-VDTYNO6X.js";import{a as Ne}from"./chunk-ZAVNVNYE.js";import"./chunk-ESEIMO4G.js";import"./chunk-WXOSWNUC.js";import{b as Q}from"./chunk-MDPN7EUR.js";import{a as M}from"./chunk-H7PJWO3R.js";import{a as g}from"./chunk-RL72SING.js";import"./chunk-AW3IPUPW.js";import{a as ke}from"./chunk-DUUURXR7.js";import"./chunk-IORYDFUE.js";import{l as Oe}from"./chunk-WBL5CUJO.js";import"./chunk-B553PLER.js";import"./chunk-KD45SSJH.js";import"./chunk-FDD6WDKG.js";import"./chunk-4SPKOTUZ.js";import"./chunk-6BCNY4NU.js";import"./chunk-2MVHLLCS.js";import"./chunk-4XXIEPQD.js";import"./chunk-FZDWNW7F.js";import"./chunk-JETPG5AV.js";import{a as Be}from"./chunk-7RKEGIFI.js";import"./chunk-7YM3KHLM.js";import"./chunk-5MXMY3R5.js";import"./chunk-AXK6FIK2.js";import"./chunk-YWVASRBZ.js";import"./chunk-GZQOUTRI.js";import{a as Re}from"./chunk-HEMLWP4S.js";import{a as De,d as U}from"./chunk-T5N72PBF.js";import"./chunk-OXWZC74R.js";import"./chunk-LECWUFSV.js";import"./chunk-RLI2KNMN.js";import"./chunk-WSHVDWJV.js";import{i as xe,j as be,n as ve,p as we}from"./chunk-CUSGE7JV.js";import"./chunk-AESV6YAN.js";import"./chunk-JNFXVYQX.js";import"./chunk-2SKOQBZW.js";import"./chunk-FV6P3LJY.js";import{Qd as je,Sd as Pe,Uc as Fe,Wa as A,hb as Ce}from"./chunk-AQF37UGA.js";import{d as D,e as v,v as k}from"./chunk-ICRZCHAS.js";import"./chunk-3WZBJAGG.js";import"./chunk-5S4GSWQM.js";import"./chunk-PKR6DMSR.js";import"./chunk-X3DVRFTT.js";import"./chunk-UFMNNIBJ.js";import"./chunk-YQZXM67H.js";import"./chunk-L5QO3ISF.js";import{a as Ie}from"./chunk-L7I332VI.js";import"./chunk-C6737PVF.js";import"./chunk-3LFUPBQN.js";import"./chunk-TABTMQZ7.js";import{m as _e,p as he}from"./chunk-DL5HIGYO.js";import"./chunk-NRNL7OY5.js";import{k as ne}from"./chunk-ZWJJ6QV3.js";import"./chunk-QV67L76E.js";import{Aa as ce,Ba as me,Ea as le,Eb as fe,Fb as Te,Hb as ye,Na as ue,Oa as de,Pb as Ae,Tb as Se,Xb as Ee,a as se,cc as Me,e as re,lb as ge,va as pe}from"./chunk-OOLC7UNJ.js";import"./chunk-IQ65XKCP.js";import"./chunk-EJ7P67SK.js";import{a as O}from"./chunk-DLICIVZE.js";import"./chunk-VWQPPZQH.js";import{t as ae}from"./chunk-MZYY3M4F.js";import{a as oe,c as x}from"./chunk-SQGLTEYX.js";import{q as te,u as ie}from"./chunk-4CF7YNSH.js";import{Ac as P,Bc as p,Cc as s,Dc as r,Ec as l,Ed as S,Fd as H,Gd as $,Ja as u,Kb as m,Mc as b,Pd as X,Qd as E,Ra as f,Sa as T,Sc as y,Sd as Y,Ud as ee,Vc as o,Vd as K,Xa as z,ac as w,ec as J,gd as Z,hb as W,id as h,jd as q,kd as R,r as V,uc as d,vc as N,wc as _,x as G,zc as F}from"./chunk-OWVPANHJ.js";import{i as Qe}from"./chunk-6GOPUL35.js";var L=[{value:g.ReadyToStart,name:"\u041D\u0435 \u0437\u0430\u043F\u0443\u0449\u0435\u043D"},{value:g.Active,name:"\u0412 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435"},{value:g.Finished,name:"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D"}];function Ge(t,i){if(t&1){let e=b();s(0,"mg-multiselect",0),y("ngModelChange",function(a){f(e);let C=o();return T(C.onFilter({status:a}))}),s(1,"label",1),h(2,"\u0421\u0442\u0430\u0442\u0443\u0441"),r()(),s(3,"div",2)(4,"mg-input",3),l(5,"i",4),r(),s(6,"mg-datepicker-range",5),y("valueChange",function(a){f(e);let C=o();return T(C.handleChangePeriod(a))}),s(7,"div",6),h(8,"\u0414\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0434\u0430\u0442 \u043F\u043E \u043C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u043C\u0443 \u0447\u0430\u0441\u043E\u0432\u043E\u043C\u0443 \u043F\u043E\u044F\u0441\u0443."),r(),l(9,"app-datepicker-presets",7),r()()}if(t&2){let e=o();p("ngModel",e.query().status)("options",e.statusOptions),m(4),p("formControl",e.searchControl),m(2),p("value",e.query().period),m(3),p("periods",e.presets)}}var qe=(()=>{class t{constructor(){this.#e=u(A),this.#t=u(z),this.query=K(),this.isExistTests=K(!0),this.changeFilter=ee(),this.searchControl=new ce(""),this.statusOptions=L,this.presets=["today","yesterday",7,30,60,90,182,365],this.isCurrentAdvTokenValid=x(this.#e.getCompanyHasPermissions(k[D.Bidder])),this.isCurrentContentTokenValid=x(this.#e.getCompanyHasPermissions([v.Content]))}#e;#t;ngOnInit(){this.#i()}onFilter(e){this.changeFilter.emit(e)}
3handleChangePeriod(e){this.changeFilter.emit({period:e})}#i(){this.searchControl.valueChanges.pipe(re(e=>G(e)),oe(this.#t)).subscribe(e=>{this.changeFilter.emit({keyword:e,offset:0})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-ab-test-filter"]],inputs:{query:[1,"query"],isExistTests:[1,"isExistTests"]},outputs:{changeFilter:"changeFilter"},decls:1,vars:1,consts:[["placeholder","\u0412\u0441\u0435","cleaner","",2,"width","20rem",3,"ngModelChange","ngModel","options"],["mg-label",""],[1,"d-flex","gx-12"],["placeholder","\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u0441\u0442\u0430 \u0438\u043B\u0438 \u0430\u0440\u0442\u0438\u043A\u0443\u043B","cleaner","",2,"width","26rem",3,"formControl"],["mg-prefix","",1,"mg-icon-search"],["needConfirm","",3,"valueChange","value"],["mg-prefix","",1,"mb-12"],["mg-suffix","",3,"periods"]],template:function(n,a){n&1&&d(0,Ge,10,5),n&2&&_(a.isCurrentAdvTokenValid()&&a.isCurrentContentTokenValid()&&a.isExistTests()?0:-1)},dependencies:[de,pe,le,ye,se,_e,ue,me,Me,Se,Le],styles:[`[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--mg-space-12);width:100%} 4/*# sourceMappingURL=ab-test-filter.component-OBRT344J.css.map */`],changeDetection:0})}}return t})();var c=(function(t){return t.Results="results",t.Edit="edit",t.Run="run",t.Remove="remove",t.GoToCampaign="goToCampaign",t.ResultsInProcess="resultsInProcess",t.Stop="stop",t})(c||{});var He=[{icon:"mg-icon-eye-open",name:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B",value:c.Results},{icon:"mg-icon-edit",name:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",value:c.Edit},{icon:"mg-icon-eye-open",name:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B",value:c.ResultsInProcess},{icon:"mg-icon-off",name:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C",value:c.Run},{icon:"mg-icon-off",name:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C",value:c.Stop},{icon:"mg-icon-delete",name:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",value:c.Remove},{icon:"mg-icon-arrow-right-up",name:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0420\u041A",value:c.GoToCampaign}];var ze=(t,i)=>i.config().prop;function We(t,i){t&1&&(s(0,"div",7),l(1,"i",8),r())}function Je(t,i){if(t&1&&(s(0,"div",1),l(1,"mg-text-with-tooltip",6),d(2,We,2,0,"div",7),r()),t&2){let e=o(2);m(),p("text",e.row().name),m(),_(e.row().isCirclePhotos?2:-1)}}function Ze(t,i){if(t&1&&(s(0,"div",9),l(1,"mg-preview",10),s(2,"span",11),h(3,"\u0421\u0435\u0439\u0447\u0430\u0441 \u043D\u0430 wb"),r()()),t&2){let e=o(3);m(),p("nomenclature",e.row().nomenclature)}}function Xe(t,i){if(t&1&&(s(0,"div",2)(1,"div"),h(2),r(),d(3,Ze,4,1,"div",9),r()),t&2){let e=o(2);m(2),R("",e.row().photoCount," \u0448\u0442."),m(),_(e.row().status===e.statuses.Active?3:-1)}}function Ye(t,i){if(t&1&&(s(0,"div")(1,"div"),h(2),S(3,"date"),r(),s(4,"div"),h(5),S(6,"date"),r()()),t&2){let e=o(2);m(2),q($(3,2,e.row().createdAt,"dd.MM.yyyy HH:mm")),m(3),q($(6,5,e.row().updatedAt,"dd.MM.yyyy HH:mm"))}}function et(t,i){if(t&1){let e=b();s(0,"mg-nomenclature-chip",12),y("copied",function(){f(e);let a=o(2);return T(a.toastrService.success("\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E"))}),r()}if(t&2){let e=o(2);p("nomenclature",e.isActiveDemo()?123456789:e.row().nomenclature)("image",e.isActiveDemo()&&"/assets/images/bidder/mock/ab-tests/1.webp")}}function tt(t,i){if(t&1&&(s(0,"mg-status-chip",4),h(1),r()),t&2){let e=o(2);p("color",e.row().status===e.statuses.Active?"green":e.row().status===e.statuses.ReadyToStart?"yellow":"grey"),m(),R(" ",e.status()," ")}}function it(t,i){if(t&1){let e=b();s(0,"app-general-dropdown-action",13),y("doAction",function(a){f(e);let C=o(2);return T(C.doAction(a))}),r()}if(t&2){let e=o(2);p("actionOptions",e.actionOptions)}}function nt(t,i){if(t&1&&(s(0,"app-content-pipe",0),d(1,Je,3,2,"div",1)(2,Xe,4,2,"div",2)(3,Ye,7,8,"div")(4,et,1,2,"mg-nomenclature-chip",3)(5,tt,2,2,"mg-status-chip",4)(6,it,1,1,"app-general-dropdown-action",5),r()
4),t&2){let e,n=i.$implicit,a=o(),C=n.config();p("value",C.pipe==="customTemplate"||a.row()[C.prop])("pipe",C.pipe)("postfix",C.suffix)("column",n)("currencyCode",a.checkedCurrency()),m(),_((e=C.prop)==="name"?1:e==="photoCount"?2:e==="dates"?3:e==="nomenclature"?4:e==="status"?5:e==="actions"?6:-1)}}var I=class t extends xe{constructor(){super(...arguments),this.#e=u(M),this.#t=u(ne),this.#i=u(Be),this.toastrService=u(Ie),this.companyId=this.#e.query.companyId,this.statuses=g,this.isActiveDemo=x(u(A).isActiveDemoCompanies$),this.accountSettings=this.#i.accountSettings,this.isRubAccount=this.#i.isRub,this.status=E(()=>L.find(i=>i.value===this.row().status)?.name??null),this.checkedCurrency=E(()=>Ne(this.isRubAccount(),this.row().createdAt,this.accountSettings()?.currency))}#e;#t;#i;ngOnInit(){this.actionOptions=this.#a()}doAction(i){switch(i){case c.GoToCampaign:this.goToCampaign(this.companyId());break;case c.Edit:this.#s();break;case c.Results:case c.ResultsInProcess:this.#r();break;case c.Run:this.#n();break;case c.Remove:this.remove(this.companyId());break;case c.Stop:this.#o();break}}remove(i){this.#e.removeAbTest({companyId:this.companyId(),abTestId:this.row().id})}goToCampaign(i){let e=this.#t.createUrlTree(this.row().campaignStatus!==Re.Archived?["/wb/bidder/campaigns/common",this.companyId(),this.row().campaignId,ae(this.row().advertisingGroupIds),Ve(this.row().wbType,this.row().bidType)===De.SearchCatalog?U.Manual:U.Unified,"info"]:["/wb/bidder/campaigns/list"]);window.open(e.toString(),"_blank")}#n(){this.#e.runAbTest({companyId:this.companyId(),abTestId:this.row().id})}#o(){this.#e.stopAbTest({companyId:this.companyId(),abTestId:this.row().id})}#s(){this.#t.navigate([`/wb/bidder/create-ab/${this.companyId()}`],{queryParams:{abTestId:this.row().id}})}#r(){this.#t.navigate([`/wb/bidder/ab/${this.companyId()}/${this.row().id}`])}#a(){return He.map(i=>{switch(i.value){case c.Edit:return this.row().status!==g.Finished?i:null;case c.Results:return this.row().status===g.Finished?i:null;case c.Remove:return this.row().status===g.Finished||this.row().status===g.ReadyToStart?i:null;case c.Run:return this.row().status===g.ReadyToStart?i:null;case c.ResultsInProcess:return this.row().status===g.Active?i:null;case c.Stop:return this.row().status===g.Active?i:null;default:return i}}).filter(i=>!!i)}static{this.\u0275fac=(()=>{let i;return function(n){return(i||(i=W(t)))(n||t)}})()}static{this.\u0275cmp=w({type:t,selectors:[["app-ab-tests-row"]],hostAttrs:[1,"mg-table-row"],features:[J],decls:2,vars:0,consts:[["mgTableRowCell","",3,"value","pipe","postfix","column","currencyCode"],[1,"d-flex","align-items-center","g-8","overflow-hidden"],[1,"d-flex","flex-column","g-6"],[3,"nomenclature","image"],[3,"color"],[3,"actionOptions"],[3,"text"],["mgHint","\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E \u0446\u0438\u043A\u043B\u0438\u0447\u043D\u043E\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0439 \u0432 \u0442\u0435\u0441\u0442\u0435. \u0424\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u044F\u044E\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441","mgHintDirection","right","mgHintMaxWidth","246",1,"cycle"],[1,"mg-icon-cycle","fs-m"],[1,"d-flex","align-items-center","g-4"],["size","2","radius","0.6","withoutCac
4he","",3,"nomenclature"],[1,"color-accent-30"],[3,"copied","nomenclature","image"],[3,"doAction","actionOptions"]],template:function(e,n){e&1&&F(0,nt,7,6,"app-content-pipe",0,ze),e&2&&P(n.columns())},dependencies:[Ae,Oe,he,ge,Ee,Te,fe,Fe,be,ie],styles:[`[_nghost-%COMP%]{cursor:initial}.mg-table-row[_nghost-%COMP%]:hover .mg-table-row-cell[_ngcontent-%COMP%]{background-color:var(--mg-color-light)}[_nghost-%COMP%] mg-text-with-tooltip[_ngcontent-%COMP%]{font:var(--mg-font-medium-xs)}[_nghost-%COMP%] .cycle[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem;padding:var(--mg-space-4);border-radius:var(--mg-radius-6);background:var(--mg-color-yellow-20);color:var(--mg-color-yellow-50)} 5/*# sourceMappingURL=ab-tests-row.component-CDSQJLHZ.css.map */`],changeDetection:0})}};V([Q()],I.prototype,"remove",null);V([Q()],I.prototype,"goToCampaign",null);var $e=[{title:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u0441\u0442\u0430",prop:"name",type:"string",active:!0,pipe:"customTemplate",style:{"--mg-table-column-width":"25.6rem","--mg-table-column-max-width":"25.6rem"}},{title:"\u0422\u043E\u0432\u0430\u0440",prop:"nomenclature",type:"string",active:!0,pipe:"customTemplate",style:{"--mg-table-column-width":"22.8rem","--mg-table-column-max-width":"22.8rem"}},{title:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0444\u043E\u0442\u043E",prop:"photoCount",type:"number",active:!0,pipe:"customTemplate",suffix:"\u0448\u0442."},{title:"\u0421\u0442\u0430\u0432\u043A\u0430",prop:"cpm",type:"number",active:!0,pipe:"currency"},{title:"\u041F\u043E\u043A\u0430\u0437\u044B \u043D\u0430 \u043E\u0434\u043D\u043E \u0444\u043E\u0442\u043E",prop:"viewsLimit",type:"number",active:!0,pipe:"number"},{title:"\u0420\u0430\u0441\u0445\u043E\u0434\u044B \u043D\u0430 \u043E\u0434\u043D\u043E \u0444\u043E\u0442\u043E",prop:"expenses",type:"number",active:!0,pipe:"currency"},{title:`\u0414\u0430\u0442\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F/ 6\u0414\u0430\u0442\u0430 \u043F\u043E\u0441\u043B.\u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0438`,prop:"dates",type:"string",pipe:"customTemplate",active:!0},{title:"\u0421\u0442\u0430\u0442\u0443\u0441",prop:"status",type:"string",active:!0,pipe:"customTemplate",style:{"--mg-table-column-width":"10rem","--mg-table-column-max-width":"10rem"}},{title:"",prop:"actions",type:"string",active:!0,pipe:"customTemplate",style:{"--mg-table-column-width":"4rem","--mg-table-column-max-width":"4rem"}}];var ot=(t,i)=>i.prop,st=(t,i)=>i.id;function rt(t,i){if(t&1&&(s(0,"mg-table-header-cell",8),h(1),r()),t&2){let e=i.$implicit;Z(e.style),p("config",e),m(),R(" ",e.title," ")}}function at(t,i){if(t&1&&l(0,"app-ab-tests-row",6),t&2){let e=i.$implicit;p("row",e)}}function pt(t,i){if(t&1){let e=b();s(0,"mg-pagination",9),y("indexChange",function(a){f(e);let C=o(5);return T(C.pageChanged(a))}),r()}if(t&2){let e=o(5);p("count",e.count())("elementsOnPage",e.query().limit)("index",e.query().offset/e.query().limit)}}function ct(t,i){if(t&1&&(s(0,"mg-table",4),F(1,rt,2,4,"mg-table-header-cell",5,ot),F(3,at,1,1,"app-ab-tests-row",6,st),r(),d(5,pt,1,3,"mg-pagination",7)),t&2){let e=o(4);p("emptyContent",e.emptyMessage)("isLoading",e.isLoading())("total",e.count()),m(),P(e.columnsHeading),m(2),P(e.abList()),m(2),_(!e.isLoading()&&e.count()>e.query().limit?5:-1)}}function mt(t,i){t&1&&(s(0,"div",3),l(1,"img",10)(2,"app-placeholder-v2",11),r()),t&2&&(m(2),p("isWithCompanyId",!1))}function lt(t,i){if(t&1&&d(0,ct,6,4)(1,mt,3,1,"div",3),t&2){let e=o(3);_(e.isExistsTests()?0:1)}}function ut(t,i){t&1&&(s(0,"div",2),l(1,"mg-loader",12),r())}function dt(t,i){if(t&1&&d(0,lt,2,1)(1,ut,2,0,"div",2),t&2){let e=o(2);_(e.isLoadingMainCount()?1:0)}}function _t(t,i){if(t&1&&l(0,"app-placeholder-v2",1),t&2){let e=o(2);p("invalidKeys",e.invalidKeys())}}function Ct(t,i){if(t&1&&d(0,dt,2,1)(1,_t,1,1,"app-placeholder-v2",1),t&2){let e=o();_(e.isCurrentAdvTokenValid()&&e.isCurrentContentTokenValid()?0:1)}}function gt(t,i){if(t&1&&l(0,"app-placeholder-v2",0),t&2){let e=o();p("existKeys",e.existKeys())}}var Ke=(()=>{class t{constructor(){this.#e=u(M),this.#t=u(A),this.isExistsTests=this.#e.isExistsTests,this.isLoadingMainCount=this.#e.isLoadingMainCount,this.isExistAdvToken=x(this.#t.getCompanyHasPermissions(k[D.Bidder],!0)),this.isExistContentToken=x(this.#t.getCompanyHasPermissions([v.Content],!0)),this.isCurrentAdvTokenValid=x(this.#t.getCompanyHasPermissions(k[D.Bidder])),this.isCurrentContentTokenValid=x(this.#t.getCompanyHasPermissions([v.Content])),this.existKeys=E(()=>{let e=[];return this.isExistAdvToken()&&e.push(v.Advertising),this.isExistContentToken()&&e.push(v.Analytics),e}),this.invalidKeys=E(()=>{let e=[];return this.isCurrentAdvTokenValid()||e.push(v.Advertising),this.isCurrentContentTokenValid()||e.push(v.Analytics),e}),this.abList=this.#e.abList,this.count=this.#e.count,this.isLoading=this.#e.isLoading,this.query=this.#e.query,this.emptyMessage="\u0417\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u043F\u0435\u0440\u0438\u043E\u0434 \u0410-\u0412 \u0442\u0435\u0441\u0442\u043E\u0432 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E.",this.columnsHeading=$e}#e;#t;ngOnInit(){this.#i()}ngOnDestroy(){this.subscription&&this.subscription.destroy()}pageChanged(e){this.#e.updateQuery({offset:this.query().limit*e}),window.scrollTo({top:0})}#i(){this.subscription=this.#e.getABTests(this.query)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-ab-tests-table"]],decls:2,vars:1,consts:[["type","no-entity","page","ab-tests",3,"existKeys"],["type","invali
6d-token","page","ab-tests",3,"invalidKeys"],[1,"d-flex","align-items-center","justify-content-center","flex-grow-1"],[1,"position-relative","d-flex","flex-grow-1"],[3,"emptyContent","isLoading","total"],["table-header","",3,"config","style"],["table-body","",3,"row"],[3,"count","elementsOnPage","index"],["table-header","",3,"config"],[3,"indexChange","count","elementsOnPage","index"],["src","assets/images/placeholder-page/arrow-top-right.svg","alt",""],["type","search","page","ab-tests",3,"isWithCompanyId"],["color","accent","size","5"]],template:function(n,a){n&1&&d(0,Ct,2,1)(1,gt,1,1,"app-placeholder-v2",0),n&2&&_(a.isExistAdvToken()&&a.isExistContentToken()?0:1)},dependencies:[I,B,O,Ce,ve,we],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1}[_nghost-%COMP%] app-placeholder-v2[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%] img[_ngcontent-%COMP%]{position:absolute;z-index:1;top:2rem;right:6rem;width:12.9vw} 7/*# sourceMappingURL=ab-tests-table.component-KJIA5HIL.css.map */`],changeDetection:0})}}return t})();var Ue=Qe(je());function ht(t,i){if(t&1){let e=b();s(0,"app-ab-test-filter",3),y("changeFilter",function(a){f(e);let C=o(3);return T(C.setQuery(a))}),r(),l(1,"app-ab-tests-table")}if(t&2){let e=o(3);p("query",e.linkedQuery())("isExistTests",e.isExistsTests())}}function ft(t,i){t&1&&l(0,"app-placeholder-v2",2)}function Tt(t,i){if(t&1&&(d(0,ht,2,2),S(1,"async"),N(2,ft,1,0,"app-placeholder-v2",2)),t&2){let e=o(2);_(H(1,1,e.companies$).length?0:2)}}function yt(t,i){t&1&&(s(0,"div",1),l(1,"mg-loader",4),r())}function xt(t,i){if(t&1&&(d(0,Tt,3,3),S(1,"async"),N(2,yt,2,0,"div",1)),t&2){let e=o();_(H(1,1,e.isLoading$)?2:0)}}function bt(t,i){t&1&&l(0,"app-placeholder-v2",0),t&2&&p("isUnavailableByPerm",!0)}var Ui=(()=>{class t{constructor(){this.#e=u(M),this.#t=u(A),this.#i=u(Pe),this.#n=u(ke),this.companies$=this.#t.companies$,this.isLoading$=this.#t.isLoading$,this.query=this.#e.query,this.isExistsTests=this.#e.isExistsTests,this.linkedQuery=Y({source:()=>this.query(),computation:(e,n)=>
7(n?.source?.companyId!==e.companyId&&X(()=>this.subscription=this.#e.getMainCountABTests(e)),e)}),this.isABTestEnabledOnBidder=this.#i.checkPermission(Ue.Permissions.IsABTestEnabledOnBidder)}#e;#t;#i;#n;ngOnInit(){this.#n.setPage("ab-tests")}ngOnDestroy(){this.#e.clearQuery(),this.#n.setPage(null),this.subscription&&this.subscription.destroy()}setQuery(e){this.#e.updateQuery(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-ab-tests"]],decls:2,vars:1,consts:[["type","invalid-token","page","ab-tests",3,"isUnavailableByPerm"],[1,"d-flex","align-items-center","justify-content-center","flex-grow-1"],["type","no-entity","page","ab-tests"],[1,"mb-12",3,"changeFilter","query","isExistTests"],["color","accent","size","5"]],template:function(n,a){n&1&&d(0,xt,3,3)(1,bt,1,1,"app-placeholder-v2",0),n&2&&_(a.isABTestEnabledOnBidder?0:1)},dependencies:[qe,Ke,B,O,te],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1} 8/*# sourceMappingURL=ab-tests.component-3BZOLKKS.css.map */`],changeDetection:0})}}return t})();export{Ui as AbTestsComponent}; 9//# sourceMappingURL=chunk-4KKJEAP3.js.map 10 11//# debugId=5fac9d81-a150-56ee-856c-2cd6e90aec71
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.