PageSourceSearch

https://helixapp.com/_nuxt/granter-DhKh7eB0.js

js helixapp.com collected 2026-09-28 13:35:54 UTC 4,091 bytes, 2 lines download raw bytes

1import{aQ as T,p as k,q as P,r as C,cJ as Z,ab as B,aa as j,t as E,l as I}from"./Chl_9IWi.js";import{aG as u,aA as n,aV as e,a1 as z,M as N,aJ as a,a2 as o,w as O,ai as A,aj as b,aS as F,az as c,aB as m,aI as v,aK as L,aT as G,ar as f,aL as R}from"./injective-sdk-BB05yp4z.js";import{_ as U}from"./EmptyList-B3l9mu25.js";import{aq as V}from"./protobuf-Dn4ZHMx_.js";import{_ as D}from"./Collapse-DDRWbg5N.js";import{a as H}from"./formatter-DkVfX2z8.js";import"./wallet-wallet-connect-Cp5viB7e.js";import"./abitype-BPD9VTcr.js";import"./noble-crypto-98ScpeiG.js";import"./eventemitter-B4232wGv.js";import"./injective-utils-CkOpNQnv.js";import"./injective-wallet-ClU73r-6.js";import"./ethers-CoO29uId.js";import"./bn-elliptic-D8j0A-vp.js";import"./injective-proto-D1MpQrBy.js";import"./buffer-polyfill-D_Xc0ElF.js";import"./wallet-turnkey-CoDH5EF6.js";import"./wallet-trezor-B4L32JaD.js";import"./wallet-ledger-w5cnqxVK.js";const M={},q={class:"table-label p-2 flex"};function J(s,t){return n(),u("div",q,[...t[0]||(t[0]=[e("div",{class:"flex-1 p-2"},"Granter Address",-1),e("div",{class:"flex-1 p-2"},"Granted Functions",-1),e("div",{class:"flex-[2] p-2"},"Actions",-1),e("div",null,null,-1)])])}const W=Object.assign(T(M,[["render",J]]),{__name:"PartialsPortfolioSettingsAuthzGranterTableHeader"}),K={class:"flex p-2 text-xs hover:bg-brand-875"},Q={class:"flex-[2] p-2 min-w-0 truncate font-semibold"},X=z({__name:"Grant",props:{grant:{}},setup(s){const t=s,p=N(()=>t.grant.authorization&&t.grant.authorizationType.includes(V.GenericAuthorization)?t.grant.authorization.msg.split(".").reverse()[0]:"");return(h,r)=>(n(),u("div",K,[r[0]||(r[0]=e("div",{class:"flex-[2] px-4"},null,-1)),e("div",Q," • "+a(o(p)),1)]))}}),Y=Object.assign(X,{__name:"PartialsPortfolioSettingsAuthzGranterTableRowGrant"}),tt={class:"flex p-2 text-xs hover:bg-brand-875"},et={class:"flex-1 flex items-center p-2"},nt={class:"font-mono"},ot={class:"xs:flex-1 below-xs:w-10 flex items-center p-2"},st={class:"flex-1 flex items-center p-2 justify-end"},at=z({__name:"Index",props:{granter:{},grants:{}},setup(s){const t=k(),p=P(),{t:h}=C(),r=s,i=O(!1);function x(){i.value=!i.value}function _(){t.connectAuthZ(r.granter),p.success({title:h("toast.authz.connectedAs"),description:t.authZOrInjectiveAddress})}return(l,lt)=>{const $=j,g=E,y=Y,S=D;return n(),u(A,null,[e("div",tt,[e("div",et,[e("span",nt,a(o(H)(s.granter,o(Z))),1)]),e("div",ot,a(s.grants.length),1),e("div",{class:"flex-1 flex items-center p-2 space-x-2 hover:text-primary-500 rounded-md cursor-pointer select-none",onClick:x},[e("span",{class:F(["transition-transform",{"rotate-180":o(i)}])},[b($,{name:o(B).ChevronDown,class:"h-3 w-3 min-w-3"},null,8,["name"])],2),e("span",null,a(l.$t("portfolio.authZ.viewGrantedFunctions")),1)]),e("div",st,[o(t).authZOrInjectiveAddress===s.granter?(n(),c(g,{key:0,variant:"danger",size:"sm",onClick:o(t).resetAuthZ},{default:m(()=>[v(a(l.$t("navigation.disconnect")),1)]),_:1},8,["onClick"])):o(t).isAutoSignEnabled?(n(),c(g,{key:1,disabled:"",size:"sm"},{default:m(()=>[v(a(l.$t("portfolio.authZ.notAvailableinAutoSignMode")),1)]),_:1})):(n(),c(g,{key:2,variant:"success",size:"sm",class:"text-nowrap px-2",onClick:L(_,["stop"])},{default:m(()=>[v(a(l.$t("portfolio.authZ.connectAs")),1)]),_:1}))])]),b(S,f({"wrapper-classes":"divide-y bg-black/30"},{isOpen:o(i)}),{default:m(()=>[(n(!0),u(A,null,G(s.grants,(d,w)=>(n(),c(y,f({ref_for:!0},{grant:d},{key:`${w}-${d.authorizationType}-${d.grantee}-${d.granter}`}),null,16))),128))]),_:1},16)],64)}}}),rt=Object.assign(at,{__name:"PartialsPortfolioSettingsAuthzGranterTableRow"}),it={class:"divide-y border-t overflow-x-auto"},Tt=z({__name:"granter",setup(s){const t=I();return(p,h)=>{const r=W,i=U,x=rt;return n(),u("div",null,[b(r),e("div",it,[o(t).granteeGrantsByAddress.length===0?(n(),c(i,R(f({key:0},{message:p.$t("portfolio.authZ.noGrants")})),null,16)):(n(!0),u(A,{key:1},G(o(t).granteeGrantsByAddress,([_,l])=>(n(),c(x,f({key:_},{ref_for:!0},{granter:_,grants:l}),null,16))),128))])])}}});export{Tt as default};
2//# sourceMappingURL=granter-DhKh7eB0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.