@abtnode/webapp 1.16.17-beta-ce49fe0e → 1.16.17-beta-2679e686

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.
Files changed (55) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +33 -27
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/css/3826.fafc5663.chunk.css +11 -0
  7. package/build/static/js/1294.19517674.chunk.js +1 -0
  8. package/build/static/js/1366.634a178c.chunk.js +2 -0
  9. package/build/static/js/1685.8024c33d.chunk.js +2 -0
  10. package/build/static/js/{1826.07c285de.chunk.js → 1826.6b07b9d8.chunk.js} +1 -1
  11. package/build/static/js/{2129.120e36ae.chunk.js → 2129.a503ddc2.chunk.js} +1 -1
  12. package/build/static/js/2311.1fe5b0ce.chunk.js +2 -0
  13. package/build/static/js/{2828.4f318970.chunk.js → 2828.e4af547b.chunk.js} +1 -1
  14. package/build/static/js/2911.92a82b04.chunk.js +1 -0
  15. package/build/static/js/{3476.c0b3411b.chunk.js → 3476.ef8ac7ae.chunk.js} +1 -1
  16. package/build/static/js/{3732.f5d8b39b.chunk.js → 3732.f9a2d362.chunk.js} +1 -1
  17. package/build/static/js/3826.99a169b4.chunk.js +2 -0
  18. package/build/static/js/3826.99a169b4.chunk.js.LICENSE.txt +63 -0
  19. package/build/static/js/3883.e143ca26.chunk.js +1 -0
  20. package/build/static/js/{4274.22984e96.chunk.js → 4274.9c2254c7.chunk.js} +1 -1
  21. package/build/static/js/{4906.d14fcb6e.chunk.js → 4906.825f650b.chunk.js} +1 -1
  22. package/build/static/js/{5526.c5d6afb5.chunk.js → 5526.4ee4d769.chunk.js} +2 -2
  23. package/build/static/js/{556.381dcbd8.chunk.js → 556.ebc2f879.chunk.js} +1 -1
  24. package/build/static/js/{5808.af4433c9.chunk.js → 6277.06fe2ed5.chunk.js} +2 -1
  25. package/build/static/js/6277.06fe2ed5.chunk.js.LICENSE.txt +5 -0
  26. package/build/static/js/6511.d1cf7f55.chunk.js +1 -0
  27. package/build/static/js/6580.200b63e3.chunk.js +1 -0
  28. package/build/static/js/{6780.c6efc1ec.chunk.js → 6780.ca11f5a3.chunk.js} +1 -1
  29. package/build/static/js/{6931.5f06c0c1.chunk.js → 6931.2f740c87.chunk.js} +1 -1
  30. package/build/static/js/{7126.57231bf3.chunk.js → 7126.d8d1d9d0.chunk.js} +1 -1
  31. package/build/static/js/{744.f4da0c57.chunk.js → 744.b848ddc7.chunk.js} +1 -1
  32. package/build/static/js/7657.2b64e975.chunk.js +2 -0
  33. package/build/static/js/{8249.63c55b3a.chunk.js → 8249.97de2470.chunk.js} +1 -1
  34. package/build/static/js/{8262.869cc799.chunk.js → 8262.3e89fa11.chunk.js} +1 -1
  35. package/build/static/js/8973.500d9a87.chunk.js +1 -0
  36. package/build/static/js/9517.ac659c32.chunk.js +2 -0
  37. package/build/static/js/9517.ac659c32.chunk.js.LICENSE.txt +1 -0
  38. package/build/static/js/{984.cdeeebfc.chunk.js → 984.90672bbf.chunk.js} +1 -1
  39. package/build/static/js/main.643f1d87.js +2 -0
  40. package/package.json +1 -1
  41. package/build/static/js/1035.c851de07.chunk.js +0 -2
  42. package/build/static/js/1366.4c0caad2.chunk.js +0 -2
  43. package/build/static/js/1685.9865eee2.chunk.js +0 -2
  44. package/build/static/js/4407.8d6ca5cb.chunk.js +0 -2
  45. package/build/static/js/6511.6578f60b.chunk.js +0 -1
  46. package/build/static/js/6580.486d1bdd.chunk.js +0 -1
  47. package/build/static/js/8973.8d079dd3.chunk.js +0 -1
  48. package/build/static/js/main.5da1d98b.js +0 -2
  49. /package/build/static/css/{4407.cc1ab277.chunk.css → 7657.cc1ab277.chunk.css} +0 -0
  50. /package/build/static/js/{1366.4c0caad2.chunk.js.LICENSE.txt → 1366.634a178c.chunk.js.LICENSE.txt} +0 -0
  51. /package/build/static/js/{1685.9865eee2.chunk.js.LICENSE.txt → 1685.8024c33d.chunk.js.LICENSE.txt} +0 -0
  52. /package/build/static/js/{1035.c851de07.chunk.js.LICENSE.txt → 2311.1fe5b0ce.chunk.js.LICENSE.txt} +0 -0
  53. /package/build/static/js/{5526.c5d6afb5.chunk.js.LICENSE.txt → 5526.4ee4d769.chunk.js.LICENSE.txt} +0 -0
  54. /package/build/static/js/{4407.8d6ca5cb.chunk.js.LICENSE.txt → 7657.2b64e975.chunk.js.LICENSE.txt} +0 -0
  55. /package/build/static/js/{main.5da1d98b.js.LICENSE.txt → main.643f1d87.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[8973],{80378:function(e,n,t){t.d(n,{Z:function(){return x}});var r=t(33028),i=t(59740),o=t(55898),a=t.n(o),l=t(62681),s=t(72333),c=t(6352),d=t.n(c),u=t(35432),f=t(58238),p=t(14491);var m=t(96266),h=["blocklet","style","size","ancestors"];function x(e){var n=e.blocklet,t=e.style,o=e.size,a=e.ancestors,c=(0,i.Z)(e,h),x=(0,f.h6)(),g=function(e){var n,t=e.blocklet,r=e.ancestors,i=void 0===r?[]:r,o=(0,f.h6)(),a=o.inService,l="?v=".concat(null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.version).concat((0,p.XN)(null===t||void 0===t?void 0:t.status)?"~":""),s=a?d()(p.zn,u.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",l):d()(o.imgPrefix,"blocklet.png");if("registry"===t.source&&t.deployedFrom&&t.meta.logo)s=d()(t.deployedFrom,(0,p.lk)(t.meta.bundleDid,t.meta.logo),l);else{var c=window.env.apiPrefix||"/",m=i.concat(t),h=a?m.slice(1):m;s=d()(c,"/blocklet/logo-bundle".concat(h.map((function(e){return"/".concat(e.meta.did)})).join("")),l)}return{logoUrl:s,inService:a}}({blocklet:n,ancestors:a}),Z=g.logoUrl,v=g.inService,b=c.variant,j=v?function(){}:function(e){e.target.src="".concat(x.imgPrefix,"/blocklet.png")},y=(0,m.jsx)("img",{src:Z,onError:j,alt:n.meta.name,style:{width:o}});return n.meta.logo||(y=(0,m.jsx)(s.Z,{did:n.meta.did||"",responsive:!0})),(0,m.jsx)(l.Z,(0,r.Z)((0,r.Z)({variant:b||"square",style:Object.assign({backgroundColor:"transparent",width:o,height:o,borderRadius:10},t)},c),{},{children:y}))}x.propTypes={blocklet:a().object.isRequired,style:a().object,size:a().oneOfType([a().number,a().string]),ancestors:a().array},x.defaultProps={style:{},size:40,ancestors:[]}},74286:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(55898),i=t.n(r),o=t(39948),a=t(96266);function l(e){var n=e.depth;return(0,a.jsx)(o.Z,{ml:Math.max(2*(n-1),0),sx:{borderBottom:1,borderColor:"rgba(0,0,0,0.12)"}},"group-collapse-box")}l.propTypes={depth:i().number},l.defaultProps={depth:1}},44784:function(e,n,t){var r,i=t(71171),o=t(33028),a=t(59740),l=t(33518),s=t(82790),c=t(96266),d=["labelProps","className","style"];function u(e){var n=e.labelProps,t=e.className,r=e.style,i=(0,a.Z)(e,d),l=(0,o.Z)((0,o.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,c.jsx)(f,{className:t,style:r,children:(0,c.jsx)(s.Z,(0,o.Z)({labelProps:l},i))})}u.propTypes=s.Z.propTypes,u.defaultProps=s.Z.defaultProps;var f=l.Z.div(r||(r=(0,i.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(function(e){return e.theme.breakpoints.down("sm")}));n.Z=u},5119:function(e,n,t){t.r(n),t.d(n,{default:function(){return bt}});var r=t(71171),i=t(33028),o=t(96234),a=t(59740),l=t(68079),s=t(5057),c=t(33518),d=t(55898),u=t.n(d),f=t(96181),p=t(6352),m=t.n(p),h=t(35432),x=t(39948),g=t(55402),Z=t(82275),v=t(96399),b=t(65688),j=t(37633),y=t(48037),k=t(92273),C=t(76720),w=t(15849),S=t(68420),L=t(94464),E=t(38242),P=t(80378),A=t(1722),_=t(32723),N=t(34795),T=t(43681),R=t.n(T),O=t(50482),F=t.n(O),I=t(52277),B=t.n(I),z=t(36554),D=t(29034),U=t(28726),K=t(80578),W=t(62681),q=t(76811),V=t(86229),G=t(28641),M=t(44846),H=t(13727),Y=t(56184),J=t(67680),Q=t(74490),X=t(51177),$=t(19654),ee=t(96366),ne=t(35406),te=t(11875),re=t(95890),ie=t(96266),oe=["label","disabled","required","initialValue","onChange","style","onSubmit","triggers","options","formatterBeforeSubmit"],ae={PaperProps:{style:{maxHeight:224,width:250}}},le=function(e,n,t){return{fontWeight:-1===n.indexOf(e)?t.typography.fontWeightRegular:t.typography.fontWeightMedium}};function se(e){var n=e.label,t=e.disabled,r=e.required,l=e.initialValue,c=e.onChange,d=e.style,u=e.onSubmit,f=e.triggers,p=e.options,m=e.formatterBeforeSubmit,h=(0,a.Z)(e,oe),g=(0,ee.Z)(),Z=(0,s.useState)(!1),v=(0,o.Z)(Z,2),b=v[0],j=v[1],y=(0,s.useState)(!1),k=(0,o.Z)(y,2),C=k[0],w=k[1],S=(0,s.useState)(l),L=(0,o.Z)(S,2),E=L[0],P=L[1],A=(0,s.useState)(E),T=(0,o.Z)(A,2),R=T[0],O=T[1],F=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.prev=1,e.next=4,u("function"===typeof m?m(R):R);case 4:!1===e.sent?O(E):(O(R),P(R)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),O(E);case 11:return e.prev=11,w(!1),j(!1),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[1,8,11,15]])})));return function(){return e.apply(this,arguments)}}(),I=b?(0,ie.jsx)(X.Z,(0,i.Z)((0,i.Z)({value:R,onChange:function(e){var n=e.target.value;n="string"===typeof n?n.split(","):n,O(n),c(n)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",renderValue:function(e){return(0,ie.jsx)(x.Z,{sx:{display:"flex",flexWrap:"wrap"},children:e.filter((function(e){return p.some((function(n){return n.code===e}))})).map((function(e){return(0,ie.jsx)($.Z,{label:p.find((function(n){return n.code===e})).name,style:{marginRight:8},size:"small"},e)}))})},MenuProps:ae},h),{},{children:p.map((function(e){return(0,ie.jsx)(Q.Z,{value:e.code,style:le(e.code,R,g),children:e.name},e.code)}))})):(0,ie.jsx)(x.Z,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter((function(e){return p.some((function(n){return n.code===e}))})).map((function(e){return(0,ie.jsx)($.Z,{label:p.find((function(n){return n.code===e})).name,style:{marginRight:8},size:"small"},e)}))});return(0,ie.jsx)(te.Z,{className:"form",style:d,children:(0,ie.jsxs)(x.Z,{className:"form-item",children:[(0,ie.jsxs)(x.Z,{className:"form-item-label",children:[n,r&&(0,ie.jsx)(ne.Z,{})]}),(0,ie.jsxs)(x.Z,{className:"form-item-body",children:[(0,ie.jsx)(x.Z,{className:"form-item-input",children:I}),(0,ie.jsx)(x.Z,{className:"form-item-action",children:b?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(J.Z,{"data-cy":"schema-form-item-confirm",onClick:F,disabled:t||C,size:"large",children:C?(0,ie.jsx)(M.Z,{size:24}):(0,ie.jsx)(Y.Z,{})}),(0,ie.jsx)(J.Z,{"data-cy":"schema-form-item-cancel",onClick:function(){O(E),j(!1)},disabled:t||C,size:"large",children:(0,ie.jsx)(H.default,{})})]}):(0,ie.jsx)(re.Z,{triggers:f,onEnterEdit:function(){return j(!0)},disabled:t})})]})]})})}se.propTypes={style:u().object,onSubmit:u().func,onChange:u().func,label:u().string,initialValue:u().string,required:u().bool,disabled:u().bool,triggers:u().array,options:u().array,formatterBeforeSubmit:u().func},se.defaultProps={style:{},onSubmit:function(){},onChange:function(){},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],formatterBeforeSubmit:function(e){return e.join(",")}};var ce,de=t(58238),ue=t(14491),fe=t(54063),pe=t(63406),me=t(78410),he=t(31853),xe=t(55152),ge=t(70461),Ze=t(73545),ve=t(29054);function be(e){var n=e.initialValue,t=e.onChange,r=e.disabled,i=e.loading,a=(0,S.PE)().t,l=(0,Ze.T)().api,s=(0,ve.y0)().blocklet,c=(0,he.Z)({newAppSk:"",isConnectOpen:!1}),d=(0,o.Z)(c,2),u=d[0],f=d[1],p=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(n);case 3:return e.prev=3,f({newAppSk:""}),e.finish(3);case 6:case"end":return e.stop()}}),e,null,[[0,,3,6]])})));return function(n){return e.apply(this,arguments)}}(),m=function(){return f({isConnectOpen:!1})},g=s.structVersion===h.APP_STRUCT_VERSION?[{key:"rotate-with-did-wallet",title:"Migrate with DID Wallet",handler:function(){(0,ue.An)(s.status)?V.Z.error(a("blocklet.error.isRunning")):(0,E.isInProgress)(s.status)?V.Z.error(a("blocklet.error.isInProgress")):f({isConnectOpen:!0})}}]:[];return[(0,ie.jsx)(G.Z,{disabled:r,loading:i,initialValue:n,onSubmit:function(e){return f({newAppSk:e}),!1},triggers:g,secure:!0}),u.newAppSk&&(0,ie.jsx)(ge.Z,{title:a("blocklet.config.appSkTitle"),description:(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(x.Z,{children:a("blocklet.config.appSkChangeTip")}),(0,ie.jsx)(x.Z,{fontWeight:"bold",mt:2,children:a("blocklet.config.appDidChangeTip")}),(0,ie.jsxs)(ye,{children:[(0,ie.jsx)("li",{children:a("blocklet.config.appDidChangeTipL1")}),(0,ie.jsx)("li",{children:a("blocklet.config.appDidChangeTipL2")})]})]}),confirm:a("confirm"),cancel:a("cancel"),onConfirm:function(){return p(u.newAppSk)},onCancel:function(){return f({newAppSk:""})}}),(0,ie.jsx)(xe.default,{popup:!0,open:u.isConnectOpen,forceConnected:!1,saveConnect:!1,action:"rotate-key-pair",checkFn:l.get,checkTimeout:3e5,onSuccess:m,extraParams:{appDid:s.appDid},messages:{title:a("setup.keyPair.title"),scan:a("setup.keyPair.scan"),confirm:a("setup.keyPair.confirm"),success:a("setup.keyPair.success")},onClose:m})]}be.propTypes={initialValue:u().string,onChange:u().func,disabled:u().bool,loading:u().bool},be.defaultProps={initialValue:"default",onChange:function(){},disabled:!1,loading:!1};var je,ye=(0,c.Z)("ul")(ce||(ce=(0,r.Z)(["\n padding-left: 16px;\n li {\n margin-top: 8px;\n list-style: disk;\n font-weight: bold;\n }\n"]))),ke=t(13128),Ce=t(55372),we=t(11750),Se=t(88574),Le=t(26174),Ee=t(88092),Pe=t(50185),Ae=t(17425);function _e(e){var n=e.onCancel,t=e.onSuccess,r=e.onError,i=(0,s.useContext)(Ze.B).api,a=(0,s.useState)(!1),l=(0,o.Z)(a,2),c=l[0],d=l[1],u=(0,S.PE)(),f=u.t,p=u.locale,m=(0,s.useState)(""),h=(0,o.Z)(m,2),g=h[0],Z=h[1],v=(0,s.useState)(!1),b=(0,o.Z)(v,2),j=b[0],y=b[1],k=(0,s.useState)(0),C=(0,o.Z)(k,2),w=C[0],L=C[1],E=(0,s.useState)(""),P=(0,o.Z)(E,2),A=P[0],_=P[1],N=(0,Ae.DJ)().endpoint,T=(0,s.useState)(!1),R=(0,o.Z)(T,2),O=R[0],F=R[1],I=function(e){Z(null),d(!0);try{_(e.result),L(z.length-1)}catch(t){var n=(0,ue.Z)(t);Z(n),r(t)}finally{d(!1)}},B=function(){y(!1),L(0)},z=[{body:(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(we.Z,{children:f("team.transferApp.transferDialog.tips.progress")}),(0,ie.jsx)(we.Z,{mt:3,mb:2,children:f("team.transferApp.transferDialog.tips.newOwnerPermissions")})]}),cancel:f("common.cancel"),confirm:f("team.transferApp.transferDialog.createTransferLink"),onCancel:n,onConfirm:function(){y(!0),L(1)}},{body:function(){return(0,ie.jsx)(xe.default,{action:"transfer-app-owner",open:j,locale:p,checkFn:i.get,onClose:B,onSuccess:I,checkTimeout:3e5,extraParams:{},messages:{title:f("team.transferApp.connectDialog.title"),scan:f("team.transferApp.connectDialog.scan"),confirm:f("team.transferApp.connectDialog.confirm"),success:f("team.transferApp.connectDialog.success")},popup:!0})}},{body:function(){var e=(0,ue.VP)({transferId:A.transferId,endpoint:N});return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(x.Z,{component:Te,dangerouslySetInnerHTML:{__html:f("team.transferApp.transferDialog.createSuccessTip1")}}),(0,ie.jsx)(x.Z,{component:Te,mt:2,children:(0,ie.jsx)(Te,{children:f("team.transferApp.transferDialog.createSuccessTip3")})}),(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(x.Z,{component:Te,mt:2,children:(0,ie.jsx)(Te,{children:f("team.transferApp.transferDialog.createSuccessTip2",{expireDate:(0,ue.B2)(A.expireDate,p)})})}),(0,ie.jsx)(x.Z,{my:1,children:(0,ie.jsx)(Pe.Z,{children:e})})]}),(0,ie.jsx)("div",{children:(0,ie.jsx)(Le.Z,{value:"end",control:(0,ie.jsx)(Ee.Z,{checked:O,onChange:function(e){return F(e.target.checked)}}),label:f("team.transferApp.transferDialog.iKnow"),labelPlacement:"end"})})]})},confirm:f("common.confirm"),onConfirm:t}],D=z[w];return(0,ie.jsxs)(ke.ZP,{title:(0,ie.jsx)(Te,{className:"title",children:f("team.transferApp.transferDialog.title")}),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,ie.jsxs)(ie.Fragment,{children:[D.cancel&&(0,ie.jsx)(U.Z,{onClick:D.onCancel,color:"inherit",children:D.cancel}),(0,ie.jsxs)(U.Z,{onClick:D.onConfirm,color:"error",disabled:c||w===z.length-1&&!O,variant:"contained",autoFocus:!0,children:[c&&(0,ie.jsx)(M.Z,{size:16}),D.confirm]})]}),children:[(0,ie.jsx)(Ce.Z,{component:"div",children:"function"===typeof D.body?D.body():D.body}),!!g&&(0,ie.jsx)(Se.Z,{type:"error",variant:"icon",children:g})]})}_e.propTypes={onCancel:u().func.isRequired,onSuccess:u().func.isRequired,onError:u().func},_e.defaultProps={onError:function(){}};var Ne,Te=c.Z.div(je||(je=(0,r.Z)(["\n font-size: 16px;\n font-weight: bold;\n &.title {\n font-size: 20px;\n }\n"]))),Re=t(49522),Oe=["blocklet","onUpdate","hasPermission"],Fe=Object.keys(q.SUPPORTED_LANGUAGES).map((function(e){return{code:e,name:q.SUPPORTED_LANGUAGES[e].nativeName}})),Ie=(0,s.lazy)((function(){return Promise.all([t.e(1294),t.e(3826)]).then(t.bind(t,23826)).then((function(e){return{default:e.Uploader}}))})),Be="/blocklet/logo/upload";function ze(e){var n,t=e.blocklet,r=e.onUpdate,l=e.hasPermission,c=(0,a.Z)(e,Oe),d=(0,de.h6)(),u=d.api,f=d.inService,p=d.prefix,g=d.getSessionInHeader,Z=d.ws.useSubscription,v=(0,s.useContext)(S.RD).t,b=(0,s.useState)(""),j=(0,o.Z)(b,2),y=j[0],k=j[1],C=(0,s.useState)(""),w=(0,o.Z)(C,2),L=w[0],P=w[1],A=(0,s.useState)(!1),T=(0,o.Z)(A,2),O=T[0],I=T[1],M=(0,E.getWhoCanAccess)(t),H=null===t||void 0===t||null===(n=t.settings)||void 0===n?void 0:n.publicToStore,Y=L||!l,J=(0,s.useRef)(null),Q=(0,Re.Z)({blocklet:t}),X=Q.logoUrl,$=Q.rectLogoUrl,ee=Q.faviconUrl,ne=(0,s.useState)(),te=(0,o.Z)(ne,2),re=te[0],oe=te[1],ae=m()(p,Be,"square",t.meta.did),le=m()(p,Be,"rect",t.meta.did),ce=m()(p,Be,"favicon",t.meta.did),he=function(e){l&&(oe({uploader:e,disableMediaKitPrefix:!0}),J.current.open())},xe=t.meta.did,ge=t.site,Ze=R()(t.meta,"capabilities.clusterMode",!1);if(Z(h.EVENTS.NODE_RUNTIME_INFO,(function(e){Ze&&k(R()(e,"cpu.physicalCores",""))})),(0,ue.wS)(t.status))return null;var ve=t.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE})),je=!ve||"yes"===ve.value,ye=t.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LANGUAGES})),ke=t.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL})),Ce=t.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER})),we=t.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR})),Se=[{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,description:v("blocklet.config.name"),value:t.environments.find((function(e){return"BLOCKLET_APP_NAME"===e.key})).value},{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,description:v("blocklet.config.description"),value:t.environments.find((function(e){return"BLOCKLET_APP_DESCRIPTION"===e.key})).value},{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL,description:v("blocklet.config.appUrl"),value:ke?ke.value:""},{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER,description:v("blocklet.config.copyrightOwner"),value:Ce?Ce.value:""},{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR,description:v("blocklet.config.copyrightYear"),value:we?we.value:""}];if(Ze){var Le=t.configs.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE})),Ee=Le?Le.value:y;Se.push({key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE,description:v("blocklet.config.clusterSize"),value:Ee,cpuCores:y})}var Pe=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var i,o,a;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,i=n.target.checked,e.next=7,u.configPublicToStore({input:{did:t.meta.did,publicToStore:i}});case 7:o=e.sent,a=o.blocklet,r(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),V.Z.error(e.t0.message);case 15:return e.prev=15,P(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})));return function(n){return e.apply(this,arguments)}}(),Ae=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n,i){var o,a,l,s;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){e.next=5;break}if(!(o=(0,ue.I)({value:i,cpuCores:y}))){e.next=5;break}return V.Z.error(o),e.abrupt("return");case 5:return a=[{key:n,value:i}],e.prev=6,P(!0),e.next=10,u.configBlocklet({input:{did:t.meta.did,configs:a}});case 10:l=e.sent,s=l.blocklet,r(s),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),V.Z.error(e.t0.message);case 18:return e.prev=18,P(!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[6,15,18,21]])})));return function(n,t){return e.apply(this,arguments)}}(),Ne=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var i,o,a;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,i=n.target.checked,e.next=7,u.configBlocklet({input:{did:t.meta.did,configs:[{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE,value:i?"no":"yes"}]}});case 7:o=e.sent,a=o.blocklet,r(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),V.Z.error(e.t0.message);case 15:return e.prev=15,P(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})));return function(n){return e.apply(this,arguments)}}(),Te=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var r,i,o;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ge.corsAllowedOrigins||[],i=n.split(",").map((function(e){return e.trim()})).filter(Boolean),!F()(r,i)){e.next=4;break}return e.abrupt("return",!1);case 4:return e.prev=4,P(!0),o=i.length?i:["__none__"],e.next=9,u.updateRoutingSite({input:{id:ge.id,corsAllowedOrigins:o,teamDid:t.meta.did}});case 9:P(!1),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(4),V.Z.error(e.t0.message),P(!1),e.abrupt("return",!1);case 17:return e.abrupt("return",!0);case 18:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(n){return e.apply(this,arguments)}}(),ze=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var i,o;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,e.next=6,u.configBlocklet({input:{did:t.meta.did,configs:[{key:q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SK,value:n}]}});case 6:i=e.sent,o=i.blocklet,r(o),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),V.Z.error(e.t0.message);case 14:return e.prev=14,P(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[3,11,14,17]])})));return function(n){return e.apply(this,arguments)}}(),De={"&::after":{content:'"'.concat(v("common.switch"),'"')}};return(0,ie.jsxs)(We,(0,i.Z)((0,i.Z)({},c),{},{children:[Se.map((function(e){return(0,ie.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:e.description}),(0,ie.jsx)(G.Z,{style:{marginTop:0},disabled:L||Y,loading:L,initialValue:e.value,onSubmit:function(n){return Ae(e.key,n)}})]})})),(0,ie.jsx)(x.Z,{className:"config-form",component:D.Z,my:3}),(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mb:1,sx:{flexGrow:0,width:"auto"},children:v("blocklet.config.logoSquare")}),(0,ie.jsx)(x.Z,{className:B()("uploader-wrapper",l&&"enabled"),sx:De,onClick:function(){return he(ae)},children:(0,ie.jsx)(W.Z,{sx:{height:80,width:80},variant:"square",alt:"Blocklet Logo",src:X})}),(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mt:4,children:v("blocklet.config.logoRect")}),(0,ie.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("blocklet.config.logoRectDesc")}),(0,ie.jsx)(x.Z,{className:B()("uploader-wrapper",l&&"enabled"),sx:De,onClick:function(){return he(le)},children:(0,ie.jsx)("img",{alt:"Blocklet Rect Logo",src:$,style:{height:"80px"}})}),(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mt:4,children:v("blocklet.config.logoFavicon")}),(0,ie.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("blocklet.config.logoFaviconDesc")}),(0,ie.jsx)(x.Z,{sx:{display:"inline-flex",cursor:l?"pointer":"default"},onClick:function(){return he(ce)},children:(0,ie.jsx)(W.Z,{variant:"square",sx:{width:20,height:20},alt:"Blocklet Favicon Logo",src:ee})}),(0,ie.jsx)(Ie,{id:"\u200buploader-logo",ref:J,popup:!0,onUploadFinish:function(){J.current.close()},plugins:[],apiPathProps:re,coreProps:{restrictions:{allowedFileTypes:["image/*",".jpg",".jpeg",".png",".gif",".svg"],maxFileSize:10485760,maxNumberOfFiles:1}},tusProps:{headers:g}},"uploader-logo"),(0,ie.jsx)(x.Z,{className:"config-form",children:"all"===M&&"registry"===t.source&&(0,ie.jsxs)(x.Z,{className:"config-item",children:[(0,ie.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.access.publicToStore"),(0,ie.jsx)(x.Z,{className:"config-desc",children:v("blocklet.config.access.publicInstanceTip")})]}),(0,ie.jsx)(z.Z,{disabled:Y,checked:H,defaultChecked:!0,onChange:Pe})]})}),(0,ie.jsx)(x.Z,{className:"config-form",component:D.Z,my:3}),(0,ie.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("blocklet.config.languages")}),(0,ie.jsx)(se,{style:{marginTop:0},disabled:L||Y,loading:L,options:Fe,initialValue:ye?ye.value.split(","):["en","zh"],onSubmit:function(e){return Ae("BLOCKLET_APP_LANGUAGES",e)}})]}),(0,ie.jsx)(x.Z,{className:"config-form",component:D.Z,my:3}),(0,ie.jsx)(x.Z,{className:"config-form",mt:2,children:(0,ie.jsx)(x.Z,{className:"config-label",mb:0,children:v("common.security")})}),(0,ie.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("router.domainSecurity.cors.title")}),(0,ie.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("router.domainSecurity.cors.description",{name:"the blocklet"})}),(0,ie.jsx)(G.Z,{style:{marginTop:0},disabled:L||Y,loading:L,initialValue:(ge.corsAllowedOrigins||[]).join(", "),onSubmit:Te})]}),(0,ie.jsx)(x.Z,{className:"config-form",component:D.Z,my:3}),(0,ie.jsx)(x.Z,{mb:2,className:"config-label",fontSize:20,children:v("blocklet.config.dangerZone")}),(0,ie.jsxs)(x.Z,{px:2,py:1,sx:{border:"1px solid red",borderRadius:2},children:[(0,ie.jsx)(x.Z,{className:"config-form",mt:2,children:!f&&(0,ie.jsxs)(x.Z,{className:"config-item",children:[(0,ie.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.deletable.name"),(0,ie.jsx)(x.Z,{className:"config-desc",children:v(je?"blocklet.config.deletable.disable":"blocklet.config.deletable.enable")})]}),(0,ie.jsx)(z.Z,{disabled:Y,checked:!je,defaultChecked:!0,onChange:Ne})]})}),(0,ie.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,ie.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("blocklet.config.sk")}),(0,ie.jsx)(be,{disabled:L||Y,loading:L,initialValue:t.environments.find((function(e){return"BLOCKLET_APP_SK"===e.key})).value,onChange:ze})]}),f&&(0,ie.jsx)(pe.Z,{role:"owner",children:function(e){return(e||fe.C)&&(0,ie.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,ie.jsxs)(x.Z,{className:"config-item",children:[(0,ie.jsx)(x.Z,{className:"config-label",mb:0,children:v("team.transferApp.name")}),(0,ie.jsxs)(U.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"transfer-app",onClick:function(){return I(!0)},children:[(0,ie.jsx)(K.Z,{style:{fontSize:"1.3em",marginRight:4}}),v("team.transferApp.name")]})]}),O&&(0,ie.jsx)(_e,{onCancel:function(){return I(!1)},onSuccess:function(){return I(!1)}})]})}}),(0,ie.jsx)(x.Z,{className:"config-form",mt:2,children:(0,ie.jsxs)(x.Z,{className:"config-item",children:[(0,ie.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.clearCache.name"),(0,ie.jsx)(x.Z,{className:"config-desc",children:v("blocklet.config.clearCache.purpose")})]}),(0,ie.jsx)(me.Z,{teamDid:xe})]})})]})]}))}var De=(0,pe.V)(ze,"mutate_blocklets"),Ue=(0,pe.V)(ze,"",ue.Wf);function Ke(e){return(0,de.h6)().inService?(0,ie.jsx)(Ue,(0,i.Z)({},e)):(0,ie.jsx)(De,(0,i.Z)({},e))}ze.propTypes={blocklet:u().object.isRequired,onUpdate:u().func,hasPermission:u().bool},ze.defaultProps={onUpdate:function(){},hasPermission:!1};var We=c.Z.div(Ne||(Ne=(0,r.Z)(["\n padding-top: 24px;\n .config-form {\n flex-grow: 1;\n overflow-y: auto;\n "," {\n width: 100%;\n flex-shrink: 0;\n padding: 0 24px;\n transform: translate(0, 0);\n }\n }\n\n .config-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 16px 0;\n }\n\n .config-label {\n font-weight: bold;\n }\n\n .config-desc {\n font-weight: normal;\n font-size: 12px;\n color: #666;\n }\n\n .form-item {\n margin-top: 0;\n }\n\n .uploader-wrapper {\n display: inline-flex;\n position: relative;\n font-size: 0px;\n &.enabled {\n cursor: pointer;\n }\n &::after {\n display: none;\n }\n &.enabled::after {\n display: block;\n opacity: 0;\n position: absolute;\n bottom: 0;\n background: rgba(0, 0, 0, 0.2);\n left: 0;\n right: 0;\n height: 2.2em;\n color: white;\n text-align: center;\n font-size: 12px;\n line-height: 2em;\n transition: opacity 0.3s ease;\n }\n &:hover::after {\n opacity: 1;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")})),qe=t(25710),Ve=t(93066),Ge=t(80576),Me=t(47020),He=t(56556),Ye=t(8708),Je=t.n(Ye),Qe=t(99360),Xe=t(95550),$e=t(766),en=t.n($e),nn=t(24529),tn=t.n(nn),rn=t(16727),on=t.n(rn),an={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:""};var ln=function(){var e,n,t,r=(0,de.h6)().api,o=(0,ve.y0)().blocklet,a=(0,S.PE)().t,l=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s=Object.assign((0,i.Z)({},an),(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.notification)||void 0===t?void 0:t.email)||{}),c=(0,Xe.cI)({defaultValues:Je()(s,Object.keys(an))}),d=c.handleSubmit,u=c.control,f=c.formState,p=c.watch,m=c.reset,h=p("enabled"),g=(0,Qe.Z)(function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var t,o,s,c,d;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.configNotification({input:{did:l,notification:JSON.stringify({email:n})}});case 3:s=e.sent,c=s.blocklet,d=Object.assign((0,i.Z)({},an),(null===c||void 0===c||null===(t=c.settings)||void 0===t||null===(o=t.notification)||void 0===o?void 0:o.email)||{}),m(d),V.Z.success(a("oauth.saveSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),V.Z.error(e.t0.message||a("oauth.saveFailed"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}()),Z=(0,Qe.Z)((function(e){var n=null===e||void 0===e?void 0:e.trim();return n?!!en()(n)||a("notification.email.fromInvalid"):a("notification.email.fromRequired")})),v=(0,Qe.Z)((function(e){var n=null===e||void 0===e?void 0:e.trim();return n?!!tn()(n,{require_host:!1,protocols:[]})||a("notification.email.hostInvalid"):a("notification.email.hostRequired")})),b=(0,Qe.Z)((function(e){return e?!!on()(e)||a("notification.email.portInvalid"):a("notification.email.portRequired")})),j=(0,Qe.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("notification.email.userRequired")})),y=(0,Qe.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("notification.email.passwordRequired")})),k=(0,Qe.Z)((function(){return!0}));return(0,ie.jsx)(x.Z,{children:(0,ie.jsxs)("form",{onSubmit:d(g),disabled:!0,children:[(0,ie.jsx)(Xe.Qr,{name:"enabled",control:u,render:function(e){var n=e.field;return(0,ie.jsx)(Le.Z,{control:(0,ie.jsx)(z.Z,(0,i.Z)({checked:n.value},n)),label:a("notification.email.enable"),sx:{marginBottom:"8px"}})}}),(0,ie.jsx)(Xe.Qr,{name:"from",control:u,rules:{validate:h?Z:k},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{label:a("notification.email.from"),error:!!f.errors[t.name],helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"host",control:u,rules:{validate:h?v:k},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("notification.email.host"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"port",control:u,rules:{validate:h?b:k},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{type:"number",error:!!f.errors[t.name],label:a("notification.email.port"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"user",control:u,rules:{validate:h?j:k},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("notification.email.user"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"password",control:u,rules:{validate:h?y:k},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{type:"password",error:!!f.errors[t.name],label:a("notification.email.password"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"secure",control:u,rules:{validate:k},render:function(e){var n=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Le.Z,{control:(0,ie.jsx)(z.Z,(0,i.Z)((0,i.Z)({checked:n.value},n),{},{disabled:!h})),label:a("notification.email.secure"),style:{marginBottom:16}})})}}),(0,ie.jsx)(He.Z,{type:"submit",variant:"contained",onSubmit:d(g),disabled:!f.isDirty,children:a("oauth.save")})]})})},sn=[{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:"Email"}),value:"email"},{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:"More"}),value:"more"}];var cn,dn,un=function(){var e=(0,s.useState)(sn[0].value),n=(0,o.Z)(e,2),t=n[0],r=n[1],i=(0,s.useContext)(S.RD).t,a=(0,Ve.Z)((function(){return{email:(0,ie.jsx)(ln,{}),more:(0,ie.jsx)(x.Z,{children:(0,ie.jsx)(qe.Z,{children:i("notification.comingSoon")})})}}),[i]);return(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(L.Z,{tabs:sn,current:t,onChange:r}),(0,ie.jsx)(x.Z,{marginTop:"10px",children:a[t]})]})},fn=t(75239),pn=t(48342),mn=t(94552),hn=t(24558),xn=t(74286),gn=t(76667),Zn=t(70648),vn=t(44067),bn=t(7664),jn=t(44123),yn=t(53906),kn=[{value:h.WHO_CAN_ACCESS.ALL,icon:yn.Z,title:{zh:"\u6240\u6709\u4eba\u53ef\u8bbf\u95ee",en:"Accessible to all"},description:{zh:"\u5411\u6240\u6709\u4eba\u5f00\u653e\uff0c\u65e0\u9700\u901a\u884c\u8bc1\u5373\u53ef\u8bbf\u95ee\u5e94\u7528",en:"Open to the world anyone can access without passport"}},{value:h.WHO_CAN_ACCESS.INVITED,icon:jn.Z,title:{zh:"\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u4eba\u53ef\u4ee5\u8bbf\u95ee",en:"Only invited people can access"},description:{zh:"\u7a0d\u540e\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u9875\u9762\u4e2d\u9080\u8bf7\u6210\u5458",en:"You can invite members later in the admin page"}},{value:h.WHO_CAN_ACCESS.OWNER,icon:bn.Z,title:{zh:"\u53ea\u6709\u5e94\u7528\u6240\u6709\u8005\u53ef\u4ee5\u8bbf\u95ee",en:"Only Owner of the blocklet can access"},description:{zh:"\u5fc5\u987b\u63d0\u4f9b\u6240\u6709\u8005\u901a\u884c\u8bc1\u624d\u80fd\u8bbf\u95ee\u5e94\u7528",en:"You must provide owner passport to access this application"}}],Cn="roles",wn=[].concat((0,l.Z)(kn),[{value:Cn,icon:Zn.Z,title:{zh:"\u6307\u5b9a\u901a\u884c\u8bc1\u53ef\u8bbf\u95ee",en:"Accessible to selected passports"},description:{zh:"\u53ea\u6709\u6307\u5b9a\u7684\u901a\u884c\u8bc1\u53ef\u4ee5\u8bbf\u95ee",en:"Only specified passports can access"}}]),Sn=function(e,n){if(e&&e.startsWith(h.WHO_CAN_ACCESS_PREFIX_ROLES)){var t=(0,E.getRolesFromAuthConfig)({whoCanAccess:e}),r=n.filter((function(e){return t.includes(e.name)}));return{access:Cn,roles:r}}return{access:e,roles:[]}},Ln=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).roles,r=void 0===t?[]:t,i=(e.configs||[]).find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO}));if(i)return Sn(i.value,r);if(n&&R()(n,"settings.whoCanAccess")&&R()(n,"settings.whoCanAccess")!==h.WHO_CAN_ACCESS.ALL)return Sn(R()(n,"settings.whoCanAccess"),r);var o=(0,E.findServiceFromMeta)(e.meta,h.NODE_SERVICES.AUTH);return R()(o,"config.whoCanAccess")?Sn(o.config.whoCanAccess,r):{access:h.WHO_CAN_ACCESS.ALL,roles:[]}};function En(e){var n=e.blocklet,t=e.ancestors,r=e.children,i=(0,ee.Z)(),a=(0,s.useState)(""),c=(0,o.Z)(a,2),d=c[0],u=c[1],f=(0,S.PE)(),p=f.t,m=f.locale,g=(0,de.h6)().api,Z=(0,Ae.DJ)().roles,v=(0,s.useState)(""),b=(0,o.Z)(v,2),j=b[0],y=b[1],k=t[0]||n,C=Ln(n,k,{roles:Z}),w=C.access,L=C.roles,P=(0,s.useState)(w),A=(0,o.Z)(P,2),T=A[0],R=A[1],O=(0,s.useState)(L),F=(0,o.Z)(O,2),I=F[0],B=F[1],z=[].concat((0,l.Z)(t.map((function(e){return e.meta.did}))),[n.meta.did]),D={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary},K=t.concat(n).map((function(e){return(0,E.getDisplayName)(e,!0)})).join(" / ");if((0,ue.wS)(n.status))return null;if("unknown"===n.status&&(0,ue.wS)(n.status))return null;var W=function(){u(!1)},q=function(e){e.stopPropagation(),u(!0)},G=function(){var e=(0,N.Z)((0,_.Z)().mark((function e(){var n;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=2;break}return e.abrupt("return");case 2:return y(!0),e.prev=3,(n=T)===Cn&&(n="".concat(h.WHO_CAN_ACCESS_PREFIX_ROLES).concat(I.map((function(e){return e.name})).join(","))),e.next=8,g.updateWhoCanAccess({input:{did:z,whoCanAccess:n}});case 8:V.Z.success(p("blocklet.config.access.updatedTip")),W(),y(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(3),y(!1),V.Z.error((0,ue.Z)(e.t0));case 17:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(){return e.apply(this,arguments)}}(),H=j||T===Cn&&!I.length;return["function"===typeof r?r({open:q}):(0,ie.jsx)(J.Z,{onClick:q,"data-cy":"action-config-component",children:(0,ie.jsx)(gn.default,{})}),d&&(0,ie.jsxs)(An,{open:!0,fullWidth:!0,title:K,onClose:W,PaperProps:{style:{minHeight:"auto"}},actions:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(U.Z,{onClick:W,color:"inherit","data-cy":"config-access-cancel",children:p("common.cancel")}),(0,ie.jsxs)(U.Z,{onClick:G,color:"primary",disabled:H,variant:"contained",autoFocus:!0,"data-cy":"config-access-confirm",children:[j&&(0,ie.jsx)(M.Z,{size:16}),p("common.confirm")]})]}),children:[(0,ie.jsx)(x.Z,{mt:4,mb:3,children:(0,ie.jsx)(Me.Z,{label:p("blocklet.config.access.description"),select:!0,fullWidth:!0,value:T,onChange:function(e){var n=e.target.value;R(n)},"data-cy":"config-access-select",SelectProps:{renderValue:function(e){var n=wn.find((function(n){return n.value===e}));return n?(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(n.icon,{style:D}),n.title[m]]}):null}},children:wn.map((function(e){return(0,ie.jsxs)(_n,{value:e.value,sx:{display:"block"},"data-cy":"config-access-opt-".concat(e.value),children:[(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center",children:[(0,ie.jsx)(e.icon,{style:D}),(0,ie.jsx)(x.Z,{children:e.title[m]})]}),(0,ie.jsx)(x.Z,{children:(0,ie.jsx)(x.Z,{className:"tip",children:e.description[m]})})]})}))})}),T===Cn&&(0,ie.jsx)(x.Z,{mt:4,mb:3,children:(0,ie.jsx)(Me.Z,{label:p("blocklet.config.access.description"),select:!0,fullWidth:!0,value:I.map((function(e){return e.name})),onChange:function(e){B(Z.filter((function(n){return(e.target.value||[]).includes(n.name)})))},SelectProps:{multiple:!0,renderValue:function(e){return(0,ie.jsx)(x.Z,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:e.map((function(e){var n=Z.find((function(n){return n.name===e}));return(0,ie.jsx)($.Z,{label:n.title},n.text)}))})}},children:Z.map((function(e){var n=e.name,t=e.title;return(0,ie.jsxs)(Q.Z,{value:n,children:[(0,ie.jsx)(Ee.Z,{checked:I.some((function(e){return e.name===n}))}),(0,ie.jsx)(vn.Z,{primary:t})]},n)}))})})]})]}En.propTypes={blocklet:u().object.isRequired,ancestors:u().array,children:u().any},En.defaultProps={ancestors:[],children:null};var Pn,An=(0,c.Z)(ke.ZP)(cn||(cn=(0,r.Z)(["\n .MuiDialogContent-root {\n padding-top: 0;\n margin-top: -32px;\n }\n .MuiToolbar-root {\n padding-right: 12px;\n }\n .ux-dialog_right {\n padding-right: 20px;\n }\n"]))),_n=(0,c.Z)(Q.Z)(dn||(dn=(0,r.Z)(["\n .tip {\n font-size: 12px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.text.secondary}));function Nn(e){var n,t,r=e.blocklet,i=e.ancestors,a=e.depth,c=(0,ee.Z)(),d=(0,S.PE)(),u=d.t,f=d.locale,p=(0,Ae.DJ)().roles,m=(0,s.useState)(!0),h=(0,o.Z)(m,2),g=h[0],Z=h[1],v=(0,ve.y0)().recommendedDomain,b=i[0]||r,j="/".concat(i.map((function(e){return e.mountPoint||"/"})).join("/"),"/").concat(r.mountPoint||"/").replace(/\/+/g,"/"),y=(0,ue.vH)({blocklet:b,domain:{value:v},mountPoint:j,params:(0,ue.f0)(b,f)}),w={fill:c.palette.text.secondary},L=a>0&&r.children.length>0,A=(0,ie.jsx)(J.Z,{size:"small",children:g?(0,ie.jsx)(C.Z,{fontSize:"inherit"}):(0,ie.jsx)(k.default,{fontSize:"inherit"})}),_=Ln(r,b,{roles:p}),N=_.access,T=_.roles;if("roles"!==N)t=kn.find((function(e){return e.value===N}))||kn[2];else{var R=T.map((function(e){return e.title})).join("/");t={title:{zh:"\u53ea\u6709 ".concat(R," \u53ef\u4ee5\u8bbf\u95ee"),en:"Only ".concat(R," can access")}}}return[(a>0||"gateway"!==r.meta.group)&&(0,ie.jsxs)(x.Z,{display:"flex",py:2,className:"component-item",justifyContent:"space-between",alignItems:"center",children:[(0,ie.jsxs)(x.Z,{pl:Math.max(2*(a-1),0),width:{xs:300,md:400},display:"flex",alignItems:"center",style:{cursor:L?"pointer":"cursor"},onClick:function(){return L&&Z(!g)},children:[L?A:(0,ie.jsx)(x.Z,{width:28}),(0,ie.jsx)(P.Z,{blocklet:r,ancestors:i}),(0,ie.jsxs)(x.Z,{ml:"16px",children:[(0,ie.jsx)(x.Z,{style:{color:"#222",fontSize:18},children:(0,E.getDisplayName)(r,!0)}),(0,ie.jsx)(x.Z,{display:"flex",alignItems:"center",children:(0,ie.jsx)(x.Z,{color:"text.secondary",children:t.title[f]})})]})]},r),(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(fn.Z,{title:u("common.visit"),children:(0,ie.jsx)("a",{target:"_blank",href:y,rel:"noopener noreferrer",title:y,children:(0,ie.jsx)(J.Z,{children:(0,ie.jsx)(mn.Z,{})})})}),(0,ie.jsx)(En,{blocklet:r,ancestors:i,children:function(e){var n=e.open;return(0,ie.jsx)(fn.Z,{title:u("common.edit"),children:(0,ie.jsx)(J.Z,{onClick:n,"data-cy":"btn-edit-".concat(r.meta.did),children:(0,ie.jsx)(hn.Z,{style:w})})})}})]},"actions")]},"group-not-gateway-box"),(0,ie.jsx)(xn.Z,{depth:a}),null!==(n=r.children)&&void 0!==n&&n.length?(0,ie.jsx)(pn.Z,{in:g,children:r.children.map((function(e){return(0,ie.jsx)(Nn,{blocklet:e,ancestors:[].concat((0,l.Z)(i),[r]),depth:a+1},"".concat(a+1,"-").concat(e.meta.did))}))},"blocklet-collapse"):null]}function Tn(){var e=(0,S.PE)().t,n=(0,ve.y0)().blocklet,t=(0,l.Z)(n.children)||[];return"gateway"!==n.meta.group&&t.unshift(n),(0,ie.jsx)(Rn,{component:"div",children:t&&t.length?[(0,ie.jsx)(x.Z,{mt:2,ml:{xs:"-12px",md:"-24px"},style:{maxWidth:1080},children:(0,ie.jsx)(Nn,{blocklet:n},"0-".concat(n.meta.did))},"top-blocklet-".concat(n.meta.did))]:(0,ie.jsx)(x.Z,{mt:8,children:(0,ie.jsx)(qe.Z,{children:e("blocklet.component.noComponent")})})})}Nn.propTypes={blocklet:u().object.isRequired,ancestors:u().array,depth:u().number},Nn.defaultProps={ancestors:[],depth:0},Tn.propTypes={};var Rn=(0,c.Z)(x.Z)(Pn||(Pn=(0,r.Z)(["\n .title {\n font-size: 1.2rem;\n font-weight: bold;\n margin-top: ",";\n margin-bottom: ",";\n &.first {\n margin-top: 0;\n }\n }\n"])),(function(e){return e.theme.spacing(5)}),(function(e){return e.theme.spacing(3)})),On=t(44784);var Fn=function(){var e,n,t,r=(0,de.h6)().api,o=(0,ve.y0)().blocklet,a=(0,S.PE)().t,l=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s=Object.assign({enabled:!1,domain:"",clientId:""},(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.oauth)||void 0===t?void 0:t.auth0)||{}),c=(0,Xe.cI)({defaultValues:Je()(s,["domain","clientId","enabled"])}),d=c.handleSubmit,u=c.control,f=c.formState,p=c.watch,m=c.reset,h=p("enabled"),g=(0,Qe.Z)(function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var t,i,o,s,c;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.configOAuth({input:{did:l,oauth:JSON.stringify({auth0:n})}});case 3:o=e.sent,s=o.blocklet,c=Object.assign({enabled:!1,domain:"",clientId:""},(null===s||void 0===s||null===(t=s.settings)||void 0===t||null===(i=t.oauth)||void 0===i?void 0:i.auth0)||{}),m(c),V.Z.success(a("oauth.saveSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),V.Z.error(e.t0.message||a("oauth.saveFailed"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}()),Z=(0,Qe.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("oauth.auth0.domainDescribe")})),v=(0,Qe.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("oauth.auth0.clientIdDescribe")})),b=(0,Qe.Z)((function(){return!0}));return(0,ie.jsx)(x.Z,{children:(0,ie.jsxs)("form",{onSubmit:d(g),disabled:!0,children:[(0,ie.jsx)(Xe.Qr,{name:"enabled",control:u,render:function(e){var n=e.field;return(0,ie.jsx)(Le.Z,{control:(0,ie.jsx)(On.Z,(0,i.Z)({checked:n.value,style:{marginRight:"6px"}},n)),label:a("oauth.auth0.enable"),sx:{marginBottom:2,ml:1}})}}),(0,ie.jsx)(Xe.Qr,{name:"domain",control:u,rules:{validate:h?Z:b},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{label:a("oauth.auth0.domain"),error:!!f.errors[t.name],helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(Xe.Qr,{name:"clientId",control:u,rules:{validate:h?v:b},render:function(e){var n,t=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,children:(0,ie.jsx)(Me.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("oauth.auth0.clientId"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,ie.jsx)(He.Z,{type:"submit",variant:"contained",onSubmit:d(g),disabled:!f.isDirty,children:a("oauth.save")})]})})},In=t(77150),Bn=t(24103),zn={ttl:604800};function Dn(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?86400*e.ttl:e.ttl/86400;return(0,i.Z)((0,i.Z)({},e),{},{ttl:n})}function Un(){var e,n,t=(0,de.h6)().api,r=(0,ve.y0)().blocklet,o=null===r||void 0===r||null===(e=r.meta)||void 0===e?void 0:e.did,a=Object.assign({},zn,(null===r||void 0===r||null===(n=r.settings)||void 0===n?void 0:n.session)||{}),l=(0,Xe.cI)({defaultValues:Je()(Dn(a),["ttl"])}),s=l.handleSubmit,c=l.control,d=l.formState,u=l.reset,f=(0,S.PE)().t,p=(0,Qe.Z)(function(){var e=(0,N.Z)((0,_.Z)().mark((function e(n){var r,i,a,l;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.updateAppSessionConfig({input:{did:o,config:Dn(n,!0)}});case 3:i=e.sent,a=i.blocklet,l=Object.assign({},zn,Je()((null===a||void 0===a||null===(r=a.settings)||void 0===r?void 0:r.session)||{},["ttl"])),u(Dn(l)),V.Z.success(f("common.configSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),V.Z.error(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}());return(0,ie.jsx)(x.Z,{children:(0,ie.jsxs)("form",{onSubmit:s(p),disabled:!0,children:[(0,ie.jsx)(Xe.Qr,{name:"ttl",control:c,render:function(e){var n=e.field;return(0,ie.jsx)(Ge.Z,{fullWidth:!0,sx:{mb:2},children:(0,ie.jsxs)(Bn.Z,{px:3,children:[(0,ie.jsx)(x.Z,{mx:-3,my:.5,children:f("blocklet.config.session.ttl",{day:n.value})}),(0,ie.jsx)(In.ZP,(0,i.Z)((0,i.Z)({},n),{},{defaultValue:7,step:1,marks:[{value:1,label:f("blocklet.config.session.day",{day:1})},{value:7,label:f("blocklet.config.session.days",{day:7})},{value:14,label:f("blocklet.config.session.days",{day:14})},{value:21,label:f("blocklet.config.session.days",{day:21})},{value:30,label:f("blocklet.config.session.days",{day:30})}],min:1,max:30,valueLabelDisplay:"auto",style:{maxWidth:"360px"}}))]})})}}),(0,ie.jsx)(He.Z,{type:"submit",variant:"contained",onSubmit:s(p),disabled:!d.isDirty,children:f("oauth.save")})]})})}var Kn=t(82555),Wn=t(30333),qn=t(75760),Vn=t(97038),Gn=t(12673),Mn=t(92706),Hn=t.n(Mn),Yn=(0,s.forwardRef)((function(e,n){var t=(0,s.useContext)(S.RD).t,r=(0,Gn.Z)({show:!1,title:"",content:"",onConfirm:Hn(),onCancel:Hn(),loading:!1}),i=(0,Qe.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.show=!0,r.title=e.title,r.content=e.content,r.onConfirm=e.onConfirm||Hn(),r.onCancel=e.onCancel||Hn(),r.loading=!1})),o=(0,Qe.Z)((function(){r.title="",r.content="",r.onConfirm=Hn(),r.onCancel=Hn()})),a=(0,Qe.Z)((function(){r.show=!1,setTimeout((function(){o()}),300)})),l=(0,Qe.Z)((function(){a(),null===r||void 0===r||r.onCancel()}),[]),c=(0,Qe.Z)((0,N.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.loading=!0,e.prev=1,e.next=4,null===r||void 0===r?void 0:r.onConfirm(a);case 4:return e.prev=4,r.loading=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[1,,4,7]])}))),[]);return(0,s.useImperativeHandle)(n,(function(){return{open:i,close:a}}),[i,a]),(0,ie.jsx)(ke.I4,{open:r.show,title:r.title,onConfirm:c,onCancel:l,confirmButton:{text:t("common.confirm"),props:{variant:"contained",color:"primary",loading:r.loading}},cancelButton:{text:t("common.cancel"),props:{variant:"outlined",color:"primary"}},children:r.content})}));var Jn=t(64886),Qn=t(42080),Xn=t.n(Qn),$n=t(75506),et=t.n($n),nt=t(47685),tt=t(13260),rt=t(82434),it=t.n(rt),ot=(0,s.forwardRef)((function(e,n){var t,r,i=(0,s.useContext)(S.RD).t,o=(0,ve.y0)().blocklet,a=(0,de.h6)().api,l=(0,Gn.Z)({mode:"view",show:!1,data:{},callback:Hn()}),c=(0,nt.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,u=(0,Qe.Z)((function(){l.mode="view",l.data={},l.callback=Hn()}),[]),f=(0,Qe.Z)((function(){l.show=!1,setTimeout((function(){u()}),d)}),[]),p=(0,Qe.Z)((function(e){l.mode="view",l.show=!0,l.data=e}),[]),h=(0,Qe.Z)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn();l.mode="approve",l.show=!0,l.data=e,l.callback=n}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:p,close:f,approve:h}}),[p,f,h]);var g=(0,Ve.Z)((function(){if(!l.show)return[];l.data.migratedFrom=[l.data.appId,l.data.appPid];var e=["appName","appLogo","appId","appPid","migratedFrom","appDescription","appUrl","version","appliedAt","status","serverId","serverVersion"];return!1!==l.data.isMaster&&Xn()(e,"appliedAt","status"),e.map((function(e){var n=i("federated.info.".concat(e)),t=l.data[e];if("appName"===e&&l.data.isMaster&&(t=(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(Kn.Z,{component:Wn.Z}),t]})),["appId","appPid","serverId"].includes(e)&&(t=(0,ie.jsx)(tt.kL,{children:t})),["appUrl"].includes(e)&&(t=(0,ie.jsx)(x.Z,{component:"a",href:t,target:"_blank",children:t})),["appLogo"].includes(e)){var r=it()(t)?t:m()(l.data.appUrl||"",t||"");try{var o=new URL(r);o.searchParams.set("imageFilter","resize"),o.searchParams.set("w","80"),o.searchParams.set("h","80"),t=(0,ie.jsx)("img",{src:o.href,width:"60",height:"60",alt:l.data.appName})}catch(a){t=(0,ie.jsx)("img",{src:r,width:"60",height:"60",alt:l.data.appName})}}("status"===e&&(t=t&&i("federated.status.".concat(t))),"migratedFrom"===e)&&(t=(l.data.migratedFrom||[]).filter((function(e){return![l.data.appId,l.data.appPid].includes(e)})).map((function(e){return(0,ie.jsx)(tt.kL,{children:e})})));return et()(t)&&(t="-"),{name:n,value:t}}))}),[l.data]),Z="approve"===l.mode,v=(0,Qe.Z)((0,N.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.auditFederatedLogin({input:{memberPid:l.data.appPid,did:o.appPid,status:"rejected"}});case 2:f(),null===l||void 0===l||l.callback(!1);case 4:case"end":return e.stop()}}),e)})))),b=(0,Qe.Z)((0,N.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.auditFederatedLogin({input:{memberPid:l.data.appPid,did:o.appPid,status:"approved"}});case 2:f(),null===l||void 0===l||l.callback(!0);case 4:case"end":return e.stop()}}),e)}))));return(0,ie.jsx)(ke.ZP,{open:l.show,title:i(Z?"federated.approveToJoinLogin":"federated.siteDetail"),onClose:f,actions:Z?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(He.Z,{color:"error",variant:"contained",onClick:v,children:i("common.reject")}),(0,ie.jsx)(He.Z,{variant:"contained",onClick:b,children:i("common.approve")})]}):(0,ie.jsx)(He.Z,{variant:"outlined",onClick:f,children:i("common.close")}),children:g.map((function(e){return(0,ie.jsx)(Jn.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:180,name:e.name,children:e.value},e.name)}))})})),at=ot,lt=t(79842),st=t(85408),ct=t.n(st),dt=(0,s.forwardRef)((function(e,n){var t,r,i=(0,nt.Fg)(),o=(null===i||void 0===i||null===(t=i.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,a=(0,s.useContext)(S.RD).t,l=(0,Gn.Z)({show:!1,data:{link:""}}),c=(0,Qe.Z)((function(){l.data.link=""}),[]),d=(0,Qe.Z)((function(){l.show=!1,setTimeout((function(){c()}),o)}),[]),u=(0,Qe.Z)((function(e){var n=e.link;l.show=!0,l.data.link=n}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:u,close:d}}),[u,d]);var f=(0,Qe.Z)((function(){ct()(l.data.link),d()}),[d]);return(0,ie.jsxs)(ke.ZP,{open:l.show,title:a("federated.joinFederatedLogin"),onClose:d,PaperProps:{style:{minHeight:"unset"}},actions:(0,ie.jsx)(U.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:f,children:a("common.copyAndClose")}),children:[(0,ie.jsx)(x.Z,{mb:1,children:a("federated.inviteJoinFederatedLoginDescription")}),(0,ie.jsx)(x.Z,{sx:{"& .copy-button":{display:"none !important"}},children:(0,ie.jsx)(lt.Z,{language:"shell",style:{marginBottom:0},children:l.data.link})})]})}));function ut(e){var n,t,r,i,a,l=e.mode,c=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useContext)(S.RD),f=u.t,p=u.locale,m=(0,ve.y0)(),h=m.blocklet,g=m.actions.refreshBlocklet,Z=function(){var e=(0,s.useRef)(null),n=(0,Qe.Z)((function(){for(var n,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];null===(n=e.current)||void 0===n||n.open.apply(n,r)})),t=(0,Qe.Z)((function(){for(var n,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];null===(n=e.current)||void 0===n||n.close.apply(n,r)})),r={open:n,close:t};return{confirmHolder:(0,ie.jsx)(Yn,{ref:e}),confirmApi:r}}(),v=Z.confirmApi,b=Z.confirmHolder,j=(0,de.h6)().api,y=(null===(n=h.settings.federated)||void 0===n?void 0:n.sites)||[],k=(null===(t=h.settings.federated)||void 0===t?void 0:t.config)||{autoLogin:!1},C=!1!==k.isMaster,w=(0,Qe.Z)((function(e){var n;null===(n=d.current)||void 0===n||n.open(e)})),L=(0,Qe.Z)((function(e){var n;null===(n=d.current)||void 0===n||n.approve(e,g)})),E=(0,Qe.Z)((function(e){v.open({title:f("federated.disableFederatedLogin"),content:f("federated.disableFederatedLoginDescription"),onConfirm:function(n){return(0,N.Z)((0,_.Z)().mark((function t(){return(0,_.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.auditFederatedLogin({input:{memberPid:e.appPid,did:h.appPid,status:"revoked"}});case 2:n();case 3:case"end":return t.stop()}}),t)})))()}})})),P=(0,Qe.Z)((function(e){v.open({title:f("federated.enableFederatedLogin"),content:f("federated.enableFederatedLoginDescription"),onConfirm:function(n){return(0,N.Z)((0,_.Z)().mark((function t(){return(0,_.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.auditFederatedLogin({input:{memberPid:e.appPid,did:h.appPid,status:"approved"}});case 2:n();case 3:case"end":return t.stop()}}),t)})))()}})})),A=(0,Ve.Z)((function(){var e=[{label:f("common.name"),name:"appName",options:{customBodyRenderLite:function(e){var n=y[e],t=!1!==n.isMaster;return(0,ie.jsx)(x.Z,{display:"inline-block",children:(0,ie.jsxs)(x.Z,{component:"a",display:"flex",alignItems:"center",href:n.appUrl,target:"_blank",onClick:function(e){e.stopPropagation()},children:[t&&(0,ie.jsx)(Kn.Z,{component:Wn.Z,style:{marginRight:"4px"}}),n.appName]})})}}},{label:f("common.did"),name:"appId",options:{customBodyRenderLite:function(e){var n=y[e];return(0,ie.jsx)(Vn.Z,{children:n.appId})}}},{label:f("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n=y[e],t=!1!==n.isMaster;return(0,ie.jsx)(x.Z,{children:t?"-":f("federated.status.".concat(n.status))})}}}];return C&&e.push({label:f("common.actions"),name:"actions",options:{customBodyRenderLite:function(e){var n=y[e],t=!1!==n.isMaster;return(0,ie.jsx)(x.Z,{display:"flex",gap:1,children:t?(0,ie.jsxs)(ie.Fragment,{children:["rejected"===n.status&&(0,ie.jsx)(U.Z,{variant:"contained",color:"error",size:"small",onClick:function(e){e.stopPropagation()},children:f("federated.status.rejected")}),"revoked"===n.status&&(0,ie.jsx)(U.Z,{variant:"contained",color:"secondary",size:"small",onClick:function(e){e.stopPropagation()},children:f("federated.status.revoked")})]}):(0,ie.jsxs)(ie.Fragment,{children:["pending"===n.status&&(0,ie.jsx)(U.Z,{variant:"contained",color:"primary",size:"small",onClick:function(e){e.stopPropagation(),L(n)},children:f("federated.status.pending")}),"approved"===n.status&&(0,ie.jsx)(U.Z,{variant:"contained",color:"error",size:"small",onClick:function(e){e.stopPropagation(),E(n)},style:{whiteSpace:"nowrap"},children:f("federated.revoke")}),"revoked"===n.status&&(0,ie.jsx)(U.Z,{variant:"contained",color:"warning",size:"small",onClick:function(e){e.stopPropagation(),P(n)},style:{whiteSpace:"nowrap"},children:f("federated.approve")})]})})}}}),e}),[k.appId,y,C]),T=(0,Ve.Z)((function(){return{sort:!0,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick:function(e,n){var t=n.dataIndex,r=y[t];w(r)}}}),[]),R=(0,Qe.Z)((function(){var e,n=h.environments.find((function(e){return e.key===q.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL}));null!==n&&void 0!==n&&n.value?null===(e=c.current)||void 0===e||e.open({link:n.value}):V.Z.error(f("federated.failedToGetFederatedLoginLink"))}),[null===(r=h.site)||void 0===r||null===(i=r.domainAliases)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.href]),O=(0,s.useState)(k.autoLogin||!1),F=(0,o.Z)(O,2),I=F[0],B=F[1],z=(0,Qe.Z)((function(){v.open({title:f(I?"federated.disableFederatedAutoLogin":"federated.enableFederatedAutoLogin"),content:f(I?"federated.disableFederatedAutoLoginDescription":"federated.enableFederatedAutoLoginDescription"),onConfirm:function(e){return(0,N.Z)((0,_.Z)().mark((function n(){return(0,_.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j.configFederated({input:{did:h.appPid,autoLogin:!I}});case 2:B((function(e){return!e})),e();case 4:case"end":return n.stop()}}),n)})))()}})}),[B,I]),D=(0,Qe.Z)((function(){v.open({title:f("federated.quitFederatedLogin"),content:f("federated.quitFederatedLoginDescription"),onConfirm:function(e){return(0,N.Z)((0,_.Z)().mark((function n(){return(0,_.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j.quitFederatedLogin({input:{did:h.appPid}});case 2:e();case 3:case"end":return n.stop()}}),n)})))()}})})),K=(0,Qe.Z)((function(){v.open({title:f("federated.disbandFederatedLogin"),content:f("federated.disbandFederatedLoginDescription"),onConfirm:function(e){return(0,N.Z)((0,_.Z)().mark((function n(){return(0,_.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j.disbandFederatedLogin({input:{did:h.appPid}});case 2:e();case 3:case"end":return n.stop()}}),n)})))()}})})),W=[];return"master"!==l?W.push((0,ie.jsx)(U.Z,{size:"small",variant:"contained",color:"error",onClick:D,sx:{ml:1},children:f("federated.quitFederatedLogin")},"quitFederatedLogin")):(W.push((0,ie.jsx)(U.Z,{size:"small",variant:"contained",onClick:R,sx:{ml:1},children:f("federated.inviteJoinFederatedLogin")},"inviteJoinFederatedLogin")),W.push((0,ie.jsx)(U.Z,{color:"error",size:"small",variant:"contained",onClick:K,sx:{ml:1},children:f("federated.disbandFederatedLogin")},"disbandFederatedLogin"))),(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(qn.Z,{className:"main-table",locale:p,data:y,columns:A,customButtons:W,title:(0,ie.jsx)(x.Z,{className:"table-toolbar-left",children:"master"===l?f("oauth.federated"):(0,ie.jsx)(Le.Z,{sx:{ml:0,"& span.MuiSwitch-switchBase":{display:"flex"},"& span.MuiSwitch-track":{display:"block"}},control:(0,ie.jsx)(On.Z,{checked:I,style:{marginRight:"6px"},onChange:z}),label:f("federated.enableFederatedAutoLogin")})}),options:T}),b,(0,ie.jsx)(dt,{ref:c}),(0,ie.jsx)(at,{ref:d})]})}ut.propTypes={mode:u().oneOf(["member","master"])},ut.defaultProps={mode:"member"};var ft=ut,pt=(0,s.forwardRef)((function(e,n){var t,r,i=(0,s.useContext)(S.RD).t,o=(0,de.h6)().api,a=(0,ve.y0)().blocklet,l=null===a||void 0===a?void 0:a.appPid,c=(0,nt.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,u=(0,Gn.Z)({show:!1,appUrl:"",appUrlError:"",callback:Hn()}),f=(0,Qe.Z)((function(){u.appUrl="",u.appUrlError="",u.callback=Hn()}),[]),p=(0,Qe.Z)((function(){u.show=!1,setTimeout((function(){f()}),d)}),[]),m=(0,Qe.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hn();u.show=!0,u.callback=e}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:m,close:p}}),[m,p]);var h=(0,Qe.Z)((function(e){if(!e)throw new Error(i("federated.federatedJoinAppUrlRequired"));if(!it()(e))throw new Error(i("federated.federatedJoinAppUrlInvalid"))})),g=(0,Qe.Z)((0,N.Z)((0,_.Z)().mark((function e(){var n;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h(u.appUrl),e.next=4,o.joinFederatedLogin({input:{did:l,appUrl:u.appUrl}});case 4:n=e.sent,u.show=!1,p(),null===u||void 0===u||u.callback(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),u.appUrlError=e.t0.message;case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),[p,l]);return(0,ie.jsxs)(ke.ZP,{open:u.show,title:i("federated.joinFederatedLogin"),onClose:p,PaperProps:{style:{minHeight:"unset"}},actions:(0,ie.jsx)(U.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:g,children:i("common.confirm")}),children:[(0,ie.jsx)(x.Z,{mb:1,children:i("federated.joinFederatedLoginDescription")}),(0,ie.jsx)(Me.Z,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:i("federated.federatedJoinAppUrl"),label:i("federated.federatedJoinAppUrl"),value:u.appUrl,error:!!u.appUrlError,helperText:u.appUrlError||"eg: https://www.arcblock.io",onChange:function(e){u.appUrl=e.target.value}})]})})),mt=pt;function ht(){var e,n,t,r,i=(0,s.useRef)(null),o=(0,s.useRef)(null),a=(0,s.useContext)(S.RD).t,l=(0,ve.y0)(),c=l.blocklet,d=l.actions.refreshBlocklet,u=(0,Qe.Z)((function(){var e,n,t,r=null===(e=c.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href;if(r)try{var o,l=new URL(r);null===(o=i.current)||void 0===o||o.open({link:l.origin})}catch(s){V.Z.error(a("federated.failedToGetFederatedLoginLink"))}}),[null===(e=c.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href]),f=(0,Qe.Z)((function(){var e;null===(e=o.current)||void 0===e||e.open((function(){d()}))}),[d]);if((null===(r=c.settings.federated)||void 0===r?void 0:r.sites.length)>0){var p,m=!1!==(null===(p=c.settings.federated)||void 0===p?void 0:p.config.isMaster);return(0,ie.jsx)(ft,{mode:m?"master":"member"})}return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(x.Z,{display:"flex",flexDirection:"column",gap:2,justifyContent:"center",alignItems:"center",minHeight:"200px",children:[(0,ie.jsx)(U.Z,{variant:"contained",onClick:u,children:a("federated.inviteJoinFederatedLogin")}),(0,ie.jsx)(D.Z,{sx:{width:"150px",color:"rgba(0, 0, 0, 0.3)"},children:"OR"}),(0,ie.jsx)(U.Z,{variant:"outlined",onClick:f,children:a("federated.joinFederatedLogin")})]}),(0,ie.jsx)(dt,{ref:i}),(0,ie.jsx)(mt,{ref:o})]})}var xt,gt=function(){var e=(0,s.useContext)(S.RD).t,n=[{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.commonSettings")}),value:"settings"},{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.federated")}),value:"federated"},{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:"Auth0"}),value:"auth0"},{label:(0,ie.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.moreLogin")}),value:"more"}],t=(0,s.useState)(n[0].value),r=(0,o.Z)(t,2),i=r[0],a=r[1],l=(0,Ve.Z)((function(){return{auth0:(0,ie.jsx)(Fn,{}),federated:(0,ie.jsx)(ht,{}),more:(0,ie.jsx)(x.Z,{children:(0,ie.jsx)(qe.Z,{children:e("oauth.comingSoon")})}),settings:(0,ie.jsx)(x.Z,{children:(0,ie.jsx)(Un,{})})}}),[e]);return(0,ie.jsxs)(x.Z,{children:[(0,ie.jsx)(L.Z,{tabs:n,current:i,onChange:a}),(0,ie.jsx)(x.Z,{marginTop:"10px",children:l[i]})]})},Zt=["blocklet","onUpdate"],vt=function e(n){var t=n.tabs,r=n.blocklet,i=n.ancestors,o=void 0===i?[]:i,a=n.depth,s=void 0===a?1:a,c=n.t,d=[].concat((0,l.Z)(o.map((function(e){return e.meta.did}))),[r.meta.did]).join("/"),u=!(null!==o&&void 0!==o&&o.length);t.push({label:(0,ie.jsxs)(x.Z,{pl:2*Math.max(1,s-1),display:"flex",alignItems:"center",justifyContent:"flex-start",children:[u?(0,ie.jsx)(A.Z,{size:24,blocklet:r}):(0,ie.jsx)(P.Z,{size:24,blocklet:r,ancestors:o}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:u?c("blocklet.component.container"):(0,E.getDisplayName)(r,!0)})})]},d),value:d}),r.children.length>0&&r.children.forEach((function(n){e({tabs:t,blocklet:n,ancestors:[].concat((0,l.Z)(o),[r]),depth:s+1,t:c})}))};function bt(e){var n=e.blocklet,t=e.onUpdate,r=(0,a.Z)(e,Zt),l=(0,s.useContext)(S.RD).t,c=(0,de.h6)(),d=c.info,u=c.inService,p=(0,s.useState)(!0),E=(0,o.Z)(p,2),P=E[0],A=E[1],_=(0,w.useSearchParams)(),N=(0,o.Z)(_,2),T=N[0],R=N[1],O=T.get("tab")||"general",F=[{label:(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-general",children:[(0,ie.jsx)(Z.Z,{sx:{fontSize:24}}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:l("common.general")})})]},"general"),value:"general"},{label:(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-access",children:[(0,ie.jsx)(v.Z,{sx:{fontSize:24}}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:l("common.access")})})]},"access"),value:"access"},{label:(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-oauth",children:[(0,ie.jsx)(b.Z,{sx:{fontSize:24}}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:l("common.login")})})]},"oauth"),value:"oauth"},{label:(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-notification",children:[(0,ie.jsx)(j.Z,{sx:{fontSize:24}}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:l("common.notification")})})]},"notification"),value:"notification"},{label:(0,ie.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-preference",children:[(0,ie.jsx)(x.Z,{ml:-2,style:{transform:"translateY(2px)"},children:P?(0,ie.jsx)(C.Z,{fontSize:"inherit"}):(0,ie.jsx)(k.default,{fontSize:"inherit"})}),(0,ie.jsx)(y.Z,{sx:{fontSize:24}}),(0,ie.jsx)(x.Z,{ml:"16px",children:(0,ie.jsx)(x.Z,{style:{color:"#222"},children:l("common.preferences")})})]},"preference"),value:"preference"}];P&&vt({tabs:F,blocklet:n,t:l});var I=null;if("general"===O)I=(0,ie.jsx)(Ke,{blocklet:n,onUpdate:t});else if("access"===O)I=(0,ie.jsx)(Tn,{});else if("oauth"===O)I=(0,ie.jsx)(gt,{});else if("notification"===O)I=(0,ie.jsx)(un,{});else{var B=u?h.WELLKNOWN_SERVICE_PATH_PREFIX:d.routing.adminPath,z=new URLSearchParams;u||z.set("authKey","__sst"),z.set("schemaKey",m()(window.location.origin,B,"/api/preferences?id=".concat(encodeURIComponent(O)))),I=(0,ie.jsx)(f.Z,{url:"".concat(m()(window.location.origin,B,"/hosted/form-collector/"),"?").concat(z.toString()),width:"100%",height:"100%",frameBorder:0,styles:{border:0}})}return(0,ie.jsx)(jt,(0,i.Z)((0,i.Z)({},r),{},{children:(0,ie.jsxs)(g.ZP,{container:!0,spacing:4,columns:24,children:[(0,ie.jsx)(g.ZP,{item:!0,sm:7,md:5,children:(0,ie.jsx)(L.Z,{tabs:F,current:O,orientation:"vertical",onChange:function(e){"preference"===e?A(!P):R((function(n){return"general"===e?n.delete("tab"):n.set("tab",e),n}))},sx:{borderRight:1,height:"100%",borderColor:"divider"}})}),(0,ie.jsx)(g.ZP,{item:!0,sm:17,md:19,children:(0,ie.jsx)(x.Z,{style:{minHeight:"66vh",height:"100%",position:"relative",overflow:"hidden"},children:I})})]})}))}bt.propTypes={blocklet:u().object.isRequired,onUpdate:u().func},bt.defaultProps={onUpdate:function(){}};var jt=c.Z.div(xt||(xt=(0,r.Z)(["\n .MuiTab-root {\n text-align: left;\n align-items: flex-start;\n font-weight: normal;\n }\n .Mui-selected {\n font-weight: bold;\n }\n"])))},78410:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(33028),i=t(32723),o=t(34795),a=t(96234),l=t(59740),s=t(5057),c=t(86229),d=t(28726),u=t(44846),f=t(68420),p=t(99875),m=t(58238),h=t(70461),x=t(96266),g=["teamDid","size"];function Z(e){var n=e.teamDid,t=e.size,Z=void 0===t?"small":t,v=(0,l.Z)(e,g),b=(0,f.PE)().t,j=(0,m.h6)().api,y=(0,s.useState)(!1),k=(0,a.Z)(y,2),C=k[0],w=k[1],S=(0,s.useState)(null),L=(0,a.Z)(S,2),E=L[0],P=L[1],A=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var t,r;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,w(!0),e.next=4,j.clearCache({input:{teamDid:n}});case 4:r=e.sent,c.Z.success(b("blocklet.config.clearCache.success",{count:(null===(t=r.removed)||void 0===t?void 0:t.length)||0})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),c.Z.error((0,p.Z)(e.t0));case 11:return e.prev=11,w(!1),P(null),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[0,8,11,15]])})));return function(){return e.apply(this,arguments)}}(),_={title:b("blocklet.config.clearCache.title"),description:b("blocklet.config.clearCache.description"),confirm:b("common.confirm"),cancel:b("common.cancel"),onConfirm:A,onCancel:function(){w(!1),P(null)}};return(0,x.jsxs)("div",(0,r.Z)((0,r.Z)({},v),{},{children:[(0,x.jsxs)(d.Z,{onClick:function(){return P(_)},color:"error",variant:"outlined",size:Z,children:[C?(0,x.jsx)(u.Z,{size:16,style:{marginRight:5}}):null,b("blocklet.config.clearCache.action")]}),E&&(0,x.jsx)(h.Z,{title:E.title,description:E.description,confirm:E.confirm,cancel:E.cancel,onConfirm:E.onConfirm,onCancel:E.onCancel})]}))}},50185:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(33028),i=t(59740),o=t(5057),a=t(55898),l=t.n(a),s=t(12937),c=t(68420),d=t(96266),u=["children"];function f(e){var n=e.children,t=(0,i.Z)(e,u),a=(0,o.useContext)(c.RD).t;return(0,d.jsx)(s.Z,(0,r.Z)((0,r.Z)({tip:a("common.copyTip"),copiedTip:a("common.copiedTip")},t),{},{children:n}))}f.propTypes={children:l().any.isRequired}},28641:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(33028),i=t(32723),o=t(34795),a=t(96234),l=t(59740),s=t(5057),c=t(55898),d=t.n(c),u=t(39948),f=t(47020),p=t(44846),m=t(13727),h=t(56184),x=t(67680),g=t(35406),Z=t(11875),v=t(95890),b=t(96266),j=["label","disabled","required","initialValue","onChange","placeholder","style","onSubmit","secure","triggers","formatterBeforeSubmit"],y=function(e,n,t){return null===e&&n&&t?"******":e?n?"******":e:""};function k(e){var n=e.label,t=e.disabled,c=e.required,d=e.initialValue,k=e.onChange,C=e.placeholder,w=e.style,S=e.onSubmit,L=e.secure,E=e.triggers,P=e.formatterBeforeSubmit,A=(0,l.Z)(e,j),_=(0,s.useState)(!1),N=(0,a.Z)(_,2),T=N[0],R=N[1],O=(0,s.useState)(!1),F=(0,a.Z)(O,2),I=F[0],B=F[1],z=(0,s.useState)(L&&"__encrypted__"===d?null:d),D=(0,a.Z)(z,2),U=D[0],K=D[1],W=(0,s.useState)(U),q=(0,a.Z)(W,2),V=q[0],G=q[1],M=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,e.next=4,S(V);case 4:!1===e.sent?G(U):(n=V,"function"===typeof P&&(n=P(V)),G(n),K(n)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),G(U);case 11:return e.prev=11,B(!1),R(!1),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[1,8,11,15]])})));return function(){return e.apply(this,arguments)}}(),H=function(e){G(e),k(e)},Y=T?(0,b.jsx)(f.Z,(0,r.Z)({style:{flex:1},fullWidth:!0,value:V,onChange:function(e){H(e.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:C,onKeyDown:function(e){"Enter"===e.key&&M()},disabled:t,type:L?"password":"text"},A)):(0,b.jsx)(u.Z,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:y(V,L,d)});return(0,b.jsx)(Z.Z,{className:"form",style:w,children:(0,b.jsxs)(u.Z,{className:"form-item",children:[(0,b.jsxs)(u.Z,{className:"form-item-label",children:[n,c&&(0,b.jsx)(g.Z,{})]}),(0,b.jsxs)(u.Z,{className:"form-item-body",children:[(0,b.jsx)(u.Z,{className:"form-item-input",children:Y}),(0,b.jsx)(u.Z,{className:"form-item-action",children:T?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.Z,{"data-cy":"schema-form-item-confirm",onClick:M,disabled:t||I,size:"large",children:I?(0,b.jsx)(p.Z,{size:24}):(0,b.jsx)(h.Z,{})}),(0,b.jsx)(x.Z,{"data-cy":"schema-form-item-cancel",onClick:function(){G(U),R(!1)},disabled:t||I,size:"large",children:(0,b.jsx)(m.default,{})})]}):(0,b.jsx)(v.Z,{triggers:E,onEnterEdit:function(){return R(!0)},disabled:t})})]})]})})}k.propTypes={style:d().object,onSubmit:d().func,onChange:d().func,label:d().string,initialValue:d().string,placeholder:d().string,required:d().bool,disabled:d().bool,secure:d().bool,triggers:d().array,formatterBeforeSubmit:d().func},k.defaultProps={style:{},onSubmit:function(){},onChange:function(){},label:"",initialValue:"",placeholder:"",required:!1,disabled:!1,secure:!1,triggers:[],formatterBeforeSubmit:null}},11875:function(e,n,t){var r,i=t(71171),o=t(33518),a=t(39948);n.Z=(0,o.Z)(a.Z)(r||(r=(0,i.Z)(["\n width: 100%;\n flex-grow: 1;\n overflow-y: auto;\n "," {\n width: 100%;\n flex-shrink: 0;\n padding: 0 24px;\n transform: translate(0, 0);\n /* max-height: 60vh; */\n }\n\n .form-item {\n width: 100%;\n margin-bottom: 24px;\n position: relative;\n "," {\n flex-wrap: wrap;\n justify-content: space-between;\n width: 100%;\n flex-shrink: 0;\n }\n }\n\n .form-item-body {\n display: flex;\n align-items: center;\n width: 100%;\n margin-top: 4px;\n }\n\n .form-item-label {\n line-height: 1.2;\n font-size: 14px;\n color: #888;\n font-weight: bold;\n\n "," {\n text-align: left;\n width: auto;\n flex-grow: 1;\n }\n }\n\n .form-item-input {\n flex-grow: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &.slot {\n height: 40px;\n line-height: 40px;\n background: #f8f8f8;\n font-size: 16px;\n\n .MuiChip-root {\n margin-top: -4px;\n }\n }\n\n .MuiSelect-select {\n padding: 8px;\n }\n }\n\n .form-item-action {\n // width: 100px;\n text-align: left;\n margin-left: 12px;\n flex-shrink: 0;\n "," {\n width: auto;\n margin-left: 0px;\n }\n .MuiIconButton-root {\n padding: 8px;\n svg {\n fill: #888;\n }\n &.Mui-disabled {\n opacity: 0.4;\n }\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.down("md")}))},95890:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(96234),i=t(5057),o=t(55898),a=t.n(o),l=t(24558),s=t(67680),c=t(56556),d=t(49127),u=t(49390),f=t(37200),p=t(25228),m=t(24202),h=t(74490),x=t(1733),g=t(96266);function Z(e){var n=e.triggers,t=e.onEnterEdit,o=e.disabled,a=i.useRef(null),Z=i.useState(!1),v=(0,r.Z)(Z,2),b=v[0],j=v[1];return 0===n.length?(0,g.jsx)(s.Z,{"data-cy":"schema-form-item-edit",onClick:t,disabled:o,size:"large",children:(0,g.jsx)(l.Z,{})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(d.Z,{variant:"outlined",ref:a,"aria-label":"split button",children:[(0,g.jsx)(c.Z,{"data-cy":"schema-form-item-edit",onClick:t,disabled:o,size:"large",children:(0,g.jsx)(l.Z,{})}),(0,g.jsx)(c.Z,{size:"small","aria-controls":b?"split-button-menu":void 0,"aria-expanded":b?"true":void 0,onClick:function(){j((function(e){return!e}))},children:(0,g.jsx)(u.Z,{})})]}),(0,g.jsx)(m.Z,{sx:{zIndex:9999},open:b,anchorEl:a.current,role:void 0,placement:"bottom-end",children:(0,g.jsx)(p.Z,{children:(0,g.jsx)(f.d,{onClickAway:function(e){a.current&&a.current.contains(e.target)||j(!1)},children:(0,g.jsx)(x.Z,{id:"split-button-menu",autoFocusItem:!0,children:n.map((function(e){return(0,g.jsx)(h.Z,{onClick:function(){return n=e.handler,j(!1),void n();var n},children:e.title},e.key)}))})})})})]})}Z.propTypes={triggers:a().arrayOf(a().shape({key:a().string.isRequired,title:a().string.isRequired,handler:a().func.isRequired})),onEnterEdit:a().func.isRequired,disabled:a().bool.isRequired},Z.defaultProps={triggers:[]}},35406:function(e,n,t){var r,i=t(71171),o=t(33518).Z.span(r||(r=(0,i.Z)(["\n color: ",";\n &::before {\n content: '*';\n }\n"])),(function(e){return e.theme.palette.error.main}));n.Z=o},54063:function(e,n,t){t.d(n,{C:function(){return r}});var r="true"===localStorage.getItem("enableDebug")}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9517.ac659c32.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9517],{79517:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var o=r(t),i=r(n);function a(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(c){s=!0,o=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function f(e,t){if(null==e)return{};var n,r,o=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){return m(e)||a(e,t)||p(e,t)||v()}function m(e){if(Array.isArray(e))return e}function p(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=g(e,"string");return"symbol"===typeof t?t:String(t)}var S=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],h=function(e,t){var r=e.animationData,a=e.loop,u=e.autoplay,s=e.initialSegment,c=e.onComplete,m=e.onLoopComplete,p=e.onEnterFrame,y=e.onSegmentStart,v=e.onConfigReady,g=e.onDataReady,b=e.onDataFailed,h=e.onLoadedImages,O=e.onDOMLoaded,w=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var A=f(e,S),j=d(n.useState(!1),2),P=j[0],D=j[1],E=n.useRef(),R=n.useRef(null),L=function(){var e;null===(e=E.current)||void 0===e||e.play()},C=function(){var e;null===(e=E.current)||void 0===e||e.stop()},T=function(){var e;null===(e=E.current)||void 0===e||e.pause()},x=function(e){var t;null===(t=E.current)||void 0===t||t.setSpeed(e)},I=function(e,t){var n;null===(n=E.current)||void 0===n||n.goToAndPlay(e,t)},F=function(e,t){var n;null===(n=E.current)||void 0===n||n.goToAndStop(e,t)},_=function(e){var t;null===(t=E.current)||void 0===t||t.setDirection(e)},k=function(e,t){var n;null===(n=E.current)||void 0===n||n.playSegments(e,t)},M=function(e){var t;null===(t=E.current)||void 0===t||t.setSubframe(e)},N=function(e){var t;return null===(t=E.current)||void 0===t?void 0:t.getDuration(e)},V=function(){var e;null===(e=E.current)||void 0===e||e.destroy(),E.current=void 0},B=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R.current){null===(t=E.current)||void 0===t||t.destroy();var r=l(l(l({},e),n),{},{container:R.current});return E.current=o.default.loadAnimation(r),D(!!E.current),function(){var e;null===(e=E.current)||void 0===e||e.destroy(),E.current=void 0}}};return n.useEffect((function(){var e=B();return function(){return null===e||void 0===e?void 0:e()}}),[r,a]),n.useEffect((function(){E.current&&(E.current.autoplay=!!u)}),[u]),n.useEffect((function(){E.current&&(s?Array.isArray(s)&&s.length&&((E.current.currentRawFrame<s[0]||E.current.currentRawFrame>s[1])&&(E.current.currentRawFrame=s[0]),E.current.setSegment(s[0],s[1])):E.current.resetSegments(!0))}),[s]),n.useEffect((function(){var e=[{name:"complete",handler:c},{name:"loopComplete",handler:m},{name:"enterFrame",handler:p},{name:"segmentStart",handler:y},{name:"config_ready",handler:v},{name:"data_ready",handler:g},{name:"data_failed",handler:b},{name:"loaded_images",handler:h},{name:"DOMLoaded",handler:O},{name:"destroy",handler:w}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=E.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=E.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[c,m,p,y,v,g,b,h,O,w]),{View:i.default.createElement("div",l({style:t,ref:R},A)),play:L,stop:C,pause:T,setSpeed:x,goToAndStop:F,goToAndPlay:I,setDirection:_,playSegments:k,setSubframe:M,getDuration:N,destroy:V,animationContainerRef:R,animationLoaded:P,animationItem:E.current}};function O(e){var t=e.getBoundingClientRect(),n=t.top,r=t.height;return(window.innerHeight-n)/(window.innerHeight+r)}function w(e,t,n){var r=e.getBoundingClientRect(),o=r.top;return{x:(t-r.left)/r.width,y:(n-o)/r.height}}var A=function(e){var t=e.wrapperRef,r=e.animationItem,o=e.mode,i=e.actions;n.useEffect((function(){var e=t.current;if(e&&r&&i.length){r.stop();var n=function(){var t=null,n=function(){var n=O(e),o=i.find((function(e){var t=e.visibility;return t&&n>=t[0]&&n<=t[1]}));if(o){if("seek"===o.type&&o.visibility&&2===o.frames.length){var a=o.frames[0]+Math.ceil((n-o.visibility[0])/(o.visibility[1]-o.visibility[0])*o.frames[1]);r.goToAndStop(a-r.firstFrame-1,!0)}"loop"===o.type&&(null===t||t!==o.frames||r.isPaused)&&(r.playSegments(o.frames,!0),t=o.frames),"play"===o.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===o.type&&r.goToAndStop(o.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},a=function(){var t=function(t,n){var o=t,a=n;if(-1!==o&&-1!==a){var u=w(e,o,a);o=u.x,a=u.y}var l=i.find((function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===t.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var s=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((s+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},n=function(e){t(e.clientX,e.clientY)},o=function(){t(-1,-1)};return e.addEventListener("mousemove",n),e.addEventListener("mouseout",o),function(){e.removeEventListener("mousemove",n),e.removeEventListener("mouseout",o)}};switch(o){case"scroll":return n();case"cursor":return a()}}}),[o,r])},j=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,o=r.animationItem,i=r.View,a=r.animationContainerRef;return A({actions:t,animationItem:o,mode:n,wrapperRef:a}),i},P=["style","interactivity"],D=function(e){var t,r,o,i=e.style,a=e.interactivity,u=f(e,P),l=h(u,i),s=l.View,c=l.play,d=l.stop,m=l.pause,p=l.setSpeed,y=l.goToAndStop,v=l.goToAndPlay,g=l.setDirection,b=l.playSegments,S=l.setSubframe,O=l.getDuration,w=l.destroy,A=l.animationContainerRef,D=l.animationLoaded,E=l.animationItem;return n.useEffect((function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:m,setSpeed:p,goToAndPlay:v,goToAndStop:y,setDirection:g,playSegments:b,setSubframe:S,getDuration:O,destroy:w,animationContainerRef:A,animationLoaded:D,animationItem:E})}),[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),j({lottieObj:{View:s,play:c,stop:d,pause:m,setSpeed:p,goToAndStop:y,goToAndPlay:v,setDirection:g,playSegments:b,setSubframe:S,getDuration:O,destroy:w,animationContainerRef:A,animationLoaded:D,animationItem:E},actions:null!==(r=null===a||void 0===a?void 0:a.actions)&&void 0!==r?r:[],mode:null!==(o=null===a||void 0===a?void 0:a.mode)&&void 0!==o?o:"scroll"})};Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return o.default}}),e.default=D,e.useLottie=h,e.useLottieInteractivity=j,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(72911),n(5057))}}]);
@@ -0,0 +1 @@
1
+ //! goToAndStop must be relative to the start of the current segment
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[984],{94464:function(e,t,o){o.d(t,{Z:function(){return h}});var r=o(33028),n=o(59740),l=o(56666),i=o(55898),a=o.n(i),c=o(27156),s=o(23985),u=o(47685),d=o(96266),f=["tabs","current","onChange"],v="index",p={tabs:"".concat(v,"-tabs"),tab:"".concat(v,"-tab")},b=(0,u.zo)(c.Z)((function(e){var t,o=e.theme;return t={},(0,l.Z)(t,"& .".concat(p.tabs),{}),(0,l.Z)(t,"& .".concat(p.tab),(0,l.Z)({fontSize:"0.875rem"},o.breakpoints.up("md"),{fontSize:"1rem"})),t}));function h(e){var t=e.tabs,o=e.current,l=e.onChange,i=(0,n.Z)(e,f);return(0,d.jsx)(b,(0,r.Z)((0,r.Z)({scrollButtons:"auto",variant:"scrollable",value:o,onChange:function(e,t){return l(t)},indicatorColor:"primary"},i),{},{className:[p.tabs,i.className||""].join(" "),children:t.map((function(e){return(0,d.jsx)(s.Z,{className:p.tab,value:e.value,label:e.label,icon:e.icon||null},e.value)}))}))}h.propTypes={tabs:a().array.isRequired,current:a().string.isRequired,onChange:a().func.isRequired}},27773:function(e,t,o){var r=o(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(56930)),l=o(96266),i=(0,n.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.default=i},83294:function(e,t,o){var r=o(71600);t.Z=void 0;var n=r(o(56930)),l=o(96266),i=(0,n.default)((0,l.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},25506:function(e,t,o){var r=o(31461),n=o(7896),l=o(5057),i=o(9978),a=o(91213),c=o(62773),s=o(42908),u=o(81937),d=o(38038),f=o(43070),v=o(96266),p=["className","row"],b=(0,c.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.row&&t.row]}})((function(e){var t=e.ownerState;return(0,n.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),h=l.forwardRef((function(e,t){var o=(0,s.Z)({props:e,name:"MuiFormGroup"}),l=o.className,c=o.row,h=void 0!==c&&c,m=(0,r.Z)(o,p),Z=(0,d.Z)(),w=(0,f.Z)({props:o,muiFormControl:Z,states:["error"]}),S=(0,n.Z)({},o,{row:h,error:w.error}),x=function(e){var t=e.classes,o={root:["root",e.row&&"row",e.error&&"error"]};return(0,a.Z)(o,u.y,t)}(S);return(0,v.jsx)(b,(0,n.Z)({className:(0,i.Z)(x.root,l),ownerState:S,ref:t},m))}));t.Z=h},81937:function(e,t,o){o.d(t,{y:function(){return l}});var r=o(31821),n=o(18561);function l(e){return(0,n.Z)("MuiFormGroup",e)}var i=(0,r.Z)("MuiFormGroup",["root","row","error"]);t.Z=i},23985:function(e,t,o){o.d(t,{Z:function(){return S}});var r=o(56666),n=o(31461),l=o(7896),i=o(5057),a=o(9978),c=o(91213),s=o(66230),u=o(6285),d=o(42908),f=o(62773),v=o(31821),p=o(18561);function b(e){return(0,p.Z)("MuiTab",e)}var h=(0,v.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),m=o(96266),Z=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],w=(0,f.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.label&&o.icon&&t.labelIcon,t["textColor".concat((0,u.Z)(o.textColor))],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((function(e){var t,o,n,i=e.theme,a=e.ownerState;return(0,l.Z)({},i.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},a.label&&{flexDirection:"top"===a.iconPosition||"bottom"===a.iconPosition?"column":"row"},{lineHeight:1.25},a.icon&&a.label&&(0,r.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(h.iconWrapper),(0,l.Z)({},"top"===a.iconPosition&&{marginBottom:6},"bottom"===a.iconPosition&&{marginTop:6},"start"===a.iconPosition&&{marginRight:i.spacing(1)},"end"===a.iconPosition&&{marginLeft:i.spacing(1)})),"inherit"===a.textColor&&(t={color:"inherit",opacity:.6},(0,r.Z)(t,"&.".concat(h.selected),{opacity:1}),(0,r.Z)(t,"&.".concat(h.disabled),{opacity:(i.vars||i).palette.action.disabledOpacity}),t),"primary"===a.textColor&&(o={color:(i.vars||i).palette.text.secondary},(0,r.Z)(o,"&.".concat(h.selected),{color:(i.vars||i).palette.primary.main}),(0,r.Z)(o,"&.".concat(h.disabled),{color:(i.vars||i).palette.text.disabled}),o),"secondary"===a.textColor&&(n={color:(i.vars||i).palette.text.secondary},(0,r.Z)(n,"&.".concat(h.selected),{color:(i.vars||i).palette.secondary.main}),(0,r.Z)(n,"&.".concat(h.disabled),{color:(i.vars||i).palette.text.disabled}),n),a.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},a.wrapped&&{fontSize:i.typography.pxToRem(12)})})),S=i.forwardRef((function(e,t){var o=(0,d.Z)({props:e,name:"MuiTab"}),r=o.className,s=o.disabled,f=void 0!==s&&s,v=o.disableFocusRipple,p=void 0!==v&&v,h=o.fullWidth,S=o.icon,x=o.iconPosition,g=void 0===x?"top":x,y=o.indicator,C=o.label,B=o.onChange,M=o.onClick,R=o.onFocus,P=o.selected,W=o.selectionFollowsFocus,I=o.textColor,E=void 0===I?"inherit":I,N=o.value,T=o.wrapped,z=void 0!==T&&T,F=(0,n.Z)(o,Z),k=(0,l.Z)({},o,{disabled:f,disableFocusRipple:p,selected:P,icon:!!S,iconPosition:g,label:!!C,fullWidth:h,textColor:E,wrapped:z}),j=function(e){var t=e.classes,o=e.textColor,r=e.fullWidth,n=e.wrapped,l=e.icon,i=e.label,a=e.selected,s=e.disabled,d={root:["root",l&&i&&"labelIcon","textColor".concat((0,u.Z)(o)),r&&"fullWidth",n&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,c.Z)(d,b,t)}(k),L=S&&C&&i.isValidElement(S)?i.cloneElement(S,{className:(0,a.Z)(j.iconWrapper,S.props.className)}):S;return(0,m.jsxs)(w,(0,l.Z)({focusRipple:!p,className:(0,a.Z)(j.root,r),ref:t,role:"tab","aria-selected":P,disabled:f,onClick:function(e){!P&&B&&B(e,N),M&&M(e)},onFocus:function(e){W&&!P&&B&&B(e,N),R&&R(e)},ownerState:k,tabIndex:P?0:-1},F,{children:["top"===g||"start"===g?(0,m.jsxs)(i.Fragment,{children:[L,C]}):(0,m.jsxs)(i.Fragment,{children:[C,L]}),y]}))}))},27156:function(e,t,o){o.d(t,{Z:function(){return G}});var r,n=o(96234),l=o(56666),i=o(31461),a=o(7896),c=o(5057),s=(o(97408),o(9978)),u=o(91213),d=o(78305),f=o(62773),v=o(42908),p=o(96366),b=o(50049);function h(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function m(e,t){var o=e.scrollLeft;if("rtl"!==t)return o;switch(h()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function Z(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var w=o(61121),S=o(23406),x=o(96266),g=["onChange"],y={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var C=o(4601),B=o(50999),M=o(66230),R=o(31821),P=o(18561);function W(e){return(0,P.Z)("MuiTabScrollButton",e)}var I=(0,R.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),E=["className","slots","slotProps","direction","orientation","disabled"],N=(0,f.ZP)(M.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.orientation&&t[o.orientation]]}})((function(e){var t=e.ownerState;return(0,a.Z)((0,l.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(I.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),T=c.forwardRef((function(e,t){var o,r,n=(0,v.Z)({props:e,name:"MuiTabScrollButton"}),l=n.className,c=n.slots,f=void 0===c?{}:c,b=n.slotProps,h=void 0===b?{}:b,m=n.direction,Z=(0,i.Z)(n,E),w="rtl"===(0,p.Z)().direction,S=(0,a.Z)({isRtl:w},n),g=function(e){var t=e.classes,o={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,u.Z)(o,W,t)}(S),y=null!=(o=f.StartScrollButtonIcon)?o:C.Z,M=null!=(r=f.EndScrollButtonIcon)?r:B.Z,R=(0,d.y)({elementType:y,externalSlotProps:h.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),P=(0,d.y)({elementType:M,externalSlotProps:h.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return(0,x.jsx)(N,(0,a.Z)({component:"div",className:(0,s.Z)(g.root,l),ref:t,role:null,ownerState:S,tabIndex:null},Z,{children:"left"===m?(0,x.jsx)(y,(0,a.Z)({},R)):(0,x.jsx)(M,(0,a.Z)({},P))}))})),z=o(5862),F=o(18759),k=o(33897),j=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],L=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},A=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},H=function(e,t,o){for(var r=!1,n=o(e,t);n;){if(n===e.firstChild){if(r)return;r=!0}var l=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!l)return void n.focus();n=o(e,n)}},X=(0,f.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[(0,l.Z)({},"& .".concat(F.Z.scrollButtons),t.scrollButtons),(0,l.Z)({},"& .".concat(F.Z.scrollButtons),o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,o.vertical&&t.vertical]}})((function(e){var t=e.ownerState,o=e.theme;return(0,a.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,l.Z)({},"& .".concat(F.Z.scrollButtons),(0,l.Z)({},o.breakpoints.down("sm"),{display:"none"})))})),D=(0,f.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var o=e.ownerState;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,a.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),Y=(0,f.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var o=e.ownerState;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),O=(0,f.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,o=e.theme;return(0,a.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),V=(0,f.ZP)((function(e){var t=e.onChange,o=(0,i.Z)(e,g),r=c.useRef(),n=c.useRef(null),l=function(){r.current=n.current.offsetHeight-n.current.clientHeight};return(0,w.Z)((function(){var e=(0,b.Z)((function(){var e=r.current;l(),e!==r.current&&t(r.current)})),o=(0,S.Z)(n.current);return o.addEventListener("resize",e),function(){e.clear(),o.removeEventListener("resize",e)}}),[t]),c.useEffect((function(){l(),t(r.current)}),[t]),(0,x.jsx)("div",(0,a.Z)({style:y,ref:n},o))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),q={},_=c.forwardRef((function(e,t){var o=(0,v.Z)({props:e,name:"MuiTabs"}),r=(0,p.Z)(),f="rtl"===r.direction,w=o["aria-label"],g=o["aria-labelledby"],y=o.action,C=o.centered,B=void 0!==C&&C,M=o.children,R=o.className,P=o.component,W=void 0===P?"div":P,I=o.allowScrollButtonsMobile,E=void 0!==I&&I,N=o.indicatorColor,_=void 0===N?"primary":N,G=o.onChange,K=o.orientation,U=void 0===K?"horizontal":K,J=o.ScrollButtonComponent,Q=void 0===J?T:J,$=o.scrollButtons,ee=void 0===$?"auto":$,te=o.selectionFollowsFocus,oe=o.slots,re=void 0===oe?{}:oe,ne=o.slotProps,le=void 0===ne?{}:ne,ie=o.TabIndicatorProps,ae=void 0===ie?{}:ie,ce=o.TabScrollButtonProps,se=void 0===ce?{}:ce,ue=o.textColor,de=void 0===ue?"primary":ue,fe=o.value,ve=o.variant,pe=void 0===ve?"standard":ve,be=o.visibleScrollbar,he=void 0!==be&&be,me=(0,i.Z)(o,j),Ze="scrollable"===pe,we="vertical"===U,Se=we?"scrollTop":"scrollLeft",xe=we?"top":"left",ge=we?"bottom":"right",ye=we?"clientHeight":"clientWidth",Ce=we?"height":"width",Be=(0,a.Z)({},o,{component:W,allowScrollButtonsMobile:E,indicatorColor:_,orientation:U,vertical:we,scrollButtons:ee,textColor:de,variant:pe,visibleScrollbar:he,fixed:!Ze,hideScrollbar:Ze&&!he,scrollableX:Ze&&!we,scrollableY:Ze&&we,centered:B&&!Ze,scrollButtonsHideMobile:!E}),Me=function(e){var t=e.vertical,o=e.fixed,r=e.hideScrollbar,n=e.scrollableX,l=e.scrollableY,i=e.centered,a=e.scrollButtonsHideMobile,c=e.classes,s={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",n&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,u.Z)(s,F.m,c)}(Be),Re=(0,d.y)({elementType:re.StartScrollButtonIcon,externalSlotProps:le.startScrollButtonIcon,ownerState:Be}),Pe=(0,d.y)({elementType:re.EndScrollButtonIcon,externalSlotProps:le.endScrollButtonIcon,ownerState:Be});var We=c.useState(!1),Ie=(0,n.Z)(We,2),Ee=Ie[0],Ne=Ie[1],Te=c.useState(q),ze=(0,n.Z)(Te,2),Fe=ze[0],ke=ze[1],je=c.useState(!1),Le=(0,n.Z)(je,2),Ae=Le[0],He=Le[1],Xe=c.useState(!1),De=(0,n.Z)(Xe,2),Ye=De[0],Oe=De[1],Ve=c.useState(!1),qe=(0,n.Z)(Ve,2),_e=qe[0],Ge=qe[1],Ke=c.useState({overflow:"hidden",scrollbarWidth:0}),Ue=(0,n.Z)(Ke,2),Je=Ue[0],Qe=Ue[1],$e=new Map,et=c.useRef(null),tt=c.useRef(null),ot=function(){var e,t,o=et.current;if(o){var n=o.getBoundingClientRect();e={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:m(o,r.direction),scrollWidth:o.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(o&&!1!==fe){var l=tt.current.children;if(l.length>0){var i=l[$e.get(fe)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},rt=(0,z.Z)((function(){var e,t,o=ot(),r=o.tabsMeta,n=o.tabMeta,i=0;if(we)t="top",n&&r&&(i=n.top-r.top+r.scrollTop);else if(t=f?"right":"left",n&&r){var a=f?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;i=(f?-1:1)*(n[t]-r[t]+a)}var c=(e={},(0,l.Z)(e,t,i),(0,l.Z)(e,Ce,n?n[Ce]:0),e);if(isNaN(Fe[t])||isNaN(Fe[Ce]))ke(c);else{var s=Math.abs(Fe[t]-c[t]),u=Math.abs(Fe[Ce]-c[Ce]);(s>=1||u>=1)&&ke(c)}})),nt=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).animation;void 0===t||t?function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},l=r.ease,i=void 0===l?Z:l,a=r.duration,c=void 0===a?300:a,s=null,u=t[e],d=!1,f=function(){d=!0};u===o?n(new Error("Element already at target position")):requestAnimationFrame((function r(l){if(d)n(new Error("Animation cancelled"));else{null===s&&(s=l);var a=Math.min(1,(l-s)/c);t[e]=i(a)*(o-u)+u,a>=1?requestAnimationFrame((function(){n(null)})):requestAnimationFrame(r)}}))}(Se,et.current,e,{duration:r.transitions.duration.standard}):et.current[Se]=e},lt=function(e){var t=et.current[Se];we?t+=e:(t+=e*(f?-1:1),t*=f&&"reverse"===h()?-1:1),nt(t)},it=function(){for(var e=et.current[ye],t=0,o=Array.from(tt.current.children),r=0;r<o.length;r+=1){var n=o[r];if(t+n[ye]>e){0===r&&(t=e);break}t+=n[ye]}return t},at=function(){lt(-1*it())},ct=function(){lt(it())},st=c.useCallback((function(e){Qe({overflow:null,scrollbarWidth:e})}),[]),ut=(0,z.Z)((function(e){var t=ot(),o=t.tabsMeta,r=t.tabMeta;if(r&&o)if(r[xe]<o[xe]){var n=o[Se]+(r[xe]-o[xe]);nt(n,{animation:e})}else if(r[ge]>o[ge]){var l=o[Se]+(r[ge]-o[ge]);nt(l,{animation:e})}})),dt=(0,z.Z)((function(){Ze&&!1!==ee&&Ge(!_e)}));c.useEffect((function(){var e,t=(0,b.Z)((function(){et.current&&rt()})),o=(0,S.Z)(et.current);return o.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(tt.current.children).forEach((function(t){e.observe(t)}))),function(){t.clear(),o.removeEventListener("resize",t),e&&e.disconnect()}}),[rt]),c.useEffect((function(){var e=Array.from(tt.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&Ze&&!1!==ee){var o=e[0],r=e[t-1],n={root:et.current,threshold:.99},l=new IntersectionObserver((function(e){He(!e[0].isIntersecting)}),n);l.observe(o);var i=new IntersectionObserver((function(e){Oe(!e[0].isIntersecting)}),n);return i.observe(r),function(){l.disconnect(),i.disconnect()}}}),[Ze,ee,_e,null==M?void 0:M.length]),c.useEffect((function(){Ne(!0)}),[]),c.useEffect((function(){rt()})),c.useEffect((function(){ut(q!==Fe)}),[ut,Fe]),c.useImperativeHandle(y,(function(){return{updateIndicator:rt,updateScrollButtons:dt}}),[rt,dt]);var ft=(0,x.jsx)(O,(0,a.Z)({},ae,{className:(0,s.Z)(Me.indicator,ae.className),ownerState:Be,style:(0,a.Z)({},Fe,ae.style)})),vt=0,pt=c.Children.map(M,(function(e){if(!c.isValidElement(e))return null;var t=void 0===e.props.value?vt:e.props.value;$e.set(t,vt);var o=t===fe;return vt+=1,c.cloneElement(e,(0,a.Z)({fullWidth:"fullWidth"===pe,indicator:o&&!Ee&&ft,selected:o,selectionFollowsFocus:te,onChange:G,textColor:de,value:t},1!==vt||!1!==fe||e.props.tabIndex?{}:{tabIndex:0}))})),bt=function(){var e={};e.scrollbarSizeListener=Ze?(0,x.jsx)(V,{onChange:st,className:(0,s.Z)(Me.scrollableX,Me.hideScrollbar)}):null;var t=Ze&&("auto"===ee&&(Ae||Ye)||!0===ee);return e.scrollButtonStart=t?(0,x.jsx)(Q,(0,a.Z)({slots:{StartScrollButtonIcon:re.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Re},orientation:U,direction:f?"right":"left",onClick:at,disabled:!Ae},se,{className:(0,s.Z)(Me.scrollButtons,se.className)})):null,e.scrollButtonEnd=t?(0,x.jsx)(Q,(0,a.Z)({slots:{EndScrollButtonIcon:re.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Pe},orientation:U,direction:f?"left":"right",onClick:ct,disabled:!Ye},se,{className:(0,s.Z)(Me.scrollButtons,se.className)})):null,e}();return(0,x.jsxs)(X,(0,a.Z)({className:(0,s.Z)(Me.root,R),ownerState:Be,ref:t,as:W},me,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,(0,x.jsxs)(D,{className:Me.scroller,ownerState:Be,style:(0,l.Z)({overflow:Je.overflow},we?"margin".concat(f?"Left":"Right"):"marginBottom",he?void 0:-Je.scrollbarWidth),ref:et,children:[(0,x.jsx)(Y,{"aria-label":w,"aria-labelledby":g,"aria-orientation":"vertical"===U?"vertical":null,className:Me.flexContainer,ownerState:Be,onKeyDown:function(e){var t=tt.current,o=(0,k.Z)(t).activeElement;if("tab"===o.getAttribute("role")){var r="horizontal"===U?"ArrowLeft":"ArrowUp",n="horizontal"===U?"ArrowRight":"ArrowDown";switch("horizontal"===U&&f&&(r="ArrowRight",n="ArrowLeft"),e.key){case r:e.preventDefault(),H(t,o,A);break;case n:e.preventDefault(),H(t,o,L);break;case"Home":e.preventDefault(),H(t,null,L);break;case"End":e.preventDefault(),H(t,null,A)}}},ref:tt,role:"tablist",children:pt}),Ee&&ft]}),bt.scrollButtonEnd]}))})),G=_},18759:function(e,t,o){o.d(t,{m:function(){return l}});var r=o(31821),n=o(18561);function l(e){return(0,n.Z)("MuiTabs",e)}var i=(0,r.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=i},4601:function(e,t,o){o(5057);var r=o(57471),n=o(96266);t.Z=(0,r.Z)((0,n.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},50999:function(e,t,o){o(5057);var r=o(57471),n=o(96266);t.Z=(0,r.Z)((0,n.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[984],{94464:function(e,t,o){o.d(t,{Z:function(){return h}});var r=o(33028),n=o(59740),l=o(56666),i=o(55898),a=o.n(i),c=o(27156),s=o(23985),u=o(47685),d=o(96266),f=["tabs","current","onChange"],v="index",b={tabs:"".concat(v,"-tabs"),tab:"".concat(v,"-tab")},p=(0,u.zo)(c.Z)((function(e){var t,o=e.theme;return t={},(0,l.Z)(t,"& .".concat(b.tabs),{}),(0,l.Z)(t,"& .".concat(b.tab),(0,l.Z)({fontSize:"0.875rem"},o.breakpoints.up("md"),{fontSize:"1rem"})),t}));function h(e){var t=e.tabs,o=e.current,l=e.onChange,i=(0,n.Z)(e,f);return(0,d.jsx)(p,(0,r.Z)((0,r.Z)({scrollButtons:"auto",variant:"scrollable",value:o,onChange:function(e,t){return l(t)},indicatorColor:"primary"},i),{},{className:[b.tabs,i.className||""].join(" "),children:t.map((function(e){return(0,d.jsx)(s.Z,{className:b.tab,value:e.value,label:e.label,icon:e.icon||null},e.value)}))}))}h.propTypes={tabs:a().array.isRequired,current:a().string.isRequired,onChange:a().func.isRequired}},27773:function(e,t,o){var r=o(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(56930)),l=o(96266),i=(0,n.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.default=i},83294:function(e,t,o){var r=o(71600);t.Z=void 0;var n=r(o(56930)),l=o(96266),i=(0,n.default)((0,l.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},25506:function(e,t,o){var r=o(31461),n=o(7896),l=o(5057),i=o(9978),a=o(91213),c=o(62773),s=o(42908),u=o(81937),d=o(38038),f=o(43070),v=o(96266),b=["className","row"],p=(0,c.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.row&&t.row]}})((function(e){var t=e.ownerState;return(0,n.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),h=l.forwardRef((function(e,t){var o=(0,s.Z)({props:e,name:"MuiFormGroup"}),l=o.className,c=o.row,h=void 0!==c&&c,m=(0,r.Z)(o,b),Z=(0,d.Z)(),w=(0,f.Z)({props:o,muiFormControl:Z,states:["error"]}),S=(0,n.Z)({},o,{row:h,error:w.error}),x=function(e){var t=e.classes,o={root:["root",e.row&&"row",e.error&&"error"]};return(0,a.Z)(o,u.y,t)}(S);return(0,v.jsx)(p,(0,n.Z)({className:(0,i.Z)(x.root,l),ownerState:S,ref:t},m))}));t.Z=h},81937:function(e,t,o){o.d(t,{y:function(){return l}});var r=o(31821),n=o(18561);function l(e){return(0,n.Z)("MuiFormGroup",e)}var i=(0,r.Z)("MuiFormGroup",["root","row","error"]);t.Z=i},23985:function(e,t,o){o.d(t,{Z:function(){return S}});var r=o(56666),n=o(31461),l=o(7896),i=o(5057),a=o(9978),c=o(91213),s=o(66230),u=o(6285),d=o(42908),f=o(62773),v=o(31821),b=o(18561);function p(e){return(0,b.Z)("MuiTab",e)}var h=(0,v.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),m=o(96266),Z=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],w=(0,f.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.label&&o.icon&&t.labelIcon,t["textColor".concat((0,u.Z)(o.textColor))],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((function(e){var t,o,n,i=e.theme,a=e.ownerState;return(0,l.Z)({},i.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},a.label&&{flexDirection:"top"===a.iconPosition||"bottom"===a.iconPosition?"column":"row"},{lineHeight:1.25},a.icon&&a.label&&(0,r.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(h.iconWrapper),(0,l.Z)({},"top"===a.iconPosition&&{marginBottom:6},"bottom"===a.iconPosition&&{marginTop:6},"start"===a.iconPosition&&{marginRight:i.spacing(1)},"end"===a.iconPosition&&{marginLeft:i.spacing(1)})),"inherit"===a.textColor&&(t={color:"inherit",opacity:.6},(0,r.Z)(t,"&.".concat(h.selected),{opacity:1}),(0,r.Z)(t,"&.".concat(h.disabled),{opacity:(i.vars||i).palette.action.disabledOpacity}),t),"primary"===a.textColor&&(o={color:(i.vars||i).palette.text.secondary},(0,r.Z)(o,"&.".concat(h.selected),{color:(i.vars||i).palette.primary.main}),(0,r.Z)(o,"&.".concat(h.disabled),{color:(i.vars||i).palette.text.disabled}),o),"secondary"===a.textColor&&(n={color:(i.vars||i).palette.text.secondary},(0,r.Z)(n,"&.".concat(h.selected),{color:(i.vars||i).palette.secondary.main}),(0,r.Z)(n,"&.".concat(h.disabled),{color:(i.vars||i).palette.text.disabled}),n),a.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},a.wrapped&&{fontSize:i.typography.pxToRem(12)})})),S=i.forwardRef((function(e,t){var o=(0,d.Z)({props:e,name:"MuiTab"}),r=o.className,s=o.disabled,f=void 0!==s&&s,v=o.disableFocusRipple,b=void 0!==v&&v,h=o.fullWidth,S=o.icon,x=o.iconPosition,g=void 0===x?"top":x,y=o.indicator,C=o.label,B=o.onChange,M=o.onClick,R=o.onFocus,P=o.selected,W=o.selectionFollowsFocus,E=o.textColor,I=void 0===E?"inherit":E,N=o.value,T=o.wrapped,z=void 0!==T&&T,F=(0,n.Z)(o,Z),k=(0,l.Z)({},o,{disabled:f,disableFocusRipple:b,selected:P,icon:!!S,iconPosition:g,label:!!C,fullWidth:h,textColor:I,wrapped:z}),j=function(e){var t=e.classes,o=e.textColor,r=e.fullWidth,n=e.wrapped,l=e.icon,i=e.label,a=e.selected,s=e.disabled,d={root:["root",l&&i&&"labelIcon","textColor".concat((0,u.Z)(o)),r&&"fullWidth",n&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,c.Z)(d,p,t)}(k),L=S&&C&&i.isValidElement(S)?i.cloneElement(S,{className:(0,a.Z)(j.iconWrapper,S.props.className)}):S;return(0,m.jsxs)(w,(0,l.Z)({focusRipple:!b,className:(0,a.Z)(j.root,r),ref:t,role:"tab","aria-selected":P,disabled:f,onClick:function(e){!P&&B&&B(e,N),M&&M(e)},onFocus:function(e){W&&!P&&B&&B(e,N),R&&R(e)},ownerState:k,tabIndex:P?0:-1},F,{children:["top"===g||"start"===g?(0,m.jsxs)(i.Fragment,{children:[L,C]}):(0,m.jsxs)(i.Fragment,{children:[C,L]}),y]}))}))},27156:function(e,t,o){o.d(t,{Z:function(){return G}});var r,n=o(96234),l=o(56666),i=o(31461),a=o(7896),c=o(5057),s=(o(97408),o(9978)),u=o(91213),d=o(78305),f=o(62773),v=o(42908),b=o(96366),p=o(50049);function h(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function m(e,t){var o=e.scrollLeft;if("rtl"!==t)return o;switch(h()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function Z(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var w=o(61121),S=o(23406),x=o(96266),g=["onChange"],y={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var C=o(4601),B=o(50999),M=o(66230),R=o(31821),P=o(18561);function W(e){return(0,P.Z)("MuiTabScrollButton",e)}var E=(0,R.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),I=["className","slots","slotProps","direction","orientation","disabled"],N=(0,f.ZP)(M.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.orientation&&t[o.orientation]]}})((function(e){var t=e.ownerState;return(0,a.Z)((0,l.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(E.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),T=c.forwardRef((function(e,t){var o,r,n=(0,v.Z)({props:e,name:"MuiTabScrollButton"}),l=n.className,c=n.slots,f=void 0===c?{}:c,p=n.slotProps,h=void 0===p?{}:p,m=n.direction,Z=(0,i.Z)(n,I),w="rtl"===(0,b.Z)().direction,S=(0,a.Z)({isRtl:w},n),g=function(e){var t=e.classes,o={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,u.Z)(o,W,t)}(S),y=null!=(o=f.StartScrollButtonIcon)?o:C.Z,M=null!=(r=f.EndScrollButtonIcon)?r:B.Z,R=(0,d.y)({elementType:y,externalSlotProps:h.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),P=(0,d.y)({elementType:M,externalSlotProps:h.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return(0,x.jsx)(N,(0,a.Z)({component:"div",className:(0,s.Z)(g.root,l),ref:t,role:null,ownerState:S,tabIndex:null},Z,{children:"left"===m?(0,x.jsx)(y,(0,a.Z)({},R)):(0,x.jsx)(M,(0,a.Z)({},P))}))})),z=o(5862),F=o(18759),k=o(33897),j=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],L=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},A=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},H=function(e,t,o){for(var r=!1,n=o(e,t);n;){if(n===e.firstChild){if(r)return;r=!0}var l=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!l)return void n.focus();n=o(e,n)}},X=(0,f.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[(0,l.Z)({},"& .".concat(F.Z.scrollButtons),t.scrollButtons),(0,l.Z)({},"& .".concat(F.Z.scrollButtons),o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,o.vertical&&t.vertical]}})((function(e){var t=e.ownerState,o=e.theme;return(0,a.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,l.Z)({},"& .".concat(F.Z.scrollButtons),(0,l.Z)({},o.breakpoints.down("sm"),{display:"none"})))})),D=(0,f.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var o=e.ownerState;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,a.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),O=(0,f.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var o=e.ownerState;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),Y=(0,f.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,o=e.theme;return(0,a.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),V=(0,f.ZP)((function(e){var t=e.onChange,o=(0,i.Z)(e,g),r=c.useRef(),n=c.useRef(null),l=function(){r.current=n.current.offsetHeight-n.current.clientHeight};return(0,w.Z)((function(){var e=(0,p.Z)((function(){var e=r.current;l(),e!==r.current&&t(r.current)})),o=(0,S.Z)(n.current);return o.addEventListener("resize",e),function(){e.clear(),o.removeEventListener("resize",e)}}),[t]),c.useEffect((function(){l(),t(r.current)}),[t]),(0,x.jsx)("div",(0,a.Z)({style:y,ref:n},o))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),q={},_=c.forwardRef((function(e,t){var o=(0,v.Z)({props:e,name:"MuiTabs"}),r=(0,b.Z)(),f="rtl"===r.direction,w=o["aria-label"],g=o["aria-labelledby"],y=o.action,C=o.centered,B=void 0!==C&&C,M=o.children,R=o.className,P=o.component,W=void 0===P?"div":P,E=o.allowScrollButtonsMobile,I=void 0!==E&&E,N=o.indicatorColor,_=void 0===N?"primary":N,G=o.onChange,K=o.orientation,U=void 0===K?"horizontal":K,J=o.ScrollButtonComponent,Q=void 0===J?T:J,$=o.scrollButtons,ee=void 0===$?"auto":$,te=o.selectionFollowsFocus,oe=o.slots,re=void 0===oe?{}:oe,ne=o.slotProps,le=void 0===ne?{}:ne,ie=o.TabIndicatorProps,ae=void 0===ie?{}:ie,ce=o.TabScrollButtonProps,se=void 0===ce?{}:ce,ue=o.textColor,de=void 0===ue?"primary":ue,fe=o.value,ve=o.variant,be=void 0===ve?"standard":ve,pe=o.visibleScrollbar,he=void 0!==pe&&pe,me=(0,i.Z)(o,j),Ze="scrollable"===be,we="vertical"===U,Se=we?"scrollTop":"scrollLeft",xe=we?"top":"left",ge=we?"bottom":"right",ye=we?"clientHeight":"clientWidth",Ce=we?"height":"width",Be=(0,a.Z)({},o,{component:W,allowScrollButtonsMobile:I,indicatorColor:_,orientation:U,vertical:we,scrollButtons:ee,textColor:de,variant:be,visibleScrollbar:he,fixed:!Ze,hideScrollbar:Ze&&!he,scrollableX:Ze&&!we,scrollableY:Ze&&we,centered:B&&!Ze,scrollButtonsHideMobile:!I}),Me=function(e){var t=e.vertical,o=e.fixed,r=e.hideScrollbar,n=e.scrollableX,l=e.scrollableY,i=e.centered,a=e.scrollButtonsHideMobile,c=e.classes,s={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",n&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,u.Z)(s,F.m,c)}(Be),Re=(0,d.y)({elementType:re.StartScrollButtonIcon,externalSlotProps:le.startScrollButtonIcon,ownerState:Be}),Pe=(0,d.y)({elementType:re.EndScrollButtonIcon,externalSlotProps:le.endScrollButtonIcon,ownerState:Be});var We=c.useState(!1),Ee=(0,n.Z)(We,2),Ie=Ee[0],Ne=Ee[1],Te=c.useState(q),ze=(0,n.Z)(Te,2),Fe=ze[0],ke=ze[1],je=c.useState(!1),Le=(0,n.Z)(je,2),Ae=Le[0],He=Le[1],Xe=c.useState(!1),De=(0,n.Z)(Xe,2),Oe=De[0],Ye=De[1],Ve=c.useState(!1),qe=(0,n.Z)(Ve,2),_e=qe[0],Ge=qe[1],Ke=c.useState({overflow:"hidden",scrollbarWidth:0}),Ue=(0,n.Z)(Ke,2),Je=Ue[0],Qe=Ue[1],$e=new Map,et=c.useRef(null),tt=c.useRef(null),ot=function(){var e,t,o=et.current;if(o){var n=o.getBoundingClientRect();e={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:m(o,r.direction),scrollWidth:o.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(o&&!1!==fe){var l=tt.current.children;if(l.length>0){var i=l[$e.get(fe)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},rt=(0,z.Z)((function(){var e,t,o=ot(),r=o.tabsMeta,n=o.tabMeta,i=0;if(we)t="top",n&&r&&(i=n.top-r.top+r.scrollTop);else if(t=f?"right":"left",n&&r){var a=f?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;i=(f?-1:1)*(n[t]-r[t]+a)}var c=(e={},(0,l.Z)(e,t,i),(0,l.Z)(e,Ce,n?n[Ce]:0),e);if(isNaN(Fe[t])||isNaN(Fe[Ce]))ke(c);else{var s=Math.abs(Fe[t]-c[t]),u=Math.abs(Fe[Ce]-c[Ce]);(s>=1||u>=1)&&ke(c)}})),nt=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).animation;void 0===t||t?function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},l=r.ease,i=void 0===l?Z:l,a=r.duration,c=void 0===a?300:a,s=null,u=t[e],d=!1,f=function(){d=!0};u===o?n(new Error("Element already at target position")):requestAnimationFrame((function r(l){if(d)n(new Error("Animation cancelled"));else{null===s&&(s=l);var a=Math.min(1,(l-s)/c);t[e]=i(a)*(o-u)+u,a>=1?requestAnimationFrame((function(){n(null)})):requestAnimationFrame(r)}}))}(Se,et.current,e,{duration:r.transitions.duration.standard}):et.current[Se]=e},lt=function(e){var t=et.current[Se];we?t+=e:(t+=e*(f?-1:1),t*=f&&"reverse"===h()?-1:1),nt(t)},it=function(){for(var e=et.current[ye],t=0,o=Array.from(tt.current.children),r=0;r<o.length;r+=1){var n=o[r];if(t+n[ye]>e){0===r&&(t=e);break}t+=n[ye]}return t},at=function(){lt(-1*it())},ct=function(){lt(it())},st=c.useCallback((function(e){Qe({overflow:null,scrollbarWidth:e})}),[]),ut=(0,z.Z)((function(e){var t=ot(),o=t.tabsMeta,r=t.tabMeta;if(r&&o)if(r[xe]<o[xe]){var n=o[Se]+(r[xe]-o[xe]);nt(n,{animation:e})}else if(r[ge]>o[ge]){var l=o[Se]+(r[ge]-o[ge]);nt(l,{animation:e})}})),dt=(0,z.Z)((function(){Ze&&!1!==ee&&Ge(!_e)}));c.useEffect((function(){var e,t,o=(0,p.Z)((function(){et.current&&rt()})),r=(0,S.Z)(et.current);return r.addEventListener("resize",o),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(o),Array.from(tt.current.children).forEach((function(t){e.observe(t)}))),"undefined"!==typeof MutationObserver&&(t=new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){var o;null==(o=e)||o.unobserve(t)})),t.addedNodes.forEach((function(t){var o;null==(o=e)||o.observe(t)}))})),o(),dt()}))).observe(tt.current,{childList:!0}),function(){var n,l;o.clear(),r.removeEventListener("resize",o),null==(n=t)||n.disconnect(),null==(l=e)||l.disconnect()}}),[rt,dt]),c.useEffect((function(){var e=Array.from(tt.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&Ze&&!1!==ee){var o=e[0],r=e[t-1],n={root:et.current,threshold:.99},l=new IntersectionObserver((function(e){He(!e[0].isIntersecting)}),n);l.observe(o);var i=new IntersectionObserver((function(e){Ye(!e[0].isIntersecting)}),n);return i.observe(r),function(){l.disconnect(),i.disconnect()}}}),[Ze,ee,_e,null==M?void 0:M.length]),c.useEffect((function(){Ne(!0)}),[]),c.useEffect((function(){rt()})),c.useEffect((function(){ut(q!==Fe)}),[ut,Fe]),c.useImperativeHandle(y,(function(){return{updateIndicator:rt,updateScrollButtons:dt}}),[rt,dt]);var ft=(0,x.jsx)(Y,(0,a.Z)({},ae,{className:(0,s.Z)(Me.indicator,ae.className),ownerState:Be,style:(0,a.Z)({},Fe,ae.style)})),vt=0,bt=c.Children.map(M,(function(e){if(!c.isValidElement(e))return null;var t=void 0===e.props.value?vt:e.props.value;$e.set(t,vt);var o=t===fe;return vt+=1,c.cloneElement(e,(0,a.Z)({fullWidth:"fullWidth"===be,indicator:o&&!Ie&&ft,selected:o,selectionFollowsFocus:te,onChange:G,textColor:de,value:t},1!==vt||!1!==fe||e.props.tabIndex?{}:{tabIndex:0}))})),pt=function(){var e={};e.scrollbarSizeListener=Ze?(0,x.jsx)(V,{onChange:st,className:(0,s.Z)(Me.scrollableX,Me.hideScrollbar)}):null;var t=Ze&&("auto"===ee&&(Ae||Oe)||!0===ee);return e.scrollButtonStart=t?(0,x.jsx)(Q,(0,a.Z)({slots:{StartScrollButtonIcon:re.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Re},orientation:U,direction:f?"right":"left",onClick:at,disabled:!Ae},se,{className:(0,s.Z)(Me.scrollButtons,se.className)})):null,e.scrollButtonEnd=t?(0,x.jsx)(Q,(0,a.Z)({slots:{EndScrollButtonIcon:re.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Pe},orientation:U,direction:f?"left":"right",onClick:ct,disabled:!Oe},se,{className:(0,s.Z)(Me.scrollButtons,se.className)})):null,e}();return(0,x.jsxs)(X,(0,a.Z)({className:(0,s.Z)(Me.root,R),ownerState:Be,ref:t,as:W},me,{children:[pt.scrollButtonStart,pt.scrollbarSizeListener,(0,x.jsxs)(D,{className:Me.scroller,ownerState:Be,style:(0,l.Z)({overflow:Je.overflow},we?"margin".concat(f?"Left":"Right"):"marginBottom",he?void 0:-Je.scrollbarWidth),ref:et,children:[(0,x.jsx)(O,{"aria-label":w,"aria-labelledby":g,"aria-orientation":"vertical"===U?"vertical":null,className:Me.flexContainer,ownerState:Be,onKeyDown:function(e){var t=tt.current,o=(0,k.Z)(t).activeElement;if("tab"===o.getAttribute("role")){var r="horizontal"===U?"ArrowLeft":"ArrowUp",n="horizontal"===U?"ArrowRight":"ArrowDown";switch("horizontal"===U&&f&&(r="ArrowRight",n="ArrowLeft"),e.key){case r:e.preventDefault(),H(t,o,A);break;case n:e.preventDefault(),H(t,o,L);break;case"Home":e.preventDefault(),H(t,null,L);break;case"End":e.preventDefault(),H(t,null,A)}}},ref:tt,role:"tablist",children:bt}),Ie&&ft]}),pt.scrollButtonEnd]}))})),G=_},18759:function(e,t,o){o.d(t,{m:function(){return l}});var r=o(31821),n=o(18561);function l(e){return(0,n.Z)("MuiTabs",e)}var i=(0,r.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=i},4601:function(e,t,o){o(5057);var r=o(57471),n=o(96266);t.Z=(0,r.Z)((0,n.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},50999:function(e,t,o){o(5057);var r=o(57471),n=o(96266);t.Z=(0,r.Z)((0,n.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]);