1import { u as useIndexStore } from "./IndexTableDisplay-Bf-_B9t_.js"; 2import { b as openBlock, c as createElementBlock, C as createBaseVNode, G as toDisplayString, k as unref, h as renderSlot, p as createBlock, g as withCtx, J as createTextVNode, Y as link_default, q as createCommentVNode } from "./vendor-CmzCb6hx.js"; 3const _hoisted_1 = { class: "flex flex-col items-center gap-4 sm:flex-row sm:justify-between px-4 sm:px-6 lg:px-0" }; 4const _hoisted_2 = { class: "text-2xl" }; 5const _hoisted_3 = { class: "flex gap-2" }; 6const _sfc_main = { 7 __name: "IndexPageHeaderBar", 8 props: { 9 customCreateRoute: { 10 type: String, 11 default: null 12 }, 13 hideCreate: { 14 type: Boolean, 15 default: false 16 } 17 }, 18 setup(__props) { 19 const indexStore = useIndexStore(); 20 return (_ctx, _cache) => { 21 var _a, _b; 22 return openBlock(), createElementBlock("div", _hoisted_1, [ 23 createBaseVNode("div", _hoisted_2, toDisplayString((_b = (_a = unref(indexStore)) == null ? void 0 : _a.module) == null ? void 0 : _b.module_name), 1), 24 createBaseVNode("div", _hoisted_3, [ 25 renderSlot(_ctx.$slots, "default"), 26 !__props.hideCreate && (__props.customCreateRoute || unref(indexStore).getHasCreatePermission) ? (openBlock(), createBlock(unref(link_default), { 27 key: 0, 28 href: __props.customCreateRoute ? _ctx.route(__props.customCreateRoute) : _ctx.route(unref(indexStore).getCreateRoute), 29 class: "px-3 py-2 text-sm bg-primary-orange text-white border border-primary-orange rounded hover:bg-primary-orange-hover transition-all duration-300 flex items-center gap-2" 30 }, { 31 default: withCtx(() => [..._cache[0] || (_cache[0] = [ 32 createTextVNode(" Create New ", -1), 33 createBaseVNode("i", { class: "fas fa-plus" }, null, -1) 34 ])]), 35 _: 1 36 }, 8, ["href"])) : createCommentVNode("", true) 37 ]) 38 ]); 39 }; 40 } 41}; 42export { 43 _sfc_main as _ 44};
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.