1(function() { 2 try { 3 var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}; 4 e.SENTRY_RELEASE = { id: "b96dc26" }; 5 var n = new e.Error().stack; 6 n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "241ae431-a280-4b90-bd56-1a527299e419", e._sentryDebugIdIdentifier = "sentry-dbid-241ae431-a280-4b90-bd56-1a527299e419"); 7 } catch (e) {} 8})(); 9import { n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js"; 10import { i as require_compiler_runtime, t as require_jsx_runtime } from "./jsx-runtime-CHSMGLHp.js"; 11import { t as require_react } from "./react-CrLPhuc5.js"; 12import { a as init_dist, s as usePage, t as Head_default } from "./dist-ZlUHm0R7.js"; 13import { r as init_AppLayout, t as AppLayout } from "./AppLayout-KSwds5qH.js"; 14import { n as useFlashMessages, t as init_useFlashMessages } from "./useFlashMessages-CaMVzoCv.js"; 15import { n as useLegacyBodyClass, t as init_useLegacyBodyClass } from "./useLegacyBodyClass-D667Iu64.js"; 16import { n as init_SequencesSubmenu, t as SequencesSubmenu } from "./SequencesSubmenu-CPPYbJ2m.js"; 17import { i as init_TemplateForm, n as init_TemplateFormHeader, r as TemplateForm, t as TemplateFormHeader } from "./TemplateFormHeader-Cb-jCUPu.js"; 18//#region app/frontend/pages/MessageTemplates/Edit.tsx 19function Edit() { 20 const $ = (0, import_compiler_runtime.c)(19); 21 const { props } = usePage(); 22 useLegacyBodyClass("message_templates edit"); 23 useFlashMessages(props.flash); 24 const title = props.template.name ?? ""; 25 let t0; 26 if ($[0] !== title) { 27 t0 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Head_default, { title }); 28 $[0] = title; 29 $[1] = t0; 30 } else t0 = $[1]; 31 let t1; 32 if ($[2] !== props.submenu) { 33 t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 34 className: "dashboard-main__submenu", 35 children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SequencesSubmenu, { ...props.submenu }) 36 }); 37 $[2] = props.submenu; 38 $[3] = t1; 39 } else t1 = $[3]; 40 let t2; 41 if ($[4] !== props.paths.browseTemplates || $[5] !== props.paths.templates || $[6] !== title) { 42 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateFormHeader, { 43 title, 44 templatesPath: props.paths.templates, 45 browseTemplatesPath: props.paths.browseTemplates 46 }); 47 $[4] = props.paths.browseTemplates; 48 $[5] = props.paths.templates; 49 $[6] = title; 50 $[7] = t2; 51 } else t2 = $[7]; 52 let t3; 53 if ($[8] !== props) { 54 t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateForm, { ...props }); 55 $[8] = props; 56 $[9] = t3; 57 } else t3 = $[9]; 58 let t4; 59 if ($[10] !== t2 || $[11] !== t3) { 60 t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 61 className: "dashboard-main__content", 62 children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { 63 className: "board-box pb-0", 64 children: [t2, t3] 65 }) 66 }); 67 $[10] = t2; 68 $[11] = t3; 69 $[12] = t4; 70 } else t4 = $[12]; 71 let t5; 72 if ($[13] !== t1 || $[14] !== t4) { 73 t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("main", { 74 className: "dashboard-main", 75 children: [t1, t4] 76 }); 77 $[13] = t1; 78 $[14] = t4; 79 $[15] = t5; 80 } else t5 = $[15]; 81 let t6; 82 if ($[16] !== t0 || $[17] !== t5) { 83 t6 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t0, t5] }); 84 $[16] = t0; 85 $[17] = t5; 86 $[18] = t6; 87 } else t6 = $[18]; 88 return t6; 89} 90var import_compiler_runtime, import_react, import_jsx_runtime; 91function init_Edit() { 92 return (init_Edit = __esmMin((() => { 93 import_compiler_runtime = require_compiler_runtime(); 94 init_dist(); 95 import_react = require_react(); 96 init_AppLayout(); 97 init_useLegacyBodyClass(); 98 init_useFlashMessages(); 99 init_SequencesSubmenu(); 100 init_TemplateForm(); 101 init_TemplateFormHeader(); 102 import_jsx_runtime = require_jsx_runtime(); 103 Edit.layout = (page) => (0, import_react.createElement)(AppLayout, { navCollapsed: true }, page); 104 })))(); 105} 106//#endregion 107init_Edit(); 108export { Edit as default };
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.