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] = "cfc7be17-1f4a-46f1-9a6f-ea79a1263b25", e._sentryDebugIdIdentifier = "sentry-dbid-cfc7be17-1f4a-46f1-9a6f-ea79a1263b25"); 7 } catch (e) {} 8})(); 9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js"; 10import { Cs as DialogOverlay, Ds as init_dist, Es as DialogTrigger, Ss as DialogDescription, Ts as DialogTitle, bs as DialogClose, ws as DialogPortal, xs as DialogContent, ys as Dialog } from "./controllers-jdPQjaCB.js"; 11import { a as cn, i as require_compiler_runtime, n as cva, r as init_dist$1, t as require_jsx_runtime, u as init_utils } from "./jsx-runtime-CHSMGLHp.js"; 12import { t as require_react } from "./react-CrLPhuc5.js"; 13import { a as init_dist$2, t as Slot } from "./dist-DaaV-7o0.js"; 14import { n as init_icon, t as Icon } from "./icon-BNzYbsdJ.js"; 15import { r as init_button, t as Button } from "./button-DOiPZHfy.js"; 16//#region app/frontend/react/ui/sheet.tsx 17var import_compiler_runtime, import_react, import_jsx_runtime, Sheet, SheetTrigger, SheetPortal, SheetOverlay, sheetVariants, SheetContent, SheetHeader, SheetHeading, SheetBack, footerVariants, SheetFooter, SheetTitle, SheetDescription, sheetBodyVariants, SheetBody, SheetAlert; 18function init_sheet() { 19 return (init_sheet = __esmMin((() => { 20 import_compiler_runtime = require_compiler_runtime(); 21 import_react = /* @__PURE__ */ __toESM(require_react()); 22 init_dist(); 23 init_dist$1(); 24 init_utils(); 25 init_icon(); 26 init_button(); 27 init_dist$2(); 28 import_jsx_runtime = require_jsx_runtime(); 29 Sheet = Dialog; 30 SheetTrigger = DialogTrigger; 31 SheetPortal = DialogPortal; 32 SheetOverlay = import_react.forwardRef((t0, ref) => { 33 const $ = (0, import_compiler_runtime.c)(9); 34 let className; 35 let props; 36 if ($[0] !== t0) { 37 ({className, ...props} = t0); 38 $[0] = t0; 39 $[1] = className; 40 $[2] = props; 41 } else { 42 className = $[1]; 43 props = $[2]; 44 } 45 let t1; 46 if ($[3] !== className) { 47 t1 = cn("sidepanel__overlay is-visible", className); 48 $[3] = className; 49 $[4] = t1; 50 } else t1 = $[4]; 51 let t2; 52 if ($[5] !== props || $[6] !== ref || $[7] !== t1) { 53 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, { 54 className: t1, 55 ...props, 56 ref 57 }); 58 $[5] = props; 59 $[6] = ref; 60 $[7] = t1; 61 $[8] = t2; 62 } else t2 = $[8]; 63 return t2; 64 }); 65 SheetOverlay.displayName = DialogOverlay.displayName; 66 sheetVariants = cva("sidepanel position-fixed", { 67 variants: { 68 size: { 69 md: "sidepanel--md", 70 lg: "sidepanel--lg" 71 }, 72 side: { 73 top: "top-0", 74 bottom: "bottom-0",
75 left: "top-0 start-0", 76 right: "top-0 end-0" 77 } 78 }, 79 defaultVariants: { side: "right" } 80 }); 81 SheetContent = import_react.forwardRef(({ side = "right", size, className, overlay = true, children, onOpenAutoFocus, ...props }, ref) => { 82 const handleInteractOutside = (event) => { 83 const target = event.detail.originalEvent.target; 84 if (!overlay || target instanceof Element && target.closest("[data-sheet-keep-open]")) event.preventDefault(); 85 props.onInteractOutside?.(event); 86 }; 87 return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPortal, { children: [overlay && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetOverlay, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, { 88 ref, 89 className: cn(sheetVariants({ 90 side, 91 size 92 }), className), 93 "data-side": side, 94 "aria-describedby": void 0, 95 ...props, 96 tabIndex: -1, 97 onInteractOutside: handleInteractOutside, 98 onOpenAutoFocus, 99 children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogClose, { 100 className: "sidepanel__close", 101 asChild: true, 102 children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, { 103 variant: "ghost", 104 iconOnly: true, 105 size: "sm", 106 children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { 107 icon: "times", 108 size: "sm" 109 }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { 110 className: "sr-only", 111 children: "Close" 112 })] 113 }) 114 })] 115 })] }); 116 }); 117 SheetContent.displayName = DialogContent.displayName; 118 SheetHeader = (t0) => { 119 const $ = (0, import_compiler_runtime.c)(8); 120 let className; 121 let props; 122 if ($[0] !== t0) { 123 ({className, ...props} = t0); 124 $[0] = t0; 125 $[1] = className; 126 $[2] = props; 127 } else { 128 className = $[1]; 129 props = $[2]; 130 } 131 let t1; 132 if ($[3] !== className) { 133 t1 = cn("sidepanel__header", className); 134 $[3] = className; 135 $[4] = t1; 136 } else t1 = $[4]; 137 let t2; 138 if ($[5] !== props || $[6] !== t1) { 139 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 140 className: t1, 141 ...props 142 }); 143 $[5] = props; 144 $[6] = t1; 145 $[7] = t2; 146 } else t2 = $[7]; 147 return t2; 148 }; 149 SheetHeader.displayName = "SheetHeader"; 150 SheetHeading = (t0) => { 151 const $ = (0, import_compiler_runtime.c)(8); 152 let className; 153 let props; 154 if ($[0] !== t0) { 155 ({className, ...props} = t0); 156 $[0] = t0; 157 $[1] = className; 158 $[2] = props; 159 } else { 160 className = $[1]; 161 props = $[2]; 162 } 163 let t1; 164 if ($[3] !== className) { 165 t1 = cn("sidepanel__heading", className); 166 $[3] = className; 167 $[4] = t1; 168 } else t1 = $[4]; 169 let t2; 170 if ($[5] !== props || $[6] !== t1) { 171 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 172 className: t1, 173 ...props 174 }); 175 $[5] = props; 176 $[6] = t1; 177 $[7] = t2; 178 } else t2 = $[7]; 179 return t2; 180 }; 181 SheetHeading.displayName = "SheetHeading"; 182 SheetBack = import_react.forwardRef(({ className, "aria-label": ariaLabel = "Back", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, { 183 ref, 184 type: "button", 185 variant: "ghost", 186 iconOnly: true, 187 size: "sm", 188 "aria-label": ariaLabel, 189 className: cn("sidepanel__back-button", className), 190 ...props, 191 children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { 192 icon: "arrow-left", 193 size: "sm", 194 "aria-hidden": "true" 195 }) 196 })); 197 SheetBack.displayName = "SheetBack"; 198 footerVariants = cva("sidepanel__footer", { 199 variants: { sticky: { 200 true: "sidepanel__footer--sticky", 201 false: "" 202 } }, 203 defaultVariants: { sticky: false } 204 }); 205 SheetFooter = ({ className, sticky = false, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("footer", { 206 className: cn(footerVariants({ sticky }), className), 207 ...props 208 }); 209 SheetFooter.displayName = "SheetFooter"; 210 SheetTitle = import_react.forwardRef((t0, ref) => { 211 const $ = (0, import_compiler_runtime.c)(9); 212 let className; 213 let props; 214 if ($[0] !== t0) { 215 ({className, ...props} = t0); 216 $[0] = t0; 217 $[1] = className; 218 $[2] = props; 219 } else { 220 className = $[1]; 221 props = $[2]; 222 } 223 let t1; 224 if ($[3] !== className) { 225 t1 = cn("sidepanel__title", className); 226 $[3] = className; 227 $[4] = t1; 228 } else t1 = $[4]; 229 let t2; 230 if ($[5] !== props || $[6] !== ref || $[7] !== t1) { 231 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { 232 ref, 233 className: t1, 234 ...props 235 }); 236 $[5] = props; 237 $[6] = ref; 238 $[7] = t1; 239 $[8] = t2; 240 } else t2 = $[8]; 241 return t2; 242 }); 243 SheetTitle.displayName = DialogTitle.displayName; 244 SheetDescription = import_react.forwardRef((t0, ref) => { 245 const $ = (0, import_compiler_runtime.c)(9); 246 let className; 247 let props; 248 if ($[0] !== t0) { 249 ({className, ...props} = t0); 250 $[0] = t0; 251 $[1] = className; 252 $[2] = props; 253 } else { 254 className = $[1]; 255 props = $[2]; 256 } 257 let t1; 258 if ($[3] !== className) { 259 t1 = cn("sidepanel__description", className); 260 $[3] = className; 261 $[4] = t1; 262 } else t1 = $[4]; 263 let t2; 264 if ($[5] !== props || $[6] !== ref || $[7] !== t1) { 265 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { 266 ref, 267 className: t1, 268 ...props 269 }); 270 $[5] = props; 271 $[6] = ref; 272 $[7] = t1; 273 $[8] = t2; 274 } else t2 = $[8]; 275 return t2; 276 }); 277 SheetDescription.displayName = DialogDescription.displayName; 278 sheetBodyVariants = cva("sidepanel__body", { 279 variants: { padding: { 280 none: "", 281 md: "sidepanel__body--padding-md" 282 } }, 283 defaultVariants: { padding: "md" } 284 }); 285 SheetBody = import_react.forwardRef((t0, ref) => { 286 const $ = (0, import_compiler_runtime.c)(11); 287 let className; 288 let padding; 289 let props; 290 if ($[0] !== t0) { 291 ({className, padding, ...props} = t0); 292 $[0] = t0; 293 $[1] = className; 294 $[2] = padding; 295 $[3] = props; 296 } else { 297 className = $[1]; 298 padding = $[2]; 299 props = $[3]; 300 } 301 let t1; 302 if ($[4] !== className || $[5] !== padding) { 303 t1 = cn(sheetBodyVariants({ padding }), className); 304 $[4] = className; 305 $[5] = padding; 306 $[6] = t1; 307 } else t1 = $[6]; 308 let t2; 309 if ($[7] !== props || $[8] !== ref || $[9] !== t1) { 310 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 311 ref, 312 className: t1, 313 ...props 314 }); 315 $[7] = props; 316 $[8] = ref; 317 $[9] = t1; 318 $[10] = t2; 319 } else t2 = $[10]; 320 return t2; 321 }); 322 SheetBody.displayName = "SheetBody"; 323 SheetAlert = import_react.forwardRef((t0, ref) => { 324 const $ = (0, import_compiler_runtime.c)(9); 325 let className; 326 let props; 327 if ($[0] !== t0) { 328 ({className, ...props} = t0); 329 $[0] = t0; 330 $[1] = className; 331 $[2] = props; 332 } else { 333 className = $[1]; 334 props = $[2]; 335 } 336 let t1; 337 if ($[3] !== className) { 338 t1 = cn("sidepanel__alert", className); 339 $[3] = className; 340 $[4] = t1; 341 } else t1 = $[4]; 342 let t2; 343 if ($[5] !== props || $[6] !== ref || $[7] !== t1) { 344 t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slot, { 345 ref, 346 className: t1, 347 ...props 348 }); 349 $[5] = props; 350 $[6] = ref; 351 $[7] = t1; 352 $[8] = t2; 353 } else t2 = $[8]; 354 return t2; 355 }); 356 SheetAlert.displayName = "SheetAlert"; 357 })))(); 358} 359//#endregion 360export { SheetContent as a, SheetHeader as c, SheetTrigger as d, init_sheet as f, SheetBody as i, SheetHeading as l, SheetAlert as n, SheetDescription as o, SheetBack as r, SheetFooter as s, Sheet as t, SheetTitle as u };
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.