1import { g as Y, p as r, h as p, a7 as Z, l as y, i as d, j as a, k as $, m as ee, n as I, q as V, u as te, d as w, w as ae, x as D, y as ne, z as l, B as i, d0 as re, al as se, E as ie } from "./index-0z6z8O6R.js"; 2import { I as oe } from "./InnerForm-CBKPswux.js"; 3function ue(K, n) { 4 Y(n, !1); 5 const F = () => D(J, "$component", C), k = () => D(E, "$context", C), [C, N] = ne(), h = l(), f = l(), x = l(); 6 let c = r(n, "dataSource", 8), T = r(n, "size", 8), _ = r(n, "disabled", 8, !1), b = r(n, "readonly", 8, !1), z = r(n, "actionType", 8, "Create"), O = r(n, "initialFormStep", 8, 1), q = r(n, "disableSchemaValidation", 8, !1), B = r(n, "editAutoColumns", 8, !1); 7 const E = p("context"), J = p("component"), { fetchDatasourceSchema: P, fetchDatasourceDefinition: R } = p("sdk"), U = () => { 8 const e = parseInt(O().toString()); 9 return isNaN(e) ? 1 : e; 10 }; 11 let S = l(), m = l(), v = l(!1), G = p("current-step") || Z(U()); 12 const H = (e, t, s, o) => { 13 if (e !== "Update") 14 return {}; 15 const g = t?.type; 16 if (g !== "table" && g !== "viewV2") 17 return {}; 18 for (let u of s.toReversed().slice(1)) 19 if (t.type === "viewV2" && o[u]?._viewId === t.id || t.type === "table" && o[u]?.tableId === t.tableId) 20 return o[u]; 21 return {}; 22 }, L = async (e) => { 23 try { 24 i(S, await R(e)); 25 } catch { 26 i(S, void 0); 27 } 28 const t = await P(e); 29 i(m, t || {}), a(v) || i(v, !0); 30 }, M = (e) => { 31 if (!e) 32 return null; 33 const t = Object.keys(e); 34 return t.sort(), t.map((s) => `${s}:${e[s].type}`).join("-"); 35 }; 36 y(() => d(c()), () => { 37 L(c()); 38 }), y(() => a(m), () => { 39 i(h, M(a(m))); 40 }), y( 41 () => (d(z()), d(c()), F(), k()), 42 () => { 43 i(f, H(z(), c(), F().path, k())); 44 } 45 ), y( 46 () => (a(h), a(f), d(_()), d(b())), 47 () => { 48 i(x, re(a(h) + JSON.stringify(a(f)) + _() + b())); 49 } 50 ), $(), ee(); 51 var j = I(), Q = V(j); 52 { 53 var W = (e) => { 54 var t = I(), s = V(t); 55 se(s, () => a(x), (o) => { 56 oe(o, { 57 get dataSource() { 58 return c(); 59 }, 60 get size() { 61 return T(); 62 }, 63 get disabled() { 64 return _(); 65 }, 66 get readonly() { 67 return b(); 68 }, 69 get schema() { 70 return a(m); 71 }, 72 get definition() { 73 return a(S); 74 }, 75 get initialValues() { 76 return a(f); 77 }, 78 get disableSchemaValidation() { 79 return q(); 80 }, 81 get editAutoColumns() { 82 return B(); 83 }, 84 get currentStep() { 85 return G; 86 }, 87 children: (g, u) => { 88 var A = I(), X = V(A); 89 ie(X, n, "default", {}, null), w(g, A); 90 }, 91 $$slots: { default: !0 } 92 }); 93 }), w(e, t); 94 }; 95 te(Q, (e) => { 96 a(v) && e(W); 97 }); 98 } 99 w(K, j), ae(), N(); 100} 101export { 102 ue as default 103};
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.