1import { E as c, g, _ } from "./DashboardLayout-CXf_hhYT.js"; 2import { h as d } from "./functions-DLrKIvnr.js"; 3import { j as v, x as y, k as E, L as w, J as u, o as n, c as s, e as a, u as e, n as N, f as r, w as p, a as T, i as k, E as A, b as O, d as S, t as D, F as P, G as j } from "./app-yg_pP4S4.js"; 4import { r as C } from "./CogIcon-CahWjsyo.js"; 5import "./UserAvatar-B3-R1wxh.js"; 6import "./index-CDyB1Hog.js"; 7import "./XMarkIcon-C7ztHuKP.js"; 8import "./BaseButton-DP1PFEmO.js"; 9import "./ApplicationLogo-D4QkytOJ.js"; 10import "./LiveChat-BEmWJs6j.js"; 11import "./_plugin-vue_export-helper-DlAUqK2U.js"; 12import "./popover-DTQdCRwt.js"; 13import "./consts-7Qk9bpse.js"; 14import "./form-BcDj1t5Y.js"; 15import "./BaseInput-DrEncIoW.js"; 16import "./LoaderIcon-BfI_LFZK.js"; 17import "./ModalConfirmation-BptK8hn4.js"; 18import "./index-BF2h0ubX.js"; 19import "./CheckIcon-Bb6ppPFl.js"; 20import "./modelWrapper-D0DowOi8.js"; 21import "./BaseModal-lnT_D81c.js"; 22import "./EyeIcon-C30yl1ND.js"; 23import "./HomeIcon-B7IW8yDA.js"; 24import "./MinusIcon-C5ZUuSoW.js"; 25import "./menu-DpWDC0YJ.js"; 26import "./use-text-value-9Z6g_4jd.js"; 27import "./use-tree-walker-DC0osvAV.js"; 28import "./vue-transitions-DxcThSkT.js"; 29import "./ClockIcon-DWc8x_ii.js"; 30const M = { key: 0 }, B = { key: 1, class: "min-h-0 flex-1" }, F = ["src"], xe = { __name: "ExtensionShow", props: { extensionActivationDetail: { type: Object, required: true }, extensionActivation: { type: Object, required: true }, extension: { type: Object, required: true } }, setup(t) { 31 const { t: i } = v(), l = t, m = y().props.auth.user, o = j(null), x = [{ label: i("Settings"), url: route("settings.modules.index") }, { label: i("Modules and extensions"), url: route("settings.extensions.index") }, { label: i("Show extension") }]; 32 return E(() => { 33 l.extension.id === c.TYPEFORM && (o.value = document.createElement("script"), o.value.setAttribute("src", "https://embed.typeform.com/next/embed.js"), document.head.appendChild(o.value)); 34 }), w(() => { 35 l.extension.id === c.TYPEFORM && document.head.removeChild(o.value); 36 }), (f, I) => { 37 const h = u("tooltip"), b = u("dompurify-html"); 38 return n(), s(P, null, [a(e(N), { title: e(i)("Modules and extensions") }, null, 8, ["title"]), a(_, { breadcrumbs: x, "show-footer": false, class: "flex h-screen flex-col", "wrapper-class": "max-lg:[&_input]:text-base max-lg:[&_textarea]:text-base max-lg:[&_select]:text-base max-lg:[&_button[aria-haspopup=listbox]]:min-h-11" }, { header: r(() => [S(D(t.extensionActivation.label), 1)]), actions: r(() => [e(d)(e(m), "portal admin") || e(d)(e(m), "admin") ? p((n(), k(e(A), { key: 0, href: f.route("settings.extensions.edit", { extensionActivation: t.extensionActivation.id }), class: "inline-flex items-center rounded-md border border-gray-300 bg-white p-2 text-sm font-medium leading-4 text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2" }, { default: r(() => [a(e(C), { class: "h-5 w-5 text-gray-500", "aria-hidden": "true" })]), _: 1 }, 8, ["href"])), [[h, e(i)("Edit extension")]]) : O("", true)]), default: r(() => [t.extension.content_type === e(g).SNIPPET ? p((n(), s("div", M, null, 512)), [[b, t.extensionActivationDetail.interpolated_content]]) : (n(), s("div", B, [T("iframe", { src: t.extensionActivationDetail.interpolated_content, width: "100%", height: "100%", class: "h-full min-h-screen w-full", frameborder: "0" }, null, 8, F)]))]), _: 1 })], 64); 39 }; 40} }; 41export { 42 xe as default 43};
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.