PageSourceSearch

https://evoml.ai/6680.0ab5899756897308.js

js evoml.ai collected 2026-10-05 12:06:27 UTC 7,528 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkevoml=self.webpackChunkevoml||[]).push([[6680],{33628:(f,c,s)=>{s.d(c,{Z:()=>i});const i=(...t)=>{}},51923:(f,c,s)=>{s.r(c),s.d(c,{SettingsModelsComponent:()=>K});var i=s(60177),t=s(54438),u=s(89079),n=s(89417),g=s(82798),m=s(30450),p=s(2042),r=s(26450),E=s(51188),T=s(96354),v=s(99172),y=s(52004),R=s(28788),b=s(9211),D=s(71884),$=s(96252),k=s(98819),x=s(57155),N=s(59601),C=s(33848),M=s(32062),j=s(18479),S=s(53719),G=s(86600),V=s(58479),B=s(36587),L=s(69163);const Y=(a,o)=>o.key;function Q(a,o){if(1&a&&(t.j41(0,"mat-option",5),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&a){const e=t.XpG().$implicit;t.Y8G("value",e.value),t.R7$(),t.SpI(" ",t.bMT(2,2,e.value)," ")}}function I(a,o){1&a&&t.DNE(0,Q,3,4,"mat-option",18),2&a&&t.Y8G("tueEnabledFeature",o.$implicit.value)}function X(a,o){1&a&&(t.j41(0,"th",19),t.EFF(1,"Name"),t.k0s())}function H(a,o){if(1&a&&(t.j41(0,"td",20),t.EFF(1),t.k0s()),2&a){const e=o.$implicit;t.R7$(),t.SpI(" ",null==e||null==e.parameters||null==e.parameters.metadata?null:e.parameters.metadata.displayName," ")}}function P(a,o){1&a&&(t.j41(0,"th",21),t.EFF(1,"Description"),t.k0s())}function A(a,o){if(1&a&&(t.j41(0,"td",20),t.nrm(1,"div",22),t.k0s()),2&a){const e=o.$implicit;t.R7$(),t.Y8G("innerHTML",null==e||null==e.parameters||null==e.parameters.metadata?null:e.parameters.metadata.modelDescription,t.npT)}}function W(a,o){1&a&&(t.j41(0,"th",19),t.EFF(1,"Status"),t.k0s())}function w(a,o){if(1&a){const e=t.RV6();t.j41(0,"td",20)(1,"mat-slide-toggle",23),t.bIt("change",function(d){const h=t.eBV(e).$implicit,O=t.XpG(2);return t.Njj(O.onToggleMlModel(d,h))}),t.k0s()()}if(2&a){const e=o.$implicit;t.R7$(),t.Y8G("checked",e.enabled)}}function J(a,o){1&a&&t.nrm(0,"tr",24)}function Z(a,o){1&a&&t.nrm(0,"tr",25)}function U(a,o){if(1&a&&(t.j41(0,"tr",26)(1,"td",27),t.EFF(2," No data available "),t.k0s()()),2&a){const e=t.XpG(2);t.R7$(),t.BMQ("colspan",e.displayedColumns.length)}}function z(a,o){if(1&a&&(t.j41(0,"div",2),t.nrm(1,"tue-search-input",3),t.j41(2,"mat-form-field")(3,"mat-label"),t.EFF(4,"Filter by ML task"),t.k0s(),t.j41(5,"mat-select",4),t.Z7z(6,I,1,1,"mat-option",5,Y),t.nI1(8,"keyvalue"),t.k0s()()(),t.j41(9,"tue-state-loader",6)(10,"table",7,0),t.qex(12,8),t.DNE(13,X,2,0,"th",9)(14,H,2,1,"td",10),t.bVm(),t.qex(15,11),t.DNE(16,P,2,0,"th",12)(17,A,2,1,"td",10),t.bVm(),t.qex(18,13),t.DNE(19,W,2,0,"th",9)(20,w,2,1,"td",10),t.bVm(),t.DNE(21,J,1,0,"tr",14)(22,Z,1,0,"tr",15)(23,U,3,1,"tr",16),t.k0s(),t.nrm(24,"tue-paginator",17),t.k0s()),2&a){const e=t.XpG();t.Y8G("formGroup",e.filtersForm),t.R7$(6),t.Dyx(t.bMT(8,8,e.MlTaskEnum)),t.R7$(3),t.Y8G("showLoader",o.isLoading),t.R7$(),t.Y8G("dataSource",e.dataSource)("trackBy",e.trackByModelName),t.R7$(11),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(2),t.Y8G("pageIndex",(e.pageControl.value||1)-1)("pageSize",e.perPageControl.value||20)}}const F=C.MP.Classification;let K=(()=>{class a extends R.r{constructor(){super(...arguments),this.settingsMlModelsStore=(0,t.WQX)(M.M),this.alertSnackBarService=(0,t.WQX)(b.v),this.displayedColumns=["name","description","status"],this.filtersForm=new n.gE({search:new n.MJ(""),mlTask:new n.MJ(F)}),this.filtersBindQueryParamsManager=this.bindQueryParamsFactory.create([{queryKey:"search"},{queryKey:"mlTask"}]).connect(this.filtersForm),this.MlTaskEnum=C.MP,this.vm$=this.settingsMlModelsStore.vm$,this.trackByModelName=(e,l)=>l.name}get searchControl(){return this.filtersForm.controls.search}get mlTaskControl(){return this.filtersForm.controls.mlTask}ngOnInit(){const e=this.settingsMlModelsStore.vm$.pipe((0,T.T)(l=>l.mlModels||[]));this.dataSource=new y.kA(e),this.dataSource.sortingDataAccessor=(l,d)=>"status"===d?l.enabled?1:0:l.parameters.metadata.displayName}ngAfterViewInit(){this.dataSource.paginator=this.paginator.paginatorRef,this.dataSource.sort=this.sort,this.paginator.pageChanged$.pipe((0,u.pQ)(this.destroyRef)).subscribe(e=>{this.paginationForm.patchValue({page:e.pageIndex+1,perPage:e.pageSize})}),this.searchControl.valueChanges.pipe((0,v.Z)(this.searchControl.value),(0,u.pQ)(this.destroyRef)).subscribe(e=>this.dataSource.applyFilter(e)),this.mlTaskControl.valueChanges.pipe((0,v.Z)({}),(0,u.pQ)(this.destroyRef)).subscribe(()=>this.loadEntities())}onToggleMlModel(e,l){this.settingsMlModelsStore.updateMlModel({mlModelName:l.name,isEnabled:e.checked,callbacks:{onSuccess:()=>{this.alertSnackBarService.success("Model updated successfully","Update model status")},onError:()=>{this.alertSnackBarService.error("Failed to update model","Update model status")}}})}loadEntities(){this.settingsMlModelsStore.loadModels(this.mlTaskControl.value||F)}static{this.\u0275fac=(()=>{let e;return function(d){return(e||(e=t.xGo(a)))(d||a)}})()}static{this.\u0275cmp=t.VBU({type:a,selectors:[["tue-settings-models"]],standalone:!0,features:[t.Jv_([M.M]),t.Vt3,t.aNF],decls:9,vars:6,consts:[["sort","matSort"],["tueButton","",1,"tt--mb-4",3,"routerLink","mode","icon"],[1,"tt--grid","tt--grid-cols-3","tt--gap-4",3,"formGroup"],["formControlName","search",1,"tt--col-span-2"],["formControlName","mlTask"],[3,"value"],[3,"showLoader"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",3,"dataSource","trackBy"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[3,"pageIndex","pageSize"],[3,"value",4,"tueEnabledFeature"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"tue-text-02","tt--p-4",3,"innerHTML"],[3,"change","checked"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell","tt--text-center"]],template:function(l,d){if(1&l&&(t.j41(0,"a",1),t.EFF(1," Back to settings\n"),t.k0s(),t.j41(2,"tue-page-toolbar")(3,"tue-page-toolbar-title"),t.EFF(4,"ML Models settings"),t.k0s(),t.j41(5,"tue-page-toolbar-subtitle"),t.EFF(6," The ML Models settings lets you define the necessary models to be used in the platform "),t.k0s()(),t.DNE(7,z,25,10),t.nI1(8,"async")),2&l){let h;t.Y8G("routerLink","..")("mode","link")("icon","back"),t.R7$(7),t.vxM((h=t.bMT(8,4,d.vm$))?7:-1,h)}},dependencies:[i.Jj,j.H,i.lG,g.Ve,S.rl,S.nJ,g.VO,G.wT,m.mV,m.sG,p.NQ,p.B4,p.aE,r.tP,r.Zl,r.tL,r.ji,r.cC,r.YV,r.iL,r.KS,r.$R,r.YZ,r.NB,r.ky,n.X1,n.BC,n.cb,n.j4,n.JD,E.Wk,i.PV,D.s,$.l,V.Y,B.S,L.q,k.l,x.u,N.e],encapsulation:2,changeDetection:0})}}return a})()},18479:(f,c,s)=>{s.d(c,{H:()=>u});var i=s(54438),t=s(20345);let u=(()=>{class n{constructor(){this.configService=(0,i.WQX)(t.we),this.viewContainerRef
1=(0,i.WQX)(i.c1b),this.templateRef=(0,i.WQX)(i.C4Q),this.elseTemplateRef=null}set tueEnabledFeature(m){this.feature=m,this.updateView()}set tueEnabledFeatureElse(m){this.elseTemplateRef=m,this.updateView()}updateView(){const m=this.configService.isEnabledFeature(this.feature);this.viewContainerRef.clear(),m?this.viewContainerRef.createEmbeddedView(this.templateRef):this.elseTemplateRef&&this.viewContainerRef.createEmbeddedView(this.elseTemplateRef)}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275dir=i.FsC({type:n,selectors:[["","tueEnabledFeature",""]],inputs:{tueEnabledFeature:"tueEnabledFeature",tueEnabledFeatureElse:"tueEnabledFeatureElse"},standalone:!0})}}return n})()}}]);

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.