1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1521],{91521:(e,s,t)=>{t.r(s),t.d(s,{default:()=>v});var a=t(33499),i=t(65235),r=t(70347),c=t(48870),n=t(89861),d=t(94196),l=t(57352),x=t(76636),h=t(97793),o=t(98982),j=t(77797);function f(e){let{widget:s}=e,{t}=(0,h.Bd)(),[r,c]=(0,i.useState)(!!s&&(0,o.QN)(s));return(0,i.useEffect)(()=>{s&&c((0,o.QN)(s))},[s]),(0,a.jsxs)("div",{children:[!s&&(0,a.jsxs)("div",{className:"fit-container fit-height fx-centered fx-col",children:[(0,a.jsx)("h4",{children:t("AzpYkqp")}),(0,a.jsx)("p",{className:"gray-c",children:t("AbEJdOl")})]}),!r&&s&&(0,a.jsxs)("div",{className:"fit-container fit-height fx-centered fx-col",style:{height:"60vh"},children:[(0,a.jsx)("h4",{children:t("ATiRh0z")}),(0,a.jsx)("p",{className:"gray-c",children:t("AbEJdOl")})]}),r&&s&&(0,a.jsx)(m,{event:r})]})}let m=e=>{let{event:s}=e,{t}=(0,h.Bd)();return(0,a.jsxs)("div",{className:" fx-centered fx-col fx-start-h fx-start-v",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t("AqTI7Iu")}),(0,a.jsx)("h4",{children:s.content||"N/A"})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t("AdVoc9X")}),(0,a.jsx)("p",{className:"gray-c",children:s.identifier||"N/A"})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t("AA4MGb0")}),(0,a.jsx)("p",{className:"gray-c",children:s.pubkey||"N/A"})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t("ARyebOH",{kind:""})}),(0,a.jsx)("p",{className:"gray-c",children:s.kind||"N/A"})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t("AAOFuOo")}),(0,a.jsxs)("div",{className:"box-pad-h box-pad-v-s fx-centered fx-col fx-start-h fx-start-v",children:[(0,a.jsxs)("div",{className:"fit-container fx-scattered fx-start-v",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"image"}),(0,a.jsx)("p",{className:"gray-c p-three-lines",children:s.image||"N/A"})]}),s.image_status&&(0,a.jsx)(j.A,{name:"checkmark-tt",size:24,isColored:!0}),!s.image_status&&(0,a.jsx)(j.A,{name:"crossmark-tt",size:24,isColored:!0})]}),(0,a.jsx)("hr",{}),s.input&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"fit-container fx-scattered fx-start-v",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"input"}),(0,a.jsx)("p",{className:"gray-c",children:s.input||"N/A"})]}),(0,a.jsx)(j.A,{name:"checkmark-tt",size:24,isColored:!0})]}),(0,a.jsx)("hr",{})]}),s.buttons.map((e,s)=>(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:["Button ",s+1]}),(0,a.jsxs)("div",{className:"box-pad-v-s fx-centered fx-col fx-start-h fx-start-v",style:{paddingLeft:"1rem"},children:[(0,a.jsxs)("div",{className:"fit-container fx-scattered fx-start-v",children:[(0,a.jsxs)("div",{className:"fit-container fx-centered fx-start-h fx-start-v",children:[(0,a.jsx)("p",{className:"c1-c",style:{minWidth:"50px"},children:"label"}),(0,a.jsx)("p",{className:"gray-c",children:e.label||"N/A"})]}),e.label&&(0,a.jsx)(j.A,{name:"checkmark-tt",size:24,isColored:!0}),!e.label&&(0,a.jsx)(j.A,{name:"crossmark-tt",size:24,isColored:!0})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{className:"fit-container fx-scattered fx-start-v",children:[(0,a.jsxs)("div",{className:"fit-container fx-centered fx-start-h fx-start-v",children:[(0,a.jsx)("p",{className:"c1-c",style:{minWidth:"50px"},children:"type"}),(0,a.jsx)("p",{className:"gray-c",children:e.type||"N/A"})]}),e.type_status&&(0,a.jsx)(j.A,{name:"checkmark-tt",size:24,isColored:!0}),!e.type_status&&(0,a.jsx)(j.A,{name:"crossmark-tt",size:24,isColored:!0})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{className:"fit-container fx-scattered fx-start-v",children:[(0,a.jsxs)("div",{className:"fit-container fx-centered fx-start-h fx-start-v",children:[(0,a.jsx)("p",{className:"c1-c",style:{minWidth:"50px"},children:"url"}),(0,a.jsx)("p",{className:"gray-c p-three-lines",children:e.url||"N/A"})]}),e.url_status&&(0,a.jsx)(j.A,{name:"checkmark-tt",size:24,isColored:!0}),!e.url_status&&(0,a.jsx)(j.A,{name:"crossmark-tt",size:24,isColored:!0})]})]})]}),(0,a.jsx)("hr",{})]},s))]})]})]})};var p=t(39693);function v(){let e=(0,d.wA)(),{t:s}=(0,h.Bd)(),t=new URLSearchParams(window.location.search).get("naddr")||"",[o,m]=(0,i.useState)(!1),[v,N]=(0,i.useState)(!1),[u,A]=(0,i.useState)(!0),[g,y]=(0,i.useState)(t);return(0,i.useEffect)(()=>
1{if(g)try{N(!0);let{data:e}=n.Qe.decode(g),s=0,t=x.$.subscribe([{kinds:[30033],authors:[e.pubkey],"#d":[e.identifier]}],{cacheUsage:"CACHE_FIRST",groupable:!1});t.on("event",async e=>{try{e.id&&e.created_at>s&&(s=e.created_at,m(e.rawEvent()),t.stop(),N(!1))}catch(e){console.log(e),N(!1)}}),t.on("eose",()=>{N(!1)})}catch(t){console.log(t),e((0,l.Kx)({type:2,desc:s("As0d1J3")})),N(!1)}},[g]),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"fx-centered fit-container fx-start-h fx-start-v",children:(0,a.jsx)("div",{className:"box-pad-h-m fit-container",children:(0,a.jsxs)("div",{className:"fit-container fx-centered fx-start-h fx-start-v",children:[(0,a.jsxs)("div",{style:{width:"min(100%,800px)",flex:1.5},className:" ".concat(u?"":"mb-hide-800"),children:[(0,a.jsxs)("div",{className:"fit-container fx-scattered sticky",children:[(0,a.jsxs)("div",{className:"fx-centered fx-start-h if ifs-full ".concat(o?"if-disabled":""),style:{gap:0,pointerEvents:o?"none":"auto"},children:[(0,a.jsx)(j.A,{name:"search_magnifying_glass",v:2}),(0,a.jsx)("input",{type:"text",className:"if if-no-border ifs-full",placeholder:s("AzL2pM8"),disabled:v,value:g,onChange:e=>y(e.target.value)})]}),(0,a.jsxs)("div",{className:"fx-centered",children:[o&&(0,a.jsx)("div",{className:"round-icon round-icon-tooltip",disabled:v,onClick:()=>{y(""),m(!1)},"data-tooltip":s("AboMK2E"),children:v?(0,a.jsx)(c.A,{}):(0,a.jsx)(j.A,{name:"trash",isColored:!0})}),(0,a.jsx)("div",{className:"round-icon desk-hide round-icon-tooltip","data-tooltip":s("AZBr1AS"),onClick:()=>A(!1),children:(0,a.jsx)(j.A,{name:"curation"})})]})]}),!o&&(0,a.jsx)(r.A,{page:"widgets"}),o&&(0,a.jsx)(p.A,{onNextWidget:e=>m(e),widget:o})]}),(0,a.jsx)("div",{style:{height:"100vh",backgroundColor:"var(--pale-gray)",width:"1px",position:"sticky",top:0,margin:"0 .5rem"},className:"mb-hide-800"}),(0,a.jsx)("div",{style:{width:"min(100%,500px)",flex:1,height:"100vh",overflow:"scroll"},className:"box-pad-h-m box-pad-v sticky ".concat(u?"mb-hide-800":""),children:o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"fx-centered fx-start-h fit-container box-marg-s",children:[(0,a.jsx)("div",{className:"round-icon desk-hide round-icon-tooltip",onClick:()=>A(!0),"data-tooltip":s("ATB2h6T"),children:(0,a.jsx)(j.A,{name:"arrow",transform:"rotate(90deg)"})}),(0,a.jsx)("h4",{children:s("AYmIvXo")})]}),(0,a.jsx)(f,{widget:o})]})})]})})})})}}}]); 2//# sourceMappingURL=1521.c75b6f30257401f6.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.