PageSourceSearch

https://yakihonne.com/_next/static/chunks/8087.4aa1d491e6f1b349.js

js yakihonne.com collected 2026-09-25 14:02:46 UTC 9,194 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8087],{18087:(e,t,s)=>{s.r(t),s.d(t,{default:()=>S});var n=s(33499),i=s(65235),a=s(94196),r=s(58572),d=s(66995),l=s(40555),c=s(70405),o=s(82608),u=s(92405),x=s(98982),h=s(48870),f=s(34737),m=s(20150),p=s(80359),v=s(97793),g=s(25223),j=s(35412),y=s(96962),b=s(84146),A=s(92395),k=s(54526),N=s(34607),w=s(75031);let E=(e,t)=>{switch(t.type){case"empty-recent":case"remove-events":return[];default:return[...e,...t.note].filter((e,t,s)=>{if(s.findIndex(t=>{var s,n;return t.id===e.id||6===e.kind&&(e.relatedEvent.id===t.id||e.relatedEvent.id===(null==(s=t.relatedEvent)?void 0:s.id))||6===t.kind&&(t.relatedEvent.id===e.id||t.relatedEvent.id===(null==(n=e.relatedEvent)?void 0:n.id))})===t)return e}).sort((e,t)=>t.created_at-e.created_at)}};function S(e){let{event:t}=e,s=(0,p.useRouter)(),{t:a}=(0,v.Bd)(),r=(0,i.useRef)(null),c=s.query.r,[o,x]=(0,i.useState)(t||null),[f,m]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{if(!r.current)return;let e=()=>{var e;let t=null==(e=r.current)?void 0:e.getBoundingClientRect().height,s=window.innerHeight;r.current.style.top=t>=s?"calc(95vh - ".concat(t,"px)"):0},t=new ResizeObserver(e);return t.observe(r.current),e(),()=>{t.disconnect()}},[]),(0,i.useEffect)(()=>{let e=async()=>{m(!0);let e=await (0,u.NZ)([{kinds:[39089],"#d":[c]}]);e.data.length>0&&x((0,j.g7)(e.data[0])),m(!1)};t||e()},[c]),f)?(0,n.jsx)("div",{className:"fit-container fx-centered",style:{height:"100vh"},children:(0,n.jsx)(h.A,{size:32})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{overflow:"clip"},children:[(0,n.jsx)(l.Ay,{}),(0,n.jsx)(d.A,{}),(0,n.jsx)("div",{className:"fit-container fx-centered fx-start-h fx-start-v",children:(0,n.jsx)("div",{className:"fit-container fx-centered fx-start-v fx-start-h",style:{gap:0},children:(0,n.jsxs)("div",{style:{gap:0},className:"fx-centered  fx-wrap fit-container",children:[o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"fit-container fx-centered box-pad-h ",style:{padding:0},children:(0,n.jsx)("div",{className:"main-middle",children:(0,n.jsx)(g.A,{})})}),(0,n.jsxs)("div",{className:"main-middle",children:[(0,n.jsx)("div",{className:"fit-container fx-centered",children:(0,n.jsx)("div",{className:"fit-container fx-scattered fx-col",style:{gap:0},children:(0,n.jsx)(N.A,{pack:o,noRedirect:!0})})}),(0,n.jsx)(C,{pubkeys:o.pTags})]})]}),!o&&(0,n.jsxs)("div",{className:"fit-container fx-centered fx-col",style:{height:"80vh"},children:[(0,n.jsx)(w.A,{name:"yaki-logomark",size:48}),(0,n.jsx)("h4",{children:a("A2l1JgC")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"330px"},children:a("AeujoKN")})]})]})})})]})})}let C=e=>{let{pubkeys:t}=e,{t:s}=(0,v.Bd)(),{userMutedList:d}=(0,a.d4)(e=>e.userMutedList),[l,p]=(0,i.useReducer)(E,[]),[g,N]=(0,i.useState)(!0),[S,C]=(0,i.useState)(void 0),[R,_]=(0,i.useState)("notes"),[z,F]=(0,i.useState)(!0),[M,B]=(0,i.useState)({filter:[],relays:[]}),P=(0,i.useMemo)(()=>l.length>0?l[0].created_at+1:void 0,[l]),D=(0,i.useRef)(null),I=(0,i.useMemo)(()=>[...t].sort(()=>Math.random()-.5).slice(0,100),[t]);(0,i.useEffect)(()=>{(0,x.GP)(),p({type:"remove-events"}),C(void 0)},[]),(0,i.useEffect)(()=>{(async()=>{N(!0);let e=[],t=[],s=[],n=[1,6,30023,34235,21,22],i=Math.floor((Date.now()-1728e5)/1e3),a=S?S-172800:S;"notes"===R&&(n=[1,6]),"articles"===R&&(n=[30023]),"curations"===R&&(n=[30004,30005]);let d=[{kinds:n,limit:100,until:S,since:a,authors:I}],l=await (0,u.NZ)(d,50);B({filter:d});let c=(t=l.data.splice(0,50).map(t=>{if(e.push(t.pubkey),[1,6].includes(t.kind)){let n=(0,r.yN)(t,!0);if(n&&s.push(n),n)return 6===t.kind&&e.push(n.relatedEvent.pubkey),n}else if([34235,34236,20,21,22].includes(t.kind))return(0,j.W1)(t);else return(0,j.Zp)(t)}).filter(e=>e)).length>0?Array.from(t):Array.from(s);(0,o.m6)(e),p({type:"global",note:c}),0===c.length&&N(!1)})()},[S,R]);let G=e=>{(0,x.GP)(),N(!0),p({type:"remove-events"}),C(void 0),_(e)};return(0,n.jsxs)("div",{className:"fx-centered  fx-wrap fit-container",style:{gap:0},children:[(0,n.jsxs)("div",{className:"user-feed-tab sticky fx-even fit-container",style:{padding:0,gap:0},children:[(0,n.jsx)("div",{className:"list-item-b fx-centered fx ".concat("notes"===R?"selected-list-item-b":""),onClick:()=>G("notes"),children:s("AYIXG83")}),(0,n.jsx)("div",{className:"list-item-b fx-centered fx ".concat("articles"===R?"selected-list-item-b":""),onClick:()=>G("articles"),children:s("AesMg52")}),(0,n.jsx)("div",{className:"list-item-b fx-centered fx ".concat("curations"===R?"selected-list-item-b":""),onClick:()=>G("curations"),children:s("AVysZ1s")})]}),(0,n.jsx)(b.A,{filter:M,since:P,onClick:e=>{var t;p({type:"global",note:e}),null==(t=D.current)||t.scrollToIndex({top:32,behavior:"smooth"})},kind:R,position:"bottom"}),l.length>0&&"media"!==R&&(0,n.jsx)(A.aY,{ref:D,style:{width:"100%",height:"100vh"},skipAnimationFrameInResizeObserver:!0,overscan:1e3,useWindowScroll:!0,totalCount:l.length,increaseViewportBy:1e3,endReached:e=>{C(l[e].created_at-1)},itemContent:e=>{let t=l[e];if(![...d,...m.A].includes(t.pubkey))return 6!==t.kind||[...d,...m.A].includes(t.relatedEvent.pubkey)?1===t.kind?(0,n.jsx)(i.Fragment,{children:(0,n.jsx)(f.A,{event:t,border:!0})},t.id):[30023,34235,21,22,30004,30005].includes(t.kind)?(0,n.jsx)(i.Fragment,{children:(0,n.jsx)(y.A,{item:t})},t.id):null:(0,n.jsx)(i.Fragment,{children:(0,n.jsx)(c.A,{event:t})},t.id)}}),l.length>0&&"media"===R&&(0,n.jsx)(k.A,{events:l,setLastEventTime:C}),(null==l?void 0:l.length)===0&&!g&&(0,n.jsxs)("div",{className:"fit-container fx-centered fx-col",style:{height:"40vh"},children:[(0,n.jsx)(w.A,{name:"yaki-logomark",size:48}),(0,n.jsx)("h4",{children:s("A5BPCrj")}),(0,n.jsx)("p",{className:"p-centered gray-c",style:{maxWidth:"330px"},children:s("AVSfte8")})]}),(0,n.jsx)("div",{className:"box-pad-v"}),g&&(0,n.jsx)("div",{className:"fit-container box-pad-v fx-centered fx-col",style:{height:"60vh"},children:(0,n.jsx)(h.A,{size:32})})]})}},25223:(e,t,s)=>{s.d(t,{A:()=>r});var n=s(33499);s(65235);var i=s(91676),a=s(75031);function r(){let e=(0,i.useRouter)();return(0,n.jsx)("div",{className:"fx-centered fit-container box-pad-v-s ",style:{padding:".5rem",top:"50px",backgroundColor:"transparent",zIndex:1e3,position:"sticky",pointerEvents:"none"},children:(0,n.jsx)("div",{style:{pointerEvents:"auto"},children:(0,n.jsx)("button",{className:"btn btn-normal btn-gray fx-centered bg-dropdown",onClick:()=>e.back(),"aria-label":"Go back",style:{padding:"0 1rem",borderRadius:"50%",aspectRatio:"1/1",width:"44px",height:"44px"},children:(0,n.jsx)(a.A,{name:"arrow",transform:"rotate(90deg)"})})})})}},40555:(e,t,s)=>{s.d(t,{Ay:()=>r,Ei:()=>a,L9:()=>n,g4:()=>i}),s(33499),s(65235),s(73890),s(57352),s(44480),s(75031),s(33631);let n=["Added video compression in the media upload editor for smaller files and faster uploads, with a progress bar.","Added new dashboard filters: All, Scheduled, Paid notes and Premium for notes, plus Premium for articles.","Added a seen on section to the post stats showing the relays a post was found on.","Fixed a bug in the search page.","Various bug fixes and improvements."],i="1.0.1",a=["Fixed several issues affecting the AI Assistant and Second Reader.","Added direct redirection to the YakiPro mobile app.","Added an explanatory slider to guide creators through the subscription management flow."];function r(){return null}},70405:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(33499),i=s(65235),a=s(35412),r=s(8006),d=s(34737),l=s(94196),c=s(92405),o=s(24360),u=s(97793),x=s(20881),h=s(75031);function f(e){var t,s;let{event:f}=e,{t:m}=(0,u.Bd)(),p=(0,l.d4)(e=>e.nostrAuthors),[v,g]=(0,i.useState)((0,a.uV)(f.pubkey)),[j,y]=(0,i.useState)([]),[b,A]=(0,i.useState)(!1),{isMuted:k}=(0,x.A)(null==(t=f.relatedEvent)?void 0:t.id,"e"),{isMuted:N}=(0,x.A)(null==(s=f.relatedEvent)?void 0:s.isComment,"e"),{isMuted:w}=(0,x.A)(!!f.relatedEvent.rootData&&f.relatedEvent.rootData[1],"e");return((0,i.useEffect)(()=>{let e=(0,c.wz)(f.pubkey);e&&g(e)},[p]),k||N||w)?null:(0,n.jsxs)(n.Fragment,{children:[b&&(0,n.jsx)(o.A,{exit:()=>A(!1),title:m("Aai65RJ"),list:j.map(e=>e.pubkey),extras:[]}),(0,n.jsxs)("div",{className:"fx-centered fx-col fx-start-v fit-container",style:{rowGap:"0px",overflow:"visible"},children:[(0,n.jsxs)("div",{className:"fx-centered fx-start-h bg-dropdown box-pad-h-s  round-icon-tooltip pointer",style:{overflow:"visible",marginTop:"1rem",marginBottom:".5rem",height:"32px"},"data-tooltip":j.length>1?"".concat(j.length," people reposted this"):"".concat(v.display_name," reposted this on ").concat(new Date(1e3*f.created_at).toLocaleDateString(),", ").concat(new Date(1e3*f.created_at).toLocaleTimeString()),onClick:()=>j.length>1?A(!0):null,children:[(0,n.jsx)(h.A,{name:"arrow_reload_02",v:2}),(0,n.jsx)(r.A,{size:18,mainAccountUser:!1,user_id:v.pubkey,img:v.picture}),(0,n.jsxs)("div",{className:"fx-centered",children:[(0,n.jsx)("p",{className:"p-bold",children:v.display_name||v.name}),j.length>1&&(0,n.jsxs)("p",{className:"gray-c",children:["& ",j.length-1," others"]})]})]}),(0,n.jsx)(d.A,{event:f.relatedEvent,border:!0,getReposts:y})]})]})}}}]);
2//# sourceMappingURL=8087.4aa1d491e6f1b349.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.