PageSourceSearch

https://www.datamidsouth.org/static/assets/FullscreenPanel-292yBvrS.js

js datamidsouth.org collected 2026-10-05 18:10:43 UTC 1,905 bytes, 1 lines download raw bytes

1import{r as l,P as e,I as E,j as s,c as m,C as T,at as x}from"./automationAxios-iy0n8IC9.js";import{k as _,j as k,R as K,m as q}from"./usePrevious-DU34Ubr5.js";import{P as w,I as B,K as D}from"./KeyboardShortcut-77D-Ww4s.js";import{u as U}from"./usePortal-yLZ0Kkq8.js";import{u as z}from"./SearchFilter-DWYzfvU-.js";const h=l.createContext(null);function d({children:o,className:a}){const n=l.useContext(h);return n?x.createPortal(s.jsx("div",{className:m("rods-fullscreen-panel__footer",a),children:o}),n):null}d.propTypes={children:e.node.isRequired,className:e.string};d.defaultProps={className:""};function f({isOpen:o,close:a,children:n,className:C,onOpen:i,onClose:u,disableEscapeKey:b,disableCloseIcon:j,animationPlaceholder:t}){const{i18n:v}=l.useContext(E),P=z(),R=U(P),[I,S]=l.useState(!!t),p=l.useRef(null),[y,N]=l.useState(null),g=l.useCallback((r,c)=>{u&&r&&c==="leave"?u():i&&!r&&c==="leave"&&i(),S(!o&&!!t)},[i,u,o,t]),F=_(o,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},onRest:g,config:q.stiff})((r,c)=>c&&s.jsxs(k.div,{className:"rods-fullscreen-panel",style:r,ref:p,children:[s.jsx("div",{className:m("rods-fullscreen-panel__scroll-area",C),children:s.jsx(w,{value:p,children:s.jsx(h.Provider,{value:y,children:I&&t?t:n})})}),s.jsx("div",{ref:N}),!j&&s.jsx(B,{className:"rods-fullscreen-panel__close-button",onClick:a,"aria-label":v.translate("Close panel"),children:s.jsx(T,{})})]},1));return x.createPortal(s.jsxs(K,{enabled:o,children:[F,o&&s.jsx(D,{stopCallback:b,shortcuts:[{shortcut:"esc",handler:a}]})]}),R)}f.propTypes={isOpen:e.bool,close:e.func.isRequired,children:e.node,className:e.string,onOpen:e.func,onClose:e.func,animationPlaceholder:e.node,disableEscapeKey:e.bool,disableCloseIcon:e.bool};f.defaultProps={isOpen:!1,children:null,className:"",onOpen:null,onClose:null,animationPlaceholder:null,disableEscapeKey:!1,disableCloseIcon:!1};f.Footer=d;export{f as F};

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.