PageSourceSearch

https://kazenorei.jp/_nuxt/CLgkvsSD.js

js kazenorei.jp collected 2026-10-05 05:56:42 UTC 6,826 bytes, 1 lines download raw bytes

1import{d as Ie,u as ge,M as Ae,W as p,X as f,b as Ce,cg as i,c5 as n,ci as Oe,cc as k,c as _,f as o,j as w,w as R,k as a,l as Te,F as S,t as l,h as g,O as D,q as u,v as F,A as be,B as ke,C as Se,o as m,cb as De,D as Fe,cd as Le,ce as Me,cf as xe,a8 as Ue,x as He,ca as Pe,z as We}from"./BCuc9oqZ.js";import{_ as Ye}from"./BhsRhD10.js";import{_ as Be}from"./aeMV6WwT.js";import{b as Ke}from"./Dz45f9fs.js";import{a as je}from"./BK7z50OU.js";import{i as K,a as A}from"./BI2O4aPy.js";import{a as Ve,s as $e}from"./SdzksR1P.js";import{a as qe}from"./DM_4ocz-.js";import{m as ze}from"./CeaSk-0l.js";import{w as Qe}from"./DmEuRW4H.js";import{i as Ge}from"./BKLApHKQ.js";import{D as Je,u as Xe}from"./Bc0RFUG8.js";import"./BOdSKCmX.js";import"./aiTewOxn.js";import"./D8zZdINP.js";import"./9G63BEnV.js";import"./BVaol_HT.js";import"./CxIZtCgj.js";import"./BMMOTj7U.js";import"./G9hBZVD5.js";const Ze={class:"wrap"},et={class:"profile-section"},tt={class:"profile-content"},at={class:"profile-image"},ot={class:"profile-name"},st={class:"profile-meta"},nt={key:0},it={key:1},lt={class:"viewer"},rt={class:"profile-description"},ct={key:1},ut=Ie({__name:"index",setup(mt){ge({title:"ウォレット相続"});const L=Ae(),j=p(je)??f("aa is not provided"),{initializeSmartAccount:V,sendUserOperation:M,waitForUserOperation:x,smartAccountAddress:U}=j,$=p(qe)??f("asyncAction is not provided"),{executeWithLoading:C,LOADING_TYPE:q}=$,z=p(ze)??f("master is not provided"),{state:Q}=z,G=p(Qe)??f("walletAuth is not provided"),{state:H,setState:J,getWalletsNfts:X,memoryNfts:Z,spaceNfts:ee}=G,te=p(Ge)??f("inheritance is not provided"),{postInheritancesPre:ae,postInheritancesComplete:oe}=te,se=p(Pe)??f("family is not provided"),{state:ne,setState:P,currentFamilyId:W,currentUserId:ie,getFamilyMemberDetail:le,getSelfFamilyList:re}=se,O=u(""),T=u(""),d=u(!1),Y=u(!1),E=u(!1),h=u(!1),v=u(null),y=Ve(L.query.id||"0",Je),r=$e(L.query.nft_type),ce=F(()=>{const{roles:e}=Xe(),t=e.value.find(c=>c.value===String(s.value?.role));return t?t.name:""}),s=F(()=>ne.value.familyMemberDetail?.user_info),ue=F(()=>r===A.MEMORY?"思い出":"区画");Ce(()=>{C(async()=>{if(!K(r))throw new i(n.ERROR.INHERITANCE.INVALID_NFT_TYPE);const e=H.value.walletsDetail?.id;if(e==null)throw new i(n.ERROR.INHERITANCE.NO_WALLET);if(await me(e),(H.value.walletsNfts?.nfts?.length??0)===0)throw new i(n.ERROR.INHERITANCE.NO_NFT);if(r===A.MEMORY&&Z.value.length===0)throw new i(n.ERROR.INHERITANCE.NO_MEMORY_NFT);if(r===A.SPACE&&ee.value.length===0)throw new i(n.ERROR.INHERITANCE.NO_SPACE_NFT);if(await Promise.all([de()]),!W.value||!y||ie.value===y)throw new i(n.ERROR.INHERITANCE.MEMBER_NOT_FOUND);if(await pe({family_id:String(W.value),user_id:y}),!s.value)throw new i(n.ERROR.INHERITANCE.MEMBER_NOT_FOUND);if(s.value.role===Oe.VIEWER)throw new i(n.ERROR.INHERITANCE.VIEWER_NOT_ALLOWED)},_e,q.INIT)});const me=async e=>{const t=await X(e,{limit:1e4,offset:0});J({walletsNfts:t})},de=async()=>{const e=await re();P({selfFamilyList:e})},pe=async e=>{const t=await le(e);P({familyMemberDetail:t})},fe=()=>{const e=window.location.pathname+window.location.search+window.location.hash,t=Me("web3auth_relogin_redirect",{maxAge:180,path:"/",sameSite:"lax"});t.value=e},_e=e=>{O.value=k(e,n.ERROR.SYSTEM_ERROR)},we=e=>{T.value=k(e,n.ERROR.BLOCK_CHAIN_ERROR),d.value=!0},Re=()=>{if(Y.value){window.location.reload();return}d.value=!1},Ee=async()=>{E.value=!1,await C(async()=>{if(!await De())throw new Error("Web3Auth再ログインに失敗しました");h.value=!0},e=>{v.value=null,T.value=k(e,"ウォレットの認証に失敗しました。画面を再読み込みしますので、もう一度お試しください。"),Y.value=!0,d.value=!0})},he=async()=>{h.value=!1,await v.value?.action()},B=async()=>{await C(async()=>{if(xe())return;if(!K(r))throw new i(n.ERROR.INHERITANCE.INVALID_NFT_TYPE);if(!U.value){const N=await Ue();if(!N||!N.provider)throw new Error("Web3Authに接続されていません");if(await V(N.provider),!U.value)throw new Error("Smart Accountの初期化に失敗しました")}const e=await ae({to_user_id:String(y)});let t=null,c=null;r===A.MEMORY?e.keepsakes?.address&&e.keepsakes?.uo&&(c=await M({address:e.keepsakes.address,uo:e.keepsakes.uo}),await x(c)):e.lands?.address&&e.lands?.uo&&(t=await M({address:e.lands.address,uo:e.lands.uo}),await x(t)),await oe({to_user_id:String(y),hash_land:t,hash_keepsake:c}),He("/wallet/inheritance/complete")},we)},ve=()=>{const{$auth0Client:e,$web3auth:t}=Fe();if(Le(e,t)){fe(),v.value={message:"ウォレットの認証が完了しました。引き続き相続設定をお願いします。",confirmText:"相続設定する",action:B},E.value=!0;return}B()};return(e,t)=>{const c=be,N=ke,ye=Ye,Ne=Se,b=Be;return m(),_(S,null,[o("div",Ze,[w(c,{size:"large","back-url":`/wallet/inheritance/user_list?nft_type=${a(r)}`},{default:R(()=>[...t[3]||(t[3]=[g(" ウォレット相続 ",-1)])]),_:1},8,["back-url"]),a(O)?(m(),Te(N,{key:0,"elem-type":"danger"},{default:R(()=>[g(l(a(O)),1)]),_:1})):(m(),_(S,{key:1},[o("section",et,[o("div",tt,[o("div",at,[w(ye,{"icon-src":a(s)?.user_icon,"icon-alt":a(s)?.user_name,"icon-size":128},null,8,["icon-src","icon-alt"])]),o("div",ot,l(a(s)?.user_name),1),o("div",st,[o("div",null,[o("p",null," 関係:"+l(a(Q).relationList?.[`${a(s)?.relation}`]??""),1),a(s)?.birth_date?(m(),_("p",nt,l(("formatDate"in e?e.formatDate:a(Ke))(a(s).birth_date,"wareki"))+"生まれ ",1)):(m(),_("p",it," 未公開 "))]),o("div",lt,l(a(ce)),1)]),t[4]||(t[4]=o("div",{class:"profile-section-title"}," 自己紹介 ",-1)),o("div",rt,[a(s)?.self_intro?(m(),_(S,{key:0},[g(l(a(s)?.self_intro),1)],64)):(m(),_("p",ct," 未公開 "))])])]),o("section",null,[w(Ne,{"elem-type":"primary",onClick:ve},{default:R(()=>[g(l(`${a(ue)}NFT相続設定する`),1)]),_:1})])],64))]),w(b,{open:a(d),"onUpdate:open":t[0]||(t[0]=I=>D(d)?d.value=I:null),title:"エラー","elem-type":"danger",onClose:Re},{default:R(()=>[o("div",null,l(a(T)),1)]),_:1},8,["open"]),w(b,{open:a(E),"onUpdate:open":t[1]||(t[1]=I=>D(E)?E.value=I:null),title:"ウォレットに再ログインします","elem-type":"primary","confirm-button-text":"OK","show-close-button":!1,onConfirm:Ee},{default:R(()=>[...t[5]||(t[5]=[o("div",null," ウォレットに再ログインします。ログイン後に再度実行してください。 ",-1)])]),_:1},8,["open"]),w(b,{open:a(h),"onUpdate:open":t[2]||(t[2]=I=>D(h)?h.value=I:null),title:"認証が完了しました","elem-type":"primary","confirm-button-text":a(v)?.confirmText??"OK","show-close-button":!1,onConfirm:he},{default:R(()=>[o("div",null,l(a(v)?.message??"ウォレットの認証が完了しました。再度操作をお願いします。"),1)]),_:1},8,["open","confirm-button-text"])],64)}}}),Dt=We(ut,[["__scopeId","data-v-5fcc5958"]]);export{Dt as default};

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.