1import { E as y } from "./DoX3KDsl.js"; 2import { c as t } from "./Dz3vHLWq.js"; 3import { d as m, e as _, f as i, af as u, l as o, G as r, B as S, h as g, y as d, j, t as f, bg as N, Y as p, z as x, k as C, g as b, d4 as O, b4 as $ } from "./CSCE6Vg2.js"; 4import { E as h } from "./CbujOpDN.js"; 5const F = { class: "flex flex-col" }, k = m({ __name: "section", props: { class: { type: [Array, Object, String, Number, null, Boolean] }, label: {} }, setup(a) { 6 const l = a; 7 return (e, s) => { 8 const n = y; 9 return i(), _("div", { class: u(o(t)("my-1 flex flex-col py-2", l.class)) }, [r(e.$slots, "label", {}, () => [g(n, { class: "w-full flex-0 text-base font-semibold" }, { default: d(() => [j(f(e.label), 1)]), _: 1 })]), S("div", F, [r(e.$slots, "default")])], 2); 10 }; 11} }), M = Object.assign(k, { __name: "StudioAsideSection" }), v = Symbol("StudioFormContext"); 12function A() { 13 return N(v, { fieldClass: p(), labelClass: p(), contentClass: p() }); 14} 15const w = { key: 0, class: "text-destructive text-sm" }, E = m({ __name: "field", props: { class: { type: [Array, Object, String, Number, null, Boolean] }, labelClass: { type: [Array, Object, String, Number, null, Boolean] }, contentClass: { type: [Array, Object, String, Number, null, Boolean] }, label: {}, error: {} }, setup(a) { 16 const l = a, e = A(); 17 return (s, n) => { 18 const c = y; 19 return i(), _("div", { class: u(o(t)("my-2 flex w-full", l.class)) }, [s.label || s.$slots.label ? (i(), x(c, { key: 0, class: u(o(t)("w-24 flex-none", o(e).labelClass.value, l.labelClass)) }, { default: d(() => [r(s.$slots, "label", {}, () => [j(f(s.label), 1)])]), _: 3 }, 8, ["class"])) : C("", true), S("div", { class: u(o(t)("flex flex-1 flex-col items-end", o(e).contentClass.value, l.contentClass)) }, [r(s.$slots, "default"), s.error ? (i(), _("div", w, f(s.error), 1)) : C("", true)], 2)], 2); 20 }; 21} }), Y = Object.assign(E, { __name: "StudioAsideField" }), V = m({ __name: "field-class-provider", props: { fieldClass: { type: [Array, Object, String, Number, null, Boolean] }, labelClass: { type: [Array, Object, String, Number, null, Boolean] }, contentClass: { type: [Array, Object, String, Number, null, Boolean] } }, setup(a) { 22 const l = a, e = A(), s = b(() => t(e.fieldClass.value, l.fieldClass)), n = b(() => t(e.labelClass.value, l.labelClass)), c = b(() => t(e.contentClass.value, l.contentClass)); 23 return O(v, { fieldClass: s, labelClass: n, contentClass: c }), (B, T) => r(B.$slots, "default"); 24} }), z = Object.assign(V, { __name: "StudioAsideFieldClassProvider" }), P = m({ __name: "form", props: { class: { type: [Array, Object, String, Number, null, Boolean] }, fieldClass: { type: [Array, Object, String, Number, null, Boolean] }, labelClass: { type: [Array, Object, String, Number, null, Boolean] }, contentClass: { type: [Array, Object, String, Number, null, Boolean] } }, setup(a) { 25 const l = a; 26 return (e, s) => { 27 const n = z, c = h; 28 return i(), x(c, { class: u(["step-form", o(t)("p-4", l.class)]), "label-width": "100px", "label-position": "top", "require-asterisk-position": "right", onSubmit: s[0] || (s[0] = $(() => { 29 }, ["prevent"])) }, { default: d(() => [g(n, { "field-class": e.fieldClass, "label-class": e.labelClass, "content-class": e.contentClass }, { default: d(() => [r(e.$slots, "default")]), _: 3 }, 8, ["field-class", "label-class", "content-class"])]), _: 3 }, 8, ["class"]); 30 }; 31} }), H = Object.assign(P, { __name: "StudioAsideForm" }); 32export { 33 M as _, 34 Y as a, 35 H as b, 36 z as c 37};
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.