PageSourceSearch

https://rajvidyakender.org/_nuxt/D4NKsgad.js

js rajvidyakender.org collected 2026-10-02 14:24:30 UTC 4,366 bytes, 1 lines download raw bytes

1import{_ as H}from"./DvsRewjl.js";import{D as $}from"./cynPjtQi.js";import{T as A}from"./DCdFM7oI.js";import{_ as K,r as c,A as U,E as j,f as g,g as M,h as x,c as u,o as d,b as m,a as l,m as b,w as p,t as O,d as D,s as z,i as I,F as P,n as q,u as Z}from"./BGbhA71I.js";import{s as G}from"./Chhde3Sz.js";import{u as J}from"./CU7tUVwF.js";const Q={class:"event_management"},W={class:"admin_container"},X={class:"admin-tables tables"},Y={class:"table"},ee={class:"back_wrapper flex p-l-20 p-r-20 p-t-20 m-b-10"},te={key:0},ae={key:1},se={key:0,class:"flex flex-jc-sb table__menu"},oe={class:"search flex flex-ai-c"},le={style:{gap:"10px"},class:"search flex flex-ai-c"},ne={style:{width:"fit-content"},class:"date_cta flex"},re={class:"table__main"},ie={key:0,style:{"margin-bottom":"10px"}},ce={__name:"form-details-list",setup(de){const L=c(10),_=c(""),v=U(),S=c(!1),h=c(!1),s=c([]),V=Z(),{formatDate:F}=j(),f=c(!1),C=async()=>{var a;f.value=!0;try{const e=q("adminUser",{sameSite:"Strict",secure:!0,maxAge:86400}),t=await $fetch("/dynamicformsdata/list",{baseURL:V.public.baseURL,method:"POST",headers:{Authorization:e.value},body:{filterData:{url_name:(a=v==null?void 0:v.query)==null?void 0:a.name}}});t!=null&&t.formSchema&&(s.value=t==null?void 0:t.formSchema,f.value=!1)}catch(e){f.value=!1,console.error("Error Form Details List",e)}},N=()=>{h.value=!0,setTimeout(()=>{var a,e;if(((a=i.value)==null?void 0:a.length)>0){let t=0;const o=i.value.map(r=>({...r,sr_no:t=t+1}));G({data:o,fileName:`${(e=s.value[0])==null?void 0:e.form_title} Report ${F(new Date)}`,columns:[{field:"sr_no",title:"Sr. No"},...T.value]})}h.value=!1},800)},T=g(()=>{var a,e;return((a=s.value)==null?void 0:a.length)>0?Object.keys((e=s.value[0])==null?void 0:e.fields).map(o=>({field:s.value[0].fields[o].name,title:s.value[0].fields[o].label})):[]}),E=g(()=>{var a,e;return((a=s.value)==null?void 0:a.length)>0?Object.keys((e=s.value[0])==null?void 0:e.fields).map(o=>{var r;return{value:(r=s.value[0].fields[o].name)==null?void 0:r.replace(/\./g,""),text:s.value[0].fields[o].label}}):[]}),R=()=>{_.value=""},i=g(()=>s.value.map(a=>{const e={};return a.fields.forEach(t=>{var o;e[(o=t.name)==null?void 0:o.replace(/\./g,"")]=t.text}),e}));return M(async()=>{await C()}),J(()=>({title:"Form Details List | Admin"})),(a,e)=>{var y,w;const t=H,o=x("v-text-field"),r=x("v-btn"),B=x("v-progress-circular");return d(),u(P,null,[m(A,{"toolbar-title":"Form Details List"}),l("div",Q,[l("div",W,[l("div",X,[l("div",Y,[l("div",ee,[m(t,{to:"/admin/forms/form-list",class:"back flex flex-ai-c"},{default:p(()=>{var n,k;return[e[3]||(e[3]=l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[l("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z",fill:"#333333"})],-1)),((n=s.value)==null?void 0:n.length)>0?(d(),u("span",te,O((k=s.value[0])==null?void 0:k.form_title),1)):(d(),u("span",ae,"Form Details"))]}),_:1,__:[3]})]),((y=i.value)==null?void 0:y.length)>0?(d(),u("div",se,[l("div",oe,[l("div",le,[m(o,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=n=>_.value=n),color:"primary",variant:"outlined",density:"compact",class:"search-field","append-inner-icon":"mdi-close","onClick:appendInner":e[1]||(e[1]=n=>R()),label:"Enter Search Value"},null,8,["modelValue"]),m(r,{loading:S.value,style:{height:"40px","text-transform":"uppercase"},class:"p-l-10 p-r-10",color:"indigo-darken-3"},{default:p(()=>e[4]||(e[4]=[D("Search ")])),_:1,__:[4]},8,["loading"])])]),l("div",ne,[m(r,{loading:h.value,onClick:e[2]||(e[2]=n=>N()),style:{height:"40px","text-transform":"uppercase"},color:"info",class:"bg-primary-color p-r-10 p-l-10"},{default:p(()=>e[5]||(e[5]=[D(" Download Report ")])),_:1,__:[5]},8,["loading"])])])):b("",!0),l("div",re,[m(I($),{ref:"dataTable",headers:E.value,items:i.value,"rows-per-page":L.value,"buttons-pagination":"",class:"admin-tabel","hide-footer":!(((w=i.value)==null?void 0:w.length)>0)},{"empty-message":p(()=>{var n;return[((n=i.value)==null?void 0:n.length)==0?(d(),u("p",ie," Nothing here ")):b("",!0),f.value?(d(),z(B,{key:1,indeterminate:"",color:"amber",size:30,width:3})):b("",!0)]}),_:1},8,["headers","items","rows-per-page","hide-footer"])])])])])])],64)}}},he=K(ce,[["__scopeId","data-v-356581ce"]]);export{he 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.