1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{15838:(e,s,a)=>{a.d(s,{A:()=>m});var n=a(33499),t=a(65235),i=a(48870),c=a(98982),d=a(94196),l=a(92405),r=a(12496),o=a(57352),h=a(97793),x=a(33631);function m(e){let{exit:s}=e,a=(0,d.wA)(),m=(0,d.d4)(e=>e.userKeys),{t:p}=(0,h.Bd)(),[g,j]=(0,t.useState)(!1);(0,t.useEffect)(()=>{m&&!(m.ext||m.sec||m.bunker)&&s()},[m]);let b=async e=>{try{e.stopPropagation(),j(!0);let{password:n}=await (0,c.d1)(m.pub,m);if(!n){a((0,o.Kx)({type:2,desc:p("AIgTTfv")})),j(!1);return}let t=await (0,c.xW)(m.pub,m);t&&(localStorage.setItem("connect_yc","".concat(new Date().getTime())),t.is_new&&(0,l.Ar)(t),a((0,r.bb)(!0)),s()),t||a((0,o.Kx)({type:2,desc:p("AJY8vLC")})),j(!1)}catch(e){console.log(e),j(!1),a((0,o.Kx)({type:2,desc:p("AJY8vLC")}))}};return(0,n.jsx)(x.A,{exit:s,width:400,children:(0,n.jsxs)("div",{className:"fx-centered fx-col slide-up",style:{padding:"2rem"},children:[(0,n.jsx)("h4",{children:p("AzVvVt5")}),(0,n.jsx)("p",{className:"gray-c p-centered",children:p("AbE7B3Z")}),(0,n.jsx)("div",{className:"chest"}),(0,n.jsx)("button",{className:"btn btn-normal btn-full",onClick:b,disabled:g,children:g?(0,n.jsx)(i.A,{}):p("Amdv4GO")}),!g&&(0,n.jsx)("button",{className:"btn btn-text btn-normal",onClick:s,children:p("ATSr8gI")})]})})}},69746:(e,s,a)=>{a.d(s,{A:()=>v});var n=a(33499),t=a(65235),i=a(73890),c=a.n(i),d=a(29788),l=a(57352),r=a(94196),o=a(58572),h=a(48870),x=a(97793),m=a(35412),p=a(77797),g=a(19501),j=a(96183);function b(e){let{refresh:s}=e,a=(0,r.wA)(),i=(0,r.d4)(e=>e.userMetadata),{t:c}=(0,x.Bd)(),{handleAccessError:b}=(0,g.Ay)(),{requireYakiConnection:u}=(0,j.A)(),[v,y]=(0,t.useState)(!1),[N,f]=(0,t.useState)(!1),[A,w]=(0,t.useState)(!1),[k,C]=(0,t.useState)(!1),[z,S]=(0,t.useState)(!1),[I,W]=(0,t.useState)((null==i?void 0:i.display_name)||(null==i?void 0:i.name)||""),E=async e=>{try{if(e.stopPropagation(),v||z)return;if(!I)return void C(!0);if(!u())return;y(!0);let a=await d.A.post("/api/v1/wallet",{username:null==I?void 0:I.toLowerCase()}),n=["Important: Store this information securely. If you lose it, recovery may not be possible. Keep it private and protected at all times","---","Address: ".concat(a.data.lightningAddress),"NWC secret: ".concat(a.data.connectionSecret)];(0,m.Xg)(n.join("\n"),"text/plain","".concat(a.data.lightningAddress,"-NWC.txt"),c("AIzBCBb"),!1),y(!1);let t={secret:a.data.connectionSecret,addr:a.data.lightningAddress},i={id:Date.now(),kind:3,entitle:t.addr,active:!0,data:t.secret},l=(0,o.dz)();if(l)try{(l=l.map(e=>{let s={...e};return s.active=!1,s})).push(i),(0,o.M6)(l),s();return}catch(e){(0,o.M6)([i]),s();return}(0,o.M6)([i]),s()}catch(e){var n;if(console.log(e),y(!1),b(e,"wallet-creation"))return;(null==(n=e.response)?void 0:n.status)?w(!0):a((0,l.Kx)({type:3,desc:c("AQ12OQz")}))}};return(0,n.jsxs)("div",{className:"fit-container fx-scattered sc-s-18 fx-col box-pad-h-s box-pad-v-s pointer ".concat(N?"":"option"),style:{backgroundColor:"transparent"},onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"fx-scattered fit-container",onClick:e=>{e.stopPropagation(),f(!N)},children:[(0,n.jsxs)("div",{className:"fx-centered",children:[(0,n.jsx)(p.A,{name:"yaki-logomark",size:24}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:c("AXj1AXD")}),(0,n.jsx)("p",{className:"gray-c p-medium",children:c("AzefMgD")})]})]}),(0,n.jsx)("div",{className:"box-pad-h-s",children:(0,n.jsx)(p.A,{name:"plus-sign"})})]}),N&&(0,n.jsxs)("div",{className:"fit-container fx-centered fx-col slide-up",children:[(0,n.jsx)("hr",{}),(0,n.jsxs)("div",{className:"fit-container fx-centered",children:[(0,n.jsx)("input",{type:"text",className:"ifs-full if",placeholder:c("ALCpv2S"),value:I,onChange:e=>{let s=e.target.value,a=/^[a-zA-Z0-9]+$/.test(s);A&&w(!1),k&&C(!1),(!s||a&&z)&&S(!1),!s||a||z||S(!0),W(s)},style:{borderColor:A||k||z?"var(--red-main)":""}}),(0,n.jsx)("p",{className:"gray-c p-big",style:{minWidth:"max-content"},children:c("An427hr")})]}),A&&(0,n.jsx)("div",{className:"fit-container box-pad-h-m",children:(0,n.jsx)("p",{className:"red-c p-medium",children:c("AgrHddv")})}),k&&(0,n.jsx)("div",{className:"fit-container box-pad-h-m",children:(0,n.jsx)("p",{className:"red-c p-medium",children:c("AhQtS0K")})}),z&&(0,n.jsx)("div",{className:"fit-container box-pad-h-m",children:(0,n.jsx)("p",{className:"red-c p-medium",children:c("AqSxggD")})}),(0,n.jsx)("button",{className:"btn btn-normal btn-full",onClick:E,children:v?(0,n.jsx)(h.A,{}):c("AvjCl1G")})]})]})}var u=a(33631);function v(e){let{exit:s,refresh:a,returnPath:t=""}=e,{t:i}=(0,x.Bd)();return(0,n.jsx)(u.A,{exit:s,width:500,children:(0,n.jsxs)("div",{className:"box-pad-h box-pad-v fx-centered fx-col",children:[(0,n.jsx)("div",{className:"close",onClick:s,children:(0,n.jsx)("div",{})}),(0,n.jsx)("h4",{className:"box-marg-s",children:i("A8fEwNq")}),(0,n.jsx)(b,{refresh:a}),(0,n.jsx)("div",{className:"fit-container fx-centered",children:(0,n.jsx)("p",{children:i("AvVawBi")})}),(0,n.jsxs)(c(),{className:"fit-container fx-scattered sc-s-18 box-pad-h-s box-pad-v-s option pointer",style:{backgroundColor:"transparent"},href:"/lightning-wallet/nwc",onClick:()=>{(0,o.Xw)(t),s()},children:[(0,n.jsxs)("div",{className:"fx-centered",children:[(0,n.jsx)(p.A,{name:"nwc-logo",size:24,isColored:!0}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:i("AO3Hd2n")}),(0,n.jsx)("p",{className:"gray-c p-medium",children:i("Ah0bYM3")})]})]}),(0,n.jsx)("div",{className:"box-pad-h-s",children:(0,n.jsx)(p.A,{name:"plus-sign"})})]}),(0,n.jsxs)("div",{className:"fit-container fx-scattered sc-s-18 box-pad-h-s box-pad-v-s option pointer",style:{backgroundColor:"transparent"},onClick:()=>{(0,o.Xw)(t),window.location.href="https://getalby.com/oauth?client_id=aexpvZHPVS&response_type=code&redirect_uri=https://yakihonne.com/lightning-wallet/alby&scope=account:read%20invoices:create%20invoices:read%20transactions:read%20balance:read%20payments:send"},children:[(0,n.jsxs)("div",{className:"fx-centered",children:[(0,n.jsx)(p.A,{name:"alby-logo",size:24,isColored:!0}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"Alby"}),(0,n.jsx)("p",{className:"gray-c p-medium",children:i("AFB7e2a")})]})]}),(0,n.jsx)("div",{className:"box-pad-h-s",children:(0,n.jsx)(p.A,{name:"plus-sign"})})]}),(0,n.jsx)("p",{className:"gray-c p-medium p-centered",children:i("APcRx0f")})]})})}},70347:(e,s,a)=>{a.d(s,{A:()=>m});var n=a(33499),t=a(65235),i=a(94196),c=a(92405),d=a(98982),l=a(97793),r=a(15838),o=a(69746),h=a(77797);let x="https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/unauthorized-messages.png";function m(e){let{page:s,onClick:a=null}=e,m=(0,i.d4)(e=>e.userKeys),{t:p}=(0,l.Bd)(),[g,j]=(0,t.useState)(!1),[b,u]=(0,t.useState)(!1);return"404"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"100vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("ABEx38g")}),(0,n.jsx)("p",{className:"p-centered gray-c box-pad-h",style:{maxWidth:"450px"},children:p("AYTKHbY")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/404-hero.png",")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:()=>window.location="/",children:p("A9Un0Og")})]})}):"nostr-not-connected"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container fx-centered",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("AADL1TO")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AD0otkO")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/nostr-not-connected.png",")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:()=>(0,d.jL)(),children:p("AmOtzoL")})]})})}):"nostr-unauthorized"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("AEm25j4")}
1),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("ApcEX6u")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/nostr-unauthorized.png",")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:c.Ub,children:p("AVEtnb9")})]})}):"nostr-un"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"20vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/un-hero.png",")"),width:"min(300px, 500px)",height:"200px"}}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("Ax1Hh4U")})]})}):"nostr-unauthorized-messages"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("AEm25j4")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AthLKvF")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat(x,")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:c.Ub,children:p("AyXwdfE")})]})}):"nostr-bunker-dms"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"100vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("AlNe9hu")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AIJ7nCM")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat(x,")"),width:"min(300px, 500px)",height:"300px"}})]})}):"nostr-DMS"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"90vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("AWEqHfP")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AzfjyGO")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/DMS.png",")"),width:"min(300px, 500px)",height:"300px"}})]})}):"nostr-DMS-waiting"===s?(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("h2",{className:"box-marg-s p-centered",children:p("A0sXNyM")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AVyHzwC")}),(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/DMS-waiting.gif",")"),width:"min(300px, 500px)",height:"300px"}})]})}):"nostr-yaki-chest"===s?(0,n.jsxs)(n.Fragment,{children:[g&&(0,n.jsx)(r.A,{exit:()=>j(!1)}),(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/trophy.png",")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("h3",{className:"box-marg-s p-centered",children:p("AXYiu6Y")}),(0,n.jsx)("p",{className:"p-centered gray-c box-marg-s ",style:{maxWidth:"450px"},children:p("ATSLvF2")}),m&&(m.ext||m.sec||m.bunker)&&(0,n.jsx)("button",{className:"btn btn-normal",onClick:()=>j(!0),children:p("Ag1xrtA")})]})})]}):"nostr-wallet"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container fx-centered",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/wallet.png",")"),width:"min(300px, 500px)",height:"300px"}}),(0,n.jsx)("h3",{className:" p-centered",children:p("ALRlj3f")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AwxZeBC")}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:()=>m?(0,c.Ub)():(0,d.jL)(),children:p(m?"Ak2D1hf":"AmOtzoL")})]})})}):"nostr-add-wallet"===s?(0,n.jsxs)(n.Fragment,{children:[b&&(0,n.jsx)(o.A,{exit:()=>u(!1),refresh:a||(()=>null)}),(0,n.jsx)("div",{className:"fit-container fx-centered",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:a?"80vh":"auto",rowGap:"24px"},children:[(0,n.jsxs)("div",{style:{position:"relative"},children:[(0,n.jsx)("div",{className:"round-icon",style:{width:"140px"},children:(0,n.jsx)(h.A,{name:"wallet-add",size:48})}),(0,n.jsx)("div",{className:"box-pad-h-s box-pad-v-s",style:{borderRadius:"var(--border-r-50)",backgroundColor:"var(--white)",position:"absolute",top:0,left:0},children:(0,n.jsx)(h.A,{name:"alby-logo",size:32,isColored:!0})}),(0,n.jsx)("div",{className:"box-pad-h-s box-pad-v-s",style:{borderRadius:"var(--border-r-50)",backgroundColor:"var(--white)",position:"absolute",right:0,bottom:0},children:(0,n.jsx)(h.A,{name:"nwc-logo",size:32,isColored:!0})})]}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"400px"},children:p("AToSVHy")}),a&&(0,n.jsxs)("button",{className:"btn btn-orange fx-centered",onClick:()=>u(!b),children:[(0,n.jsx)(h.A,{name:"plus-sign"})," ",p("A8fEwNq")]})]})})]}):"widgets"===s?(0,n.jsxs)(n.Fragment,{children:[g&&(0,n.jsx)(r.A,{exit:()=>j(!1)}),(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"60vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/widgets.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:"Smart widget checker"}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("Ax7qE5o")})]})})]}):"widgets-draft"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/draft.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:p("A14HHPP")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("A4hlacc")}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:a,children:p("AxgWICf")})]})})}):"muted-user"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/muted-user.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:p("AineCS4")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("Ao4Segq")}),(0,n.jsx)("button",{className:"btn btn-normal",onClick:a,children:p("AKELUbQ")})]})})}):"unsupported"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/unsupported.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:p("AcFjmGe")})]})})}):"maintenance"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/maintenance.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:p("ACdkpXG")}),(0,n.jsx)("p",{className:"gray-c p-centered",style:{maxWidth:"500px"},children:p("AmQnhHL")})]})})}):"ai"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"bg-img contained-bg",style:{backgroundImage:"url(".concat("https://yakihonne.s3.ap-east-1.amazonaws.com/media/images/ai.png",")"),width:"500px",height:"280px"}}),(0,n.jsx)("h4",{children:p("AE9O5YE")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"450px"},children:p("AtQ0dJT")})]})})}):"user-not-found"===s?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fit-container",children:(0,n.jsxs)("div",{className:"fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)("div",{className:"fx-centered box-marg-s",style:{minWidth:"54px",minHeight:"54px",borderRadius:"var(--border-r-50)",backgroundColor:"var(--red-main)"},children:(0,n.jsx)(h.A,{name:"warning",size:24})}),(0,n.jsx)("h4",{children:p("AawvPaR")}
1)]})})}):void 0}}}]); 2//# sourceMappingURL=347.2235613679d3ee40.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.