PageSourceSearch

https://cecindia.in/build/assets/AddPartyName-CScb7Zsh.js

js cecindia.in collected 2026-10-07 19:32:58 UTC 7,954 bytes, 102 lines download raw bytes

1var __defProp = Object.defineProperty;
2var __defProps = Object.defineProperties;
3var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5var __hasOwnProp = Object.prototype.hasOwnProperty;
6var __propIsEnum = Object.prototype.propertyIsEnumerable;
7var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8var __spreadValues = (a2, b2) => {
9  for (var prop in b2 || (b2 = {}))
10    if (__hasOwnProp.call(b2, prop))
11      __defNormalProp(a2, prop, b2[prop]);
12  if (__getOwnPropSymbols)
13    for (var prop of __getOwnPropSymbols(b2)) {
14      if (__propIsEnum.call(b2, prop))
15        __defNormalProp(a2, prop, b2[prop]);
16    }
17  return a2;
18};
19var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
20var __async = (__this, __arguments, generator) => {
21  return new Promise((resolve, reject) => {
22    var fulfilled = (value) => {
23      try {
24        step(generator.next(value));
25      } catch (e2) {
26        reject(e2);
27      }
28    };
29    var rejected = (value) => {
30      try {
31        step(generator.throw(value));
32      } catch (e2) {
33        reject(e2);
34      }
35    };
36    var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
37    step((generator = generator.apply(__this, __arguments)).next());
38  });
39};
40import { r as u, u as O, n as h, A as b, j as e, B as p, a as C, x as N } from "./app-BVOYVG7k.js";
41import { AdminLayout as w } from "./Dashboard-CNIX_4Ur.js";
42import { D as I } from "./Dropzone-u56DCejU.js";
43import { d as D } from "./dayjs.min-TyjuensG.js";
44import { u as A } from "./use-form-CWrXXJu-.js";
45import { F as a, T as o } from "./CustomLink-XGyApNzz.js";
46import { L as R } from "./LoadingOverlay-BOitRfTP.js";
47import { T as f } from "./TextInput-CNmGFmvf.js";
48import { S as x } from "./Select-BvO4GYK6.js";
49import { D as S } from "./DateInput-Qlol8fKA.js";
50import { I as z } from "./IconWorld-DP4C7mZs.js";
51import "./ThemeIcon-BU9gh0Ki.js";
52import "./IconChevronRight-LyyKBjHa.js";
53import "./createReactComponent-CgpWWcBx.js";
54import "./Collapse-BplwRG9U.js";
55import "./get-style-object-DUJZA7T_.js";
56import "./IconLogout-CkpgU1EF.js";
57import "./Badge-B4uWhfqf.js";
58import "./Progress-C9PiI6sJ.js";
59import "./get-auto-contrast-value-Da6zqqWm.js";
60import "./SimpleGrid-BYuVUcvh.js";
61import "./lodash-BEMU_hbT.js";
62import "./Title-AEHZf_Pl.js";
63import "./IconSearch-BvAEZ284.js";
64import "./IconBook2-Cg4raMvg.js";
65import "./lighten-D2OSxsI2.js";
66import "./Breadcrumbs-D8ZwSM8e.js";
67import "./IconHome2-C6vL2WeW.js";
68import "./use-disclosure-SDaMh0AC.js";
69import "./filesize.esm-CcEPj4ar.js";
70import "./IconX-B02OIiLB.js";
71import "./IconFileTypePdf-_mufS9lS.js";
72import "./InputBase-8b8fiagz.js";
73import "./Popover-JBdGCrAF.js";
74import "./use-uncontrolled--dmjAI3_.js";
75import "./CheckIcon-DTYd4mBF.js";
76import "./AccordionChevron-ziewROvF.js";
77import "./clamp-DTmYCdls.js";
78const ye = ({ auth: j }) => {
79  const t = A({ initialValues: { document_id: "", ia_no_or_application_no: "", case_no: "", res_name: "", case_year: "", pet_name: "", status: "", court_order_document_date: "", court_order_document_id: "" }, validate: { ia_no_or_application_no: (r) => r.length > 0 ? null : "Required", case_no: (r) => r.length > 0 ? null : "Required", pet_name: (r) => r.length > 0 ? null : "Required", res_name: (r) => r.length > 0 ? null : "Required", status: (r) => r.length > 0 ? null : "Required", case_year: (r) => r.length > 0 ? null : "Required" } }), [y, n] = u.useState(false), [c, g] = u.useState(null), [d, P] = u.useState(null), s = O(), T = t.onSubmit((r) => __async(void 0, null, function* () {
80    if (!c) {
81      h.show({ title: "Error", message: "Please upload a pdf file", color: "red" });
82      return;
83    }
84    try {
85      const i = new FormData();
86      i.append("file", c), n(true);
87      const l = yield (yield fetch("/admin/documents/upload?type=party_name", { method: "POST", body: i, headers: { Accept: "application/json" } })).json();
88      if (l.status === "error" && (h.show({ title: "Error", message: l.message, color: "red" }), n(false)), l.status === "success" && d) {
89        const _ = new FormData();
90        _.append("file", d);
91        const m = yield (yield fetch("/admin/documents/upload?type=court_order_party_name", { method: "POST", body: _, headers: { Accept: "application/json" } })).json();
92        m.status === "error" && (h.show({ title: "Error", message: m.message, color: "red" }), n(false)), m.status === "success" && b.post(window.location.href, __spreadProps(__spreadValues({}, r), { document_id: l.data.file_id, court_order_document_id: m.data.file_id }));
93      }
94      n(false);
95    } catch (e2) {
96    }
97  }));
98  return e.jsx(w, { navActive: ["case_status_case_no", "case_status"], auth: j, breadcrumbsTitle: e.jsxs(a, { gap: "md", children: [e.jsx(N, { href: window.location.href + "/..", style: { color: s.colors.gray[6], fontWeight: "bold" }, children: "Party Name" }), e.jsx(p, { children: "/" }), e.jsx(p, { children: "Add" })] }), children: e.jsx(p, { pos: "relative", children: e.jsx(a, { justify: "center", style: { overflowY: "scroll", maxHeight: window.innerHeight - 200 + "px" }, children: e.jsxs(p, { style: { maxWidth: "800px" }, children: [e.jsx(R, { visible: y, zIndex: 1e3, overlayProps: { radius: "sm", blur: 2 } }), e.jsxs(a, { gap: "md", children: [e.jsxs(a, { direction: "column", children: [e.jsx(o, { children: " Order of the Hon'ble Court:" }), e.jsx(I, { onFileUploaded: (r) => g(r), fileValue: c })] }), e.jsxs(a, { direction: "column", children: [e.jsx(o, { children: "CEC Report:" }), e.jsx(I, { onFileUploaded: (r) => P(r), fileValue: d })] })] }), e.jsxs("form", { onSubmit: T, children: [e.jsx(f, __spreadValues({ label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "IA No. / Application No.:" }), size: "sm", placeholder: "IA No. / Application No.", mt: "md", required: true }, t.getInputProps("ia_no_or_application_no"))), e.jsx(x, __spreadValues({ size: "sm", label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Case Year:" }), placeholder: "Case Year", style: { marginTop: "15px" }, data: [...new Array(D(/* @__PURE__ */ new Date()).year() - 1954).fill("").map((r, i) => "" + (1954 + i + 1))].reverse() }, t.getInputProps("case_year"))), e.jsx(S, __spreadValues({ label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Court Order Date:" }), placeholder: "Court Order Date", mt: "sm", required: true }, t.getInputProps("court_order_document_date"))), e.jsx(x, __spreadValues({ mt: "sm", placeholder: "Petition No.", label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Petition No.:" }), required: true, data: ["WRIT PETITION (CIVIL) 202 of 1995", "WRIT PETITION (CIVIL) 435 of 2012", "WRIT PETITION (CIVIL) 562 of 2009", "WRIT PETITION (CIVIL) 4677 of 1985", "WRIT PETITION (CIVIL) 13381 of 1984", "SLP (C) NO.", "CIVIL APPEAL NO.", "Any Others"] }, t.getInputProps("case_no"))), e.jsx(f, __spreadValues({ label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Pet Name:" }), size: "sm", placeholder: "Pet Name", mt: "md", required: true }, t.getInputProps("pet_name"))), e.jsx(f, __spreadValues({ label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Res Name:" }), size: "sm", placeholder: "Res Name", mt: "md", required: true }, t.getInputProps("res_name"))), e.jsx(x, __spreadValues({ size: "sm", label: e.jsx(o, { component: "span", fz: "sm", c: s.colors.primary[9], children: "Status:" }), placeholder: "Status", mt: "md", data: ["PENDING", "DISPOSED"] }, t.getInputProps("status"))), e.jsx(C, { type: "submit", mt: "lg", 
98children: e.jsxs(a, { align: "center", gap: "sm", children: [e.jsx(z, {}), "Publish"] }) })] })] }) }) }) });
99};
100export {
101  ye as default
102};

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.