@omer-x/buttler
Version:
automates CI/CD workflows using Docker and GitHub webhooks
1 lines • 29.4 kB
JavaScript
exports.id=744,exports.ids=[744],exports.modules={16708:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>B});var a,o=r(69662),l=r.n(o),s=r(84365),i=r(53033),c=r(60972),u=r(85242);function d(e){if((!a&&0!==a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a}var f=r(43210),p=r(26633),m=r(92795),b=r(71790),h=r(99398),y=r(18156),g=r(86996),v=r(7316),x=r(34324);function j(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var O=r(23289);let w={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class A extends O.default{adjustAndStore(e,t,r){let n=t.style[e];t.dataset[e]=n,(0,v.default)(t,{[e]:`${parseFloat((0,v.default)(t,e))+r}px`})}restore(e,t){let r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,v.default)(t,{[e]:r}))}setContainerStyle(e){var t;super.setContainerStyle(e);let r=this.getElement();if(t="modal-open",r.classList?r.classList.add(t):(0,g.A)(r,t)||("string"==typeof r.className?r.className=r.className+" "+t:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+t)),!e.scrollBarWidth)return;let n=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,x.default)(r,w.FIXED_CONTENT).forEach(t=>this.adjustAndStore(n,t,e.scrollBarWidth)),(0,x.default)(r,w.STICKY_CONTENT).forEach(t=>this.adjustAndStore(a,t,-e.scrollBarWidth)),(0,x.default)(r,w.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(a,t,e.scrollBarWidth))}removeContainerStyle(e){var t;super.removeContainerStyle(e);let r=this.getElement();t="modal-open",r.classList?r.classList.remove(t):"string"==typeof r.className?r.className=j(r.className,t):r.setAttribute("class",j(r.className&&r.className.baseVal||"",t));let n=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,x.default)(r,w.FIXED_CONTENT).forEach(e=>this.restore(n,e)),(0,x.default)(r,w.STICKY_CONTENT).forEach(e=>this.restore(a,e)),(0,x.default)(r,w.NAVBAR_TOGGLER).forEach(e=>this.restore(a,e))}}var N=r(48714),T=r(98466),k=r(60687);let E=f.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},a)=>(t=(0,T.oU)(t,"modal-body"),(0,k.jsx)(r,{ref:a,className:l()(e,t),...n})));E.displayName="ModalBody";let C=f.createContext({onHide(){}}),_=f.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:n,size:a,fullscreen:o,children:s,scrollable:i,...c},u)=>{e=(0,T.oU)(e,"modal");let d=`${e}-dialog`,f="string"==typeof o?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return(0,k.jsx)("div",{...c,ref:u,className:l()(d,t,a&&`${e}-${a}`,n&&`${d}-centered`,i&&`${d}-scrollable`,o&&f),children:(0,k.jsx)("div",{className:l()(`${e}-content`,r),children:s})})});_.displayName="ModalDialog";let R=_,S=f.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},a)=>(t=(0,T.oU)(t,"modal-footer"),(0,k.jsx)(r,{ref:a,className:l()(e,t),...n})));S.displayName="ModalFooter";var z=r(81174);let M=f.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:a,...o},l)=>{let s=(0,f.useContext)(C),i=(0,p.A)(()=>{null==s||s.onHide(),null==n||n()});return(0,k.jsxs)("div",{ref:l,...o,children:[a,r&&(0,k.jsx)(z.A,{"aria-label":e,variant:t,onClick:i})]})}),I=f.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:n=!1,...a},o)=>(e=(0,T.oU)(e,"modal-header"),(0,k.jsx)(M,{ref:o,...a,className:l()(t,e),closeLabel:r,closeButton:n})));I.displayName="ModalHeader";let L=(0,r(25154).A)("h4"),P=f.forwardRef(({className:e,bsPrefix:t,as:r=L,...n},a)=>(t=(0,T.oU)(t,"modal-title"),(0,k.jsx)(r,{ref:a,className:l()(e,t),...n})));function $(e){return(0,k.jsx)(N.A,{...e,timeout:null})}function D(e){return(0,k.jsx)(N.A,{...e,timeout:null})}P.displayName="ModalTitle";let F=f.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:a,contentClassName:o,children:g,dialogAs:v=R,"data-bs-theme":x,"aria-labelledby":j,"aria-describedby":O,"aria-label":w,show:N=!1,animation:E=!0,backdrop:_=!0,keyboard:S=!0,onEscapeKeyDown:z,onShow:M,onHide:I,container:L,autoFocus:P=!0,enforceFocus:F=!0,restoreFocus:B=!0,restoreFocusOptions:W,onEntered:U,onExit:H,onExiting:V,onEnter:K,onEntering:G,onExited:q,backdropClassName:Y,manager:X,...Z},J)=>{let[Q,ee]=(0,f.useState)({}),[et,er]=(0,f.useState)(!1),en=(0,f.useRef)(!1),ea=(0,f.useRef)(!1),eo=(0,f.useRef)(null),[el,es]=(0,f.useState)(null),ei=(0,m.A)(J,es),ec=(0,p.A)(I),eu=(0,T.Wz)();e=(0,T.oU)(e,"modal");let ed=(0,f.useMemo)(()=>({onHide:ec}),[ec]);function ef(){return X?X:(n||(n=new A({isRTL:eu})),n)}function ep(e){if(!i.default)return;let t=ef().getScrollbarWidth()>0,r=e.scrollHeight>(0,c.default)(e).documentElement.clientHeight;ee({paddingRight:t&&!r?d():void 0,paddingLeft:!t&&r?d():void 0})}let em=(0,p.A)(()=>{el&&ep(el.dialog)});(0,b.A)(()=>{(0,u.A)(window,"resize",em),null==eo.current||eo.current()});let eb=()=>{en.current=!0},eh=e=>{en.current&&el&&e.target===el.dialog&&(ea.current=!0),en.current=!1},ey=()=>{er(!0),eo.current=(0,h.A)(el.dialog,()=>{er(!1)})},eg=e=>{e.target===e.currentTarget&&ey()},ev=e=>{if("static"===_){eg(e);return}if(ea.current||e.target!==e.currentTarget){ea.current=!1;return}null==I||I()},ex=(0,f.useCallback)(t=>(0,k.jsx)("div",{...t,className:l()(`${e}-backdrop`,Y,!E&&"show")}),[E,Y,e]),ej={...r,...Q};return ej.display="block",(0,k.jsx)(C.Provider,{value:ed,children:(0,k.jsx)(y.A,{show:N,ref:ei,backdrop:_,container:L,keyboard:!0,autoFocus:P,enforceFocus:F,restoreFocus:B,restoreFocusOptions:W,onEscapeKeyDown:e=>{S?null==z||z(e):(e.preventDefault(),"static"===_&&ey())},onShow:M,onHide:I,onEnter:(e,t)=>{e&&ep(e),null==K||K(e,t)},onEntering:(e,t)=>{null==G||G(e,t),(0,s.Ay)(window,"resize",em)},onEntered:U,onExit:e=>{null==eo.current||eo.current(),null==H||H(e)},onExiting:V,onExited:e=>{e&&(e.style.display=""),null==q||q(e),(0,u.A)(window,"resize",em)},manager:ef(),transition:E?$:void 0,backdropTransition:E?D:void 0,renderBackdrop:ex,renderDialog:r=>(0,k.jsx)("div",{role:"dialog",...r,style:ej,className:l()(t,e,et&&`${e}-static`,!E&&"show"),onClick:_?ev:void 0,onMouseUp:eh,"data-bs-theme":x,"aria-label":w,"aria-labelledby":j,"aria-describedby":O,children:(0,k.jsx)(v,{...Z,onMouseDown:eb,className:a,contentClassName:o,children:g})})})})});F.displayName="Modal";let B=Object.assign(F,{Body:E,Header:I,Title:P,Footer:S,Dialog:R,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},18156:(e,t,r)=>{"use strict";let n;t.A=void 0;var a=O(r(21824)),o=O(r(82697)),l=O(r(53033)),s=O(r(11155)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=j(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(43210)),c=O(r(51215)),u=O(r(76784)),d=O(r(73504)),f=O(r(78211)),p=O(r(55587)),m=O(r(23289)),b=O(r(81249)),h=O(r(28302)),y=r(66336),g=r(20928),v=r(60687);let x=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function j(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(j=function(e){return e?r:t})(e)}function O(e){return e&&e.__esModule?e:{default:e}}let w=(0,i.forwardRef)((e,t)=>{let{show:r=!1,role:j="dialog",className:O,style:w,children:A,backdrop:N=!0,keyboard:T=!0,onBackdropClick:k,onEscapeKeyDown:E,transition:C,runTransition:_,backdropTransition:R,runBackdropTransition:S,autoFocus:z=!0,enforceFocus:M=!0,restoreFocus:I=!0,restoreFocusOptions:L,renderDialog:P,renderBackdrop:$=e=>(0,v.jsx)("div",Object.assign({},e)),manager:D,container:F,onShow:B,onHide:W=()=>{},onExit:U,onExited:H,onExiting:V,onEnter:K,onEntering:G,onEntered:q}=e,Y=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,x),X=(0,h.default)(),Z=(0,b.default)(F),J=function(e){let t=(0,h.default)(),r=e||(n||(n=new m.default({ownerDocument:null==t?void 0:t.document})),n),a=(0,i.useRef)({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>r.add(a.current),remove:()=>r.remove(a.current),isTopModal:()=>r.isTopModal(a.current),setDialogRef:(0,i.useCallback)(e=>{a.current.dialog=e},[]),setBackdropRef:(0,i.useCallback)(e=>{a.current.backdrop=e},[])})}(D),Q=(0,u.default)(),ee=(0,f.default)(r),[et,er]=(0,i.useState)(!r),en=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,()=>J,[J]),l.default&&!ee&&r&&(en.current=(0,a.default)(null==X?void 0:X.document)),r&&et&&er(!1);let ea=(0,p.default)(()=>{if(J.add(),eu.current=(0,s.default)(document,"keydown",ei),ec.current=(0,s.default)(document,"focus",()=>setTimeout(el),!0),B&&B(),z){var e,t;let r=(0,a.default)(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==X?void 0:X.document);J.dialog&&r&&!(0,o.default)(J.dialog,r)&&(en.current=r,J.dialog.focus())}}),eo=(0,p.default)(()=>{if(J.remove(),null==eu.current||eu.current(),null==ec.current||ec.current(),I){var e;null==(e=en.current)||null==e.focus||e.focus(L),en.current=null}});(0,i.useEffect)(()=>{r&&Z&&ea()},[r,Z,ea]),(0,i.useEffect)(()=>{et&&eo()},[et,eo]),(0,d.default)(()=>{eo()});let el=(0,p.default)(()=>{if(!M||!Q()||!J.isTopModal())return;let e=(0,a.default)(null==X?void 0:X.document);J.dialog&&e&&!(0,o.default)(J.dialog,e)&&J.dialog.focus()}),es=(0,p.default)(e=>{e.target===e.currentTarget&&(null==k||k(e),!0===N&&W())}),ei=(0,p.default)(e=>{T&&(0,g.isEscKey)(e)&&J.isTopModal()&&(null==E||E(e),e.defaultPrevented||W())}),ec=(0,i.useRef)(),eu=(0,i.useRef)();if(!Z)return null;let ed=Object.assign({role:j,ref:J.setDialogRef,"aria-modal":"dialog"===j||void 0},Y,{style:w,className:O,tabIndex:-1}),ef=P?P(ed):(0,v.jsx)("div",Object.assign({},ed,{children:i.cloneElement(A,{role:"document"})}));ef=(0,y.renderTransition)(C,_,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:U,onExiting:V,onExited:(...e)=>{er(!0),null==H||H(...e)},onEnter:K,onEntering:G,onEntered:q,children:ef});let ep=null;return N&&(ep=$({ref:J.setBackdropRef,onClick:es}),ep=(0,y.renderTransition)(R,S,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ep})),(0,v.jsx)(v.Fragment,{children:c.default.createPortal((0,v.jsxs)(v.Fragment,{children:[ep,ef]}),Z)})});w.displayName="Modal",t.A=Object.assign(w,{Manager:m.default})},18169:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(60687),a=r(43210),o=r(51215);let l=({onComplete:e})=>{let{pending:t}=(0,o.useFormStatus)(),r=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{r.current&&!t&&e(),r.current=t},[t]),(0,n.jsx)(n.Fragment,{})}},21824:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(60972);function a(e){void 0===e&&(e=(0,n.default)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}},22564:e=>{e.exports={table:"data-table_table__keg0p",actions:"data-table_actions__Zfa1g"}},23289:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=t.OPEN_DATA_ATTRIBUTE=void 0;var n=l(r(7316)),a=r(7098),o=l(r(86659));function l(e){return e&&e.__esModule?e:{default:e}}let s=t.OPEN_DATA_ATTRIBUTE=(0,a.dataAttr)("modal-open");class i{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return(0,o.default)(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();e.style={overflow:a.style.overflow,[r]:a.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,n.default)(a,r)||"0",10)+e.scrollBarWidth}px`),a.setAttribute(s,""),(0,n.default)(a,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(s),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return -1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){let t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}t.default=i},24098:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},33081:(e,t)=>{"use strict";t.mw={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},t.zL=t.mw},37722:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){let t=(0,n.useRef)(e);return t.current=e,t};var n=r(43210)},41018:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(37413),a=r(61276),o=r(61242);let l=({className:e,disabled:t=!1,children:r})=>(0,n.jsx)("td",{className:a(!t&&o.ellipsis,e),children:t?r:(0,n.jsx)("div",{children:(0,n.jsx)("span",{children:r})})})},43412:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/buttler/buttler/node_modules/@omer-x/bs-ui-kit/dist/components/form/ModalForm.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/buttler/buttler/node_modules/@omer-x/bs-ui-kit/dist/components/form/ModalForm.js","default")},44122:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(60687),a=r(43210),o=r(92388),l=r(34907),s=r(16708),i=r(66254),c=r(18169),u=r(60017);let d=({buttonVariant:e="primary",buttonStretched:t=!1,buttonSize:r,buttonIcon:d,buttonIconFlip:f,buttonText:p,disabled:m=!1,title:b,action:h,confirmVariant:y="primary",confirmText:g,cancelText:v,children:x})=>{let[j,O]=(0,a.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(i.A,{icon:d,iconFlip:f,text:p,variant:e,size:r,onClick:()=>O(!0),disabled:m,stretched:t}):(0,n.jsx)(o.default,{variant:e,onClick:()=>O(!0),children:p}),(0,n.jsx)(s.A,{show:j,backdrop:"static",onHide:()=>O(!1),children:(0,n.jsxs)(l.A,{action:h,children:[(0,n.jsx)(c.A,{onComplete:()=>O(!1)}),(0,n.jsx)(s.A.Header,{closeButton:!0,children:(0,n.jsx)(s.A.Title,{children:b})}),(0,n.jsx)(s.A.Body,{className:"d-flex flex-column gap-3",children:x}),(0,n.jsxs)(s.A.Footer,{children:[(0,n.jsx)(u.default,{variant:y,text:g}),(0,n.jsx)(i.A,{variant:"secondary",text:v,onClick:()=>O(!1)})]})]})})]})}},47408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/buttler/buttler/node_modules/react-bootstrap/esm/Table.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/buttler/buttler/node_modules/react-bootstrap/esm/Table.js","default")},49723:(e,t,r)=>{"use strict";r.d(t,{g:()=>x});var n=r(75529),a=r(58209),o=r.n(a),l=r(61120),s=r.n(l);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e){var t;return(t=e-0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)}var b=["style"],h=!1;try{h=!0}catch(e){}function y(e){return e&&"object"===u(e)&&e.prefix&&e.iconName&&e.icon?e:n.qg.icon?n.qg.icon(e):null===e?null:e&&"object"===u(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function g(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?d({},e,t):{}}var v={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},x=s().forwardRef(function(e,t){var r,a,o,l,s,i,u,p,m,b,x,O,w,A,N,T,k,E,C,_,R=c(c({},v),e),S=R.icon,z=R.mask,M=R.symbol,I=R.className,L=R.title,P=R.titleId,$=R.maskId,D=y(S),F=g("classes",[].concat(f((a=R.beat,o=R.fade,l=R.beatFade,s=R.bounce,i=R.shake,u=R.flash,p=R.spin,m=R.spinPulse,b=R.spinReverse,x=R.pulse,O=R.fixedWidth,w=R.inverse,A=R.border,N=R.listItem,T=R.flip,k=R.size,E=R.rotation,C=R.pull,Object.keys((d(r={"fa-beat":a,"fa-fade":o,"fa-beat-fade":l,"fa-bounce":s,"fa-shake":i,"fa-flash":u,"fa-spin":p,"fa-spin-reverse":b,"fa-spin-pulse":m,"fa-pulse":x,"fa-fw":O,"fa-inverse":w,"fa-border":A,"fa-li":N,"fa-flip":!0===T,"fa-flip-horizontal":"horizontal"===T||"both"===T,"fa-flip-vertical":"vertical"===T||"both"===T},"fa-".concat(k),null!=k),d(r,"fa-rotate-".concat(E),null!=E&&0!==E),d(r,"fa-pull-".concat(C),null!=C),d(r,"fa-swap-opacity",R.swapOpacity),_=r)).map(function(e){return _[e]?e:null}).filter(function(e){return e}))),f((I||"").split(" ")))),B=g("transform","string"==typeof R.transform?n.qg.transform(R.transform):R.transform),W=g("mask",y(z)),U=(0,n.Kk)(D,c(c(c(c({},F),B),W),{},{symbol:M,title:L,titleId:P,maskId:$}));if(!U)return function(){if(!h&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",D),null;var H=U.abstract,V={ref:t};return Object.keys(R).forEach(function(e){v.hasOwnProperty(e)||(V[e]=R[e])}),j(H[0],V)});x.displayName="FontAwesomeIcon",x.propTypes={beat:o().bool,border:o().bool,beatFade:o().bool,bounce:o().bool,className:o().string,fade:o().bool,flash:o().bool,mask:o().oneOfType([o().object,o().array,o().string]),maskId:o().string,fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf([!0,!1,"horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),shake:o().bool,size:o().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,spinPulse:o().bool,spinReverse:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,titleId:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool};var j=(function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var a=(r.children||[]).map(function(r){return e(t,r)}),o=Object.keys(r.attributes||{}).reduce(function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.indexOf(":"),n=m(t.slice(0,r)),a=t.slice(r+1).trim();return n.startsWith("webkit")?e[n.charAt(0).toUpperCase()+n.slice(1)]=a:e[n]=a,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[m(t)]=n}return e},{attrs:{}}),l=n.style,s=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(n,b);return o.attrs.style=c(c({},o.attrs.style),void 0===l?{}:l),t.apply(void 0,[r.tag,c(c({},o.attrs),s)].concat(f(a)))}).bind(null,s().createElement)},52730:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});let n=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/buttler/buttler/node_modules/react-bootstrap/esm/Button.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/buttler/buttler/node_modules/react-bootstrap/esm/Button.js","default")},56590:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(37413),a=r(49723),o=r(61276),l=r(68584);let s=({as:e,variant:t="primary",size:r,icon:s,iconFlip:i,href:c,text:u,disabled:d=!1,stretched:f=!1,className:p})=>d?(0,n.jsx)(l.A,{variant:t,size:r,icon:s,iconFlip:i,text:u,disabled:d,stretched:f,className:p}):(0,n.jsxs)(e,{href:c,className:o(p,"btn",`btn-${t}`,{"btn-sm":"sm"===r,"btn-lg":"lg"===r}),children:[s&&(0,n.jsx)(a.g,{size:"lg",icon:s,className:o("fa-fw",{"fa-flip-horizontal":"horizontal"===i,"fa-flip-vertical":"vertical"===i,"fa-flip-both":"both"===i})}),u&&(0,n.jsx)("span",{className:s?o("ms-2",f?"me-4":"me-2"):void 0,children:u})]})},58209:(e,t,r)=>{e.exports=r(61797)()},61242:e=>{e.exports={ellipsis:"ellipsis_ellipsis__eHH5P"}},61276:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0!==(r=(function(){return a}).apply(t,[]))&&(e.exports=r)}()},61797:(e,t,r)=>{"use strict";var n=r(24098);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,l){if(l!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},68584:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(37413),a=r(97895),o=r(49723),l=r(61276),s=r(52730);let i=({type:e="button",text:t,icon:r,iconFlip:i,variant:c="primary",size:u,onClick:d,disabled:f=!1,spinning:p=!1,className:m,stretched:b=!1})=>(0,n.jsxs)(s.default,{type:e,size:u,variant:c,className:m,onClick:d,disabled:f||p,children:[r?(0,n.jsx)(o.g,{size:"lg",icon:p?a.z1:r,className:l("fa-fw",{"fa-spin":p,"fa-flip-horizontal":"horizontal"===i,"fa-flip-vertical":"vertical"===i,"fa-flip-both":"both"===i})}):p&&(0,n.jsx)(o.g,{size:"lg",icon:a.z1,className:"fa-fw fa-spin"}),t&&(0,n.jsx)("span",{className:r?l("ms-2",b?"me-4":"me-2"):void 0,children:t})]})},68750:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(37413),a=r(33081),o=r(61276),l=r(47408),s=r(22564),i=r(97980),c=r(43412);let u=({title:e,description:t,action:r,confirmText:a,cancelText:o,disabled:l=!1})=>(0,n.jsx)(c.default,{buttonIcon:i.sj,buttonSize:"sm",buttonVariant:"outline-danger",disabled:l,title:e,action:r,confirmVariant:"danger",confirmText:a,cancelText:o,children:t});var d=r(56590),f=r(41018);let p=({link:e,collection:t,primaryKey:r,bodyWrap:i=!1,schema:c,editLink:p,destroyAction:m,destroyWarningTitle:b,destroyWarningDescription:h,destroyConfirmText:y,destroyCancelText:g,destroyDisabled:v=!1})=>{function x(e,t){return"string"==typeof e?`${e.slice(0,t)}${e.length>t?"...":""}`:e}return(0,n.jsxs)(l.default,{striped:!0,hover:!0,className:o(s.table,"mb-0"),children:[(0,n.jsx)("thead",{className:"text-nowrap",children:(0,n.jsxs)("tr",{children:[Object.entries(c).map(([e,t])=>(0,n.jsx)("th",{className:o("pt-0",{"d-none":!!t.size,"d-sm-table-cell":"sm"===t.size,"d-md-table-cell":"md"===t.size}),children:t.header},e)),(0,n.jsx)("th",{className:"pt-0",children:"\xa0"})]})}),(0,n.jsx)("tbody",{className:o({"text-nowrap":!i}),children:t.map(t=>(0,n.jsxs)("tr",{children:[Object.entries(c).map(([e,a])=>(0,n.jsx)(f.A,{className:o({"d-none":!!a.size,"d-sm-table-cell":"sm"===a.size,"d-md-table-cell":"md"===a.size}),disabled:!a.long,children:a.wrapper?a.wrapper(x(t[e],120),t[r],t):x(t[e],120)},e)),(0,n.jsx)("td",{className:s.actions,children:(0,n.jsxs)("div",{className:"d-flex justify-content-end gap-2",children:[p&&(0,n.jsx)(d.A,{as:e,variant:"outline-secondary",icon:a.zL,href:p(t[r]),size:"sm"}),m&&(0,n.jsx)(u,{title:b,description:h,action:m.bind(null,t[r]),confirmText:y,cancelText:g,disabled:"function"==typeof v?v(t[r]):v})]})})]},t[r]))})]})}},73504:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){let t=(0,n.default)(e);(0,a.useEffect)(()=>()=>t.current(),[])};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(37722)),a=r(43210)},86659:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e=document){return Math.abs(e.defaultView.innerWidth-e.documentElement.clientWidth)}},94718:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(69662),a=r.n(n),o=r(43210),l=r(98466),s=r(60687);let i=o.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:n,borderless:o,hover:i,size:c,variant:u,responsive:d,...f},p)=>{let m=(0,l.oU)(e,"table"),b=a()(t,m,u&&`${m}-${u}`,c&&`${m}-${c}`,r&&`${m}-${"string"==typeof r?`striped-${r}`:"striped"}`,n&&`${m}-bordered`,o&&`${m}-borderless`,i&&`${m}-hover`),h=(0,s.jsx)("table",{...f,className:b,ref:p});if(d){let e=`${m}-responsive`;return"string"==typeof d&&(e=`${e}-${d}`),(0,s.jsx)("div",{className:e,children:h})}return h})},97895:(e,t)=>{"use strict";t.mw={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},t.z1=t.mw},97980:(e,t)=>{"use strict";t.mw={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},t.sj=t.mw}};