import{H as e,a as t,_ as a}from"./index-U4_x3Nkp.js";import{d as i,k as s,c as l,a0 as n,a3 as r,f as d,a8 as o,v as c,ak as u,aj as m,a1 as h}from"./vendor-DezibNX8.js";import{R as g,J as p,j as y,F as v}from"./antd-CKo75OZH.js";import"./utils-D7vwahzQ.js";const _=i({components:{},setup(){const e=t();let a=s([]),i=s([]),n=s({});const r=l(()=>[{title:"Email",align:"center",dataIndex:"userEmail",key:"userEmail",width:200,fixed:"left"},{title:"User Id",align:"center",ellipsis:!0,dataIndex:"accountId",key:"accountId",width:100},{title:"User Name",align:"center",ellipsis:200,dataIndex:"userName",key:"userName",width:100},{title:"isTrial",align:"center",ellipsis:!0,dataIndex:"isTrial",key:"isTrial",width:100,customRender:e=>{let t;return t=1==e.value?"Yes":"No",t}},{title:"Country",align:"center",ellipsis:!0,dataIndex:"country",key:"country",width:200},{title:"Title",align:"center",ellipsis:!0,dataIndex:"title",key:"title",width:100},{title:"Surname",align:"center",ellipsis:!0,dataIndex:"surname",key:"surname",width:150},{title:"Given Name",align:"center",ellipsis:!0,dataIndex:"givenName",key:"givenName",width:100},{title:"Credits",align:"center",ellipsis:!0,dataIndex:"credits",key:"credits",width:100},{title:"Occupation",align:"center",ellipsis:!0,dataIndex:"occupation",key:"occupation",width:100},{title:"Trial Order Id",align:"center",ellipsis:!0,dataIndex:"trialOrderId",key:"trialOrderId",width:100}]);let d=l(()=>e.state.adminPage.allUserList),o=s([]),c=s("");return{rangePickerValue:a,rangeTimeValue:i,columns:r,dataList:s([]),allUserList:d,ids:o,email:c,renameData:n,status:s(0),filterOption:(e,t)=>t.label.toLowerCase().indexOf(e.toLowerCase())>=0}},data:()=>({currentPage:1,pageSize:10,total:0,historyTableHeight:0,handleResizeColumn:(e,t)=>{t.width=e}}),mounted(){let e=this.$refs.historyTable;this.historyTableHeight=e.clientHeight-200,this.gettrialList()},methods:{changePage(e){this.currentPage=e.current,this.pageSize=e.pageSize,this.gettrialList()},searchHistoryList(){this.currentPage=1,this.gettrialList()},gettrialList(){let t=this.rangeTimeValue[0]?this.rangeTimeValue[0]:"00:00:00",a=this.rangeTimeValue[1]?this.rangeTimeValue[1]:"23:59:59",i=this.rangePickerValue[0]?this.rangePickerValue[0]+" "+t:"",s={endTime:this.rangePickerValue[1]?this.rangePickerValue[1]+" "+a:"",startTime:i,ids:this.ids.join(","),email:this.email.trim()};e.axiosGet(e.httpUrls.getDesignStatistic,{params:s}).then(e=>{e&&(this.dataList=e)})}}}),k={class:"test_cli admin_page"},w={class:"admin_table_search"},x={class:"admin_state"},I={class:"admin_state_item"},T={class:"admin_state_item"},f={class:"admin_state_item"},L={class:"admin_state_item"},P={class:"admin_search"},V={class:"admin_table_content",ref:"historyTable"};const S=a(_,[["render",function(e,t,a,i,s,l){const _=g,S=p,C=y,H=v;return h(),n("div",k,[r("div",w,[r("div",x,[r("div",I,[t[7]||(t[7]=r("span",null,"Start Date:",-1)),d(_,{style:{width:"250px"},class:"range_picker",value:e.rangePickerValue,"onUpdate:value":t[0]||(t[0]=t=>e.rangePickerValue=t),placeholder:[e.$t("HistoryPage.StartDate"),e.$t("HistoryPage.EndDate")],valueFormat:"YYYY-MM-DD"},{suffixIcon:o(()=>t[6]||(t[6]=[r("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1)])),_:1},8,["value","placeholder"])]),r("div",T,[t[8]||(t[8]=r("span",null,"Start Time:",-1)),d(S,{style:{width:"250px"},class:"range_picker",valueFormat:"HH:mm:ss",value:e.rangeTimeValue,"onUpdate:value":t[1]||(t[1]=t=>e.rangeTimeValue=t)},null,8,["value"])]),r("div",f,[t[9]||(t[9]=r("span",null,"Email:",-1)),c(r("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.email=t),placeholder:"Please enter email",onKeydown:t[3]||(t[3]=m((...t)=>e.gettrialList&&e.gettrialList(...t),["enter"])),type:"text",style:{width:"250px"}},null,544),[[u,e.email]])]),r("div",L,[t[10]||(t[10]=r("span",null,"User Name:",-1)),d(C,{value:e.ids,"onUpdate:value":t[4]||(t[4]=t=>e.ids=t),mode:"multiple",style:{width:"250px"},"filter-option":e.filterOption,placeholder:"Select Item...","max-tag-count":"responsive",options:e.allUserList,onKeydown:m(e.gettrialList,["enter"])},null,8,["value","filter-option","options","onKeydown"])])]),r("div",P,[r("div",{class:"admin_search_item",onClick:t[5]||(t[5]=(...t)=>e.searchHistoryList&&e.searchHistoryList(...t))},"Search")])]),r("div",V,[d(H,{onResizeColumn:e.handleResizeColumn,columns:e.columns,"data-source":e.dataList,scroll:{y:e.historyTableHeight},onChange:e.changePage,pagination:{showSizeChanger:!0,current:e.currentPage,pageSize:e.pageSize,total:e.total,showQuickJumper:!0,bordered:!1}},null,8,["onResizeColumn","columns","data-source","scroll","onChange","pagination"])],512)])}],["__scopeId","data-v-879d4e25"]]);export{S as default};
