PageSourceSearch

https://developer.metamask.io/assets/index-BEU8GV2N.js

js metamask.io collected 2026-10-01 08:32:40 UTC 3,784 bytes, 2 lines download raw bytes

1import{N as f}from"./Icon.vue_vue_type_script_setup_true_lang-mnkpFxjS-72oUDmqW.js";import{x as k,R as _}from"./Tabs.vue_vue_type_script_setup_true_lang-hwbi8ZNw-CSlPPCE6.js";import{d as w,a0 as E,c as C,e as l,a as t,u as s,w as d,g as v,R as i,k as h,y as N,i as y,aq as S,b as R,z as O,o as g}from"./index-CIKdEAqG.js";import{_ as M}from"./CustomTooltip.vue_vue_type_script_setup_true_lang--G9_da-u.js";import{_ as I}from"./Dropdown.vue_vue_type_script_setup_true_lang-CogHJA66.js";import"./_plugin-vue_export-helper-CHgC5LLL-lGy7RumW.js";import"./floating-ui.dom-DdpXSCBY.js";import"./Badge.esm-BP1chgc2.js";import"./Button.esm-D074QYLu.js";const j={class:"inline-flex items-center"},B={class:"relative"},J={key:0,class:"w-2 h-2 bg-app-red-500 rounded-full absolute right-[4px] top-[-1px]"},P={class:"py-4"},W=w({__name:"SmartAccounts",props:{teamName:{},selectedTeamId:{},project:{},projectId:{},disabled:{type:Boolean}},setup(r){const c=r,T=O(),o=v(()=>{switch(T.name){case i.TEAM_PROJECT_SMART_ACCOUNTS_GENERAL:return"general";case i.TEAM_PROJECT_SMART_ACCOUNTS_CHAINS_NETWORKS:return"chains-networks";default:return"general"}}),n=v(()=>{if(!c.project.smart_accounts_enabled)return!1;try{return!!JSON.parse(c.project.smart_accounts_configuration||"{}").eipStandard}catch{return!1}}),m=N(),u=a=>{switch(a){case"general":m.push({name:i.TEAM_PROJECT_SMART_ACCOUNTS_GENERAL});break;case"chains-networks":if(!n.value)return;m.push({name:i.TEAM_PROJECT_SMART_ACCOUNTS_CHAINS_NETWORKS});break;default:throw new Error(`Invalid tab name: ${a}`)}},b=v(()=>[{name:"General",value:"general"},{name:"Chains & Networks",value:"chains-networks",disabled:!n.value}]),x=()=>b.value.find(a=>a.value===o.value)?.name;return E(n,a=>{!a&&o.value==="chains-networks"&&m.push({name:i.TEAM_PROJECT_SMART_ACCOUNTS_GENERAL})},{immediate:!0}),(a,e)=>{const A=h("router-view");return g(),C("div",null,[e[5]||(e[5]=l("h2",{class:"text-2xl font-bold text-app-gray-900 mb-1"},"Smart Accounts",-1)),t(s(I),{"model-value":o.value,"button-props":{variant:"secondary",size:"xs",class:"!text-app-gray-900 !border-app-gray-900"},label:x(),items:b.value,class:"block sm:hidden mt-4",classes:{menuContainer:"!w-fit"},onOnItemClick:e[0]||(e[0]=p=>u(p.value))},null,8,["model-value","label","items"]),t(s(k),{class:"border-b border-app-gray-200 hidden sm:block mt-4"},{default:d(()=>[t(s(_),{class:"mr-9",active:o.value==="general",classes:{active:"text-app-primary-600 py-2",underlineActive:"!w-full",inactive:"px-0 bg-transparent text-app-gray-500 dark:text-app-gray-400"},onOnClick:e[1]||(e[1]=p=>u("general"))},{default:d(()=>[t(s(f),{name:"database-solid-icon",class:"mr-2"}),e[3]||(e[3]=y(" General ",-1))]),_:1},8,["active"]),t(s(_),{class:"mr-9",active:o.value==="chains-networks",classes:{active:"text-app-primary-600 py-2",underlineActive:"!w-full",inactive:n.value?"px-0 bg-transparent text-app-gray-500 dark:text-app-gray-400":"px-0 bg-transparent text-app-gray-300 dark:text-app-gray-600 cursor-not-allowed"},onOnClick:e[2]||(e[2]=p=>n.value&&u("chains-networks"))},{default:d(()=>[t(s(M),{hide:n.value,placement:"top",theme:"dark",classes:{tooltip:"!text-center !max-w-72 !py-2"},text:"Save Changes to unlock this tab."},{default:d(()=>[l("span",j,[l("div",B,[t(s(f),{name:"link-icon",class:"mr-2 mt-1"}),n.value&&s(S).smartAccountsEIP4337EnabledButBundlerNotConfiguredForAll(c.selectedTeamId,c.projectId)?(g(),C("div",J)):R("",!0)]),e[4]||(e[4]=l("span",{class:"mt-1"},"Chains & Networks",-1))])]),_:1},8,["hide"])]),_:1},8,["active","classes"])]),_:1}),l("div",P,[t(A,{project:r.project,"team-name":r.teamName,disabled:r.disabled,"selected-team-id":r.selectedTeamId},null,8,["project","team-name","disabled","selected-team-id"])])])}}});export{W as default};
2//# sourceMappingURL=index-BEU8GV2N.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.