irest-app-test 2.5.10 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{.env.remote.prod → .env.prod} +3 -3
- package/dist/main.d0920276df277d7da018.js +1 -2
- package/dist/manifest.json +0 -2
- package/dist/vendors~main.d0920276df277d7da018.js +1 -2
- package/package.json +1 -1
- package/dist/main.d0920276df277d7da018.js.map +0 -1
- package/dist/vendors~main.d0920276df277d7da018.js.map +0 -1
|
@@ -7,7 +7,7 @@ IREST_SQLITE_DIALECT=sqlite
|
|
|
7
7
|
IREST_SQLITE_STORAGE=database/iRest.db
|
|
8
8
|
|
|
9
9
|
# API End Point
|
|
10
|
-
API_BASE_URL=http://
|
|
10
|
+
API_BASE_URL=http://localhost:9000/api
|
|
11
11
|
|
|
12
12
|
# Other variables
|
|
13
13
|
SALT_ROUND=8
|
|
@@ -19,6 +19,6 @@ MAX_BULK_PREVIEW_COUNT=20
|
|
|
19
19
|
MAX_BULK_PREVIEW_SIZE=50
|
|
20
20
|
MAX_DYNAMIC_PREVIEW_COUNT=20
|
|
21
21
|
MAX_DYNAMIC_PREVIEW_SIZE=50
|
|
22
|
-
PORT=
|
|
22
|
+
PORT=9000
|
|
23
23
|
|
|
24
|
-
MODULE_DIST_PATH=./dist
|
|
24
|
+
MODULE_DIST_PATH=./node_modules/irest-app-test/dist
|
|
@@ -391,5 +391,4 @@
|
|
|
391
391
|
!*** ./src/static/actions/login/authenticationActions.js ***!
|
|
392
392
|
\***********************************************************/
|
|
393
393
|
/*! exports provided: loginUserAction, receiveDataAction, receiveError, flushUserData */
|
|
394
|
-
/*! exports used: flushUserData, loginUserAction, receiveDataAction, receiveError */function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"a",(function(){return l}));var n=a(/*! ../actionTypes */1),r=function(e){return{type:n.w,user:e}},o=function(e){return{type:n.z,user:e}},c=function(e){return{type:n.y,user:e}},l=function(){return{type:n.x}}}});
|
|
395
|
-
//# sourceMappingURL=main.d0920276df277d7da018.js.map
|
|
394
|
+
/*! exports used: flushUserData, loginUserAction, receiveDataAction, receiveError */function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"a",(function(){return l}));var n=a(/*! ../actionTypes */1),r=function(e){return{type:n.w,user:e}},o=function(e){return{type:n.z,user:e}},c=function(e){return{type:n.y,user:e}},l=function(){return{type:n.x}}}});
|
package/dist/manifest.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main.css": "/main.d0920276.css",
|
|
3
3
|
"main.js": "/main.d0920276df277d7da018.js",
|
|
4
|
-
"main.js.map": "/main.d0920276df277d7da018.js.map",
|
|
5
4
|
"vendors~main.css": "/1.d0920276.css",
|
|
6
5
|
"vendors~main.js": "/vendors~main.d0920276df277d7da018.js",
|
|
7
|
-
"vendors~main.js.map": "/vendors~main.d0920276df277d7da018.js.map",
|
|
8
6
|
"toggle_minus.svg": "/19ee5fb04490cb059dfd1cfa24c9fbb8.svg",
|
|
9
7
|
"jsoneditor.css": "/2b9b4872cd25494093c1eb14f0264a0b.svg",
|
|
10
8
|
"try_eye.svg": "/2c2ddaf791a8a83ee19c6e4a2a0a1e9c.svg",
|
|
@@ -10174,5 +10174,4 @@ var t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
|
|
|
10174
10174
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-bootstrap/esm/divWithClassName.js because of ./src/static/components/createMock/JsonView.js */
|
|
10175
10175
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
|
|
10176
10176
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-overlays/esm/useWaitForDOMRef.js because of ./src/static/components/common/copyUrl.js */
|
|
10177
|
-
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,a,t){"use strict";var n,r=t(12),i=t(5),o=t(17),s=t.n(o),l=t(263),u=t(119),c=t(78),d=t(199);function h(e){if((!n&&0!==n||e)&&u.a){var a=document.createElement("div");a.style.position="absolute",a.style.top="-9999px",a.style.width="50px",a.style.height="50px",a.style.overflow="scroll",document.body.appendChild(a),n=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n}var p=t(200),m=t(67),g=t(164),f=t(274),v=t(0),k=t.n(v);function b(e){void 0===e&&(e=Object(c.a)());try{var a=e.activeElement;return a&&a.nodeName?a:null}catch(a){return e.body}}var y=t(141),z=t(93),S=t(3),A=t.n(S),C=t(34),w=t.n(C),x=t(162);var j=t(167);function M(e,a){e.classList?e.classList.add(a):Object(j.a)(e,a)||("string"==typeof e.className?e.className=e.className+" "+a:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+a))}function B(e,a){return e.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function P(e,a){e.classList?e.classList.remove(a):"string"==typeof e.className?e.className=B(e.className,a):e.setAttribute("class",B(e.className&&e.className.baseVal||"",a))}var I=t(66);function T(e){return"window"in e&&e.window===e?e:"nodeType"in(a=e)&&a.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var a}function E(e){var a;return T(e)||(a=e)&&"body"===a.tagName.toLowerCase()?function(e){var a=T(e)?Object(c.a)():Object(c.a)(e),t=T(e)||a.defaultView;return a.body.clientWidth<t.innerWidth}(e):e.scrollHeight>e.clientHeight}var L=["template","script","style"],R=function(e,a,t){[].forEach.call(e.children,(function(e){var n,r,i;-1===a.indexOf(e)&&(r=(n=e).nodeType,i=n.tagName,1===r&&-1===L.indexOf(i.toLowerCase()))&&t(e)}))};function N(e,a){a&&(e?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden"))}var _,K=function(){function e(e){var a=void 0===e?{}:e,t=a.hideSiblingNodes,n=void 0===t||t,r=a.handleContainerOverflow,i=void 0===r||r;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=n,this.handleContainerOverflow=i,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=h()}var a=e.prototype;return a.isContainerOverflowing=function(e){var a=this.data[this.containerIndexFromModal(e)];return a&&a.overflowing},a.containerIndexFromModal=function(e){return a=this.data,t=function(a){return-1!==a.modals.indexOf(e)},n=-1,a.some((function(e,a){return!!t(e,a)&&(n=a,!0)})),n;var a,t,n},a.setContainerStyle=function(e,a){var t={overflow:"hidden"};e.style={overflow:a.style.overflow,paddingRight:a.style.paddingRight},e.overflowing&&(t.paddingRight=parseInt(Object(I.a)(a,"paddingRight")||"0",10)+this.scrollbarSize+"px"),Object(I.a)(a,t)},a.removeContainerStyle=function(e,a){Object.assign(a.style,e.style)},a.add=function(e,a,t){var n=this.modals.indexOf(e),r=this.containers.indexOf(a);if(-1!==n)return n;if(n=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,a){var t=a.dialog,n=a.backdrop;R(e,[t,n],(function(e){return N(!0,e)}))}(a,e),-1!==r)return this.data[r].modals.push(e),n;var i={modals:[e],classes:t?t.split(/\s+/):[],overflowing:E(a)};return this.handleContainerOverflow&&this.setContainerStyle(i,a),i.classes.forEach(M.bind(null,a)),this.containers.push(a),this.data.push(i),n},a.remove=function(e){var a=this.modals.indexOf(e);if(-1!==a){var t=this.containerIndexFromModal(e),n=this.data[t],r=this.containers[t];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(a,1),0===n.modals.length)n.classes.forEach(P.bind(null,r)),this.handleContainerOverflow&&this.removeContainerStyle(n,r),this.hideSiblingNodes&&function(e,a){var t=a.dialog,n=a.backdrop;R(e,[t,n],(function(e){return N(!1,e)}))}(r,e),this.containers.splice(t,1),this.data.splice(t,1);else if(this.hideSiblingNodes){var i=n.modals[n.modals.length-1],o=i.backdrop;N(!1,i.dialog),N(!1,o)}}},a.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),O=t(201);function D(e){var a=e||(_||(_=new K),_),t=Object(v.useRef)({dialog:null,backdrop:null});return Object.assign(t.current,{add:function(e,n){return a.add(t.current,e,n)},remove:function(){return a.remove(t.current)},isTopModal:function(){return a.isTopModal(t.current)},setDialogRef:Object(v.useCallback)((function(e){t.current.dialog=e}),[]),setBackdropRef:Object(v.useCallback)((function(e){t.current.backdrop=e}),[])})}var H=Object(v.forwardRef)((function(e,a){var t=e.show,n=void 0!==t&&t,o=e.role,s=void 0===o?"dialog":o,l=e.className,c=e.style,d=e.children,h=e.backdrop,p=void 0===h||h,f=e.keyboard,S=void 0===f||f,A=e.onBackdropClick,C=e.onEscapeKeyDown,j=e.transition,M=e.backdropTransition,B=e.autoFocus,P=void 0===B||B,I=e.enforceFocus,T=void 0===I||I,E=e.restoreFocus,L=void 0===E||E,R=e.restoreFocusOptions,N=e.renderDialog,_=e.renderBackdrop,K=void 0===_?function(e){return k.a.createElement("div",e)}:_,H=e.manager,G=e.container,F=e.containerClassName,V=e.onShow,J=e.onHide,$=void 0===J?function(){}:J,W=e.onExit,Z=e.onExited,U=e.onExiting,q=e.onEnter,Y=e.onEntering,X=e.onEntered,Q=Object(r.a)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),ee=Object(O.a)(G),ae=D(H),te=Object(x.a)(),ne=function(e){var a=Object(v.useRef)(null);return Object(v.useEffect)((function(){a.current=e})),a.current}(n),re=Object(v.useState)(!n),ie=re[0],oe=re[1],se=Object(v.useRef)(null);Object(v.useImperativeHandle)(a,(function(){return ae}),[ae]),u.a&&!ne&&n&&(se.current=b()),j||n||ie?n&&ie&&oe(!1):oe(!0);var le=Object(m.a)((function(){if(ae.add(ee,F),me.current=Object(z.a)(document,"keydown",he),pe.current=Object(z.a)(document,"focus",(function(){return setTimeout(ce)}),!0),V&&V(),P){var e=b(document);ae.dialog&&e&&!Object(y.a)(ae.dialog,e)&&(se.current=e,ae.dialog.focus())}})),ue=Object(m.a)((function(){var e;(ae.remove(),null==me.current||me.current(),null==pe.current||pe.current(),L)&&(null==(e=se.current)||null==e.focus||e.focus(R),se.current=null)}));Object(v.useEffect)((function(){n&&ee&&le()}),[n,ee,le]),Object(v.useEffect)((function(){ie&&ue()}),[ie,ue]),Object(g.a)((function(){ue()}));var ce=Object(m.a)((function(){if(T&&te()&&ae.isTopModal()){var e=b();ae.dialog&&e&&!Object(y.a)(ae.dialog,e)&&ae.dialog.focus()}})),de=Object(m.a)((function(e){e.target===e.currentTarget&&(null==A||A(e),!0===p&&$())})),he=Object(m.a)((function(e){S&&27===e.keyCode&&ae.isTopModal()&&(null==C||C(e),e.defaultPrevented||$())})),pe=Object(v.useRef)(),me=Object(v.useRef)(),ge=j;if(!ee||!(n||ge&&!ie))return null;var fe=Object(i.a)({role:s,ref:ae.setDialogRef,"aria-modal":"dialog"===s||void 0},Q,{style:c,className:l,tabIndex:-1}),ve=N?N(fe):k.a.createElement("div",fe,k.a.cloneElement(d,{role:"document"}));ge&&(ve=k.a.createElement(ge,{appear:!0,unmountOnExit:!0,in:!!n,onExit:W,onExiting:U,onExited:function(){oe(!0);for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];null==Z||Z.apply(void 0,a)},onEnter:q,onEntering:Y,onEntered:X},ve));var ke=null;if(p){var be=M;ke=K({ref:ae.setBackdropRef,onClick:de}),be&&(ke=k.a.createElement(be,{appear:!0,in:!!n},ke))}return k.a.createElement(k.a.Fragment,null,w.a.createPortal(k.a.createElement(k.a.Fragment,null,ke,ve),ee))})),G={show:A.a.bool,container:A.a.any,onShow:A.a.func,onHide:A.a.func,backdrop:A.a.oneOfType([A.a.bool,A.a.oneOf(["static"])]),renderDialog:A.a.func,renderBackdrop:A.a.func,onEscapeKeyDown:A.a.func,onBackdropClick:A.a.func,containerClassName:A.a.string,keyboard:A.a.bool,transition:A.a.elementType,backdropTransition:A.a.elementType,autoFocus:A.a.bool,enforceFocus:A.a.bool,restoreFocus:A.a.bool,restoreFocusOptions:A.a.shape({preventScroll:A.a.bool}),onEnter:A.a.func,onEntering:A.a.func,onEntered:A.a.func,onExit:A.a.func,onExiting:A.a.func,onExited:A.a.func,manager:A.a.instanceOf(K)};H.displayName="Modal",H.propTypes=G;var F=Object.assign(H,{Manager:K}),V=(t(111),t(44)),J=Function.prototype.bind.call(Function.prototype.call,[].slice);function $(e,a){return J(e.querySelectorAll(a))}var W=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Z=".sticky-top",U=".navbar-toggler",q=function(e){function a(){return e.apply(this,arguments)||this}Object(V.a)(a,e);var t=a.prototype;return t.adjustAndStore=function(e,a,t){var n,r=a.style[e];a.dataset[e]=r,Object(I.a)(a,((n={})[e]=parseFloat(Object(I.a)(a,e))+t+"px",n))},t.restore=function(e,a){var t,n=a.dataset[e];void 0!==n&&(delete a.dataset[e],Object(I.a)(a,((t={})[e]=n,t)))},t.setContainerStyle=function(a,t){var n=this;if(e.prototype.setContainerStyle.call(this,a,t),a.overflowing){var r=h();$(t,W).forEach((function(e){return n.adjustAndStore("paddingRight",e,r)})),$(t,Z).forEach((function(e){return n.adjustAndStore("marginRight",e,-r)})),$(t,U).forEach((function(e){return n.adjustAndStore("marginRight",e,r)}))}},t.removeContainerStyle=function(a,t){var n=this;e.prototype.removeContainerStyle.call(this,a,t),$(t,W).forEach((function(e){return n.restore("paddingRight",e)})),$(t,Z).forEach((function(e){return n.restore("marginRight",e)})),$(t,U).forEach((function(e){return n.restore("marginRight",e)}))},a}(K),Y=t(166),X=t(60),Q=Object(X.a)("modal-body"),ee=k.a.createContext({onHide:function(){}}),ae=t(42),te=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],ne=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.className,o=e.contentClassName,l=e.centered,u=e.size,c=e.children,d=e.scrollable,h=Object(r.a)(e,te),p=(t=Object(ae.a)(t,"modal"))+"-dialog";return k.a.createElement("div",Object(i.a)({},h,{ref:a,className:s()(p,n,u&&t+"-"+u,l&&p+"-centered",d&&p+"-scrollable")}),k.a.createElement("div",{className:s()(t+"-content",o)},c))}));ne.displayName="ModalDialog";var re=ne,ie=Object(X.a)("modal-footer"),oe=["label","onClick","className"],se={label:A.a.string.isRequired,onClick:A.a.func},le=k.a.forwardRef((function(e,a){var t=e.label,n=e.onClick,o=e.className,l=Object(r.a)(e,oe);return k.a.createElement("button",Object(i.a)({ref:a,type:"button",className:s()("close",o),onClick:n},l),k.a.createElement("span",{"aria-hidden":"true"},"×"),k.a.createElement("span",{className:"sr-only"},t))}));le.displayName="CloseButton",le.propTypes=se,le.defaultProps={label:"Close"};var ue=le,ce=["bsPrefix","closeLabel","closeButton","onHide","className","children"],de=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.closeLabel,o=e.closeButton,l=e.onHide,u=e.className,c=e.children,d=Object(r.a)(e,ce);t=Object(ae.a)(t,"modal-header");var h=Object(v.useContext)(ee),p=Object(m.a)((function(){h&&h.onHide(),l&&l()}));return k.a.createElement("div",Object(i.a)({ref:a},d,{className:s()(u,t)}),c,o&&k.a.createElement(ue,{label:n,onClick:p}))}));de.displayName="ModalHeader",de.defaultProps={closeLabel:"Close",closeButton:!1};var he,pe=de,me=t(203),ge=Object(me.a)("h4"),fe=Object(X.a)("modal-title",{Component:ge}),ve=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],ke={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:re};function be(e){return k.a.createElement(Y.a,Object(i.a)({},e,{timeout:null}))}function ye(e){return k.a.createElement(Y.a,Object(i.a)({},e,{timeout:null}))}var ze=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.className,o=e.style,b=e.dialogClassName,y=e.contentClassName,z=e.children,S=e.dialogAs,A=e["aria-labelledby"],C=e.show,w=e.animation,x=e.backdrop,j=e.keyboard,M=e.onEscapeKeyDown,B=e.onShow,P=e.onHide,I=e.container,T=e.autoFocus,E=e.enforceFocus,L=e.restoreFocus,R=e.restoreFocusOptions,N=e.onEntered,_=e.onExit,K=e.onExiting,O=e.onEnter,D=e.onEntering,H=e.onExited,G=e.backdropClassName,V=e.manager,J=Object(r.a)(e,ve),$=Object(v.useState)({}),W=$[0],Z=$[1],U=Object(v.useState)(!1),Y=U[0],X=U[1],Q=Object(v.useRef)(!1),te=Object(v.useRef)(!1),ne=Object(v.useRef)(null),re=Object(p.a)(),ie=re[0],oe=re[1],se=Object(m.a)(P);t=Object(ae.a)(t,"modal"),Object(v.useImperativeHandle)(a,(function(){return{get _modal(){return ie}}}),[ie]);var le=Object(v.useMemo)((function(){return{onHide:se}}),[se]);function ue(){return V||(he||(he=new q),he)}function ce(e){if(u.a){var a=ue().isContainerOverflowing(ie),t=e.scrollHeight>Object(c.a)(e).documentElement.clientHeight;Z({paddingRight:a&&!t?h():void 0,paddingLeft:!a&&t?h():void 0})}}var de=Object(m.a)((function(){ie&&ce(ie.dialog)}));Object(g.a)((function(){Object(d.a)(window,"resize",de),ne.current&&ne.current()}));var pe=function(){Q.current=!0},me=function(e){Q.current&&ie&&e.target===ie.dialog&&(te.current=!0),Q.current=!1},ge=function(){X(!0),ne.current=Object(f.a)(ie.dialog,(function(){X(!1)}))},fe=function(e){"static"!==x?te.current||e.target!==e.currentTarget?te.current=!1:null==P||P():function(e){e.target===e.currentTarget&&ge()}(e)},ke=Object(v.useCallback)((function(e){return k.a.createElement("div",Object(i.a)({},e,{className:s()(t+"-backdrop",G,!w&&"show")}))}),[w,G,t]),ze=Object(i.a)({},o,W);w||(ze.display="block");return k.a.createElement(ee.Provider,{value:le},k.a.createElement(F,{show:C,ref:oe,backdrop:x,container:I,keyboard:!0,autoFocus:T,enforceFocus:E,restoreFocus:L,restoreFocusOptions:R,onEscapeKeyDown:function(e){j||"static"!==x?j&&M&&M(e):(e.preventDefault(),ge())},onShow:B,onHide:P,onEnter:function(e,a){e&&(e.style.display="block",ce(e)),null==O||O(e,a)},onEntering:function(e,a){null==D||D(e,a),Object(l.a)(window,"resize",de)},onEntered:N,onExit:function(e){null==ne.current||ne.current(),null==_||_(e)},onExiting:K,onExited:function(e){e&&(e.style.display=""),null==H||H(e),Object(d.a)(window,"resize",de)},manager:ue(),containerClassName:t+"-open",transition:w?be:void 0,backdropTransition:w?ye:void 0,renderBackdrop:ke,renderDialog:function(e){return k.a.createElement("div",Object(i.a)({role:"dialog"},e,{style:ze,className:s()(n,t,Y&&t+"-static"),onClick:x?fe:void 0,onMouseUp:me,"aria-labelledby":A}),k.a.createElement(S,Object(i.a)({},J,{onMouseDown:pe,className:b,contentClassName:y}),z))}}))}));ze.displayName="Modal",ze.defaultProps=ke,ze.Body=Q,ze.Header=pe,ze.Title=fe,ze.Footer=ie,ze.Dialog=re,ze.TRANSITION_DURATION=300,ze.BACKDROP_TRANSITION_DURATION=150;a.a=ze}]]);
|
|
10178
|
-
//# sourceMappingURL=vendors~main.d0920276df277d7da018.js.map
|
|
10177
|
+
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,a,t){"use strict";var n,r=t(12),i=t(5),o=t(17),s=t.n(o),l=t(263),u=t(119),c=t(78),d=t(199);function h(e){if((!n&&0!==n||e)&&u.a){var a=document.createElement("div");a.style.position="absolute",a.style.top="-9999px",a.style.width="50px",a.style.height="50px",a.style.overflow="scroll",document.body.appendChild(a),n=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n}var p=t(200),m=t(67),g=t(164),f=t(274),v=t(0),k=t.n(v);function b(e){void 0===e&&(e=Object(c.a)());try{var a=e.activeElement;return a&&a.nodeName?a:null}catch(a){return e.body}}var y=t(141),z=t(93),S=t(3),A=t.n(S),C=t(34),w=t.n(C),x=t(162);var j=t(167);function M(e,a){e.classList?e.classList.add(a):Object(j.a)(e,a)||("string"==typeof e.className?e.className=e.className+" "+a:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+a))}function B(e,a){return e.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function P(e,a){e.classList?e.classList.remove(a):"string"==typeof e.className?e.className=B(e.className,a):e.setAttribute("class",B(e.className&&e.className.baseVal||"",a))}var I=t(66);function T(e){return"window"in e&&e.window===e?e:"nodeType"in(a=e)&&a.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var a}function E(e){var a;return T(e)||(a=e)&&"body"===a.tagName.toLowerCase()?function(e){var a=T(e)?Object(c.a)():Object(c.a)(e),t=T(e)||a.defaultView;return a.body.clientWidth<t.innerWidth}(e):e.scrollHeight>e.clientHeight}var L=["template","script","style"],R=function(e,a,t){[].forEach.call(e.children,(function(e){var n,r,i;-1===a.indexOf(e)&&(r=(n=e).nodeType,i=n.tagName,1===r&&-1===L.indexOf(i.toLowerCase()))&&t(e)}))};function N(e,a){a&&(e?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden"))}var _,K=function(){function e(e){var a=void 0===e?{}:e,t=a.hideSiblingNodes,n=void 0===t||t,r=a.handleContainerOverflow,i=void 0===r||r;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=n,this.handleContainerOverflow=i,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=h()}var a=e.prototype;return a.isContainerOverflowing=function(e){var a=this.data[this.containerIndexFromModal(e)];return a&&a.overflowing},a.containerIndexFromModal=function(e){return a=this.data,t=function(a){return-1!==a.modals.indexOf(e)},n=-1,a.some((function(e,a){return!!t(e,a)&&(n=a,!0)})),n;var a,t,n},a.setContainerStyle=function(e,a){var t={overflow:"hidden"};e.style={overflow:a.style.overflow,paddingRight:a.style.paddingRight},e.overflowing&&(t.paddingRight=parseInt(Object(I.a)(a,"paddingRight")||"0",10)+this.scrollbarSize+"px"),Object(I.a)(a,t)},a.removeContainerStyle=function(e,a){Object.assign(a.style,e.style)},a.add=function(e,a,t){var n=this.modals.indexOf(e),r=this.containers.indexOf(a);if(-1!==n)return n;if(n=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,a){var t=a.dialog,n=a.backdrop;R(e,[t,n],(function(e){return N(!0,e)}))}(a,e),-1!==r)return this.data[r].modals.push(e),n;var i={modals:[e],classes:t?t.split(/\s+/):[],overflowing:E(a)};return this.handleContainerOverflow&&this.setContainerStyle(i,a),i.classes.forEach(M.bind(null,a)),this.containers.push(a),this.data.push(i),n},a.remove=function(e){var a=this.modals.indexOf(e);if(-1!==a){var t=this.containerIndexFromModal(e),n=this.data[t],r=this.containers[t];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(a,1),0===n.modals.length)n.classes.forEach(P.bind(null,r)),this.handleContainerOverflow&&this.removeContainerStyle(n,r),this.hideSiblingNodes&&function(e,a){var t=a.dialog,n=a.backdrop;R(e,[t,n],(function(e){return N(!1,e)}))}(r,e),this.containers.splice(t,1),this.data.splice(t,1);else if(this.hideSiblingNodes){var i=n.modals[n.modals.length-1],o=i.backdrop;N(!1,i.dialog),N(!1,o)}}},a.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),O=t(201);function D(e){var a=e||(_||(_=new K),_),t=Object(v.useRef)({dialog:null,backdrop:null});return Object.assign(t.current,{add:function(e,n){return a.add(t.current,e,n)},remove:function(){return a.remove(t.current)},isTopModal:function(){return a.isTopModal(t.current)},setDialogRef:Object(v.useCallback)((function(e){t.current.dialog=e}),[]),setBackdropRef:Object(v.useCallback)((function(e){t.current.backdrop=e}),[])})}var H=Object(v.forwardRef)((function(e,a){var t=e.show,n=void 0!==t&&t,o=e.role,s=void 0===o?"dialog":o,l=e.className,c=e.style,d=e.children,h=e.backdrop,p=void 0===h||h,f=e.keyboard,S=void 0===f||f,A=e.onBackdropClick,C=e.onEscapeKeyDown,j=e.transition,M=e.backdropTransition,B=e.autoFocus,P=void 0===B||B,I=e.enforceFocus,T=void 0===I||I,E=e.restoreFocus,L=void 0===E||E,R=e.restoreFocusOptions,N=e.renderDialog,_=e.renderBackdrop,K=void 0===_?function(e){return k.a.createElement("div",e)}:_,H=e.manager,G=e.container,F=e.containerClassName,V=e.onShow,J=e.onHide,$=void 0===J?function(){}:J,W=e.onExit,Z=e.onExited,U=e.onExiting,q=e.onEnter,Y=e.onEntering,X=e.onEntered,Q=Object(r.a)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),ee=Object(O.a)(G),ae=D(H),te=Object(x.a)(),ne=function(e){var a=Object(v.useRef)(null);return Object(v.useEffect)((function(){a.current=e})),a.current}(n),re=Object(v.useState)(!n),ie=re[0],oe=re[1],se=Object(v.useRef)(null);Object(v.useImperativeHandle)(a,(function(){return ae}),[ae]),u.a&&!ne&&n&&(se.current=b()),j||n||ie?n&&ie&&oe(!1):oe(!0);var le=Object(m.a)((function(){if(ae.add(ee,F),me.current=Object(z.a)(document,"keydown",he),pe.current=Object(z.a)(document,"focus",(function(){return setTimeout(ce)}),!0),V&&V(),P){var e=b(document);ae.dialog&&e&&!Object(y.a)(ae.dialog,e)&&(se.current=e,ae.dialog.focus())}})),ue=Object(m.a)((function(){var e;(ae.remove(),null==me.current||me.current(),null==pe.current||pe.current(),L)&&(null==(e=se.current)||null==e.focus||e.focus(R),se.current=null)}));Object(v.useEffect)((function(){n&&ee&&le()}),[n,ee,le]),Object(v.useEffect)((function(){ie&&ue()}),[ie,ue]),Object(g.a)((function(){ue()}));var ce=Object(m.a)((function(){if(T&&te()&&ae.isTopModal()){var e=b();ae.dialog&&e&&!Object(y.a)(ae.dialog,e)&&ae.dialog.focus()}})),de=Object(m.a)((function(e){e.target===e.currentTarget&&(null==A||A(e),!0===p&&$())})),he=Object(m.a)((function(e){S&&27===e.keyCode&&ae.isTopModal()&&(null==C||C(e),e.defaultPrevented||$())})),pe=Object(v.useRef)(),me=Object(v.useRef)(),ge=j;if(!ee||!(n||ge&&!ie))return null;var fe=Object(i.a)({role:s,ref:ae.setDialogRef,"aria-modal":"dialog"===s||void 0},Q,{style:c,className:l,tabIndex:-1}),ve=N?N(fe):k.a.createElement("div",fe,k.a.cloneElement(d,{role:"document"}));ge&&(ve=k.a.createElement(ge,{appear:!0,unmountOnExit:!0,in:!!n,onExit:W,onExiting:U,onExited:function(){oe(!0);for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];null==Z||Z.apply(void 0,a)},onEnter:q,onEntering:Y,onEntered:X},ve));var ke=null;if(p){var be=M;ke=K({ref:ae.setBackdropRef,onClick:de}),be&&(ke=k.a.createElement(be,{appear:!0,in:!!n},ke))}return k.a.createElement(k.a.Fragment,null,w.a.createPortal(k.a.createElement(k.a.Fragment,null,ke,ve),ee))})),G={show:A.a.bool,container:A.a.any,onShow:A.a.func,onHide:A.a.func,backdrop:A.a.oneOfType([A.a.bool,A.a.oneOf(["static"])]),renderDialog:A.a.func,renderBackdrop:A.a.func,onEscapeKeyDown:A.a.func,onBackdropClick:A.a.func,containerClassName:A.a.string,keyboard:A.a.bool,transition:A.a.elementType,backdropTransition:A.a.elementType,autoFocus:A.a.bool,enforceFocus:A.a.bool,restoreFocus:A.a.bool,restoreFocusOptions:A.a.shape({preventScroll:A.a.bool}),onEnter:A.a.func,onEntering:A.a.func,onEntered:A.a.func,onExit:A.a.func,onExiting:A.a.func,onExited:A.a.func,manager:A.a.instanceOf(K)};H.displayName="Modal",H.propTypes=G;var F=Object.assign(H,{Manager:K}),V=(t(111),t(44)),J=Function.prototype.bind.call(Function.prototype.call,[].slice);function $(e,a){return J(e.querySelectorAll(a))}var W=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Z=".sticky-top",U=".navbar-toggler",q=function(e){function a(){return e.apply(this,arguments)||this}Object(V.a)(a,e);var t=a.prototype;return t.adjustAndStore=function(e,a,t){var n,r=a.style[e];a.dataset[e]=r,Object(I.a)(a,((n={})[e]=parseFloat(Object(I.a)(a,e))+t+"px",n))},t.restore=function(e,a){var t,n=a.dataset[e];void 0!==n&&(delete a.dataset[e],Object(I.a)(a,((t={})[e]=n,t)))},t.setContainerStyle=function(a,t){var n=this;if(e.prototype.setContainerStyle.call(this,a,t),a.overflowing){var r=h();$(t,W).forEach((function(e){return n.adjustAndStore("paddingRight",e,r)})),$(t,Z).forEach((function(e){return n.adjustAndStore("marginRight",e,-r)})),$(t,U).forEach((function(e){return n.adjustAndStore("marginRight",e,r)}))}},t.removeContainerStyle=function(a,t){var n=this;e.prototype.removeContainerStyle.call(this,a,t),$(t,W).forEach((function(e){return n.restore("paddingRight",e)})),$(t,Z).forEach((function(e){return n.restore("marginRight",e)})),$(t,U).forEach((function(e){return n.restore("marginRight",e)}))},a}(K),Y=t(166),X=t(60),Q=Object(X.a)("modal-body"),ee=k.a.createContext({onHide:function(){}}),ae=t(42),te=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],ne=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.className,o=e.contentClassName,l=e.centered,u=e.size,c=e.children,d=e.scrollable,h=Object(r.a)(e,te),p=(t=Object(ae.a)(t,"modal"))+"-dialog";return k.a.createElement("div",Object(i.a)({},h,{ref:a,className:s()(p,n,u&&t+"-"+u,l&&p+"-centered",d&&p+"-scrollable")}),k.a.createElement("div",{className:s()(t+"-content",o)},c))}));ne.displayName="ModalDialog";var re=ne,ie=Object(X.a)("modal-footer"),oe=["label","onClick","className"],se={label:A.a.string.isRequired,onClick:A.a.func},le=k.a.forwardRef((function(e,a){var t=e.label,n=e.onClick,o=e.className,l=Object(r.a)(e,oe);return k.a.createElement("button",Object(i.a)({ref:a,type:"button",className:s()("close",o),onClick:n},l),k.a.createElement("span",{"aria-hidden":"true"},"×"),k.a.createElement("span",{className:"sr-only"},t))}));le.displayName="CloseButton",le.propTypes=se,le.defaultProps={label:"Close"};var ue=le,ce=["bsPrefix","closeLabel","closeButton","onHide","className","children"],de=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.closeLabel,o=e.closeButton,l=e.onHide,u=e.className,c=e.children,d=Object(r.a)(e,ce);t=Object(ae.a)(t,"modal-header");var h=Object(v.useContext)(ee),p=Object(m.a)((function(){h&&h.onHide(),l&&l()}));return k.a.createElement("div",Object(i.a)({ref:a},d,{className:s()(u,t)}),c,o&&k.a.createElement(ue,{label:n,onClick:p}))}));de.displayName="ModalHeader",de.defaultProps={closeLabel:"Close",closeButton:!1};var he,pe=de,me=t(203),ge=Object(me.a)("h4"),fe=Object(X.a)("modal-title",{Component:ge}),ve=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],ke={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:re};function be(e){return k.a.createElement(Y.a,Object(i.a)({},e,{timeout:null}))}function ye(e){return k.a.createElement(Y.a,Object(i.a)({},e,{timeout:null}))}var ze=k.a.forwardRef((function(e,a){var t=e.bsPrefix,n=e.className,o=e.style,b=e.dialogClassName,y=e.contentClassName,z=e.children,S=e.dialogAs,A=e["aria-labelledby"],C=e.show,w=e.animation,x=e.backdrop,j=e.keyboard,M=e.onEscapeKeyDown,B=e.onShow,P=e.onHide,I=e.container,T=e.autoFocus,E=e.enforceFocus,L=e.restoreFocus,R=e.restoreFocusOptions,N=e.onEntered,_=e.onExit,K=e.onExiting,O=e.onEnter,D=e.onEntering,H=e.onExited,G=e.backdropClassName,V=e.manager,J=Object(r.a)(e,ve),$=Object(v.useState)({}),W=$[0],Z=$[1],U=Object(v.useState)(!1),Y=U[0],X=U[1],Q=Object(v.useRef)(!1),te=Object(v.useRef)(!1),ne=Object(v.useRef)(null),re=Object(p.a)(),ie=re[0],oe=re[1],se=Object(m.a)(P);t=Object(ae.a)(t,"modal"),Object(v.useImperativeHandle)(a,(function(){return{get _modal(){return ie}}}),[ie]);var le=Object(v.useMemo)((function(){return{onHide:se}}),[se]);function ue(){return V||(he||(he=new q),he)}function ce(e){if(u.a){var a=ue().isContainerOverflowing(ie),t=e.scrollHeight>Object(c.a)(e).documentElement.clientHeight;Z({paddingRight:a&&!t?h():void 0,paddingLeft:!a&&t?h():void 0})}}var de=Object(m.a)((function(){ie&&ce(ie.dialog)}));Object(g.a)((function(){Object(d.a)(window,"resize",de),ne.current&&ne.current()}));var pe=function(){Q.current=!0},me=function(e){Q.current&&ie&&e.target===ie.dialog&&(te.current=!0),Q.current=!1},ge=function(){X(!0),ne.current=Object(f.a)(ie.dialog,(function(){X(!1)}))},fe=function(e){"static"!==x?te.current||e.target!==e.currentTarget?te.current=!1:null==P||P():function(e){e.target===e.currentTarget&&ge()}(e)},ke=Object(v.useCallback)((function(e){return k.a.createElement("div",Object(i.a)({},e,{className:s()(t+"-backdrop",G,!w&&"show")}))}),[w,G,t]),ze=Object(i.a)({},o,W);w||(ze.display="block");return k.a.createElement(ee.Provider,{value:le},k.a.createElement(F,{show:C,ref:oe,backdrop:x,container:I,keyboard:!0,autoFocus:T,enforceFocus:E,restoreFocus:L,restoreFocusOptions:R,onEscapeKeyDown:function(e){j||"static"!==x?j&&M&&M(e):(e.preventDefault(),ge())},onShow:B,onHide:P,onEnter:function(e,a){e&&(e.style.display="block",ce(e)),null==O||O(e,a)},onEntering:function(e,a){null==D||D(e,a),Object(l.a)(window,"resize",de)},onEntered:N,onExit:function(e){null==ne.current||ne.current(),null==_||_(e)},onExiting:K,onExited:function(e){e&&(e.style.display=""),null==H||H(e),Object(d.a)(window,"resize",de)},manager:ue(),containerClassName:t+"-open",transition:w?be:void 0,backdropTransition:w?ye:void 0,renderBackdrop:ke,renderDialog:function(e){return k.a.createElement("div",Object(i.a)({role:"dialog"},e,{style:ze,className:s()(n,t,Y&&t+"-static"),onClick:x?fe:void 0,onMouseUp:me,"aria-labelledby":A}),k.a.createElement(S,Object(i.a)({},J,{onMouseDown:pe,className:b,contentClassName:y}),z))}}))}));ze.displayName="Modal",ze.defaultProps=ke,ze.Body=Q,ze.Header=pe,ze.Title=fe,ze.Footer=ie,ze.Dialog=re,ze.TRANSITION_DURATION=300,ze.BACKDROP_TRANSITION_DURATION=150;a.a=ze}]]);
|