1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[642],{556:function(e,t,n){n.d(t,{E:function(){return y}});var a=n(7437),r=n(2265),o=n(6989),s=n(9381),i="Progress",[l,c]=(0,o.b)(i),[d,u]=l(i),w=r.forwardRef((e,t)=>{var n,r;let{__scopeProgress:o,value:i=null,max:l,getValueLabel:c=g,...u}=e;(l||0===l)&&!b(l)&&console.error((n=`${l}`,`Invalid prop \`max\` of value \`${n}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let w=b(l)?l:100;null===i||v(i,w)||console.error((r=`${i}`,`Invalid prop \`value\` of value \`${r}\` supplied to \`Progress\`. The \`value\` prop must be: 2 - a positive number 3 - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) 4 - \`null\` or \`undefined\` if the progress is indeterminate. 5 6Defaulting to \`null\`.`));let f=v(i,w)?i:null,h=p(f)?c(f,w):void 0;return(0,a.jsx)(d,{scope:o,value:f,max:w,children:(0,a.jsx)(s.WV.div,{"aria-valuemax":w,"aria-valuemin":0,"aria-valuenow":p(f)?f:void 0,"aria-valuetext":h,role:"progressbar","data-state":m(f,w),"data-value":f??void 0,"data-max":w,...u,ref:t})})});w.displayName=i;var f="ProgressIndicator",h=r.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,o=u(f,n);return(0,a.jsx)(s.WV.div,{"data-state":m(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});function g(e,t){return`${Math.round(e/t*100)}%`}function m(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function p(e){return"number"==typeof e}function b(e){return p(e)&&!isNaN(e)&&e>0}function v(e,t){return p(e)&&!isNaN(e)&&e<=t&&e>=0}h.displayName=f;var x=n(1657);let y=r.forwardRef((e,t)=>{let{className:n,value:r,...o}=e;return(0,a.jsx)(w,{ref:t,className:(0,x.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",n),...o,children:(0,a.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});y.displayName=w.displayName},9160:function(e,t,n){n.d(t,{RM:function(){return l},SC:function(){return c},iA:function(){return s},pj:function(){return u},ss:function(){return d},xD:function(){return i}});var a=n(7437),r=n(2265),o=n(1657);let s=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",n),...r})})});s.displayName="Table";let i=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",n),...r})});i.displayName="TableHeader";let l=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",n),...r})});l.displayName="TableBody",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n),...r})}).displayName="TableFooter";let c=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...r})});c.displayName="TableRow";let d=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n),...r})});d.displayName="TableHead";let u=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...r})});u.displayName="TableCell",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",n),...r})}).displayName="TableCaption"},320:function(e,t,n){n.d(t,{T:function(){return s}});var a=n(4216),r=n(3043);class o{async checkWalletConnection(){try{window.iota&&window.iota.isConnected&&(this.walletConnected=await window.iota.isConnected(),this.walletConnected&&(this.walletInstance=await window.iota.getWallet(),await this.updateCurrentAddress()))}catch(e){console.error("Error checking wallet connection:",e),this.walletConnected=!1}}async updateCurrentAddress(){try{if(!this.walletInstance)return null;let e=await this.walletInstance.address.secret.generateEd25519Addresses({accountIndex:0,range:{start:0,end:1}});this.currentAddress=e[0]}catch(e){console.error("Error getting address:",e),this.currentAddress=null}}static getInstance(){return o.instance||(o.instance=new o),o.instance}async connect(){try{if(!window.iota)throw Error("IOTA wallet extension not found. Please install the extension.");
6if(await window.iota.requestPermissions({permissions:["address:ed25519","address:alias"]}),this.walletInstance=await window.iota.getWallet(),this.walletConnected=!0,await this.updateCurrentAddress(),!this.currentAddress)throw Error("Failed to get wallet address");return this.currentAddress}catch(e){throw console.error("Error connecting to IOTA wallet:",e),this.walletConnected=!1,this.currentAddress=null,e}}async disconnect(){if(window.iota&&window.iota.disconnect)try{await window.iota.disconnect()}catch(e){console.error("Error disconnecting from wallet extension:",e)}this.walletInstance=null,this.walletConnected=!1,this.currentAddress=null}isConnected(){if(window.iota&&window.iota.isConnected)try{let e=window.iota.isConnected();return this.walletConnected=e,e}catch(e){console.error("Error checking wallet connection state:",e)}return this.walletConnected&&null!==this.walletInstance}getAccount(){return this.currentAddress}async getBalance(){if(!this.walletConnected||!this.walletInstance)throw Error("Wallet not connected");try{return(await this.walletInstance.getBalance()).baseCoin.available}catch(e){throw console.error("Error getting wallet balance:",e),e}}async signTransaction(e){if(!this.walletConnected||!this.walletInstance)throw Error("Wallet not connected");try{return await window.iota.signTransaction({transaction:e,addressType:"ed25519"})}catch(e){throw console.error("Error signing transaction:",e),e}}async sendTransaction(e,t){if(!this.walletConnected||!this.walletInstance)throw Error("Wallet not connected");try{let n={type:"BasicOutput",amount:t.toString(),recipientAddress:e},a=await this.signTransaction(n);return(await window.iota.sendTransaction({signedTransaction:a})).transactionId}catch(e){throw console.error("Error sending transaction:",e),e}}async executeTransaction(e){if(!this.walletConnected||!this.walletInstance)throw Error("Wallet not connected");try{let t=await this.signTransaction(e);return await r.fv.executeTransaction(e,t)}catch(e){throw console.error("Error executing transaction:",e),e}}async executeContract(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:BigInt(0);if(!this.walletConnected||!this.walletInstance)throw Error("Wallet not connected");try{let r=new a.Y;if(console.log("Executing contract call: ".concat(e," with args:"),t),n>BigInt(0)){let[a]=r.splitCoins(r.gas,[r.pure(n)]);r.moveCall({target:"".concat(this.IOTAFLOW_PACKAGE_ID,"::").concat(e),arguments:t.map(e=>r.pure(e))})}else r.moveCall({target:"".concat(this.IOTAFLOW_PACKAGE_ID,"::").concat(e),arguments:t.map(e=>r.pure(e))});return await this.executeTransaction(r)}catch(e){throw console.error("Error executing contract:",e),e}}getPackageId(){return this.IOTAFLOW_PACKAGE_ID}constructor(){this.walletInstance=null,this.walletConnected=!1,this.currentAddress=null,this.IOTAFLOW_PACKAGE_ID=r.ON,this.checkWalletConnection()}}let s={connect:async()=>await o.getInstance().connect(),disconnect:async()=>await o.getInstance().disconnect(),isConnected:()=>o.getInstance().isConnected(),getAccount:()=>o.getInstance().getAccount(),getBalance:async()=>await o.getInstance().getBalance(),signTransaction:async e=>await o.getInstance().signTransaction(e),sendTransaction:async(e,t)=>await o.getInstance().sendTransaction(e,t),executeContract:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:BigInt(0);return await o.getInstance().executeContract(e,t,n)},executeTransaction:async e=>await o.getInstance().executeTransaction(e),getPackageId:()=>o.getInstance().getPackageId()}},4522:function(e,t,n){n.r(t),n.d(t,{Content:function(){return P},List:function(){return R},Root:function(){return j},Tabs:function(){return v},TabsContent:function(){return N},TabsList:function(){return y},TabsTrigger:function(){return I},Trigger:function(){return W},createTabsScope:function(){return g}});var a=n(2265),r=n(5744),o=n(6989),s=n(4356),i=n(5606),l=n(9381),c=n(5400),d=n(3763),u=n(966),w=n(7437),f="Tabs",[h,g]=(0,o.b)(f,[s.Pc]),m=(0,s.Pc)(),[p,b]=h(f),v=a.forwardRef((e,t)=>{let{__scopeTabs:n,value:a,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:h="automatic",...g}=e,m=(0,c.gm)(i),[b,v]=(0,d.T)({prop:a,onChange:r,defaultProp:o??"",caller:f});return(0,w.jsx)(p,{scope:n,baseId:(0,u.M)(),value:b,onValueChange:v,orientation:s,dir:m,activationMode:h,children:(0,w.jsx)(l.WV.div,{dir:m,"data-orientation":s,...g,ref:t})})});v.displayName=f;var x="TabsList",y=a.forwardRef((e,t)=>
6{let{__scopeTabs:n,loop:a=!0,...r}=e,o=b(x,n),i=m(n);return(0,w.jsx)(s.fC,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:a,children:(0,w.jsx)(l.WV.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:t})})});y.displayName=x;var C="TabsTrigger",I=a.forwardRef((e,t)=>{let{__scopeTabs:n,value:a,disabled:o=!1,...i}=e,c=b(C,n),d=m(n),u=A(c.baseId,a),f=E(c.baseId,a),h=a===c.value;return(0,w.jsx)(s.ck,{asChild:!0,...d,focusable:!o,active:h,children:(0,w.jsx)(l.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:(0,r.M)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(a)}),onKeyDown:(0,r.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(a)}),onFocus:(0,r.M)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||o||!e||c.onValueChange(a)})})})});I.displayName=C;var T="TabsContent",N=a.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:o,children:s,...c}=e,d=b(T,n),u=A(d.baseId,r),f=E(d.baseId,r),h=r===d.value,g=a.useRef(h);return a.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,w.jsx)(i.z,{present:o||h,children:({present:n})=>(0,w.jsx)(l.WV.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:n&&s})})});function A(e,t){return`${e}-trigger-${t}`}function E(e,t){return`${e}-content-${t}`}N.displayName=T;var j=v,R=y,W=I,P=N}}]);
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.