PageSourceSearch

https://next.intelliboard.net/assets/Index-BFZhmjQI.js

js intelliboard.net collected 2026-10-03 22:50:54 UTC 9,861 bytes, 1 lines download raw bytes

1import{P as f}from"./Profile-BogFrkDW.js";import{_ as u,l as N,S as I,E as v,m as D}from"./main-BUyohMDS.js";import{a as d,o as c,f as b,g as l,p as s,A as r,s as h,t as o,b as M,F as C,l as P,m as w,k as S,v as $}from"./vendor-codemirror-CsRMRzWL.js";import{t as y}from"./Pagination-B14V77k_.js";import"./Breadcrumbs-k3Gai5YP.js";import"./textOverflowTooltip-BBxHgIGU.js";import"./TitleInfoButton-jGekIuHh.js";import"./ToggleTip-4KqeRynz.js";import"./vendor-highcharts-DJOjmI7G.js";const L={components:{IbInput:N},emits:["search"]},R={class:"table-panel"},V={class:"table-panel-container d-flex justify-content-between w-100"},k={class:"table-panel-right"};function j(e,t,a,E,m,i){const p=d("ib-input"),_=d("ib-button");return c(),b("div",R,[l("div",V,[s(p,{placeholder:e.lang("search",e.langComponents.COMPONENT_SYSTEM),"aria-label":e.lang("search",e.langComponents.COMPONENT_SYSTEM),debounce:1e3,onInput:t[0]||(t[0]=n=>e.$emit("search",n))},null,8,["placeholder","aria-label"]),l("div",k,[s(_,{to:{name:"pla.create.show"}},{default:r(()=>[h(o(e.lang("create_model",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1},8,["to"])])])])}const B=u(L,[["render",j],["__scopeId","data-v-aeb37b36"]]),Y={},q={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},A={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},F={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},U={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},z={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},G={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},H={class:"table-thead-cell table-cell action-cell table-cell-center table-thead-cell-l"};function W(e,t,a,E,m,i){return c(),b("tr",null,[l("th",q,o(e.lang("model",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",A,o(e.lang("date_created",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",F,o(e.lang("report",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",U,o(e.lang("connection",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",z,o(e.lang("trained",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",G,o(e.lang("predicted",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("th",H,o(e.lang("actions",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)])}const J=u(Y,[["render",W]]),K={components:{IbDropdownList:v,IbDropdownItem:I},emits:["delete","clone","create-training","create-predict"],props:{model:{type:Object,required:!0},expandUp:{type:Boolean,default:!1}}};function Q(e,t,a,E,m,i){const p=d("ib-icon"),_=d("ib-icon-button"),n=d("ib-dropdown-item"),O=d("ib-dropdown-list");return c(),M(O,{class:"action-menu",horizontal:"right",vertical:a.expandUp?"top":"bottom"},{trigger:r(()=>[s(_,{dusk:"trigger-button",kind:"ghost"},{default:r(()=>[s(p,{name:"ellipsis-horizontal-sharp"})]),_:1})]),body:r(()=>[a.model.dataSet.id?(c(),b(C,{key:0},[s(n,{onClick:t[0]||(t[0]=g=>e.$emit("create-training",a.model.id))},{default:r(()=>[h(o(e.lang("train",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1}),a.model.isTrained?(c(),b(C,{key:0},[s(n,{to:{name:"pla.show.validation",params:{predictiveModel:a.model.id}}},{default:r(()=>[h(o(e.lang("validate",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1},8,["to"]),s(n,{onClick:t[1]||(t[1]=g=>e.$emit("create-predict",a.model.id))},{default:r(()=>[h(o(e.lang("predict",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1}),s(n,{to:{name:"pla.show.predictions",params:{predictiveModel:a.model.id}}},{default:r(()=>[h(o(e.lang("results",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1},8,["to"]),s(n,{to:{name:"pla.schedule.edit",params:{predictiveModel:a.model.id}}},{default:r(()=>[h(o(e.lang("schedule",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1},8,["to"])],64)):P("",!0),s(n,{onClick:t[2]||(t[2]=g=>e.$emit("clone",a.model.id))},{default:r(()=>[h(o(e.lang("clone",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1})],64)):P("",!0),s(n,{onClick:t[3]||(t[3]=g=>e.$emit("delete",a.model.id))},{default:r(()=>[h(o(e.lang("delete",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1)]),_:1})]),_:1},8,["vertical"])}const X=u(K,[["render",Q]]),Z={components:{TableRowActionsCell:X},props:{model:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["delete","clone","create-training"],data(){return{showDeletePopUp:!1}},computed:{...D(["user"])},methods:{formatDate(e){return dayjs(e).format(this.user.settings.date_format_js)}}},x={class:"table-row activated"},ee={class:"table-cell table-cell-l"},te={class:"table-cell table-cell-l"},le={class:"table-cell table-cell-l"},ae={class:"table-cell table-cell-l"},oe={class:"table-cell table-cell-l"},ne={class:"table-cell table-cell-l"},se={class:"table-cell table-cell-l"};function ie(e,t,a,E,m,i){const p=d("router-link"),_=d("table-row-actions-cell");return c(),b("tr",x,[l("td",ee,[s(p,{to:{name:"pla.show",params:{predictiveModel:a.model.id}}},{default:r(()=>[h(o(a.model.name),1)]),_:1},8,["to"])]),l("td",te,o(i.formatDate(a.model.createdAt)),1),l("td",le,o(a.model.dataSet.name||"-"),1),l("td",ae,o(a.model.lmsConnectionName||"-"),1),l("td",oe,o(a.model.isTrained?e.lang("trained",e.langComponents.COMPONENT_PREDICTIVE_MODELS):"-"),1),l("td",ne,o(a.model.hasCompletedPredictions?e.lang("predicted",e.langComponents.COMPONENT_PREDICTIVE_MODELS):"-"),1),l("td",se,[s(_,{model:a.model,"expand-up":a.rowIndex>=4,onDelete:t[0]||(t[0]=n=>e.$emit("delete",n)),onClone:t[1]||(t[1]=n=>e.$emit("clone",n)),onCreateTraining:t[2]||(t[2]=n=>e.$emit("create-training",n)),onCreatePredict:t[3]||(t[3]=n=>e.$emit("create-predict",n))},null,8,["model","expand-up"])])])}const de=u(Z,[["render",ie]]),re={components:{TablePanel:B,TableHeader:J,TableRow:de,IbPagination:y},watch:{params:{handler(){this.loadModels()},deep:!0}},data(){return{list:[],totalRows:0,params:{search:"",page:1,per_page:10}}},mounted(){this.loadModels()},methods:{resetPagination(){this.params.page=1},changePage(e){this.params.page=e},changeLimit(e){this.resetPagination(),this.params.per_page=e},onSearch(e){this.params.search=e,this.resetPagination()}
1,loadModels(){this.$loader.show(),axios.get(route("predictive-models.index",{...this.params})).then(e=>{this.totalRows=e.data.models.total,this.list=e.data.models.data}).finally(()=>this.$loader.hide())},deleteModel(e){confirm(lang("are_you_sure",this.langComponents.COMPONENT_SYSTEM))&&(this.$loader.show(),axios.delete(route("predictive-models.delete",{predictiveModel:e})).then(t=>{this.$notifications.success(t.data.message),this.loadModels()}).finally(()=>this.$loader.hide()))},cloneModel(e){this.$loader.show(),axios.post(route("predictive-models.clone",{predictiveModel:e})).then(t=>{this.$router.push({name:"pla.show",params:{predictiveModel:t.data.id}})})},createTraining(e){this.$loader.show(),axios.get(route("predictive-models.train.create",{predictiveModel:e})).then(t=>{this.$router.push({name:"pla.training.show",params:{predictiveModel:e,predictiveModelTraining:parseInt(t.data.id)}})})},createPredict(e){this.$loader.show(),axios.get(route("predictive-models.predict.create",{predictiveModel:e})).then(t=>{this.$router.push({name:"pla.predict.show",params:{predictiveModel:e,predictiveModelPrediction:parseInt(t.data.id)}})})}},computed:{showPagination(){return this.list.length||this.params.page>1&&this.list.length}}},ce={class:"row mb-4"},me={class:"col-12 col-md-6"},pe={class:"card"},_e={class:"card-body p-4"},he={class:"row align-items-center"},be={class:"col"},ge={class:"d-block text-uppercase text-muted mb-1"},ue={class:"h4 mb-0"},Ee={class:"actions"},Ce={class:"in-form-tables-list"},Oe={ref:"tableContainer",class:"table-container"},Me={ref:"tableWrapper",class:"table-wrapper"},Pe={key:0,ref:"table",class:"table"},Te={class:"table-thead table-thead-sticky"},fe={key:1,class:"table-empty-state table-empty-item"},Ne={class:"table-empty-message"};function Ie(e,t,a,E,m,i){const p=d("table-panel"),_=d("table-header"),n=d("table-row"),O=d("ib-pagination");return c(),b(C,null,[l("div",ce,[l("div",me,[l("div",pe,[l("div",_e,[l("div",he,[l("div",be,[l("small",ge,o(e.lang("models",e.langComponents.COMPONENT_PREDICTIVE_MODELS)),1),l("span",ue,o(m.totalRows)+" total ",1)])])])])])]),l("div",Ee,[s(p,{onSearch:i.onSearch},null,8,["onSearch"])]),l("div",Ce,[l("div",Oe,[l("div",Me,[m.list.length?(c(),b("table",Pe,[l("thead",Te,[s(_)]),l("tbody",null,[(c(!0),b(C,null,w(m.list,(g,T)=>(c(),M(n,{key:"tblItem-"+g.id,model:g,"row-index":T,onDelete:i.deleteModel,onClone:i.cloneModel,onCreateTraining:i.createTraining,onCreatePredict:i.createPredict},null,8,["model","row-index","onDelete","onClone","onCreateTraining","onCreatePredict"]))),128))])],512)):(c(),b("div",fe,[l("p",Ne,o(e.lang("table_empty",e.langComponents.COMPONENT_IN_FORM)),1)]))],512)],512),S(s(O,{ref:"pagination",class:"pagination","count-rows":m.totalRows,current:parseInt(m.params.page),"limit-selector":parseInt(m.params.per_page),"label-select":e.lang("rows_per_page",e.langComponents.COMPONENT_SYSTEM),"label-input":e.lang("go_to",e.langComponents.COMPONENT_SYSTEM),onSelect:i.changePage,onSetLimit:i.changeLimit},null,8,["count-rows","current","limit-selector","label-select","label-input","onSelect","onSetLimit"]),[[$,i.showPagination]])])],64)}const ve=u(re,[["render",Ie],["__scopeId","data-v-f0bb1371"]]),De={components:{ProfileLayout:f,ModelsTable:ve}};function we(e,t,a,E,m,i){const p=d("models-table"),_=d("profile-layout");return c(),M(_,{"full-width":"",breadcrumbs:[{title:e.lang("predictive_analytics",e.langComponents.COMPONENT_PREDICTIVE_MODELS)}],"page-title":e.lang("models",e.langComponents.COMPONENT_PREDICTIVE_MODELS)},{default:r(()=>[s(p)]),_:1},8,["breadcrumbs","page-title"])}const Ye=u(De,[["render",we]]);export{Ye as default};

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.