1import { E as B, a as C } from "./D8LmMFvy.js"; 2import { d as M, q as D, Y as F, g as I, X as R, bm as S, s as q, z as H, f as X, l, cm as $, y as o, h as t, b4 as j, B as u, Z as G, t as c, U as L, j as h, T as v, _ as O } from "./B5ttsc57.js"; 3import { E as P } from "./DUsf1RCa.js"; 4import { R as x } from "./DbPDjt_2.js"; 5const z = { class: "dialog-footer" }, f = 100, w = 200, Y = M({ __name: "update-meta-dialog", props: { value: { type: Boolean }, id: {}, name: { default: "" }, note: { default: "" }, createdAt: { default: "" }, updatedAt: { default: "" } }, emits: ["success", "update:value"], setup(V, { emit: A }) { 6 const n = V, r = A, { t: e } = D(), p = F(), _ = I({ get() { 7 return n.value; 8 }, set(d) { 9 r("update:value", d); 10 } }), s = R({ name: n.name, note: n.note }), E = { name: [{ required: true, message: e("title-editor.enter-title"), trigger: "blur" }, { max: f, message: e("checklist.task-base.title-length", { NAME_MAX_LENGTH: f }), trigger: "blur" }], note: [{ max: 200, message: e("title-editor.note-length-between-2-and-45", { NOTE_MAX_LENGTH: w }), trigger: "blur" }] }; 11 S(() => n.name, () => { 12 s.name = n.name, s.note = n.note; 13 }, { immediate: true }); 14 const k = q(), y = () => { 15 k("/api/demo/".concat(n.id), { method: "PATCH", body: { ...s } }).then(() => { 16 r("update:value", false), r("success", s), v.success(e("title-editor.update-title-note-success")); 17 }).catch(() => { 18 v.error(e("title-editor.update-failed")); 19 }); 20 }, T = () => { 21 p.value && p.value.validate((d) => { 22 d && y(); 23 }); 24 }; 25 return (d, a) => { 26 const m = C, g = G, N = B, b = L, U = P; 27 return X(), H(l($), null, { default: o(() => [t(U, { modelValue: _.value, "onUpdate:modelValue": a[4] || (a[4] = (i) => _.value = i), title: l(e)("title-editor.info-edit"), width: "488px" }, { footer: o(() => [u("span", z, [t(b, { onClick: a[3] || (a[3] = (i) => r("update:value", false)) }, { default: o(() => [h(c(l(e)("common.cancel")), 1)]), _: 1 }), t(b, { type: "primary", onClick: T }, { default: o(() => [h(c(l(e)("common.ok")), 1)]), _: 1 })])]), default: o(() => [t(N, { ref_key: "titleFormRef", ref: p, model: s, rules: E, "label-width": "100px", "label-position": "right", "require-asterisk-position": "right", onSubmit: a[2] || (a[2] = j(() => { 28 }, ["prevent"])) }, { default: o(() => [t(m, { label: l(e)("title-editor.recording-time"), prop: "createdAt" }, { default: o(() => [u("label", null, [t(x, { date: n.createdAt }, null, 8, ["date"])])]), _: 1 }, 8, ["label"]), t(m, { label: l(e)("title-editor.update-time"), prop: "updatedAt" }, { default: o(() => [u("label", null, [t(x, { date: n.updatedAt }, null, 8, ["date"])])]), _: 1 }, 8, ["label"]), t(m, { label: l(e)("common.name"), prop: "name" }, { default: o(() => [t(g, { modelValue: s.name, "onUpdate:modelValue": a[0] || (a[0] = (i) => s.name = i), placeholder: l(e)("common.message.input-placeholder"), maxlength: f, "show-word-limit": "" }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"]), t(m, { class: "title-editor__item", prop: "note" }, { label: o(() => [u("label", null, c(l(e)("form.comments")), 1)]), default: o(() => [t(g, { modelValue: s.note, "onUpdate:modelValue": a[1] || (a[1] = (i) => s.note = i), placeholder: l(e)("form.comments-placeholder"), type: "textarea", rows: 3, maxlength: w, "show-word-limit": "" }, null, 8, ["modelValue", "placeholder"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }); 29 }; 30} }), W = Object.assign(O(Y, [["__scopeId", "data-v-3368350e"]]), { __name: "DemoUpdateMetaDialog" }); 31export { 32 W as U 33};
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.