PageSourceSearch

https://console.gydr.ai/assets/index-Cz51WoKC.js

js gydr.ai collected 2026-10-05 12:01:39 UTC 2,562 bytes, 1 lines download raw bytes

1import{b as x,Q as p,m as j,n as C,j as a,P as v,o as f,A as l,an as w,B as m,aI as h,Y as y}from"./index-CbL8YmXS.js";import{E as b}from"./EntityCard-CAQMpLf2.js";import{E as A}from"./EmptyState-BFAfj8Sn.js";import{u as D,D as u,a as N}from"./data-forms-QaXi77OK.js";import{P}from"./plus-CpPuh4X4.js";import"./ActionsMenu-Zjd9515M.js";import"./use-knowledge-bases-DhTU8ZVU.js";function M({form:t}){const{t:e}=x(),r=p(),s=a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-blue-50 text-blue-600",children:a.jsx(h,{className:"h-6 w-6",strokeWidth:1.75})}),o=a.jsxs("div",{className:"space-y-1.5 text-xs text-zinc-500 tabular-nums",children:[a.jsxs("p",{children:[e("dataForms.columnsCount",{count:t.columns.length}),a.jsx("span",{"aria-hidden":"true",children:" · "}),e("dataForms.rowsCount",{count:t.rowCount})]}),a.jsx("p",{children:t.attachedWidgetCount===0?e("dataForms.attachedWidgetsCount_none"):e("dataForms.attachedWidgetsCount",{count:t.attachedWidgetCount})})]}),n=a.jsx(y,{variant:"default",size:"sm",children:t.writeMode===N.APPEND?e("dataForms.writeModeAppendLabel"):e("dataForms.writeModeUpsertLabel")});return a.jsx(b,{flat:!0,icon:s,title:t.name,titleSize:"sm",description:t.description||e("dataForms.noDescription"),body:o,footer:n,onClick:()=>r(`/data/forms/${t._id}`)})}function B(){const{t}=x(),e=p(),{canCreate:r}=j(),s=r(C.DATA_FORMS),{data:o,isLoading:n,error:F,refetch:g}=D(),i=o?.data??[],d=i.length>=u.maxFormsPerAccount;return a.jsxs(v,{children:[a.jsx(f,{title:t("dataForms.pageTitle"),description:t("dataForms.pageDescription"),action:s&&!d?{label:t("dataForms.createButton"),onClick:()=>e("/data/forms/create"),icon:a.jsx(P,{className:"w-4 h-4","aria-hidden":"true"})}:void 0}),d&&s&&a.jsx(l,{variant:"warning",className:"mb-6",children:t("dataForms.atAccountCap",{max:u.maxFormsPerAccount})}),n?a.jsx(w,{cards:3}):F?a.jsx(l,{variant:"error",children:a.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[a.jsx("span",{children:t("dataForms.loadFailed")}),a.jsx(m,{variant:"secondary",size:"sm",onClick:()=>void g(),children:t("dataForms.retry")})]})}):i.length===0?a.jsx(A,{icon:a.jsx(h,{className:"h-8 w-8 text-zinc-400"}),title:t("dataForms.emptyTitle"),description:t("dataForms.emptyDescription"),action:s?a.jsx(m,{variant:"primary",onClick:()=>e("/data/forms/create"),children:t("dataForms.emptyCreate")}):void 0}):a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.map(c=>a.jsx(M,{form:c},c._id))})]})}export{B as DataForms};

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.