@kuadrant/kuadrant-backstage-plugin-frontend 0.2.0 → 0.3.0-aaa46b4
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/dist/api.esm.js +40 -2
- package/dist/api.esm.js.map +1 -1
- package/dist/components/ApiAccessCard/ApiAccessCard.esm.js +20 -85
- package/dist/components/ApiAccessCard/ApiAccessCard.esm.js.map +1 -1
- package/dist/components/ApiKeyApprovalPage/ApiKeyApprovalPageWithPermissions.esm.js +18 -0
- package/dist/components/ApiKeyApprovalPage/ApiKeyApprovalPageWithPermissions.esm.js.map +1 -0
- package/dist/components/ApiKeyApprovalPage/index.esm.js +1 -0
- package/dist/components/ApiKeyApprovalPage/index.esm.js.map +1 -1
- package/dist/components/ApiKeyDetailPage/ApiKeyDetailPage.esm.js +19 -60
- package/dist/components/ApiKeyDetailPage/ApiKeyDetailPage.esm.js.map +1 -1
- package/dist/components/ApiKeyManagementTab/ApiKeyManagementTab.esm.js +66 -113
- package/dist/components/ApiKeyManagementTab/ApiKeyManagementTab.esm.js.map +1 -1
- package/dist/components/ApiProductInfoCard/ApiProductInfoCard.esm.js +3 -2
- package/dist/components/ApiProductInfoCard/ApiProductInfoCard.esm.js.map +1 -1
- package/dist/components/ApprovalQueueTable/ApprovalQueueTable.esm.js +16 -15
- package/dist/components/ApprovalQueueTable/ApprovalQueueTable.esm.js.map +1 -1
- package/dist/components/CreateAPIProductDialog/CreateAPIProductDialog.esm.js +1 -7
- package/dist/components/CreateAPIProductDialog/CreateAPIProductDialog.esm.js.map +1 -1
- package/dist/components/EditAPIProductDialog/EditAPIProductDialog.esm.js +2 -3
- package/dist/components/EditAPIProductDialog/EditAPIProductDialog.esm.js.map +1 -1
- package/dist/components/KuadrantIcon/KuadrantIcon.esm.js +22 -0
- package/dist/components/KuadrantIcon/KuadrantIcon.esm.js.map +1 -0
- package/dist/components/KuadrantPage/ApiProductsPage.esm.js +5 -18
- package/dist/components/KuadrantPage/ApiProductsPage.esm.js.map +1 -1
- package/dist/components/MyApiKeysTable/MyApiKeysTable.esm.js +28 -138
- package/dist/components/MyApiKeysTable/MyApiKeysTable.esm.js.map +1 -1
- package/dist/components/PermissionGate/PermissionGate.esm.js +2 -2
- package/dist/components/PermissionGate/PermissionGate.esm.js.map +1 -1
- package/dist/components/RequestAccessDialog/RequestAccessDialog.esm.js +32 -18
- package/dist/components/RequestAccessDialog/RequestAccessDialog.esm.js.map +1 -1
- package/dist/components/SimpleRequestAccessDialog/SimpleRequestAccessDialog.esm.js +13 -2
- package/dist/components/SimpleRequestAccessDialog/SimpleRequestAccessDialog.esm.js.map +1 -1
- package/dist/components/icons.esm.js +11 -0
- package/dist/components/icons.esm.js.map +1 -0
- package/dist/index.d.ts +54 -6
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +2 -10
- package/dist/plugin.esm.js.map +1 -1
- package/dist/utils/apikeys.esm.js +21 -0
- package/dist/utils/apikeys.esm.js.map +1 -0
- package/dist/utils/styles.esm.js +5 -2
- package/dist/utils/styles.esm.js.map +1 -1
- package/dist-scalprum/internal.plugin-kuadrant.7f1de85661b1b848af15.js +2 -0
- package/dist-scalprum/internal.plugin-kuadrant.7f1de85661b1b848af15.js.map +1 -0
- package/dist-scalprum/plugin-manifest.json +3 -3
- package/dist-scalprum/static/{1037.58dd29ad.chunk.js → 1037.25758556.chunk.js} +1 -1
- package/dist-scalprum/static/{1037.58dd29ad.chunk.js.map → 1037.25758556.chunk.js.map} +1 -1
- package/dist-scalprum/static/1340.7c4f4722.chunk.js +3 -0
- package/dist-scalprum/static/1340.7c4f4722.chunk.js.map +1 -0
- package/dist-scalprum/static/1719.52ca7daf.chunk.js +2 -0
- package/dist-scalprum/static/1719.52ca7daf.chunk.js.map +1 -0
- package/dist-scalprum/static/{1881.8221c002.chunk.js → 1931.f6a5edbb.chunk.js} +2 -2
- package/dist-scalprum/static/1931.f6a5edbb.chunk.js.map +1 -0
- package/dist-scalprum/static/20.b3a37d1d.chunk.js +3 -0
- package/dist-scalprum/static/20.b3a37d1d.chunk.js.map +1 -0
- package/dist-scalprum/static/2251.08f3db99.chunk.js +2 -0
- package/dist-scalprum/static/2251.08f3db99.chunk.js.map +1 -0
- package/dist-scalprum/static/2769.e09b0ab0.chunk.js +2 -0
- package/dist-scalprum/static/2769.e09b0ab0.chunk.js.map +1 -0
- package/dist-scalprum/static/2821.1ac360ec.chunk.js +2 -0
- package/dist-scalprum/static/2821.1ac360ec.chunk.js.map +1 -0
- package/dist-scalprum/static/2952.b54bd390.chunk.js +2 -0
- package/dist-scalprum/static/2952.b54bd390.chunk.js.map +1 -0
- package/dist-scalprum/static/2967.004a950e.chunk.js +2 -0
- package/dist-scalprum/static/2967.004a950e.chunk.js.map +1 -0
- package/dist-scalprum/static/3015.1fe097c2.chunk.js +3 -0
- package/dist-scalprum/static/3015.1fe097c2.chunk.js.LICENSE.txt +9 -0
- package/dist-scalprum/static/3015.1fe097c2.chunk.js.map +1 -0
- package/dist-scalprum/static/327.74ecd572.chunk.js +2 -0
- package/dist-scalprum/static/327.74ecd572.chunk.js.map +1 -0
- package/dist-scalprum/static/3657.882640ca.chunk.js +3 -0
- package/dist-scalprum/static/3657.882640ca.chunk.js.LICENSE.txt +8 -0
- package/dist-scalprum/static/3657.882640ca.chunk.js.map +1 -0
- package/dist-scalprum/static/3658.104704cc.chunk.js +2 -0
- package/dist-scalprum/static/3658.104704cc.chunk.js.map +1 -0
- package/dist-scalprum/static/{3897.ef4554b5.chunk.js → 3897.6e9c07c0.chunk.js} +1 -1
- package/dist-scalprum/static/{3897.ef4554b5.chunk.js.map → 3897.6e9c07c0.chunk.js.map} +1 -1
- package/dist-scalprum/static/3917.888fba36.chunk.js +2 -0
- package/dist-scalprum/static/3917.888fba36.chunk.js.map +1 -0
- package/dist-scalprum/static/3947.f5320e89.chunk.js +2 -0
- package/dist-scalprum/static/3947.f5320e89.chunk.js.map +1 -0
- package/dist-scalprum/static/{4083.488ff7a9.chunk.js → 4083.811c4e7a.chunk.js} +2 -2
- package/dist-scalprum/static/{4083.488ff7a9.chunk.js.map → 4083.811c4e7a.chunk.js.map} +1 -1
- package/dist-scalprum/static/438.4335b833.chunk.js +2 -0
- package/dist-scalprum/static/438.4335b833.chunk.js.map +1 -0
- package/dist-scalprum/static/4908.4f21d453.chunk.js +2 -0
- package/dist-scalprum/static/4908.4f21d453.chunk.js.map +1 -0
- package/dist-scalprum/static/{5010.6241b64f.chunk.js → 5010.4f67737b.chunk.js} +2 -2
- package/dist-scalprum/static/{5010.6241b64f.chunk.js.map → 5010.4f67737b.chunk.js.map} +1 -1
- package/dist-scalprum/static/5197.53535ff4.chunk.js +2 -0
- package/dist-scalprum/static/5197.53535ff4.chunk.js.map +1 -0
- package/dist-scalprum/static/5289.6c803140.chunk.js +2 -0
- package/dist-scalprum/static/5289.6c803140.chunk.js.map +1 -0
- package/dist-scalprum/static/5943.4e1dedc5.chunk.js +2 -0
- package/dist-scalprum/static/5943.4e1dedc5.chunk.js.map +1 -0
- package/dist-scalprum/static/6038.63d1f832.chunk.js +3 -0
- package/dist-scalprum/static/6038.63d1f832.chunk.js.LICENSE.txt +8 -0
- package/dist-scalprum/static/6038.63d1f832.chunk.js.map +1 -0
- package/dist-scalprum/static/{6272.b5645dc2.chunk.js → 6272.3ed14ea4.chunk.js} +1 -1
- package/dist-scalprum/static/{6272.b5645dc2.chunk.js.map → 6272.3ed14ea4.chunk.js.map} +1 -1
- package/dist-scalprum/static/6311.da1849d1.chunk.js +2 -0
- package/dist-scalprum/static/6311.da1849d1.chunk.js.map +1 -0
- package/dist-scalprum/static/635.f63679a5.chunk.js +3 -0
- package/dist-scalprum/static/635.f63679a5.chunk.js.map +1 -0
- package/dist-scalprum/static/6371.02375475.chunk.js +3 -0
- package/dist-scalprum/static/6371.02375475.chunk.js.LICENSE.txt +9 -0
- package/dist-scalprum/static/6371.02375475.chunk.js.map +1 -0
- package/dist-scalprum/static/{6386.2d20c412.chunk.js → 6386.5922f271.chunk.js} +3 -3
- package/dist-scalprum/static/{6386.2d20c412.chunk.js.map → 6386.5922f271.chunk.js.map} +1 -1
- package/dist-scalprum/static/6837.6252b97a.chunk.js +2 -0
- package/dist-scalprum/static/6837.6252b97a.chunk.js.map +1 -0
- package/dist-scalprum/static/{6972.e47ec97e.chunk.js → 6972.f22b9446.chunk.js} +1 -1
- package/dist-scalprum/static/{6972.e47ec97e.chunk.js.map → 6972.f22b9446.chunk.js.map} +1 -1
- package/dist-scalprum/static/7164.5dc4bc72.chunk.js +2 -0
- package/dist-scalprum/static/7164.5dc4bc72.chunk.js.map +1 -0
- package/dist-scalprum/static/{7266.e760b8c3.chunk.js → 7266.3c4174cc.chunk.js} +1 -1
- package/dist-scalprum/static/{7266.e760b8c3.chunk.js.map → 7266.3c4174cc.chunk.js.map} +1 -1
- package/dist-scalprum/static/7270.8ee9d452.chunk.js +2 -0
- package/dist-scalprum/static/7270.8ee9d452.chunk.js.map +1 -0
- package/dist-scalprum/static/{7791.8f84478d.chunk.js → 7791.ad31cf6d.chunk.js} +2 -2
- package/dist-scalprum/static/{7791.8f84478d.chunk.js.map → 7791.ad31cf6d.chunk.js.map} +1 -1
- package/dist-scalprum/static/{8563.46f1a3e1.chunk.js → 8563.6501eafb.chunk.js} +2 -2
- package/dist-scalprum/static/{8563.46f1a3e1.chunk.js.map → 8563.6501eafb.chunk.js.map} +1 -1
- package/dist-scalprum/static/980.744a4d36.chunk.js +2 -0
- package/dist-scalprum/static/980.744a4d36.chunk.js.map +1 -0
- package/dist-scalprum/static/exposed-KuadrantIcon.08abbb96.chunk.js +3 -0
- package/dist-scalprum/static/exposed-KuadrantIcon.08abbb96.chunk.js.LICENSE.txt +9 -0
- package/dist-scalprum/static/exposed-KuadrantIcon.08abbb96.chunk.js.map +1 -0
- package/dist-scalprum/static/exposed-KuadrantPage.f123b200.chunk.js +2 -0
- package/dist-scalprum/static/exposed-KuadrantPage.f123b200.chunk.js.map +1 -0
- package/dist-scalprum/static/exposed-PluginRoot.3a5f9157.chunk.js +2 -0
- package/dist-scalprum/static/exposed-PluginRoot.3a5f9157.chunk.js.map +1 -0
- package/package.json +6 -3
- package/dist/components/EntityApiApprovalTab/EntityApiApprovalTab.esm.js +0 -265
- package/dist/components/EntityApiApprovalTab/EntityApiApprovalTab.esm.js.map +0 -1
- package/dist/components/EntityApiApprovalTab/index.esm.js +0 -2
- package/dist/components/EntityApiApprovalTab/index.esm.js.map +0 -1
- package/dist-scalprum/internal.plugin-kuadrant.b3d35dc8b21ce867aa09.js +0 -2
- package/dist-scalprum/internal.plugin-kuadrant.b3d35dc8b21ce867aa09.js.map +0 -1
- package/dist-scalprum/static/1319.ac195ac2.chunk.js +0 -2
- package/dist-scalprum/static/1319.ac195ac2.chunk.js.map +0 -1
- package/dist-scalprum/static/1584.ae3779f0.chunk.js +0 -3
- package/dist-scalprum/static/1584.ae3779f0.chunk.js.map +0 -1
- package/dist-scalprum/static/1881.8221c002.chunk.js.map +0 -1
- package/dist-scalprum/static/2967.7c6a34cd.chunk.js +0 -2
- package/dist-scalprum/static/2967.7c6a34cd.chunk.js.map +0 -1
- package/dist-scalprum/static/3118.daee3324.chunk.js +0 -3
- package/dist-scalprum/static/3118.daee3324.chunk.js.map +0 -1
- package/dist-scalprum/static/3581.b5b97f08.chunk.js +0 -2
- package/dist-scalprum/static/3581.b5b97f08.chunk.js.map +0 -1
- package/dist-scalprum/static/369.2374941c.chunk.js +0 -2
- package/dist-scalprum/static/369.2374941c.chunk.js.map +0 -1
- package/dist-scalprum/static/3947.ad129ba4.chunk.js +0 -2
- package/dist-scalprum/static/3947.ad129ba4.chunk.js.map +0 -1
- package/dist-scalprum/static/3976.e0873210.chunk.js +0 -2
- package/dist-scalprum/static/3976.e0873210.chunk.js.map +0 -1
- package/dist-scalprum/static/4434.f92f6ba4.chunk.js +0 -2
- package/dist-scalprum/static/4434.f92f6ba4.chunk.js.map +0 -1
- package/dist-scalprum/static/483.d55d6ab2.chunk.js +0 -2
- package/dist-scalprum/static/483.d55d6ab2.chunk.js.map +0 -1
- package/dist-scalprum/static/512.f1c51799.chunk.js +0 -2
- package/dist-scalprum/static/512.f1c51799.chunk.js.map +0 -1
- package/dist-scalprum/static/5203.3df62d7e.chunk.js +0 -2
- package/dist-scalprum/static/5203.3df62d7e.chunk.js.map +0 -1
- package/dist-scalprum/static/5289.2e686027.chunk.js +0 -2
- package/dist-scalprum/static/5289.2e686027.chunk.js.map +0 -1
- package/dist-scalprum/static/5453.3c20d0a6.chunk.js +0 -2
- package/dist-scalprum/static/5453.3c20d0a6.chunk.js.map +0 -1
- package/dist-scalprum/static/6371.f183dddb.chunk.js +0 -3
- package/dist-scalprum/static/6371.f183dddb.chunk.js.map +0 -1
- package/dist-scalprum/static/6426.bf20c588.chunk.js +0 -2
- package/dist-scalprum/static/6426.bf20c588.chunk.js.map +0 -1
- package/dist-scalprum/static/6800.ddabed69.chunk.js +0 -2
- package/dist-scalprum/static/6800.ddabed69.chunk.js.map +0 -1
- package/dist-scalprum/static/7005.d548f8f1.chunk.js +0 -2
- package/dist-scalprum/static/7005.d548f8f1.chunk.js.map +0 -1
- package/dist-scalprum/static/7057.fcd688c7.chunk.js +0 -2
- package/dist-scalprum/static/7057.fcd688c7.chunk.js.map +0 -1
- package/dist-scalprum/static/7270.301a3c46.chunk.js +0 -2
- package/dist-scalprum/static/7270.301a3c46.chunk.js.map +0 -1
- package/dist-scalprum/static/9051.f095a8a1.chunk.js +0 -2
- package/dist-scalprum/static/9051.f095a8a1.chunk.js.map +0 -1
- package/dist-scalprum/static/9079.b6d5c19c.chunk.js +0 -2
- package/dist-scalprum/static/9079.b6d5c19c.chunk.js.map +0 -1
- package/dist-scalprum/static/9625.b0c6610a.chunk.js +0 -2
- package/dist-scalprum/static/9625.b0c6610a.chunk.js.map +0 -1
- package/dist-scalprum/static/9838.589f2156.chunk.js +0 -2
- package/dist-scalprum/static/9838.589f2156.chunk.js.map +0 -1
- package/dist-scalprum/static/exposed-PluginRoot.a8448fcc.chunk.js +0 -2
- package/dist-scalprum/static/exposed-PluginRoot.a8448fcc.chunk.js.map +0 -1
- /package/dist-scalprum/static/{1584.ae3779f0.chunk.js.LICENSE.txt → 1340.7c4f4722.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{3118.daee3324.chunk.js.LICENSE.txt → 20.b3a37d1d.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{4083.488ff7a9.chunk.js.LICENSE.txt → 4083.811c4e7a.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{5010.6241b64f.chunk.js.LICENSE.txt → 5010.4f67737b.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{6371.f183dddb.chunk.js.LICENSE.txt → 635.f63679a5.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{6386.2d20c412.chunk.js.LICENSE.txt → 6386.5922f271.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{8563.46f1a3e1.chunk.js.LICENSE.txt → 8563.6501eafb.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[5197],{4313:(e,n,t)=>{t.d(n,{A:()=>b});var o=t(39850),r=t(89575),i=t(95478),a=t(40484),c=t(11942),l=t(76446),u=t(41883),s=t(37260),d=t(19878),f=t(70020),p=t(26931),h=t(22702),v=t(64927),m={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const g=i.forwardRef(function(e,n){var t=e.invisible,a=void 0!==t&&t,c=e.open,l=(0,o.A)(e,["invisible","open"]);return c?i.createElement("div",(0,r.A)({"aria-hidden":!0,ref:n},l,{style:(0,r.A)({},m.root,a?m.invisible:{},l.style)})):null});var E=new h.A;const b=i.forwardRef(function(e,n){var t=(0,c.useTheme)(),m=(0,c.getThemeProps)({name:"MuiModal",props:(0,r.A)({},e),theme:t}),b=m.BackdropComponent,y=void 0===b?g:b,A=m.BackdropProps,k=m.children,x=m.closeAfterTransition,w=void 0!==x&&x,R=m.container,C=m.disableAutoFocus,P=void 0!==C&&C,T=m.disableBackdropClick,O=void 0!==T&&T,z=m.disableEnforceFocus,I=void 0!==z&&z,M=m.disableEscapeKeyDown,N=void 0!==M&&M,F=m.disablePortal,S=void 0!==F&&F,D=m.disableRestoreFocus,L=void 0!==D&&D,B=m.disableScrollLock,H=void 0!==B&&B,W=m.hideBackdrop,K=void 0!==W&&W,_=m.keepMounted,Y=void 0!==_&&_,j=m.manager,q=void 0===j?E:j,X=m.onBackdropClick,G=m.onClose,J=m.onEscapeKeyDown,Q=m.onRendered,U=m.open,V=(0,o.A)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=i.useState(!0),$=Z[0],ee=Z[1],ne=i.useRef({}),te=i.useRef(null),oe=i.useRef(null),re=(0,d.A)(oe,n),ie=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),ae=function(){return(0,l.A)(te.current)},ce=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=te.current,ne.current},le=function(){q.mount(ce(),{disableScrollLock:H}),oe.current.scrollTop=0},ue=(0,f.A)(function(){var e=function(e){return e="function"==typeof e?e():e,a.findDOMNode(e)}(R)||ae().body;q.add(ce(),e),oe.current&&le()}),se=i.useCallback(function(){return q.isTopModal(ce())},[q]),de=(0,f.A)(function(e){te.current=e,e&&(Q&&Q(),U&&se()?le():(0,h.M)(oe.current,!0))}),fe=i.useCallback(function(){q.remove(ce())},[q]);if(i.useEffect(function(){return function(){fe()}},[fe]),i.useEffect(function(){U?ue():ie&&w||fe()},[U,fe,ie,w,ue]),!Y&&!U&&(!ie||$))return null;var pe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(t||{zIndex:p.A}),he={};return void 0===k.props.tabIndex&&(he.tabIndex=k.props.tabIndex||"-1"),ie&&(he.onEnter=(0,s.A)(function(){ee(!1)},k.props.onEnter),he.onExited=(0,s.A)(function(){ee(!0),w&&fe()},k.props.onExited)),i.createElement(u.A,{ref:de,container:R,disablePortal:S},i.createElement("div",(0,r.A)({ref:re,onKeyDown:function(e){"Escape"===e.key&&se()&&(J&&J(e),N||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},V,{style:(0,r.A)({},pe.root,!U&&$?pe.hidden:{},V.style)}),K?null:i.createElement(y,(0,r.A)({open:U,onClick:function(e){e.target===e.currentTarget&&(X&&X(e),!O&&G&&G(e,"backdropClick"))}},A)),i.createElement(v.A,{disableEnforceFocus:I,disableAutoFocus:P,disableRestoreFocus:L,getDoc:ae,isEnabled:se,open:U},i.cloneElement(k,he))))})},18977:(e,n,t)=>{function o(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n}t.d(n,{A:()=>o})},22702:(e,n,t)=>{t.d(n,{A:()=>p,M:()=>u});var o=t(55152),r=t(30414),i=t(83705),a=t(18977),c=t(76446),l=t(82431);function u(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function d(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=arguments.length>4?arguments[4]:void 0,a=[n,t].concat((0,i.A)(o)),c=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===c.indexOf(e.tagName)&&u(e,r)})}function f(e,n){var t=-1;return e.some(function(e,o){return!!n(e)&&(t=o,!0)}),t}var p=function(){function e(){(0,o.A)(this,e),this.modals=[],this.containers=[]}return(0,r.A)(e,[{key:"add",value:function(e,n){var t=this.modals.indexOf(e);if(-1!==t)return t;t=this.modals.length,this.modals.push(e),e.modalRef&&u(e.modalRef,!1);var o=function(e){var n=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&n.push(e)}),n}(n);d(n,e.mountNode,e.modalRef,o,!0);var r=f(this.containers,function(e){return e.container===n});return-1!==r?(this.containers[r].modals.push(e),t):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblingNodes:o}),t)}},{key:"mount",value:function(e,n){var t=f(this.containers,function(n){return-1!==n.modals.indexOf(e)}),o=this.containers[t];o.restore||(o.restore=function(e,n){var t,o=[],r=[],i=e.container;if(!n.disableScrollLock){if(function(e){var n=(0,c.A)(e);return n.body===e?(0,l.A)(n).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var u=(0,a.A)();o.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(s(i)+u,"px"),t=(0,c.A)(i).querySelectorAll(".mui-fixed"),[].forEach.call(t,function(e){r.push(e.style.paddingRight),e.style.paddingRight="".concat(s(e)+u,"px")})}var d=i.parentElement,f="HTML"===d.nodeName&&"scroll"===window.getComputedStyle(d)["overflow-y"]?d:i;o.push({value:f.style.overflow,key:"overflow",el:f}),f.style.overflow="hidden"}return function(){t&&[].forEach.call(t,function(e,n){r[n]?e.style.paddingRight=r[n]:e.style.removeProperty("padding-right")}),o.forEach(function(e){var n=e.value,t=e.el,o=e.key;n?t.style.setProperty(o,n):t.style.removeProperty(o)})}}(o,n))}},{key:"remove",value:function(e){var n=this.modals.indexOf(e);if(-1===n)return n;var t=f(this.containers,function(n){return-1!==n.modals.indexOf(e)}),o=this.containers[t];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&u(e.modalRef,!0),d(o.container,e.mountNode,e.modalRef,o.hiddenSiblingNodes,!1),this.containers.splice(t,1);else{var r=o.modals[o.modals.length-1];r.modalRef&&u(r.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}()},55197:(e,n,t)=>{t.d(n,{Ay:()=>A});var o=t(89575),r=t(39850),i=t(95478),a=t(40484),c=t(2589),l=t(36274),u=t(76446),s=t(82431),d=t(37260),f=t(7031),p=t(4313),h=t(33145),v=t(4321);function m(e,n){var t=0;return"number"==typeof n?t=n:"center"===n?t=e.height/2:"bottom"===n&&(t=e.height),t}function g(e,n){var t=0;return"number"==typeof n?t=n:"center"===n?t=e.width/2:"right"===n&&(t=e.width),t}function E(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function b(e){return"function"==typeof e?e():e}var y=i.forwardRef(function(e,n){var t=e.action,f=e.anchorEl,y=e.anchorOrigin,A=void 0===y?{vertical:"top",horizontal:"left"}:y,k=e.anchorPosition,x=e.anchorReference,w=void 0===x?"anchorEl":x,R=e.children,C=e.classes,P=e.className,T=e.container,O=e.elevation,z=void 0===O?8:O,I=e.getContentAnchorEl,M=e.marginThreshold,N=void 0===M?16:M,F=e.onEnter,S=e.onEntered,D=e.onEntering,L=e.onExit,B=e.onExited,H=e.onExiting,W=e.open,K=e.PaperProps,_=void 0===K?{}:K,Y=e.transformOrigin,j=void 0===Y?{vertical:"top",horizontal:"left"}:Y,q=e.TransitionComponent,X=void 0===q?h.A:q,G=e.transitionDuration,J=void 0===G?"auto":G,Q=e.TransitionProps,U=void 0===Q?{}:Q,V=(0,r.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Z=i.useRef(),$=i.useCallback(function(e){if("anchorPosition"===w)return k;var n=b(f),t=(n&&1===n.nodeType?n:(0,u.A)(Z.current).body).getBoundingClientRect(),o=0===e?A.vertical:"center";return{top:t.top+m(t,o),left:t.left+g(t,A.horizontal)}},[f,A.horizontal,A.vertical,k,w]),ee=i.useCallback(function(e){var n=0;if(I&&"anchorEl"===w){var t=I(e);if(t&&e.contains(t)){var o=function(e,n){for(var t=n,o=0;t&&t!==e;)o+=(t=t.parentElement).scrollTop;return o}(e,t);n=t.offsetTop+t.clientHeight/2-o||0}}return n},[A.vertical,w,I]),ne=i.useCallback(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:m(e,j.vertical)+n,horizontal:g(e,j.horizontal)}},[j.horizontal,j.vertical]),te=i.useCallback(function(e){var n=ee(e),t={width:e.offsetWidth,height:e.offsetHeight},o=ne(t,n);if("none"===w)return{top:null,left:null,transformOrigin:E(o)};var r=$(n),i=r.top-o.vertical,a=r.left-o.horizontal,c=i+t.height,l=a+t.width,u=(0,s.A)(b(f)),d=u.innerHeight-N,p=u.innerWidth-N;if(i<N){var h=i-N;i-=h,o.vertical+=h}else if(c>d){var v=c-d;i-=v,o.vertical+=v}if(a<N){var m=a-N;a-=m,o.horizontal+=m}else if(l>p){var g=l-p;a-=g,o.horizontal+=g}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:E(o)}},[f,w,$,ee,ne,N]),oe=i.useCallback(function(){var e=Z.current;if(e){var n=te(e);null!==n.top&&(e.style.top=n.top),null!==n.left&&(e.style.left=n.left),e.style.transformOrigin=n.transformOrigin}},[te]),re=i.useCallback(function(e){Z.current=a.findDOMNode(e)},[]);i.useEffect(function(){W&&oe()}),i.useImperativeHandle(t,function(){return W?{updatePosition:function(){oe()}}:null},[W,oe]),i.useEffect(function(){if(W){var e=(0,c.A)(function(){oe()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[W,oe]);var ie=J;"auto"!==J||X.muiSupportAuto||(ie=void 0);var ae=T||(f?(0,u.A)(b(f)).body:void 0);return i.createElement(p.A,(0,o.A)({container:ae,open:W,ref:n,BackdropProps:{invisible:!0},className:(0,l.A)(C.root,P)},V),i.createElement(X,(0,o.A)({appear:!0,in:W,onEnter:F,onEntered:S,onExit:L,onExited:B,onExiting:H,timeout:ie},U,{onEntering:(0,d.A)(function(e,n){D&&D(e,n),oe()},U.onEntering)}),i.createElement(v.A,(0,o.A)({elevation:z,ref:re},_,{className:(0,l.A)(C.paper,_.className)}),R)))});const A=(0,f.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(y)},64927:(e,n,t)=>{t.d(n,{A:()=>c});var o=t(95478),r=t(40484),i=t(76446),a=t(19878);const c=function(e){var n=e.children,t=e.disableAutoFocus,c=void 0!==t&&t,l=e.disableEnforceFocus,u=void 0!==l&&l,s=e.disableRestoreFocus,d=void 0!==s&&s,f=e.getDoc,p=e.isEnabled,h=e.open,v=o.useRef(),m=o.useRef(null),g=o.useRef(null),E=o.useRef(),b=o.useRef(null),y=o.useCallback(function(e){b.current=r.findDOMNode(e)},[]),A=(0,a.A)(n.ref,y),k=o.useRef();return o.useEffect(function(){k.current=h},[h]),!k.current&&h&&"undefined"!=typeof window&&(E.current=f().activeElement),o.useEffect(function(){if(h){var e=(0,i.A)(b.current);c||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var n=function(){null!==b.current&&(e.hasFocus()&&!u&&p()&&!v.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():v.current=!1)},t=function(n){!u&&p()&&9===n.keyCode&&e.activeElement===b.current&&(v.current=!0,n.shiftKey?g.current.focus():m.current.focus())};e.addEventListener("focus",n,!0),e.addEventListener("keydown",t,!0);var o=setInterval(function(){n()},50);return function(){clearInterval(o),e.removeEventListener("focus",n,!0),e.removeEventListener("keydown",t,!0),d||(E.current&&E.current.focus&&E.current.focus(),E.current=null)}}},[c,u,d,p,h]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),o.cloneElement(n,{ref:A}),o.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))}}}]);
|
|
2
|
+
//# sourceMappingURL=5197.53535ff4.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/5197.53535ff4.chunk.js","mappings":"wSAIWA,EAAS,CAElBC,KAAM,CACJC,QAAS,EACTC,SAAU,QACVC,MAAO,EACPC,OAAQ,EACRC,IAAK,EACLC,KAAM,EACNC,gBAAiB,qBACjBC,wBAAyB,eAI3BC,UAAW,CACTF,gBAAiB,gBAgCrB,QAzBkC,aAAiB,SAAwBG,EAAOC,GAChF,IAAIC,EAAmBF,EAAMD,UACzBA,OAAiC,IAArBG,GAAsCA,EAClDC,EAAOH,EAAMG,KACbC,GAAQ,OAAyBJ,EAAO,CAAC,YAAa,SAE1D,OAAOG,EAAoB,gBAAoB,OAAO,OAAS,CAC7D,eAAe,EACfF,IAAKA,GACJG,EAAO,CACRC,OAAO,OAAS,CAAC,EAAGhB,EAAOC,KAAMS,EAAYV,EAAOU,UAAY,CAAC,EAAGK,EAAMC,UACtE,IACR,GCTA,IAAIC,EAAiB,IAAIC,EAAA,EA8WzB,QA7UyB,aAAiB,SAAeC,EAASP,GAChE,IAAIQ,GAAQ,IAAAC,YACRV,GAAQ,IAAAW,eAAc,CACxBC,KAAM,WACNZ,OAAO,OAAS,CAAC,EAAGQ,GACpBC,MAAOA,IAGLI,EAAwBb,EAAMc,kBAC9BA,OAA8C,IAA1BD,EAAmC,EAAiBA,EACxEE,EAAgBf,EAAMe,cACtBC,EAAWhB,EAAMgB,SACjBC,EAAwBjB,EAAMkB,qBAC9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N,EAAQjN,UAAYiN,EAAQjN,QAAQmK,SAASxE,EAAIyH,gBACnDH,EAAQjN,QAAQsN,QALhBT,EAAuB7M,SAAU,EAOrC,EAEIyN,EAAY,SAAmB7L,IAE7B5D,GAAwBmE,KAAiC,IAAlBP,EAAM8L,SAK7C/H,EAAIyH,gBAAkBH,EAAQjN,UAGhC6M,EAAuB7M,SAAU,EAE7B4B,EAAM+L,SACRZ,EAAY/M,QAAQsN,QAEpBR,EAAc9M,QAAQsN,QAG5B,EAEA3H,EAAIkG,iBAAiB,QAAS0B,GAAS,GACvC5H,EAAIkG,iBAAiB,UAAW4B,GAAW,GAM3C,IAAIG,EAAWC,YAAY,WACzBN,GACF,EAAG,IACH,OAAO,WACLO,cAAcF,GACdjI,EAAIoG,oBAAoB,QAASwB,GAAS,GAC1C5H,EAAIoG,oBAAoB,UAAW0B,GAAW,GAEzCnP,IAKC0O,EAAchN,SAAWgN,EAAchN,QAAQsN,OACjDN,EAAchN,QAAQsN,QAGxBN,EAAchN,QAAU,KAE5B,CAhFA,CAiFF,EAAG,CAACpC,EAAkBI,EAAqBM,EAAqB6D,EAAWzF,IACvD,gBAAoB,WAAgB,KAAmB,gBAAoB,MAAO,CACpG4E,SAAU,EACV9E,IAAKsQ,EACL,YAAa,kBACE,eAAmBvP,EAAU,CAC5Cf,IAAKiD,IACU,gBAAoB,MAAO,CAC1C6B,SAAU,EACV9E,IAAKuQ,EACL,YAAa,gBAEjB,C","sources":["webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/Modal/Modal.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/utils/getScrollbarSize.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/Modal/ModalManager.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/Popover/Popover.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n zIndex: -1,\n position: 'fixed',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent'\n },\n\n /* Styles applied to the root element if `invisible={true}`. */\n invisible: {\n backgroundColor: 'transparent'\n }\n};\n/**\n * @ignore - internal component.\n */\n\nvar SimpleBackdrop = /*#__PURE__*/React.forwardRef(function SimpleBackdrop(props, ref) {\n var _props$invisible = props.invisible,\n invisible = _props$invisible === void 0 ? false : _props$invisible,\n open = props.open,\n other = _objectWithoutProperties(props, [\"invisible\", \"open\"]);\n\n return open ? /*#__PURE__*/React.createElement(\"div\", _extends({\n \"aria-hidden\": true,\n ref: ref\n }, other, {\n style: _extends({}, styles.root, invisible ? styles.invisible : {}, other.style)\n })) : null;\n});\nprocess.env.NODE_ENV !== \"production\" ? SimpleBackdrop.propTypes = {\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n */\n invisible: PropTypes.bool,\n\n /**\n * If `true`, the backdrop is open.\n */\n open: PropTypes.bool.isRequired\n} : void 0;\nexport default SimpleBackdrop;","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { getThemeProps, useTheme } from '@material-ui/styles';\nimport { elementAcceptingRef, HTMLElementType } from '@material-ui/utils';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nimport ownerDocument from '../utils/ownerDocument';\nimport Portal from '../Portal';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport zIndex from '../styles/zIndex';\nimport ModalManager, { ariaHidden } from './ModalManager';\nimport TrapFocus from '../Unstable_TrapFocus';\nimport SimpleBackdrop from './SimpleBackdrop';\n\nfunction getContainer(container) {\n container = typeof container === 'function' ? container() : container;\n return ReactDOM.findDOMNode(container);\n}\n\nfunction getHasTransition(props) {\n return props.children ? props.children.props.hasOwnProperty('in') : false;\n} // A modal manager used to track and manage the state of open Modals.\n// Modals don't open on the server so this won't conflict with concurrent requests.\n\n\nvar defaultManager = new ModalManager();\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'fixed',\n zIndex: theme.zIndex.modal,\n right: 0,\n bottom: 0,\n top: 0,\n left: 0\n },\n\n /* Styles applied to the root element if the `Modal` has exited. */\n hidden: {\n visibility: 'hidden'\n }\n };\n};\n/**\n * Modal is a lower-level construct that is leveraged by the following components:\n *\n * - [Dialog](/api/dialog/)\n * - [Drawer](/api/drawer/)\n * - [Menu](/api/menu/)\n * - [Popover](/api/popover/)\n *\n * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component\n * rather than directly using Modal.\n *\n * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).\n */\n\nvar Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {\n var theme = useTheme();\n var props = getThemeProps({\n name: 'MuiModal',\n props: _extends({}, inProps),\n theme: theme\n });\n\n var _props$BackdropCompon = props.BackdropComponent,\n BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop : _props$BackdropCompon,\n BackdropProps = props.BackdropProps,\n children = props.children,\n _props$closeAfterTran = props.closeAfterTransition,\n closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran,\n container = props.container,\n _props$disableAutoFoc = props.disableAutoFocus,\n disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,\n _props$disableBackdro = props.disableBackdropClick,\n disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro,\n _props$disableEnforce = props.disableEnforceFocus,\n disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce,\n _props$disableEscapeK = props.disableEscapeKeyDown,\n disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK,\n _props$disablePortal = props.disablePortal,\n disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal,\n _props$disableRestore = props.disableRestoreFocus,\n disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore,\n _props$disableScrollL = props.disableScrollLock,\n disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL,\n _props$hideBackdrop = props.hideBackdrop,\n hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop,\n _props$keepMounted = props.keepMounted,\n keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted,\n _props$manager = props.manager,\n manager = _props$manager === void 0 ? defaultManager : _props$manager,\n onBackdropClick = props.onBackdropClick,\n onClose = props.onClose,\n onEscapeKeyDown = props.onEscapeKeyDown,\n onRendered = props.onRendered,\n open = props.open,\n other = _objectWithoutProperties(props, [\"BackdropComponent\", \"BackdropProps\", \"children\", \"closeAfterTransition\", \"container\", \"disableAutoFocus\", \"disableBackdropClick\", \"disableEnforceFocus\", \"disableEscapeKeyDown\", \"disablePortal\", \"disableRestoreFocus\", \"disableScrollLock\", \"hideBackdrop\", \"keepMounted\", \"manager\", \"onBackdropClick\", \"onClose\", \"onEscapeKeyDown\", \"onRendered\", \"open\"]);\n\n var _React$useState = React.useState(true),\n exited = _React$useState[0],\n setExited = _React$useState[1];\n\n var modal = React.useRef({});\n var mountNodeRef = React.useRef(null);\n var modalRef = React.useRef(null);\n var handleRef = useForkRef(modalRef, ref);\n var hasTransition = getHasTransition(props);\n\n var getDoc = function getDoc() {\n return ownerDocument(mountNodeRef.current);\n };\n\n var getModal = function getModal() {\n modal.current.modalRef = modalRef.current;\n modal.current.mountNode = mountNodeRef.current;\n return modal.current;\n };\n\n var handleMounted = function handleMounted() {\n manager.mount(getModal(), {\n disableScrollLock: disableScrollLock\n }); // Fix a bug on Chrome where the scroll isn't initially 0.\n\n modalRef.current.scrollTop = 0;\n };\n\n var handleOpen = useEventCallback(function () {\n var resolvedContainer = getContainer(container) || getDoc().body;\n manager.add(getModal(), resolvedContainer); // The element was already mounted.\n\n if (modalRef.current) {\n handleMounted();\n }\n });\n var isTopModal = React.useCallback(function () {\n return manager.isTopModal(getModal());\n }, [manager]);\n var handlePortalRef = useEventCallback(function (node) {\n mountNodeRef.current = node;\n\n if (!node) {\n return;\n }\n\n if (onRendered) {\n onRendered();\n }\n\n if (open && isTopModal()) {\n handleMounted();\n } else {\n ariaHidden(modalRef.current, true);\n }\n });\n var handleClose = React.useCallback(function () {\n manager.remove(getModal());\n }, [manager]);\n React.useEffect(function () {\n return function () {\n handleClose();\n };\n }, [handleClose]);\n React.useEffect(function () {\n if (open) {\n handleOpen();\n } else if (!hasTransition || !closeAfterTransition) {\n handleClose();\n }\n }, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);\n\n if (!keepMounted && !open && (!hasTransition || exited)) {\n return null;\n }\n\n var handleEnter = function handleEnter() {\n setExited(false);\n };\n\n var handleExited = function handleExited() {\n setExited(true);\n\n if (closeAfterTransition) {\n handleClose();\n }\n };\n\n var handleBackdropClick = function handleBackdropClick(event) {\n if (event.target !== event.currentTarget) {\n return;\n }\n\n if (onBackdropClick) {\n onBackdropClick(event);\n }\n\n if (!disableBackdropClick && onClose) {\n onClose(event, 'backdropClick');\n }\n };\n\n var handleKeyDown = function handleKeyDown(event) {\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviours like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n if (event.key !== 'Escape' || !isTopModal()) {\n return;\n }\n\n if (onEscapeKeyDown) {\n onEscapeKeyDown(event);\n }\n\n if (!disableEscapeKeyDown) {\n // Swallow the event, in case someone is listening for the escape key on the body.\n event.stopPropagation();\n\n if (onClose) {\n onClose(event, 'escapeKeyDown');\n }\n }\n };\n\n var inlineStyle = styles(theme || {\n zIndex: zIndex\n });\n var childProps = {};\n\n if (children.props.tabIndex === undefined) {\n childProps.tabIndex = children.props.tabIndex || '-1';\n } // It's a Transition like component\n\n\n if (hasTransition) {\n childProps.onEnter = createChainedFunction(handleEnter, children.props.onEnter);\n childProps.onExited = createChainedFunction(handleExited, children.props.onExited);\n }\n\n return /*#__PURE__*/React.createElement(Portal, {\n ref: handlePortalRef,\n container: container,\n disablePortal: disablePortal\n }, /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: handleRef,\n onKeyDown: handleKeyDown,\n role: \"presentation\"\n }, other, {\n style: _extends({}, inlineStyle.root, !open && exited ? inlineStyle.hidden : {}, other.style)\n }), hideBackdrop ? null : /*#__PURE__*/React.createElement(BackdropComponent, _extends({\n open: open,\n onClick: handleBackdropClick\n }, BackdropProps)), /*#__PURE__*/React.createElement(TrapFocus, {\n disableEnforceFocus: disableEnforceFocus,\n disableAutoFocus: disableAutoFocus,\n disableRestoreFocus: disableRestoreFocus,\n getDoc: getDoc,\n isEnabled: isTopModal,\n open: open\n }, /*#__PURE__*/React.cloneElement(children, childProps))));\n});\nprocess.env.NODE_ENV !== \"production\" ? Modal.propTypes = {\n /**\n * A backdrop component. This prop enables custom backdrop rendering.\n */\n BackdropComponent: PropTypes.elementType,\n\n /**\n * Props applied to the [`Backdrop`](/api/backdrop/) element.\n */\n BackdropProps: PropTypes.object,\n\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n\n /**\n * When set to true the Modal waits until a nested Transition is completed before closing.\n */\n closeAfterTransition: PropTypes.bool,\n\n /**\n * A HTML element, component instance, or function that returns either.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),\n\n /**\n * If `true`, the modal will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any modal children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n */\n disableAutoFocus: PropTypes.bool,\n\n /**\n * If `true`, clicking the backdrop will not fire `onClose`.\n */\n disableBackdropClick: deprecatedPropType(PropTypes.bool, 'Use the onClose prop with the `reason` argument to filter the `backdropClick` events.'),\n\n /**\n * If `true`, the modal will not prevent focus from leaving the modal while open.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n */\n disableEnforceFocus: PropTypes.bool,\n\n /**\n * If `true`, hitting escape will not fire `onClose`.\n */\n disableEscapeKeyDown: PropTypes.bool,\n\n /**\n * Disable the portal behavior.\n * The children stay within it's parent DOM hierarchy.\n */\n disablePortal: PropTypes.bool,\n\n /**\n * If `true`, the modal will not restore focus to previously focused element once\n * modal is hidden.\n */\n disableRestoreFocus: PropTypes.bool,\n\n /**\n * Disable the scroll lock behavior.\n */\n disableScrollLock: PropTypes.bool,\n\n /**\n * If `true`, the backdrop is not rendered.\n */\n hideBackdrop: PropTypes.bool,\n\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Modal.\n */\n keepMounted: PropTypes.bool,\n\n /**\n * @ignore\n */\n manager: PropTypes.object,\n\n /**\n * Callback fired when the backdrop is clicked.\n */\n onBackdropClick: deprecatedPropType(PropTypes.func, 'Use the onClose prop with the `reason` argument to handle the `backdropClick` events.'),\n\n /**\n * Callback fired when the component requests to be closed.\n * The `reason` parameter can optionally be used to control the response to `onClose`.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired when the escape key is pressed,\n * `disableEscapeKeyDown` is false and the modal is in focus.\n */\n onEscapeKeyDown: deprecatedPropType(PropTypes.func, 'Use the onClose prop with the `reason` argument to handle the `escapeKeyDown` events.'),\n\n /**\n * Callback fired once the children has been mounted into the `container`.\n * It signals that the `open={true}` prop took effect.\n *\n * This prop will be removed in v5, the ref can be used instead.\n */\n onRendered: deprecatedPropType(PropTypes.func, 'Use the ref instead.'),\n\n /**\n * If `true`, the modal is open.\n */\n open: PropTypes.bool.isRequired\n} : void 0;\nexport default Modal;","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize() {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.width = '99px';\n scrollDiv.style.height = '99px';\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarSize;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport getScrollbarSize from '../utils/getScrollbarSize';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow'; // Is a vertical scrollbar displayed?\n\nfunction isOverflowing(container) {\n var doc = ownerDocument(container);\n\n if (doc.body === container) {\n return ownerWindow(doc).innerWidth > doc.documentElement.clientWidth;\n }\n\n return container.scrollHeight > container.clientHeight;\n}\n\nexport function ariaHidden(node, show) {\n if (show) {\n node.setAttribute('aria-hidden', 'true');\n } else {\n node.removeAttribute('aria-hidden');\n }\n}\n\nfunction getPaddingRight(node) {\n return parseInt(window.getComputedStyle(node)['padding-right'], 10) || 0;\n}\n\nfunction ariaHiddenSiblings(container, mountNode, currentNode) {\n var nodesToExclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var show = arguments.length > 4 ? arguments[4] : undefined;\n var blacklist = [mountNode, currentNode].concat(_toConsumableArray(nodesToExclude));\n var blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];\n [].forEach.call(container.children, function (node) {\n if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) {\n ariaHidden(node, show);\n }\n });\n}\n\nfunction findIndexOf(containerInfo, callback) {\n var idx = -1;\n containerInfo.some(function (item, index) {\n if (callback(item)) {\n idx = index;\n return true;\n }\n\n return false;\n });\n return idx;\n}\n\nfunction handleContainer(containerInfo, props) {\n var restoreStyle = [];\n var restorePaddings = [];\n var container = containerInfo.container;\n var fixedNodes;\n\n if (!props.disableScrollLock) {\n if (isOverflowing(container)) {\n // Compute the size before applying overflow hidden to avoid any scroll jumps.\n var scrollbarSize = getScrollbarSize();\n restoreStyle.push({\n value: container.style.paddingRight,\n key: 'padding-right',\n el: container\n }); // Use computed style, here to get the real padding to add our scrollbar width.\n\n container.style['padding-right'] = \"\".concat(getPaddingRight(container) + scrollbarSize, \"px\"); // .mui-fixed is a global helper.\n\n fixedNodes = ownerDocument(container).querySelectorAll('.mui-fixed');\n [].forEach.call(fixedNodes, function (node) {\n restorePaddings.push(node.style.paddingRight);\n node.style.paddingRight = \"\".concat(getPaddingRight(node) + scrollbarSize, \"px\");\n });\n } // Improve Gatsby support\n // https://css-tricks.com/snippets/css/force-vertical-scrollbar/\n\n\n var parent = container.parentElement;\n var scrollContainer = parent.nodeName === 'HTML' && window.getComputedStyle(parent)['overflow-y'] === 'scroll' ? parent : container; // Block the scroll even if no scrollbar is visible to account for mobile keyboard\n // screensize shrink.\n\n restoreStyle.push({\n value: scrollContainer.style.overflow,\n key: 'overflow',\n el: scrollContainer\n });\n scrollContainer.style.overflow = 'hidden';\n }\n\n var restore = function restore() {\n if (fixedNodes) {\n [].forEach.call(fixedNodes, function (node, i) {\n if (restorePaddings[i]) {\n node.style.paddingRight = restorePaddings[i];\n } else {\n node.style.removeProperty('padding-right');\n }\n });\n }\n\n restoreStyle.forEach(function (_ref) {\n var value = _ref.value,\n el = _ref.el,\n key = _ref.key;\n\n if (value) {\n el.style.setProperty(key, value);\n } else {\n el.style.removeProperty(key);\n }\n });\n };\n\n return restore;\n}\n\nfunction getHiddenSiblings(container) {\n var hiddenSiblings = [];\n [].forEach.call(container.children, function (node) {\n if (node.getAttribute && node.getAttribute('aria-hidden') === 'true') {\n hiddenSiblings.push(node);\n }\n });\n return hiddenSiblings;\n}\n/**\n * @ignore - do not document.\n *\n * Proper state management for containers and the modals in those containers.\n * Simplified, but inspired by react-overlay's ModalManager class.\n * Used by the Modal to ensure proper styling of containers.\n */\n\n\nvar ModalManager = /*#__PURE__*/function () {\n function ModalManager() {\n _classCallCheck(this, ModalManager);\n\n // this.modals[modalIndex] = modal\n this.modals = []; // this.containers[containerIndex] = {\n // modals: [],\n // container,\n // restore: null,\n // }\n\n this.containers = [];\n }\n\n _createClass(ModalManager, [{\n key: \"add\",\n value: function add(modal, container) {\n var modalIndex = this.modals.indexOf(modal);\n\n if (modalIndex !== -1) {\n return modalIndex;\n }\n\n modalIndex = this.modals.length;\n this.modals.push(modal); // If the modal we are adding is already in the DOM.\n\n if (modal.modalRef) {\n ariaHidden(modal.modalRef, false);\n }\n\n var hiddenSiblingNodes = getHiddenSiblings(container);\n ariaHiddenSiblings(container, modal.mountNode, modal.modalRef, hiddenSiblingNodes, true);\n var containerIndex = findIndexOf(this.containers, function (item) {\n return item.container === container;\n });\n\n if (containerIndex !== -1) {\n this.containers[containerIndex].modals.push(modal);\n return modalIndex;\n }\n\n this.containers.push({\n modals: [modal],\n container: container,\n restore: null,\n hiddenSiblingNodes: hiddenSiblingNodes\n });\n return modalIndex;\n }\n }, {\n key: \"mount\",\n value: function mount(modal, props) {\n var containerIndex = findIndexOf(this.containers, function (item) {\n return item.modals.indexOf(modal) !== -1;\n });\n var containerInfo = this.containers[containerIndex];\n\n if (!containerInfo.restore) {\n containerInfo.restore = handleContainer(containerInfo, props);\n }\n }\n }, {\n key: \"remove\",\n value: function remove(modal) {\n var modalIndex = this.modals.indexOf(modal);\n\n if (modalIndex === -1) {\n return modalIndex;\n }\n\n var containerIndex = findIndexOf(this.containers, function (item) {\n return item.modals.indexOf(modal) !== -1;\n });\n var containerInfo = this.containers[containerIndex];\n containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);\n this.modals.splice(modalIndex, 1); // If that was the last modal in a container, clean up the container.\n\n if (containerInfo.modals.length === 0) {\n // The modal might be closed before it had the chance to be mounted in the DOM.\n if (containerInfo.restore) {\n containerInfo.restore();\n }\n\n if (modal.modalRef) {\n // In case the modal wasn't in the DOM yet.\n ariaHidden(modal.modalRef, true);\n }\n\n ariaHiddenSiblings(containerInfo.container, modal.mountNode, modal.modalRef, containerInfo.hiddenSiblingNodes, false);\n this.containers.splice(containerIndex, 1);\n } else {\n // Otherwise make sure the next top modal is visible to a screen reader.\n var nextTop = containerInfo.modals[containerInfo.modals.length - 1]; // as soon as a modal is adding its modalRef is undefined. it can't set\n // aria-hidden because the dom element doesn't exist either\n // when modal was unmounted before modalRef gets null\n\n if (nextTop.modalRef) {\n ariaHidden(nextTop.modalRef, false);\n }\n }\n\n return modalIndex;\n }\n }, {\n key: \"isTopModal\",\n value: function isTopModal(modal) {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n }]);\n\n return ModalManager;\n}();\n\nexport { ModalManager as default };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport { chainPropTypes, elementTypeAcceptingRef, refType, HTMLElementType } from '@material-ui/utils';\nimport debounce from '../utils/debounce';\nimport clsx from 'clsx';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nimport withStyles from '../styles/withStyles';\nimport Modal from '../Modal';\nimport Grow from '../Grow';\nimport Paper from '../Paper';\nexport function getOffsetTop(rect, vertical) {\n var offset = 0;\n\n if (typeof vertical === 'number') {\n offset = vertical;\n } else if (vertical === 'center') {\n offset = rect.height / 2;\n } else if (vertical === 'bottom') {\n offset = rect.height;\n }\n\n return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n var offset = 0;\n\n if (typeof horizontal === 'number') {\n offset = horizontal;\n } else if (horizontal === 'center') {\n offset = rect.width / 2;\n } else if (horizontal === 'right') {\n offset = rect.width;\n }\n\n return offset;\n}\n\nfunction getTransformOriginValue(transformOrigin) {\n return [transformOrigin.horizontal, transformOrigin.vertical].map(function (n) {\n return typeof n === 'number' ? \"\".concat(n, \"px\") : n;\n }).join(' ');\n} // Sum the scrollTop between two elements.\n\n\nfunction getScrollParent(parent, child) {\n var element = child;\n var scrollTop = 0;\n\n while (element && element !== parent) {\n element = element.parentElement;\n scrollTop += element.scrollTop;\n }\n\n return scrollTop;\n}\n\nfunction getAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\n\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the `Paper` component. */\n paper: {\n position: 'absolute',\n overflowY: 'auto',\n overflowX: 'hidden',\n // So we see the popover when it's empty.\n // It's most likely on issue on userland.\n minWidth: 16,\n minHeight: 16,\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {\n var action = props.action,\n anchorEl = props.anchorEl,\n _props$anchorOrigin = props.anchorOrigin,\n anchorOrigin = _props$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$anchorOrigin,\n anchorPosition = props.anchorPosition,\n _props$anchorReferenc = props.anchorReference,\n anchorReference = _props$anchorReferenc === void 0 ? 'anchorEl' : _props$anchorReferenc,\n children = props.children,\n classes = props.classes,\n className = props.className,\n containerProp = props.container,\n _props$elevation = props.elevation,\n elevation = _props$elevation === void 0 ? 8 : _props$elevation,\n getContentAnchorEl = props.getContentAnchorEl,\n _props$marginThreshol = props.marginThreshold,\n marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n _props$transformOrigi = props.transformOrigin,\n transformOrigin = _props$transformOrigi === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$transformOrigi,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,\n _props$transitionDura = props.transitionDuration,\n transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$TransitionProp = props.TransitionProps,\n TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,\n other = _objectWithoutProperties(props, [\"action\", \"anchorEl\", \"anchorOrigin\", \"anchorPosition\", \"anchorReference\", \"children\", \"classes\", \"className\", \"container\", \"elevation\", \"getContentAnchorEl\", \"marginThreshold\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"open\", \"PaperProps\", \"transformOrigin\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"]);\n\n var paperRef = React.useRef(); // Returns the top/left offset of the position\n // to attach to on the anchor element (or body if none is provided)\n\n var getAnchorOffset = React.useCallback(function (contentAnchorOffset) {\n if (anchorReference === 'anchorPosition') {\n if (process.env.NODE_ENV !== 'production') {\n if (!anchorPosition) {\n console.error('Material-UI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference=\"anchorPosition\" />.');\n }\n }\n\n return anchorPosition;\n }\n\n var resolvedAnchorEl = getAnchorEl(anchorEl); // If an anchor element wasn't provided, just use the parent body element of this Popover\n\n var anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n var anchorRect = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'production') {\n var box = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n\n var anchorVertical = contentAnchorOffset === 0 ? anchorOrigin.vertical : 'center';\n return {\n top: anchorRect.top + getOffsetTop(anchorRect, anchorVertical),\n left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n };\n }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]); // Returns the vertical offset of inner content to anchor the transform on if provided\n\n var getContentAnchorOffset = React.useCallback(function (element) {\n var contentAnchorOffset = 0;\n\n if (getContentAnchorEl && anchorReference === 'anchorEl') {\n var contentAnchorEl = getContentAnchorEl(element);\n\n if (contentAnchorEl && element.contains(contentAnchorEl)) {\n var scrollTop = getScrollParent(element, contentAnchorEl);\n contentAnchorOffset = contentAnchorEl.offsetTop + contentAnchorEl.clientHeight / 2 - scrollTop || 0;\n } // != the default value\n\n\n if (process.env.NODE_ENV !== 'production') {\n if (anchorOrigin.vertical !== 'top') {\n console.error(['Material-UI: You can not change the default `anchorOrigin.vertical` value ', 'when also providing the `getContentAnchorEl` prop to the popover component.', 'Only use one of the two props.', 'Set `getContentAnchorEl` to `null | undefined`' + ' or leave `anchorOrigin.vertical` unchanged.'].join('\\n'));\n }\n }\n }\n\n return contentAnchorOffset;\n }, [anchorOrigin.vertical, anchorReference, getContentAnchorEl]); // Return the base transform origin using the element\n // and taking the content anchor offset into account if in use\n\n var getTransformOrigin = React.useCallback(function (elemRect) {\n var contentAnchorOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return {\n vertical: getOffsetTop(elemRect, transformOrigin.vertical) + contentAnchorOffset,\n horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n };\n }, [transformOrigin.horizontal, transformOrigin.vertical]);\n var getPositioningStyle = React.useCallback(function (element) {\n // Check if the parent has requested anchoring on an inner content node\n var contentAnchorOffset = getContentAnchorOffset(element);\n var elemRect = {\n width: element.offsetWidth,\n height: element.offsetHeight\n }; // Get the transform origin point on the element itself\n\n var elemTransformOrigin = getTransformOrigin(elemRect, contentAnchorOffset);\n\n if (anchorReference === 'none') {\n return {\n top: null,\n left: null,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n } // Get the offset of of the anchoring element\n\n\n var anchorOffset = getAnchorOffset(contentAnchorOffset); // Calculate element positioning\n\n var top = anchorOffset.top - elemTransformOrigin.vertical;\n var left = anchorOffset.left - elemTransformOrigin.horizontal;\n var bottom = top + elemRect.height;\n var right = left + elemRect.width; // Use the parent window of the anchorEl if provided\n\n var containerWindow = ownerWindow(getAnchorEl(anchorEl)); // Window thresholds taking required margin into account\n\n var heightThreshold = containerWindow.innerHeight - marginThreshold;\n var widthThreshold = containerWindow.innerWidth - marginThreshold; // Check if the vertical axis needs shifting\n\n if (top < marginThreshold) {\n var diff = top - marginThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n } else if (bottom > heightThreshold) {\n var _diff = bottom - heightThreshold;\n\n top -= _diff;\n elemTransformOrigin.vertical += _diff;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n console.error(['Material-UI: The popover component is too tall.', \"Some part of it can not be seen on the screen (\".concat(elemRect.height - heightThreshold, \"px).\"), 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n }\n } // Check if the horizontal axis needs shifting\n\n\n if (left < marginThreshold) {\n var _diff2 = left - marginThreshold;\n\n left -= _diff2;\n elemTransformOrigin.horizontal += _diff2;\n } else if (right > widthThreshold) {\n var _diff3 = right - widthThreshold;\n\n left -= _diff3;\n elemTransformOrigin.horizontal += _diff3;\n }\n\n return {\n top: \"\".concat(Math.round(top), \"px\"),\n left: \"\".concat(Math.round(left), \"px\"),\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }, [anchorEl, anchorReference, getAnchorOffset, getContentAnchorOffset, getTransformOrigin, marginThreshold]);\n var setPositioningStyles = React.useCallback(function () {\n var element = paperRef.current;\n\n if (!element) {\n return;\n }\n\n var positioning = getPositioningStyle(element);\n\n if (positioning.top !== null) {\n element.style.top = positioning.top;\n }\n\n if (positioning.left !== null) {\n element.style.left = positioning.left;\n }\n\n element.style.transformOrigin = positioning.transformOrigin;\n }, [getPositioningStyle]);\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n\n setPositioningStyles();\n };\n\n var handlePaperRef = React.useCallback(function (instance) {\n // #StrictMode ready\n paperRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n React.useEffect(function () {\n if (open) {\n setPositioningStyles();\n }\n });\n React.useImperativeHandle(action, function () {\n return open ? {\n updatePosition: function updatePosition() {\n setPositioningStyles();\n }\n } : null;\n }, [open, setPositioningStyles]);\n React.useEffect(function () {\n if (!open) {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n setPositioningStyles();\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [open, setPositioningStyles]);\n var transitionDuration = transitionDurationProp;\n\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n } // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n\n\n var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl(anchorEl)).body : undefined);\n return /*#__PURE__*/React.createElement(Modal, _extends({\n container: container,\n open: open,\n ref: ref,\n BackdropProps: {\n invisible: true\n },\n className: clsx(classes.root, className)\n }, other), /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: open,\n onEnter: onEnter,\n onEntered: onEntered,\n onExit: onExit,\n onExited: onExited,\n onExiting: onExiting,\n timeout: transitionDuration\n }, TransitionProps, {\n onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)\n }), /*#__PURE__*/React.createElement(Paper, _extends({\n elevation: elevation,\n ref: handlePaperRef\n }, PaperProps, {\n className: clsx(classes.paper, PaperProps.className)\n }), children)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A ref for imperative actions.\n * It currently only supports updatePosition() action.\n */\n action: refType,\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the popover.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), function (props) {\n if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n var resolvedAnchorEl = getAnchorEl(props.anchorEl);\n\n if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n var box = resolvedAnchorEl.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', \"It should be an Element instance but it's `\".concat(resolvedAnchorEl, \"` instead.\")].join('\\n'));\n }\n }\n\n return null;\n }),\n\n /**\n * This is the point on the anchor where the popover's\n * `anchorEl` will attach to. This is not used when the\n * anchorReference is 'anchorPosition'.\n *\n * Options:\n * vertical: [top, center, bottom];\n * horizontal: [left, center, right].\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * This is the position that may be used\n * to set the position of the popover.\n * The coordinates are relative to\n * the application's client area.\n */\n anchorPosition: PropTypes.shape({\n left: PropTypes.number.isRequired,\n top: PropTypes.number.isRequired\n }),\n\n /**\n * This determines which anchor prop to refer to to set\n * the position of the popover.\n */\n anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * A HTML element, component instance, or function that returns either.\n * The `container` will passed to the Modal component.\n *\n * By default, it uses the body of the anchorEl's top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),\n\n /**\n * The elevation of the popover.\n */\n elevation: PropTypes.number,\n\n /**\n * This function is called in order to retrieve the content anchor element.\n * It's the opposite of the `anchorEl` prop.\n * The content anchor element should be an element inside the popover.\n * It's used to correctly scroll and set the position of the popover.\n * The positioning strategy tries to make the content anchor element just above the\n * anchor element.\n */\n getContentAnchorEl: PropTypes.func,\n\n /**\n * Specifies how close to the edge of the window the popover can appear.\n */\n marginThreshold: PropTypes.number,\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEnter: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has entered.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntered: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntering: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired before the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExit: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has exited.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExited: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExiting: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * If `true`, the popover is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * Props applied to the [`Paper`](/api/paper/) element.\n */\n PaperProps: PropTypes\n /* @typescript-to-proptypes-ignore */\n .shape({\n component: elementTypeAcceptingRef\n }),\n\n /**\n * This is the point on the popover which\n * will attach to the anchor's origin.\n *\n * Options:\n * vertical: [top, center, bottom, x(px)];\n * horizontal: [left, center, right, x(px)].\n */\n transformOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * The component used for the transition.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Set to 'auto' to automatically calculate transition time based on height.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPopover'\n})(Popover);","/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex, camelcase */\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport ownerDocument from '../utils/ownerDocument';\nimport useForkRef from '../utils/useForkRef';\nimport { exactProp } from '@material-ui/utils';\n/**\n * Utility component that locks focus inside the component.\n */\n\nfunction Unstable_TrapFocus(props) {\n var children = props.children,\n _props$disableAutoFoc = props.disableAutoFocus,\n disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,\n _props$disableEnforce = props.disableEnforceFocus,\n disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce,\n _props$disableRestore = props.disableRestoreFocus,\n disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore,\n getDoc = props.getDoc,\n isEnabled = props.isEnabled,\n open = props.open;\n var ignoreNextEnforceFocus = React.useRef();\n var sentinelStart = React.useRef(null);\n var sentinelEnd = React.useRef(null);\n var nodeToRestore = React.useRef();\n var rootRef = React.useRef(null); // can be removed once we drop support for non ref forwarding class components\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n rootRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(children.ref, handleOwnRef);\n var prevOpenRef = React.useRef();\n React.useEffect(function () {\n prevOpenRef.current = open;\n }, [open]);\n\n if (!prevOpenRef.current && open && typeof window !== 'undefined') {\n // WARNING: Potentially unsafe in concurrent mode.\n // The way the read on `nodeToRestore` is setup could make this actually safe.\n // Say we render `open={false}` -> `open={true}` but never commit.\n // We have now written a state that wasn't committed. But no committed effect\n // will read this wrong value. We only read from `nodeToRestore` in effects\n // that were committed on `open={true}`\n // WARNING: Prevents the instance from being garbage collected. Should only\n // hold a weak ref.\n nodeToRestore.current = getDoc().activeElement;\n }\n\n React.useEffect(function () {\n if (!open) {\n return;\n }\n\n var doc = ownerDocument(rootRef.current); // We might render an empty child.\n\n if (!disableAutoFocus && rootRef.current && !rootRef.current.contains(doc.activeElement)) {\n if (!rootRef.current.hasAttribute('tabIndex')) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(['Material-UI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to \"-1\".'].join('\\n'));\n }\n\n rootRef.current.setAttribute('tabIndex', -1);\n }\n\n rootRef.current.focus();\n }\n\n var contain = function contain() {\n var rootElement = rootRef.current; // Cleanup functions are executed lazily in React 17.\n // Contain can be called between the component being unmounted and its cleanup function being run.\n\n if (rootElement === null) {\n return;\n }\n\n if (!doc.hasFocus() || disableEnforceFocus || !isEnabled() || ignoreNextEnforceFocus.current) {\n ignoreNextEnforceFocus.current = false;\n return;\n }\n\n if (rootRef.current && !rootRef.current.contains(doc.activeElement)) {\n rootRef.current.focus();\n }\n };\n\n var loopFocus = function loopFocus(event) {\n // 9 = Tab\n if (disableEnforceFocus || !isEnabled() || event.keyCode !== 9) {\n return;\n } // Make sure the next tab starts from the right place.\n\n\n if (doc.activeElement === rootRef.current) {\n // We need to ignore the next contain as\n // it will try to move the focus back to the rootRef element.\n ignoreNextEnforceFocus.current = true;\n\n if (event.shiftKey) {\n sentinelEnd.current.focus();\n } else {\n sentinelStart.current.focus();\n }\n }\n };\n\n doc.addEventListener('focus', contain, true);\n doc.addEventListener('keydown', loopFocus, true); // With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area\n // e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=559561.\n //\n // The whatwg spec defines how the browser should behave but does not explicitly mention any events:\n // https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.\n\n var interval = setInterval(function () {\n contain();\n }, 50);\n return function () {\n clearInterval(interval);\n doc.removeEventListener('focus', contain, true);\n doc.removeEventListener('keydown', loopFocus, true); // restoreLastFocus()\n\n if (!disableRestoreFocus) {\n // In IE 11 it is possible for document.activeElement to be null resulting\n // in nodeToRestore.current being null.\n // Not all elements in IE 11 have a focus method.\n // Once IE 11 support is dropped the focus() call can be unconditional.\n if (nodeToRestore.current && nodeToRestore.current.focus) {\n nodeToRestore.current.focus();\n }\n\n nodeToRestore.current = null;\n }\n };\n }, [disableAutoFocus, disableEnforceFocus, disableRestoreFocus, isEnabled, open]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n tabIndex: 0,\n ref: sentinelStart,\n \"data-test\": \"sentinelStart\"\n }), /*#__PURE__*/React.cloneElement(children, {\n ref: handleRef\n }), /*#__PURE__*/React.createElement(\"div\", {\n tabIndex: 0,\n ref: sentinelEnd,\n \"data-test\": \"sentinelEnd\"\n }));\n}\n\nprocess.env.NODE_ENV !== \"production\" ? Unstable_TrapFocus.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A single child content element.\n */\n children: PropTypes.node,\n\n /**\n * If `true`, the trap focus will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any trap focus children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the trap focus less\n * accessible to assistive technologies, like screen readers.\n */\n disableAutoFocus: PropTypes.bool,\n\n /**\n * If `true`, the trap focus will not prevent focus from leaving the trap focus while open.\n *\n * Generally this should never be set to `true` as it makes the trap focus less\n * accessible to assistive technologies, like screen readers.\n */\n disableEnforceFocus: PropTypes.bool,\n\n /**\n * If `true`, the trap focus will not restore focus to previously focused element once\n * trap focus is hidden.\n */\n disableRestoreFocus: PropTypes.bool,\n\n /**\n * Return the document to consider.\n * We use it to implement the restore focus between different browser documents.\n */\n getDoc: PropTypes.func.isRequired,\n\n /**\n * Do we still want to enforce the focus?\n * This prop helps nesting TrapFocus elements.\n */\n isEnabled: PropTypes.func.isRequired,\n\n /**\n * If `true`, focus will be locked.\n */\n open: PropTypes.bool.isRequired\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Unstable_TrapFocus['propTypes' + ''] = exactProp(Unstable_TrapFocus.propTypes);\n}\n\nexport default Unstable_TrapFocus;"],"names":["styles","root","zIndex","position","right","bottom","top","left","backgroundColor","WebkitTapHighlightColor","invisible","props","ref","_props$invisible","open","other","style","defaultManager","ModalManager","inProps","theme","useTheme","getThemeProps","name","_props$BackdropCompon","BackdropComponent","BackdropProps","children","_props$closeAfterTran","closeAfterTransition","container","_props$disableAutoFoc","disableAutoFocus","_props$disableBackdro","disableBackdropClick","_props$disableEnforce","disableEnforceFocus","_props$disableEscapeK","disableEscapeKeyDown","_props$disablePortal","disablePortal","_props$disableRestore","disableRestoreFocus","_props$disableScrollL","disableScrollLock","_props$hideBackdrop","hideBackdrop","_props$keepMounted","keepMounted","_props$manager","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","_React$useState","exited","setExited","modal","mountNodeRef","modalRef","handleRef","useForkRef","hasTransition","hasOwnProperty","getHasTransition","getDoc","ownerDocument","current","getModal","mountNode","handleMounted","mount","scrollTop","handleOpen","useEventCallback","resolvedContainer","getContainer","body","add","isTopModal","handlePortalRef","node","handleClose","remove","inlineStyle","hidden","visibility","childProps","undefined","tabIndex","onEnter","createChainedFunction","onExited","Portal","onKeyDown","event","key","stopPropagation","role","onClick","target","currentTarget","isEnabled","getScrollbarSize","scrollDiv","document","createElement","width","height","overflow","appendChild","scrollbarSize","offsetWidth","clientWidth","removeChild","ariaHidden","show","setAttribute","removeAttribute","getPaddingRight","parseInt","window","getComputedStyle","ariaHiddenSiblings","currentNode","nodesToExclude","arguments","length","blacklist","concat","blacklistTagNames","forEach","call","nodeType","indexOf","tagName","findIndexOf","containerInfo","callback","idx","some","item","index","this","modals","containers","value","modalIndex","push","hiddenSiblingNodes","hiddenSiblings","getAttribute","getHiddenSiblings","containerIndex","restore","fixedNodes","restoreStyle","restorePaddings","doc","innerWidth","documentElement","scrollHeight","clientHeight","isOverflowing","paddingRight","el","querySelectorAll","parent","parentElement","scrollContainer","nodeName","i","removeProperty","_ref","setProperty","handleContainer","splice","nextTop","getOffsetTop","rect","vertical","offset","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","map","n","join","getAnchorEl","anchorEl","Popover","action","_props$anchorOrigin","anchorOrigin","anchorPosition","_props$anchorReferenc","anchorReference","classes","className","containerProp","_props$elevation","elevation","getContentAnchorEl","_props$marginThreshol","marginThreshold","onEntered","onEntering","onExit","onExiting","_props$PaperProps","PaperProps","_props$transformOrigi","_props$TransitionComp","TransitionComponent","_props$transitionDura","transitionDuration","transitionDurationProp","_props$TransitionProp","TransitionProps","paperRef","getAnchorOffset","contentAnchorOffset","resolvedAnchorEl","anchorRect","getBoundingClientRect","anchorVertical","getContentAnchorOffset","element","contentAnchorEl","contains","child","getScrollParent","offsetTop","getTransformOrigin","elemRect","getPositioningStyle","offsetHeight","elemTransformOrigin","anchorOffset","containerWindow","heightThreshold","innerHeight","widthThreshold","diff","_diff","_diff2","_diff3","Math","round","setPositioningStyles","positioning","handlePaperRef","instance","updatePosition","handleResize","addEventListener","clear","removeEventListener","muiSupportAuto","appear","in","timeout","isAppearing","paper","overflowY","overflowX","minWidth","minHeight","maxWidth","maxHeight","outline","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","rootRef","handleOwnRef","prevOpenRef","activeElement","hasAttribute","focus","contain","hasFocus","loopFocus","keyCode","shiftKey","interval","setInterval","clearInterval"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[5289],{24170:(e,t,a)=>{a.d(t,{o:()=>l,q:()=>i});const l=e=>e&&e.trim()?e.length>253?"Must be 253 characters or less":/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/.test(e)?null:"Must be lowercase alphanumeric with hyphens, start and end with alphanumeric":"Name is required",i=e=>{if(!e)return null;try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?null:"Must be a valid HTTP or HTTPS URL"}catch{return"Must be a valid URL"}}},26997:(e,t,a)=>{a.d(t,{C:()=>D});var l=a(31085),i=a(95478),s=a(76891),n=a(61477),o=a(46805),r=a(10394),d=a(72501),c=a(42899),u=a(16249),m=a(34839),h=a(29365),x=a(67720),p=a(71677),A=a(26343),v=a(95061),j=a(29635),g=a(86901),y=a(30285),f=a(93453),b=a(64947),P=a(78467),C=a(58837),S=a(89031),T=a(18466),I=a(22097),N=a(70980),R=a(48351),k=a(4387),L=a(91638),B=a(86197),w=a(24170),z=a(97859);const W=(0,C.A)(e=>({asterisk:{color:"#f44336"},sectionHeader:{display:"flex",alignItems:"center",gap:e.spacing(.5),marginTop:e.spacing(2),marginBottom:e.spacing(1)},infoIcon:{fontSize:18,color:e.palette.text.secondary},tagChip:{marginRight:e.spacing(.5),marginBottom:e.spacing(.5)}})),D=({open:e,onClose:t,onSuccess:a,namespace:C,name:D})=>{var H,q;const F=W(),M=(0,I.useApi)(N.s),[U,E]=(0,i.useState)(!1),[$,K]=(0,i.useState)(""),[_,G]=(0,i.useState)(""),[V,O]=(0,i.useState)("v1"),[J,Q]=(0,i.useState)("Draft"),[X,Y]=(0,i.useState)("production"),[Z,ee]=(0,i.useState)("manual"),[te,ae]=(0,i.useState)([]),[le,ie]=(0,i.useState)(null),[se,ne]=(0,i.useState)(""),[oe,re]=(0,i.useState)(""),[de,ce]=(0,i.useState)(""),[ue,me]=(0,i.useState)(""),[he,xe]=(0,i.useState)(""),[pe,Ae]=(0,i.useState)(null),[ve,je]=(0,i.useState)(null),[ge,ye]=(0,i.useState)(""),[fe,be]=(0,i.useState)(!1),[Pe,Ce]=(0,i.useState)(null);(0,i.useEffect)(()=>{e&&C&&D&&(E(!0),ye(""),M.getApiProduct(C,D).then(e=>{var t,a,l,i,s,n,o,r,d,c;K(e.spec.displayName||""),G(e.spec.description||""),O(e.spec.version||"v1"),Q(e.spec.publishStatus||"Draft"),Y((null===(t=e.metadata.labels)||void 0===t?void 0:t.lifecycle)||"production"),ee(e.spec.approvalMode||"manual"),ae(e.spec.tags||[]),ie(e.spec.targetRef||null),re((null===(a=e.spec.contact)||void 0===a?void 0:a.email)||""),ce((null===(l=e.spec.contact)||void 0===l?void 0:l.team)||""),me((null===(i=e.spec.documentation)||void 0===i?void 0:i.docsURL)||""),xe((null===(s=e.spec.documentation)||void 0===s?void 0:s.openAPISpecURL)||"");const u=(null===(o=e.status)||void 0===o||null===(n=o.conditions)||void 0===n?void 0:n.find(e=>"PlanPolicyDiscovered"===e.type))||null;Ae({statusCondition:u,discoveredPlans:(null===(r=e.status)||void 0===r?void 0:r.discoveredPlans)||null});const m=(null===(c=e.status)||void 0===c||null===(d=c.conditions)||void 0===d?void 0:d.find(e=>"AuthPolicyDiscovered"===e.type))||null;var h;const x="True"===(null==m?void 0:m.status)?(e=>{const t=e.split(" ");return t.length>=3?t[2]:""})(null!==(h=m.message)&&void 0!==h?h:""):"";je({statusCondition:m,namespacedName:{name:x,namespace:e.metadata.namespace}}),Ce(null),E(!1)}).catch(e=>{ye(e.message||"Failed to load API product"),E(!1)}))},[e,C,D,M]),(0,i.useEffect)(()=>{e&&Ce(null)},[e]);const{value:Se,error:Te}=(0,L.A)(async()=>await M.getRateLimitPolicies(),[M,e]),Ie=le?(0,z.d)(null==Se?void 0:Se.items,C,le.name):null,Ne=null==Ie||null===(q=Ie.status)||void 0===q||null===(H=q.conditions)||void 0===H?void 0:H.find(e=>"Accepted"===e.type),Re={namespacedName:{namespace:null==Ie?void 0:Ie.metadata.namespace,name:null==Ie?void 0:Ie.metadata.name},statusCondition:Ne},ke=()=>{se.trim()&&!te.includes(se.trim())&&(ae([...te,se.trim()]),ne(""))};return(0,l.jsxs)(s.A,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,children:[(0,l.jsx)(n.A,{children:"Edit API Product"}),(0,l.jsxs)(o.A,{children:[ge&&(0,l.jsx)(R.A,{severity:"error",style:{marginBottom:16},children:ge}),Te&&(0,l.jsxs)(R.A,{severity:"error",style:{marginBottom:16},children:[(0,l.jsx)("strong",{children:"Failed to load RateLimitPolicies:"})," ",Te.message]}),U?(0,l.jsx)(r.A,{p:2,children:[...Array(8)].map((e,t)=>(0,l.jsx)(r.A,{mb:2,children:(0,l.jsx)(k.A,{variant:"text",width:"100%"})},t))}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.A,{className:F.sectionHeader,children:(0,l.jsx)(d.A,{variant:"subtitle1",children:(0,l.jsx)("strong",{children:"API product info"})})}),(0,l.jsxs)(c.A,{container:!0,spacing:2,children:[(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"API product name",value:$,onChange:e=>K(e.target.value),placeholder:"My API",helperText:"Give a unique name for your API product",margin:"normal",required:!0,disabled:fe,InputLabelProps:{classes:{asterisk:F.asterisk}}})}),(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"Resource name",value:D,disabled:!0,helperText:"Kubernetes resource name (immutable)",margin:"normal"})}),(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"Version",value:V,onChange:e=>O(e.target.value),placeholder:"v1",helperText:"Give a version to your API product",margin:"normal",disabled:fe})}),(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"Tag",value:se,onChange:e=>ne(e.target.value),onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),ke())},placeholder:"Add tag",helperText:"Add a tag to your API product",margin:"normal",disabled:fe,InputProps:{endAdornment:se?(0,l.jsx)(m.A,{position:"end",children:(0,l.jsx)(h.A,{size:"small",onClick:ke,disabled:fe,children:(0,l.jsx)(T.A,{fontSize:"small"})})}):void 0}})}),te.length>0&&(0,l.jsx)(c.A,{item:!0,xs:12,children:(0,l.jsx)(r.A,{display:"flex",flexWrap:"wrap",children:te.map(e=>(0,l.jsx)(x.A,{label:e,onDelete:fe?void 0:()=>{return t=e,void ae(te.filter(e=>e!==t));var t},size:"small",className:F.tagChip,disabled:fe},e))})}),(0,l.jsx)(c.A,{item:!0,xs:12,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"Description",value:_,onChange:e=>G(e.target.value),placeholder:"API description",margin:"normal",multiline:!0,rows:2,required:!0,disabled:fe,InputLabelProps:{classes:{asterisk:F.asterisk}}})})]}),(0,l.jsxs)(r.A,{className:F.sectionHeader,children:[(0,l.jsx)(d.A,{variant:"subtitle1",children:(0,l.jsx)("strong",{children:"Associated route"})}),(0,l.jsx)(p.Ay,{title:"The HTTPRoute this API product is associated with",children:(0,l.jsx)(S.A,{className:F.infoIcon})})]}),(0,l.jsxs)(c.A,{container:!0,spacing:2,children:[(0,l.jsx)(c.A,{item:!0,xs:12,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"OpenAPI Spec URL",value:he,onChange:e=>{return t=e.target.value,xe(t),void Ce((0,w.q)(t));var t},placeholder:"https://api.example.com/openapi.json",helperText:Pe||"Enter the full path to your API spec file",error:!!Pe,margin:"normal",disabled:fe})}),(0,l.jsx)(c.A,{item:!0,xs:12,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"Documentation URL",value:ue,onChange:e=>me(e.target.value),placeholder:"https://docs.example.com/api",helperText:"Link to external documentation for this API",margin:"normal",disabled:fe})}),le&&(0,l.jsx)(c.A,{item:!0,xs:12,children:(0,l.jsx)(u.A,{fullWidth:!0,label:"HTTPRoute",value:`${le.namespace||C}/${le.name}`,disabled:!0,helperText:"Target HTTPRoute (immutable)",margin:"normal"})})]}),le&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.A,{className:F.sectionHeader,children:[(0,l.jsx)(d.A,{variant:"subtitle1",children:(0,l.jsx)("strong",{children:"HTTPRoute policies"})}),(0,l.jsx)(p.Ay,{title:"Shows the associated policies and rate limit tiers for the HTTPRoute",children:(0,l.jsx)(S.A,{className:F.infoIcon})})]}),(0,l.jsx)(B.K,{planPolicy:pe,authPolicy:ve,rateLimitPolicy:Re,includeTopMargin:!1})]}),(0,l.jsxs)(r.A,{className:F.sectionHeader,children:[(0,l.jsx)(d.A,{variant:"subtitle1",children:(0,l.jsx)("strong",{children:"Lifecycle and Visibility"})}),(0,l.jsx)(p.Ay,{title:"Control the lifecycle state and catalog visibility of this API product",children:(0,l.jsx)(S.A,{className:F.infoIcon})})]}),(0,l.jsxs)(c.A,{container:!0,spacing:2,children:[(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsxs)(u.A,{fullWidth:!0,select:!0,label:"Lifecycle",value:X,onChange:e=>Y(e.target.value),margin:"normal",helperText:"API lifecycle state",disabled:fe,children:[(0,l.jsx)(A.A,{value:"experimental",children:"Experimental"}),(0,l.jsx)(A.A,{value:"production",children:"Production"}),(0,l.jsx)(A.A,{value:"deprecated",children:"Deprecated"}),(0,l.jsx)(A.A,{value:"retired",children:"Retired"})]})}),(0,l.jsx)(c.A,{item:!0,xs:6,children:(0,l.jsxs)(u.A,{fullWidth:!0,select:!0,label:"Publish Status",value:J,onChange:e=>Q(e.target.value),margin:"normal",helperText:"Controls catalog visibility",disabled:fe,children:[(0,l.jsx)(A.A,{value:"Draft",children:"Draft"}),(0,l.jsx)(A.A,{value:"Published",children:"Published"})]})})]}),(0,l.jsxs)(r.A,{className:F.sectionHeader,children:[(0,l.jsx)(d.A,{variant:"subtitle1",children:(0,l.jsx)("strong",{children:"API Key approval"})}),(0,l.jsx)(p.Ay,{title:"Choose how API key requests are handled for this product",children:(0,l.jsx)(S.A,{className:F.infoIcon})})]}),(0,l.jsx)(v.A,{component:"fieldset",disabled:fe,children:(0,l.jsxs)(j.A,{row:!0,value:Z,onChange:e=>ee(e.target.value),children:[(0,l.jsx)(g.A,{value:"manual",control:(0,l.jsx)(y.A,{color:"primary"}),label:(0,l.jsxs)(r.A,{children:[(0,l.jsx)(d.A,{variant:"body2",children:"Need manual approval"}),(0,l.jsx)(d.A,{variant:"caption",color:"textSecondary",children:"Requires approval for requesting this API"})]})}),(0,l.jsx)(g.A,{value:"automatic",control:(0,l.jsx)(y.A,{color:"primary"}),label:(0,l.jsxs)(r.A,{children:[(0,l.jsx)(d.A,{variant:"body2",children:"Automatic"}),(0,l.jsx)(d.A,{variant:"caption",color:"textSecondary",children:"Keys are created without need to be approved"})]})})]})})]})]}),(0,l.jsxs)(f.A,{children:[(0,l.jsx)(b.A,{onClick:t,disabled:fe,children:"Cancel"}),(0,l.jsx)(b.A,{onClick:async()=>{if(ye(""),be(!0),"retired"===X&&"Published"===J)return ye("Cannot publish a retired API product. Please set publish status to Draft."),void be(!1);try{const e={metadata:{labels:{lifecycle:X}},spec:{displayName:$,description:_,version:V,publishStatus:J,approvalMode:Z,tags:te,targetRef:le,...oe||de?{contact:{...oe&&{email:oe},...de&&{team:de}}}:{},...ue||he?{documentation:{...ue&&{docsURL:ue},...he&&{openAPISpecURL:he}}}:{}}};await M.updateApiProduct(C,D,e),a(),t()}catch(e){ye(e instanceof Error?e.message:String(e))}finally{be(!1)}},color:"primary",variant:"contained",disabled:fe||U||!$||!_||!!Pe,startIcon:fe?(0,l.jsx)(P.A,{size:16,color:"inherit"}):void 0,children:fe?"Saving...":"Save"})]})]})}},63221:(e,t,a)=>{a.d(t,{K:()=>A});var l=a(31085),i=a(95478),s=a(76891),n=a(61477),o=a(10394),r=a(46805),d=a(59461),c=a(72501),u=a(16249),m=a(93453),h=a(64947),x=a(78467),p=a(77225);const A=({open:e,title:t,description:a,confirmText:A,severity:v="normal",deleting:j=!1,onConfirm:g,onCancel:y})=>{const[f,b]=(0,i.useState)("");(0,i.useEffect)(()=>{e||b("")},[e]);const P="high"===v&&A,C=!P||f===A;return(0,l.jsxs)(s.A,{open:e,onClose:j?void 0:y,maxWidth:"sm",fullWidth:!0,children:[(0,l.jsxs)(n.A,{children:["high"===v&&(0,l.jsxs)(o.A,{display:"flex",alignItems:"center",style:{gap:8},children:[(0,l.jsx)(p.A,{color:"error"}),(0,l.jsx)("span",{children:t})]}),"high"!==v&&t]}),(0,l.jsxs)(r.A,{children:[(0,l.jsx)(d.A,{style:{whiteSpace:"pre-line"},children:a}),P&&(0,l.jsxs)(o.A,{mt:2,children:[(0,l.jsxs)(c.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:["Type ",(0,l.jsx)("strong",{children:A})," to confirm:"]}),(0,l.jsx)(u.A,{fullWidth:!0,variant:"outlined",size:"small",value:f,onChange:e=>b(e.target.value),disabled:j,autoFocus:!0,placeholder:A})]})]}),(0,l.jsxs)(m.A,{children:[(0,l.jsx)(h.A,{onClick:y,disabled:j,children:"Cancel"}),(0,l.jsx)(h.A,{onClick:()=>{C&&g()},color:"secondary",variant:"contained",disabled:j||!C,startIcon:j?(0,l.jsx)(x.A,{size:16,color:"inherit"}):void 0,children:j?"Deleting...":"Delete"})]})]})}},86197:(e,t,a)=>{a.d(t,{K:()=>d});var l=a(31085),i=(a(95478),a(10394)),s=a(42899),n=a(72501),o=a(67720),r=a(54917);const d=({planPolicy:e,authPolicy:t,rateLimitPolicy:a,includeTopMargin:d=!0})=>{var c,u,m,h;const x=(0,r.A)();return(0,l.jsx)(i.A,{mt:d?1:0,p:0,bgcolor:x.palette.background.default,children:(0,l.jsxs)(s.A,{container:!0,spacing:2,children:[(null==e?void 0:e.statusCondition)&&"True"===e.statusCondition.status||!(null==a?void 0:a.statusCondition)?(0,l.jsxs)(s.A,{item:!0,xs:12,md:6,children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Plan Policy"}),(null==e?void 0:e.statusCondition)?(0,l.jsxs)(i.A,{children:[(0,l.jsx)(o.A,{label:e.statusCondition.reason,size:"small",style:{backgroundColor:"True"===e.statusCondition.status?"#4caf50":"#ff9800",color:"#fff",marginBottom:8}}),e.discoveredPlans&&e.discoveredPlans.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{variant:"caption",display:"block",gutterBottom:!0,color:"textSecondary",style:{marginTop:8},children:"Available PlanPolicy Tiers:"}),(0,l.jsx)(i.A,{display:"flex",flexWrap:"wrap",mt:1,style:{gap:8},children:e.discoveredPlans.map((e,t)=>{var a,i,s;const n=(null===(a=e.limits)||void 0===a?void 0:a.daily)?`${e.limits.daily}/day`:(null===(i=e.limits)||void 0===i?void 0:i.monthly)?`${e.limits.monthly}/month`:(null===(s=e.limits)||void 0===s?void 0:s.yearly)?`${e.limits.yearly}/year`:"No limit";return(0,l.jsx)(o.A,{label:`${e.tier}: ${n}`,size:"small",variant:"outlined",color:"primary"},t)})})]})]}):(0,l.jsx)(o.A,{label:"NotFound",size:"small",style:{backgroundColor:"#ff9800",color:"#fff",marginBottom:8}})]}):(0,l.jsxs)(s.A,{item:!0,xs:12,md:6,children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"RateLimitPolicy"}),(null==a?void 0:a.statusCondition)?(0,l.jsxs)(i.A,{children:[(0,l.jsx)(o.A,{label:a.statusCondition.reason,size:"small",style:{backgroundColor:"True"===a.statusCondition.status?"#4caf50":"#ff9800",color:"#fff",marginBottom:8}}),"True"===a.statusCondition.status&&(0,l.jsxs)(s.A,{container:!0,spacing:2,children:[(0,l.jsx)(s.A,{item:!0,xs:12,md:6,children:(0,l.jsxs)(i.A,{children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Resource Name"}),(0,l.jsx)(n.A,{variant:"body2",children:(null===(c=a.namespacedName)||void 0===c?void 0:c.name)||"No RateLimit Policy name available"})]})}),(0,l.jsx)(s.A,{item:!0,xs:12,md:6,children:(0,l.jsxs)(i.A,{children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Resource Namespace"}),(0,l.jsx)(n.A,{variant:"body2",children:(null===(u=a.namespacedName)||void 0===u?void 0:u.namespace)||"No RateLimit Policy namespace available"})]})})]})]}):(0,l.jsx)(o.A,{label:"NotFound",size:"small",style:{backgroundColor:"#ff9800",color:"#fff",marginBottom:8}})]}),(0,l.jsxs)(s.A,{item:!0,xs:12,md:6,children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Auth Policy"}),(null==t?void 0:t.statusCondition)?(0,l.jsxs)(i.A,{children:[(0,l.jsx)(o.A,{label:t.statusCondition.reason,size:"small",style:{backgroundColor:"True"===t.statusCondition.status?"#4caf50":"#ff9800",color:"#fff",marginBottom:8}}),"True"===t.statusCondition.status&&(0,l.jsxs)(s.A,{container:!0,spacing:2,children:[(0,l.jsx)(s.A,{item:!0,xs:12,md:6,children:(0,l.jsxs)(i.A,{children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Resource Name"}),(0,l.jsx)(n.A,{variant:"body2",children:(null===(m=t.namespacedName)||void 0===m?void 0:m.name)||"No Auth Policy name available"})]})}),(0,l.jsx)(s.A,{item:!0,xs:12,md:6,children:(0,l.jsxs)(i.A,{children:[(0,l.jsx)(n.A,{variant:"body2",color:"textSecondary",gutterBottom:!0,children:"Resource Namespace"}),(0,l.jsx)(n.A,{variant:"body2",children:(null===(h=t.namespacedName)||void 0===h?void 0:h.namespace)||"No Auth Policy namespace available"})]})})]})]}):(0,l.jsx)(o.A,{label:"NotFound",size:"small",style:{backgroundColor:"#ff9800",color:"#fff",marginBottom:8}})]})]})})}},97859:(e,t,a)=>{a.d(t,{d:()=>l});const l=(e,t,a)=>e&&e.find(e=>{const l=e.spec.targetRef;var i;const s=null!==(i=null==l?void 0:l.namespace)&&void 0!==i?i:e.metadata.namespace;return"HTTPRoute"===(null==l?void 0:l.kind)&&(null==l?void 0:l.name)===a&&s===t})||null}}]);
|
|
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/D,SAAC7E,EAAAA,EAAUA,CAACH,QAAQ,Q,UACQ,QAAzB8C,EAAAA,EAAW5E,sBAAX4E,IAAAA,OAAAA,EAAAA,EAA2BnJ,OAAQ,wCAI1C,SAACyG,EAAAA,EAAIA,CAACE,MAAI,EAACC,GAAI,GAAI+E,GAAI,E,UACrB,UAAC9F,EAAAA,EAAGA,C,WACF,SAACW,EAAAA,EAAUA,CAACH,QAAQ,QAAQzH,MAAM,gBAAgByM,cAAY,E,SAAC,wBAG/D,SAAC7E,EAAAA,EAAUA,CAACH,QAAQ,Q,UACQ,QAAzB8C,EAAAA,EAAW5E,sBAAX4E,IAAAA,OAAAA,EAAAA,EAA2BpJ,YAAa,mDAQrD,SAACuI,EAAAA,EAAIA,CACHxB,MAAM,WACNkB,KAAK,QACLrC,MAAO,CACLkG,gBAAiB,UACjBjN,MAAO,OACPO,aAAc,a,mCC5MvB,MAAM4F,EAAoB,CAC/BuH,EACAC,EACAC,IAEKF,GAEEA,EAAS1I,KAAM6I,IACpB,MAAMC,EAAMD,EAAGxJ,KAAK1B,U,IACImL,EAAxB,MAAMC,EAAgC,QAAdD,EAAAA,aAAAA,EAAAA,EAAK3M,iBAAL2M,IAAAA,EAAAA,EAAkBD,EAAGvJ,SAASnD,UAEtD,MACgB,eAAd2M,aAAAA,EAAAA,EAAKE,QACLF,aAAAA,EAAAA,EAAK1M,QAASwM,GACdG,IAAoBJ,KATF,I","sources":["webpack://internal.plugin-kuadrant/./src/utils/validation.ts","webpack://internal.plugin-kuadrant/./src/components/EditAPIProductDialog/EditAPIProductDialog.tsx","webpack://internal.plugin-kuadrant/./src/components/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx","webpack://internal.plugin-kuadrant/./src/components/ApiProductPolicies/ApiProductPolicies.tsx","webpack://internal.plugin-kuadrant/./src/utils/policies.ts"],"sourcesContent":["// Kubernetes name validation\nexport const validateKubernetesName = (value: string): string | null => {\n if (!value || !value.trim()) {\n return 'Name is required';\n }\n if (value.length > 253) {\n return 'Must be 253 characters or less';\n }\n\n const dns1123Regex = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/;\n\n if (!dns1123Regex.test(value)) {\n return 'Must be lowercase alphanumeric with hyphens, start and end with alphanumeric';\n }\n\n return null;\n};\n\n// URL validation\nexport const validateURL = (value: string): string | null => {\n if (!value) {\n return null;\n }\n\n try {\n const url = new URL(value);\n if (!['http:', 'https:'].includes(url.protocol)) {\n return 'Must be a valid HTTP or HTTPS URL';\n }\n return null;\n } catch {\n return 'Must be a valid URL';\n }\n};\n","import React, { useState, useEffect } from 'react';\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n Button,\n TextField,\n Box,\n Typography,\n Chip,\n Grid,\n MenuItem,\n CircularProgress,\n makeStyles,\n FormControl,\n RadioGroup,\n FormControlLabel,\n Radio,\n Tooltip,\n IconButton,\n InputAdornment,\n} from '@material-ui/core';\nimport InfoOutlinedIcon from '@material-ui/icons/InfoOutlined';\nimport AddIcon from '@material-ui/icons/Add';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { kuadrantApiRef } from '../../api';\nimport { Alert, Skeleton } from '@material-ui/lab';\nimport useAsync from 'react-use/lib/useAsync';\nimport { ApiProductPolicies, PlanPoliciesProps, AuthPoliciesProps, RateLimitPoliciesProps } from '../ApiProductPolicies';\nimport { validateURL } from '../../utils/validation';\nimport { APIProduct } from \"../../types/api-management.ts\";\nimport { Lifecycle } from '../../types/api-management';\nimport { getPolicyForRoute } from '../../utils/policies';\n\nconst useStyles = makeStyles((theme) => ({\n asterisk: {\n color: '#f44336',\n },\n sectionHeader: {\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(0.5),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(1),\n },\n infoIcon: {\n fontSize: 18,\n color: theme.palette.text.secondary,\n },\n tagChip: {\n marginRight: theme.spacing(0.5),\n marginBottom: theme.spacing(0.5),\n },\n}));\n\ninterface EditAPIProductDialogProps {\n open: boolean;\n onClose: () => void;\n onSuccess: () => void;\n namespace: string;\n name: string;\n}\n\nexport const EditAPIProductDialog = ({ open, onClose, onSuccess, namespace, name }: EditAPIProductDialogProps) => {\n const classes = useStyles();\n const kuadrantApi = useApi(kuadrantApiRef);\n const [loading, setLoading] = useState(false);\n const [displayName, setDisplayName] = useState('');\n const [description, setDescription] = useState('');\n const [version, setVersion] = useState('v1');\n const [publishStatus, setPublishStatus] = useState<'Draft' | 'Published'>('Draft');\n const [lifecycle, setLifecycle] = useState<Lifecycle>('production');\n const [approvalMode, setApprovalMode] = useState<'automatic' | 'manual'>('manual');\n const [tags, setTags] = useState<string[]>([]);\n const [targetRef, setTargetRef] = useState<any>(null);\n const [tagInput, setTagInput] = useState('');\n const [contactEmail, setContactEmail] = useState('');\n const [contactTeam, setContactTeam] = useState('');\n const [docsURL, setDocsURL] = useState('');\n const [openAPISpec, setOpenAPISpec] = useState('');\n const [planPolicyProps, setPlanPoliciesProps] = useState<PlanPoliciesProps | null>(null);\n const [authPolicyProps, setAuthPolicyProps] = useState<AuthPoliciesProps | null>(null);\n const [error, setError] = useState('');\n const [saving, setSaving] = useState(false);\n const [openAPISpecError, setOpenAPISpecError] = useState<string | null>(null);\n\n // Load APIProduct data when dialog opens\n useEffect(() => {\n if (open && namespace && name) {\n setLoading(true);\n setError('');\n kuadrantApi.getApiProduct(namespace, name)\n .then(data => {\n setDisplayName(data.spec.displayName || '');\n setDescription(data.spec.description || '');\n setVersion(data.spec.version || 'v1');\n setPublishStatus(data.spec.publishStatus || 'Draft');\n setLifecycle(data.metadata.labels?.lifecycle as Lifecycle || 'production' as Lifecycle);\n setApprovalMode(data.spec.approvalMode || 'manual');\n setTags(data.spec.tags || []);\n setTargetRef(data.spec.targetRef || null);\n setContactEmail(data.spec.contact?.email || '');\n setContactTeam(data.spec.contact?.team || '');\n setDocsURL(data.spec.documentation?.docsURL || '');\n setOpenAPISpec(data.spec.documentation?.openAPISpecURL || '');\n const planPolicyCondition = data.status?.conditions?.find(\n (c: any) => c.type === \"PlanPolicyDiscovered\"\n ) || null;\n setPlanPoliciesProps({\n statusCondition: planPolicyCondition,\n discoveredPlans: data.status?.discoveredPlans || null,\n });\n const authPolicyCondition = data.status?.conditions?.find(\n (c: any) => c.type === \"AuthPolicyDiscovered\"\n ) || null;\n // Parse the auth policy name from the AuthPolicyDiscovered condition message\n // It's the only place to get the policy name without fetching all the policies.\n // Consider enhancing the developer portal controller to provide name in an structured way\n const parseNameFromMessage = (value: string) => {\n const parts = value.split(' ');\n return parts.length >= 3 ? parts[2] : '';\n };\n const authPolicyName = authPolicyCondition?.status === \"True\" ? parseNameFromMessage(authPolicyCondition.message ?? \"\") : \"\";\n setAuthPolicyProps({\n statusCondition: authPolicyCondition,\n namespacedName: {\n name: authPolicyName,\n namespace: data.metadata.namespace,\n },\n });\n setOpenAPISpecError(null);\n setLoading(false);\n })\n .catch(err => {\n setError(err.message || 'Failed to load API product');\n setLoading(false);\n });\n }\n }, [open, namespace, name, kuadrantApi]);\n\n useEffect(() => {\n if (open) {\n setOpenAPISpecError(null);\n }\n }, [open]);\n\n // load ratelimitpolicies\n const {\n value: rateLimitPolicies,\n error: rateLimitPoliciesError\n } = useAsync(async () => {\n return await kuadrantApi.getRateLimitPolicies();\n }, [kuadrantApi, open]);\n\n const selectedRateLimitPolicy = targetRef\n ? getPolicyForRoute(rateLimitPolicies?.items, namespace, targetRef.name)\n : null;\n const rateLimitPolicyAcceptedCondition = selectedRateLimitPolicy?.status?.conditions?.find(\n (c: any) => c.type === \"Accepted\"\n );\n const rateLimitPolicyProps: RateLimitPoliciesProps = {\n namespacedName: {\n namespace: selectedRateLimitPolicy?.metadata.namespace,\n name: selectedRateLimitPolicy?.metadata.name,\n },\n statusCondition: rateLimitPolicyAcceptedCondition,\n }\n\n const handleOpenAPISpecChange = (value: string) => {\n setOpenAPISpec(value);\n setOpenAPISpecError(validateURL(value));\n };\n\n const handleAddTag = () => {\n if (tagInput.trim() && !tags.includes(tagInput.trim())) {\n setTags([...tags, tagInput.trim()]);\n setTagInput('');\n }\n };\n\n const handleDeleteTag = (tagToDelete: string) => {\n setTags(tags.filter(tag => tag !== tagToDelete));\n };\n\n const handleSave = async () => {\n setError('');\n setSaving(true);\n\n // validate retired APIs cannot be published\n if (lifecycle === 'retired' && publishStatus === 'Published') {\n setError('Cannot publish a retired API product. Please set publish status to Draft.');\n setSaving(false);\n return;\n }\n\n try {\n const patch: Partial<APIProduct> = {\n // @ts-ignore We are applying a partial obj, not full\n metadata: {\n labels: {\n lifecycle,\n },\n },\n spec: {\n displayName,\n description,\n version,\n publishStatus,\n approvalMode,\n tags,\n targetRef,\n ...(contactEmail || contactTeam ? {\n contact: {\n ...(contactEmail && { email: contactEmail }),\n ...(contactTeam && { team: contactTeam }),\n },\n } : {}),\n ...(docsURL || openAPISpec ? {\n documentation: {\n ...(docsURL && { docsURL }),\n ...(openAPISpec && { openAPISpecURL: openAPISpec }),\n },\n } : {}),\n },\n };\n\n await kuadrantApi.updateApiProduct(namespace, name, patch);\n onSuccess();\n onClose();\n } catch (err) {\n setError(err instanceof Error ? err.message : String(err));\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"md\" fullWidth>\n <DialogTitle>Edit API Product</DialogTitle>\n <DialogContent>\n {error && (\n <Alert severity=\"error\" style={{ marginBottom: 16 }}>\n {error}\n </Alert>\n )}\n {rateLimitPoliciesError && (\n <Alert severity=\"error\" style={{ marginBottom: 16 }}>\n <strong>Failed to load RateLimitPolicies:</strong> {rateLimitPoliciesError.message}\n </Alert>\n )}\n {loading ? (\n <Box p={2}>\n {[...Array(8)].map((_, i) => (\n <Box key={i} mb={2}>\n <Skeleton variant=\"text\" width=\"100%\" />\n </Box>\n ))}\n </Box>\n ) : (\n <>\n {/* API product info section */}\n <Box className={classes.sectionHeader}>\n <Typography variant=\"subtitle1\"><strong>API product info</strong></Typography>\n </Box>\n <Grid container spacing={2}>\n <Grid item xs={6}>\n <TextField\n fullWidth\n label=\"API product name\"\n value={displayName}\n onChange={e => setDisplayName(e.target.value)}\n placeholder=\"My API\"\n helperText=\"Give a unique name for your API product\"\n margin=\"normal\"\n required\n disabled={saving}\n InputLabelProps={{\n classes: {\n asterisk: classes.asterisk,\n },\n }}\n />\n </Grid>\n <Grid item xs={6}>\n <TextField\n fullWidth\n label=\"Resource name\"\n value={name}\n disabled\n helperText=\"Kubernetes resource name (immutable)\"\n margin=\"normal\"\n />\n </Grid>\n <Grid item xs={6}>\n <TextField\n fullWidth\n label=\"Version\"\n value={version}\n onChange={e => setVersion(e.target.value)}\n placeholder=\"v1\"\n helperText=\"Give a version to your API product\"\n margin=\"normal\"\n disabled={saving}\n />\n </Grid>\n <Grid item xs={6}>\n <TextField\n fullWidth\n label=\"Tag\"\n value={tagInput}\n onChange={e => setTagInput(e.target.value)}\n onKeyPress={e => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleAddTag();\n }\n }}\n placeholder=\"Add tag\"\n helperText=\"Add a tag to your API product\"\n margin=\"normal\"\n disabled={saving}\n InputProps={{\n endAdornment: tagInput ? (\n <InputAdornment position=\"end\">\n <IconButton size=\"small\" onClick={handleAddTag} disabled={saving}>\n <AddIcon fontSize=\"small\" />\n </IconButton>\n </InputAdornment>\n ) : undefined,\n }}\n />\n </Grid>\n {tags.length > 0 && (\n <Grid item xs={12}>\n <Box display=\"flex\" flexWrap=\"wrap\">\n {tags.map(tag => (\n <Chip\n key={tag}\n label={tag}\n onDelete={saving ? undefined : () => handleDeleteTag(tag)}\n size=\"small\"\n className={classes.tagChip}\n disabled={saving}\n />\n ))}\n </Box>\n </Grid>\n )}\n <Grid item xs={12}>\n <TextField\n fullWidth\n label=\"Description\"\n value={description}\n onChange={e => setDescription(e.target.value)}\n placeholder=\"API description\"\n margin=\"normal\"\n multiline\n rows={2}\n required\n disabled={saving}\n InputLabelProps={{\n classes: {\n asterisk: classes.asterisk,\n },\n }}\n />\n </Grid>\n </Grid>\n\n {/* Associated route section */}\n <Box className={classes.sectionHeader}>\n <Typography variant=\"subtitle1\"><strong>Associated route</strong></Typography>\n <Tooltip title=\"The HTTPRoute this API product is associated with\">\n <InfoOutlinedIcon className={classes.infoIcon} />\n </Tooltip>\n </Box>\n <Grid container spacing={2}>\n <Grid item xs={12}>\n <TextField\n fullWidth\n label=\"OpenAPI Spec URL\"\n value={openAPISpec}\n onChange={e => handleOpenAPISpecChange(e.target.value)}\n placeholder=\"https://api.example.com/openapi.json\"\n helperText={openAPISpecError || \"Enter the full path to your API spec file\"}\n error={!!openAPISpecError}\n margin=\"normal\"\n disabled={saving}\n />\n </Grid>\n <Grid item xs={12}>\n <TextField\n fullWidth\n label=\"Documentation URL\"\n value={docsURL}\n onChange={e => setDocsURL(e.target.value)}\n placeholder=\"https://docs.example.com/api\"\n helperText=\"Link to external documentation for this API\"\n margin=\"normal\"\n disabled={saving}\n />\n </Grid>\n {targetRef && (\n <Grid item xs={12}>\n <TextField\n fullWidth\n label=\"HTTPRoute\"\n value={`${targetRef.namespace || namespace}/${targetRef.name}`}\n disabled\n helperText=\"Target HTTPRoute (immutable)\"\n margin=\"normal\"\n />\n </Grid>\n )}\n </Grid>\n\n {/* HTTPRoute policies section */}\n {targetRef && (\n <>\n <Box className={classes.sectionHeader}>\n <Typography variant=\"subtitle1\"><strong>HTTPRoute policies</strong></Typography>\n <Tooltip title=\"Shows the associated policies and rate limit tiers for the HTTPRoute\">\n <InfoOutlinedIcon className={classes.infoIcon} />\n </Tooltip>\n </Box>\n <ApiProductPolicies\n planPolicy={planPolicyProps}\n authPolicy={authPolicyProps}\n rateLimitPolicy={rateLimitPolicyProps}\n includeTopMargin={false}\n />\n </>\n )}\n\n {/* Lifecycle and Visibility section */}\n <Box className={classes.sectionHeader}>\n <Typography variant=\"subtitle1\"><strong>Lifecycle and Visibility</strong></Typography>\n <Tooltip title=\"Control the lifecycle state and catalog visibility of this API product\">\n <InfoOutlinedIcon className={classes.infoIcon} />\n </Tooltip>\n </Box>\n <Grid container spacing={2}>\n <Grid item xs={6}>\n <TextField\n fullWidth\n select\n label=\"Lifecycle\"\n value={lifecycle}\n onChange={e => setLifecycle(e.target.value as Lifecycle)}\n margin=\"normal\"\n helperText=\"API lifecycle state\"\n disabled={saving}\n >\n <MenuItem value=\"experimental\">Experimental</MenuItem>\n <MenuItem value=\"production\">Production</MenuItem>\n <MenuItem value=\"deprecated\">Deprecated</MenuItem>\n <MenuItem value=\"retired\">Retired</MenuItem>\n </TextField>\n </Grid>\n <Grid item xs={6}>\n <TextField\n fullWidth\n select\n label=\"Publish Status\"\n value={publishStatus}\n onChange={e => setPublishStatus(e.target.value as 'Draft' | 'Published')}\n margin=\"normal\"\n helperText=\"Controls catalog visibility\"\n disabled={saving}\n >\n <MenuItem value=\"Draft\">Draft</MenuItem>\n <MenuItem value=\"Published\">Published</MenuItem>\n </TextField>\n </Grid>\n </Grid>\n\n {/* API Key approval section */}\n <Box className={classes.sectionHeader}>\n <Typography variant=\"subtitle1\"><strong>API Key approval</strong></Typography>\n <Tooltip title=\"Choose how API key requests are handled for this product\">\n <InfoOutlinedIcon className={classes.infoIcon} />\n </Tooltip>\n </Box>\n <FormControl component=\"fieldset\" disabled={saving}>\n <RadioGroup\n row\n value={approvalMode}\n onChange={e => setApprovalMode(e.target.value as 'automatic' | 'manual')}\n >\n <FormControlLabel\n value=\"manual\"\n control={<Radio color=\"primary\" />}\n label={\n <Box>\n <Typography variant=\"body2\">Need manual approval</Typography>\n <Typography variant=\"caption\" color=\"textSecondary\">\n Requires approval for requesting this API\n </Typography>\n </Box>\n }\n />\n <FormControlLabel\n value=\"automatic\"\n control={<Radio color=\"primary\" />}\n label={\n <Box>\n <Typography variant=\"body2\">Automatic</Typography>\n <Typography variant=\"caption\" color=\"textSecondary\">\n Keys are created without need to be approved\n </Typography>\n </Box>\n }\n />\n </RadioGroup>\n </FormControl>\n </>\n )}\n </DialogContent>\n <DialogActions>\n <Button onClick={onClose} disabled={saving}>Cancel</Button>\n <Button\n onClick={handleSave}\n color=\"primary\"\n variant=\"contained\"\n disabled={saving || loading || !displayName || !description || !!openAPISpecError}\n startIcon={saving ? <CircularProgress size={16} color=\"inherit\" /> : undefined}\n >\n {saving ? 'Saving...' : 'Save'}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n","import React, { useState, useEffect } from 'react';\nimport {\n Dialog,\n DialogTitle,\n DialogContent,\n DialogContentText,\n DialogActions,\n Button,\n TextField,\n Typography,\n Box,\n CircularProgress,\n} from '@material-ui/core';\nimport WarningIcon from '@material-ui/icons/Warning';\n\nexport interface ConfirmDeleteDialogProps {\n open: boolean;\n title: string;\n description: string;\n // for dangerous deletes, require typing this text to confirm\n confirmText?: string;\n // severity affects styling - 'high' shows warning icon and requires text confirmation\n severity?: 'normal' | 'high';\n deleting?: boolean;\n onConfirm: () => void;\n onCancel: () => void;\n}\n\nexport const ConfirmDeleteDialog = ({\n open,\n title,\n description,\n confirmText,\n severity = 'normal',\n deleting = false,\n onConfirm,\n onCancel,\n}: ConfirmDeleteDialogProps) => {\n const [inputValue, setInputValue] = useState('');\n\n // reset input when dialog opens/closes\n useEffect(() => {\n if (!open) {\n setInputValue('');\n }\n }, [open]);\n\n const requiresTextConfirmation = severity === 'high' && confirmText;\n const canConfirm = requiresTextConfirmation ? inputValue === confirmText : true;\n\n const handleConfirm = () => {\n if (canConfirm) {\n onConfirm();\n }\n };\n\n return (\n <Dialog\n open={open}\n onClose={deleting ? undefined : onCancel}\n maxWidth=\"sm\"\n fullWidth\n >\n <DialogTitle>\n {severity === 'high' && (\n <Box display=\"flex\" alignItems=\"center\" style={{ gap: 8 }}>\n <WarningIcon color=\"error\" />\n <span>{title}</span>\n </Box>\n )}\n {severity !== 'high' && title}\n </DialogTitle>\n <DialogContent>\n <DialogContentText style={{ whiteSpace: 'pre-line' }}>\n {description}\n </DialogContentText>\n {requiresTextConfirmation && (\n <Box mt={2}>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Type <strong>{confirmText}</strong> to confirm:\n </Typography>\n <TextField\n fullWidth\n variant=\"outlined\"\n size=\"small\"\n value={inputValue}\n onChange={e => setInputValue(e.target.value)}\n disabled={deleting}\n autoFocus\n placeholder={confirmText}\n />\n </Box>\n )}\n </DialogContent>\n <DialogActions>\n <Button onClick={onCancel} disabled={deleting}>\n Cancel\n </Button>\n <Button\n onClick={handleConfirm}\n color=\"secondary\"\n variant=\"contained\"\n disabled={deleting || !canConfirm}\n startIcon={deleting ? <CircularProgress size={16} color=\"inherit\" /> : undefined}\n >\n {deleting ? 'Deleting...' : 'Delete'}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n","import React from 'react';\nimport { Box, Grid, Typography, Chip, useTheme } from '@material-ui/core';\nimport { StatusCondition } from \"../../types/api-management\";\n\nexport type PlanPoliciesProps = {\n statusCondition: StatusCondition | null;\n discoveredPlans: Array<{\n tier: string;\n limits?: {\n daily?: number;\n monthly?: number;\n yearly?: number;\n };\n }> | null;\n};\n\nexport type AuthPoliciesProps = {\n namespacedName: {\n name: string | null;\n namespace: string | null;\n } | null;\n statusCondition: StatusCondition | null;\n};\n\nexport type RateLimitPoliciesProps = {\n namespacedName: {\n name: string | null;\n namespace: string | null;\n } | null;\n statusCondition: StatusCondition | null;\n};\n\ninterface ApiProductPoliciesProps {\n planPolicy: PlanPoliciesProps | null;\n authPolicy: AuthPoliciesProps | null;\n rateLimitPolicy: RateLimitPoliciesProps | null;\n includeTopMargin?: boolean;\n}\n// Displays APIProduct policies\nexport const ApiProductPolicies: React.FC<ApiProductPoliciesProps> = ({\n planPolicy,\n authPolicy,\n rateLimitPolicy,\n includeTopMargin = true,\n}) => {\n const theme = useTheme();\n\n return (\n <Box\n mt={includeTopMargin ? 1 : 0}\n p={0}\n bgcolor={theme.palette.background.default}\n >\n <Grid container spacing={2}>\n {/* planpolicy chip shown when either plan exist or ratelimitpolicy does not exist*/}\n {((planPolicy?.statusCondition && planPolicy.statusCondition.status === \"True\") || !rateLimitPolicy?.statusCondition) ? (\n <Grid item xs={12} md={6}>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Plan Policy\n </Typography>\n {planPolicy?.statusCondition ? (\n <Box>\n <Chip\n label={planPolicy.statusCondition.reason}\n size=\"small\"\n style={{\n backgroundColor: planPolicy.statusCondition.status === \"True\" ? \"#4caf50\" : \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n {planPolicy.discoveredPlans && planPolicy.discoveredPlans.length > 0 && (\n <>\n <Typography\n variant=\"caption\"\n display=\"block\"\n gutterBottom\n color=\"textSecondary\"\n style={{ marginTop: 8 }}\n >\n Available PlanPolicy Tiers:\n </Typography>\n <Box display=\"flex\" flexWrap=\"wrap\" mt={1} style={{ gap: 8 }}>\n {planPolicy.discoveredPlans.map((plan: any, idx: number) => {\n const limitText = plan.limits?.daily\n ? `${plan.limits.daily}/day`\n : plan.limits?.monthly\n ? `${plan.limits.monthly}/month`\n : plan.limits?.yearly\n ? `${plan.limits.yearly}/year`\n : 'No limit';\n return (\n <Chip\n key={idx}\n label={`${plan.tier}: ${limitText}`}\n size=\"small\"\n variant=\"outlined\"\n color=\"primary\"\n />\n );\n })}\n </Box>\n </>\n )}\n </Box>\n ) : (\n <Chip\n label=\"NotFound\"\n size=\"small\"\n style={{\n backgroundColor: \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n )}\n </Grid>\n ) : (\n <Grid item xs={12} md={6}>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n RateLimitPolicy\n </Typography>\n {rateLimitPolicy?.statusCondition ? (\n <Box>\n <Chip\n label={rateLimitPolicy.statusCondition.reason}\n size=\"small\"\n style={{\n backgroundColor: rateLimitPolicy.statusCondition.status === \"True\" ? \"#4caf50\" : \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n {rateLimitPolicy.statusCondition.status === \"True\" && (\n <Grid container spacing={2}>\n <Grid item xs={12} md={6}>\n <Box>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Resource Name\n </Typography>\n <Typography variant=\"body2\">\n {rateLimitPolicy.namespacedName?.name || \"No RateLimit Policy name available\"}\n </Typography>\n </Box>\n </Grid>\n <Grid item xs={12} md={6}>\n <Box>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Resource Namespace\n </Typography>\n <Typography variant=\"body2\">\n {rateLimitPolicy.namespacedName?.namespace || \"No RateLimit Policy namespace available\"}\n </Typography>\n </Box>\n </Grid>\n </Grid>\n )}\n </Box>\n ) : (\n <Chip\n label=\"NotFound\"\n size=\"small\"\n style={{\n backgroundColor: \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n )}\n </Grid>\n )}\n <Grid item xs={12} md={6}>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Auth Policy\n </Typography>\n {authPolicy?.statusCondition ? (\n <Box>\n <Chip\n label={authPolicy.statusCondition.reason}\n size=\"small\"\n style={{\n backgroundColor: authPolicy.statusCondition.status === \"True\" ? \"#4caf50\" : \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n {authPolicy.statusCondition.status === \"True\" && (\n <Grid container spacing={2}>\n <Grid item xs={12} md={6}>\n <Box>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Resource Name\n </Typography>\n <Typography variant=\"body2\">\n {authPolicy.namespacedName?.name || \"No Auth Policy name available\"}\n </Typography>\n </Box>\n </Grid>\n <Grid item xs={12} md={6}>\n <Box>\n <Typography variant=\"body2\" color=\"textSecondary\" gutterBottom>\n Resource Namespace\n </Typography>\n <Typography variant=\"body2\">\n {authPolicy.namespacedName?.namespace || \"No Auth Policy namespace available\"}\n </Typography>\n </Box>\n </Grid>\n </Grid>\n )}\n </Box>\n ) : (\n <Chip\n label=\"NotFound\"\n size=\"small\"\n style={{\n backgroundColor: \"#ff9800\",\n color: \"#fff\",\n marginBottom: 8,\n }}\n />\n )}\n </Grid>\n </Grid>\n </Box>\n );\n}\n","/**\n * Find a policy that targets a specific APIProduct\n *\n * @param policies - Array of policies with targetRef\n * @param routeNamespace - Namespace of the target HTTPRoute\n * @param routeName - Name of the target HTTPRoute\n * @returns The matching policy or null if not found\n *\n * @remarks\n * The function matches a policy if:\n * - The targetRef.kind is 'HTTPRoute'\n * - The targetRef.name matches the routeName parameter\n * - The targetRef.namespace (or policy's metadata.namespace if not specified) matches the routeNamespace parameter\n */\nexport const getPolicyForRoute = (\n policies: any[] | undefined,\n routeNamespace: string,\n routeName: string,\n) => {\n if (!policies) return null;\n\n return policies.find((pp: any) => {\n const ref = pp.spec.targetRef;\n const targetNamespace = ref?.namespace ?? pp.metadata.namespace;\n\n return (\n ref?.kind === 'HTTPRoute' &&\n ref?.name === routeName &&\n targetNamespace === routeNamespace\n );\n }) || null;\n};\n"],"names":["validateKubernetesName","value","trim","length","test","validateURL","url","URL","includes","protocol","useStyles","makeStyles","theme","asterisk","color","sectionHeader","display","alignItems","gap","spacing","marginTop","marginBottom","infoIcon","fontSize","palette","text","secondary","tagChip","marginRight","EditAPIProductDialog","open","onClose","onSuccess","namespace","name","selectedRateLimitPolicy","classes","kuadrantApi","useApi","kuadrantApiRef","loading","setLoading","useState","displayName","setDisplayName","description","setDescription","version","setVersion","publishStatus","setPublishStatus","lifecycle","setLifecycle","approvalMode","setApprovalMode","tags","setTags","targetRef","setTargetRef","tagInput","setTagInput","contactEmail","setContactEmail","contactTeam","setContactTeam","docsURL","setDocsURL","openAPISpec","setOpenAPISpec","planPolicyProps","setPlanPoliciesProps","authPolicyProps","setAuthPolicyProps","error","setError","saving","setSaving","openAPISpecError","setOpenAPISpecError","useEffect","getApiProduct","then","data","spec","metadata","labels","contact","email","team","documentation","openAPISpecURL","planPolicyCondition","status","conditions","find","c","type","statusCondition","discoveredPlans","authPolicyCondition","authPolicyName","parts","split","parseNameFromMessage","message","namespacedName","catch","err","rateLimitPolicies","rateLimitPoliciesError","useAsync","async","getRateLimitPolicies","getPolicyForRoute","items","rateLimitPolicyAcceptedCondition","rateLimitPolicyProps","handleAddTag","Dialog","maxWidth","fullWidth","DialogTitle","DialogContent","Alert","severity","style","strong","Box","p","Array","map","_","i","mb","Skeleton","variant","width","className","Typography","Grid","container","item","xs","TextField","label","onChange","e","target","placeholder","helperText","margin","required","disabled","InputLabelProps","onKeyPress","key","preventDefault","InputProps","endAdornment","InputAdornment","position","IconButton","size","onClick","AddIcon","undefined","flexWrap","tag","Chip","onDelete","handleDeleteTag","tagToDelete","filter","multiline","rows","Tooltip","title","InfoOutlinedIcon","handleOpenAPISpecChange","ApiProductPolicies","planPolicy","authPolicy","rateLimitPolicy","includeTopMargin","select","MenuItem","FormControl","component","RadioGroup","row","FormControlLabel","control","Radio","DialogActions","Button","patch","updateApiProduct","Error","String","startIcon","CircularProgress","ConfirmDeleteDialog","confirmText","deleting","onConfirm","onCancel","inputValue","setInputValue","requiresTextConfirmation","canConfirm","WarningIcon","span","DialogContentText","whiteSpace","mt","gutterBottom","autoFocus","useTheme","bgcolor","background","default","md","reason","backgroundColor","plan","idx","limitText","limits","daily","monthly","yearly","tier","policies","routeNamespace","routeName","pp","ref","targetNamespace","kind"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[5943],{8017:(e,t,n)=>{function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,{gr:()=>a,lq:()=>o})},16249:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(63301),s=n(73481),d=n(35963),c=n(48543),u=n(95061),p=n(51253),m=n(81215),f=n(7031),v={standard:l.A,filled:s.A,outlined:d.A},h=a.forwardRef(function(e,t){var n=e.autoComplete,l=e.autoFocus,s=void 0!==l&&l,d=e.children,f=e.classes,h=e.className,b=e.color,g=void 0===b?"primary":b,A=e.defaultValue,y=e.disabled,x=void 0!==y&&y,w=e.error,E=void 0!==w&&w,C=e.FormHelperTextProps,k=e.fullWidth,S=void 0!==k&&k,R=e.helperText,D=e.hiddenLabel,N=e.id,M=e.InputLabelProps,W=e.inputProps,P=e.InputProps,I=e.inputRef,F=e.label,B=e.multiline,T=void 0!==B&&B,L=e.name,$=e.onBlur,O=e.onChange,H=e.onFocus,q=e.placeholder,K=e.required,z=void 0!==K&&K,V=e.rows,U=e.rowsMax,_=e.maxRows,j=e.minRows,X=e.select,Y=void 0!==X&&X,G=e.SelectProps,Z=e.type,J=e.value,Q=e.variant,ee=void 0===Q?"standard":Q,te=(0,o.A)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ne={};if("outlined"===ee&&(M&&void 0!==M.shrink&&(ne.notched=M.shrink),F)){var re,oe=null!==(re=null==M?void 0:M.required)&&void 0!==re?re:z;ne.label=a.createElement(a.Fragment,null,F,oe&&" *")}Y&&(G&&G.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ae=R&&N?"".concat(N,"-helper-text"):void 0,ie=F&&N?"".concat(N,"-label"):void 0,le=v[ee],se=a.createElement(le,(0,r.A)({"aria-describedby":ae,autoComplete:n,autoFocus:s,defaultValue:A,fullWidth:S,multiline:T,name:L,rows:V,rowsMax:U,maxRows:_,minRows:j,type:Z,value:J,id:N,inputRef:I,onBlur:$,onChange:O,onFocus:H,placeholder:q,inputProps:W},ne,P));return a.createElement(u.A,(0,r.A)({className:(0,i.A)(f.root,h),disabled:x,error:E,fullWidth:S,hiddenLabel:D,ref:t,required:z,color:g,variant:ee},te),F&&a.createElement(c.A,(0,r.A)({htmlFor:N,id:ie},M),F),Y?a.createElement(m.A,(0,r.A)({"aria-describedby":ae,id:N,labelId:ie,value:J,input:se},G),d):se,R&&a.createElement(p.A,(0,r.A)({id:ae},C),R))});const b=(0,f.A)({root:{}},{name:"MuiTextField"})(h)},18171:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(89575),o=n(90689),a=n(39850),i=n(95478),l=n(79392),s=n(43457),d=n(54917),c=n(41188),u=n(19878),p={entering:{opacity:1},entered:{opacity:1}},m={enter:s.p0.enteringScreen,exit:s.p0.leavingScreen};const f=i.forwardRef(function(e,t){var n=e.children,s=e.disableStrictModeCompat,f=void 0!==s&&s,v=e.in,h=e.onEnter,b=e.onEntered,g=e.onEntering,A=e.onExit,y=e.onExited,x=e.onExiting,w=e.style,E=e.TransitionComponent,C=void 0===E?l.Ay:E,k=e.timeout,S=void 0===k?m:k,R=(0,a.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),D=(0,d.A)(),N=D.unstable_strictMode&&!f,M=i.useRef(null),W=(0,u.A)(n.ref,t),P=(0,u.A)(N?M:void 0,W),I=function(e){return function(t,n){if(e){var r=N?[M.current,t]:[t,n],a=(0,o.A)(r,2),i=a[0],l=a[1];void 0===l?e(i):e(i,l)}}},F=I(g),B=I(function(e,t){(0,c.q)(e);var n=(0,c.c)({style:w,timeout:S},{mode:"enter"});e.style.webkitTransition=D.transitions.create("opacity",n),e.style.transition=D.transitions.create("opacity",n),h&&h(e,t)}),T=I(b),L=I(x),$=I(function(e){var t=(0,c.c)({style:w,timeout:S},{mode:"exit"});e.style.webkitTransition=D.transitions.create("opacity",t),e.style.transition=D.transitions.create("opacity",t),A&&A(e)}),O=I(y);return i.createElement(C,(0,r.A)({appear:!0,in:v,nodeRef:N?M:void 0,onEnter:B,onEntered:T,onEntering:F,onExit:$,onExited:O,onExiting:L,timeout:S},R),function(e,t){return i.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},p[e],w,n.props.style),ref:P},t))})})},26343:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(39850),o=n(24586),a=n(89575),i=n(95478),l=n(36274),s=n(7031),d=n(8109),c=i.forwardRef(function(e,t){var n,o=e.classes,s=e.className,c=e.component,u=void 0===c?"li":c,p=e.disableGutters,m=void 0!==p&&p,f=e.ListItemClasses,v=e.role,h=void 0===v?"menuitem":v,b=e.selected,g=e.tabIndex,A=(0,r.A)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),i.createElement(d.A,(0,a.A)({button:!0,role:h,tabIndex:n,component:u,selected:b,disableGutters:m,classes:(0,a.A)({dense:o.dense},f),className:(0,l.A)(o.root,s,b&&o.selected,!m&&o.gutters),ref:t},A))});const u=(0,s.A)(function(e){return{root:(0,a.A)({},e.typography.body1,(0,o.A)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,a.A)({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(c)},28233:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(89575),o=n(39850),a=n(95478),i=(n(26948),n(40484)),l=n(76446),s=n(58007),d=n(18977),c=n(19878);function u(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function p(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function f(e,t,n,r,o,a){for(var i=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(i)return;i=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&m(l,a)&&!s)return void l.focus();l=o(e,l,n)}}var v="undefined"==typeof window?a.useEffect:a.useLayoutEffect;const h=a.forwardRef(function(e,t){var n=e.actions,h=e.autoFocus,b=void 0!==h&&h,g=e.autoFocusItem,A=void 0!==g&&g,y=e.children,x=e.className,w=e.disabledItemsFocusable,E=void 0!==w&&w,C=e.disableListWrap,k=void 0!==C&&C,S=e.onKeyDown,R=e.variant,D=void 0===R?"selectedMenu":R,N=(0,o.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),M=a.useRef(null),W=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});v(function(){b&&M.current.focus()},[b]),a.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(e,t){var n=!M.current.style.width;if(e.clientHeight<M.current.clientHeight&&n){var r="".concat((0,d.A)(!0),"px");M.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,M.current.style.width="calc(100% + ".concat(r,")")}return M.current}}},[]);var P=a.useCallback(function(e){M.current=i.findDOMNode(e)},[]),I=(0,c.A)(P,t),F=-1;a.Children.forEach(y,function(e,t){a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===D&&e.props.selected||-1===F)&&(F=t))});var B=a.Children.map(y,function(e,t){if(t===F){var n={};return A&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===D&&(n.tabIndex=0),a.cloneElement(e,n)}return e});return a.createElement(s.A,(0,r.A)({role:"menu",ref:I,className:x,onKeyDown:function(e){var t=M.current,n=e.key,r=(0,l.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),f(t,r,k,E,u);else if("ArrowUp"===n)e.preventDefault(),f(t,r,k,E,p);else if("Home"===n)e.preventDefault(),f(t,null,k,E,u);else if("End"===n)e.preventDefault(),f(t,null,k,E,p);else if(1===n.length){var o=W.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);var s=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(s||f(t,r,!1,E,u,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:b?0:-1},N),B)})},31468:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(95478);const o=(0,n(38483).A)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},35963:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(41857),s=n(24586),d=n(7031),c=n(54917),u=n(11192),p=a.forwardRef(function(e,t){e.children;var n=e.classes,l=e.className,d=e.label,p=e.labelWidth,m=e.notched,f=e.style,v=(0,o.A)(e,["children","classes","className","label","labelWidth","notched","style"]),h="rtl"===(0,c.A)().direction?"right":"left";if(void 0!==d)return a.createElement("fieldset",(0,r.A)({"aria-hidden":!0,className:(0,i.A)(n.root,l),ref:t,style:f},v),a.createElement("legend",{className:(0,i.A)(n.legendLabelled,m&&n.legendNotched)},d?a.createElement("span",null,d):a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var b=p>0?.75*p+8:.01;return a.createElement("fieldset",(0,r.A)({"aria-hidden":!0,style:(0,r.A)((0,s.A)({},"padding".concat((0,u.A)(h)),8),f),className:(0,i.A)(n.root,l),ref:t},v),a.createElement("legend",{className:n.legend,style:{width:m?b:.01}},a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))});const m=(0,d.A)(function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(p);var f=a.forwardRef(function(e,t){var n=e.classes,s=e.fullWidth,d=void 0!==s&&s,c=e.inputComponent,u=void 0===c?"input":c,p=e.label,f=e.labelWidth,v=void 0===f?0:f,h=e.multiline,b=void 0!==h&&h,g=e.notched,A=e.type,y=void 0===A?"text":A,x=(0,o.A)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return a.createElement(l.A,(0,r.A)({renderSuffix:function(e){return a.createElement(m,{className:n.notchedOutline,label:p,labelWidth:v,notched:void 0!==g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.A)({},n,{root:(0,i.A)(n.root,n.underline),notchedOutline:null}),fullWidth:d,inputComponent:u,multiline:b,ref:t,type:y},x))});f.muiName="Input";const v=(0,d.A)(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(f)},37757:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(89575),o=n(39850),a=n(95478),i=(n(26948),n(36274)),l=n(7031),s=n(55197),d=n(28233),c=n(40484),u=n(93371),p=n(54917),m={vertical:"top",horizontal:"right"},f={vertical:"top",horizontal:"left"},v=a.forwardRef(function(e,t){var n=e.autoFocus,l=void 0===n||n,v=e.children,h=e.classes,b=e.disableAutoFocusItem,g=void 0!==b&&b,A=e.MenuListProps,y=void 0===A?{}:A,x=e.onClose,w=e.onEntering,E=e.open,C=e.PaperProps,k=void 0===C?{}:C,S=e.PopoverClasses,R=e.transitionDuration,D=void 0===R?"auto":R,N=e.TransitionProps,M=(N=void 0===N?{}:N).onEntering,W=(0,o.A)(N,["onEntering"]),P=e.variant,I=void 0===P?"selectedMenu":P,F=(0,o.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),B=(0,p.A)(),T=l&&!g&&E,L=a.useRef(null),$=a.useRef(null),O=-1;a.Children.map(v,function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==I&&e.props.selected||-1===O)&&(O=t))});var H=a.Children.map(v,function(e,t){return t===O?a.cloneElement(e,{ref:function(t){$.current=c.findDOMNode(t),(0,u.A)(e.ref,t)}}):e});return a.createElement(s.Ay,(0,r.A)({getContentAnchorEl:function(){return $.current},classes:S,onClose:x,TransitionProps:(0,r.A)({onEntering:function(e,t){L.current&&L.current.adjustStyleForScrollbar(e,B),w&&w(e,t),M&&M(e,t)}},W),anchorOrigin:"rtl"===B.direction?m:f,transformOrigin:"rtl"===B.direction?m:f,PaperProps:(0,r.A)({},k,{classes:(0,r.A)({},k.classes,{root:h.paper})}),open:E,ref:t,transitionDuration:D},F),a.createElement(d.A,(0,r.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),x&&x(e,"tabKeyDown"))},actions:L,autoFocus:l&&(-1===O||g),autoFocusItem:T,variant:I},y,{className:(0,i.A)(h.list,y.className)}),H))});const h=(0,l.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(v)},41682:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(95478),o=n(42062);function a(){return r.useContext(o.A)}},41857:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(39850),o=n(89575),a=n(87447),i=n(95478),l=n(36274),s=n(96836),d=n(42062),c=n(7031),u=n(11192),p=n(19878),m=n(51479),f=n(8017),v="undefined"==typeof window?i.useEffect:i.useLayoutEffect,h=i.forwardRef(function(e,t){var n=e["aria-describedby"],c=e.autoComplete,h=e.autoFocus,b=e.classes,g=e.className,A=(e.color,e.defaultValue),y=e.disabled,x=e.endAdornment,w=(e.error,e.fullWidth),E=void 0!==w&&w,C=e.id,k=e.inputComponent,S=void 0===k?"input":k,R=e.inputProps,D=void 0===R?{}:R,N=e.inputRef,M=(e.margin,e.multiline),W=void 0!==M&&M,P=e.name,I=e.onBlur,F=e.onChange,B=e.onClick,T=e.onFocus,L=e.onKeyDown,$=e.onKeyUp,O=e.placeholder,H=e.readOnly,q=e.renderSuffix,K=e.rows,z=e.rowsMax,V=e.rowsMin,U=e.maxRows,_=e.minRows,j=e.startAdornment,X=e.type,Y=void 0===X?"text":X,G=e.value,Z=(0,r.A)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),J=null!=D.value?D.value:G,Q=i.useRef(null!=J).current,ee=i.useRef(),te=i.useCallback(function(e){},[]),ne=(0,p.A)(D.ref,te),re=(0,p.A)(N,ne),oe=(0,p.A)(ee,re),ae=i.useState(!1),ie=ae[0],le=ae[1],se=(0,d.t)(),de=(0,s.A)({props:e,muiFormControl:se,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});de.focused=se?se.focused:ie,i.useEffect(function(){!se&&y&&ie&&(le(!1),I&&I())},[se,y,ie,I]);var ce=se&&se.onFilled,ue=se&&se.onEmpty,pe=i.useCallback(function(e){(0,f.lq)(e)?ce&&ce():ue&&ue()},[ce,ue]);v(function(){Q&&pe({value:J})},[J,pe,Q]),i.useEffect(function(){pe(ee.current)},[]);var me=S,fe=(0,o.A)({},D,{ref:oe});return"string"!=typeof me?fe=(0,o.A)({inputRef:oe,type:Y},fe,{ref:null}):W?!K||U||_||z||V?(fe=(0,o.A)({minRows:K||_,rowsMax:z,maxRows:U},fe),me=m.A):me="textarea":fe=(0,o.A)({type:Y},fe),i.useEffect(function(){se&&se.setAdornedStart(Boolean(j))},[se,j]),i.createElement("div",(0,o.A)({className:(0,l.A)(b.root,b["color".concat((0,u.A)(de.color||"primary"))],g,de.disabled&&b.disabled,de.error&&b.error,E&&b.fullWidth,de.focused&&b.focused,se&&b.formControl,W&&b.multiline,j&&b.adornedStart,x&&b.adornedEnd,"dense"===de.margin&&b.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),B&&B(e)},ref:t},Z),j,i.createElement(d.A.Provider,{value:null},i.createElement(me,(0,o.A)({"aria-invalid":de.error,"aria-describedby":n,autoComplete:c,autoFocus:h,defaultValue:A,disabled:de.disabled,id:C,onAnimationStart:function(e){pe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:P,placeholder:O,readOnly:H,required:de.required,rows:K,value:J,onKeyDown:L,onKeyUp:$},fe,{className:(0,l.A)(b.input,D.className,de.disabled&&b.disabled,W&&b.inputMultiline,de.hiddenLabel&&b.inputHiddenLabel,j&&b.inputAdornedStart,x&&b.inputAdornedEnd,"search"===Y&&b.inputTypeSearch,"dense"===de.margin&&b.inputMarginDense),onBlur:function(e){I&&I(e),D.onBlur&&D.onBlur(e),se&&se.onBlur?se.onBlur(e):le(!1)},onChange:function(e){if(!Q){var t=e.target||ee.current;if(null==t)throw new Error((0,a.A)(1));pe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];D.onChange&&D.onChange.apply(D,[e].concat(r)),F&&F.apply(void 0,[e].concat(r))},onFocus:function(e){de.disabled?e.stopPropagation():(T&&T(e),D.onFocus&&D.onFocus(e),se&&se.onFocus?se.onFocus(e):le(!0))}}))),x,q?q((0,o.A)({},de,{startAdornment:j})):null)});const b=(0,c.A)(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,o.A)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(h)},42062:(e,t,n)=>{n.d(t,{A:()=>i,t:()=>a});var r=n(95478),o=r.createContext();function a(){return r.useContext(o)}const i=o},42141:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(11192);const s=a.forwardRef(function(e,t){var n=e.classes,s=e.className,d=e.disabled,c=e.IconComponent,u=e.inputRef,p=e.variant,m=void 0===p?"standard":p,f=(0,o.A)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return a.createElement(a.Fragment,null,a.createElement("select",(0,r.A)({className:(0,i.A)(n.root,n.select,n[m],s,d&&n.disabled),disabled:d,ref:u||t},f)),e.multiple?null:a.createElement(c,{className:(0,i.A)(n.icon,n["icon".concat((0,l.A)(m))],d&&n.disabled)}))})},46805:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(7031),s=a.forwardRef(function(e,t){var n=e.classes,l=e.className,s=e.dividers,d=void 0!==s&&s,c=(0,o.A)(e,["classes","className","dividers"]);return a.createElement("div",(0,r.A)({className:(0,i.A)(n.root,l,d&&n.dividers),ref:t},c))});const d=(0,l.A)(function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},{name:"MuiDialogContent"})(s)},48543:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(96836),s=n(41682),d=n(7031),c=n(91761),u=a.forwardRef(function(e,t){var n=e.classes,d=e.className,u=e.disableAnimation,p=void 0!==u&&u,m=(e.margin,e.shrink),f=(e.variant,(0,o.A)(e,["classes","className","disableAnimation","margin","shrink","variant"])),v=(0,s.A)(),h=m;void 0===h&&v&&(h=v.filled||v.focused||v.adornedStart);var b=(0,l.A)({props:e,muiFormControl:v,states:["margin","variant"]});return a.createElement(c.A,(0,r.A)({"data-shrink":h,className:(0,i.A)(n.root,d,v&&n.formControl,!p&&n.animated,h&&n.shrink,"dense"===b.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[b.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},f))});const p=(0,d.A)(function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},{name:"MuiInputLabel"})(u)},51253:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(39850),o=n(89575),a=n(95478),i=n(36274),l=n(96836),s=n(41682),d=n(7031),c=a.forwardRef(function(e,t){var n=e.children,d=e.classes,c=e.className,u=e.component,p=void 0===u?"p":u,m=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,r.A)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),f=(0,s.A)(),v=(0,l.A)({props:e,muiFormControl:f,states:["variant","margin","disabled","error","filled","focused","required"]});return a.createElement(p,(0,o.A)({className:(0,i.A)(d.root,("filled"===v.variant||"outlined"===v.variant)&&d.contained,c,v.disabled&&d.disabled,v.error&&d.error,v.filled&&d.filled,v.focused&&d.focused,v.required&&d.required,"dense"===v.margin&&d.marginDense),ref:t},m)," "===n?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)});const u=(0,d.A)(function(e){return{root:(0,o.A)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},{name:"MuiFormHelperText"})(c)},51479:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(89575),o=n(39850),a=n(95478),i=n(2589),l=n(19878);function s(e,t){return parseInt(e[t],10)||0}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,c={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const u=a.forwardRef(function(e,t){var n=e.onChange,u=e.rows,p=e.rowsMax,m=e.rowsMin,f=e.maxRows,v=e.minRows,h=void 0===v?1:v,b=e.style,g=e.value,A=(0,o.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),y=f||p,x=u||m||h,w=a.useRef(null!=g).current,E=a.useRef(null),C=(0,l.A)(t,E),k=a.useRef(null),S=a.useRef(0),R=a.useState({}),D=R[0],N=R[1],M=a.useCallback(function(){var t=E.current,n=window.getComputedStyle(t),r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=s(n,"padding-bottom")+s(n,"padding-top"),i=s(n,"border-bottom-width")+s(n,"border-top-width"),l=r.scrollHeight-a;r.value="x";var d=r.scrollHeight-a,c=l;x&&(c=Math.max(Number(x)*d,c)),y&&(c=Math.min(Number(y)*d,c));var u=(c=Math.max(c,d))+("border-box"===o?a+i:0),p=Math.abs(c-l)<=1;N(function(e){return S.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==p)?(S.current+=1,{overflow:p,outerHeightStyle:u}):e})},[y,x,e.placeholder]);return a.useEffect(function(){var e=(0,i.A)(function(){S.current=0,M()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[M]),d(function(){M()}),a.useEffect(function(){S.current=0},[g]),a.createElement(a.Fragment,null,a.createElement("textarea",(0,r.A)({value:g,onChange:function(e){S.current=0,w||M(),n&&n(e)},ref:C,rows:x,style:(0,r.A)({height:D.outerHeightStyle,overflow:D.overflow?"hidden":null},b)},A)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,r.A)({},c,b)}))})},61477:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(7031),s=n(72501),d=a.forwardRef(function(e,t){var n=e.children,l=e.classes,d=e.className,c=e.disableTypography,u=void 0!==c&&c,p=(0,o.A)(e,["children","classes","className","disableTypography"]);return a.createElement("div",(0,r.A)({className:(0,i.A)(l.root,d),ref:t},p),u?n:a.createElement(s.A,{component:"h2",variant:"h6"},n))});const c=(0,l.A)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(d)},63301:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(41857),s=n(7031),d=a.forwardRef(function(e,t){var n=e.disableUnderline,s=e.classes,d=e.fullWidth,c=void 0!==d&&d,u=e.inputComponent,p=void 0===u?"input":u,m=e.multiline,f=void 0!==m&&m,v=e.type,h=void 0===v?"text":v,b=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(l.A,(0,r.A)({classes:(0,r.A)({},s,{root:(0,i.A)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:p,multiline:f,ref:t,type:h},b))});d.muiName="Input";const c=(0,s.A)(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(d)},64163:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(7031),s=n(18171),d=a.forwardRef(function(e,t){var n=e.children,l=e.classes,d=e.className,c=e.invisible,u=void 0!==c&&c,p=e.open,m=e.transitionDuration,f=e.TransitionComponent,v=void 0===f?s.A:f,h=(0,o.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return a.createElement(v,(0,r.A)({in:p,timeout:m},h),a.createElement("div",{className:(0,i.A)(l.root,d,u&&l.invisible),"aria-hidden":!0,ref:t},n))});const c=(0,l.A)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(d)},73481:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(41857),s=n(7031),d=a.forwardRef(function(e,t){var n=e.disableUnderline,s=e.classes,d=e.fullWidth,c=void 0!==d&&d,u=e.inputComponent,p=void 0===u?"input":u,m=e.multiline,f=void 0!==m&&m,v=e.type,h=void 0===v?"text":v,b=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(l.A,(0,r.A)({classes:(0,r.A)({},s,{root:(0,i.A)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:p,multiline:f,ref:t,type:h},b))});d.muiName="Input";const c=(0,s.A)(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(d)},73745:(e,t,n)=>{n.d(t,{A:()=>v,R:()=>p});var r=n(89575),o=n(39850),a=n(95478),i=n(42141),l=n(7031),s=n(96836),d=n(41682),c=n(31468),u=n(63301),p=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},m=a.createElement(u.A,null),f=a.forwardRef(function(e,t){var n=e.children,l=e.classes,u=e.IconComponent,p=void 0===u?c.A:u,f=e.input,v=void 0===f?m:f,h=e.inputProps,b=(e.variant,(0,o.A)(e,["children","classes","IconComponent","input","inputProps","variant"])),g=(0,d.A)(),A=(0,s.A)({props:e,muiFormControl:g,states:["variant"]});return a.cloneElement(v,(0,r.A)({inputComponent:i.A,inputProps:(0,r.A)({children:n,classes:l,IconComponent:p,variant:A.variant,type:void 0},h,v?v.props.inputProps:{}),ref:t},b))});f.muiName="Select";const v=(0,l.A)(p,{name:"MuiNativeSelect"})(f)},76891:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(89575),o=n(39850),a=n(24586),i=n(95478),l=n(36274),s=n(7031),d=n(11192),c=n(4313),u=n(64163),p=n(18171),m=n(43457),f=n(4321),v={enter:m.p0.enteringScreen,exit:m.p0.leavingScreen},h=i.forwardRef(function(e,t){var n=e.BackdropProps,a=e.children,s=e.classes,m=e.className,h=e.disableBackdropClick,b=void 0!==h&&h,g=e.disableEscapeKeyDown,A=void 0!==g&&g,y=e.fullScreen,x=void 0!==y&&y,w=e.fullWidth,E=void 0!==w&&w,C=e.maxWidth,k=void 0===C?"sm":C,S=e.onBackdropClick,R=e.onClose,D=e.onEnter,N=e.onEntered,M=e.onEntering,W=e.onEscapeKeyDown,P=e.onExit,I=e.onExited,F=e.onExiting,B=e.open,T=e.PaperComponent,L=void 0===T?f.A:T,$=e.PaperProps,O=void 0===$?{}:$,H=e.scroll,q=void 0===H?"paper":H,K=e.TransitionComponent,z=void 0===K?p.A:K,V=e.transitionDuration,U=void 0===V?v:V,_=e.TransitionProps,j=e["aria-describedby"],X=e["aria-labelledby"],Y=(0,o.A)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),G=i.useRef();return i.createElement(c.A,(0,r.A)({className:(0,l.A)(s.root,m),BackdropComponent:u.A,BackdropProps:(0,r.A)({transitionDuration:U},n),closeAfterTransition:!0},b?{disableBackdropClick:b}:{},{disableEscapeKeyDown:A,onEscapeKeyDown:W,onClose:R,open:B,ref:t},Y),i.createElement(z,(0,r.A)({appear:!0,in:B,timeout:U,onEnter:D,onEntering:M,onEntered:N,onExit:P,onExiting:F,onExited:I,role:"none presentation"},_),i.createElement("div",{className:(0,l.A)(s.container,s["scroll".concat((0,d.A)(q))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===G.current&&(G.current=null,S&&S(e),!b&&R&&R(e,"backdropClick"))},onMouseDown:function(e){G.current=e.target}},i.createElement(L,(0,r.A)({elevation:24,role:"dialog","aria-describedby":j,"aria-labelledby":X},O,{className:(0,l.A)(s.paper,s["paperScroll".concat((0,d.A)(q))],s["paperWidth".concat((0,d.A)(String(k)))],O.className,x&&s.paperFullScreen,E&&s.paperFullWidth)}),a))))});const b=(0,s.A)(function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,a.A)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,a.A)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,a.A)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,a.A)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,a.A)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},{name:"MuiDialog"})(h)},78467:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(7031),s=n(11192),d=44,c=a.forwardRef(function(e,t){var n=e.classes,l=e.className,c=e.color,u=void 0===c?"primary":c,p=e.disableShrink,m=void 0!==p&&p,f=e.size,v=void 0===f?40:f,h=e.style,b=e.thickness,g=void 0===b?3.6:b,A=e.value,y=void 0===A?0:A,x=e.variant,w=void 0===x?"indeterminate":x,E=(0,o.A)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},k={},S={};if("determinate"===w||"static"===w){var R=2*Math.PI*((d-g)/2);C.strokeDasharray=R.toFixed(3),S["aria-valuenow"]=Math.round(y),C.strokeDashoffset="".concat(((100-y)/100*R).toFixed(3),"px"),k.transform="rotate(-90deg)"}return a.createElement("div",(0,r.A)({className:(0,i.A)(n.root,l,"inherit"!==u&&n["color".concat((0,s.A)(u))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[w]),style:(0,r.A)({width:v,height:v},k,h),ref:t,role:"progressbar"},S,E),a.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(d," ").concat(d)},a.createElement("circle",{className:(0,i.A)(n.circle,m&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[w]),style:C,cx:d,cy:d,r:(d-g)/2,fill:"none",strokeWidth:g})))});const u=(0,l.A)(function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},{name:"MuiCircularProgress",flip:!1})(c)},81215:(e,t,n)=>{n.d(t,{A:()=>P});var r=n(89575),o=n(39850),a=n(95478),i=n(11942),l=n(90689),s=n(17545),d=n(87447),c=(n(26948),n(36274)),u=n(76446),p=n(11192),m=n(37757),f=n(8017),v=n(19878),h=n(45065);function b(e,t){return"object"===(0,s.A)(t)&&null!==t?e===t:String(e)===String(t)}const g=a.forwardRef(function(e,t){var n=e["aria-label"],i=e.autoFocus,s=e.autoWidth,g=e.children,A=e.classes,y=e.className,x=e.defaultValue,w=e.disabled,E=e.displayEmpty,C=e.IconComponent,k=e.inputRef,S=e.labelId,R=e.MenuProps,D=void 0===R?{}:R,N=e.multiple,M=e.name,W=e.onBlur,P=e.onChange,I=e.onClose,F=e.onFocus,B=e.onOpen,T=e.open,L=e.readOnly,$=e.renderValue,O=e.SelectDisplayProps,H=void 0===O?{}:O,q=e.tabIndex,K=(e.type,e.value),z=e.variant,V=void 0===z?"standard":z,U=(0,o.A)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),_=(0,h.A)({controlled:K,default:x,name:"Select"}),j=(0,l.A)(_,2),X=j[0],Y=j[1],G=a.useRef(null),Z=a.useState(null),J=Z[0],Q=Z[1],ee=a.useRef(null!=T).current,te=a.useState(),ne=te[0],re=te[1],oe=a.useState(!1),ae=oe[0],ie=oe[1],le=(0,v.A)(t,k);a.useImperativeHandle(le,function(){return{focus:function(){J.focus()},node:G.current,value:X}},[J,X]),a.useEffect(function(){i&&J&&J.focus()},[i,J]),a.useEffect(function(){if(J){var e=(0,u.A)(J).getElementById(S);if(e){var t=function(){getSelection().isCollapsed&&J.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[S,J]);var se,de,ce=function(e,t){e?B&&B(t):I&&I(t),ee||(re(s?null:J.clientWidth),ie(e))},ue=a.Children.toArray(g),pe=function(e){return function(t){var n;if(N||ce(!1,t),N){n=Array.isArray(X)?X.slice():[];var r=X.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),X!==n&&(Y(n),P&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:M}}),P(t,e)))}},me=null!==J&&(ee?T:ae);delete U["aria-invalid"];var fe=[],ve=!1;((0,f.lq)({value:X})||E)&&($?se=$(X):ve=!0);var he=ue.map(function(e){if(!a.isValidElement(e))return null;var t;if(N){if(!Array.isArray(X))throw new Error((0,d.A)(2));(t=X.some(function(t){return b(t,e.props.value)}))&&ve&&fe.push(e.props.children)}else(t=b(X,e.props.value))&&ve&&(de=e.props.children);return a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:pe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ve&&(se=N?fe.join(", "):de);var be,ge=ne;!s&&ee&&J&&(ge=J.clientWidth),be=void 0!==q?q:w?null:0;var Ae=H.id||(M?"mui-component-select-".concat(M):void 0);return a.createElement(a.Fragment,null,a.createElement("div",(0,r.A)({className:(0,c.A)(A.root,A.select,A.selectMenu,A[V],y,w&&A.disabled),ref:Q,tabIndex:be,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":me?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[S,Ae].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))},onMouseDown:w||L?null:function(e){0===e.button&&(e.preventDefault(),J.focus(),ce(!0,e))},onBlur:function(e){!me&&W&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:X,name:M}}),W(e))},onFocus:F},H,{id:Ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(se)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):se),a.createElement("input",(0,r.A)({value:Array.isArray(X)?X.join(","):X,name:M,ref:G,"aria-hidden":!0,onChange:function(e){var t=ue.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=ue[t];Y(n.props.value),P&&P(e,n)}},tabIndex:-1,className:A.nativeInput,autoFocus:i},U)),a.createElement(C,{className:(0,c.A)(A.icon,A["icon".concat((0,p.A)(V))],me&&A.iconOpen,w&&A.disabled)}),a.createElement(m.A,(0,r.A)({id:"menu-".concat(M||""),anchorEl:J,open:me,onClose:function(e){ce(!1,e)}},D,{MenuListProps:(0,r.A)({"aria-labelledby":S,role:"listbox",disableListWrap:!0},D.MenuListProps),PaperProps:(0,r.A)({},D.PaperProps,{style:(0,r.A)({minWidth:ge},null!=D.PaperProps?D.PaperProps.style:null)})}),he))});var A=n(96836),y=n(41682),x=n(7031),w=n(31468),E=n(63301),C=n(73745),k=n(42141),S=n(73481),R=n(35963),D=C.R,N=a.createElement(E.A,null),M=a.createElement(S.A,null),W=a.forwardRef(function e(t,n){var l=t.autoWidth,s=void 0!==l&&l,d=t.children,c=t.classes,u=t.displayEmpty,p=void 0!==u&&u,m=t.IconComponent,f=void 0===m?w.A:m,v=t.id,h=t.input,b=t.inputProps,x=t.label,E=t.labelId,C=t.labelWidth,S=void 0===C?0:C,D=t.MenuProps,W=t.multiple,P=void 0!==W&&W,I=t.native,F=void 0!==I&&I,B=t.onClose,T=t.onOpen,L=t.open,$=t.renderValue,O=t.SelectDisplayProps,H=t.variant,q=void 0===H?"standard":H,K=(0,o.A)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),z=F?k.A:g,V=(0,y.A)(),U=(0,A.A)({props:t,muiFormControl:V,states:["variant"]}).variant||q,_=h||{standard:N,outlined:a.createElement(R.A,{label:x,labelWidth:S}),filled:M}[U];return a.cloneElement(_,(0,r.A)({inputComponent:z,inputProps:(0,r.A)({children:d,IconComponent:f,variant:U,type:void 0,multiple:P},F?{id:v}:{autoWidth:s,displayEmpty:p,labelId:E,MenuProps:D,onClose:B,onOpen:T,open:L,renderValue:$,SelectDisplayProps:(0,r.A)({id:v},O)},b,{classes:b?(0,i.mergeClasses)({baseClasses:c,newClasses:b.classes,Component:e}):c},h?h.props.inputProps:{}),ref:n},K))});W.muiName="Select";const P=(0,x.A)(D,{name:"MuiSelect"})(W)},91761:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(39850),o=n(89575),a=n(95478),i=n(36274),l=n(96836),s=n(41682),d=n(11192),c=n(7031),u=a.forwardRef(function(e,t){var n=e.children,c=e.classes,u=e.className,p=(e.color,e.component),m=void 0===p?"label":p,f=(e.disabled,e.error,e.filled,e.focused,e.required,(0,r.A)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),v=(0,s.A)(),h=(0,l.A)({props:e,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]});return a.createElement(m,(0,o.A)({className:(0,i.A)(c.root,c["color".concat((0,d.A)(h.color||"primary"))],u,h.disabled&&c.disabled,h.error&&c.error,h.filled&&c.filled,h.focused&&c.focused,h.required&&c.required),ref:t},f),n,h.required&&a.createElement("span",{"aria-hidden":!0,className:(0,i.A)(c.asterisk,h.error&&c.error)}," ","*"))});const p=(0,c.A)(function(e){return{root:(0,o.A)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}},{name:"MuiFormLabel"})(u)},93453:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(7031),s=a.forwardRef(function(e,t){var n=e.disableSpacing,l=void 0!==n&&n,s=e.classes,d=e.className,c=(0,o.A)(e,["disableSpacing","classes","className"]);return a.createElement("div",(0,r.A)({className:(0,i.A)(s.root,d,!l&&s.spacing),ref:t},c))});const d=(0,l.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(s)},95061:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(89575),o=n(39850),a=n(95478),i=n(36274),l=n(8017),s=n(7031),d=n(11192),c=n(73525),u=n(42062),p=a.forwardRef(function(e,t){var n=e.children,s=e.classes,p=e.className,m=e.color,f=void 0===m?"primary":m,v=e.component,h=void 0===v?"div":v,b=e.disabled,g=void 0!==b&&b,A=e.error,y=void 0!==A&&A,x=e.fullWidth,w=void 0!==x&&x,E=e.focused,C=e.hiddenLabel,k=void 0!==C&&C,S=e.margin,R=void 0===S?"none":S,D=e.required,N=void 0!==D&&D,M=e.size,W=e.variant,P=void 0===W?"standard":W,I=(0,o.A)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),F=a.useState(function(){var e=!1;return n&&a.Children.forEach(n,function(t){if((0,c.A)(t,["Input","Select"])){var n=(0,c.A)(t,["Select"])?t.props.input:t;n&&(0,l.gr)(n.props)&&(e=!0)}}),e}),B=F[0],T=F[1],L=a.useState(function(){var e=!1;return n&&a.Children.forEach(n,function(t){(0,c.A)(t,["Input","Select"])&&(0,l.lq)(t.props,!0)&&(e=!0)}),e}),$=L[0],O=L[1],H=a.useState(!1),q=H[0],K=H[1],z=void 0!==E?E:q;g&&z&&K(!1);var V=a.useCallback(function(){O(!0)},[]),U={adornedStart:B,setAdornedStart:T,color:f,disabled:g,error:y,filled:$,focused:z,fullWidth:w,hiddenLabel:k,margin:("small"===M?"dense":void 0)||R,onBlur:function(){K(!1)},onEmpty:a.useCallback(function(){O(!1)},[]),onFilled:V,onFocus:function(){K(!0)},registerEffect:void 0,required:N,variant:P};return a.createElement(u.A.Provider,{value:U},a.createElement(h,(0,r.A)({className:(0,i.A)(s.root,p,"none"!==R&&s["margin".concat((0,d.A)(R))],w&&s.fullWidth),ref:t},I),n))});const m=(0,s.A)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(p)},96836:(e,t,n)=>{function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}n.d(t,{A:()=>r})}}]);
|
|
2
|
+
//# sourceMappingURL=5943.4e1dedc5.chunk.js.map
|