@abtnode/blocklet-services 1.16.42-beta-20250412-074212-ef879757 → 1.16.42-beta-20250412-083409-53f46a85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{access-control-CkJaSWqQ.js → access-control-wqGz9JCo.js} +1 -1
- package/dist/assets/{add-component-core-CcE5hcL-.js → add-component-core-DqvSoT6a.js} +1 -1
- package/dist/assets/{add-resource-CWB03UX7.js → add-resource-DmN1IY_o.js} +1 -1
- package/dist/assets/{advanced-xfBXRmMb.js → advanced-CzJgEcda.js} +1 -1
- package/dist/assets/{appearance-CSHu4pbk.js → appearance-Bn0kYJHu.js} +1 -1
- package/dist/assets/{audit-logs-JU-7pKhW.js → audit-logs-DU66CSpw.js} +1 -1
- package/dist/assets/{branding-BWmZMyhk.js → branding-C5rNAfwW.js} +1 -1
- package/dist/assets/{branding-CcjXuXBu.js → branding-CiE421Dn.js} +2 -2
- package/dist/assets/{bundle-avatar-DW07bLBG.js → bundle-avatar-vSofRY4G.js} +1 -1
- package/dist/assets/{complete-DJafaAbP.js → complete-BeWyfTmK.js} +1 -1
- package/dist/assets/{component-Dixh8MiE.js → component-CZ948vh4.js} +1 -1
- package/dist/assets/{config-DnWRl-e4.js → config-CFbM7U_5.js} +1 -1
- package/dist/assets/{config-navigation-Dy2e3bWx.js → config-navigation-hrdLDyFZ.js} +3 -3
- package/dist/assets/{config-space-D9XSZ43O.js → config-space-Drp9NI7a.js} +1 -1
- package/dist/assets/{confirm-D36_98HC.js → confirm-B9OqaJpT.js} +1 -1
- package/dist/assets/connect-0zFqdTRm.js +5 -0
- package/dist/assets/{connect-DfFQY1g3.js → connect-CpUC5BAX.js} +1 -1
- package/dist/assets/{connect-to-nV6QlEXH.js → connect-to-BasQxweP.js} +1 -1
- package/dist/assets/{dashboard-BX25tvc1.js → dashboard-BYUKOMAe.js} +3 -3
- package/dist/assets/{delete-confirm-DXKGHbZ0.js → delete-confirm-CM4f-ajO.js} +1 -1
- package/dist/assets/domain-D0xqhxvZ.js +9 -0
- package/dist/assets/{domain-action-card-CE5RoGLV.js → domain-action-card-pHkmKFE3.js} +2 -2
- package/dist/assets/domains-BrNRyjCn.js +1 -0
- package/dist/assets/{email-Blo2BcBK.js → email-C5iUsSjP.js} +1 -1
- package/dist/assets/{exchange-passport-C2ib3_Sn.js → exchange-passport-CyGvLDal.js} +1 -1
- package/dist/assets/{fuel-Dy1g5bbZ.js → fuel-C5H_z1Ay.js} +1 -1
- package/dist/assets/{index-DF8FqhFx.js → index-B8FtPEFx.js} +1 -1
- package/dist/assets/{index-FiEfCjCd.js → index-Bee_YcJC.js} +1 -1
- package/dist/assets/{index-CwaFNZTA.js → index-BjYech25.js} +2 -2
- package/dist/assets/{index-rMaglH7e.js → index-C5lvlGzp.js} +3 -3
- package/dist/assets/{index-CAftUN2f.js → index-CVIeQOoE.js} +1 -1
- package/dist/assets/{index-CH6NslvK.js → index-CYAgDp3G.js} +1 -1
- package/dist/assets/{index-9fAsRy5T.js → index-CjmXl7jW.js} +1 -1
- package/dist/assets/{index-uyugLR5M.js → index-Cp_gD4ZQ.js} +1 -1
- package/dist/assets/{index-lIOjK585.js → index-Ctl8J5Z5.js} +1 -1
- package/dist/assets/{index-DW20Eg1X.js → index-D3YZfNxX.js} +1 -1
- package/dist/assets/{index-B0eRJvP0.js → index-DFoYVoMG.js} +1 -1
- package/dist/assets/{index-BFJrqJbJ.js → index-DUU3hQpo.js} +1 -1
- package/dist/assets/{index-BqFOxrIh.js → index-Dzvf3kMf.js} +4 -4
- package/dist/assets/{index-_bdib4_X.js → index-Kaq7tC6c.js} +1 -1
- package/dist/assets/{index-C_bxIWi7.js → index-d34Q6nXR.js} +1 -1
- package/dist/assets/{invitation-BhpO2wrv.js → invitation-C9hFp_wD.js} +1 -1
- package/dist/assets/{invite-Dho4ZotB.js → invite-CzfqL5Tx.js} +1 -1
- package/dist/assets/{issue-passport-ChG1IKWf.js → issue-passport-D3F63x7z.js} +1 -1
- package/dist/assets/{item-CuaUMkzc.js → item-C_TigVeC.js} +1 -1
- package/dist/assets/{layout-DMTV9CZD.js → layout-D5ALyxXA.js} +1 -1
- package/dist/assets/{list-BpDs72YC.js → list-DuzdV0Wa.js} +1 -1
- package/dist/assets/{log-BHx8x694.js → log-Dg8IZoeo.js} +1 -1
- package/dist/assets/{login-C8IgtQHG.js → login-B9XiO8eS.js} +1 -1
- package/dist/assets/{logo-uploader-COdhJAZk.js → logo-uploader-ChABQ_cS.js} +2 -2
- package/dist/assets/{lost-passport-D7rMK1P8.js → lost-passport-gGzRW--h.js} +1 -1
- package/dist/assets/{overview-d6gDgxnh.js → overview-ClfPLbRa.js} +1 -1
- package/dist/assets/{publish-resource-KUiHUSOS.js → publish-resource-C6TOyrHC.js} +1 -1
- package/dist/assets/{relative-time-B-K8BXmq.js → relative-time-CE47D6s7.js} +1 -1
- package/dist/assets/{runtime-BLeEmHaM.js → runtime-CdKbOwQM.js} +1 -1
- package/dist/assets/{security-4VIghIsi.js → security-DmjkCoJ_.js} +1 -1
- package/dist/assets/setup-DLCw2h80.js +19 -0
- package/dist/assets/{start-D0qy1O4h.js → start-CwSXw9Xs.js} +1 -1
- package/dist/assets/{status-B9rkBROD.js → status-CgfGREVl.js} +1 -1
- package/dist/assets/{step-actions-BxdcbLc6.js → step-actions-BNW8I1sI.js} +1 -1
- package/dist/assets/{traffic-Diahv-s-.js → traffic-ChJb5Oyl.js} +1 -1
- package/dist/assets/{transfer-DIxD0NHy.js → transfer-BHifjdxl.js} +1 -1
- package/dist/assets/{unsubscribe-C3uPy6Yj.js → unsubscribe-CcyOqX8E.js} +1 -1
- package/dist/assets/useAsync-BENTIUEf.js +1 -0
- package/dist/assets/{useAsyncRetry-W2lp7mi1.js → useAsyncRetry-DSYkC9r5.js} +2 -2
- package/dist/assets/{user-center-CcFqKY18.js → user-center-DfDG_giT.js} +1 -1
- package/dist/assets/{util-B_UMdXQ8.js → util-BmbbisPE.js} +1 -1
- package/dist/assets/{wrap-locale-D2zd2sgL.js → wrap-locale-5LSB6OAr.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +21 -22
- package/dist/assets/connect-XFyjVd39.js +0 -5
- package/dist/assets/domain-BwDvbkr6.js +0 -9
- package/dist/assets/domains-D7bzAvx0.js +0 -1
- package/dist/assets/setup-Bbl0UvNZ.js +0 -19
- package/dist/assets/useAsync-BxB2TpDl.js +0 -1
- package/dist/assets/useAsync-L7_fHBH5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as g,j as o,bk as re,ai as G,s as B,v as ie,a4 as D,T as A,x as oe}from"./vendor-mui-core-1jJmAutq.js";import{y as L,z as $,x as ae}from"./vendor-utils-C3FZIS9A.js";import{c as C}from"./vendor-arcblock-V3HYELzG.js";import{z as le,R as ce,O as de}from"./index-CwaFNZTA.js";import{r as q,b as pe,g as Y}from"./vendor-react-DEoibe3W.js";import{f as b,u as W}from"./vendor-hooks-DN4nZ7TU.js";import{p as ue,o as E,h as me}from"./vendor-ux-did-connect-DEbq97Xz.js";const _=(e,t)=>{var s;let r="?v=";return t?r+=ce(t):r+=`${(s=e==null?void 0:e.meta)==null?void 0:s.version}${de(e==null?void 0:e.status)?"~":""}`,r};function fe({blocklet:e}){var p,m,S,O,w,j,K;const{inService:t}=le(),r=(p=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:p.value,s=(m=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:m.value,n=(S=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:S.value,i=(O=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_PORTRAIT))==null?void 0:O.value,l=(w=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_LANDSCAPE))==null?void 0:w.value,c=(j=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_OG_IMAGE))==null?void 0:j.value,a=((K=window.env)==null?void 0:K.apiPrefix)||"/",u=`${L(a,`/blocklet/logo/${t?"":e.meta.did}`)}${_(e,r)}`,d=`${L(a,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${_(e,s??r)}`,y=`${L(a,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${_(e,n??r)}`,h=`${L(a,`/blocklet/splash/portrait/${t?"":e.meta.did}`)}${_(e,i)}`,v=`${L(a,`/blocklet/splash/landscape/${t?"":e.meta.did}`)}${_(e,l)}`,f=`${L(a,`/blocklet/og-image/${t?"":e.meta.did}`)}${_(e,c)}`;return{logoUrl:u,rectLogoUrl:d,faviconUrl:y,splashPortraitUrl:h,splashLandscapeUrl:v,ogImageUrl:f}}function V({blocklet:e,style:t,size:r,...s}){const{logoUrl:n}=fe({blocklet:e}),{variant:i}=s;return o.jsx(re,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:r,height:r,borderRadius:10},t),...s,children:o.jsx("img",{src:n,alt:"",style:{width:r}})})}V.propTypes={blocklet:g.object.isRequired,style:g.object,size:g.oneOfType([g.number,g.string])};V.defaultProps={style:{},size:40};const Je=e=>{if(!e||!e.length)return[];const t=[];let r=null,s=[];if(e.forEach(n=>{var v,f,p,m;if(!n.activity||!n.activity.type||!r){r&&(s.length===1?t.push(s[0]):(r.items=s,t.push(r))),n.activity&&n.activity.type?(r=n,s=[n]):(t.push(n),r=null,s=[]);return}const i=s[0].activity,l=i.type,c=(v=i.target)==null?void 0:v.type,a=(f=i.target)==null?void 0:f.id,u=n.activity.type,d=(p=n.activity.target)==null?void 0:p.type,y=(m=n.activity.target)==null?void 0:m.id;if(l&&u&&l===u&&(!i.target&&!n.activity.target||i.target&&n.activity.target&&c===d&&a===y))s.push(n);else{if(s.length===1)t.push(s[0]);else{const S=Object.assign({},r,{items:s});t.push(S)}r=n,s=[n]}}),r)if(s.length===1)t.push(s[0]);else{const n=Object.assign({},r,{items:s});t.push(n)}return t},et=e=>!$(e.activity)&&!!e.activity.type&&!!e.activity.actor,tt=e=>{const{severity:t}=e||{};return t&&["normal","success","info"].includes(t)},he=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t==null?void 0:t.id,targetLink:r==null?void 0:r.id}},N={COMMENT:"comment",LIKE:"like",FOLLOW:"follow",TIPS:"tips",MENTION:"mention",ASSIGN:"assign"},ge={[N.COMMENT]:(e,t)=>t>1?o.jsxs(o.Fragment,{children:["left ",t," comments on your ",e]}):o.jsxs(o.Fragment,{children:["commented on your ",e]}),[N.LIKE]:e=>o.jsxs(o.Fragment,{children:["liked your ",e]}),[N.FOLLOW]:()=>o.jsx(o.Fragment,{children:"followed you"}),[N.TIPS]:e=>o.jsxs(o.Fragment,{children:["gave tips to your ",e]}),[N.MENTION]:e=>o.jsxs(o.Fragment,{children:["mentioned you in ",e]}),[N.ASSIGN]:()=>o.jsx(o.Fragment,{children:"assigned you a task"})},T=q.memo(function({user:t,color:r=E.textBase}){const s=ae(L(ue.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:t.did});return o.jsx(G,{href:s,color:r,fontWeight:600,target:"_blank",sx:{textDecoration:"none"},onClick:n=>{n.customPreventRedirect=!0},children:t.fullName})});T.propTypes={user:g.shape({did:g.string.isRequired,fullName:g.string.isRequired}).isRequired,color:g.string};T.displayName="UserLink";function nt({activity:e,users:t,actors:r,extra:s={},mountPoint:n=""}){const{type:i,target:l}=e||{},{type:c}=l||{},{linkColor:a=E.textBase}=s||{},u=b(()=>{if(!Array.isArray(t))return new Map;const p=new Map;return t.forEach(m=>{m!=null&&m.did&&!p.has(m.did)&&p.set(m.did,m)}),p},[t]),d=b(()=>Array.isArray(r)?r.map(p=>p?u.get(p)||{did:p,fullName:p==null?void 0:p.substring(0,8)}:null):[],[r,u]),y=W(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return o.jsx(T,{user:d[0],color:a});const p=d.slice(0,-1),m=d[d.length-1];if(d.length===2)return o.jsxs(o.Fragment,{children:[o.jsx(T,{user:p[0],color:a})," and ",o.jsx(T,{user:m,color:a})]});const S=d.length>3,O=S?d.slice(0,2):p;return o.jsxs(o.Fragment,{children:[O.map((w,j)=>o.jsxs(pe.Fragment,{children:[o.jsx(T,{user:w,color:a}),j<O.length-1?", ":""]},w.did)),S?`, and ${d.length-2} others`:o.jsxs(o.Fragment,{children:[", and ",o.jsx(T,{user:m,color:a})]})]})}),h=W(()=>{const p=ge[i];return p?p(c,t.length):null}),v=b(()=>{const p=y(),m=h();return!p||!m?null:o.jsxs(o.Fragment,{children:[p," ",m]})},[i,c,d,y,h]),f=b(()=>{if(!e)return null;const p=he(e);return p!=null&&p.targetLink?L(n,p.targetLink):null},[e,n]);return!i||$(l)?null:o.jsxs(o.Fragment,{children:[v," ",o.jsx(G,{href:f,color:E.primaryBase,target:"_blank",sx:{textDecoration:"none"},onClick:p=>{p.customPreventRedirect=!0},children:l.name})]})}const ye={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L7 17M8 7h9v9"/>'};Q.propTypes={meta:g.object.isRequired};const ve=B(ie)(({theme:e})=>({maxWidth:320,display:"flex",flexDirection:"column",gap:e.spacing(1.5),padding:e.spacing(2),marginTop:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid ${E.dividerColor}`,boxShadow:"none"})),xe=B(D)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1)})),Le=B(D)({display:"flex",justifyContent:"space-between",alignItems:"center"});function Q({meta:e}){const{amount:t,symbol:r,chainId:s}=e,n=()=>{window.open(`https://explorer.arcblock.io/chain/${s}`,"_blank")};return o.jsxs(ve,{children:[o.jsxs(xe,{children:[o.jsx("img",{alt:"ArcBlock Beta",src:"https://bbqat7g5cg33cyr4pdrd6foycgzfb5xxeh2se7gcqkq.did.abtnet.io/payment-kit/methods/arcblock.png",width:32,height:32,style:{borderRadius:16}}),o.jsx(A,{variant:"h5",color:E.textBase,children:"ArcBlock"})]}),o.jsxs(Le,{children:[o.jsxs(D,{display:"flex",alignItems:"baseline",gap:1,children:[o.jsxs(A,{component:"span",variant:"h5",color:E.textBase,fontWeight:"bold",children:["+ ",t]}),o.jsx(A,{component:"span",variant:"subtitle2",color:E.textSubtitle,children:r})]}),o.jsx(oe,{variant:"outlined",size:"small",color:"secondary",endIcon:o.jsx(me,{icon:ye}),onClick:n,sx:{borderRadius:4},children:"View on Chain"})]})]})}X.propTypes={meta:g.object.isRequired,type:g.string.isRequired,hideTips:g.bool,sx:g.object};X.defaultProps={hideTips:!1,sx:{}};function X({meta:e,type:t,hideTips:r=!1,sx:s}){return $(e)?null:t==="tips"&&!r?o.jsx(Q,{meta:e}):o.jsx(A,{variant:"subtitle2",fontSize:16,component:"p",sx:s,color:E.textSubtitle,children:e.content})}var Ee=q;function Se(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var U=Se(Ee);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},R.apply(this,arguments)}function Te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,P(e,t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,n){return s.__proto__=n,s},P(e,t)}function Ce(e,t){if(e==null)return{};var r={},s=Object.keys(e),n,i;for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var z={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},_e=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function Ne(e,t){if(!e||typeof e!="object")return e;var r={};return Object.keys(e).forEach(function(s){t.indexOf(s)>-1||(r[s]=e[s])}),r}var Oe=["component","className","unsafeHTML"];function Z(e,t){if(t!=="letters"&&t!=="words")throw new Error("Unsupported options basedOn: "+t);if(e.nodeType===Node.TEXT_NODE){var r=document.createDocumentFragment(),s;switch(t){case"words":s=e.textContent.split(/\b|(?=\W)/);break;case"letters":s=Array.from(e.textContent);break}s.forEach(function(c){r.appendChild(we(c))}),e.parentNode.replaceChild(r,e)}else if(e.nodeType===Node.ELEMENT_NODE)for(var n=[].slice.call(e.childNodes),i=n.length,l=0;l<i;l++)Z(n[l],t)}function we(e){var t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}function k(e){e.parentNode.replaceChild(document.createTextNode(e.textContent),e)}function J(e,t){if(!(!t.contains(e)||e===t)){for(;e.nextElementSibling;)e.parentNode.removeChild(e.nextElementSibling);J(e.parentNode,t)}}function Me(e){for(var t=e;t=t.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(t.tagName.toLowerCase()))return t}function F(e){return!!(e.offsetHeight&&(e.offsetWidth||/\S/.test(e.textContent)))}var ee={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},je=Object.keys(ee),te=function(e){Te(t,e);function t(s){var n;return n=e.call(this,s)||this,n.state={html:s.unsafeHTML,clamped:!1},n.canvas=null,n.maxLine=0,n.nlUnits=[],n}var r=t.prototype;return r.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},r.componentDidUpdate=function(n){n.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==n&&this.reflow(this.props)},r.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},r.setState=function(n,i){return typeof n.clamped<"u"&&(this.clamped=n.clamped),e.prototype.setState.call(this,n,i)},r.initCanvas=function(){if(!this.canvas){var n=this.canvas=document.createElement("div");n.className="LinesEllipsis-canvas "+this.props.className,n.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(z).forEach(function(i){n.style[i]=z[i]}),document.body.appendChild(n)}},r.copyStyleToCanvas=function(){var n=this,i=window.getComputedStyle(this.target);_e.forEach(function(l){n.canvas.style[l]=i[l]})},r.reflow=function(n){this.maxLine=+n.maxLine||1,this.canvas.innerHTML=n.unsafeHTML;var i=n.basedOn||(/^[\x00-\x7F]+$/.test(n.unsafeHTML)?"words":"letters");Z(this.canvas,i);var l=this.putEllipsis(this.calcIndexes()),c={clamped:l,html:this.canvas.innerHTML};this.setState(c,n.onReflow.bind(this,c))},r.calcIndexes=function(){var n=[0],i=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),l=i.length;if(!i.length)return n;var c=i.find(F);if(!c)return n;for(var a=1,u=c.offsetTop,d=1;d<l&&!(F(i[d])&&i[d].offsetTop-u>1&&(a++,n.push(d),u=i[d].offsetTop,a>this.maxLine));d++);return n},r.putEllipsis=function(n){if(n.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,n[this.maxLine]);var i=this.nlUnits.pop(),l=this.makeEllipsisSpan();do J(i,this.canvas),Me(i).appendChild(l),i=this.nlUnits.pop();while(i&&(!F(i)||l.offsetHeight>i.offsetHeight||l.offsetTop>i.offsetTop));return i&&k(i),this.nlUnits.forEach(k),!0},r.makeEllipsisSpan=function(){var n=this.props,i=n.ellipsisHTML,l=n.ellipsis,c=document.createElement("span");c.appendChild(document.createElement("wbr"));var a=document.createElement("span");return a.className="LinesEllipsis-ellipsis",i?a.innerHTML=i:a.textContent=l,c.appendChild(a),c},r.isClamped=function(){return this.clamped},r.render=function(){var n=this,i=this.state,l=i.html,c=i.clamped,a=this.props,u=a.component,d=a.className,y=a.unsafeHTML,h=Ce(a,Oe);return U.default.createElement(u,R({className:"LinesEllipsis "+(c?"LinesEllipsis--clamped":"")+" "+d,ref:function(f){return n.target=f}},Ne(h,je)),U.default.createElement("div",{dangerouslySetInnerHTML:{__html:c?l:y}}))},t}(U.default.Component);te.defaultProps=ee;var be=te;const st=Y(be),Ae=e=>{const t="explorer.arcblockio.cn";return e&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[e]||t},Ue=e=>{try{return new URL(e).host}catch{return e}};var rt={getChainHost:Ae,getUrlHost:Ue},it={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad",fontWeight:700},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}},Fe={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},Re={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const I=new Map,Pe=(e,t)=>{I.set(e,t)},Ie=(e="en_US")=>I.get(e)||I.get("en_US");var ne={registerLang:Pe,getLang:Ie},Be=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const De=Be,{getLang:M}=ne,$e=(e,t)=>t===1?e:`${e}s`,He=1e-7;var Ke=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const r=M(t.locale),s=[],n=(c,a)=>{const u=Math.floor(c*10**a+He);return(Math.round(u)/10**a).toFixed(a)},i=(c,a,u)=>{if((s.length===0||!t.colonNotation)&&c===0&&!(t.colonNotation&&a==="minute"))return;const{long:d}=r[a]||M("en_US")[a],{short:y}=r[a]||M("en_US")[a];let h=(u||c||"0").toString(),v,f;if(t.colonNotation){v=s.length>0?":":"",f="";const p=h.includes(".")?h.split(".")[0].length:h.length,m=s.length>0?2:1;h="0".repeat(Math.max(0,m-p))+h}else v="",t.locale==="zh_CN"?Object.values(l).filter(p=>p>0).length>1?!l.days&&!l.hours&&l.minutes&&t.compact?f=d:f=y:l.minutes?f=d:f=y:f=t.verbose?` ${$e(d,c)}`:y;s.push(v+h+f)},l=De(e);if(i(Math.trunc(l.days/365),"year"),i(l.days%365,"day"),i(l.hours,"hour"),i(l.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(l.seconds,"second"),t.formatSubMilliseconds)i(l.milliseconds,"millisecond"),i(l.microseconds,"microsecond"),i(l.nanoseconds,"nanosecond");else{const c=l.milliseconds+l.microseconds/1e3+l.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=c>=1?Math.round(c):Math.ceil(c),d=a?c.toFixed(a):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const c=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=n(c,a),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(s.length===0){const c=(r.millisecond||M("en_US").millisecond).long,a=(r.millisecond||M("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${c}`:a}`:`0${t.verbose?` ${c}s`:a}`}if(t.compact)return s[0];if(typeof t.unitCount=="number"){const c=t.colonNotation?"":" ";return s.slice(0,Math.max(t.unitCount,1)).join(c)}return t.colonNotation?s.join(""):s.join(" ")};const We=Fe,ze=Re,{registerLang:H}=ne,se=Ke;H("en_US",We);H("zh_CN",ze);se.registerLang=H;var ke=se;const ot=Y(ke);export{V as B,st as H,X as M,tt as a,fe as b,rt as c,ye as d,he as g,et as i,Je as m,ot as p,it as s,nt as u};
|
|
1
|
+
import{E as g,j as o,bk as re,ai as G,s as B,v as ie,a4 as D,T as A,x as oe}from"./vendor-mui-core-1jJmAutq.js";import{y as L,z as $,x as ae}from"./vendor-utils-C3FZIS9A.js";import{c as C}from"./vendor-arcblock-V3HYELzG.js";import{z as le,R as ce,O as de}from"./index-BjYech25.js";import{r as q,b as pe,g as Y}from"./vendor-react-DEoibe3W.js";import{f as b,u as W}from"./vendor-hooks-DN4nZ7TU.js";import{p as ue,o as E,h as me}from"./vendor-ux-did-connect-DEbq97Xz.js";const _=(e,t)=>{var s;let r="?v=";return t?r+=ce(t):r+=`${(s=e==null?void 0:e.meta)==null?void 0:s.version}${de(e==null?void 0:e.status)?"~":""}`,r};function fe({blocklet:e}){var p,m,S,O,w,j,K;const{inService:t}=le(),r=(p=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:p.value,s=(m=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:m.value,n=(S=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:S.value,i=(O=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_PORTRAIT))==null?void 0:O.value,l=(w=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_LANDSCAPE))==null?void 0:w.value,c=(j=((e==null?void 0:e.environments)||[]).find(x=>x.key===C.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_OG_IMAGE))==null?void 0:j.value,a=((K=window.env)==null?void 0:K.apiPrefix)||"/",u=`${L(a,`/blocklet/logo/${t?"":e.meta.did}`)}${_(e,r)}`,d=`${L(a,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${_(e,s??r)}`,y=`${L(a,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${_(e,n??r)}`,h=`${L(a,`/blocklet/splash/portrait/${t?"":e.meta.did}`)}${_(e,i)}`,v=`${L(a,`/blocklet/splash/landscape/${t?"":e.meta.did}`)}${_(e,l)}`,f=`${L(a,`/blocklet/og-image/${t?"":e.meta.did}`)}${_(e,c)}`;return{logoUrl:u,rectLogoUrl:d,faviconUrl:y,splashPortraitUrl:h,splashLandscapeUrl:v,ogImageUrl:f}}function V({blocklet:e,style:t,size:r,...s}){const{logoUrl:n}=fe({blocklet:e}),{variant:i}=s;return o.jsx(re,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:r,height:r,borderRadius:10},t),...s,children:o.jsx("img",{src:n,alt:"",style:{width:r}})})}V.propTypes={blocklet:g.object.isRequired,style:g.object,size:g.oneOfType([g.number,g.string])};V.defaultProps={style:{},size:40};const Je=e=>{if(!e||!e.length)return[];const t=[];let r=null,s=[];if(e.forEach(n=>{var v,f,p,m;if(!n.activity||!n.activity.type||!r){r&&(s.length===1?t.push(s[0]):(r.items=s,t.push(r))),n.activity&&n.activity.type?(r=n,s=[n]):(t.push(n),r=null,s=[]);return}const i=s[0].activity,l=i.type,c=(v=i.target)==null?void 0:v.type,a=(f=i.target)==null?void 0:f.id,u=n.activity.type,d=(p=n.activity.target)==null?void 0:p.type,y=(m=n.activity.target)==null?void 0:m.id;if(l&&u&&l===u&&(!i.target&&!n.activity.target||i.target&&n.activity.target&&c===d&&a===y))s.push(n);else{if(s.length===1)t.push(s[0]);else{const S=Object.assign({},r,{items:s});t.push(S)}r=n,s=[n]}}),r)if(s.length===1)t.push(s[0]);else{const n=Object.assign({},r,{items:s});t.push(n)}return t},et=e=>!$(e.activity)&&!!e.activity.type&&!!e.activity.actor,tt=e=>{const{severity:t}=e||{};return t&&["normal","success","info"].includes(t)},he=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t==null?void 0:t.id,targetLink:r==null?void 0:r.id}},N={COMMENT:"comment",LIKE:"like",FOLLOW:"follow",TIPS:"tips",MENTION:"mention",ASSIGN:"assign"},ge={[N.COMMENT]:(e,t)=>t>1?o.jsxs(o.Fragment,{children:["left ",t," comments on your ",e]}):o.jsxs(o.Fragment,{children:["commented on your ",e]}),[N.LIKE]:e=>o.jsxs(o.Fragment,{children:["liked your ",e]}),[N.FOLLOW]:()=>o.jsx(o.Fragment,{children:"followed you"}),[N.TIPS]:e=>o.jsxs(o.Fragment,{children:["gave tips to your ",e]}),[N.MENTION]:e=>o.jsxs(o.Fragment,{children:["mentioned you in ",e]}),[N.ASSIGN]:()=>o.jsx(o.Fragment,{children:"assigned you a task"})},T=q.memo(function({user:t,color:r=E.textBase}){const s=ae(L(ue.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:t.did});return o.jsx(G,{href:s,color:r,fontWeight:600,target:"_blank",sx:{textDecoration:"none"},onClick:n=>{n.customPreventRedirect=!0},children:t.fullName})});T.propTypes={user:g.shape({did:g.string.isRequired,fullName:g.string.isRequired}).isRequired,color:g.string};T.displayName="UserLink";function nt({activity:e,users:t,actors:r,extra:s={},mountPoint:n=""}){const{type:i,target:l}=e||{},{type:c}=l||{},{linkColor:a=E.textBase}=s||{},u=b(()=>{if(!Array.isArray(t))return new Map;const p=new Map;return t.forEach(m=>{m!=null&&m.did&&!p.has(m.did)&&p.set(m.did,m)}),p},[t]),d=b(()=>Array.isArray(r)?r.map(p=>p?u.get(p)||{did:p,fullName:p==null?void 0:p.substring(0,8)}:null):[],[r,u]),y=W(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return o.jsx(T,{user:d[0],color:a});const p=d.slice(0,-1),m=d[d.length-1];if(d.length===2)return o.jsxs(o.Fragment,{children:[o.jsx(T,{user:p[0],color:a})," and ",o.jsx(T,{user:m,color:a})]});const S=d.length>3,O=S?d.slice(0,2):p;return o.jsxs(o.Fragment,{children:[O.map((w,j)=>o.jsxs(pe.Fragment,{children:[o.jsx(T,{user:w,color:a}),j<O.length-1?", ":""]},w.did)),S?`, and ${d.length-2} others`:o.jsxs(o.Fragment,{children:[", and ",o.jsx(T,{user:m,color:a})]})]})}),h=W(()=>{const p=ge[i];return p?p(c,t.length):null}),v=b(()=>{const p=y(),m=h();return!p||!m?null:o.jsxs(o.Fragment,{children:[p," ",m]})},[i,c,d,y,h]),f=b(()=>{if(!e)return null;const p=he(e);return p!=null&&p.targetLink?L(n,p.targetLink):null},[e,n]);return!i||$(l)?null:o.jsxs(o.Fragment,{children:[v," ",o.jsx(G,{href:f,color:E.primaryBase,target:"_blank",sx:{textDecoration:"none"},onClick:p=>{p.customPreventRedirect=!0},children:l.name})]})}const ye={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L7 17M8 7h9v9"/>'};Q.propTypes={meta:g.object.isRequired};const ve=B(ie)(({theme:e})=>({maxWidth:320,display:"flex",flexDirection:"column",gap:e.spacing(1.5),padding:e.spacing(2),marginTop:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid ${E.dividerColor}`,boxShadow:"none"})),xe=B(D)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1)})),Le=B(D)({display:"flex",justifyContent:"space-between",alignItems:"center"});function Q({meta:e}){const{amount:t,symbol:r,chainId:s}=e,n=()=>{window.open(`https://explorer.arcblock.io/chain/${s}`,"_blank")};return o.jsxs(ve,{children:[o.jsxs(xe,{children:[o.jsx("img",{alt:"ArcBlock Beta",src:"https://bbqat7g5cg33cyr4pdrd6foycgzfb5xxeh2se7gcqkq.did.abtnet.io/payment-kit/methods/arcblock.png",width:32,height:32,style:{borderRadius:16}}),o.jsx(A,{variant:"h5",color:E.textBase,children:"ArcBlock"})]}),o.jsxs(Le,{children:[o.jsxs(D,{display:"flex",alignItems:"baseline",gap:1,children:[o.jsxs(A,{component:"span",variant:"h5",color:E.textBase,fontWeight:"bold",children:["+ ",t]}),o.jsx(A,{component:"span",variant:"subtitle2",color:E.textSubtitle,children:r})]}),o.jsx(oe,{variant:"outlined",size:"small",color:"secondary",endIcon:o.jsx(me,{icon:ye}),onClick:n,sx:{borderRadius:4},children:"View on Chain"})]})]})}X.propTypes={meta:g.object.isRequired,type:g.string.isRequired,hideTips:g.bool,sx:g.object};X.defaultProps={hideTips:!1,sx:{}};function X({meta:e,type:t,hideTips:r=!1,sx:s}){return $(e)?null:t==="tips"&&!r?o.jsx(Q,{meta:e}):o.jsx(A,{variant:"subtitle2",fontSize:16,component:"p",sx:s,color:E.textSubtitle,children:e.content})}var Ee=q;function Se(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var U=Se(Ee);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},R.apply(this,arguments)}function Te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,P(e,t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,n){return s.__proto__=n,s},P(e,t)}function Ce(e,t){if(e==null)return{};var r={},s=Object.keys(e),n,i;for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var z={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},_e=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function Ne(e,t){if(!e||typeof e!="object")return e;var r={};return Object.keys(e).forEach(function(s){t.indexOf(s)>-1||(r[s]=e[s])}),r}var Oe=["component","className","unsafeHTML"];function Z(e,t){if(t!=="letters"&&t!=="words")throw new Error("Unsupported options basedOn: "+t);if(e.nodeType===Node.TEXT_NODE){var r=document.createDocumentFragment(),s;switch(t){case"words":s=e.textContent.split(/\b|(?=\W)/);break;case"letters":s=Array.from(e.textContent);break}s.forEach(function(c){r.appendChild(we(c))}),e.parentNode.replaceChild(r,e)}else if(e.nodeType===Node.ELEMENT_NODE)for(var n=[].slice.call(e.childNodes),i=n.length,l=0;l<i;l++)Z(n[l],t)}function we(e){var t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}function k(e){e.parentNode.replaceChild(document.createTextNode(e.textContent),e)}function J(e,t){if(!(!t.contains(e)||e===t)){for(;e.nextElementSibling;)e.parentNode.removeChild(e.nextElementSibling);J(e.parentNode,t)}}function Me(e){for(var t=e;t=t.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(t.tagName.toLowerCase()))return t}function F(e){return!!(e.offsetHeight&&(e.offsetWidth||/\S/.test(e.textContent)))}var ee={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},je=Object.keys(ee),te=function(e){Te(t,e);function t(s){var n;return n=e.call(this,s)||this,n.state={html:s.unsafeHTML,clamped:!1},n.canvas=null,n.maxLine=0,n.nlUnits=[],n}var r=t.prototype;return r.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},r.componentDidUpdate=function(n){n.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==n&&this.reflow(this.props)},r.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},r.setState=function(n,i){return typeof n.clamped<"u"&&(this.clamped=n.clamped),e.prototype.setState.call(this,n,i)},r.initCanvas=function(){if(!this.canvas){var n=this.canvas=document.createElement("div");n.className="LinesEllipsis-canvas "+this.props.className,n.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(z).forEach(function(i){n.style[i]=z[i]}),document.body.appendChild(n)}},r.copyStyleToCanvas=function(){var n=this,i=window.getComputedStyle(this.target);_e.forEach(function(l){n.canvas.style[l]=i[l]})},r.reflow=function(n){this.maxLine=+n.maxLine||1,this.canvas.innerHTML=n.unsafeHTML;var i=n.basedOn||(/^[\x00-\x7F]+$/.test(n.unsafeHTML)?"words":"letters");Z(this.canvas,i);var l=this.putEllipsis(this.calcIndexes()),c={clamped:l,html:this.canvas.innerHTML};this.setState(c,n.onReflow.bind(this,c))},r.calcIndexes=function(){var n=[0],i=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),l=i.length;if(!i.length)return n;var c=i.find(F);if(!c)return n;for(var a=1,u=c.offsetTop,d=1;d<l&&!(F(i[d])&&i[d].offsetTop-u>1&&(a++,n.push(d),u=i[d].offsetTop,a>this.maxLine));d++);return n},r.putEllipsis=function(n){if(n.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,n[this.maxLine]);var i=this.nlUnits.pop(),l=this.makeEllipsisSpan();do J(i,this.canvas),Me(i).appendChild(l),i=this.nlUnits.pop();while(i&&(!F(i)||l.offsetHeight>i.offsetHeight||l.offsetTop>i.offsetTop));return i&&k(i),this.nlUnits.forEach(k),!0},r.makeEllipsisSpan=function(){var n=this.props,i=n.ellipsisHTML,l=n.ellipsis,c=document.createElement("span");c.appendChild(document.createElement("wbr"));var a=document.createElement("span");return a.className="LinesEllipsis-ellipsis",i?a.innerHTML=i:a.textContent=l,c.appendChild(a),c},r.isClamped=function(){return this.clamped},r.render=function(){var n=this,i=this.state,l=i.html,c=i.clamped,a=this.props,u=a.component,d=a.className,y=a.unsafeHTML,h=Ce(a,Oe);return U.default.createElement(u,R({className:"LinesEllipsis "+(c?"LinesEllipsis--clamped":"")+" "+d,ref:function(f){return n.target=f}},Ne(h,je)),U.default.createElement("div",{dangerouslySetInnerHTML:{__html:c?l:y}}))},t}(U.default.Component);te.defaultProps=ee;var be=te;const st=Y(be),Ae=e=>{const t="explorer.arcblockio.cn";return e&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[e]||t},Ue=e=>{try{return new URL(e).host}catch{return e}};var rt={getChainHost:Ae,getUrlHost:Ue},it={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad",fontWeight:700},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}},Fe={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},Re={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const I=new Map,Pe=(e,t)=>{I.set(e,t)},Ie=(e="en_US")=>I.get(e)||I.get("en_US");var ne={registerLang:Pe,getLang:Ie},Be=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const De=Be,{getLang:M}=ne,$e=(e,t)=>t===1?e:`${e}s`,He=1e-7;var Ke=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const r=M(t.locale),s=[],n=(c,a)=>{const u=Math.floor(c*10**a+He);return(Math.round(u)/10**a).toFixed(a)},i=(c,a,u)=>{if((s.length===0||!t.colonNotation)&&c===0&&!(t.colonNotation&&a==="minute"))return;const{long:d}=r[a]||M("en_US")[a],{short:y}=r[a]||M("en_US")[a];let h=(u||c||"0").toString(),v,f;if(t.colonNotation){v=s.length>0?":":"",f="";const p=h.includes(".")?h.split(".")[0].length:h.length,m=s.length>0?2:1;h="0".repeat(Math.max(0,m-p))+h}else v="",t.locale==="zh_CN"?Object.values(l).filter(p=>p>0).length>1?!l.days&&!l.hours&&l.minutes&&t.compact?f=d:f=y:l.minutes?f=d:f=y:f=t.verbose?` ${$e(d,c)}`:y;s.push(v+h+f)},l=De(e);if(i(Math.trunc(l.days/365),"year"),i(l.days%365,"day"),i(l.hours,"hour"),i(l.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(l.seconds,"second"),t.formatSubMilliseconds)i(l.milliseconds,"millisecond"),i(l.microseconds,"microsecond"),i(l.nanoseconds,"nanosecond");else{const c=l.milliseconds+l.microseconds/1e3+l.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=c>=1?Math.round(c):Math.ceil(c),d=a?c.toFixed(a):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const c=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=n(c,a),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(s.length===0){const c=(r.millisecond||M("en_US").millisecond).long,a=(r.millisecond||M("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${c}`:a}`:`0${t.verbose?` ${c}s`:a}`}if(t.compact)return s[0];if(typeof t.unitCount=="number"){const c=t.colonNotation?"":" ";return s.slice(0,Math.max(t.unitCount,1)).join(c)}return t.colonNotation?s.join(""):s.join(" ")};const We=Fe,ze=Re,{registerLang:H}=ne,se=Ke;H("en_US",We);H("zh_CN",ze);se.registerLang=H;var ke=se;const ot=Y(ke);export{V as B,st as H,X as M,tt as a,fe as b,rt as c,ye as d,he as g,et as i,Je as m,ot as p,it as s,nt as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,a3 as h,a4 as c,E as d,aa as g}from"./vendor-mui-core-1jJmAutq.js";import{r as y}from"./vendor-react-DEoibe3W.js";import{a$ as v,C as w,B as m}from"./vendor-ux-did-connect-DEbq97Xz.js";import{P}from"./page-header-DWf5vODI.js";import{C as E}from"./index-
|
|
1
|
+
import{j as t,a3 as h,a4 as c,E as d,aa as g}from"./vendor-mui-core-1jJmAutq.js";import{r as y}from"./vendor-react-DEoibe3W.js";import{a$ as v,C as w,B as m}from"./vendor-ux-did-connect-DEbq97Xz.js";import{P}from"./page-header-DWf5vODI.js";import{C as E}from"./index-BjYech25.js";import{u as T}from"./config-space-Drp9NI7a.js";import{C as B,D,a as N}from"./connect-to-BasQxweP.js";import{S as u}from"./step-actions-BNW8I1sI.js";import{S as b}from"./layout-D5ALyxXA.js";import"./vendor-utils-C3FZIS9A.js";import"./vendor-hooks-DN4nZ7TU.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-V3HYELzG.js";import"./spaces-CyFGYf34.js";import"./api-kwOW9mRz.js";import"./DeleteOutline-CKVA3PXs.js";import"./format-error-BrmqJs5a.js";import"./use-mobile-DpXDDjat.js";import"./content-layout-Bs-vdQ_U.js";function l({onNext:a,onPrevious:x}){var n,r,p;const{t:i}=y.useContext(v),{blocklet:e}=E(),{spaceGateway:f,settingStorageEndpoint:C,updateSpaceGateway:j,hasStorageEndpoint:S,loading:o,storageEndpoint:s}=T();return o?t.jsx(w,{relative:"parent",children:t.jsx(h,{})}):t.jsxs(G,{children:[t.jsx("div",{className:"header",children:t.jsx(P,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{sx:{width:"100%",maxWidth:"720px"},children:S?t.jsx(B,{spaceGateway:f,settingStorageEndpoint:C}):t.jsx(D,{})}),((n=e==null?void 0:e.capabilities)==null?void 0:n.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:j,storageEndpoint:s})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(m,{loading:o,variant:"contained",disabled:o||!s,onClick:()=>a(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>a("complete"),children:t.jsx(m,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>a(),children:i(s?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:d.func,onPrevious:d.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const G=g(b)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
`;export{l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as w}from"./vendor-react-DEoibe3W.js";import{ab as b}from"./index-
|
|
1
|
+
import{g as w}from"./vendor-react-DEoibe3W.js";import{ab as b}from"./index-BjYech25.js";var x=(n,t=1,e)=>{if(e={indent:" ",includeEmptyLines:!1,...e},typeof n!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof n}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof e.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof e.indent}\``);if(t===0)return n;const r=e.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return n.replace(r,e.indent.repeat(t))};const m=b,E=/\s+at.*(?:\(|\s)(.*)\)?/,$=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,j=typeof m.homedir>"u"?"":m.homedir();var v=(n,t)=>(t=Object.assign({pretty:!1},t),n.replace(/\\/g,"/").split(`
|
|
2
2
|
`).filter(e=>{const r=e.match(E);if(r===null||!r[1])return!0;const a=r[1];return a.includes(".app/Contents/Resources/electron.asar")||a.includes(".app/Contents/Resources/default_app.asar")?!1:!$.test(a)}).filter(e=>e.trim()!=="").map(e=>t.pretty?e.replace(E,(r,a)=>r.replace(a,a.replace(j,"~"))):e).join(`
|
|
3
3
|
`));const A=x,S=v,I=n=>n.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");let k=class extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);t=[...t].map(r=>r instanceof Error?r:r!==null&&typeof r=="object"?Object.assign(new Error(r.message),r):new Error(r));let e=t.map(r=>typeof r.stack=="string"?I(S(r.stack)):String(r)).join(`
|
|
4
4
|
`);e=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as W,t as Vn,g as Wn,e as Dr,a as Hn}from"./vendor-react-DEoibe3W.js";import{a2 as sn,j as r,E as D,bn as dt,M as Xe,bp as Yn,ak as pt,a4 as ne,bq as er,bm as tr,T as Me,a3 as ot,bu as sr,ad as it,aa as Ce,a5 as mt,v as Zn,x as cn,bk as Gn,b3 as Qn,b4 as Xn,I as Jn,bj as ei,br as ti,bN as ri}from"./vendor-mui-core-1jJmAutq.js";import{p as De,B as rr,c as nr,Z as ni,as as ii,n as _r,y as oi,z as ai}from"./vendor-utils-C3FZIS9A.js";import{r as ln,bt as ht,bu as si,bv as ci,bw as un,bx as li,by as ui,bz as fi,bA as fn,bB as di,bC as cr,bD as pi,bE as mi,bF as hi,bG as gi,aF as lr,bH as dn,aE as yi,l as vi,u as Oe,X as pn,W as bi,ak as Ze,B as Se,k as xi,am as wi,d as Ei,a$ as gt,Y as Fe,bk as ji,p as Ge,_ as mn,ag as Si,h as Ci,aq as Pi,b1 as Ai,a5 as hn,a4 as gn,V as Ii}from"./vendor-ux-did-connect-DEbq97Xz.js";import{A as Oi,c as Qe,N as Ri,J as yn,z as Ct,v as Ti,K as Ni}from"./vendor-arcblock-V3HYELzG.js";import{d as Di}from"./ViewList-DOu7Co_L.js";import{Y as _i,f as Li,t as Ye,z as Re,ao as ur,l as Je,Z as Ui,M as et,ap as ki,C as vn,aq as bn,b as qi}from"./index-CwaFNZTA.js";import{k as Bi,u as fr,f as Mi,a as dr,l as Ki}from"./vendor-hooks-DN4nZ7TU.js";import{u as Ue,d as Lr,W as xn}from"./dashboard-BX25tvc1.js";import{W as Pt}from"./did-address-B_VfxEC5.js";import{P as Ke}from"./permission-CmHMB8NK.js";import{C as Tt}from"./click-to-copy-C9iEVQIO.js";import{f as $e}from"./format-error-BrmqJs5a.js";import{u as Fi}from"./useAsync-L7_fHBH5.js";import{I as Ie}from"./index-Du2DtxVt.js";import{d as $i}from"./DeleteOutline-CKVA3PXs.js";import{C as yt}from"./confirm-D36_98HC.js";import{u as vt}from"./session-0rF5SuCk.js";import{i as wn,a as At,p as En}from"./util-1n1Ulk5w.js";import{b as zi}from"./sdk-j4w1A_X4.js";import{p as Vi}from"./index-DW20Eg1X.js";import{A as Wi}from"./actions-CAL1KFv7.js";import{S as Hi}from"./shorten-label-DDBwv81M.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-Cq9THoCr.js";import"./PlayArrow-DpcMtsY5.js";import"./get-safe-url-D_Puq_oh.js";import"./index-uyugLR5M.js";import"./useAsyncRetry-W2lp7mi1.js";import"./useAsync-BxB2TpDl.js";import"./InfoOutlined-CEHciuDy.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DpXDDjat.js";import"./base32-CLGITfm-.js";import"./MoreHoriz-THEF6D0C.js";var pr={},Yi=sn;Object.defineProperty(pr,"__esModule",{value:!0});var jn=pr.default=void 0,Zi=Yi(ln()),Gi=r;jn=pr.default=(0,Zi.default)((0,Gi.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var mr=function(e){return r.jsxs("svg",{...e,children:[r.jsx("g",{clipPath:"url(#clip0)",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0",children:r.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};mr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};mr.displayName="person";const Qi=mr;var hr=function(e){return r.jsxs("svg",{...e,children:[r.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};hr.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};hr.displayName="external-issuer";const Sn=hr;var jt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Ur=new RegExp("("+Cn+")|([^%]+?)","gi"),kr=new RegExp("("+Cn+")+","gi");function ir(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],ir(n),ir(i))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Ur)||[],n=1;n<t.length;n++)e=ir(t,n).join(""),t=e.match(Ur)||[];return e}}function eo(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=kr.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var i=Ji(n[0]);i!==n[0]&&(t[n[0]]=i)}n=kr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),c=0;c<s.length;c++){var d=s[c];e=e.replace(new RegExp(d,"g"),t[d])}return e}var to=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return eo(e)}},ro=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},no=function(e,t){for(var n={},i=Object.keys(e),s=Array.isArray(t),c=0;c<i.length;c++){var d=i[c],A=e[d];(s?t.indexOf(d)!==-1:t(d,A,e))&&(n[d]=A)}return n};(function(e){const t=Xi,n=to,i=ro,s=no,c=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,f)=>{const x=l.length;return f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,[b(o,a),"[",x,"]"].join("")]:[...l,[b(o,a),"[",b(x,a),"]=",b(f,a)].join("")]};case"bracket":return o=>(l,f)=>f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,[b(o,a),"[]"].join("")]:[...l,[b(o,a),"[]=",b(f,a)].join("")];case"comma":case"separator":return o=>(l,f)=>f==null||f.length===0?l:l.length===0?[[b(o,a),"=",b(f,a)].join("")]:[[l,b(f,a)].join(a.arrayFormatSeparator)];default:return o=>(l,f)=>f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,b(o,a)]:[...l,[b(o,a),"=",b(f,a)].join("")]}}function A(a){let o;switch(a.arrayFormat){case"index":return(l,f,x)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){x[l]=f;return}x[l]===void 0&&(x[l]={}),x[l][o[1]]=f};case"bracket":return(l,f,x)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){x[l]=f;return}if(x[l]===void 0){x[l]=[f];return}x[l]=[].concat(x[l],f)};case"comma":case"separator":return(l,f,x)=>{const C=typeof f=="string"&&f.includes(a.arrayFormatSeparator),S=typeof f=="string"&&!C&&m(f,a).includes(a.arrayFormatSeparator);f=S?m(f,a):f;const X=C||S?f.split(a.arrayFormatSeparator).map(G=>m(G,a)):f===null?f:m(f,a);x[l]=X};default:return(l,f,x)=>{if(x[l]===void 0){x[l]=f;return}x[l]=[].concat(x[l],f)}}}function E(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function b(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function m(a,o){return o.decode?n(a):a}function I(a){return Array.isArray(a)?a.sort():typeof a=="object"?I(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function j(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function O(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function h(a){a=j(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function q(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function w(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),E(o.arrayFormatSeparator);const l=A(o),f=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return f;for(const x of a.split("&")){if(x==="")continue;let[C,S]=i(o.decode?x.replace(/\+/g," "):x,"=");S=S===void 0?null:["comma","separator"].includes(o.arrayFormat)?S:m(S,o),l(m(C,o),S,f)}for(const x of Object.keys(f)){const C=f[x];if(typeof C=="object"&&C!==null)for(const S of Object.keys(C))C[S]=q(C[S],o);else f[x]=q(C,o)}return o.sort===!1?f:(o.sort===!0?Object.keys(f).sort():Object.keys(f).sort(o.sort)).reduce((x,C)=>{const S=f[C];return S&&typeof S=="object"&&!Array.isArray(S)?x[C]=I(S):x[C]=S,x},Object.create(null))}e.extract=h,e.parse=w,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),E(o.arrayFormatSeparator);const l=S=>o.skipNull&&c(a[S])||o.skipEmptyString&&a[S]==="",f=d(o),x={};for(const S of Object.keys(a))l(S)||(x[S]=a[S]);const C=Object.keys(x);return o.sort!==!1&&C.sort(o.sort),C.map(S=>{const X=a[S];return X===void 0?"":X===null?b(S,o):Array.isArray(X)?X.reduce(f(S),[]).join("&"):b(S,o)+"="+b(X,o)}).filter(S=>S.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,f]=i(a,"#");return Object.assign({url:l.split("?")[0]||"",query:w(h(a),o)},o&&o.parseFragmentIdentifier&&f?{fragmentIdentifier:m(f,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=j(a.url).split("?")[0]||"",f=e.extract(a.url),x=e.parse(f,{sort:!1}),C=Object.assign(x,a.query);let S=e.stringify(C,o);S&&(S=`?${S}`);let X=O(a.url);return a.fragmentIdentifier&&(X=`#${b(a.fragmentIdentifier,o)}`),`${l}${S}${X}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:f,query:x,fragmentIdentifier:C}=e.parseUrl(a,l);return e.stringifyUrl({url:f,query:s(x,o),fragmentIdentifier:C},l)},e.exclude=(a,o,l)=>{const f=Array.isArray(o)?x=>!o.includes(x):(x,C)=>!o(x,C);return e.pick(a,f,l)}})(jt);const lt=Vn,io={parseNumbers:!1,parseBooleans:!1},oo={skipNull:!1,skipEmptyString:!1},ao=(e,t)=>{var n,i;const{navigateMode:s="push",parseOptions:c,stringifyOptions:d}={},A=Object.assign(Object.assign({},io),c),E=Object.assign(Object.assign({},oo),d),b=lt.useLocation(),m=(n=lt.useHistory)===null||n===void 0?void 0:n.call(lt),I=(i=lt.useNavigate)===null||i===void 0?void 0:i.call(lt),j=Bi(),O=W.useRef(typeof e=="function"?e():e||{}),h=W.useMemo(()=>jt.parse(b.search,A),[b.search]),q=W.useMemo(()=>Object.assign(Object.assign({},O.current),h),[h]);return[q,fr(a=>{const o=typeof a=="function"?a(q):a;j(),m&&m[s]({hash:b.hash,search:jt.stringify(Object.assign(Object.assign({},h),o),E)||"?"},b.state),I&&I({hash:b.hash,search:jt.stringify(Object.assign(Object.assign({},h),o),E)||"?"},{replace:s==="replace",state:b.state})})]},so=ao;var qt={exports:{}},Bt={},qr;function Pn(){if(qr)return Bt;qr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,f){return Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function i(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,C){return x.__proto__=C,x},s(o,l)}function c(o){var l=E();return function(){var x=b(o),C;if(l){var S=b(this).constructor;C=Reflect.construct(x,arguments,S)}else C=x.apply(this,arguments);return d(this,C)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(o)}function A(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(o){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},b(o)}var m={},I,j;function O(o,l,f){f||(f=Error);function x(S,X,G){return typeof l=="string"?l:l(S,X,G)}var C=function(S){i(G,S);var X=c(G);function G(H,Y,K){var V;return n(this,G),V=X.call(this,x(H,Y,K)),V.code=o,V}return t(G)}(f);m[o]=C}function h(o,l){if(Array.isArray(o)){var f=o.length;return o=o.map(function(x){return String(x)}),f>2?"one of ".concat(l," ").concat(o.slice(0,f-1).join(", "),", or ")+o[f-1]:f===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function q(o,l,f){return o.substr(0,l.length)===l}function w(o,l,f){return(f===void 0||f>o.length)&&(f=o.length),o.substring(f-l.length,f)===l}function a(o,l,f){return typeof f!="number"&&(f=0),f+l.length>o.length?!1:o.indexOf(l,f)!==-1}return O("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),O("ERR_INVALID_ARG_TYPE",function(o,l,f){I===void 0&&(I=or()),I(typeof o=="string","'name' must be a string");var x;typeof l=="string"&&q(l,"not ")?(x="must not be",l=l.replace(/^not /,"")):x="must be";var C;if(w(o," argument"))C="The ".concat(o," ").concat(x," ").concat(h(l,"type"));else{var S=a(o,".")?"property":"argument";C='The "'.concat(o,'" ').concat(S," ").concat(x," ").concat(h(l,"type"))}return C+=". Received type ".concat(e(f)),C},TypeError),O("ERR_INVALID_ARG_VALUE",function(o,l){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";j===void 0&&(j=ht);var x=j.inspect(l);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(f,". Received ").concat(x)},TypeError),O("ERR_INVALID_RETURN_VALUE",function(o,l,f){var x;return f&&f.constructor&&f.constructor.name?x="instance of ".concat(f.constructor.name):x="type ".concat(e(f)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(x,".")},TypeError),O("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),f=0;f<o;f++)l[f]=arguments[f];I===void 0&&(I=or()),I(l.length>0,"At least one arg needs to be specified");var x="The ",C=l.length;switch(l=l.map(function(S){return'"'.concat(S,'"')}),C){case 1:x+="".concat(l[0]," argument");break;case 2:x+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:x+=l.slice(0,C-1).join(", "),x+=", and ".concat(l[C-1]," arguments");break}return"".concat(x," must be specified")},TypeError),Bt.codes=m,Bt}var Mt,Br;function co(){if(Br)return Mt;Br=1;function e(R,P){var M=Object.keys(R);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(R);P&&(k=k.filter(function(Z){return Object.getOwnPropertyDescriptor(R,Z).enumerable})),M.push.apply(M,k)}return M}function t(R){for(var P=1;P<arguments.length;P++){var M=arguments[P]!=null?arguments[P]:{};P%2?e(Object(M),!0).forEach(function(k){n(R,k,M[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(M)):e(Object(M)).forEach(function(k){Object.defineProperty(R,k,Object.getOwnPropertyDescriptor(M,k))})}return R}function n(R,P,M){return P=d(P),P in R?Object.defineProperty(R,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):R[P]=M,R}function i(R,P){if(!(R instanceof P))throw new TypeError("Cannot call a class as a function")}function s(R,P){for(var M=0;M<P.length;M++){var k=P[M];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(R,d(k.key),k)}}function c(R,P,M){return P&&s(R.prototype,P),Object.defineProperty(R,"prototype",{writable:!1}),R}function d(R){var P=A(R,"string");return o(P)==="symbol"?P:String(P)}function A(R,P){if(o(R)!=="object"||R===null)return R;var M=R[Symbol.toPrimitive];if(M!==void 0){var k=M.call(R,P||"default");if(o(k)!=="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}function E(R,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(P&&P.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),P&&w(R,P)}function b(R){var P=h();return function(){var k=a(R),Z;if(P){var y=a(this).constructor;Z=Reflect.construct(k,arguments,y)}else Z=k.apply(this,arguments);return m(this,Z)}}function m(R,P){if(P&&(o(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I(R)}function I(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function j(R){var P=typeof Map=="function"?new Map:void 0;return j=function(k){if(k===null||!q(k))return k;if(typeof k!="function")throw new TypeError("Super expression must either be null or a function");if(typeof P<"u"){if(P.has(k))return P.get(k);P.set(k,Z)}function Z(){return O(k,arguments,a(this).constructor)}return Z.prototype=Object.create(k.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),w(Z,k)},j(R)}function O(R,P,M){return h()?O=Reflect.construct.bind():O=function(Z,y,p){var v=[null];v.push.apply(v,y);var _=Function.bind.apply(Z,v),T=new _;return p&&w(T,p.prototype),T},O.apply(null,arguments)}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function w(R,P){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,Z){return k.__proto__=Z,k},w(R,P)}function a(R){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},a(R)}function o(R){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},o(R)}var l=ht,f=l.inspect,x=Pn(),C=x.codes.ERR_INVALID_ARG_TYPE;function S(R,P,M){return(M===void 0||M>R.length)&&(M=R.length),R.substring(M-P.length,M)===P}function X(R,P){if(P=Math.floor(P),R.length==0||P==0)return"";var M=R.length*P;for(P=Math.floor(Math.log(P)/Math.log(2));P;)R+=R,P--;return R+=R.substring(0,M-R.length),R}var G="",H="",Y="",K="",V={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},be=10;function Q(R){var P=Object.keys(R),M=Object.create(Object.getPrototypeOf(R));return P.forEach(function(k){M[k]=R[k]}),Object.defineProperty(M,"message",{value:R.message}),M}function pe(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,P,M){var k="",Z="",y=0,p="",v=!1,_=pe(R),T=_.split(`
|
|
1
|
+
import{r as W,t as Vn,g as Wn,e as Dr,a as Hn}from"./vendor-react-DEoibe3W.js";import{a2 as sn,j as r,E as D,bn as dt,M as Xe,bp as Yn,ak as pt,a4 as ne,bq as er,bm as tr,T as Me,a3 as ot,bu as sr,ad as it,aa as Ce,a5 as mt,v as Zn,x as cn,bk as Gn,b3 as Qn,b4 as Xn,I as Jn,bj as ei,br as ti,bN as ri}from"./vendor-mui-core-1jJmAutq.js";import{p as De,B as rr,c as nr,Z as ni,as as ii,n as _r,y as oi,z as ai}from"./vendor-utils-C3FZIS9A.js";import{r as ln,bt as ht,bu as si,bv as ci,bw as un,bx as li,by as ui,bz as fi,bA as fn,bB as di,bC as cr,bD as pi,bE as mi,bF as hi,bG as gi,aF as lr,bH as dn,aE as yi,l as vi,u as Oe,X as pn,W as bi,ak as Ze,B as Se,k as xi,am as wi,d as Ei,a$ as gt,Y as Fe,bk as ji,p as Ge,_ as mn,ag as Si,h as Ci,aq as Pi,b1 as Ai,a5 as hn,a4 as gn,V as Ii}from"./vendor-ux-did-connect-DEbq97Xz.js";import{A as Oi,c as Qe,N as Ri,J as yn,z as Ct,v as Ti,K as Ni}from"./vendor-arcblock-V3HYELzG.js";import{d as Di}from"./ViewList-DOu7Co_L.js";import{Y as _i,f as Li,t as Ye,z as Re,ao as ur,l as Je,Z as Ui,M as et,ap as ki,C as vn,aq as bn,b as qi}from"./index-BjYech25.js";import{k as Bi,u as fr,f as Mi,a as dr,l as Ki}from"./vendor-hooks-DN4nZ7TU.js";import{u as Ue,d as Lr,W as xn}from"./dashboard-BYUKOMAe.js";import{W as Pt}from"./did-address-B_VfxEC5.js";import{P as Ke}from"./permission-CmHMB8NK.js";import{C as Tt}from"./click-to-copy-C9iEVQIO.js";import{f as $e}from"./format-error-BrmqJs5a.js";import{_ as Fi}from"./useAsync-BENTIUEf.js";import{I as Ie}from"./index-Du2DtxVt.js";import{d as $i}from"./DeleteOutline-CKVA3PXs.js";import{C as yt}from"./confirm-B9OqaJpT.js";import{u as vt}from"./session-0rF5SuCk.js";import{i as wn,a as At,p as En}from"./util-1n1Ulk5w.js";import{b as zi}from"./sdk-j4w1A_X4.js";import{p as Vi}from"./index-D3YZfNxX.js";import{A as Wi}from"./actions-CAL1KFv7.js";import{S as Hi}from"./shorten-label-DDBwv81M.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-Cq9THoCr.js";import"./PlayArrow-DpcMtsY5.js";import"./get-safe-url-D_Puq_oh.js";import"./index-Cp_gD4ZQ.js";import"./useAsyncRetry-DSYkC9r5.js";import"./InfoOutlined-CEHciuDy.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DpXDDjat.js";import"./base32-CLGITfm-.js";import"./MoreHoriz-THEF6D0C.js";var pr={},Yi=sn;Object.defineProperty(pr,"__esModule",{value:!0});var jn=pr.default=void 0,Zi=Yi(ln()),Gi=r;jn=pr.default=(0,Zi.default)((0,Gi.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var mr=function(e){return r.jsxs("svg",{...e,children:[r.jsx("g",{clipPath:"url(#clip0)",children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0",children:r.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};mr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};mr.displayName="person";const Qi=mr;var hr=function(e){return r.jsxs("svg",{...e,children:[r.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};hr.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};hr.displayName="external-issuer";const Sn=hr;var jt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Ur=new RegExp("("+Cn+")|([^%]+?)","gi"),kr=new RegExp("("+Cn+")+","gi");function ir(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],ir(n),ir(i))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Ur)||[],n=1;n<t.length;n++)e=ir(t,n).join(""),t=e.match(Ur)||[];return e}}function eo(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=kr.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var i=Ji(n[0]);i!==n[0]&&(t[n[0]]=i)}n=kr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),c=0;c<s.length;c++){var d=s[c];e=e.replace(new RegExp(d,"g"),t[d])}return e}var to=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return eo(e)}},ro=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},no=function(e,t){for(var n={},i=Object.keys(e),s=Array.isArray(t),c=0;c<i.length;c++){var d=i[c],A=e[d];(s?t.indexOf(d)!==-1:t(d,A,e))&&(n[d]=A)}return n};(function(e){const t=Xi,n=to,i=ro,s=no,c=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,f)=>{const x=l.length;return f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,[b(o,a),"[",x,"]"].join("")]:[...l,[b(o,a),"[",b(x,a),"]=",b(f,a)].join("")]};case"bracket":return o=>(l,f)=>f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,[b(o,a),"[]"].join("")]:[...l,[b(o,a),"[]=",b(f,a)].join("")];case"comma":case"separator":return o=>(l,f)=>f==null||f.length===0?l:l.length===0?[[b(o,a),"=",b(f,a)].join("")]:[[l,b(f,a)].join(a.arrayFormatSeparator)];default:return o=>(l,f)=>f===void 0||a.skipNull&&f===null||a.skipEmptyString&&f===""?l:f===null?[...l,b(o,a)]:[...l,[b(o,a),"=",b(f,a)].join("")]}}function A(a){let o;switch(a.arrayFormat){case"index":return(l,f,x)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){x[l]=f;return}x[l]===void 0&&(x[l]={}),x[l][o[1]]=f};case"bracket":return(l,f,x)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){x[l]=f;return}if(x[l]===void 0){x[l]=[f];return}x[l]=[].concat(x[l],f)};case"comma":case"separator":return(l,f,x)=>{const C=typeof f=="string"&&f.includes(a.arrayFormatSeparator),S=typeof f=="string"&&!C&&m(f,a).includes(a.arrayFormatSeparator);f=S?m(f,a):f;const X=C||S?f.split(a.arrayFormatSeparator).map(G=>m(G,a)):f===null?f:m(f,a);x[l]=X};default:return(l,f,x)=>{if(x[l]===void 0){x[l]=f;return}x[l]=[].concat(x[l],f)}}}function E(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function b(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function m(a,o){return o.decode?n(a):a}function I(a){return Array.isArray(a)?a.sort():typeof a=="object"?I(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function j(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function O(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function h(a){a=j(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function q(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function w(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),E(o.arrayFormatSeparator);const l=A(o),f=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return f;for(const x of a.split("&")){if(x==="")continue;let[C,S]=i(o.decode?x.replace(/\+/g," "):x,"=");S=S===void 0?null:["comma","separator"].includes(o.arrayFormat)?S:m(S,o),l(m(C,o),S,f)}for(const x of Object.keys(f)){const C=f[x];if(typeof C=="object"&&C!==null)for(const S of Object.keys(C))C[S]=q(C[S],o);else f[x]=q(C,o)}return o.sort===!1?f:(o.sort===!0?Object.keys(f).sort():Object.keys(f).sort(o.sort)).reduce((x,C)=>{const S=f[C];return S&&typeof S=="object"&&!Array.isArray(S)?x[C]=I(S):x[C]=S,x},Object.create(null))}e.extract=h,e.parse=w,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),E(o.arrayFormatSeparator);const l=S=>o.skipNull&&c(a[S])||o.skipEmptyString&&a[S]==="",f=d(o),x={};for(const S of Object.keys(a))l(S)||(x[S]=a[S]);const C=Object.keys(x);return o.sort!==!1&&C.sort(o.sort),C.map(S=>{const X=a[S];return X===void 0?"":X===null?b(S,o):Array.isArray(X)?X.reduce(f(S),[]).join("&"):b(S,o)+"="+b(X,o)}).filter(S=>S.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,f]=i(a,"#");return Object.assign({url:l.split("?")[0]||"",query:w(h(a),o)},o&&o.parseFragmentIdentifier&&f?{fragmentIdentifier:m(f,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=j(a.url).split("?")[0]||"",f=e.extract(a.url),x=e.parse(f,{sort:!1}),C=Object.assign(x,a.query);let S=e.stringify(C,o);S&&(S=`?${S}`);let X=O(a.url);return a.fragmentIdentifier&&(X=`#${b(a.fragmentIdentifier,o)}`),`${l}${S}${X}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:f,query:x,fragmentIdentifier:C}=e.parseUrl(a,l);return e.stringifyUrl({url:f,query:s(x,o),fragmentIdentifier:C},l)},e.exclude=(a,o,l)=>{const f=Array.isArray(o)?x=>!o.includes(x):(x,C)=>!o(x,C);return e.pick(a,f,l)}})(jt);const lt=Vn,io={parseNumbers:!1,parseBooleans:!1},oo={skipNull:!1,skipEmptyString:!1},ao=(e,t)=>{var n,i;const{navigateMode:s="push",parseOptions:c,stringifyOptions:d}={},A=Object.assign(Object.assign({},io),c),E=Object.assign(Object.assign({},oo),d),b=lt.useLocation(),m=(n=lt.useHistory)===null||n===void 0?void 0:n.call(lt),I=(i=lt.useNavigate)===null||i===void 0?void 0:i.call(lt),j=Bi(),O=W.useRef(typeof e=="function"?e():e||{}),h=W.useMemo(()=>jt.parse(b.search,A),[b.search]),q=W.useMemo(()=>Object.assign(Object.assign({},O.current),h),[h]);return[q,fr(a=>{const o=typeof a=="function"?a(q):a;j(),m&&m[s]({hash:b.hash,search:jt.stringify(Object.assign(Object.assign({},h),o),E)||"?"},b.state),I&&I({hash:b.hash,search:jt.stringify(Object.assign(Object.assign({},h),o),E)||"?"},{replace:s==="replace",state:b.state})})]},so=ao;var qt={exports:{}},Bt={},qr;function Pn(){if(qr)return Bt;qr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,f){return Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function i(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,C){return x.__proto__=C,x},s(o,l)}function c(o){var l=E();return function(){var x=b(o),C;if(l){var S=b(this).constructor;C=Reflect.construct(x,arguments,S)}else C=x.apply(this,arguments);return d(this,C)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(o)}function A(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(o){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},b(o)}var m={},I,j;function O(o,l,f){f||(f=Error);function x(S,X,G){return typeof l=="string"?l:l(S,X,G)}var C=function(S){i(G,S);var X=c(G);function G(H,Y,K){var V;return n(this,G),V=X.call(this,x(H,Y,K)),V.code=o,V}return t(G)}(f);m[o]=C}function h(o,l){if(Array.isArray(o)){var f=o.length;return o=o.map(function(x){return String(x)}),f>2?"one of ".concat(l," ").concat(o.slice(0,f-1).join(", "),", or ")+o[f-1]:f===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function q(o,l,f){return o.substr(0,l.length)===l}function w(o,l,f){return(f===void 0||f>o.length)&&(f=o.length),o.substring(f-l.length,f)===l}function a(o,l,f){return typeof f!="number"&&(f=0),f+l.length>o.length?!1:o.indexOf(l,f)!==-1}return O("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),O("ERR_INVALID_ARG_TYPE",function(o,l,f){I===void 0&&(I=or()),I(typeof o=="string","'name' must be a string");var x;typeof l=="string"&&q(l,"not ")?(x="must not be",l=l.replace(/^not /,"")):x="must be";var C;if(w(o," argument"))C="The ".concat(o," ").concat(x," ").concat(h(l,"type"));else{var S=a(o,".")?"property":"argument";C='The "'.concat(o,'" ').concat(S," ").concat(x," ").concat(h(l,"type"))}return C+=". Received type ".concat(e(f)),C},TypeError),O("ERR_INVALID_ARG_VALUE",function(o,l){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";j===void 0&&(j=ht);var x=j.inspect(l);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(f,". Received ").concat(x)},TypeError),O("ERR_INVALID_RETURN_VALUE",function(o,l,f){var x;return f&&f.constructor&&f.constructor.name?x="instance of ".concat(f.constructor.name):x="type ".concat(e(f)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(x,".")},TypeError),O("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),f=0;f<o;f++)l[f]=arguments[f];I===void 0&&(I=or()),I(l.length>0,"At least one arg needs to be specified");var x="The ",C=l.length;switch(l=l.map(function(S){return'"'.concat(S,'"')}),C){case 1:x+="".concat(l[0]," argument");break;case 2:x+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:x+=l.slice(0,C-1).join(", "),x+=", and ".concat(l[C-1]," arguments");break}return"".concat(x," must be specified")},TypeError),Bt.codes=m,Bt}var Mt,Br;function co(){if(Br)return Mt;Br=1;function e(R,P){var M=Object.keys(R);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(R);P&&(k=k.filter(function(Z){return Object.getOwnPropertyDescriptor(R,Z).enumerable})),M.push.apply(M,k)}return M}function t(R){for(var P=1;P<arguments.length;P++){var M=arguments[P]!=null?arguments[P]:{};P%2?e(Object(M),!0).forEach(function(k){n(R,k,M[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(M)):e(Object(M)).forEach(function(k){Object.defineProperty(R,k,Object.getOwnPropertyDescriptor(M,k))})}return R}function n(R,P,M){return P=d(P),P in R?Object.defineProperty(R,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):R[P]=M,R}function i(R,P){if(!(R instanceof P))throw new TypeError("Cannot call a class as a function")}function s(R,P){for(var M=0;M<P.length;M++){var k=P[M];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(R,d(k.key),k)}}function c(R,P,M){return P&&s(R.prototype,P),Object.defineProperty(R,"prototype",{writable:!1}),R}function d(R){var P=A(R,"string");return o(P)==="symbol"?P:String(P)}function A(R,P){if(o(R)!=="object"||R===null)return R;var M=R[Symbol.toPrimitive];if(M!==void 0){var k=M.call(R,P||"default");if(o(k)!=="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}function E(R,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(P&&P.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),P&&w(R,P)}function b(R){var P=h();return function(){var k=a(R),Z;if(P){var y=a(this).constructor;Z=Reflect.construct(k,arguments,y)}else Z=k.apply(this,arguments);return m(this,Z)}}function m(R,P){if(P&&(o(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I(R)}function I(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function j(R){var P=typeof Map=="function"?new Map:void 0;return j=function(k){if(k===null||!q(k))return k;if(typeof k!="function")throw new TypeError("Super expression must either be null or a function");if(typeof P<"u"){if(P.has(k))return P.get(k);P.set(k,Z)}function Z(){return O(k,arguments,a(this).constructor)}return Z.prototype=Object.create(k.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),w(Z,k)},j(R)}function O(R,P,M){return h()?O=Reflect.construct.bind():O=function(Z,y,p){var v=[null];v.push.apply(v,y);var _=Function.bind.apply(Z,v),T=new _;return p&&w(T,p.prototype),T},O.apply(null,arguments)}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function w(R,P){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,Z){return k.__proto__=Z,k},w(R,P)}function a(R){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},a(R)}function o(R){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},o(R)}var l=ht,f=l.inspect,x=Pn(),C=x.codes.ERR_INVALID_ARG_TYPE;function S(R,P,M){return(M===void 0||M>R.length)&&(M=R.length),R.substring(M-P.length,M)===P}function X(R,P){if(P=Math.floor(P),R.length==0||P==0)return"";var M=R.length*P;for(P=Math.floor(Math.log(P)/Math.log(2));P;)R+=R,P--;return R+=R.substring(0,M-R.length),R}var G="",H="",Y="",K="",V={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},be=10;function Q(R){var P=Object.keys(R),M=Object.create(Object.getPrototypeOf(R));return P.forEach(function(k){M[k]=R[k]}),Object.defineProperty(M,"message",{value:R.message}),M}function pe(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,P,M){var k="",Z="",y=0,p="",v=!1,_=pe(R),T=_.split(`
|
|
2
2
|
`),L=pe(P).split(`
|
|
3
3
|
`),F=0,oe="";if(M==="strictEqual"&&o(R)==="object"&&o(P)==="object"&&R!==null&&P!==null&&(M="strictEqualObject"),T.length===1&&L.length===1&&T[0]!==L[0]){var ue=T[0].length+L[0].length;if(ue<=be){if((o(R)!=="object"||R===null)&&(o(P)!=="object"||P===null)&&(R!==0||P!==0))return"".concat(V[M],`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as q,Y as W,bI as Y,h as be,_ as fe,a5 as ge,bJ as je}from"./vendor-ux-did-connect-DEbq97Xz.js";import{x as ye,m as de,j as we}from"./vendor-hooks-DN4nZ7TU.js";import{r as C,b as X}from"./vendor-react-DEoibe3W.js";import{d as Z}from"./InfoOutlined-CEHciuDy.js";import{z as N,C as ce,t as ke}from"./index-CwaFNZTA.js";import{u as F,a as ve,C as K}from"./dashboard-BX25tvc1.js";import{E as o,j as e,D as Ee,ac as Ce,r as Te,a4 as f,M as ie,T as S,a3 as U,ad as ee,y as Se,x as B,br as ae,bN as J,a5 as A,L as Q,z as G,bk as Re,A as O,I as _,C as Ie,bp as Me,ae as P,c3 as Pe,al as De,bf as V,bo as ze,b3 as We,c4 as Ae,c5 as Oe,b4 as $e,ag as qe,bY as Le,s as pe,t as Be,c6 as He,c7 as Ne,c8 as Fe,c9 as Ue,ca as _e}from"./vendor-mui-core-1jJmAutq.js";import{l as Ye}from"./vendor-arcblock-V3HYELzG.js";import{d as Ke}from"./ExpandLess-1B6PdCYC.js";import{z as ue,x as Je,y as Ve}from"./vendor-utils-C3FZIS9A.js";import{C as Qe}from"./confirm-D36_98HC.js";import{A as Ge}from"./actions-CAL1KFv7.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-Cq9THoCr.js";import"./PlayArrow-DpcMtsY5.js";import"./get-safe-url-D_Puq_oh.js";import"./format-error-BrmqJs5a.js";import"./index-uyugLR5M.js";import"./session-0rF5SuCk.js";import"./useAsyncRetry-W2lp7mi1.js";import"./useAsync-BxB2TpDl.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DpXDDjat.js";import"./MoreHoriz-THEF6D0C.js";const Xe=t=>{var j,y;const[d,c]=C.useState(null),[l,b]=C.useState(!t),[R,p]=C.useState(null),{blocklet:n}=ce(),a=(y=(j=n==null?void 0:n.site)==null?void 0:j.domainAliases[0])==null?void 0:y.value,v=C.useMemo(()=>{const h={};return d&&(d.sources.forEach(r=>{h[r.did]={source:r,events:[],count:0}}),d.events.forEach(r=>{h[r.source]&&(h[r.source].events.push(r),h[r.source].count+=1)})),h},[d]),T=async()=>{try{if(b(!0),!a)return;const r=await(await fetch(`https://${a}/.well-known/service/openevent.json`)).json();c(r),p(null)}catch(h){p(h instanceof Error?h:new Error(String(h)))}finally{b(!1)}};return C.useEffect(()=>{T()},[a]),{openEvent:d,setOpenEvent:c,eventsBySource:v,loading:l,error:R,loadData:T}};function te({eventsBySource:t,selectedEvents:d,setSelectedEvents:c,error:l}){const{t:b}=q(),[R,p]=C.useState({}),n=C.useMemo(()=>{const r={};return Object.entries(t).forEach(([w,{events:g}])=>{const E=g.filter(u=>d[`${u.type}-${u.source}`]).length;r[w]=E}),r},[t,d]),a=C.useMemo(()=>Object.values(n).reduce((r,w)=>r+w,0),[n]),v=C.useMemo(()=>Object.values(t).reduce((r,{events:w})=>r+w.length,0),[t]),T=(r,w)=>{w.stopPropagation(),p({...R,[r]:!R[r]})},j=r=>{const w=`${r.type}-${r.source}`;c(g=>({...g,[w]:!g[w]}))},y=(r,w)=>{const g={};r.forEach(E=>{const u=`${E.type}-${E.source}`;g[u]=!w}),c(E=>({...E,...g}))},h=r=>{const w={};Object.values(t).forEach(({events:g})=>{g.forEach(E=>{const u=`${E.type}-${E.source}`;w[u]=r.target.checked})}),c(w)};return e.jsxs(f,{sx:{width:"100%"},children:[e.jsxs(f,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(J,{onChange:h,checked:a>0&&a===v}),label:e.jsxs(f,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[b("webhookEndpoint.selectAllEvents"),e.jsx(f,{sx:{display:"flex",alignItems:"center"},children:e.jsx(A,{title:b("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),a>0&&e.jsx(S,{variant:"body2",color:"primary",sx:{ml:"auto"},children:b("webhookEndpoint.selectedEventsCount",{count:a})})]}),e.jsx(f,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(Q,{disablePadding:!0,sx:{border:"1px solid #e0e0e0",borderRadius:"4px"},children:Object.entries(t).map(([r,{source:w,events:g,count:E}],u)=>{const M=n[r]>0,i=n[r]===g.length&&g.length>0,x=R[r];return e.jsxs(X.Fragment,{children:[e.jsx(G,{sx:{borderBottom:u<Object.keys(t).length-1?"1px solid #f0f0f0":"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(f,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:s=>{s.target.closest(".MuiFormControlLabel-root")||T(r,s)},children:[e.jsx(f,{sx:{display:"flex",alignItems:"center"},children:g.length>0&&e.jsx(ae,{control:e.jsx(J,{checked:i,indeterminate:M&&!i,onChange:s=>{s.stopPropagation(),y(g,i)}}),label:e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[w.logo&&e.jsx(Re,{src:w.logo,sx:{width:24,height:24}}),e.jsx(f,{children:w.title||r}),M&&e.jsx(O,{label:b("webhookEndpoint.selectedCount",{count:n[r]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:s=>`${s.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(f,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(S,{variant:"body2",color:"text.secondary",sx:{mr:1},children:b("webhookEndpoint.eventsCount",{count:E})}),g.length>0&&e.jsx(_,{size:"small",edge:"end",children:x?e.jsx(Ke,{}):e.jsx(Ye,{})})]})]})}),g.length>0&&e.jsx(Ie,{in:x,timeout:"auto",unmountOnExit:!0,children:e.jsx(Q,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:g.map(s=>{const m=`${s.type}-${s.source}`,k=!!d[m];return e.jsx(G,{dense:!0,sx:{py:.75},onClick:()=>j(s),children:e.jsxs(f,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(J,{checked:k,sx:{mr:1}}),e.jsxs(f,{children:[e.jsx(S,{variant:"body1",sx:{cursor:"pointer"},children:s.type}),e.jsx(S,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:s.description})]})]})},m)})})})]},r)})})}),l&&e.jsx(Me,{error:!0,sx:{mt:1},children:l})]})}te.propTypes={eventsBySource:o.objectOf(o.shape({source:o.shape({did:o.string.isRequired,title:o.string,description:o.string,version:o.string,logo:o.string}).isRequired,events:o.arrayOf(o.shape({type:o.string.isRequired,description:o.string.isRequired,source:o.string.isRequired})).isRequired,count:o.number.isRequired})).isRequired,selectedEvents:o.objectOf(o.bool).isRequired,setSelectedEvents:o.func.isRequired,error:o.string};te.defaultProps={error:null};function oe({id:t,url:d,description:c,enabledEvents:l,onSubmit:b,onClose:R}){var s;const{t:p}=q(),[n,a]=C.useState({}),{teamDid:v}=F(),{api:T}=N(),{loading:j,error:y,eventsBySource:h}=Xe(),{control:r,handleSubmit:w,formState:{errors:g},reset:E,setValue:u,trigger:M}=ve({defaultValues:{url:"",description:""}});C.useEffect(()=>{const m=Object.values(n).some(k=>k);u("selectedEvents",m?"valid":""),M("selectedEvents")},[n,u,M]);const i=()=>{a({}),E(),R()},x=async m=>{const k=Object.keys(n).filter(I=>n[I]),D={url:m.url,description:m.description,enabledEvents:k.map(I=>{const[$,L]=I.split("-");return!$||!L?null:{type:$,source:L}}).filter(Boolean)};try{if(t){const I=await T.updateWebhookEndpoint({input:{teamDid:v,id:t,data:D}});W.success(`${p("webhookEndpoint.updateWebhook")} ${p("webhookEndpoint.success")}`),b(I)}else{const I=await T.createWebhookEndpoint({input:{teamDid:v,input:D}});W.success(`${p("webhookEndpoint.createWebhook")} ${p("webhookEndpoint.success")}`),b(I)}}catch(I){W.error(I==null?void 0:I.message)}i()};return C.useEffect(()=>{E({url:d,description:c}),a(l.reduce((m,k)=>(m[`${k.type}-${k.source}`]=!0,m),{}))},[E,a,d,c,l]),e.jsx(Ee,{open:!0,onClose:i,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:w(x),children:[e.jsx(Ce,{children:p(t?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(Te,{children:e.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(K,{name:"url",control:r,rules:{required:p("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:p("webhookEndpoint.validation.urlInvalid")}},render:({field:m})=>{var k;return e.jsx(ie,{...m,label:p("webhookEndpoint.url.label"),fullWidth:!0,error:!!g.url,helperText:(k=g.url)==null?void 0:k.message})}}),e.jsx(K,{name:"description",control:r,rules:{required:p("webhookEndpoint.validation.descriptionRequired")},render:({field:m})=>{var k;return e.jsx(ie,{...m,label:p("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!g.description,helperText:(k=g.description)==null?void 0:k.message})}}),e.jsx(K,{name:"selectedEvents",control:r,rules:{required:p("webhookEndpoint.validation.eventRequired")},render:({field:m})=>e.jsx("input",{type:"hidden",...m})}),!j&&h&&Object.keys(h).length>0&&e.jsx(te,{eventsBySource:h,selectedEvents:n,setSelectedEvents:a,error:(s=g.selectedEvents)==null?void 0:s.message}),!j&&(!h||Object.keys(h).length===0)&&e.jsx(S,{color:"text.secondary",children:p("webhookEndpoint.noAvailableEvents")}),j&&e.jsx(f,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(U,{size:20})}),y&&e.jsx(ee,{severity:"error",children:p("webhookEndpoint.loadingError",{message:y==null?void 0:y.message})})]})}),e.jsxs(Se,{sx:{p:"8px 24px 24px"},children:[e.jsx(B,{onClick:i,children:p("common.cancel")}),e.jsx(B,{type:"submit",variant:"contained",color:"primary",children:p(t?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}oe.propTypes={onSubmit:o.func.isRequired,id:o.string,url:o.string,description:o.string,enabledEvents:o.arrayOf(o.shape({type:o.string.isRequired,source:o.string.isRequired})),onClose:o.func};oe.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function he(t){switch(t){case"enabled":return"success";case"disabled":default:return"default"}}const Ze=(t="en")=>t==="tw"?"zh":t;function H(t,d="YYYY-MM-DD HH:mm:ss",c="en"){return t?ke(t).locale(Ze(c)).format(d):"-"}function et(t){return typeof t=="number"?!1:ue(t)}function tt(t){return t>=200&&t<300}function z(t){const d=et(t.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(S,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[t.label,!!t.tip&&e.jsx(A,{title:t.tip,children:e.jsx(Pe,{fontSize:"small"})})]}),e.jsx(S,{component:"div",variant:"body1",color:d?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:d?"-":t.value})]}),t.divider&&e.jsx(De,{orientation:"vertical",flexItem:!0})]})}z.propTypes={label:o.oneOfType([o.string,o.node]).isRequired,value:o.oneOfType([o.string,o.node]).isRequired,tip:o.oneOfType([o.string,o.node]),divider:o.bool};z.defaultProps={tip:"",divider:!1};function ne(t){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:t.mb,mt:t.mt,pb:1},children:[e.jsx(S,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:t.title}),t.children]})}ne.propTypes={title:o.oneOfType([o.string,o.node]).isRequired,children:o.node,mb:o.number,mt:o.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const ot={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6m-7 1l9-9m-5 0h5v5"/>'},nt=t=>{const d={};return t.forEach(c=>{var b;const l=new Date(c.createdAt).toLocaleDateString();d[l]||(d[l]=[]),(b=d[l])==null||b.push(c)}),d};function se({eventId:t,webhookEndpointId:d,event:c}){const{api:l}=N(),{t:b}=q(),{teamDid:R}=F(),{blocklet:p}=ce(),{data:n,loadMore:a,loadingMore:v,loading:T}=ye(u=>{const i=u?Math.ceil(u.list.length/15)+1:1;return l.getWebhookAttempts({input:{teamDid:R,input:{eventId:t,webhookId:d},paging:{page:i,pageSize:15}}})},{reloadDeps:[t,d]}),j=(n==null?void 0:n.list)||[],[y,h]=C.useState(null),r=nt(j);C.useEffect(()=>{!y&&(n!=null&&n.list.length)&&h(n.list[0])},[n==null?void 0:n.list.length,y]);const w=u=>{h(u)};if(T)return e.jsx(U,{});const g=n&&n.list.length<n.paging.total,E=u=>{var M,i,x,s,m;if(u.responseBody&&((M=u.responseBody)!=null&&M.sessionId)&&((i=u.responseBody)!=null&&i.projectId)&&((x=u.responseBody)!=null&&x.agentId)){const k=(m=(s=p==null?void 0:p.site)==null?void 0:s.domainAliases[0])==null?void 0:m.value,D=(p.children||[]).find($=>{var L;return((L=$==null?void 0:$.meta)==null?void 0:L.name)==="ai-studio"}),I=Je(Ve(`https://${k}`,(D==null?void 0:D.mountPoint)||"","projects",u.responseBody.projectId,"logs/main"),{sessionId:u.responseBody.sessionId,agentId:u.responseBody.agentId});return e.jsx(_,{sx:{fontSize:20},onClick:()=>window.open(I,"_blank"),children:e.jsx(f,{component:be,icon:ot})})}return null};return e.jsxs(V,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(V,{item:!0,xs:12,md:4,height:1,children:ue(Object.keys(r))?e.jsx(S,{color:"text.secondary",children:b("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(Q,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(r).map(([u,M])=>e.jsxs(X.Fragment,{children:[e.jsx(ze,{children:u}),M.map(i=>e.jsxs(G,{sx:{cursor:"pointer"},onClick:()=>w(i),selected:y===i,secondaryAction:e.jsx(S,{color:"text.secondary",children:H(i.createdAt,"HH:mm:ss")}),children:[e.jsx(We,{sx:{minWidth:0,mr:1.5},children:tt(i.responseStatus)===!1?e.jsx(Ae,{color:"error"}):e.jsx(Oe,{color:"success"})}),e.jsx($e,{primary:e.jsx(S,{color:"text.primary",children:i.event.type})})]},i.id))]},u))}),g&&e.jsx(f,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(B,{variant:"text",type:"button",color:"inherit",onClick:a,disabled:v,sx:{color:u=>u.palette.text.disabled},children:b(v?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(V,{item:!0,xs:12,md:8,height:1,children:[y&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(S,{variant:"h6",children:t?y.endpoint.url:y.event.type}),e.jsx(f,{children:E(y)})]}),e.jsxs(f,{children:[e.jsxs(S,{variant:"h6",children:[b("webhookEndpoint.response")," (",y.responseStatus,")"]}),e.jsx(Y,{language:"json",children:JSON.stringify(y.responseBody,null,2)})]}),e.jsxs(f,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(S,{variant:"h6",children:b("webhookEndpoint.request")})}),e.jsx(Y,{language:"json",sx:{margin:0},children:JSON.stringify(y.event,null,2)})]})]}),(n==null?void 0:n.list.length)===0&&c&&e.jsxs(f,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(S,{variant:"h6",children:b("webhookEndpoint.eventData")})}),e.jsx(Y,{language:"json",sx:{margin:0},children:JSON.stringify(c.data,null,2)})]})]})]})}se.propTypes={eventId:o.string,webhookEndpointId:o.string,event:o.shape({type:o.string,data:o.object,request:o.object,requestInfo:o.object})};se.defaultProps={eventId:"",webhookEndpointId:"",event:null};function xe({id:t,onClose:d}){var v,T,j,y;const{t:c}=q(),{api:l}=N(),{teamDid:b}=F(),{loading:R,error:p,data:n}=de(()=>l.getWebhookEndpoint({input:{teamDid:b,id:t}})),a=n==null?void 0:n.data;return p?e.jsx(ee,{severity:"error",children:p.message}):R||!a?e.jsx(f,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(U,{})}):e.jsxs(st,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(f,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(S,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:a.description}),e.jsx(A,{title:a.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(_,{edge:"end",color:"inherit",onClick:d,children:e.jsx(Le,{})})})]}),e.jsx(f,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(z,{label:c("common.status"),value:e.jsx(O,{size:"small",variant:"filled",label:a.status,color:he(a.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(z,{label:c("webhookEndpoint.listen"),value:e.jsx(A,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:a.enabledEvents.map(h=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:h==null?void 0:h.type},h))}),children:e.jsx(O,{size:"small",variant:"filled",label:c("webhookEndpoint.eventsCount",{count:a.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(z,{label:c("webhookEndpoint.version"),value:a.apiVersion,divider:!0}),e.jsx(z,{label:c("common.createdAt"),value:H(a.createdAt),divider:!0}),e.jsx(z,{label:c("common.updatedAt"),value:H(a.updatedAt),divider:!0}),e.jsx(z,{label:c("common.createdBy"),value:e.jsx(A,{arrow:!0,title:(v=a.createUser)==null?void 0:v.did,children:e.jsx(O,{size:"small",variant:"filled",label:(T=a.createUser)==null?void 0:T.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(z,{label:c("common.updatedBy"),value:e.jsx(A,{arrow:!0,title:(j=a.updateUser)==null?void 0:j.did,children:e.jsx(O,{size:"small",variant:"filled",label:(y=a.updateUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:c("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(se,{webhookEndpointId:a.id})})]})]})}xe.propTypes={id:o.string.isRequired,onClose:o.func.isRequired};const st=pe(P)``;function me({open:t,onClose:d,id:c}){return e.jsx(qe,{anchor:"right",open:t,onClose:d,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(f,{sx:{height:"100vh",p:3},children:e.jsx(xe,{id:c,onClose:d})})})}me.propTypes={open:o.bool.isRequired,onClose:o.func.isRequired,id:o.string.isRequired};function le(){return null}const re=X.memo(({options:t,columns:d,toolbar:c=!0,footer:l=!0,hasRowLink:b=!1,emptyNodeText:R="",...p})=>{const{locale:n}=q(),a=Be(j=>j.breakpoints.down("md")),v={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:a?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},T={};return c||(T.TableToolbar=le),l||(T.TableFooter=le),e.jsx(rt,{locale:n,options:{...v,...t},columns:(d||[]).map(j=>(j.options=j.options||{},j.options.filter=j.options.filter||!1,j.options.sort=j.options.sort||!1,j)),emptyNode:e.jsx(fe,{children:R}),...p,components:T,hasRowLink:b,isMobile:a})});re.propTypes={options:o.object,columns:o.array,toolbar:o.bool,footer:o.bool,hasRowLink:o.bool,emptyNodeText:o.node,durable:o.string,durableKeys:o.array,data:o.array,loading:o.bool,onChange:o.func,title:o.node,components:o.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const rt=pe(ge)`
|
|
1
|
+
import{u as q,Y as W,bI as Y,h as be,_ as fe,a5 as ge,bJ as je}from"./vendor-ux-did-connect-DEbq97Xz.js";import{x as ye,m as de,j as we}from"./vendor-hooks-DN4nZ7TU.js";import{r as C,b as X}from"./vendor-react-DEoibe3W.js";import{d as Z}from"./InfoOutlined-CEHciuDy.js";import{z as N,C as ce,t as ke}from"./index-BjYech25.js";import{u as F,a as ve,C as K}from"./dashboard-BYUKOMAe.js";import{E as o,j as e,D as Ee,ac as Ce,r as Te,a4 as f,M as ie,T as S,a3 as U,ad as ee,y as Se,x as B,br as ae,bN as J,a5 as A,L as Q,z as G,bk as Re,A as O,I as _,C as Ie,bp as Me,ae as P,c3 as Pe,al as De,bf as V,bo as ze,b3 as We,c4 as Ae,c5 as Oe,b4 as $e,ag as qe,bY as Le,s as pe,t as Be,c6 as He,c7 as Ne,c8 as Fe,c9 as Ue,ca as _e}from"./vendor-mui-core-1jJmAutq.js";import{l as Ye}from"./vendor-arcblock-V3HYELzG.js";import{d as Ke}from"./ExpandLess-1B6PdCYC.js";import{z as ue,x as Je,y as Ve}from"./vendor-utils-C3FZIS9A.js";import{C as Qe}from"./confirm-B9OqaJpT.js";import{A as Ge}from"./actions-CAL1KFv7.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-Cq9THoCr.js";import"./PlayArrow-DpcMtsY5.js";import"./get-safe-url-D_Puq_oh.js";import"./format-error-BrmqJs5a.js";import"./index-Cp_gD4ZQ.js";import"./session-0rF5SuCk.js";import"./useAsyncRetry-DSYkC9r5.js";import"./useAsync-BENTIUEf.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DpXDDjat.js";import"./MoreHoriz-THEF6D0C.js";const Xe=t=>{var j,y;const[d,c]=C.useState(null),[l,b]=C.useState(!t),[R,p]=C.useState(null),{blocklet:n}=ce(),a=(y=(j=n==null?void 0:n.site)==null?void 0:j.domainAliases[0])==null?void 0:y.value,v=C.useMemo(()=>{const h={};return d&&(d.sources.forEach(r=>{h[r.did]={source:r,events:[],count:0}}),d.events.forEach(r=>{h[r.source]&&(h[r.source].events.push(r),h[r.source].count+=1)})),h},[d]),T=async()=>{try{if(b(!0),!a)return;const r=await(await fetch(`https://${a}/.well-known/service/openevent.json`)).json();c(r),p(null)}catch(h){p(h instanceof Error?h:new Error(String(h)))}finally{b(!1)}};return C.useEffect(()=>{T()},[a]),{openEvent:d,setOpenEvent:c,eventsBySource:v,loading:l,error:R,loadData:T}};function te({eventsBySource:t,selectedEvents:d,setSelectedEvents:c,error:l}){const{t:b}=q(),[R,p]=C.useState({}),n=C.useMemo(()=>{const r={};return Object.entries(t).forEach(([w,{events:g}])=>{const E=g.filter(u=>d[`${u.type}-${u.source}`]).length;r[w]=E}),r},[t,d]),a=C.useMemo(()=>Object.values(n).reduce((r,w)=>r+w,0),[n]),v=C.useMemo(()=>Object.values(t).reduce((r,{events:w})=>r+w.length,0),[t]),T=(r,w)=>{w.stopPropagation(),p({...R,[r]:!R[r]})},j=r=>{const w=`${r.type}-${r.source}`;c(g=>({...g,[w]:!g[w]}))},y=(r,w)=>{const g={};r.forEach(E=>{const u=`${E.type}-${E.source}`;g[u]=!w}),c(E=>({...E,...g}))},h=r=>{const w={};Object.values(t).forEach(({events:g})=>{g.forEach(E=>{const u=`${E.type}-${E.source}`;w[u]=r.target.checked})}),c(w)};return e.jsxs(f,{sx:{width:"100%"},children:[e.jsxs(f,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(J,{onChange:h,checked:a>0&&a===v}),label:e.jsxs(f,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[b("webhookEndpoint.selectAllEvents"),e.jsx(f,{sx:{display:"flex",alignItems:"center"},children:e.jsx(A,{title:b("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),a>0&&e.jsx(S,{variant:"body2",color:"primary",sx:{ml:"auto"},children:b("webhookEndpoint.selectedEventsCount",{count:a})})]}),e.jsx(f,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(Q,{disablePadding:!0,sx:{border:"1px solid #e0e0e0",borderRadius:"4px"},children:Object.entries(t).map(([r,{source:w,events:g,count:E}],u)=>{const M=n[r]>0,i=n[r]===g.length&&g.length>0,x=R[r];return e.jsxs(X.Fragment,{children:[e.jsx(G,{sx:{borderBottom:u<Object.keys(t).length-1?"1px solid #f0f0f0":"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(f,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:s=>{s.target.closest(".MuiFormControlLabel-root")||T(r,s)},children:[e.jsx(f,{sx:{display:"flex",alignItems:"center"},children:g.length>0&&e.jsx(ae,{control:e.jsx(J,{checked:i,indeterminate:M&&!i,onChange:s=>{s.stopPropagation(),y(g,i)}}),label:e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[w.logo&&e.jsx(Re,{src:w.logo,sx:{width:24,height:24}}),e.jsx(f,{children:w.title||r}),M&&e.jsx(O,{label:b("webhookEndpoint.selectedCount",{count:n[r]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:s=>`${s.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(f,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(S,{variant:"body2",color:"text.secondary",sx:{mr:1},children:b("webhookEndpoint.eventsCount",{count:E})}),g.length>0&&e.jsx(_,{size:"small",edge:"end",children:x?e.jsx(Ke,{}):e.jsx(Ye,{})})]})]})}),g.length>0&&e.jsx(Ie,{in:x,timeout:"auto",unmountOnExit:!0,children:e.jsx(Q,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:g.map(s=>{const m=`${s.type}-${s.source}`,k=!!d[m];return e.jsx(G,{dense:!0,sx:{py:.75},onClick:()=>j(s),children:e.jsxs(f,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(J,{checked:k,sx:{mr:1}}),e.jsxs(f,{children:[e.jsx(S,{variant:"body1",sx:{cursor:"pointer"},children:s.type}),e.jsx(S,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:s.description})]})]})},m)})})})]},r)})})}),l&&e.jsx(Me,{error:!0,sx:{mt:1},children:l})]})}te.propTypes={eventsBySource:o.objectOf(o.shape({source:o.shape({did:o.string.isRequired,title:o.string,description:o.string,version:o.string,logo:o.string}).isRequired,events:o.arrayOf(o.shape({type:o.string.isRequired,description:o.string.isRequired,source:o.string.isRequired})).isRequired,count:o.number.isRequired})).isRequired,selectedEvents:o.objectOf(o.bool).isRequired,setSelectedEvents:o.func.isRequired,error:o.string};te.defaultProps={error:null};function oe({id:t,url:d,description:c,enabledEvents:l,onSubmit:b,onClose:R}){var s;const{t:p}=q(),[n,a]=C.useState({}),{teamDid:v}=F(),{api:T}=N(),{loading:j,error:y,eventsBySource:h}=Xe(),{control:r,handleSubmit:w,formState:{errors:g},reset:E,setValue:u,trigger:M}=ve({defaultValues:{url:"",description:""}});C.useEffect(()=>{const m=Object.values(n).some(k=>k);u("selectedEvents",m?"valid":""),M("selectedEvents")},[n,u,M]);const i=()=>{a({}),E(),R()},x=async m=>{const k=Object.keys(n).filter(I=>n[I]),D={url:m.url,description:m.description,enabledEvents:k.map(I=>{const[$,L]=I.split("-");return!$||!L?null:{type:$,source:L}}).filter(Boolean)};try{if(t){const I=await T.updateWebhookEndpoint({input:{teamDid:v,id:t,data:D}});W.success(`${p("webhookEndpoint.updateWebhook")} ${p("webhookEndpoint.success")}`),b(I)}else{const I=await T.createWebhookEndpoint({input:{teamDid:v,input:D}});W.success(`${p("webhookEndpoint.createWebhook")} ${p("webhookEndpoint.success")}`),b(I)}}catch(I){W.error(I==null?void 0:I.message)}i()};return C.useEffect(()=>{E({url:d,description:c}),a(l.reduce((m,k)=>(m[`${k.type}-${k.source}`]=!0,m),{}))},[E,a,d,c,l]),e.jsx(Ee,{open:!0,onClose:i,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:w(x),children:[e.jsx(Ce,{children:p(t?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(Te,{children:e.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(K,{name:"url",control:r,rules:{required:p("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:p("webhookEndpoint.validation.urlInvalid")}},render:({field:m})=>{var k;return e.jsx(ie,{...m,label:p("webhookEndpoint.url.label"),fullWidth:!0,error:!!g.url,helperText:(k=g.url)==null?void 0:k.message})}}),e.jsx(K,{name:"description",control:r,rules:{required:p("webhookEndpoint.validation.descriptionRequired")},render:({field:m})=>{var k;return e.jsx(ie,{...m,label:p("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!g.description,helperText:(k=g.description)==null?void 0:k.message})}}),e.jsx(K,{name:"selectedEvents",control:r,rules:{required:p("webhookEndpoint.validation.eventRequired")},render:({field:m})=>e.jsx("input",{type:"hidden",...m})}),!j&&h&&Object.keys(h).length>0&&e.jsx(te,{eventsBySource:h,selectedEvents:n,setSelectedEvents:a,error:(s=g.selectedEvents)==null?void 0:s.message}),!j&&(!h||Object.keys(h).length===0)&&e.jsx(S,{color:"text.secondary",children:p("webhookEndpoint.noAvailableEvents")}),j&&e.jsx(f,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(U,{size:20})}),y&&e.jsx(ee,{severity:"error",children:p("webhookEndpoint.loadingError",{message:y==null?void 0:y.message})})]})}),e.jsxs(Se,{sx:{p:"8px 24px 24px"},children:[e.jsx(B,{onClick:i,children:p("common.cancel")}),e.jsx(B,{type:"submit",variant:"contained",color:"primary",children:p(t?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}oe.propTypes={onSubmit:o.func.isRequired,id:o.string,url:o.string,description:o.string,enabledEvents:o.arrayOf(o.shape({type:o.string.isRequired,source:o.string.isRequired})),onClose:o.func};oe.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function he(t){switch(t){case"enabled":return"success";case"disabled":default:return"default"}}const Ze=(t="en")=>t==="tw"?"zh":t;function H(t,d="YYYY-MM-DD HH:mm:ss",c="en"){return t?ke(t).locale(Ze(c)).format(d):"-"}function et(t){return typeof t=="number"?!1:ue(t)}function tt(t){return t>=200&&t<300}function z(t){const d=et(t.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(S,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[t.label,!!t.tip&&e.jsx(A,{title:t.tip,children:e.jsx(Pe,{fontSize:"small"})})]}),e.jsx(S,{component:"div",variant:"body1",color:d?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:d?"-":t.value})]}),t.divider&&e.jsx(De,{orientation:"vertical",flexItem:!0})]})}z.propTypes={label:o.oneOfType([o.string,o.node]).isRequired,value:o.oneOfType([o.string,o.node]).isRequired,tip:o.oneOfType([o.string,o.node]),divider:o.bool};z.defaultProps={tip:"",divider:!1};function ne(t){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:t.mb,mt:t.mt,pb:1},children:[e.jsx(S,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:t.title}),t.children]})}ne.propTypes={title:o.oneOfType([o.string,o.node]).isRequired,children:o.node,mb:o.number,mt:o.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const ot={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6m-7 1l9-9m-5 0h5v5"/>'},nt=t=>{const d={};return t.forEach(c=>{var b;const l=new Date(c.createdAt).toLocaleDateString();d[l]||(d[l]=[]),(b=d[l])==null||b.push(c)}),d};function se({eventId:t,webhookEndpointId:d,event:c}){const{api:l}=N(),{t:b}=q(),{teamDid:R}=F(),{blocklet:p}=ce(),{data:n,loadMore:a,loadingMore:v,loading:T}=ye(u=>{const i=u?Math.ceil(u.list.length/15)+1:1;return l.getWebhookAttempts({input:{teamDid:R,input:{eventId:t,webhookId:d},paging:{page:i,pageSize:15}}})},{reloadDeps:[t,d]}),j=(n==null?void 0:n.list)||[],[y,h]=C.useState(null),r=nt(j);C.useEffect(()=>{!y&&(n!=null&&n.list.length)&&h(n.list[0])},[n==null?void 0:n.list.length,y]);const w=u=>{h(u)};if(T)return e.jsx(U,{});const g=n&&n.list.length<n.paging.total,E=u=>{var M,i,x,s,m;if(u.responseBody&&((M=u.responseBody)!=null&&M.sessionId)&&((i=u.responseBody)!=null&&i.projectId)&&((x=u.responseBody)!=null&&x.agentId)){const k=(m=(s=p==null?void 0:p.site)==null?void 0:s.domainAliases[0])==null?void 0:m.value,D=(p.children||[]).find($=>{var L;return((L=$==null?void 0:$.meta)==null?void 0:L.name)==="ai-studio"}),I=Je(Ve(`https://${k}`,(D==null?void 0:D.mountPoint)||"","projects",u.responseBody.projectId,"logs/main"),{sessionId:u.responseBody.sessionId,agentId:u.responseBody.agentId});return e.jsx(_,{sx:{fontSize:20},onClick:()=>window.open(I,"_blank"),children:e.jsx(f,{component:be,icon:ot})})}return null};return e.jsxs(V,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(V,{item:!0,xs:12,md:4,height:1,children:ue(Object.keys(r))?e.jsx(S,{color:"text.secondary",children:b("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(Q,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(r).map(([u,M])=>e.jsxs(X.Fragment,{children:[e.jsx(ze,{children:u}),M.map(i=>e.jsxs(G,{sx:{cursor:"pointer"},onClick:()=>w(i),selected:y===i,secondaryAction:e.jsx(S,{color:"text.secondary",children:H(i.createdAt,"HH:mm:ss")}),children:[e.jsx(We,{sx:{minWidth:0,mr:1.5},children:tt(i.responseStatus)===!1?e.jsx(Ae,{color:"error"}):e.jsx(Oe,{color:"success"})}),e.jsx($e,{primary:e.jsx(S,{color:"text.primary",children:i.event.type})})]},i.id))]},u))}),g&&e.jsx(f,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(B,{variant:"text",type:"button",color:"inherit",onClick:a,disabled:v,sx:{color:u=>u.palette.text.disabled},children:b(v?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(V,{item:!0,xs:12,md:8,height:1,children:[y&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(S,{variant:"h6",children:t?y.endpoint.url:y.event.type}),e.jsx(f,{children:E(y)})]}),e.jsxs(f,{children:[e.jsxs(S,{variant:"h6",children:[b("webhookEndpoint.response")," (",y.responseStatus,")"]}),e.jsx(Y,{language:"json",children:JSON.stringify(y.responseBody,null,2)})]}),e.jsxs(f,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(S,{variant:"h6",children:b("webhookEndpoint.request")})}),e.jsx(Y,{language:"json",sx:{margin:0},children:JSON.stringify(y.event,null,2)})]})]}),(n==null?void 0:n.list.length)===0&&c&&e.jsxs(f,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(S,{variant:"h6",children:b("webhookEndpoint.eventData")})}),e.jsx(Y,{language:"json",sx:{margin:0},children:JSON.stringify(c.data,null,2)})]})]})]})}se.propTypes={eventId:o.string,webhookEndpointId:o.string,event:o.shape({type:o.string,data:o.object,request:o.object,requestInfo:o.object})};se.defaultProps={eventId:"",webhookEndpointId:"",event:null};function xe({id:t,onClose:d}){var v,T,j,y;const{t:c}=q(),{api:l}=N(),{teamDid:b}=F(),{loading:R,error:p,data:n}=de(()=>l.getWebhookEndpoint({input:{teamDid:b,id:t}})),a=n==null?void 0:n.data;return p?e.jsx(ee,{severity:"error",children:p.message}):R||!a?e.jsx(f,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(U,{})}):e.jsxs(st,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(f,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(S,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:a.description}),e.jsx(A,{title:a.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(_,{edge:"end",color:"inherit",onClick:d,children:e.jsx(Le,{})})})]}),e.jsx(f,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(z,{label:c("common.status"),value:e.jsx(O,{size:"small",variant:"filled",label:a.status,color:he(a.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(z,{label:c("webhookEndpoint.listen"),value:e.jsx(A,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:a.enabledEvents.map(h=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:h==null?void 0:h.type},h))}),children:e.jsx(O,{size:"small",variant:"filled",label:c("webhookEndpoint.eventsCount",{count:a.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(z,{label:c("webhookEndpoint.version"),value:a.apiVersion,divider:!0}),e.jsx(z,{label:c("common.createdAt"),value:H(a.createdAt),divider:!0}),e.jsx(z,{label:c("common.updatedAt"),value:H(a.updatedAt),divider:!0}),e.jsx(z,{label:c("common.createdBy"),value:e.jsx(A,{arrow:!0,title:(v=a.createUser)==null?void 0:v.did,children:e.jsx(O,{size:"small",variant:"filled",label:(T=a.createUser)==null?void 0:T.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(z,{label:c("common.updatedBy"),value:e.jsx(A,{arrow:!0,title:(j=a.updateUser)==null?void 0:j.did,children:e.jsx(O,{size:"small",variant:"filled",label:(y=a.updateUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:c("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(se,{webhookEndpointId:a.id})})]})]})}xe.propTypes={id:o.string.isRequired,onClose:o.func.isRequired};const st=pe(P)``;function me({open:t,onClose:d,id:c}){return e.jsx(qe,{anchor:"right",open:t,onClose:d,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(f,{sx:{height:"100vh",p:3},children:e.jsx(xe,{id:c,onClose:d})})})}me.propTypes={open:o.bool.isRequired,onClose:o.func.isRequired,id:o.string.isRequired};function le(){return null}const re=X.memo(({options:t,columns:d,toolbar:c=!0,footer:l=!0,hasRowLink:b=!1,emptyNodeText:R="",...p})=>{const{locale:n}=q(),a=Be(j=>j.breakpoints.down("md")),v={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:a?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},T={};return c||(T.TableToolbar=le),l||(T.TableFooter=le),e.jsx(rt,{locale:n,options:{...v,...t},columns:(d||[]).map(j=>(j.options=j.options||{},j.options.filter=j.options.filter||!1,j.options.sort=j.options.sort||!1,j)),emptyNode:e.jsx(fe,{children:R}),...p,components:T,hasRowLink:b,isMobile:a})});re.propTypes={options:o.object,columns:o.array,toolbar:o.bool,footer:o.bool,hasRowLink:o.bool,emptyNodeText:o.node,durable:o.string,durableKeys:o.array,data:o.array,loading:o.bool,onChange:o.func,title:o.node,components:o.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const rt=pe(ge)`
|
|
2
2
|
.MuiPaper-root {
|
|
3
3
|
border-radius: 8px;
|
|
4
4
|
overflow: hidden;
|