"use strict";(globalThis.webpackChunkacmsWebpackJsonp||=[]).push([[1527],{68523(s,a,c){c.r(a),c(67622),c(38660);var e=c(71763),t=c(97500),r=c.n(t),n=c(367),o=c(51406),m=c(97896),l=c(91987);function d({command:s}){return(0,l.jsx)("kbd",{className:"acms-admin-shortcut-key",children:s})}function i({commands:s}){return(0,l.jsx)("kbd",{className:"acms-admin-shortcut-key-group",children:s.map(s=>(0,l.jsx)(d,{command:s},s))})}function u({label:s,commands:a}){return(0,l.jsxs)("li",{className:"acms-admin-shortcut-listitem",children:[(0,l.jsx)("span",{className:"acms-admin-shortcut-label",children:s}),(0,l.jsx)(i,{commands:a})]})}function h({category:s,shortcuts:a}){return(0,l.jsxs)("section",{className:"acms-admin-shortcut",children:[(0,l.jsx)("h4",{className:"acms-admin-shortcut-heading",children:s.heading}),(0,l.jsx)("ul",{className:"acms-admin-shortcut-list",children:a.map(a=>(0,l.jsx)(u,{...a},`${s.id}-${a.id}`))})]})}const b=(0,e.forwardRef)(({className:s,...a},c)=>{const[t,d]=(0,e.useState)(()=>m.F.getShortcuts()),i=(0,e.useCallback)(()=>{a.onAfterOpen&&a.onAfterOpen(),d(m.F.getShortcuts())},[a]);return(0,l.jsxs)(n.Ay,{ref:c,className:r()("acms-admin-keyboard-shortcut-modal",s),"aria-labelledby":"acms-keyboard-shortcut-modal-title",...a,onAfterOpen:i,isScrollable:!0,isCentered:!0,children:[(0,l.jsx)(o.rQ,{children:"キーボードショートカット"}),(0,l.jsx)(o.cw,{children:t.map(({category:s,shortcuts:a})=>(0,l.jsx)(h,{category:s,shortcuts:a},s.id))})]})});b.displayName="KeyboardShortcutModal";const j=b;c.d(a,["default",0,j])}}]);