UNPKG

@omer-x/buttler

Version:

automates CI/CD workflows using Docker and GitHub webhooks

1 lines 14.2 kB
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31],{23855:(e,t,r)=>{"use strict";function n(e){return`data-rr-ui-${e}`}function a(e){return`rrUi${e}`}r.d(t,{sE:()=>n,y:()=>a})},35431:e=>{e.exports={ellipsis:"ellipsis_ellipsis__eHH5P"}},40308:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(95155),a=r(12115),l=r(60902),o=r(49101),s=r(90465),i=r(46140),c=r(54863),d=r(25793);let u=e=>{let{buttonVariant:t="primary",buttonStretched:r=!1,buttonSize:u,buttonIcon:f,buttonIconFlip:m,buttonText:h,disabled:p=!1,title:g,action:A,confirmVariant:v="primary",confirmText:b,cancelText:y,children:x}=e,[E,N]=(0,a.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)(i.A,{icon:f,iconFlip:m,text:h,variant:t,size:u,onClick:()=>N(!0),disabled:p,stretched:r}):(0,n.jsx)(l.default,{variant:t,onClick:()=>N(!0),children:h}),(0,n.jsx)(s.A,{show:E,backdrop:"static",onHide:()=>N(!1),children:(0,n.jsxs)(o.A,{action:A,children:[(0,n.jsx)(c.A,{onComplete:()=>N(!1)}),(0,n.jsx)(s.A.Header,{closeButton:!0,children:(0,n.jsx)(s.A.Title,{children:g})}),(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)(d.default,{variant:v,text:b}),(0,n.jsx)(i.A,{variant:"secondary",text:y,onClick:()=>N(!1)})]})]})})]})}},54863:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(95155),a=r(12115),l=r(47650);let o=e=>{let{onComplete:t}=e,{pending:r}=(0,l.useFormStatus)(),o=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{o.current&&!r&&t(),o.current=r},[r]),(0,n.jsx)(n.Fragment,{})}},59247:e=>{e.exports={table:"data-table_table__keg0p",actions:"data-table_actions__Zfa1g"}},60926:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(29300),a=r.n(n),l=r(12115),o=r(97390),s=r(95155);let i=l.forwardRef((e,t)=>{let{bsPrefix:r,className:n,striped:l,bordered:i,borderless:c,hover:d,size:u,variant:f,responsive:m,...h}=e,p=(0,o.oU)(r,"table"),g=a()(n,p,f&&"".concat(p,"-").concat(f),u&&"".concat(p,"-").concat(u),l&&"".concat(p,"-").concat("string"==typeof l?"striped-".concat(l):"striped"),i&&"".concat(p,"-bordered"),c&&"".concat(p,"-borderless"),d&&"".concat(p,"-hover")),A=(0,s.jsx)("table",{...h,className:g,ref:t});if(m){let e="".concat(p,"-responsive");return"string"==typeof m&&(e="".concat(e,"-").concat(m)),(0,s.jsx)("div",{className:e,children:A})}return A});i.displayName="Table";let c=i},90465:(e,t,r)=>{"use strict";let n,a;r.d(t,{A:()=>er});var l,o=r(29300),s=r.n(o),i=r(6603),c=r(70317),d=r(15352),u=r(72906);function f(e){if((!l&&0!==l||e)&&c.A){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),l=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return l}var m=r(12115),h=r(37150),p=r(88621),g=r(38355),A=r(9172);function v(e){void 0===e&&(e=(0,d.A)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}var b=r(51703),y=r(22405),x=r(47650),E=r(68141),N=r(18),T=r(41730),R=r(73666);let j=(0,r(23855).sE)("modal-open");class w{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){return Math.abs(e.defaultView.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();e.style={overflow:n.style.overflow,[r]:n.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,R.A)(n,r)||"0",10)+e.scrollBarWidth}px`),n.setAttribute(j,""),(0,R.A)(n,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(j),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}}let C=w;var k=r(62056),O=r(31803),S=r(57695),_=r(2489),F=r(95155);let B=["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"],M=(0,m.forwardRef)((e,t)=>{let{show:r=!1,role:a="dialog",className:l,style:o,children:s,backdrop:i=!0,keyboard:d=!0,onBackdropClick:u,onEscapeKeyDown:f,transition:h,runTransition:p,backdropTransition:g,runBackdropTransition:A,autoFocus:R=!0,enforceFocus:j=!0,restoreFocus:w=!0,restoreFocusOptions:M,renderDialog:D,renderBackdrop:L=e=>(0,F.jsx)("div",Object.assign({},e)),manager:H,container:I,onShow:W,onHide:U=()=>{},onExit:$,onExited:G,onExiting:K,onEnter:P,onEntering:V,onEntered:z}=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,B),X=(0,O.A)(),q=(0,k.A)(I),Z=function(e){let t=(0,O.A)(),r=e||(n||(n=new C({ownerDocument:null==t?void 0:t.document})),n),a=(0,m.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,m.useCallback)(e=>{a.current.dialog=e},[]),setBackdropRef:(0,m.useCallback)(e=>{a.current.backdrop=e},[])})}(H),J=(0,E.A)(),Q=(0,N.A)(r),[ee,et]=(0,m.useState)(!r),er=(0,m.useRef)(null);(0,m.useImperativeHandle)(t,()=>Z,[Z]),c.A&&!Q&&r&&(er.current=v(null==X?void 0:X.document)),r&&ee&&et(!1);let en=(0,T.A)(()=>{if(Z.add(),ec.current=(0,y.A)(document,"keydown",es),ei.current=(0,y.A)(document,"focus",()=>setTimeout(el),!0),W&&W(),R){var e,t;let r=v(null!=(e=null==(t=Z.dialog)?void 0:t.ownerDocument)?e:null==X?void 0:X.document);Z.dialog&&r&&!(0,b.A)(Z.dialog,r)&&(er.current=r,Z.dialog.focus())}}),ea=(0,T.A)(()=>{if(Z.remove(),null==ec.current||ec.current(),null==ei.current||ei.current(),w){var e;null==(e=er.current)||null==e.focus||e.focus(M),er.current=null}});(0,m.useEffect)(()=>{r&&q&&en()},[r,q,en]),(0,m.useEffect)(()=>{ee&&ea()},[ee,ea]),function(e){let t=function(e){let t=(0,m.useRef)(e);return t.current=e,t}(e);(0,m.useEffect)(()=>()=>t.current(),[])}(()=>{ea()});let el=(0,T.A)(()=>{if(!j||!J()||!Z.isTopModal())return;let e=v(null==X?void 0:X.document);Z.dialog&&e&&!(0,b.A)(Z.dialog,e)&&Z.dialog.focus()}),eo=(0,T.A)(e=>{e.target===e.currentTarget&&(null==u||u(e),!0===i&&U())}),es=(0,T.A)(e=>{d&&(0,_.v$)(e)&&Z.isTopModal()&&(null==f||f(e),e.defaultPrevented||U())}),ei=(0,m.useRef)(),ec=(0,m.useRef)();if(!q)return null;let ed=Object.assign({role:a,ref:Z.setDialogRef,"aria-modal":"dialog"===a||void 0},Y,{style:o,className:l,tabIndex:-1}),eu=D?D(ed):(0,F.jsx)("div",Object.assign({},ed,{children:m.cloneElement(s,{role:"document"})}));eu=(0,S.Yc)(h,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:$,onExiting:K,onExited:(...e)=>{et(!0),null==G||G(...e)},onEnter:P,onEntering:V,onEntered:z,children:eu});let ef=null;return i&&(ef=L({ref:Z.setBackdropRef,onClick:eo}),ef=(0,S.Yc)(g,A,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ef})),(0,F.jsx)(F.Fragment,{children:x.createPortal((0,F.jsxs)(F.Fragment,{children:[ef,eu]}),q)})});M.displayName="Modal";let D=Object.assign(M,{Manager:C});var L=r(43514),H=r(90610);function I(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}let W={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class U extends C{adjustAndStore(e,t,r){let n=t.style[e];t.dataset[e]=n,(0,R.A)(t,{[e]:"".concat(parseFloat((0,R.A)(t,e))+r,"px")})}restore(e,t){let r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,R.A)(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,L.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,H.A)(r,W.FIXED_CONTENT).forEach(t=>this.adjustAndStore(n,t,e.scrollBarWidth)),(0,H.A)(r,W.STICKY_CONTENT).forEach(t=>this.adjustAndStore(a,t,-e.scrollBarWidth)),(0,H.A)(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=I(r.className,t):r.setAttribute("class",I(r.className&&r.className.baseVal||"",t));let n=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,H.A)(r,W.FIXED_CONTENT).forEach(e=>this.restore(n,e)),(0,H.A)(r,W.STICKY_CONTENT).forEach(e=>this.restore(a,e)),(0,H.A)(r,W.NAVBAR_TOGGLER).forEach(e=>this.restore(a,e))}}var $=r(39750),G=r(97390);let K=m.forwardRef((e,t)=>{let{className:r,bsPrefix:n,as:a="div",...l}=e;return n=(0,G.oU)(n,"modal-body"),(0,F.jsx)(a,{ref:t,className:s()(r,n),...l})});K.displayName="ModalBody";let P=m.createContext({onHide(){}}),V=m.forwardRef((e,t)=>{let{bsPrefix:r,className:n,contentClassName:a,centered:l,size:o,fullscreen:i,children:c,scrollable:d,...u}=e;r=(0,G.oU)(r,"modal");let f="".concat(r,"-dialog"),m="string"==typeof i?"".concat(r,"-fullscreen-").concat(i):"".concat(r,"-fullscreen");return(0,F.jsx)("div",{...u,ref:t,className:s()(f,n,o&&"".concat(r,"-").concat(o),l&&"".concat(f,"-centered"),d&&"".concat(f,"-scrollable"),i&&m),children:(0,F.jsx)("div",{className:s()("".concat(r,"-content"),a),children:c})})});V.displayName="ModalDialog";let z=m.forwardRef((e,t)=>{let{className:r,bsPrefix:n,as:a="div",...l}=e;return n=(0,G.oU)(n,"modal-footer"),(0,F.jsx)(a,{ref:t,className:s()(r,n),...l})});z.displayName="ModalFooter";var Y=r(77706);let X=m.forwardRef((e,t)=>{let{closeLabel:r="Close",closeVariant:n,closeButton:a=!1,onHide:l,children:o,...s}=e,i=(0,m.useContext)(P),c=(0,h.A)(()=>{null==i||i.onHide(),null==l||l()});return(0,F.jsxs)("div",{ref:t,...s,children:[o,a&&(0,F.jsx)(Y.A,{"aria-label":r,variant:n,onClick:c})]})});X.displayName="AbstractModalHeader";let q=m.forwardRef((e,t)=>{let{bsPrefix:r,className:n,closeLabel:a="Close",closeButton:l=!1,...o}=e;return r=(0,G.oU)(r,"modal-header"),(0,F.jsx)(X,{ref:t,...o,className:s()(n,r),closeLabel:a,closeButton:l})});q.displayName="ModalHeader";let Z=(0,r(58724).A)("h4"),J=m.forwardRef((e,t)=>{let{className:r,bsPrefix:n,as:a=Z,...l}=e;return n=(0,G.oU)(n,"modal-title"),(0,F.jsx)(a,{ref:t,className:s()(r,n),...l})});function Q(e){return(0,F.jsx)($.A,{...e,timeout:null})}function ee(e){return(0,F.jsx)($.A,{...e,timeout:null})}J.displayName="ModalTitle";let et=m.forwardRef((e,t)=>{let{bsPrefix:r,className:n,style:l,dialogClassName:o,contentClassName:v,children:b,dialogAs:y=V,"data-bs-theme":x,"aria-labelledby":E,"aria-describedby":N,"aria-label":T,show:R=!1,animation:j=!0,backdrop:w=!0,keyboard:C=!0,onEscapeKeyDown:k,onShow:O,onHide:S,container:_,autoFocus:B=!0,enforceFocus:M=!0,restoreFocus:L=!0,restoreFocusOptions:H,onEntered:I,onExit:W,onExiting:$,onEnter:K,onEntering:z,onExited:Y,backdropClassName:X,manager:q,...Z}=e,[J,et]=(0,m.useState)({}),[er,en]=(0,m.useState)(!1),ea=(0,m.useRef)(!1),el=(0,m.useRef)(!1),eo=(0,m.useRef)(null),[es,ei]=(0,m.useState)(null),ec=(0,p.A)(t,ei),ed=(0,h.A)(S),eu=(0,G.Wz)();r=(0,G.oU)(r,"modal");let ef=(0,m.useMemo)(()=>({onHide:ed}),[ed]);function em(){var e;return q?q:(e={isRTL:eu},a||(a=new U(e)),a)}function eh(e){if(!c.A)return;let t=em().getScrollbarWidth()>0,r=e.scrollHeight>(0,d.A)(e).documentElement.clientHeight;et({paddingRight:t&&!r?f():void 0,paddingLeft:!t&&r?f():void 0})}let ep=(0,h.A)(()=>{es&&eh(es.dialog)});(0,g.A)(()=>{(0,u.A)(window,"resize",ep),null==eo.current||eo.current()});let eg=()=>{ea.current=!0},eA=e=>{ea.current&&es&&e.target===es.dialog&&(el.current=!0),ea.current=!1},ev=()=>{en(!0),eo.current=(0,A.A)(es.dialog,()=>{en(!1)})},eb=e=>{e.target===e.currentTarget&&ev()},ey=e=>{if("static"===w)return void eb(e);if(el.current||e.target!==e.currentTarget){el.current=!1;return}null==S||S()},ex=(0,m.useCallback)(e=>(0,F.jsx)("div",{...e,className:s()("".concat(r,"-backdrop"),X,!j&&"show")}),[j,X,r]),eE={...l,...J};return eE.display="block",(0,F.jsx)(P.Provider,{value:ef,children:(0,F.jsx)(D,{show:R,ref:ec,backdrop:w,container:_,keyboard:!0,autoFocus:B,enforceFocus:M,restoreFocus:L,restoreFocusOptions:H,onEscapeKeyDown:e=>{C?null==k||k(e):(e.preventDefault(),"static"===w&&ev())},onShow:O,onHide:S,onEnter:(e,t)=>{e&&eh(e),null==K||K(e,t)},onEntering:(e,t)=>{null==z||z(e,t),(0,i.Ay)(window,"resize",ep)},onEntered:I,onExit:e=>{null==eo.current||eo.current(),null==W||W(e)},onExiting:$,onExited:e=>{e&&(e.style.display=""),null==Y||Y(e),(0,u.A)(window,"resize",ep)},manager:em(),transition:j?Q:void 0,backdropTransition:j?ee:void 0,renderBackdrop:ex,renderDialog:e=>(0,F.jsx)("div",{role:"dialog",...e,style:eE,className:s()(n,r,er&&"".concat(r,"-static"),!j&&"show"),onClick:w?ey:void 0,onMouseUp:eA,"data-bs-theme":x,"aria-label":T,"aria-labelledby":E,"aria-describedby":N,children:(0,F.jsx)(y,{...Z,onMouseDown:eg,className:o,contentClassName:v,children:b})})})})});et.displayName="Modal";let er=Object.assign(et,{Body:K,Header:q,Title:J,Footer:z,Dialog:V,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},90610:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,t){return n(e.querySelectorAll(t))}}}]);