import{ao as n,dV as u,a_ as l,aQ as x,c8 as m,ba as w,o as j,du as v,av as N}from"./app-k0jcl5PQ.js";function f(a){return n.jsx("svg",{...a,children:n.jsx("path",{d:"M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3",fill:"currentColor"})})}const b="_dropdownToggle_1jkd1_1",y={dropdownToggle:b};function k(){return n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{padding:"0.53125rem 1rem"},children:n.jsx("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"8rem"}})}),n.jsx("div",{style:{padding:"0.53125rem 1rem"},children:n.jsx("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"12rem"}})}),n.jsx("div",{style:{padding:"0.53125rem 1rem"},children:n.jsx("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"11rem"}})}),n.jsx("div",{style:{padding:"0.53125rem 1rem"},children:n.jsx("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"9rem"}})})]})}function d(a){let e="dropdown-item";return a&&(e+=` ${a}`),e}function h(a){const e=m.isFunction(a.action.label)?a.action.label():n.jsx(n.Fragment,{children:a.action.label});if(a.action.appLink)return n.jsxs(w,{appLink:a.action.appLink,onClick:a.action.onClick,className:d(a.action.className),analyticsData:a.action.analyticsData,analyticsOptions:a.action.analyticsOptions,openInNewTab:a.action.openInNewTab,disabled:a.action.disabled,children:[a.action.svg&&n.jsx(l,{svg:a.action.svg,className:"d-inline-block svg-container me-2 align-middle"}),n.jsx("span",{className:"align-middle",children:e})]});function o(t){t.preventDefault(),a.action.analyticsData&&a.action.analyticsOptions&&j.logUserAction(a.action.analyticsData,a.action.analyticsOptions),m.isFunction(a.action.onClick)&&a.action.onClick(),a.action.href&&v.PageLoad(a.action.href,a.action.openInNewTab)}return a.action.href?n.jsxs("a",{className:d(a.action.className),onClick:o,href:a.action.href,children:[a.action.svg&&n.jsx(l,{svg:a.action.svg,className:"d-inline-block svg-container me-2 align-middle"}),n.jsx("span",{className:"align-middle",children:e})]}):n.jsxs("span",{className:`cursor-pointer ${d(a.action.className)}`,onClick:o,role:"button",tabIndex:0,onKeyDown:t=>t.key==="Enter"&&o(t),children:[a.action.svg&&n.jsx(l,{svg:a.action.svg,className:"d-inline-block svg-container me-2"}),e]})}T.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:N.Small};function T(a){if(!a.actions||!a.actions.length)return n.jsx(n.Fragment,{});const e=a.actions.some(i=>i.lazyPlaceholder);let o="dropdown";a.className&&(o+=` ${a.className}`);const t=`actions-dropdown-${u.getRandomInt()}`;let c=`dropdown-toggle px-0 ${y.dropdownToggle}`;a.dropdownToggleClassName&&(c+=` ${a.dropdownToggleClassName}`);let s;return n.jsxs("div",{className:o,children:[n.jsx("button",{className:c,type:"button",id:t,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"More actions dropdown",onClick:e?a.fetchMore:null,children:n.jsx(l,{svg:f,size:a.dropdownToggleSvgSize})}),n.jsx("ul",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right font-size-normal","aria-labelledby":t,children:e?n.jsx(k,{}):a.actions.map((i,r)=>{const g=s!==void 0&&s!==i.group;return s=i.group,i.tooltip?n.jsxs("li",{children:[g&&n.jsx("hr",{className:"dropdown-divider",role:"separator"}),n.jsx(x,{title:i.tooltip,spanHack:!0,children:n.jsx(h,{action:i})})]},r):n.jsxs("li",{children:[g&&n.jsx("hr",{className:"dropdown-divider",role:"separator"}),n.jsx(h,{action:i})]},r)})})]})}export{T as A};
//# sourceMappingURL=wCY37Ze3.chunk.js.map
