"use strict";(this.webpackChunk_tsmesolutions_cubes_initiatives=this.webpackChunk_tsmesolutions_cubes_initiatives||[]).push([[2329],{42329:(e,t,l)=>{l.r(t),l.d(t,{default:()=>V});var a=l(24590),o=l(90726),n=l(16464);const d={class:"overflow-auto",style:{"max-height":"50vh"}},i={class:"table"},r={class:"sticky-top bg-light"},s=(0,a.createElementVNode)("th",{class:"align-middle text-muted",width:"5%"},"#",-1),c={class:"align-middle",width:"60%"},m={class:"align-middle"},u={class:"align-middle"},p={class:"align-middle text-muted"},v={class:"align-middle"},g={class:"align-middle"},h={class:"align-middle"},k={key:1},V=(0,a.defineComponent)({__name:"import-excel-validation-modal",setup(e,t){let{expose:l}=t;const V=o.IoC.DI().resolve(n.Ow.appContext).translation.global,y=(0,a.ref)(!1),f=(0,a.ref)([]);return l({open:e=>{f.value=[...e],y.value=!0}}),(e,t)=>{const l=(0,a.resolveComponent)("v-message"),o=(0,a.resolveComponent)("v-literal"),n=(0,a.resolveComponent)("v-date"),N=(0,a.resolveComponent)("app-static-data-view"),C=(0,a.resolveComponent)("v-button"),E=(0,a.resolveComponent)("v-modal");return(0,a.openBlock)(),(0,a.createBlock)(E,{modelValue:y.value,"onUpdate:modelValue":t[1]||(t[1]=e=>y.value=e),size:"lg",centered:"",teleport:"",static:"","no-close-button":""},{header:(0,a.withCtx)(()=>[(0,a.createVNode)(l,{icon:"danger",accent:"danger",dismissible:!1,class:"d-flex align-items-center w-100 m-0"},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(V).dataEntryFileUploadFailed),1)]),_:1})]),body:(0,a.withCtx)(()=>[(0,a.createVNode)(N,{data:f.value},{items:(0,a.withCtx)(e=>{let{items:t}=e;return[(0,a.createElementVNode)("div",d,[(0,a.createElementVNode)("table",i,[(0,a.createElementVNode)("thead",r,[(0,a.createElementVNode)("tr",null,[s,(0,a.createElementVNode)("th",c,(0,a.toDisplayString)((0,a.unref)(V).name),1),(0,a.createElementVNode)("th",m,(0,a.toDisplayString)((0,a.unref)(V).type),1),(0,a.createElementVNode)("th",u,(0,a.toDisplayString)((0,a.unref)(V).period),1)])]),(0,a.createElementVNode)("tbody",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e.id},[(0,a.createElementVNode)("td",p,(0,a.toDisplayString)(t+1),1),(0,a.createElementVNode)("td",v,[(0,a.createVNode)(o,{"model-value":e.name},null,8,["model-value"])]),(0,a.createElementVNode)("td",g,(0,a.toDisplayString)((0,a.unref)(V).enums.WorkItemTypeEnum[e.workItemType]),1),(0,a.createElementVNode)("td",h,[e.dateUtc?((0,a.openBlock)(),(0,a.createBlock)(n,{key:0,date:e.dateUtc,format:"P",frequency:e.frequency},null,8,["date","frequency"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",k,"-"))])]))),128))])])])]}),_:1},8,["data"])]),footer:(0,a.withCtx)(()=>[(0,a.createVNode)(C,{onClick:t[0]||(t[0]=e=>y.value=!1)},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(V).ok),1)]),_:1})]),_:1},8,["modelValue"])}}})}}]);
//# sourceMappingURL=ab6a05ba507177b59155.js.map