PageSourceSearch

https://portal.godesignguru.com/build/assets/InvoiceEdit-D0OB0cQB.js

js godesignguru.com collected 2026-10-04 05:48:57 UTC 4,420 bytes, 58 lines download raw bytes

1import { u as U, a as O, _ as j, b as k, c as q, d as E } from "./useInvoiceForm-BZ7H4Q_2.js";
2import { _ as F } from "./InvoiceFooterSection-DSTvO-Mv.js";
3import { _ as M } from "./DashboardLayout-CXf_hhYT.js";
4import { j as N, z as S, k as P, o as R, c as z, e as r, u as e, n as T, f as p, a as m, s as G, d as H, t as J, F as K } from "./app-yg_pP4S4.js";
5import "./AlertCard-SUuzXx3b.js";
6import "./UserAvatar-B3-R1wxh.js";
7import "./index-CDyB1Hog.js";
8import "./XMarkIcon-C7ztHuKP.js";
9import "./functions-DLrKIvnr.js";
10import "./InvoiceBillingInfo-B0PSAj53.js";
11import "./BaseListbox-BuI0rG6W.js";
12import "./BaseInput-DrEncIoW.js";
13import "./modelWrapper-D0DowOi8.js";
14import "./LoaderIcon-BfI_LFZK.js";
15import "./_plugin-vue_export-helper-DlAUqK2U.js";
16import "./listbox-BVei8WBz.js";
17import "./form-BcDj1t5Y.js";
18import "./use-text-value-9Z6g_4jd.js";
19import "./ChevronDownIcon-DvXuQ_5B.js";
20import "./CheckIcon-Bb6ppPFl.js";
21import "./LiveChat-BEmWJs6j.js";
22import "./ApplicationLogo-D4QkytOJ.js";
23import "./popover-DTQdCRwt.js";
24import "./consts-7Qk9bpse.js";
25import "./ModalConfirmation-BptK8hn4.js";
26import "./index-BF2h0ubX.js";
27import "./BaseButton-DP1PFEmO.js";
28import "./CurrencyInput-DzVajgur.js";
29import "./TextareaEditable-Boq2HHAO.js";
30import "./InputError-c3Vl2Z79.js";
31import "./TrashIcon-7IRzqwUc.js";
32import "./RequestCustomFieldTextArea-CaN5xSwo.js";
33import "./TipTapEditor-syDIvp4e.js";
34import "./FormFooter-BR3rPhrH.js";
35import "./BaseModal-lnT_D81c.js";
36import "./EyeIcon-C30yl1ND.js";
37import "./HomeIcon-B7IW8yDA.js";
38import "./MinusIcon-C5ZUuSoW.js";
39import "./menu-DpWDC0YJ.js";
40import "./use-tree-walker-DC0osvAV.js";
41import "./vue-transitions-DxcThSkT.js";
42import "./ClockIcon-DWc8x_ii.js";
43const L = { class: "relative" }, Q = { class: "overflow-auto" }, W = { class: "rounded-lg rounded-b-none bg-white p-4 sm:p-6 lg:p-12" }, ze = { __name: "InvoiceEdit", props: { invoice: { type: Object, required: true }, services: { type: Array, required: true }, addOns: { type: Array, default: () => [] }, billing: { type: Object, required: true } }, setup(s) {
44  const n = s, { t: d } = N(), u = [{ label: d("Billing") }, { label: d("Invoices"), url: route("invoices.index") }, { label: n.invoice.number }], { selectedClient: i, mappedClients: f, hasAllBillingInfo: v, searchUsers: b, loadMoreEntities: g, getUsers: h } = U(n.invoice.client), { form: t, currency: _, subtotal: I, taxes: y, total: w, hasDifferentCurrencies: l, hasDifferentBillingPeriods: c, updateInvoiceAsDraft: x, updateInvoice: B, addRow: C, deleteItem: D, roundPrice: V } = O(i, n.invoice);
45  S(i, () => {
46    var _a;
47    return t.client_id = (_a = i.value) == null ? void 0 : _a.id;
48  }), P(() => h());
49  const $ = () => {
50    l.value || x(n.invoice);
51  }, A = () => {
52    l.value || B(n.invoice);
53  };
54  return (X, o) => (R(), z(K, null, [r(e(T), { title: s.invoice.number }, null, 8, ["title"]), r(M, { breadcrumbs: u, "wrapper-class": "overflow-visible" }, { header: p(() => [H(J(e(d)("Invoice")), 1)]), default: p(() => [m("div", L, [m("div", Q, [m("div", W, [r(j, { billing: s.billing }, null, 8, ["billing"]), r(k, { "selected-client": e(i), "onUpdate:selectedClient": o[0] || (o[0] = (a) => G(i) ? i.value = a : null), "mapped-clients": e(f), "has-all-billing-info": e(v), "search-users": e(b), "load-more-entities": e(g), errors: e(t).errors }, null, 8, ["selected-client", "mapped-clients", "has-all-billing-info", "search-users", "load-more-entities", "errors"]), r(q, { items: e(t).items, "onUpdate:items": o[1] || (o[1] = (a) => e(t).items = a), form: e(t), services: s.services, "add-ons": s.addOns, "is-edit": "", currency: e(_), subtotal: e(I), taxes: e(y), total: e(w), "selected-client": e(i), "has-different-currencies": e(l), "has-different-billing-periods": e(c), "add-row": e(C), "delete-item": e(D), "round-price": e(V) }, null, 8, ["items", "form", "services", "add-ons", "currency", "subtotal", "taxes", "total", "selected-client", "has-different-currencies", "has-different-billing-periods", "add-row", "delete-item", "round-price"]), r(E, { modelValue: e(t).notes, "onUpdate:modelValue": o[2] || (o[2] = (a) => e(t).notes = a) }, null, 8, ["modelValue"])])]), r(F, { "has-different-currencies": e(l), "has-different-billing-periods": e(c), onSaveDraft: $, onSave: A }, null, 8, ["has-different-currencies", "has-different-billing-periods"])])]), _: 1 })], 64));
55} };
56export {
57  ze as default
58};

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.