1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/abandonedChannelPreview-DdB6x7bO.js","assets/rolldown-runtime-Czos8NxU.js","assets/asserts-Doeoh-uG.js","assets/app-5r5pIz90.js","assets/vendor-react~index~nag-sunset~nag-no-user~nag-degraded-performance~index~index~index~index~~k5vco7za-D-CsX_iN.js","assets/vendor-react~index~index~publish-v4~publish~index~nag-sunset~nag-no-user~nag-degraded-perfo~ef2jpwjt-DLne3g0l.js","assets/claims-FR-UlCrs.js","assets/vendor-state~index~index~publish-v4~publish~index~nag-sunset~nag-no-user~nag-degraded-perfo~d8u5zn05-CDGblvVh.js","assets/icons-WQbxlx7M.js","assets/i18n-BTiDkSlz.js","assets/v4-B7dvJZog.js","assets/settings-Ckg8R9W3.js","assets/token-DENHBYpt.js","assets/storage-C9vZc6x6.js","assets/time-C23D0mgw.js","assets/vendor-ui~index~index~index~index~index~index~index~index~index~index~index~index~index~ind~gf3i1dne-uRJfpLB5.js","assets/vendor-markdown~index~index~index~index~index~index~index~index~index~index~index~markdown-~hcabgpoy-BRj_0M9Z.js","assets/vendor-react~index~index~index~index~index~index~index~index~index~index~index~index~index~~j9hzwvek-BjL57yfx.js","assets/vendor-state~index~index~index~index~index~index~index~index~index~index~index~index~index~~459ng6im-CibXGxq9.js","assets/classnames-Qs-N3l7u.js","assets/localforage-DTdri6MG.js","assets/vendor-state~index~index~nag-sunset~nag-no-user~nag-degraded-performance~index~index~index~~daxbhkvl-D9Pp7uEa.js","assets/button-0_K07xv_.js","assets/icon-bHpnW6dw.js","assets/hooks-C-d2Zm22.js","assets/channelMuteButton-Ol0ww6Kd.js","assets/index-C6oMOo8H.js","assets/credit-amount-Br7kdMHe.js","assets/lbc-symbol-SBpZmNX4.js","assets/counter-BpcQRjAp.js","assets/counter-CKq6Kc0z.css","assets/credit-amount-CF01a0_Y.css","assets/i18nMessage-BAk-DwW8.js","assets/view-tGi2mcyT.js","assets/supported_languages-B32u0WtL.js","assets/index-CYLAGbJ8.css","assets/channelThumbn
1ail-CdevDWVW.js","assets/membershipBadge-BvQGWpaq.js","assets/tooltip-WAZyxK5t.js","assets/vendor-ui~index~index~index~index~index~index~index~index~index~index~index~index~index~ind~loa2r1dd-CYMy1SSH.js","assets/vendor-ui~index-BNCen1Sn.js","assets/membershipBadge-BGqhAjVz.css","assets/subscribeButton-DzN-2l8N.js","assets/embed-CSJRaRZH.js","assets/use-hover-pdH0BQWd.js","assets/use-browser-notifications-CwABJl28.js","assets/modal-DAELk-UU.js","assets/use-browser-notifications-CDKzn8n9.css"])))=>i.map(i=>d[i]); 2import{t as e}from"./vendor-react~index~index~publish-v4~publish~index~nag-sunset~nag-no-user~nag-degraded-perfo~ef2jpwjt-DLne3g0l.js";import{s as t}from"./rolldown-runtime-Czos8NxU.js";import{l as n}from"./vendor-markdown~index~index~index~index~index~index~index~index~index~index~index~markdown-~hcabgpoy-BRj_0M9Z.js";import{t as r,v as i,x as a}from"./i18n-BTiDkSlz.js";import{t as o}from"./classnames-Qs-N3l7u.js";import{Q as s,h as c}from"./asserts-Doeoh-uG.js";import{Dt as l,G as u,H as d,X as f,Y as p,sr as m,ur as h}from"./icons-WQbxlx7M.js";import{t as g}from"./icon-bHpnW6dw.js";import{c as _,f as v,i as y,l as ee}from"./vendor-react~index~nag-sunset~nag-no-user~nag-degraded-performance~index~index~index~index~~k5vco7za-D-CsX_iN.js";import{At as te,Fo as ne,Gi as b,Gn as x,I as S,Kn as re,Lo as C,Ls as ie,M as w,Qa as ae,R as T,Tn as oe,_ as se,_c as ce,_r as le,br as ue,ct as de,gr as fe,i as pe,jn as me,kn as he,nt as ge,or as _e,sr as ve,uo as ye,v as E,wr as be}from"./claims-FR-UlCrs.js";import{t as D}from"./button-0_K07xv_.js";import{n as O,t as k}from"./hooks-C-d2Zm22.js";import{g as xe,t as Se,v as Ce,y as we}from"./settings-Ckg8R9W3.js";import{Fr as A,G as j,Gu as Te,H as Ee,Ht as De,La as Oe,Lf as ke,Ni as Ae,Pa as je,Pt as Me,Ua as Ne,Uf as Pe,W as Fe,Zc as M,an as Ie,bu as Le,g as Re,ia as ze,ko as Be,lm as N,nl as Ve,ta as He,xf as P,xi as Ue,zi as We}from"./app-5r5pIz90.js";import{t as Ge}from"./view-tGi2mcyT.js";import{Ft as Ke,pn as qe}from"./index-C6oMOo8H.js";import{o as Je,t as Ye}
2from"./channelThumbnail-CdevDWVW.js";import{t as Xe}from"./tooltip-WAZyxK5t.js";import{t as Ze}from"./embed-CSJRaRZH.js";import{t as Qe}from"./subscribeButton-DzN-2l8N.js";import{t as F}from"./empty-BVJVyHln.js";import{i as $e}from"./string-yFuGPIQw.js";import{t as et}from"./uriIndicator-BgshMTu4.js";import{a as tt,c as nt,d as rt,f as I,h as it,i as at,l as ot,m as L,n as st,o as ct,p as lt,r as ut,s as dt,t as ft,u as pt}from"./claimMenuList-2D9THCjN.js";import{t as mt}from"./fileThumbnail-D6P9ipjK.js";import{t as ht}from"./collectionPreviewOverlay-C5p1CiIf.js";import{t as R}from"./tag-xIYgFcJ3.js";import{t as z}from"./tags-BH8ChTk-.js";import{t as gt}from"./joinMembershipButton-DqUdAlBo.js";import{t as B}from"./file-action-button-BzxqbTaC.js";import{t as _t}from"./claimPreviewTitle-lrk-oYVj.js";import{t as vt}from"./claim-preview-loading-d5SyqdmX.js";function yt(e){return e==null||e.constructor===Object&&Object.entries(e).length===0}var V=t(e(),1),H=t(o(),1),U=n(),bt=1,xt=3,St=5;function Ct(e){let{uri:t,type:n}=e,r=O(e=>oe(e,t)),i=O(z),a=n===`small`?bt:n===`large`?St:xt,o=[];r.includes(`mature`)&&o.push(`mature`);for(let e=0;o.length<a-2;e++){let t=i[e];if(!t)break;r.includes(t.name)&&o.push(t.name)}let s=[...r].sort((e,t)=>e.localeCompare(t));for(let e=0;e<s.length;e++){let t=s[e];if(!t||o.length===a)break;o.includes(t)||o.push(t)}return o.length?(0,U.jsx)(`div`,{className:(0,H.default)(`claim__tags`,{"claim__tags--large":n===`large`}),children:o.map(e=>(0,U.jsx)(R,{title:e,name:e},e))}):[]}var wt=`disable-support`,Tt={}.DISABLED_SUPPORT_CHANNELS?{}.DISABLED_SUPPORT_CHANNELS.split(`,`):[];function Et(e){let{uri:t,fileAction:n,shrinkOnMobile:i=!1}=e,a=k(),o=O(e=>w(e,t)),s=o&&o.repost_url,c=o&&_e(o),l=O(e=>E(t,wt)(e)||c&&Tt.includes(c)),u=O(Ce),d=O(e=>b(e,c)),f=d?.status===`active`&&d?.default,p=Ke();if(V.useEffect(()=>{a(M(t))},[f,a,t]),l)return null;let m=p&&i?``:r(s?`Support Repost`:`Support --[button to support a claim]--`),h={[x.EUR]:16,[x.USD]:n?22:void 0};return(0,U.jsx)(B,{className:f?`monetized-account__button`:void 0,title:r(`Support this content`),label:m,icon:re[u].icon,iconSize:h[u],onClick:()=>a(Re(N,{uri:t,isSupport:!0})),noStyle:!n,requiresAuth:!0})}var W=`\xA0â¢\xA0`;function Dt(e){let{uri:t,type:n,showAtSign:i}=e,a=k(),o=O(e=>w(e,t)),s=O(e=>pe(t)(e)),c=be(o),l=o&&o.value_type===`channel`,u=O(e=>l?Le(e,o.repost_url?o.canonical_url:t):null),d=O(e=>xe(e)),f=V.useCallback(e=>a(ke(e)),[a]),p=V.useContext(Ze),m=o&&o.meta.claims_in_channel||0,h=o&&o.claim_id||`0`,g=u?$e(u,d,1e4):null;V.useEffect(()=>{l&&f(h)},[l,f,h]);let _;try{({streamName:_}=C(t))}catch{}return(0,U.jsx)(`div`,{className:`media__subtitle`,children:o?(0,U.jsxs)(V.Fragment,{children:[(0,U.jsx)(et,{uri:t,showAtSign:i,link:!0,external:p}),!s&&o&&(0,U.jsxs)(U.Fragment,{children:[l&&n!==`inline`&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`span`,{className:`claim-preview-metadata-sub-upload`,children:[ot(m),Number.isInteger(u)?W:``,nt(u,g)]})}),!l&&(c?(0,U.jsx)(lt,{uri:t}):(0,U.jsxs)(`span`,{className:`claim-extra-info`,children:[(0,U.jsx)(I,{uri:t}),(0,U.jsx)(L,{uri:t})]}))]})]}):(0,U.jsxs)(V.Fragment,{children:[(0,U.jsx)(`div`,{children:r(`Upload something and claim this spot!`)}),(0,U.jsx)(`div`,{className:`card__actions`,children:(0,U.jsx)(D,{onClick:()=>a(Fe(`file`,_)),button:`primary`,label:r(`Publish to %uri%`,{uri:t})})})]})})}var Ot=V.memo(Dt),kt=e=>{let{uri:t}=e,n=k(),i=O(e=>t?se(t)(e):{})||{},a=()=>n(j()),{fileListItem:o,progress:s,stalled:c}=i,l=o&&o.sd_hash,u=Object.keys(i).length;return c?(0,U.jsx)(D,{button:`link`,label:r(`Upload stalled. Retry?`),onClick:()=>Pe.file_reflect({sd_hash:l}).then(()=>a())}):u?(0,U.jsx)(`span`,{children:r(`Uploading (%progress%%) `,{progress:s})}):(0,U.jsxs)(`div`,{className:`confirming-change`,children:[r(`Confirming`),` `,(0,U.jsx)(Ge,{type:`small`})]})},At=e=>{let{uri:t}=e,n=k(),i=O(e=>w(e,t)),a=_e(i),o=ve(i),c=O(e=>t?T(e,t):!1),u=O(e=>Oe(e,a));return!c||!u?null:(0,U.jsxs)(`p`,{className:`claim-preview-reset`,children:[(0,U.jsxs)(`span`,{className:`claim-preview-reset__hint`,children:[(0,U.jsx)(g,{icon:l}),r(`If you're having trouble starting a stream or if your stream shows that you're live but aren't, try a reset. If the problem persists, please reach out at %SITE_HELP_EMAIL%.`,{SITE_HELP_EMAIL:s})]}),(0,U.jsx)(D,{button:`primary`,label:r(`Reset stream`),className:`claim-preview-reset__button`,onClick:async()=>{try{await Ee(a,o),n(P({message:r(`Live stream successfully reset.`),isError:!1}))}catch{n(P({message:r(`There was an error resetting the live stream.`),isError:!0}))}}})]})};function jt(e){let{uri:t,collectionId:n,focusable:i=!0}=e,a=k();function o(e){e&&e.preventDefault(),a(P({message:r(`Item removed`)})),a(A(n,{uris:[t],remove:!0,type:ye.PLAYLIST}))}
2return(0,U.jsx)(`div`,{className:`claim-preview__hover-actions third-item`,children:(0,U.jsx)(D,{title:r(`Remove`),label:r(`Remove`),className:`button--file-action`,icon:d,onClick:e=>o(e),tabIndex:i?0:-1})})}function Mt(e){let{uri:t,collectionId:n,isChannel:r,type:i,message:a}=e;return(0,U.jsx)(`li`,{className:(0,H.default)(`claim-preview__wrapper`,{"claim-preview__wrapper--channel":r&&i!==`inline`,"claim-preview__wrapper--inline":i===`inline`,"claim-preview__wrapper--recommendation":i===`small`}),children:(0,U.jsxs)(`div`,{className:(0,H.default)(`claim-preview claim-preview--inactive claim-preview--empty`,{"claim-preview--large":i===`large`}),children:[(0,U.jsx)(`div`,{className:(0,H.default)(`media__thumb`,{"media__thumb--small":i===`small`}),children:n&&(0,U.jsx)(`div`,{className:`claim-preview__hover-actions-grid`,children:(0,U.jsx)(jt,{uri:t,collectionId:n})})}),(0,U.jsx)(F,{text:a})]})})}function Nt(e){let{isChannel:t,type:n}=e;return(0,U.jsx)(`li`,{className:(0,H.default)(`claim-preview__wrapper`,{"claim-preview__wrapper--channel":t&&n!==`inline`,"claim-preview__wrapper--inline":n===`inline`}),children:(0,U.jsx)(`div`,{className:(0,H.default)(`claim-preview claim-preview--inactive`,{"claim-preview--large":n===`large`,"claim-preview__empty":!0}),children:(0,U.jsx)(F,{text:r(`Nothing found here. Like big tech ethics.`)})})})}function Pt(e){let{uri:t,collectionId:n,altIndex:i,altCollection:a,dragHandleProps:o,isEditPreview:s,altEditCollection:c,doDisablePlayerDrag:l}=e,_=k(),v=O(e=>n&&t?We(e,n,t):void 0),y=O(e=>n?He(e,n):void 0),ee=e=>{n&&_(A(n,e))},[te,ne]=V.useState(!1),b=y?y.length-1:a?a.length-1:0,x=Number(i)||Number(v);function S(e){a?c(e):ee({isPreview:s,...e})}return(0,U.jsxs)(`div`,{className:`collection-preview__edit-buttons`,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,U.jsx)(`div`,{className:`collection-preview__edit-group`,...o,children:(0,U.jsx)(`div`,{className:`button-collection-manage button-collection-drag top-left bottom-left`,onMouseEnter:l?()=>l(!0):void 0,onMouseLeave:l?()=>l(!1):void 0,children:(0,U.jsx)(g,{icon:f,title:r(`Drag`),size:20})})}),(0,U.jsxs)(`div`,{className:`collection-preview__edit-group`,children:[(0,U.jsx)(G,{title:r(`Move Top`),icon:h,disabled:x===0,onClick:()=>S({order:{from:x,to:0}})}),(0,U.jsx)(G,{title:r(`Move Bottom`),icon:p,disabled:x===b,onClick:()=>S({order:{from:x,to:b}})})]}),(0,U.jsxs)(`div`,{className:`collection-preview__edit-group`,children:[(0,U.jsx)(G,{title:r(`Move Up`),icon:m,disabled:x===0,onClick:()=>S({order:{from:x,to:x-1}})}),(0,U.jsx)(G,{title:r(`Move Down`),icon:u,disabled:x===b,onClick:()=>S({order:{from:x,to:x+1}})})]}),te?(0,U.jsxs)(`div`,{className:`collection-preview__edit-group collection-preview__delete`,children:[(0,U.jsx)(D,{className:`button-collection-manage button-collection-delete-cancel top-right`,icon:`X`,title:r(`Cancel`),onClick:()=>ne(!1)}),(0,U.jsx)(G,{className:`button-collection-delete-confirm bottom-right`,title:r(`Remove`),icon:d,onClick:()=>{!a&&t?ee({uris:[t],remove:!0,isPreview:s}):a&&(c({delete:{index:x}}),ne(!1))}})]}):(0,U.jsx)(`div`,{className:`collection-preview__edit-group collection-preview__delete `,children:(0,U.jsx)(D,{className:`button-collection-manage button-collection-delete top-right bottom-right`,icon:d,title:r(`Remove`),onClick:()=>ne(!0)})})]})}var G=e=>{let{className:t,...n}=e;return(0,U.jsx)(D,{className:(0,H.default)(`button-collection-manage`,t),...n})},Ft=qe(()=>v(()=>import(`./abandonedChannelPreview-DdB6x7bO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))),K=(0,V.forwardRef)((e,t)=>{let{uri:n,wrapperElement:o,type:s,nonClickable:l,placeholder:u,empty:d,active:f,customShouldHide:p,searchParams:m,showNullPlaceholder:h,showUserBlocked:v,showUnresolvedClaim:b,hideRepostLabel:x=!1,hideActions:re=!1,properties:C,onClick:T,actions:oe,includeSupportAction:_e,renderActions:ve,hideMenu:ye=!1,hideJoin:E=!1,collectionId:D,disableNavigation:Ce,indexInContainer:A,channelSubCount:j,showEdit:Ee,isEditPreview:Oe,dragHandleProps:ke,unavailableUris:Pe,inWatchHistory:Fe,smallThumbn
2ail:M,showIndexes:Le,playItemsOnClick:Re,disableClickNavigation:N,doDisablePlayerDrag:He}=e,P=k(),We=ee(),[Ge,qe]=V.useState(!1),F=O(e=>n?w(e,n):void 0),I=F&&F.value&&(F.value.video||F.value.audio),ot=I&&I.duration&&dt(I.duration),L=be(F),lt=F&&F.repost_url&&F.canonical_url,R=F&&F.value_type===`collection`,z=O(e=>Ve(e,n)),B=O(e=>n?S(e,F):!1),bt=O(e=>n?ge(e,n):void 0),xt=O(e=>de(e,n)),St=O(e=>n?ze(n)(e):!1),wt=O(e=>Ue(e,D)),Tt=O(e=>L&&Ne(e,n)),W=O(e=>n?te(e,n):!1),Dt=O(xe),jt=F?le(F):!1,G=O(e=>we(e)===!1),K=O(e=>n?pe(n)(e):!1),It=O(e=>n?se(n)(e):void 0),Lt=O(e=>lt||n?je(e,lt||n):void 0),Rt=O(e=>n?me(e,n):``),zt=O(e=>F&&R?Ae(e,F.claim_id):void 0),Bt=O(e=>he(e,n)),Vt=O(e=>Se(e,i)),Ht=O(e=>Se(e,a)),q=V.useContext(Ze),Ut=Ke(),{pathname:Wt,search:Gt}=_(),Kt=new URLSearchParams(Gt),J=Pe!==void 0||Le,qt=Kt.get(ce.QUERIES.VIEW)===ce.VIEWS.PUBLIC,Jt=R&&F&&F.claim_id,Y=D||Jt||void 0,Yt=o||`li`,Xt=F===void 0||F!==null&&F.value_type===`channel`&&yt(F.meta)&&!K,Zt=!W&&!F,Qt=Y&&(wt||Y.includes(`-`));Qt&&F===null&&Pe&&Pe.push(n);let $t=ue(F),en=V.useCallback(e=>{if(!e)return!1;let t=e.toLowerCase();return t.includes(`missing-thumb-png`)||t.includes(`missing-thumb`)},[]),tn=Bt&&!en(Bt)?Je({thumbnail:Bt,quality:85}):void 0,nn=re||Qt||s===`small`||s===`tooltip`,rn=V.useMemo(()=>{if(j===void 0)return(0,U.jsx)(`span`,{});let e=$e(j,Dt,1e4);return(0,U.jsx)(`div`,{className:`media__subtitle`,children:(0,U.jsx)(Xe,{title:Number(j).toLocaleString(),followCursor:!0,placement:`top`,children:(0,U.jsx)(`span`,{className:`claim-preview__channel-sub-count`,children:nt(j,e)})})})},[j]),an=Te(F),X=fe(F,n),on=F&&F.signing_channel,sn=F&&F.repost_channel_url&&F.value_type===`channel`?F.permanent_url||F.canonical_url:void 0,cn=F&&(F.reposted_claim?F.reposted_claim.permanent_url:F.permanent_url),ln=u===`publish`&&!F&&n.startsWith(`lbry://@`),un=null;if(on){let{value:e,name:t}=on;un=e&&e.title?e.title:t}let dn=X?Rt:pt(Rt,un,bt?bt.getTime():null,ot),Z=R&&Y&&Vt===`defaultCollectionActionView`?`/$/${ie}/${Y}`:ae(F&&F.canonical_url||n||`/`),Q=new URLSearchParams;!R&&Y&&Q.set(`lid`,Y),m&&Object.keys(m).forEach(e=>{Q.set(e,m[e])}),$t&&!Ht&&Q.set(`view`,`shorts`);function fn(){F&&P(De({uri:F.canonical_url||n,collectionId:Y,navigateInline:!N}))}let pn={to:{pathname:N?Wt:Z,search:N?Gt:Q.toString()?`?`+Q.toString():``},onClick:e=>{let t=window.__previewCurrentTime,n=window.__previewMuted===!1;if(t&&t>0&&n){e.preventDefault();let n=new URLSearchParams(Q.toString());n.set(`t`,String(t)),We({pathname:Z,search:`?`+n.toString()})}Re&&F&&fn(),T&&T(e,F,A),e.stopPropagation()},onAuxClick:void 0},$=u!==`loading`&&(Zt&&!b||!B&&G&&jt&&!v);!$&&!B&&(z.blacklisted||z.filtered)&&($=!0),!$&&!v&&(z.muted||z.blocked)&&($=!0),$||=F?.value_type===`repost`&&!Wt.includes(`/$/upload`),!$&&ln&&($=!0),!$&&!B&&xt&&($=!0),!$&&p&&F&&p(F)&&($=!0);let mn=rt(n,F,Lt,V.useCallback(e=>P(Ie(e)),[P]),$);function hn(e){if(T&&T(e,F,A),Re&&F)return fn();if(F&&!K&&!Ce&&!N&&!q){let e=window.__previewCurrentTime,t=window.__previewMuted===!1,n=new URLSearchParams(Q.toString());e&&e>0&&t&&n.set(`t`,String(e)),We({pathname:Z,search:n.toString()?`?`+n.toString():``})}}function gn(e,t){e.stopPropagation(),P(Me(t))}let _n=V.useRef({});(0,V.useEffect)(()=>{if(!W&&Xt&&n){let e=_n.current[n]||0;e<3&&ne(n,!1)&&(_n.current[n]=e+1,P(Be(n)))}},[n,W,Xt,P]);let vn=V.useMemo(()=>()=>X&&!B&&!E&&(!z.muted||v)&&(0,U.jsx)(`div`,{className:`membership-button-wrapper`+(s?` `+s:``),children:(0,U.jsx)(gt,{uri:n})}),[z.muted,B,E,X,v,s,n]);return!J&&($&&!h||L&&!c)||F&&xt&&!B?null:u===`loading`||n&&F===void 0?(0,U.jsx)(vt,{isChannel:X,type:s,WrapperElement:Yt,xsmall:M}):F&&h&&$&&jt&&G?(0,U.jsx)(Mt,{message:r(`Mature content hidden by your preferences`),isChannel:X,type:s}):F&&h&&$||!F&&J?(0,U.jsxs)(Yt,{ref:t,className:(0,H.default)(`claim-preview__wrapper`,{"claim-preview__wrapper--row":!s,"claim-preview__wrapper--inline":s===`inline`,"claim-preview__wrapper--playlist-row":s===`small`&&D,"claim-preview__wrapper--active":f,"non-clickable":!J||l}),children:[(0,U.jsx)(Mt,{message:r(!F&&J?`Deleted content`:`This content is hidden`),isChannel:X,type:s,uri:n,collectionId:!F&&J&&D?D:void 0}),J&&!ye&&(0,U.jsx)(ft,{uri:n,collectionId:D})]}):!F&&(h||d)?d||(0,U.jsx)(Nt,{isChannel:X,type:s}):!Xt&&b&&!W&&X&&F===null?(0,U.jsx)(V.Suspense,{fallback:null,children:(0,U.jsx)(Ft,{uri:n,type:s||``})}):ln?null:(0,U.jsx)(Yt,{ref:t,role:`link`,onClick:K||s===`inline`?void 0:hn,onMouseEnter:()=>qe(!0),onMouseLeave:()=>qe(!1),onAuxClick:e=>{e.button===1&&Z&&!K&&!Ce&&(e.preventDefault(),window.open(Z,`_blank`))},className:(0,H.default)(`claim-preview__wrapper`,{"claim-preview__wrapper--row":!s,"claim-preview__wrapper--channel":X&&s!==`inline`,"claim-preview__wrapper--inline":s===`inline`,"claim-preview__wrapper--recommendation":s===`small`,"claim-preview__wrapper--playlist-row":s===`small`&&D,"claim-preview__wrapper--live":Tt,"claim-preview__wrapper--active":f,"non-clickable":l}),children:(0,U.jsxs)(U.Fragment,{children:[!s&&(0,U.jsx)(`div`,{className:`claim-preview__background`,style:tn&&{backgroundImage:`url(`+tn+`)`}}),(0,U.jsxs)(`div`,{className:(0,H.default)(`claim-preview`,{"claim-preview--small":s===`small`||s===`tooltip`,"claim-preview--large":s===`large`,"claim-preview--inline":s===`inline`,"claim-preview--tooltip":s===`tooltip`,"claim-preview--channel":X,"claim-preview--visited":!X&&!B&&St,"claim-preview--pending":K,"claim-preview--collection-editing":Qt&&Ee}),children:[!x&&(0,U.jsx)(st,{uri:n,short:!1}),Le&&(0,U.jsx)(`span`,{className:`card__subtitle card__subtitle--small-no-margin claim-preview__list-index`,children:A+1}),Qt&&Ee&&!qt&&(0,U.jsx)(Pt,{uri:n,collectionId:Y,isEditPreview:Oe,dragHandleProps:ke,doDisablePlayerDrag:He}),X&&F?(0,U.jsx)(et,{focusable:!1,uri:n,link:!0,external:q,children:(0,U.jsx)(Ye,{uri:n,small:s===`inline`})}):(0,U.jsx)(U.Fragment,{children:K?(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(mt,{thumbnail:mn,uri:n,children:(0,U.jsx)(`div`,{className:`claim-preview__file-property-overlay`,children:(0,U.jsx)(ct,{uri:n,small:s===`small`,isSubscribed:!1,iconOnly:!1,xsmall:M,pending:!0})})})}):(0,U.jsx)(y,{"aria-hidden":!0,tabIndex:-1,...pn,target:q&&`_blank`,children:(0,U.jsxs)(mt,{thumbnail:mn,small:M,hoverPreview:!M,uri:n,secondaryUri:zt,externalHover:Ge,children:[!M&&(0,U.jsxs)(`div`,{className:`claim-preview__hover-
2actions-grid`,children:[an&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(tt,{focusable:!1,uri:cn}),(0,U.jsx)(at,{focusable:!1,uri:cn})]}),I&&(!L||Tt)&&(0,U.jsx)(ut,{uri:cn})]}),(0,U.jsx)(`div`,{className:`claim-preview__file-property-overlay`,children:(0,U.jsx)(ct,{uri:n,small:s===`small`,isSubscribed:!1,iconOnly:!1,xsmall:M})}),R&&(0,U.jsx)(ht,{collectionId:Y}),(0,U.jsx)(it,{uri:n})]})})}),(0,U.jsxs)(`div`,{className:`claim-preview__text`,children:[(0,U.jsxs)(`div`,{className:`claim-preview-metadata`,children:[(0,U.jsxs)(`div`,{className:`claim-preview-info`,children:[K?(0,U.jsx)(_t,{uri:n}):(0,U.jsx)(y,{"aria-label":dn,"aria-current":f?`page`:null,...pn,target:q&&`_blank`,children:(0,U.jsx)(_t,{uri:n})}),z.blacklisted&&B&&(0,U.jsx)(`a`,{href:`https://help.odysee.tv/category-uploading/dmca-content/#receiving-a-dmca-notice`,target:`_blank`,rel:`noreferrer`,onClick:e=>{e.stopPropagation()},children:(0,U.jsx)(`div`,{className:`dmca-info`,children:r(`DMCA flagged`)})}),z.filtered&&B&&(0,U.jsx)(`a`,{href:`https://help.odysee.tv/category-uploading/dmca-content/#receiving-a-dmca-notice`,target:`_blank`,rel:`noreferrer`,onClick:e=>{e.stopPropagation()},children:(0,U.jsx)(`div`,{className:`dmca-info`,children:r(`Filtered`)})}),(K||!!It)&&(0,U.jsx)(kt,{uri:n})]}),(0,U.jsxs)(`div`,{className:`claim-tile__info`,children:[!X&&on&&(0,U.jsx)(`div`,{className:`claim-preview__channel-staked`,children:(0,U.jsx)(et,{focusable:!1,uri:n,link:!0,hideAnonymous:!0,external:q,children:(0,U.jsx)(Ye,{uri:on.permanent_url,xsmall:!0})})}),(0,U.jsx)(Ot,{uri:n,type:s,showAtSign:X}),rn,s!==`small`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`claim-preview__tags`,children:F&&(0,U.jsx)(V.Fragment,{children:typeof C==`function`?C(F):C===void 0?!Ut&&(0,U.jsx)(Ct,{uri:n,type:s}):C})}),X&&ve&&F&&ve(F)]})]}),(K||!!It)&&(0,U.jsx)(kt,{uri:n}),!s&&(0,U.jsx)(`div`,{className:`description__wrapper`,children:(0,U.jsx)(`div`,{className:`description`,children:F?.value?.description||r(`No description available.`)})})]}),s!==`small`&&(!K||!s)&&X&&(0,U.jsxs)(`div`,{className:`claim-preview__actions`,children:[!E&&(0,U.jsx)(vn,{}),!K&&(0,U.jsx)(U.Fragment,{children:nn||ve?null:oe===void 0?(0,U.jsxs)(U.Fragment,{children:[X&&!B&&(!z.muted||v)&&(0,U.jsx)(Qe,{uri:sn||(n.startsWith(`lbry://`)?n:`lbry://${n}`),shrinkOnMobile:!1}),_e&&s&&(0,U.jsx)(Et,{uri:n})]}):oe})]})]})]}),Fe&&(0,U.jsx)(`div`,{onClick:e=>gn(e,n),className:`claim-preview__history-remove`,children:(0,U.jsx)(g,{icon:`X`})}),F&&L&&(0,U.jsx)(At,{uri:n}),!ye&&(0,U.jsx)(ft,{uri:n,collectionId:Y})]})})}),It=V.memo(K);export{Et as a,Ot as i,Pt as n,Ct as o,At as r,It as t}; 3//# sourceMappingURL=claimPreview-wgZQlyWF.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.