PageSourceSearch

https://hachyderm.io/packs/confirmation_modal-DFFN22Lh.js

js hachyderm.io collected 2026-09-24 08:27:58 UTC 1,353 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{a as n}from"./react-intl-DlKP8ATg.js";import{t as r}from"./jsx-runtime-BdxMnOeJ.js";import{r as i}from"./navigation_focus_target-B65hNV9H.js";import{t as a}from"./button-BmF3DXsp.js";import{n as o,r as s,t as c}from"./modal_shell-BubSV6Ff.js";var l=e(t()),u=r(),d=({title:e,titleId:t,message:r,confirm:d,cancel:f,onClose:p,onConfirm:m,secondary:h,onSecondary:g,extraContent:_,children:v,className:y,updating:b,disabled:x,noCloseOnConfirm:S=!1,noFocusButton:C=!1})=>{let w=(0,l.useCallback)(e=>{e.preventDefault(),S||p(),m()},[p,m,S]),T=(0,l.useCallback)(()=>{p(),g?.()},[p,g]);return(0,u.jsxs)(c,{onSubmit:w,children:[(0,u.jsxs)(s,{className:y,children:[C?(0,u.jsx)(i,{as:`h1`,id:t,children:e}):(0,u.jsx)(`h1`,{children:e}),r&&(0,u.jsx)(`p`,{children:r}),_??v]}),(0,u.jsxs)(o,{children:[(0,u.jsx)(`button`,{onClick:p,className:`link-button`,type:`button`,children:f??(0,u.jsx)(n,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),h&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`spacer`}),(0,u.jsx)(`button`,{onClick:T,className:`link-button`,type:`button`,disabled:x,children:h})]}),(0,u.jsx)(a,{type:`submit`,loading:b,disabled:x,autoFocus:!C,children:d})]})]})};export{d as t};
2//# sourceMappingURL=confirmation_modal-DFFN22Lh.js.map

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.