@abtnode/webapp 1.16.25-beta-023ec101 → 1.16.25-beta-bc165d9b
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +58 -58
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1059.446f653a.chunk.js +1 -0
- package/build/static/js/1366.bf33872e.chunk.js +2 -0
- package/build/static/js/{1371.97ef96e6.chunk.js → 1371.384ff23d.chunk.js} +1 -1
- package/build/static/js/1575.9889e444.chunk.js +1 -0
- package/build/static/js/{1685.8aa7ded2.chunk.js → 1685.d0fc9f5b.chunk.js} +2 -2
- package/build/static/js/2019.c4e134a4.chunk.js +1 -0
- package/build/static/js/{2168.af9a9b9f.chunk.js → 2168.642bfc2e.chunk.js} +1 -1
- package/build/static/js/{2294.9e37053f.chunk.js → 2294.c34a84c9.chunk.js} +1 -1
- package/build/static/js/233.5cf94cae.chunk.js +1 -0
- package/build/static/js/{2362.5f9c8ab2.chunk.js → 2362.e2682916.chunk.js} +1 -1
- package/build/static/js/{2960.a4c9635f.chunk.js → 2960.b8de1df9.chunk.js} +1 -1
- package/build/static/js/{3135.d72dbe37.chunk.js → 3135.77d2718d.chunk.js} +1 -1
- package/build/static/js/{3217.c3294084.chunk.js → 3217.ca7a654b.chunk.js} +1 -1
- package/build/static/js/{3555.b1ed2b24.chunk.js → 3555.91119c44.chunk.js} +2 -2
- package/build/static/js/3803.a22da8fb.chunk.js +1 -0
- package/build/static/js/3930.5079b881.chunk.js +1 -0
- package/build/static/js/{406.e384bf0e.chunk.js → 406.7c629ae6.chunk.js} +1 -1
- package/build/static/js/{4232.7e43822b.chunk.js → 4232.e30e2ef3.chunk.js} +1 -1
- package/build/static/js/{436.d3dfe09b.chunk.js → 436.e7d7ead3.chunk.js} +1 -1
- package/build/static/js/4423.fc17ebc1.chunk.js +1 -0
- package/build/static/js/4465.88a081e5.chunk.js +1 -0
- package/build/static/js/{4509.391ff49f.chunk.js → 4509.2b57b6dd.chunk.js} +2 -2
- package/build/static/js/{4549.59d35b13.chunk.js → 4549.40b371f5.chunk.js} +1 -1
- package/build/static/js/{4852.5661d7a7.chunk.js → 4852.5c585b9f.chunk.js} +1 -1
- package/build/static/js/{4901.719512e8.chunk.js → 4901.dce8c299.chunk.js} +1 -1
- package/build/static/js/{4930.c4c5d5d1.chunk.js → 4930.fa6304c9.chunk.js} +1 -1
- package/build/static/js/{5015.dda1435a.chunk.js → 5015.0b517513.chunk.js} +1 -1
- package/build/static/js/5059.963d527c.chunk.js +1 -0
- package/build/static/js/{5374.1135dab5.chunk.js → 5374.cc49abd9.chunk.js} +1 -1
- package/build/static/js/{5526.2e5b0dfe.chunk.js → 5526.09906842.chunk.js} +2 -2
- package/build/static/js/5672.c3cf88bf.chunk.js +1 -0
- package/build/static/js/{5706.c53e6f7a.chunk.js → 5706.f5e6f131.chunk.js} +2 -2
- package/build/static/js/5748.d017d106.chunk.js +1 -0
- package/build/static/js/{592.c99306f8.chunk.js → 592.083d62e1.chunk.js} +2 -2
- package/build/static/js/{5973.219778da.chunk.js → 5973.7e97d6d8.chunk.js} +1 -1
- package/build/static/js/662.72ee2e58.chunk.js +1 -0
- package/build/static/js/{670.e1d2eada.chunk.js → 670.6c2a6ee0.chunk.js} +1 -1
- package/build/static/js/6906.6c830eaf.chunk.js +1 -0
- package/build/static/js/6931.fa818149.chunk.js +1 -0
- package/build/static/js/6944.ac06ea4a.chunk.js +1 -0
- package/build/static/js/{7020.b16a6be6.chunk.js → 7020.30a59f59.chunk.js} +1 -1
- package/build/static/js/7022.76c60285.chunk.js +1 -0
- package/build/static/js/{7638.c558497d.chunk.js → 7638.9fd0dda5.chunk.js} +1 -1
- package/build/static/js/{7676.96ca7a9d.chunk.js → 7676.f117fb2d.chunk.js} +2 -2
- package/build/static/js/{7718.b9fb672b.chunk.js → 7718.43bea793.chunk.js} +1 -1
- package/build/static/js/{8170.a05bcf8e.chunk.js → 8170.4ad15204.chunk.js} +1 -1
- package/build/static/js/8427.9d00acc3.chunk.js +2 -0
- package/build/static/js/{8537.a2ae5cb3.chunk.js → 8537.a9d1958b.chunk.js} +1 -1
- package/build/static/js/8590.f6c87639.chunk.js +1 -0
- package/build/static/js/{8986.bf90d91b.chunk.js → 8986.ecf4d834.chunk.js} +1 -1
- package/build/static/js/9041.a5b13c5d.chunk.js +1 -0
- package/build/static/js/{9085.2eba86ab.chunk.js → 9085.d0aa2a89.chunk.js} +1 -1
- package/build/static/js/9484.1660aee4.chunk.js +1 -0
- package/build/static/js/9586.e21d0d28.chunk.js +1 -0
- package/build/static/js/{9590.3c9e0821.chunk.js → 9590.694b5369.chunk.js} +2 -2
- package/build/static/js/{9662.604d1362.chunk.js → 9662.0639afb1.chunk.js} +1 -1
- package/build/static/js/main.20a607fe.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1059.ca2cbdc1.chunk.js +0 -1
- package/build/static/js/1366.90b8b406.chunk.js +0 -2
- package/build/static/js/1575.898bc099.chunk.js +0 -1
- package/build/static/js/2019.17ea2088.chunk.js +0 -1
- package/build/static/js/233.3215dc68.chunk.js +0 -1
- package/build/static/js/2746.b74c83cd.chunk.js +0 -1
- package/build/static/js/3803.fb647887.chunk.js +0 -1
- package/build/static/js/3930.6b76ec36.chunk.js +0 -1
- package/build/static/js/4423.2dd278be.chunk.js +0 -1
- package/build/static/js/4465.05c1536b.chunk.js +0 -1
- package/build/static/js/4471.ddd34e83.chunk.js +0 -1
- package/build/static/js/5059.e78ab607.chunk.js +0 -1
- package/build/static/js/5672.6b3a406d.chunk.js +0 -1
- package/build/static/js/5748.07d72ea2.chunk.js +0 -1
- package/build/static/js/6906.8e78a1d1.chunk.js +0 -1
- package/build/static/js/6931.f7a04871.chunk.js +0 -1
- package/build/static/js/6944.9098ce0d.chunk.js +0 -1
- package/build/static/js/7022.32cbb1ae.chunk.js +0 -1
- package/build/static/js/8427.4eeb503c.chunk.js +0 -2
- package/build/static/js/8590.871b6ecb.chunk.js +0 -1
- package/build/static/js/9041.bdd7c1f3.chunk.js +0 -1
- package/build/static/js/9586.a2caaa51.chunk.js +0 -1
- package/build/static/js/main.f59c1050.js +0 -2
- /package/build/static/js/{1366.90b8b406.chunk.js.LICENSE.txt → 1366.bf33872e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1685.8aa7ded2.chunk.js.LICENSE.txt → 1685.d0fc9f5b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3555.b1ed2b24.chunk.js.LICENSE.txt → 3555.91119c44.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4509.391ff49f.chunk.js.LICENSE.txt → 4509.2b57b6dd.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5526.2e5b0dfe.chunk.js.LICENSE.txt → 5526.09906842.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5706.c53e6f7a.chunk.js.LICENSE.txt → 5706.f5e6f131.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{592.c99306f8.chunk.js.LICENSE.txt → 592.083d62e1.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7676.96ca7a9d.chunk.js.LICENSE.txt → 7676.f117fb2d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8427.4eeb503c.chunk.js.LICENSE.txt → 8427.9d00acc3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9590.3c9e0821.chunk.js.LICENSE.txt → 9590.694b5369.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.f59c1050.js.LICENSE.txt → main.20a607fe.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5672],{32322:(e,n,t)=>{"use strict";n.h1=void 0;const s=t(77277);function i(e){return(null===e||void 0===e?void 0:e.connectedAccounts)||[]}function r(e){return i(e).find((e=>e.provider===s.LOGIN_PROVIDER.WALLET))}n.h1=function(e){const n=r(e);return null===n||void 0===n?void 0:n.did}},15098:(e,n,t)=>{const{ROLES:s,PASSPORT_STATUS:i}=t(35432);e.exports={hasActiveOwnerPassport:e=>((null===e||void 0===e?void 0:e.passports)||[]).some((e=>e.role===s.OWNER&&e.status===i.VALID))}},92726:(e,n,t)=>{"use strict";t.d(n,{Z:()=>x});var s,i=t(71171),r=t(5057),o=t(55898),a=t.n(o),l=t(33518),c=t(67680),d=t(61533),m=t(74490),u=t(45267),p=t(46954),f=t(44067),h=t(96266);function x(e){let{actions:n,size:t,...s}=e;const[i,o]=(0,r.useState)(null),a=Boolean(i),l=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}o(null)};return(0,h.jsxs)(g,{...s,children:[(0,h.jsx)(c.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:e=>{try{e.stopPropagation(),e.preventDefault()}catch{}o(e.currentTarget)},size:t,children:(0,h.jsx)(u.Z,{})}),(0,h.jsx)(d.Z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:i,keepMounted:!0,open:a,onClose:l,slotProps:{paper:{}},children:n.map(((e,n)=>{if("function"===typeof e)return e({close:l});const{icon:t,text:s,onClick:i,disabled:o=!1,...a}=e;return(0,r.createElement)(m.Z,{...a,disabled:o,dense:!0,onClick:async e=>{await i(e),l()},key:n,"data-cy":"actions-menu-".concat(n)},(0,h.jsx)(p.Z,{style:{minWidth:24,marginRight:8},children:t}),(0,h.jsx)(f.Z,{primary:s}))}))})]})}x.propTypes={actions:a().array,size:a().oneOf(["small","medium","large"])},x.defaultProps={actions:[],size:"small"};const g=l.Z.div(s||(s=(0,i.Z)([""])))},50185:(e,n,t)=>{"use strict";t.d(n,{Z:()=>c});var s=t(5057),i=t(55898),r=t.n(i),o=t(12937),a=t(68420),l=t(96266);function c(e){let{children:n,...t}=e;const{t:i}=(0,s.useContext)(a.RD);return(0,l.jsx)(o.Z,{tip:i("common.copyTip"),copiedTip:i("common.copiedTip"),...t,children:n})}c.propTypes={children:r().any.isRequired}},9729:(e,n,t)=>{"use strict";t.d(n,{Z:()=>d});var s,i=t(71171),r=t(55898),o=t.n(r),a=t(33518),l=t(13727),c=t(96266);function d(e){const{passport:n,onDelete:t,...s}=e;return(0,c.jsxs)(m,{...s,children:[n.title||n.name," ",!!t&&(0,c.jsx)(l.default,{"data-cy":"delete-issuance",className:"delete",onClick:t})]})}d.propTypes={passport:o().object.isRequired,onDelete:o().func},d.defaultProps={onDelete:null};const m=a.Z.span(s||(s=(0,i.Z)(["\n display: inline-flex;\n padding: 2px 8px;\n background: ",";\n border-radius: 100vw;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n color: #fff;\n align-items: center;\n .delete {\n font-size: 1em;\n margin-left: 6px;\n cursor: pointer;\n }\n"])),(e=>e.theme.palette.primary.main))},75672:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>vn});var s,i=t(71171),r=t(5057),o=t(33518),a=t(75506),l=t.n(a),c=t(55898),d=t.n(c),m=t(52277),u=t.n(m),p=t(75239),f=t(39948),h=t(67680),x=t(83407),g=t(26174),v=t(88092),b=t(13128),y=t(44919),j=t(80578),Z=t(64185),C=t(72333),S=t(68420),w=t(28726),P=t(68051),D=t(18945),R=t(49777),k=t(75760),T=t(49384),I=t(86229),E=t(35432),N=t(77277),A=t(10381),B=t(42061),z=t(99360),L=t(99818),_=t(22228),O=t(17450),U=t(58238),W=t(17425),q=t(29054),F=t(63406),M=t(14491),V=t(44846),K=t(55372),H=t(11750),J=t(74490),X=t(51177),Q=t(47020),Y=t(6041),$=t(80576),G=t(88574),ee=t(50185),ne=t(96266);function te(e){let{teamDid:n,roles:t,onCancel:s,onSuccess:i,onError:o,endpoint:a}=e;const{api:l}=(0,U.h6)(),[c,d]=(0,r.useState)(!1),[m,u]=(0,r.useState)(""),{t:p,locale:f}=(0,S.PE)(),[h,x]=(0,r.useState)(0),[g,v]=(0,r.useState)(""),[y,j]=(0,r.useState)(""),[Z,C]=(0,r.useState)(""),P=async()=>{if(!y)return void u(p("team.member.error.passportEmpty"));const e=Z.trim();u(null),d(!0);try{const{inviteInfo:t}=await l.createMemberInvitation({input:{teamDid:n,role:y,remark:e}});v(t),x(1)}catch(t){const e=(0,M.Z)(t);u(e),o(t)}finally{d(!1)}},D=[{body:(0,ne.jsxs)(H.Z,{component:"div",children:[(0,ne.jsxs)($.Z,{style:{width:"100%"},variant:"outlined",children:[(0,ne.jsx)(Y.Z,{children:p("common.passport")}),(0,ne.jsx)(X.Z,{"data-cy":"invite-member-select-role",value:y,onChange:e=>{u(null),j(e.target.value)},fullWidth:!0,label:p("common.passport"),disabled:c,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),P())},children:t.filter((e=>"owner"!==e.name)).map((e=>(0,ne.jsx)(J.Z,{value:e.name,"data-cy":"invite-member-select-option-".concat(e.name),children:(0,ne.jsx)("span",{children:e.title||e.name})},e.name)))})]}),(0,ne.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,ne.jsx)(Q.Z,{label:p("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:Z,onChange:e=>{u(null),C(e.target.value)},disabled:c,"data-cy":"invite-member-input-remark"}),(0,ne.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:p("common.cancel"),confirm:p("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:P},{body:()=>{const e=(0,M.ly)({inviteId:g.inviteId,endpoint:a});return(0,ne.jsxs)("div",{children:[(0,ne.jsx)(se,{children:p("team.member.inviteDialog.createSuccessTip",{expireDate:(0,M.B2)(g.expireDate,f)})}),(0,ne.jsx)("div",{style:{marginTop:"40px"}}),(0,ne.jsx)(ee.Z,{children:e})]})},confirm:p("common.confirm"),onConfirm:i}][h];return(0,ne.jsxs)(b.ZP,{title:p("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,ne.jsxs)(ne.Fragment,{children:[D.cancel&&(0,ne.jsx)(w.Z,{onClick:D.onCancel,color:"inherit",children:D.cancel}),(0,ne.jsxs)(w.Z,{onClick:D.onConfirm,color:"primary",disabled:c||!y,variant:"contained",autoFocus:!0,children:[c&&(0,ne.jsx)(V.Z,{size:16}),D.confirm]})]}),children:[(0,ne.jsx)(K.Z,{component:"div",children:"function"===typeof D.body?D.body():D.body}),!!m&&(0,ne.jsx)(G.Z,{type:"error",variant:"icon",children:m})]})}te.propTypes={teamDid:d().string.isRequired,onCancel:d().func.isRequired,onSuccess:d().func.isRequired,onError:d().func,roles:d().array,endpoint:d().string},te.defaultProps={onError:()=>{},roles:[],endpoint:""};const se=o.Z.div(s||(s=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"])));var ie,re=t(26796),oe=t(43681),ae=t.n(oe),le=t(22425),ce=t(73545);function de(e){let{teamDid:n,onCancel:t,onSuccess:s,onError:i,endpoint:o}=e;const{api:a,info:l}=(0,U.h6)(),{api:c}=(0,r.useContext)(ce.B),[d,m]=(0,r.useState)(!1),{t:u,locale:p}=(0,S.PE)(),[f,h]=(0,r.useState)(""),[x,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(0),[j,Z]=(0,r.useState)(""),[C,P]=(0,r.useState)(""),D=!!ae()(l,"ownerNft.did"),R=(0,re.default)((async()=>{if(D){const{state:e}=await a.getDelegationState();return e}return{delegated:!0}}));if(R.loading)return(0,ne.jsx)(b.ZP,{title:u("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,ne.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,ne.jsx)(V.Z,{})})});if(R.error)return(0,ne.jsx)(b.ZP,{title:u("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,ne.jsx)(G.Z,{type:"error",variant:"icon",children:(0,M.Z)(R.error)})});const k=async()=>{h(null),m(!0);try{const{inviteInfo:e}=await a.createTransferInvitation({input:{teamDid:n,role:"owner",remark:C.trim()}});Z(e),y(I.length-1)}catch(e){const n=(0,M.Z)(e);h(n),i(e)}finally{m(!1)}},T=()=>{g(!1),y(0)},I=[{body:(0,ne.jsxs)(H.Z,{component:"div",children:[(0,ne.jsxs)(G.Z,{type:"warning",children:[(0,ne.jsx)(H.Z,{children:u("team.transferNode.inviteDialog.tips.progress")}),(0,ne.jsx)(H.Z,{children:u("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),(0,ne.jsx)(G.Z,{type:"warning",children:(0,ne.jsx)(H.Z,{children:u("team.transferNode.inviteDialog.tips.revoke")})}),(0,ne.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,ne.jsx)(Q.Z,{label:u("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:C,onChange:e=>{h(null),P(e.target.value)},disabled:d,"data-cy":"transfer-node-input-remark"}),(0,ne.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:u("common.cancel"),confirm:u("team.transferNode.inviteDialog.createInviteLink"),onCancel:t,onConfirm:D&&!ae()(R,"value.delegated")?()=>{g(!0),y(1)}:k},{body:()=>(0,ne.jsx)(le.Z,{action:"delegate-transfer-nft",open:x,locale:p,checkFn:c.get,onClose:T,onSuccess:k,checkTimeout:3e5,webWalletUrl:(0,M.yP)(l),extraParams:{targetDID:l.did},messages:{title:u("team.transferNode.delegateDialog.title"),scan:u("team.transferNode.delegateDialog.scan"),confirm:u("team.transferNode.delegateDialog.confirm"),success:u("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const e=(0,M.ly)({inviteId:j.inviteId,endpoint:o});return(0,ne.jsxs)("div",{children:[(0,ne.jsx)(me,{children:u("team.transferNode.inviteDialog.createSuccessTip",{expireDate:(0,M.B2)(j.expireDate,p)})}),(0,ne.jsx)("div",{style:{marginTop:"40px"}}),(0,ne.jsx)(ee.Z,{children:e})]})},confirm:u("common.confirm"),onConfirm:s}],E=I[v];return(0,ne.jsxs)(b.ZP,{title:u("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,ne.jsxs)(ne.Fragment,{children:[E.cancel&&(0,ne.jsx)(w.Z,{onClick:E.onCancel,color:"inherit",children:E.cancel}),(0,ne.jsxs)(w.Z,{onClick:E.onConfirm,color:"primary",disabled:d,variant:"contained",autoFocus:!0,children:[d&&(0,ne.jsx)(V.Z,{size:16}),E.confirm]})]}),children:[(0,ne.jsx)(K.Z,{component:"div",children:"function"===typeof E.body?E.body():E.body}),!!f&&(0,ne.jsx)(G.Z,{type:"error",variant:"icon",children:f})]})}de.propTypes={teamDid:d().string.isRequired,onCancel:d().func.isRequired,onSuccess:d().func.isRequired,onError:d().func,endpoint:d().string},de.defaultProps={onError:()=>{},endpoint:""};const me=o.Z.div(ie||(ie=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"])));var ue,pe=t(62681),fe=t(94464),he=t(64886),xe=t(12987),ge=t(71246),ve=t(12673),be=t(70461),ye=t(9729);function je(e){let{issuances:n,teamDid:t,onRefresh:s}=e;const{api:i,inService:o}=(0,U.h6)(),{t:a,locale:l}=(0,r.useContext)(S.RD),[c,d]=(0,r.useState)(null),[m,u]=(0,r.useState)(!1),{endpoint:p}=(0,W.DJ)(),h=()=>{u(!1),d(null)},x=e=>p?(0,M._)({id:e.id,endpoint:p}):"";function g(e){let{data:n}=e;return(0,ne.jsxs)("div",{className:"issuance",children:[(0,ne.jsxs)(f.Z,{display:"flex",justifyContent:"space-between",children:[(0,ne.jsx)(F.Z,{permission:o?"":"mutate_team",role:o?M.Wf:[],children:e=>e?(0,ne.jsx)(ye.Z,{passport:{title:n.title,name:n.name},onDelete:()=>d({title:a("team.passport.issuance.delete.title"),description:a("team.passport.issuance.delete.description",{link:x(n)}),confirm:a("common.delConfirm"),cancel:a("common.cancel"),onConfirm:()=>{(async e=>{let{id:n}=e;if(!m){u(!0);try{await i.deletePassportIssuance({input:{teamDid:t,sessionId:n}}),s()}catch(r){I.Z.error(r.message)}finally{u(!1),d(null)}}})(n)},onCancel:h})}):(0,ne.jsx)(ye.Z,{passport:{title:n.title,name:n.name}})}),(0,ne.jsxs)("div",{style:{color:"#999"},children:[a("common.expires"),":\xa0",(0,M.B2)(n.expireDate,l)]})]}),(0,ne.jsx)(f.Z,{mt:2,children:(0,ne.jsx)(ee.Z,{children:x(n)})})]})}return(0,ne.jsxs)(Ze,{children:[n.map((e=>(0,ne.jsx)(g,{data:e}))),c&&(0,ne.jsx)(be.Z,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]})}const Ze=o.Z.div(ue||(ue=(0,i.Z)(["\n .MuiTableHead-root {\n display: none;\n }\n .issuance {\n padding: 16px 0;\n border-bottom: 1px solid #f0f0f0;\n .MuiTypography-root {\n display: inline-block;\n width: 100%;\n background: #f3f3f3;\n border-radius: 4px;\n padding-top: 6px;\n padding-bottom: 6px;\n }\n }\n"])));je.propTypes={teamDid:d().string.isRequired,issuances:d().array,onRefresh:d().func},je.defaultProps={issuances:[],onRefresh:()=>{}};var Ce=t(5178),Se=t(32322),we=t(87806),Pe=t(25710),De=t(82638),Re=t(18901);function ke(e){let{teamDid:n,ownerDid:t,needReceive:s,roles:i,onCancel:o,onSuccess:a,onError:l,showOwnerPassport:c}=e;const{api:d}=(0,U.h6)(),[m,u]=(0,r.useState)(!1),[p,f]=(0,r.useState)(""),{t:h}=(0,S.PE)(),[x,g]=(0,r.useState)(""),v=async()=>{if(x){f(null),u(!0);try{await d.createPassportIssuance({input:{teamDid:n,name:x,ownerDid:t}}),a()}catch(e){const n=(0,M.Z)(e);f(n),l(e)}finally{u(!1)}}else f(h("team.member.error.passportEmpty"))};return(0,ne.jsxs)(b.ZP,{title:h("team.passport.issue"),fullWidth:!0,open:!0,onClick:e=>e.stopPropagation(),onClose:o,disableEscapeKeyDown:!0,PaperProps:{style:{minHeight:"auto"}},actions:(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(w.Z,{onClick:o,color:"inherit",size:"small",children:h("common.cancel")}),(0,ne.jsxs)(w.Z,{onClick:v,color:"primary",size:"small",disabled:m||!x,variant:"contained",autoFocus:!0,"data-cy":"issue-passport-create-btn",children:[m&&(0,ne.jsx)(V.Z,{size:16}),h(s?"team.passport.issuance.create.title":"oauth.issued")]})]}),children:[(0,ne.jsx)(K.Z,{component:"div",children:(0,ne.jsx)(H.Z,{component:"div",children:(0,ne.jsxs)($.Z,{style:{width:"100%"},variant:"outlined",children:[(0,ne.jsx)(Y.Z,{children:h("common.passport")}),(0,ne.jsx)(X.Z,{"data-cy":"issue-passport-select-passport",value:x,onChange:e=>{f(null),g(e.target.value)},fullWidth:!0,label:h("common.passport"),disabled:m,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),v())},children:i.filter((e=>c||"owner"!==e.name)).map((e=>(0,ne.jsx)(J.Z,{value:e.name,"data-cy":"issue-passport-select-option-".concat(e.name),children:(0,ne.jsx)("span",{children:e.title||e.name})},e.name)))})]})})}),!!p&&(0,ne.jsx)(G.Z,{type:"error",variant:"icon",children:p})]})}ke.propTypes={teamDid:d().string.isRequired,ownerDid:d().string.isRequired,needReceive:d().bool,onCancel:d().func.isRequired,onSuccess:d().func.isRequired,onError:d().func,roles:d().array,showOwnerPassport:d().bool},ke.defaultProps={onError:()=>{},roles:[],showOwnerPassport:!1,needReceive:!0};var Te,Ie=t(26538),Ee=t.n(Ie);function Ne(e){let{passport:n,user:t,color:s,width:i,icon:r,children:o,createPassportSvg:a,...l}=e;const{t:c}=(0,S.PE)();return(0,ne.jsxs)(Ae,{display:"flex",alignItems:"center",...l,children:[(0,ne.jsx)("div",{dangerouslySetInnerHTML:{__html:a({title:n.title||n.name,issuer:n.issuer&&n.issuer.name,issuerDid:n.issuer&&n.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:n.revoked,preferredColor:s,width:i})}}),(0,ne.jsxs)("div",{className:"body",children:[(0,ne.jsxs)(f.Z,{className:"title",display:"flex",alignItems:"center",children:[Ee()(n.title),(0,ne.jsxs)("div",{className:"status-icons",children:[r,n.revoked&&(0,ne.jsx)(we.Z,{})]})]}),n.expirationDate&&(0,ne.jsx)(f.Z,{className:"title",display:"flex",alignItems:"center",children:c("team.passport.validUntil",{date:n.expirationDate})}),o]})]})}Ne.propTypes={passport:d().any.isRequired,user:d().any.isRequired,color:d().string.isRequired,createPassportSvg:d().func.isRequired,icon:d().any,children:d().any,width:d().number},Ne.defaultProps={icon:null,children:null,width:150};const Ae=(0,o.Z)(f.Z)(Te||(Te=(0,i.Z)(["\n .body {\n padding: 0;\n margin-left: 24px;\n margin-top: 0;\n }\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #222222;\n }\n .tip {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-top: 6px;\n color: #bbb;\n }\n .status-icons {\n svg {\n fill: #bfbfbf;\n height: 1.2em;\n margin-left: 0.4em;\n }\n }\n"])));var Be;function ze(e){let{action:n,passport:t}=e;const{t:s}=(0,S.PE)(),{roles:i}=(0,W.DJ)(),r=i.find((e=>e.name===t.role));return(0,ne.jsxs)("div",{children:[(0,ne.jsx)("div",{children:s("enable"===n?"team.member.enablePassportDescription":"team.member.revokePassportDescription")}),r&&(0,ne.jsx)(f.Z,{mt:3,fontWeight:"bold",children:s("team.member.passportPermissionTitle")}),r&&(0,ne.jsx)(f.Z,{mt:1,children:r.description})]})}function Le(e){var n;let{user:t,onCreate:s,createPassportSvg:i}=e;const{t:o}=(0,S.PE)(),{session:a}=(0,ce.T)(),{roles:l,teamDid:c,teamIssuerDid:d,refresh:m,enablePassportIssuance:u,trustedPassports:h,passportColor:x,blocklet:g}=(0,W.DJ)(),{appIdList:v}=(0,q.y0)(),{api:b,inService:j}=(0,U.h6)(),[Z,C]=(0,r.useState)(!1),[P,R]=(0,r.useState)(null),[k,T]=(0,r.useState)(!1),[N,A]=(0,r.useState)(""),B=[d,...v||[]].filter(Boolean),z=(ae()(t,"passports")||[]).map((e=>({...e,revoked:e.status===E.PASSPORT_STATUS.REVOKED}))),L=async e=>{if(!Z){C(!0);try{const n=e.status===E.PASSPORT_STATUS.REVOKED?"enableUserPassport":"revokeUserPassport";await b[n]({input:{teamDid:c,userDid:t.did,passportId:e.id}}),m()}catch(n){I.Z.error((0,M.Z)(n))}finally{C(!1),R(null)}}},_=(e,n)=>t.did===a.user.did&&a.user.passportId&&a.user.passportId===n.id?{revokable:!1,message:o("team.passport.shouldNotDeleteCurrent")}:e?c===n.issuer.id&&"owner"===n.name?{revokable:!1,message:o("team.passport.noPermission")}:{revokable:!0}:{revokable:!1,message:o("team.passport.noPermission")},O=z.filter((e=>!N||e.title.includes(N)||e.name.includes(N)));return(0,ne.jsxs)(_e,{children:[(0,ne.jsxs)(Re.Z,{children:[(0,ne.jsx)("div",{className:"left",children:(0,ne.jsx)(De.Z,{placeholder:o("team.passport.search"),value:N,onChange:e=>A(e.target.value)})}),(0,ne.jsx)("div",{className:"right",children:u&&!!t.approved&&(0,ne.jsx)(F.Z,{permission:j?"":"mutate_team",role:j?M.Wf:[],children:(0,ne.jsxs)(w.Z,{variant:"contained",color:"primary","data-cy":"issue-passport",onClick:()=>T(!0),children:[(0,ne.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}),o("team.passport.issue")]})})})]}),(0,ne.jsxs)(f.Z,{children:[O.map((e=>(0,ne.jsx)(F.Z,{permission:j?"":"mutate_team",role:j?M.Wf:[],children:n=>(0,ne.jsxs)(f.Z,{className:"passport-item",display:"flex",justifyContent:"space-between",alignItems:"center",mt:3,children:[(0,ne.jsx)(Ne,{passport:e,user:t,color:x,createPassportSvg:i,icon:B.length&&!B.includes(e.issuer.id)?(0,ne.jsx)(D.Z,{}):null,children:!!B.length&&!B.includes(e.issuer.id)&&(0,ne.jsxs)("div",{className:"tip",children:[e.issuer.id!==d&&!h.some((n=>n.issuerDid===e.issuer.id))&&(0,ne.jsx)(p.Z,{title:o("team.passport.notTrustedIssuerTip"),children:(0,ne.jsx)(f.Z,{component:Ce.Z,style:{fontSize:"1.3em"},color:"error.main",mr:.5})}),(0,ne.jsx)("span",{children:o("team.passport.issueBy",{name:e.issuer.name})})]})}),(0,ne.jsx)(f.Z,{children:_(n,e).revokable?(0,ne.jsxs)(w.Z,{variant:"outlined",color:e.revoked?"primary":"secondary",onClick:()=>{return(n=e).status===E.PASSPORT_STATUS.REVOKED?R({title:o("team.member.enablePassport"),description:(0,ne.jsx)(ze,{action:"enable",passport:n}),confirm:o("common.enable"),cancel:o("common.cancel"),onConfirm:()=>{L(n)},onCancel:()=>{C(!1),R(null)},color:"primary"}):R({title:o("team.member.revokePassport"),description:(0,ne.jsx)(ze,{action:"revoke",passport:n}),confirm:o("common.revoke"),cancel:o("common.cancel"),onConfirm:()=>{L(n)},onCancel:()=>{C(!1),R(null)}});var n},children:[e.revoked?(0,ne.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}):(0,ne.jsx)(we.Z,{style:{height:16,marginRight:4}}),e.revoked?o("common.enable"):o("common.revoke")]}):(0,ne.jsx)(p.Z,{title:_(n,e).message,children:(0,ne.jsx)(Ce.Z,{style:{color:"#ddd"}})})})]})},e.id))),!O.length&&(0,ne.jsx)(Pe.Z,{children:o("common.empty")})]}),k&&(0,ne.jsx)(ke,{teamDid:c,ownerDid:t.did,needReceive:(0,Se.h1)(t)===t.did,roles:l,onCancel:()=>T(!1),onSuccess:()=>{s(),T(!1)},showOwnerPassport:g&&!(null!==(n=g.settings)&&void 0!==n&&n.owner)}),P&&(0,ne.jsx)(be.Z,{title:P.title,description:P.description,confirm:P.confirm,cancel:P.cancel,params:P.params,onConfirm:P.onConfirm,onCancel:P.onCancel,color:P.color})]})}ze.propTypes={action:d().string.isRequired,passport:d().object.isRequired},ze.defaultProps={},Le.propTypes={user:d().object.isRequired,createPassportSvg:d().func.isRequired,onCreate:d().func},Le.defaultProps={onCreate:()=>{}};const _e=o.Z.div(Be||(Be=(0,i.Z)(["\n .passport-item {\n .MuiButton-outlinedSecondary {\n color: #f16e6e;\n fill: #f16e6e;\n background: #fcf3f3;\n border: 0;\n &:hover {\n border: 0;\n }\n }\n }\n"])));var Oe=t(15098);const Ue=(e,n)=>e.nodeOwner&&e.nodeOwner.did===n,We=(e,n)=>e&&e.did===n;function qe(e){let{user:n,onCancel:t,onSuccess:s,onError:i,children:o}=e;const{api:a,info:l,inService:c}=(0,U.h6)(),{session:d}=(0,ce.T)(),{teamDid:m,refresh:u}=(0,W.DJ)(),{t:p}=(0,S.PE)(),[f,h]=(0,r.useState)(!1),[x,g]=(0,r.useState)(!1),v={title:n.approved?p("team.member.forbidLogin"):p("team.member.allowLogin"),description:n.approved?p("team.member.forbidLoginDescription"):p("team.member.allowLoginDescription"),confirm:p("common.confirm"),cancel:p("common.cancel"),onConfirm:()=>{(async e=>{const{did:n,approved:t}=e;if(!f){h(!0);try{await a.updateUserApproval({input:{teamDid:m,user:{did:n,approved:!t}}}),g(!1),s(),u()}catch(r){I.Z.error((0,M.Z)(r)),i()}finally{h(!1)}}})(n)},onCancel:()=>{h(!1),g(!1),t()},color:n.approved?"error":"primary"};let b;return b=!(0,Oe.hasActiveOwnerPassport)(n)&&((c||l.nodeOwner&&!Ue(l,n.did))&&!We(d.user,n.did)),b?(0,ne.jsxs)(ne.Fragment,{children:["function"===typeof o?o({can:b,open:()=>g(!0)}):o,x?(0,ne.jsx)(be.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel,color:v.color}):null]}):null}qe.propTypes={user:d().object,onSuccess:d().func,onCancel:d().func,onError:d().func,children:d().oneOfType([d().object,d().func])},qe.defaultProps={user:{},onSuccess:()=>{},onCancel:()=>{},onError:()=>{},children:null};var Fe,Me,Ve,Ke=t(6352),He=t.n(Ke);function Je(e,n,t){if(e&&e.startsWith(E.USER_AVATAR_URL_PREFIX)){const s=window.env.apiPrefix||"/";return t?He()(s,E.USER_AVATAR_PATH_PREFIX,e.replace(E.USER_AVATAR_URL_PREFIX,"")):He()(s,E.USER_AVATAR_PATH_PREFIX,n,e.replace(E.USER_AVATAR_URL_PREFIX,""))}return e}function Xe(e){let{user:n}=e;return(n.connectedAccounts||[]).map((e=>(0,ne.jsx)(he.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,ne.jsx)(O.Z,{did:e.did,showQrcode:!0})},e.did)))}Xe.propTypes={user:d().object.isRequired},Xe.defaultProps={},d().string.isRequired;const Qe="info";function Ye(e){let{userDid:n,onCancel:t,initTab:s,createPassportSvg:i}=e;const{api:o,ws:{useSubscription:a},inService:l}=(0,U.h6)(),{roles:c,teamDid:d,enablePassportIssuance:m}=(0,W.DJ)(),{t:u,locale:p}=(0,S.PE)(),h=(0,ve.Z)({user:null,issuances:null,tab:s||Qe}),x=async(e,n)=>{try{const t=await o.doBatchQuery({getUser:{input:{teamDid:e,user:{did:n},options:{includeTags:!0}}},getPassportIssuances:{input:{teamDid:e,ownerDid:n}}});t.getUser.user&&(t.getUser.user.avatar=Je(t.getUser.user.avatar,e,l),t.getUser.user.passports=(t.getUser.user.passports||[]).filter((e=>e.issuer))),h.user=t.getUser.user||{},h.issuances=t.getPassportIssuances.list||[]}catch(t){I.Z.error((0,M.Z)(t))}};(0,r.useEffect)((()=>{d&&x(d,n)}),[n,d]);a(N.TeamEvents.userUpdated,(e=>{e.teamDid===d&&e.user&&e.user.did===n&&x(d,n)}),[n,d]),(0,r.useEffect)((()=>{h.issuances&&!h.issuances.length&&"issuances"===h.tab&&(h.tab=Qe)}),[h.issuances]);const g=async e=>{await x(d,e.did),h.tab=Qe},v={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"},y={info:{label:u("common.basicInfo"),value:Qe,component:()=>{var e,n;return(h.user?[{name:u("team.member.name"),value:h.user.fullName},{name:u("common.email"),value:h.user.email},{name:u("team.member.source"),value:(0,ne.jsx)(f.Z,{display:"flex",alignItems:"center",children:v[(null===(e=h.user)||void 0===e?void 0:e.sourceProvider)||E.USER_TYPE.WALLET]||(null===(n=h.user)||void 0===n?void 0:n.sourceProvider)})},{name:u("team.member.allowLogin"),value:h.user.approved?u("common.yes"):u("common.no")},{name:u("team.member.lastLogin"),value:(0,M.B2)(h.user.lastLoginAt,p)},{name:u("team.member.lastLoginIp"),value:h.user.lastLoginIp||""},{name:u("common.createdAt"),value:(0,M.B2)(h.user.createdAt,p)},{name:u("common.remark"),value:h.user.remark||"--"},Array.isArray(h.user.tags)&&h.user.tags.length>0?{name:u("common.tags"),value:h.user.tags.map((e=>(0,ne.jsx)(_.Z,{style:{background:e.color,color:(0,R.getTextColor)(e.color),marginRight:4},children:e.title},e.id)))}:null].filter(Boolean):[]).map((e=>e.name===u("common.did")?(0,ne.jsx)(he.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:()=>u("common.did"),children:e.value},e.name):(0,ne.jsx)(he.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)))}},oauth:{label:u("team.member.connectedAccounts"),value:"oauth",component:()=>(0,ne.jsx)(Xe,{user:h.user,onChangeUser:g})},passports:{label:u("common.passport"),value:"passports",component:()=>(0,ne.jsx)(Le,{user:h.user,teamDid:d,roles:c,createPassportSvg:i,onCreate:()=>{x(d,n).then((()=>{m&&h.issuances&&h.issuances.length&&(h.tab="issuances")}))},onRefresh:()=>{x(d,n)}})},issuances:{label:u("team.passport.issuance.pending"),value:"issuances",component:()=>(0,ne.jsx)(je,{issuances:h.issuances||[],teamDid:d,onRefresh:()=>x(d,n)})}},j=Object.values(y).map((e=>{let{label:n,value:t}=e;return{label:n,value:t}})).filter((e=>{if("issuances"===e.value)return m&&h.issuances&&!!h.issuances.length;if("oauth"===e.value){var n;return((null===(n=h.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((e=>{var n;return e.provider!==((null===(n=h.user)||void 0===n?void 0:n.sourceProvider)||N.LOGIN_PROVIDER.WALLET)}))}return!0})),Z=y[h.tab]||y.info;return(0,ne.jsx)(b.ZP,{title:u("common.member"),onClose:t,open:!0,PaperProps:{style:{maxWidth:632,minHeight:"80vh"}},fullWidth:!0,actions:h.user&&(0,ne.jsx)(F.Z,{permission:l?"":"mutate_team",role:l?M.Wf:[],children:(0,ne.jsx)(qe,{user:h.user,children:e=>{let{open:n}=e;return(0,ne.jsxs)(en,{onClick:n,children:[h.user.approved?(0,ne.jsx)(xe.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}):(0,ne.jsx)(ge.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}),h.user.approved?u("team.member.forbidLogin"):u("team.member.allowLogin")]})}})}),children:(0,ne.jsxs)($e,{children:[!h.user&&(0,ne.jsx)(Ge,{children:(0,ne.jsx)(V.Z,{})}),h.user&&(0,ne.jsxs)("div",{children:[(0,ne.jsxs)(f.Z,{display:"flex",alignItems:"center",className:"info",children:[(0,ne.jsx)(pe.Z,{src:h.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,ne.jsxs)(f.Z,{children:[(0,ne.jsx)(f.Z,{className:"name",children:h.user.fullName}),(0,ne.jsx)(f.Z,{className:"did",mt:1,children:(0,ne.jsx)(O.Z,{did:h.user.did,showQrcode:!0})})]})]}),(0,ne.jsx)(f.Z,{mx:3,className:"tabs",children:(0,ne.jsx)(fe.Z,{tabs:j,current:h.tab,onChange:e=>{h.tab=e},scrollButtons:"auto"})}),(0,ne.jsx)("div",{className:"body",children:(0,ne.jsx)(Z.component,{})})]})]})})}Ye.propTypes={userDid:d().string.isRequired,onCancel:d().func.isRequired,createPassportSvg:d().func.isRequired,initTab:d().string},Ye.defaultProps={initTab:Qe};const $e=o.Z.div(Fe||(Fe=(0,i.Z)(["\n .info {\n .name {\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n\n .tabs {\n margin-top: 24px;\n margin-left: 0;\n margin-right: 0;\n }\n\n .body {\n margin-top: 24px;\n }\n"]))),Ge=o.Z.div(Me||(Me=(0,i.Z)(["\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n"]))),en=o.Z.div(Ve||(Ve=(0,i.Z)(["\n flex-shrink: 0;\n width: 100%;\n height: 64px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: #999;\n fill: #999;\n font-size: 16px;\n border-top: 1px solid #f0f0f0;\n position: sticky;\n bottom: 0;\n background: #fff;\n z-index: 10;\n"])));var nn,tn=t(27773);function sn(){const{api:e,inService:n}=(0,U.h6)(),{t:t,locale:s}=(0,r.useContext)(S.RD),{teamDid:i,invitations:o,refresh:a,endpoint:l}=(0,W.DJ)(),[c,d]=(0,r.useState)(null),[m,u]=(0,r.useState)(!1),p=()=>{u(!1),d(null)},f=e=>l?(0,M.ly)({inviteId:e.inviteId,endpoint:l}):"",h=[{label:t("team.inviting.link"),name:"inviteId",options:{sort:!1,customBodyRenderLite:e=>{const n=o[e];return l?(0,ne.jsx)(ee.Z,{children:f(n)}):(0,ne.jsx)(V.Z,{size:16})}}},{label:t("common.role"),name:"role",widtn:70},{label:t("common.remark"),name:"remark",options:{customBodyRender:e=>e||"--"}},{label:t("team.inviting.inviter"),name:"inviter.fullName",options:{sort:!1,customBodyRender:(e,n)=>{var t;let{rowIndex:s}=n;const i=o[s];return null===i||void 0===i||null===(t=i.inviter)||void 0===t?void 0:t.fullName}}},{label:t("common.expires"),name:"expireDate",options:{customBodyRender:e=>(0,ne.jsx)(T.Z,{value:e,locale:s})}},{label:t("common.actions"),name:"",width:100,align:"center",options:{sort:!1,customBodyRenderLite:s=>{const r=o[s];return(0,ne.jsx)(F.Z,{permission:n?"":"mutate_team",role:n?M.Wf:[],children:(0,ne.jsxs)(w.Z,{onClick:()=>d({title:t("team.inviting.delete.title"),description:t("team.inviting.delete.description",{link:f(r)}),confirm:t("common.delConfirm"),cancel:t("common.cancel"),onConfirm:()=>(async n=>{let{inviteId:t}=n;if(!m){u(!0);try{await e.deleteInvitation({input:{teamDid:i,inviteId:t}}),a(),await(0,M._v)(800)}catch(s){console.error(s)}finally{u(!1),d(null)}}})(r),onCancel:p}),size:"small",color:"error",variant:"text",children:[(0,ne.jsx)(tn.default,{style:{fontSize:"1.2em"}}),t("common.delete")]})})}}}];return(0,ne.jsxs)(rn,{children:[o.length?(0,ne.jsx)(k.Z,{locale:s,data:[...o],columns:h,verticalKeyWidth:100,options:{download:!1,filter:!1,print:!1}}):(0,ne.jsx)(Pe.Z,{children:t("common.empty")}),c&&(0,ne.jsx)(be.Z,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]})}const rn=o.Z.div(nn||(nn=(0,i.Z)(["\n margin-top: -20px;\n"])));sn.propTypes={},sn.defaultProps={};var on,an=t(53047),ln=t(46954),cn=t(44067),dn=t(36299),mn=t(92726);function un(e){let{type:n,user:t,onIssuePassport:s,onRefresh:i}=e;const{teamDid:o,roles:a}=(0,W.DJ)(),{confirmHolder:l,confirmApi:c}=(0,b.N4)(),{t:d}=(0,r.useContext)(S.RD),[m,u]=(0,r.useState)(!1),{api:p}=(0,U.h6)(),f=(0,z.Z)((async()=>{const{userSessions:e=[]}=t,n=e.map((e=>()=>p.logoutUser({input:{teamDid:o,appPid:o,userDid:t.did,visitorId:e.visitorId}})));await(0,dn.Z)(n,{concurrency:3,stopOnError:!1})}));return(0,ne.jsxs)(ne.Fragment,{children:[l,(0,ne.jsx)(mn.Z,{"data-cy":"member-actions",actions:[{icon:(0,ne.jsx)(y.Z,{fontSize:"small"}),text:d("team.passport.issue"),"data-cy":"action-issue-passport",onClick:e=>{e.stopPropagation(),u(!0)}},e=>{let{close:n}=e;return(0,ne.jsx)(qe,{user:t,children:e=>{let{open:s}=e;return(0,ne.jsxs)(J.Z,{dense:!0,onClick:e=>{e.stopPropagation(),n(),s(e)},"data-cy":"action-toggle-block",children:[(0,ne.jsx)(ln.Z,{style:{minWidth:24,marginRight:8},children:t.approved?(0,ne.jsx)(xe.Z,{}):(0,ne.jsx)(ge.Z,{})}),(0,ne.jsx)(cn.Z,{primary:t.approved?d("team.member.forbidLogin"):d("team.member.allowLogin")})]})}},"toggle-approval")},"blocklet"===n&&{icon:(0,ne.jsx)(an.Z,{fontSize:"small"}),text:d("team.member.forceLogout"),onClick:e=>{e.stopPropagation(),c.open({title:d("team.member.forceLogout"),content:d("team.member.forceLogoutDescription"),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onClick:e=>e.stopPropagation(),onConfirm:async()=>{await f(),await c.close(),i()}})}}].filter(Boolean)}),m&&(0,ne.jsx)(ke,{teamDid:o,ownerDid:t.did,needReceive:(0,Se.h1)(t)===t.did,roles:a,onCancel:()=>u(!1),onSuccess:()=>{s(),u(!1)}})]})}un.propTypes={type:d().oneOf(["server","blocklet"]).isRequired,user:d().object.isRequired,onIssuePassport:d().func,onRefresh:d().func},un.defaultProps={onIssuePassport:()=>{},onRefresh:()=>{}};const pn="$all",fn="$none",hn=(e,n)=>{const t=e.find((e=>e.key===n));return(null===t||void 0===t?void 0:t.value)||0},xn=(e,n)=>{const t=e.passports||[];return!!t.length&&!t.some((e=>{var t;return n.includes(null===(t=e.issuer)||void 0===t?void 0:t.id)}))};function gn(e){let{user:n}=e;const{t:t}=(0,r.useContext)(S.RD),s=(0,ne.jsxs)("div",{className:"member-block",children:[(0,ne.jsxs)("div",{className:"member-avatar",children:[(0,ne.jsx)(C.Z,{src:"".concat(n.avatar,"?imageFilter=resize&w=48&h=48"),size:32,did:n.did,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),!n.approved&&(0,ne.jsx)("did",{className:"badge-block"}),n.isFromExternal&&(0,ne.jsx)(p.Z,{title:t("team.passport.externalPassport"),children:(0,ne.jsx)(f.Z,{ml:1,className:"icon",children:(0,ne.jsx)(D.Z,{})})})]}),(0,ne.jsxs)("div",{className:"member-meta",children:[(0,ne.jsx)("div",{className:"member-text",children:n.fullName}),Array.isArray(n.tags)&&n.tags.length>0&&(0,ne.jsx)("div",{className:"member-tags",children:n.tags.map((e=>(0,ne.jsx)(_.Z,{style:{background:e.color,color:(0,R.getTextColor)(e.color),marginRight:4},children:e.title},e.id)))})]})]});return n.approved?s:(0,ne.jsx)(f.Z,{display:"flex",alignItems:"center",children:(0,ne.jsx)(p.Z,{title:t("team.member.forbidLoginDescription"),children:s})})}function vn(e){let{type:n,createPassportSvg:t}=e;const{confirmApi:s,confirmHolder:i}=(0,b.N4)({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1e3},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),{appIdList:o=[]}=(0,q.y0)(),{teamDid:a,invitations:c,teamIssuerDid:d,roles:m,refresh:p,enablePassportIssuance:C,endpoint:D,api:R}=(0,W.DJ)(),{inService:_,ws:{useSubscription:V}}=(0,U.h6)(),{t:K,locale:H}=(0,r.useContext)(S.RD),[J,X]=(0,r.useState)(!1),[Q,Y]=(0,r.useState)(!1),[$,G]=(0,r.useState)(!1),[ee,se]=(0,r.useState)(!1),[ie,re]=(0,r.useState)(!1),[oe,ae]=(0,r.useState)([]),[le,ce]=(0,r.useState)(),[me,ue]=(0,r.useState)([]),[pe]=(0,A.Z)({did:void 0}),fe="members-".concat(a),he=(0,k.$)(fe),[xe,ge]=(0,r.useState)({role:pn,searchText:he.searchText||"",hideBlocked:!1,pageSize:he.rowsPerPage||10,page:he.page?he.page+1:1});(0,B.Z)((async()=>{if(pe.did){const{user:e}=await R.getUser({did:pe.did});e&&se(e)}}));const ve=(m||[]).map((e=>({name:e.name,title:e.title,num:hn(me,e.name)})));ve.unshift({name:pn,title:"All Members",num:hn(me,pn)}),ve.push({name:fn,title:"Other",num:hn(me,fn)});const be=()=>{const e={includeTags:!0,includeUserSessions:"blocklet"===n};xe.hideBlocked&&(e.approved=!0),e.role=xe.role,xe.searchText&&(e.search=xe.searchText),re(!0),R.getUsers({query:e,paging:{page:xe.page,pageSize:xe.pageSize}}).then((e=>{re(!1),(e.users||[]).forEach((e=>{e.isFromExternal=xn(e,l()(o)?[d]:o),e.avatar=Je(e.avatar,a,_),e.passports=(e.passports||[]).filter((e=>e.issuer))})),ae(e.users||[]),ce(e.paging.total)})).catch((e=>{re(!1),I.Z.error(e.message)}))},ye=()=>{R.getUsersCountPerRole().then((e=>{ue(e.counts||[])})).catch((e=>{I.Z.error(e.message)}))},je=e=>{e.teamDid===a&&(be(),ye())};(0,r.useEffect)((()=>{be()}),["".concat(xe.hideBlocked,"-").concat(xe.role,"-").concat(xe.page,"-").concat(xe.pageSize,"-").concat(xe.searchText)]),(0,r.useEffect)((()=>{ye()}),[]),V(N.TeamEvents.userUpdated,je,[xe]),V(N.TeamEvents.userAdded,je,[xe]);const Ze=C,Ce=(0,z.Z)((e=>{s.open({title:"User Sessions",content:(0,ne.jsx)(L.YZ,{user:e,showAction:!1,showUser:!1}),onConfirm(){s.close()},confirmButtonText:K("common.close"),showCancelButton:!1})})),Se=[{label:K("common.name"),name:"fullName",options:{customBodyRenderLite:e=>{const n=oe[e];return(0,ne.jsx)("div",{"data-cy":"member-name-".concat(n.fullName),children:(0,ne.jsx)(gn,{user:n})},n.did)}}},{label:K("common.address"),name:"did",options:{customBodyRender:e=>(0,ne.jsx)(O.Z,{size:14,responsive:!0,copyable:!1,did:e})}},{label:K("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:e=>(0,ne.jsx)(T.Z,{value:e,locale:H})}},{label:K("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:e=>e||"-"}},{label:K("team.member.source"),name:"sourceProvider",options:{customBodyRenderLite:e=>{const n=oe[e],t=n.sourceProvider||E.USER_TYPE.WALLET,s={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[t]||t;return n.sourceAppPid?"".concat(s," (").concat(K("team.member.federated"),")"):s}}},"blocklet"===n&&{label:K("team.member.activeUserSessions"),name:"userSessions",options:{customBodyRenderLite:e=>{var n,t,s;const i=oe[e];return(0,ne.jsx)(h.Z,{onClick:e=>{e.stopPropagation(),Ce(i)},children:(0,ne.jsx)(x.Z,{badgeContent:null===i||void 0===i||null===(n=i.userSessions)||void 0===n?void 0:n.length,color:(null===i||void 0===i||null===(t=i.userSessions)||void 0===t?void 0:t.length)>0?"primary":"default",sx:(null===i||void 0===i||null===(s=i.userSessions)||void 0===s?void 0:s.length)>0?{}:{".MuiBadge-badge":{backgroundColor:"grey",color:"white"}},showZero:!0,children:(0,ne.jsx)(Z.Z,{})})})}}},{label:K("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:e=>{const t=oe[e];return(0,ne.jsx)(F.Z,{permission:_?"":"mutate_team",role:_?M.Wf:[],children:(0,ne.jsx)(un,{type:n,user:t,onIssuePassport:()=>se({...t,initTab:"issuances"}),onRefresh:()=>je({teamDid:a})})})}}}].filter(Boolean),we=[];Ze&&(we.push((0,ne.jsxs)(w.Z,{variant:"outlined",style:{flexShrink:0,marginRight:16},color:"primary",size:"small",onClick:()=>{G(!0)},children:[(0,ne.jsx)(P.Z,{style:{height:"1em",marginRight:4}}),K("common.inviting"),c.length?" (".concat(c.length,")"):""]}),(0,ne.jsx)(F.Z,{permission:_?"":"mutate_team",role:_?M.Wf:[],children:(0,ne.jsxs)(w.Z,{style:{flexShrink:0,marginRight:16},variant:"contained",edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:()=>X(!0),children:[(0,ne.jsx)(y.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.invite")]})})),"server"===n&&we.push((0,ne.jsx)(F.Z,{role:"owner",children:(0,ne.jsxs)(w.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"invite-member",onClick:()=>Y(!0),children:[(0,ne.jsx)(j.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.transferNode.name")]})})));const Pe=(0,r.useRef)(null),De={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick(e,n,t){var s;let{dataIndex:i}=n;if(null!==(s=Pe.current)&&void 0!==s&&s.contains(t.target)){const e=oe[i];se(e)}},page:xe.page-1,rowsPerPage:xe.pageSize,count:le,searchDebounceTime:600};return(0,ne.jsxs)(bn,{children:[i,(0,ne.jsxs)(f.Z,{className:"main",display:"flex",sx:{mt:_?4:0},children:[(0,ne.jsx)("div",{className:"left",children:(0,ne.jsx)("div",{className:"tabs",children:ve.map((e=>(0,ne.jsxs)("div",{className:"tab ".concat(xe.role===e.name?"active":""),onClick:()=>{return n=e.name,void(ie||ge((e=>({...e,role:n,hideBlocked:!1,searchText:"",page:1}))));var n},children:[(0,ne.jsx)("span",{className:"text",children:e.title}),(0,ne.jsx)("span",{className:u()("badge",{"is-rect":e.num>999}),children:e.num})]},e.name)))})}),(0,ne.jsx)("div",{ref:Pe,className:"right",children:(0,ne.jsx)(k.Z,{className:"main-table",verticalKeyWidth:100,locale:H,durable:fe,durableKeys:["page","rowsPerPage"],title:(0,ne.jsx)("div",{className:"table-toolbar-left",children:(0,ne.jsx)(g.Z,{control:(0,ne.jsx)(v.Z,{sx:{display:"flex !important"},disabled:ie,color:"primary",checked:xe.hideBlocked,onChange:e=>{return n=e.target.checked,void ge((e=>({...e,hideBlocked:n,page:1})));var n}}),label:K("team.member.hideBlockedMember")})}),data:oe,columns:Se,customButtons:we,options:De,loading:ie,onChange:e=>{let{page:n,rowsPerPage:t,searchText:s}=e;xe.pageSize!==t?ge((e=>({...e,pageSize:t,page:1}))):xe.page!==n+1?ge((e=>({...e,page:n+1}))):xe.searchText!==s&&ge((e=>({...e,searchText:s,page:1})))}})})]}),(0,ne.jsx)(b.ZP,{title:K("common.inviting"),onClose:()=>G(!1),open:$,maxWidth:"lg",fullWidth:!0,children:(0,ne.jsx)(sn,{})}),ee&&(0,ne.jsx)(Ye,{onCancel:()=>se(null),userDid:ee.did,createPassportSvg:t,initTab:ee.initTab}),J&&(0,ne.jsx)(te,{teamDid:a,endpoint:D,roles:m,onCancel:()=>X(!1),onSuccess:()=>{p(),X(!1)}}),Q&&(0,ne.jsx)(de,{teamDid:a,endpoint:D,roles:m,onCancel:()=>Y(!1),onSuccess:()=>{p(),Y(!1)}})]})}gn.propTypes={user:d().object.isRequired};const bn=o.Z.div(on||(on=(0,i.Z)(["\n .main {\n .left {\n width: 168px;\n flex-shrink: 0;\n margin-right: 65px;\n .tabs {\n padding-top: 16px;\n .tab {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n transition: background 0.4s;\n\n width: 168px;\n height: 36px;\n border-radius: 8px;\n\n cursor: pointer;\n user-select: none;\n\n &:nth-child(n + 2) {\n margin-top: 24px;\n }\n\n &.active {\n background: #f2f2f2;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n\n .text {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n\n color: #222222;\n }\n\n .badge {\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n color: #fff;\n background: #666666;\n font-size: 10px;\n font-weight: 400;\n &.is-rect {\n width: auto;\n border-radius: 8px;\n padding: 0 4px;\n }\n }\n }\n }\n @media (max-width: ","px) {\n display: none;\n }\n }\n .right {\n flex-grow: 1;\n }\n }\n\n .member-block {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n .member-avatar {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .member-meta {\n margin-left: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n }\n .badge-block {\n width: 14px;\n height: 14px;\n position: absolute;\n right: -4px;\n top: -4px;\n background: #ff5757;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n &::after {\n content: '';\n width: 6px;\n height: 2px;\n background: #fefefe;\n }\n }\n }\n\n .table-toolbar-left {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 7px 0;\n }\n"])),(e=>e.theme.breakpoints.values.md));vn.propTypes={type:d().oneOf(["server","blocklet"]).isRequired,createPassportSvg:d().func.isRequired}},82638:(e,n,t)=>{"use strict";t.d(n,{Z:()=>c});var s,i=t(71171),r=t(33518),o=t(47020),a=t(57201),l=t(96266);const c=(0,r.Z)((e=>{let{children:n,...t}=e;return(0,l.jsx)(o.Z,{...t,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,l.jsx)(a.default,{})},size:"small",children:n})}))(s||(s=(0,i.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])))},18901:(e,n,t)=>{"use strict";t.d(n,{Z:()=>r});var s,i=t(71171);const r=t(33518).Z.div(s||(s=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])))}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 5706.
|
|
2
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5706],{39434:(e,t,n)=>{n.d(t,{Z:()=>T});var o=n(7896),r=n(31461),i=n(5057),s=(n(97408),n(9978)),c=n(15109),a=n(82261),l=n(62773),u=n(42908),f=n(11750),d=n(96295),p=n(57471),h=n(96266);const g=(0,p.Z)((0,h.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var m=n(66230);const b=["slots","slotProps"],y=(0,l.ZP)(m.Z)((e=>{let{theme:t}=e;return(0,o.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,o.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,o.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,d._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,d._4)(t.palette.grey[600],.12)})})})),v=(0,l.ZP)(g)({width:24,height:16});const x=function(e){const{slots:t={},slotProps:n={}}=e,i=(0,r.Z)(e,b),s=e;return(0,h.jsx)("li",{children:(0,h.jsx)(y,(0,o.Z)({focusRipple:!0},i,{ownerState:s,children:(0,h.jsx)(v,(0,o.Z)({as:t.CollapsedIcon,ownerState:s},n.collapsedIcon))}))})};var w=n(46849),S=n(96036);function j(e){return(0,S.ZP)("MuiBreadcrumbs",e)}const C=(0,w.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),k=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],E=(0,l.ZP)(f.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{["& .".concat(C.li)]:t.li},t.root]})({}),I=(0,l.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),O=(0,l.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function M(e,t,n,o){return e.reduce(((r,i,s)=>(s<e.length-1?r=r.concat(i,(0,h.jsx)(O,{"aria-hidden":!0,className:t,ownerState:o,children:n},"separator-".concat(s))):r.push(i),r)),[])}const T=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiBreadcrumbs"}),{children:l,className:f,component:d="nav",slots:p={},slotProps:g={},expandText:m="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:y=1,maxItems:v=8,separator:w="/"}=n,S=(0,r.Z)(n,k),[C,O]=i.useState(!1),T=(0,o.Z)({},n,{component:d,expanded:C,expandText:m,itemsAfterCollapse:b,itemsBeforeCollapse:y,maxItems:v,separator:w}),P=(e=>{const{classes:t}=e;return(0,a.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},j,t)})(T),A=(0,c.y)({elementType:p.CollapsedIcon,externalSlotProps:g.collapsedIcon,ownerState:T}),L=i.useRef(null),F=i.Children.toArray(l).filter((e=>i.isValidElement(e))).map(((e,t)=>(0,h.jsx)("li",{className:P.li,children:e},"child-".concat(t))));return(0,h.jsx)(E,(0,o.Z)({ref:t,component:d,color:"text.secondary",className:(0,s.Z)(P.root,f),ownerState:T},S,{children:(0,h.jsx)(I,{className:P.ol,ref:L,ownerState:T,children:M(C||v&&F.length<=v?F:(e=>y+b>=e.length?e:[...e.slice(0,y),(0,h.jsx)(x,{"aria-label":m,slots:{CollapsedIcon:p.CollapsedIcon},slotProps:{collapsedIcon:A},onClick:()=>{O(!0);const e=L.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-b,e.length)])(F),P.separator,w,T)})}))}))},5892:(e,t,n)=>{const o=Object.freeze({left:0,top:0,width:16,height:16}),r=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),i=Object.freeze({...o,...r}),s=Object.freeze({...i,body:"",hidden:!1});function c(e,t){const n=function(e,t){const n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in s)o in r?o in e&&!(o in n)&&(n[o]=r[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function a(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function s(e){i=c(o[e]||r[e],i)}return s(t),n.forEach(s),c(e,i)}function l(e,t){const n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,a(e,r,i)),n.push(r))}return n}const u=/^[a-z0-9]+(-[a-z0-9]+)*$/,f=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!d(i)?null:i}const i=r[0],s=i.split("-");if(s.length>1){const e={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!d(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!d(e,n)?null:e}return null},d=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(u)||!(t&&""===e.prefix||e.prefix.match(u))||!e.name.match(u)),p={provider:"",aliases:{},not_found:{},...o};function h(e,t){for(const n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function g(e){if("object"!==typeof e||null===e)return null;const t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!h(e,p))return null;const n=t.icons;for(const r in n){const e=n[r];if(!r.match(u)||"string"!==typeof e.body||!h(e,s))return null}const o=t.aliases||Object.create(null);for(const r in o){const e=o[r],t=e.parent;if(!r.match(u)||"string"!==typeof t||!n[t]&&!o[t]||!h(e,s))return null}return t}const m=Object.create(null);function b(e,t){const n=m[e]||(m[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function y(e,t){return g(t)?l(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let v=!1;function x(e){const t="string"===typeof e?f(e,!0,v):e;if(t){const e=b(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function w(e,t){const n=f(e,!0,v);if(!n)return!1;return function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]={...n},!0}catch(o){}return!1}(b(n.provider,n.prefix),n.name,t)}function S(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),v&&!t&&!e.prefix){let t=!1;return g(e)&&(e.prefix="",l(e,((e,n)=>{n&&w(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!d({provider:t,prefix:n,name:"a"}))return!1;return!!y(b(t,n),e)}const j=Object.freeze({width:null,height:null}),C=Object.freeze({...j,...r}),k=/(-?[0-9.]*[0-9]+[0-9.]*)/g,E=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function I(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;const o=e.split(k);if(null===o||!o.length)return e;const r=[];let i=o.shift(),s=E.test(i);for(;;){if(s){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");s=!s}}const O=e=>"unset"===e||"undefined"===e||"none"===e;function M(e,t){const n={...i,...e},o={...C,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let i,c=e.rotate;switch(n?o?c+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4,c){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}c%2===1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s='<g transform="'+t.join(" ")+'">'+s+"</g>")}));const c=o.width,a=o.height,l=r.width,u=r.height;let f,d;null===c?(d=null===a?"1em":"auto"===a?u:a,f=I(d,l/u)):(f="auto"===c?l:c,d=null===a?I(f,u/l):"auto"===a?u:a);const p={},h=(e,t)=>{O(t)||(p[e]=t.toString())};return h("width",f),h("height",d),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:s}}const T=/\sid="(\S+)"/g,P="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let A=0;function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;const n=[];let o;for(;o=T.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"===typeof t?t(n):t+(A++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const F={local:!0,session:!0},Z={local:new Set,session:new Set};let N=!1;const z="iconify2",R="iconify",_=R+"-count",B=R+"-version",D=36e5,q=168;function $(e,t){try{return e.getItem(t)}catch(n){}}function H(e,t,n){try{return e.setItem(t,n),!0}catch(o){}}function U(e,t){try{e.removeItem(t)}catch(n){}}function V(e,t){return H(e,_,t.toString())}function Q(e){return parseInt($(e,_))||0}let G="undefined"===typeof window?{}:window;function J(e){const t=e+"Storage";try{if(G&&G[t]&&"number"===typeof G[t].length)return G[t]}catch(n){}F[e]=!1}function W(e,t){const n=J(e);if(!n)return;const o=$(n,B);if(o!==z){if(o){const e=Q(n);for(let t=0;t<e;t++)U(n,R+t.toString())}return H(n,B,z),void V(n,0)}const r=Math.floor(Date.now()/D)-q,i=e=>{const o=R+e.toString(),i=$(n,o);if("string"===typeof i){try{const n=JSON.parse(i);if("object"===typeof n&&"number"===typeof n.cached&&n.cached>r&&"string"===typeof n.provider&&"object"===typeof n.data&&"string"===typeof n.data.prefix&&t(n,e))return!0}catch(s){}U(n,o)}};let s=Q(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,V(n,s)):Z[e].add(c))}function K(){if(!N){N=!0;for(const e in F)W(e,(e=>{const t=e.data,n=b(e.provider,t.prefix);if(!y(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function X(e,t){switch(e){case"local":case"session":F[e]=t;break;case"all":for(const e in F)F[e]=t}}const Y=Object.create(null);function ee(e,t){Y[e]=t}function te(e){return Y[e]||Y[""]}function ne(e){let t;if("string"===typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const oe=Object.create(null),re=["https://api.simplesvg.com","https://api.unisvg.com"],ie=[];for(;re.length>0;)1===re.length||Math.random()>.5?ie.push(re.shift()):ie.push(re.pop());function se(e,t){const n=ne(t);return null!==n&&(oe[e]=n,!0)}function ce(e){return oe[e]}oe[""]=ne({resources:["https://api.iconify.design"].concat(ie)});let ae=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(t){}})();const le={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ce(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach(((n,a)=>{c+=n.length+1,c>=r&&a>0&&(o.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=n.length),s.icons.push(n)})),o.push(s),o},send:(e,t,n)=>{if(!ae)return void n("abort",424);let o=function(e){if("string"===typeof e){const t=ce(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ae(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ue(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let fe=0;var de={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pe(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let t=e.resources.slice(0);for(s=[];t.length>1;){const e=Math.floor(Math.random()*t.length);s.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}s=s.concat(t)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a,l="pending",u=0,f=null,d=[],p=[];function h(){f&&(clearTimeout(f),f=null)}function g(){"pending"===l&&(l="aborted"),h(),d.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),d=[]}function m(e,t){t&&(p=[]),"function"===typeof e&&p.push(e)}function b(){l="failed",p.forEach((e=>{e(void 0,a)}))}function y(){d.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),d=[]}function v(){if("pending"!==l)return;h();const o=s.shift();if(void 0===o)return d.length?void(f=setTimeout((()=>{h(),"pending"===l&&(y(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(d=d.filter((e=>e!==t)),l){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return a=o,void b();if(r)return a=o,void(d.length||(s.length?v():b()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};d.push(r),u++,f=setTimeout(v,e.rotate),n(o,t,r.callback)}return"function"===typeof o&&p.push(o),setTimeout(v),function(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:m,abort:g}}}function he(e){const t={...de,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}const r={query:function(e,r,i){const s=pe(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(s),s},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o};return r}function ge(){}const me=Object.create(null);function be(e,t,n){let o,r;if("string"===typeof e){const t=te(e);if(!t)return n(void 0,424),ge;r=t.send;const i=function(e){if(!me[e]){const t=ce(e);if(!t)return;const n={config:t,redundancy:he(t)};me[e]=n}return me[e]}(e);i&&(o=i.redundancy)}else{const t=ne(e);if(t){o=he(t);const n=te(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),ge)}function ye(e,t){function n(n){let o;if(!F[n]||!(o=J(n)))return;const r=Z[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Q(o),!V(o,i+1))return;const s={cached:Math.floor(Date.now()/D),provider:e.provider,data:t};return H(o,R+i.toString(),JSON.stringify(s))}N||K(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in F)W(o,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function ve(){}function xe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,s=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const s=t.name;if(e.icons[s])i.loaded.push({provider:o,prefix:r,name:s});else{if(!e.missing.has(s))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:s})}return!1})),i.pending.length!==s&&(n||ue([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const we=e=>{const t=b(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))},Se=(e,t)=>{var n;const o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,s=e.name,c=n[r]||(n[r]=Object.create(null)),a=c[i]||(c[i]=b(r,i));let l;l=s in a.icons?t.loaded:""===i||a.missing.has(s)?t.missing:t.pending;const u={provider:r,prefix:i,name:s};l.push(u)})),t}(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return e.forEach((e=>{const r="string"===typeof e?f(e,t,n):e;r&&o.push(r)})),o}(e,!0,("boolean"===typeof n&&(v=n),v)));if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,ve)})),()=>{e=!1}}const r=Object.create(null),i=[];let s,c;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===c&&t===s)return;s=t,c=n,i.push(b(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=b(t,n),s=i.pendingIcons||(i.pendingIcons=new Set);s.has(o)||(s.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=te(t))&&r.prepare(t,n,o).forEach((n=>{be(t,n,(t=>{if("object"!==typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=y(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ye(e,t)}catch(o){console.error(o)}xe(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=fe++,r=ue.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):ve};function je(e,t){const n={...e};for(const o in t){const e=t[o],r=typeof e;o in j?(null===e||e&&("string"===r||"number"===r))&&(n[o]=e):r===typeof n[o]&&(n[o]="rotate"===o?e%4:e)}return n}const Ce={...C,inline:!1},ke="iconify",Ee="iconify-inline",Ie="iconifyData"+Date.now();let Oe=[];function Me(e){for(let t=0;t<Oe.length;t++){const n=Oe[t];if(("function"===typeof n.node?n.node():n.node)===e)return n}}function Te(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Me(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},Oe.push(n),n)}function Pe(){return Oe}let Ae=null;const Le={childList:!0,subtree:!0,attributes:!0};function Fe(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,Ae&&Ae(e)})))}function Ze(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[Ie])return void(n.paused||Fe(e))}}function Ne(e,t){e.observer.instance.observe(t,Le)}function ze(e){let t=e.observer;if(t&&t.instance)return;const n="function"===typeof e.node?e.node():e.node;n&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Ze.bind(null,e)),Ne(e,n),t.paused||Fe(e))}function Re(){Pe().forEach(ze)}function _e(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Be(e){const t=null!==Ae;Ae!==e&&(Ae=e,t&&Pe().forEach(_e)),t?Re():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Re)}function De(e){(e?[e]:Pe()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function qe(e){(e?[e]:Pe()).forEach((e=>{if(!e.observer)return void ze(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const n="function"===typeof e.node?e.node():e.node;if(!n)return;t.instance?Ne(e,n):ze(e)}}))}function $e(e){const t=Te(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return ze(t),t}function He(e){const t=Me(e);t&&(_e(t),function(e){Oe=Oe.filter((t=>e!==t&&e!==("function"===typeof t.node?t.node():t.node)))}(e))}const Ue=/[\s,]+/;const Ve=["width","height"],Qe=["inline","hFlip","vFlip"];function Ge(e){const t=e.getAttribute("data-icon"),n="string"===typeof t&&f(t,!0);if(!n)return null;const o={...Ce,inline:e.classList&&e.classList.contains(Ee)};Ve.forEach((t=>{const n=e.getAttribute("data-"+t);n&&(o[t]=n)}));const r=e.getAttribute("data-rotate");"string"===typeof r&&(o.rotate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1===0?o(r):0)}}return t}(r));const i=e.getAttribute("data-flip");"string"===typeof i&&function(e,t){t.split(Ue).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(o,i),Qe.forEach((t=>{const n="data-"+t,r=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(n),n);"boolean"===typeof r&&(o[t]=r)}));const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:s}}const Je="svg."+ke+", i."+ke+", span."+ke+", i."+Ee+", span."+Ee;function We(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Ke;function Xe(e){return void 0===Ke&&function(){try{Ke=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Ke=null}}(),Ke?Ke.createHTML(e):e}function Ye(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((n=>{e[n]&&t.add("iconify--"+e[n])})),t}function et(e,t,n,o){const r=e.classList;if(o){const e=o.classList;Array.from(e).forEach((e=>{r.add(e)}))}const i=[];return t.forEach((e=>{r.contains(e)?n.has(e)&&i.push(e):(r.add(e),i.push(e))})),n.forEach((e=>{t.has(e)||r.remove(e)})),i}function tt(e,t,n){const o=e.style;(n||[]).forEach((e=>{o.removeProperty(e)}));const r=[];for(const i in t)o.getPropertyValue(i)||(r.push(i),o.setProperty(i,t[i]));return r}function nt(e,t,n){let o;try{o=document.createElement("span")}catch(p){return e}const r=t.customisations,i=M(n,r),s=e[Ie],c=We(L(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=Xe(c);const a=o.childNodes[0],l=e.attributes;for(let h=0;h<l.length;h++){const e=l.item(h),t=e.name;"class"===t||a.hasAttribute(t)||a.setAttribute(t,e.value)}const u=et(a,Ye(t.icon),new Set(s&&s.addedClasses),e),f=tt(a,r.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),d={...t,status:"loaded",addedClasses:u,addedStyles:f};return a[Ie]=d,e.parentNode&&e.parentNode.replaceChild(a,e),a}const ot={display:"inline-block"},rt={"background-color":"currentColor"},it={"background-color":"transparent"},st={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ct={"-webkit-mask":rt,mask:rt,background:it};for(const mt in ct){const e=ct[mt];for(const t in st)e[mt+"-"+t]=st[t]}function at(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let lt=!1;function ut(){lt||(lt=!0,setTimeout((()=>{lt&&(lt=!1,ft())})))}function ft(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.create(null);function o(e,t){const{provider:o,prefix:r,name:i}=e,s=b(o,r),c=s.icons[i];if(c)return{status:"loaded",icon:c};if(s.missing.has(i))return{status:"missing"};if(t&&!we(e)){const e=n[o]||(n[o]=Object.create(null));(e[r]||(e[r]=new Set)).add(i)}return{status:"loading"}}(e?[e]:Pe()).forEach((e=>{const n="function"===typeof e.node?e.node():e.node;if(!n||!n.querySelectorAll)return;let r=!1,s=!1;function c(t,n,o){if(s||(s=!0,De(e)),"SVG"!==t.tagName.toUpperCase()){const e=n.mode,r="mask"===e||"bg"!==e&&("style"===e?-1!==o.body.indexOf("currentColor"):null);if("boolean"===typeof r)return void function(e,t,n,o){const r=t.customisations,i=M(n,r),s=i.attributes,c=e[Ie],a=We(i.body,{...s,width:n.width+"",height:n.height+""}),l=et(e,Ye(t.icon),new Set(c&&c.addedClasses)),u={"--svg":'url("'+(f=a,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(f)+'")'),width:at(s.width),height:at(s.height),...ot,...o?rt:it};var f;r.inline&&(u["vertical-align"]="-0.125em");const d=tt(e,u,c&&c.addedStyles),p={...t,status:"loaded",addedClasses:l,addedStyles:d};e[Ie]=p}(t,n,{...i,...o},r)}nt(t,n,o)}(function(e){const t=[];return e.querySelectorAll(Je).forEach((e=>{const n=e[Ie]||"svg"!==e.tagName.toLowerCase()?Ge(e):null;n&&t.push({node:e,props:n})})),t})(n).forEach((e=>{let{node:t,props:n}=e;const i=t[Ie];if(!i){const{status:e,icon:i}=o(n.icon,!0);return i?void c(t,n,i):(r=r||"loading"===e,void(t[Ie]={...n,status:e}))}let s;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in Ce)if(n[r]!==o[r])return!0;return!1}(i,n)){if(s=o(n.icon,i.name!==n.name),!s.icon)return r=r||"loading"===s.status,void Object.assign(i,{...n,status:s.status})}else{if("loading"!==i.status)return;if(s=o(n.icon,!1),!s.icon)return void(i.status=s.status)}c(t,n,s.icon)})),e.temporary&&!r?He(n):t&&r?$e(n,!0):s&&e.observer&&qe(e)}));for(const r in n){const e=n[r];for(const t in e){const n=e[t];Se(Array.from(n).map((e=>({provider:r,prefix:t,name:e}))),ut)}}}function dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=x(e);if(!o)return null;const r=f(e),i=je(Ce,t||{}),s=nt(document.createElement("span"),{name:e,icon:r,customisations:i},o);return n?s.outerHTML:s}if("undefined"!==typeof document&&"undefined"!==typeof window){!function(){if(document.documentElement)return Te(document.documentElement);Oe.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"===typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!S(e))&&console.error(n)}catch(t){console.error(n)}}))}setTimeout((()=>{Be(ft),ft()}))}if(ee("",le),"undefined"!==typeof document&&"undefined"!==typeof window){K();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"===typeof t&&null!==t)for(const e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!==typeof o||!o||void 0===o.resources)continue;se(e,o)||console.error(n)}catch(ht){console.error(n)}}}}const pt={_api:{getAPIConfig:ce,setAPIModule:ee,sendAPIQuery:be,setFetch:function(e){ae=e},getFetch:function(){return ae},listAPIProviders:function(){return Object.keys(oe)}},addAPIProvider:se,loadIcons:Se,loadIcon:e=>new Promise(((t,n)=>{const o="string"===typeof e?f(e,!0):e;o?Se([o||e],(r=>{if(r.length&&o){const e=x(o);if(e)return void t({...i,...e})}n(e)})):n(e)})),iconExists:function(e){return!!x(e)},getIcon:function(e){const t=x(e);return t?{...i,...t}:null},listIcons:function(e,t){let n=[];return("string"===typeof e?[e]:Object.keys(m)).forEach((e=>{("string"===typeof e&&"string"===typeof t?[t]:Object.keys(m[e]||{})).forEach((t=>{const o=b(e,t);n=n.concat(Object.keys(o.icons).map((n=>(""!==e?"@"+e+":":"")+t+":"+n)))}))})),n},addIcon:w,addCollection:S,replaceIDs:L,calculateSize:I,buildIcon:M,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return dt(e,t,!1)},renderHTML:function(e,t){return dt(e,t,!0)},renderIcon:function(e,t){const n=x(e);return n?M(n,je(Ce,t||{})):null},scan:function(e){e?function(e){const t=Me(e);t?ft(t):ft({node:e,temporary:!0},!0)}(e):ft()},observe:$e,stopObserving:He,pauseObserver:function(e){if(e){const t=Me(e);t&&De(t)}else De()},resumeObserver:function(e){if(e){const t=Me(e);t&&qe(t)}else qe()},enableCache:function(e,t){X(e,!1!==t)},disableCache:function(e){X(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=pt)}catch(gt){}}}]);
|
|
1
|
+
/*! For license information please see 5706.f5e6f131.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5706],{39434:(e,t,n)=>{n.d(t,{Z:()=>T});var o=n(7896),r=n(29218),i=n(5057),s=(n(97408),n(9978)),c=n(15109),a=n(82261),l=n(62773),u=n(42908),f=n(11750),d=n(96295),p=n(57471),h=n(96266);const g=(0,p.Z)((0,h.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var m=n(66230);const b=["slots","slotProps"],y=(0,l.ZP)(m.Z)((e=>{let{theme:t}=e;return(0,o.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,o.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,o.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,d._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,d._4)(t.palette.grey[600],.12)})})})),v=(0,l.ZP)(g)({width:24,height:16});const x=function(e){const{slots:t={},slotProps:n={}}=e,i=(0,r.Z)(e,b),s=e;return(0,h.jsx)("li",{children:(0,h.jsx)(y,(0,o.Z)({focusRipple:!0},i,{ownerState:s,children:(0,h.jsx)(v,(0,o.Z)({as:t.CollapsedIcon,ownerState:s},n.collapsedIcon))}))})};var w=n(46849),S=n(96036);function j(e){return(0,S.ZP)("MuiBreadcrumbs",e)}const C=(0,w.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),k=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],E=(0,l.ZP)(f.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{["& .".concat(C.li)]:t.li},t.root]})({}),I=(0,l.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),O=(0,l.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function M(e,t,n,o){return e.reduce(((r,i,s)=>(s<e.length-1?r=r.concat(i,(0,h.jsx)(O,{"aria-hidden":!0,className:t,ownerState:o,children:n},"separator-".concat(s))):r.push(i),r)),[])}const T=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiBreadcrumbs"}),{children:l,className:f,component:d="nav",slots:p={},slotProps:g={},expandText:m="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:y=1,maxItems:v=8,separator:w="/"}=n,S=(0,r.Z)(n,k),[C,O]=i.useState(!1),T=(0,o.Z)({},n,{component:d,expanded:C,expandText:m,itemsAfterCollapse:b,itemsBeforeCollapse:y,maxItems:v,separator:w}),P=(e=>{const{classes:t}=e;return(0,a.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},j,t)})(T),A=(0,c.y)({elementType:p.CollapsedIcon,externalSlotProps:g.collapsedIcon,ownerState:T}),L=i.useRef(null),F=i.Children.toArray(l).filter((e=>i.isValidElement(e))).map(((e,t)=>(0,h.jsx)("li",{className:P.li,children:e},"child-".concat(t))));return(0,h.jsx)(E,(0,o.Z)({ref:t,component:d,color:"text.secondary",className:(0,s.Z)(P.root,f),ownerState:T},S,{children:(0,h.jsx)(I,{className:P.ol,ref:L,ownerState:T,children:M(C||v&&F.length<=v?F:(e=>y+b>=e.length?e:[...e.slice(0,y),(0,h.jsx)(x,{"aria-label":m,slots:{CollapsedIcon:p.CollapsedIcon},slotProps:{collapsedIcon:A},onClick:()=>{O(!0);const e=L.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-b,e.length)])(F),P.separator,w,T)})}))}))},5892:(e,t,n)=>{const o=Object.freeze({left:0,top:0,width:16,height:16}),r=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),i=Object.freeze({...o,...r}),s=Object.freeze({...i,body:"",hidden:!1});function c(e,t){const n=function(e,t){const n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in s)o in r?o in e&&!(o in n)&&(n[o]=r[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function a(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function s(e){i=c(o[e]||r[e],i)}return s(t),n.forEach(s),c(e,i)}function l(e,t){const n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,a(e,r,i)),n.push(r))}return n}const u=/^[a-z0-9]+(-[a-z0-9]+)*$/,f=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!d(i)?null:i}const i=r[0],s=i.split("-");if(s.length>1){const e={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!d(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!d(e,n)?null:e}return null},d=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(u)||!(t&&""===e.prefix||e.prefix.match(u))||!e.name.match(u)),p={provider:"",aliases:{},not_found:{},...o};function h(e,t){for(const n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function g(e){if("object"!==typeof e||null===e)return null;const t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!h(e,p))return null;const n=t.icons;for(const r in n){const e=n[r];if(!r.match(u)||"string"!==typeof e.body||!h(e,s))return null}const o=t.aliases||Object.create(null);for(const r in o){const e=o[r],t=e.parent;if(!r.match(u)||"string"!==typeof t||!n[t]&&!o[t]||!h(e,s))return null}return t}const m=Object.create(null);function b(e,t){const n=m[e]||(m[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function y(e,t){return g(t)?l(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let v=!1;function x(e){const t="string"===typeof e?f(e,!0,v):e;if(t){const e=b(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function w(e,t){const n=f(e,!0,v);if(!n)return!1;return function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]={...n},!0}catch(o){}return!1}(b(n.provider,n.prefix),n.name,t)}function S(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),v&&!t&&!e.prefix){let t=!1;return g(e)&&(e.prefix="",l(e,((e,n)=>{n&&w(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!d({provider:t,prefix:n,name:"a"}))return!1;return!!y(b(t,n),e)}const j=Object.freeze({width:null,height:null}),C=Object.freeze({...j,...r}),k=/(-?[0-9.]*[0-9]+[0-9.]*)/g,E=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function I(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;const o=e.split(k);if(null===o||!o.length)return e;const r=[];let i=o.shift(),s=E.test(i);for(;;){if(s){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");s=!s}}const O=e=>"unset"===e||"undefined"===e||"none"===e;function M(e,t){const n={...i,...e},o={...C,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let i,c=e.rotate;switch(n?o?c+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4,c){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}c%2===1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s='<g transform="'+t.join(" ")+'">'+s+"</g>")}));const c=o.width,a=o.height,l=r.width,u=r.height;let f,d;null===c?(d=null===a?"1em":"auto"===a?u:a,f=I(d,l/u)):(f="auto"===c?l:c,d=null===a?I(f,u/l):"auto"===a?u:a);const p={},h=(e,t)=>{O(t)||(p[e]=t.toString())};return h("width",f),h("height",d),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:s}}const T=/\sid="(\S+)"/g,P="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let A=0;function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;const n=[];let o;for(;o=T.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"===typeof t?t(n):t+(A++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const F={local:!0,session:!0},Z={local:new Set,session:new Set};let N=!1;const z="iconify2",R="iconify",_=R+"-count",B=R+"-version",D=36e5,q=168;function $(e,t){try{return e.getItem(t)}catch(n){}}function H(e,t,n){try{return e.setItem(t,n),!0}catch(o){}}function U(e,t){try{e.removeItem(t)}catch(n){}}function V(e,t){return H(e,_,t.toString())}function Q(e){return parseInt($(e,_))||0}let G="undefined"===typeof window?{}:window;function J(e){const t=e+"Storage";try{if(G&&G[t]&&"number"===typeof G[t].length)return G[t]}catch(n){}F[e]=!1}function W(e,t){const n=J(e);if(!n)return;const o=$(n,B);if(o!==z){if(o){const e=Q(n);for(let t=0;t<e;t++)U(n,R+t.toString())}return H(n,B,z),void V(n,0)}const r=Math.floor(Date.now()/D)-q,i=e=>{const o=R+e.toString(),i=$(n,o);if("string"===typeof i){try{const n=JSON.parse(i);if("object"===typeof n&&"number"===typeof n.cached&&n.cached>r&&"string"===typeof n.provider&&"object"===typeof n.data&&"string"===typeof n.data.prefix&&t(n,e))return!0}catch(s){}U(n,o)}};let s=Q(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,V(n,s)):Z[e].add(c))}function K(){if(!N){N=!0;for(const e in F)W(e,(e=>{const t=e.data,n=b(e.provider,t.prefix);if(!y(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function X(e,t){switch(e){case"local":case"session":F[e]=t;break;case"all":for(const e in F)F[e]=t}}const Y=Object.create(null);function ee(e,t){Y[e]=t}function te(e){return Y[e]||Y[""]}function ne(e){let t;if("string"===typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const oe=Object.create(null),re=["https://api.simplesvg.com","https://api.unisvg.com"],ie=[];for(;re.length>0;)1===re.length||Math.random()>.5?ie.push(re.shift()):ie.push(re.pop());function se(e,t){const n=ne(t);return null!==n&&(oe[e]=n,!0)}function ce(e){return oe[e]}oe[""]=ne({resources:["https://api.iconify.design"].concat(ie)});let ae=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(t){}})();const le={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ce(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach(((n,a)=>{c+=n.length+1,c>=r&&a>0&&(o.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=n.length),s.icons.push(n)})),o.push(s),o},send:(e,t,n)=>{if(!ae)return void n("abort",424);let o=function(e){if("string"===typeof e){const t=ce(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ae(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ue(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let fe=0;var de={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pe(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let t=e.resources.slice(0);for(s=[];t.length>1;){const e=Math.floor(Math.random()*t.length);s.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}s=s.concat(t)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a,l="pending",u=0,f=null,d=[],p=[];function h(){f&&(clearTimeout(f),f=null)}function g(){"pending"===l&&(l="aborted"),h(),d.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),d=[]}function m(e,t){t&&(p=[]),"function"===typeof e&&p.push(e)}function b(){l="failed",p.forEach((e=>{e(void 0,a)}))}function y(){d.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),d=[]}function v(){if("pending"!==l)return;h();const o=s.shift();if(void 0===o)return d.length?void(f=setTimeout((()=>{h(),"pending"===l&&(y(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(d=d.filter((e=>e!==t)),l){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return a=o,void b();if(r)return a=o,void(d.length||(s.length?v():b()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};d.push(r),u++,f=setTimeout(v,e.rotate),n(o,t,r.callback)}return"function"===typeof o&&p.push(o),setTimeout(v),function(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:m,abort:g}}}function he(e){const t={...de,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}const r={query:function(e,r,i){const s=pe(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(s),s},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o};return r}function ge(){}const me=Object.create(null);function be(e,t,n){let o,r;if("string"===typeof e){const t=te(e);if(!t)return n(void 0,424),ge;r=t.send;const i=function(e){if(!me[e]){const t=ce(e);if(!t)return;const n={config:t,redundancy:he(t)};me[e]=n}return me[e]}(e);i&&(o=i.redundancy)}else{const t=ne(e);if(t){o=he(t);const n=te(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),ge)}function ye(e,t){function n(n){let o;if(!F[n]||!(o=J(n)))return;const r=Z[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Q(o),!V(o,i+1))return;const s={cached:Math.floor(Date.now()/D),provider:e.provider,data:t};return H(o,R+i.toString(),JSON.stringify(s))}N||K(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in F)W(o,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function ve(){}function xe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,s=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const s=t.name;if(e.icons[s])i.loaded.push({provider:o,prefix:r,name:s});else{if(!e.missing.has(s))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:s})}return!1})),i.pending.length!==s&&(n||ue([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const we=e=>{const t=b(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))},Se=(e,t)=>{var n;const o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,s=e.name,c=n[r]||(n[r]=Object.create(null)),a=c[i]||(c[i]=b(r,i));let l;l=s in a.icons?t.loaded:""===i||a.missing.has(s)?t.missing:t.pending;const u={provider:r,prefix:i,name:s};l.push(u)})),t}(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return e.forEach((e=>{const r="string"===typeof e?f(e,t,n):e;r&&o.push(r)})),o}(e,!0,("boolean"===typeof n&&(v=n),v)));if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,ve)})),()=>{e=!1}}const r=Object.create(null),i=[];let s,c;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===c&&t===s)return;s=t,c=n,i.push(b(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=b(t,n),s=i.pendingIcons||(i.pendingIcons=new Set);s.has(o)||(s.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=te(t))&&r.prepare(t,n,o).forEach((n=>{be(t,n,(t=>{if("object"!==typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=y(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ye(e,t)}catch(o){console.error(o)}xe(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=fe++,r=ue.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):ve};function je(e,t){const n={...e};for(const o in t){const e=t[o],r=typeof e;o in j?(null===e||e&&("string"===r||"number"===r))&&(n[o]=e):r===typeof n[o]&&(n[o]="rotate"===o?e%4:e)}return n}const Ce={...C,inline:!1},ke="iconify",Ee="iconify-inline",Ie="iconifyData"+Date.now();let Oe=[];function Me(e){for(let t=0;t<Oe.length;t++){const n=Oe[t];if(("function"===typeof n.node?n.node():n.node)===e)return n}}function Te(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Me(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},Oe.push(n),n)}function Pe(){return Oe}let Ae=null;const Le={childList:!0,subtree:!0,attributes:!0};function Fe(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,Ae&&Ae(e)})))}function Ze(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[Ie])return void(n.paused||Fe(e))}}function Ne(e,t){e.observer.instance.observe(t,Le)}function ze(e){let t=e.observer;if(t&&t.instance)return;const n="function"===typeof e.node?e.node():e.node;n&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Ze.bind(null,e)),Ne(e,n),t.paused||Fe(e))}function Re(){Pe().forEach(ze)}function _e(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Be(e){const t=null!==Ae;Ae!==e&&(Ae=e,t&&Pe().forEach(_e)),t?Re():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Re)}function De(e){(e?[e]:Pe()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function qe(e){(e?[e]:Pe()).forEach((e=>{if(!e.observer)return void ze(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const n="function"===typeof e.node?e.node():e.node;if(!n)return;t.instance?Ne(e,n):ze(e)}}))}function $e(e){const t=Te(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return ze(t),t}function He(e){const t=Me(e);t&&(_e(t),function(e){Oe=Oe.filter((t=>e!==t&&e!==("function"===typeof t.node?t.node():t.node)))}(e))}const Ue=/[\s,]+/;const Ve=["width","height"],Qe=["inline","hFlip","vFlip"];function Ge(e){const t=e.getAttribute("data-icon"),n="string"===typeof t&&f(t,!0);if(!n)return null;const o={...Ce,inline:e.classList&&e.classList.contains(Ee)};Ve.forEach((t=>{const n=e.getAttribute("data-"+t);n&&(o[t]=n)}));const r=e.getAttribute("data-rotate");"string"===typeof r&&(o.rotate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1===0?o(r):0)}}return t}(r));const i=e.getAttribute("data-flip");"string"===typeof i&&function(e,t){t.split(Ue).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(o,i),Qe.forEach((t=>{const n="data-"+t,r=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(n),n);"boolean"===typeof r&&(o[t]=r)}));const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:s}}const Je="svg."+ke+", i."+ke+", span."+ke+", i."+Ee+", span."+Ee;function We(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Ke;function Xe(e){return void 0===Ke&&function(){try{Ke=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Ke=null}}(),Ke?Ke.createHTML(e):e}function Ye(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((n=>{e[n]&&t.add("iconify--"+e[n])})),t}function et(e,t,n,o){const r=e.classList;if(o){const e=o.classList;Array.from(e).forEach((e=>{r.add(e)}))}const i=[];return t.forEach((e=>{r.contains(e)?n.has(e)&&i.push(e):(r.add(e),i.push(e))})),n.forEach((e=>{t.has(e)||r.remove(e)})),i}function tt(e,t,n){const o=e.style;(n||[]).forEach((e=>{o.removeProperty(e)}));const r=[];for(const i in t)o.getPropertyValue(i)||(r.push(i),o.setProperty(i,t[i]));return r}function nt(e,t,n){let o;try{o=document.createElement("span")}catch(p){return e}const r=t.customisations,i=M(n,r),s=e[Ie],c=We(L(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=Xe(c);const a=o.childNodes[0],l=e.attributes;for(let h=0;h<l.length;h++){const e=l.item(h),t=e.name;"class"===t||a.hasAttribute(t)||a.setAttribute(t,e.value)}const u=et(a,Ye(t.icon),new Set(s&&s.addedClasses),e),f=tt(a,r.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),d={...t,status:"loaded",addedClasses:u,addedStyles:f};return a[Ie]=d,e.parentNode&&e.parentNode.replaceChild(a,e),a}const ot={display:"inline-block"},rt={"background-color":"currentColor"},it={"background-color":"transparent"},st={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ct={"-webkit-mask":rt,mask:rt,background:it};for(const mt in ct){const e=ct[mt];for(const t in st)e[mt+"-"+t]=st[t]}function at(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let lt=!1;function ut(){lt||(lt=!0,setTimeout((()=>{lt&&(lt=!1,ft())})))}function ft(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.create(null);function o(e,t){const{provider:o,prefix:r,name:i}=e,s=b(o,r),c=s.icons[i];if(c)return{status:"loaded",icon:c};if(s.missing.has(i))return{status:"missing"};if(t&&!we(e)){const e=n[o]||(n[o]=Object.create(null));(e[r]||(e[r]=new Set)).add(i)}return{status:"loading"}}(e?[e]:Pe()).forEach((e=>{const n="function"===typeof e.node?e.node():e.node;if(!n||!n.querySelectorAll)return;let r=!1,s=!1;function c(t,n,o){if(s||(s=!0,De(e)),"SVG"!==t.tagName.toUpperCase()){const e=n.mode,r="mask"===e||"bg"!==e&&("style"===e?-1!==o.body.indexOf("currentColor"):null);if("boolean"===typeof r)return void function(e,t,n,o){const r=t.customisations,i=M(n,r),s=i.attributes,c=e[Ie],a=We(i.body,{...s,width:n.width+"",height:n.height+""}),l=et(e,Ye(t.icon),new Set(c&&c.addedClasses)),u={"--svg":'url("'+(f=a,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(f)+'")'),width:at(s.width),height:at(s.height),...ot,...o?rt:it};var f;r.inline&&(u["vertical-align"]="-0.125em");const d=tt(e,u,c&&c.addedStyles),p={...t,status:"loaded",addedClasses:l,addedStyles:d};e[Ie]=p}(t,n,{...i,...o},r)}nt(t,n,o)}(function(e){const t=[];return e.querySelectorAll(Je).forEach((e=>{const n=e[Ie]||"svg"!==e.tagName.toLowerCase()?Ge(e):null;n&&t.push({node:e,props:n})})),t})(n).forEach((e=>{let{node:t,props:n}=e;const i=t[Ie];if(!i){const{status:e,icon:i}=o(n.icon,!0);return i?void c(t,n,i):(r=r||"loading"===e,void(t[Ie]={...n,status:e}))}let s;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in Ce)if(n[r]!==o[r])return!0;return!1}(i,n)){if(s=o(n.icon,i.name!==n.name),!s.icon)return r=r||"loading"===s.status,void Object.assign(i,{...n,status:s.status})}else{if("loading"!==i.status)return;if(s=o(n.icon,!1),!s.icon)return void(i.status=s.status)}c(t,n,s.icon)})),e.temporary&&!r?He(n):t&&r?$e(n,!0):s&&e.observer&&qe(e)}));for(const r in n){const e=n[r];for(const t in e){const n=e[t];Se(Array.from(n).map((e=>({provider:r,prefix:t,name:e}))),ut)}}}function dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=x(e);if(!o)return null;const r=f(e),i=je(Ce,t||{}),s=nt(document.createElement("span"),{name:e,icon:r,customisations:i},o);return n?s.outerHTML:s}if("undefined"!==typeof document&&"undefined"!==typeof window){!function(){if(document.documentElement)return Te(document.documentElement);Oe.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"===typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!S(e))&&console.error(n)}catch(t){console.error(n)}}))}setTimeout((()=>{Be(ft),ft()}))}if(ee("",le),"undefined"!==typeof document&&"undefined"!==typeof window){K();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"===typeof t&&null!==t)for(const e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!==typeof o||!o||void 0===o.resources)continue;se(e,o)||console.error(n)}catch(ht){console.error(n)}}}}const pt={_api:{getAPIConfig:ce,setAPIModule:ee,sendAPIQuery:be,setFetch:function(e){ae=e},getFetch:function(){return ae},listAPIProviders:function(){return Object.keys(oe)}},addAPIProvider:se,loadIcons:Se,loadIcon:e=>new Promise(((t,n)=>{const o="string"===typeof e?f(e,!0):e;o?Se([o||e],(r=>{if(r.length&&o){const e=x(o);if(e)return void t({...i,...e})}n(e)})):n(e)})),iconExists:function(e){return!!x(e)},getIcon:function(e){const t=x(e);return t?{...i,...t}:null},listIcons:function(e,t){let n=[];return("string"===typeof e?[e]:Object.keys(m)).forEach((e=>{("string"===typeof e&&"string"===typeof t?[t]:Object.keys(m[e]||{})).forEach((t=>{const o=b(e,t);n=n.concat(Object.keys(o.icons).map((n=>(""!==e?"@"+e+":":"")+t+":"+n)))}))})),n},addIcon:w,addCollection:S,replaceIDs:L,calculateSize:I,buildIcon:M,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return dt(e,t,!1)},renderHTML:function(e,t){return dt(e,t,!0)},renderIcon:function(e,t){const n=x(e);return n?M(n,je(Ce,t||{})):null},scan:function(e){e?function(e){const t=Me(e);t?ft(t):ft({node:e,temporary:!0},!0)}(e):ft()},observe:$e,stopObserving:He,pauseObserver:function(e){if(e){const t=Me(e);t&&De(t)}else De()},resumeObserver:function(e){if(e){const t=Me(e);t&&qe(t)}else qe()},enableCache:function(e,t){X(e,!1!==t)},disableCache:function(e){X(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=pt)}catch(gt){}}}]);
|