PageSourceSearch

https://rangeusa.com/build/assets/Create-CKCL3FFO.js

js rangeusa.com collected 2026-09-28 06:47:19 UTC 3,196 bytes, 73 lines download raw bytes

1import { a7 as useForm, b as openBlock, c as createElementBlock, C as createBaseVNode, J as createTextVNode, e as createVNode, N as withDirectives, W as vModelText, k as unref, G as toDisplayString, q as createCommentVNode, D as withModifiers, F as Fragment, U as router } from "./vendor-CmzCb6hx.js";
2import { _ as _sfc_main$1 } from "./LabelAndTooltip-jcsu5bTr.js";
3import "./Tooltip-8cxHf0RD.js";
4const _hoisted_1 = { class: "" };
5const _hoisted_2 = { class: "" };
6const _hoisted_3 = {
7  key: 0,
8  class: "input-error"
9};
10const _sfc_main = {
11  __name: "Create",
12  props: {
13    fields: Object
14  },
15  setup(__props) {
16    const formClassification = useForm({
17      classification_name: null
18    });
19    const createClassification = () => {
20      formClassification.post(route("admin.bound-book-classification.store"));
21    };
22    const redirect = () => {
23      router.get(route("admin.bound-book-classification.index"));
24    };
25    return (_ctx, _cache) => {
26      return openBlock(), createElementBlock(Fragment, null, [
27        createBaseVNode("div", { class: "flex justify-between border-b-2 border-stone-600 mb-4 pb-2" }, [
28          _cache[2] || (_cache[2] = createBaseVNode("div", { class: "pt-2 text-2xl" }, "Create Classification", -1)),
29          createBaseVNode("button", {
30            class: "group hover:orange-button white-button",
31            onClick: redirect
32          }, [..._cache[1] || (_cache[1] = [
33            createBaseVNode("i", { class: "group-hover:text-white fa-solid fa-arrow-left mr-2" }, null, -1),
34            createTextVNode(" Back ", -1)
35          ])])
36        ]),
37        createBaseVNode("form", {
38          onSubmit: withModifiers(createClassification, ["prevent"]),
39          class: ""
40        }, [
41          createBaseVNode("div", _hoisted_1, [
42            createBaseVNode("div", _hoisted_2, [
43              createVNode(_sfc_main$1, {
44                Label: __props.fields["classification_name"].field_label,
45                Tooltip: __props.fields["classification_name"].definition,
46                ShowTooltip: __props.fields["classification_name"].show_tooltip
47              }, null, 8, ["Label", "Tooltip", "ShowTooltip"]),
48              withDirectives(createBaseVNode("input", {
49                class: "input w-1/4",
50                type: "text",
51                "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(formClassification).classification_name = $event),
52                required: "",
53                maxlength: "20"
54              }, null, 512), [
55                [vModelText, unref(formClassification).classification_name]
56              ]),
57              unref(formClassification).errors.classification_name ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(formClassification).errors.classification_name), 1)) : createCommentVNode("", true)
58            ])
59          ]),
60          _cache[3] || (_cache[3] = createBaseVNode("div", { class: "mt-6" }, [
61            createBaseVNode("button", {
62              type: "submit",
63              class: "hover:orange-button white-button"
64            }, " Create ")
65          ], -1))
66        ], 32)
67      ], 64);
68    };
69  }
70};
71export {
72  _sfc_main as default
73};

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.