PageSourceSearch

https://retna.io/_nuxt/PJ77Copd.js

js retna.io collected 2026-10-02 06:48:09 UTC 8,532 bytes, 1 lines download raw bytes

1import{_ as K}from"./D1L1PGpl.js";import{d as Q,Y as Z,r as p,h as A,e as x,al as O,l as ss,o as i,c as l,a as t,C,v as s,R as M,G as _,b as I,y as d,F as v,z as r,ar as B,H as P,cX as V,B as ts,x as es,I as os,L as as,cs as is,N as ls,O as ns,S as cs,T as ds,_ as rs}from"./Cy8SDlIy.js";import{_ as us}from"./BCPJZIlP.js";import{u as _s,b as ps}from"./E9-v73vA.js";import{u as S}from"./LDDLopGf.js";import{u as q}from"./D3m6e84F.js";import{c as b,m as hs,p as ms}from"./yN1UTgxS.js";import{d as z}from"./DgsVf3IC.js";import{p as vs}from"./BvvMRiwr.js";import"./DUmaFYJt.js";import"./CpNrSnx8.js";import"./q3tcxGBl.js";import"./D_N3wQtt.js";import"./DEQCBy2_.js";import"./81QBaJA2.js";import"./DGaw7mHm.js";const c=f=>(cs("data-v-e03a0529"),f=f(),ds(),f),bs={key:0,class:"flex h-full items-center justify-center"},fs=["disabled"],gs=["disabled"],ks={class:"asset-header"},ys=["href"],ws={key:0,class:"author-img_block cc-large"},As={class:"author-details"},Cs={class:"author-name cc-wide"},Ms={class:"author-username"},Is=c(()=>t("div",{class:"c-divider cc-vertical cc-author"},null,-1)),Rs={class:"author-location cc-alt"},$s={class:"asset-header_right"},Ss={key:0,class:"asset-type uc-mobilehide"},Es=c(()=>t("div",null,"Download",-1)),Ds=[Es],Ts={class:"assets-cta"},js=c(()=>t("div",{class:"uc-mobilehide"},"Share",-1)),Ls=[js],Ns={class:"attribute-prompt uc-desktophide"},Os=["title"],Bs={class:"asset-info"},Ps={class:"asset-info_details"},Vs=c(()=>t("div",{class:"info_header"}," Image Details ",-1)),qs={class:"asset-name cc-small"},zs={key:0,class:"upload-date cc-small"},Fs=["title"],Hs=c(()=>t("div",null,"Attribution Required",-1)),Us=[Hs],Gs={class:"asset-img_block max-h-[80vh]"},Ws={class:"asset-details"},Xs={class:"asset-name"},Ys={class:"asset-details_inner"},Js={key:0,class:"upload-date"},Ks=c(()=>t("div",{class:"c-divider cc-vertical"},null,-1)),Qs=["title"],Zs=c(()=>t("div",null,"Attribution Required",-1)),xs=[Zs],st=c(()=>t("div",{class:"c-divider cc-vertical"},null,-1)),tt=c(()=>t("div",null,"Share",-1)),et=[tt],ot={class:"asset-stats"},at={class:"asset-stats_left"},it={class:"stat-block_wrapper"},lt={class:"stat-block"},nt=c(()=>t("p",{class:"sm-paragraph cc-grey-text"}," Views ",-1)),ct={class:"stat-block"},dt=c(()=>t("p",{class:"sm-paragraph cc-grey-text"}," Downloads ",-1)),rt={class:"tag-block"},ut=c(()=>t("p",{class:"sm-paragraph uc-nomargin cc-grey-text"}," Tags ",-1)),_t={key:0,class:"tag-wrapper cc-show"},pt={class:"asset-stats_right"},ht=c(()=>t("div",{class:"uc-mobilehide"},"Report",-1)),mt=[ht],vt=c(()=>t("div",null,"Download",-1)),bt=[vt],ft={key:0,class:"more-assets"},gt={class:"more-assets_header"},kt=c(()=>t("div",null,"More Assets",-1)),yt=c(()=>t("div",null,"View All",-1)),wt={class:"c-assets_grid cc-more"},At=Q({__name:"AssetOpenModal",setup(f){const h=Z("AssetOpenModal"),g=p(!1),u=_s(),E=ps(),o=p(S({})),m=p([]),R=p("This image is free to download but you will need to attribute the creator(s) whenever you use this image commercially"),k=p(""),y=p(""),$=p(!1),F=async()=>{const{data:e}=await q(`/${k.value}/${y.value}/related`);e.value&&(m.value=e.value)},D=async()=>{os("modal"),m.value=[],$.value=!0;const{data:e}=await q(`/${k.value}/${y.value}`);e.value&&(o.value=S(e.value),F(),$.value=!1)},H=A(()=>o.value.get("author_summary.username")===x().value.user.username);O(()=>h.isVisible,e=>{document.body.style.overflow=e?"hidden":""});const U=()=>{b(),as().push(`/${o.value.get("author_summary.username",[is])}`)},T=e=>{const a=E.value.find((N,w)=>w===e);a&&(u.value={...a,index:e},o.value=S(vs(u.value,["title","featured_image","blur_hash"])),ms(a))},G=()=>{const e=u.value.index+1;T(e)},W=()=>{const e=u.value.index-1;T(e)},j=A(()=>u.value.index===0),L=A(()=>u.value.index===E.value.length-1),X=A(()=>{var a;const e=(a=u.value.author_summary)==null?void 0:a.name;return e&&e.endsWith("-")?e.slice(0,-1):e});return O(u,e=>{if(e.kind==="editorial")return h.hide(),h.show("EditorialOpenModal"),!1;k.value=e.kind==="asset"?"assets":"posts",y.value=e.slug,D()}),ss(()=>{k.value=u.value.kind==="asset"?"assets":"posts",y.value=u.value.slug,D()}),(e,a)=>{const N=K,w=ls,Y=ns,J=us;return i(),l("div",null,[t("div",{class:"c-asset_popup cc-show",onClick:a[8]||(a[8]=(...n)=>("closeAssetModal"in e?e.closeAssetModal:s(b))&&("closeAssetModal"in e?e.closeAssetModal:s(b))(...n))},[t("div",{class:C(["c-popup_inner",{"min-h-[80vh]":("lodashIsEmpty"in e?e.lodashIsEmpty:s(M))(s(o).obj)}]),onClick:a[7]||(a[7]=_(()=>{},["stop"]))},[("lodashIsEmpty"in e?e.lodashIsEmpty:s(M))(s(o).obj)?(i(),l("div",bs,[I(N)])):d("",!0),t("div",{class:"c-popup_close",onClick:a[0]||(a[0]=(...n)=>("closeAssetModal"in e?e.closeAssetModal:s(b))&&("closeAssetModal"in e?e.closeAssetModal:s(b))(...n))}),t("button",{class:C(["c-popup_arrow cc-prev",{"cc-disabled":s(j)}]),disabled:s(j),onClick:_(W,["prevent","stop"])},null,10,fs),t("button",{class:C(["c-popup_arrow cc-next",{"cc-disabled":s(L)}]),disabled:s(L),onClick:_(G,["prevent","stop"])},null,10,gs),("lodashIsEmpty"in e?e.lodashIsEmpty:s(M))(s(o).obj)?d("",!0):(i(),l(v,{key:1},[t("div",ks,[t("a",{class:"asset-header_left w-inline-block cursor-pointer",href:("makeContributorUrl"in e?e.makeContributorUrl:s(hs))(s(o).author_summary),onClick:_(U,["prevent","stop"])},[s(o).get("author_summary.picture")?(i(),l("div",ws,[I(w,{alt:`${s(o).get("author_summary.name")} - Profile Picture`,class:"c-img cc-cover",loading:"lazy",preferSrc:!0,src:s(o).get("author_summary.picture"),transform:{width:64,format:"webp"}},null,8,["alt","src"])])):d("",!0),t("div",As,[t("div",Cs,r(s(X)),1),t("div",Ms,"@"+r(s(o).get("author_summary.username")),1),s(o).location?(i(),l(v,{key:0},[Is,t("div",Rs,r(s(o).location),1)],64)):d("",!0)])],8,ys),t("div",$s,[s(o).get("resources[0].file_type")?(i(),l("div",Ss,r(s(o).get("resources[0].file_type")),1)):d("",!0),t("a",{class:"c-button cc-download uc-mobilehide w-inline-block",onClick:a[1]||(a[1]=_(n=>("download"in e?e.download:s(z))(s(o).obj),["prevent","stop"]))},Ds),t("div",Ts,[t("a",{class:"c-button cc-share uc-desktophide w-inline-block",onClick:a[2]||(a[2]=_(n=>s(h).show("AssetShareModal"),["prevent","stop"]))},Ls),t("div",Ns,[s(o).get("attribute")?(i(),l("div",{key:0,class:"uc-mobilehide cursor-default",title:s(R)}," Attribution Required ",8,Os)):d("",!0),t("div",Bs,[t("div",Ps,[Vs,t("div",qs,r(s(o).get("title")),1),s(o).get("created_at")?(i(),l("div",zs," Published "+r(s(o).get("created_at",["formatDate"in e?e.formatDate:s(B)])),1)):d("",!0)]),s(o).get("attribute")?(i(),l("div",{key:0,class:"attribution-prompt cursor-default",title:s(R)},Us,8,Fs)):d("",!0)])])])])]),t("div",Gs,[I(w,{alt:s(o).title,blurHash:s(o).blur_hash,class:"c-img cc-cover",loading:"eager",preferSrc:!0,provider:"retna_mdn",src:s(o).featured_image,transform:{width:1e3,format:"webp"}},null,8,["alt","blurHash","src"])]),t("div",Ws,[t("div",Xs,r(s(o).title),1),t("div",Ys,[s(o).get("created_at")?(i(),l("div",Js,r(s(o).get("created_at",["formatDate"in e?e.formatDate:s(B)])),1)):d("",!0),Ks,s(o).get("attribute")?(i(),l(v,{key:1},[t("div",{class:"attribute-prompt cursor-default",title:s(R)},xs,8,Qs),st],64)):d("",!0),t("a",{class:"c-button cc-share w-inline-block",onClick:a[3]||(a[3]=_(n=>s(h).show("AssetShareModal"),["prevent","stop"]))},et)])]),t("div",ot,[t("div",at,[t("div",it,[t("div",lt,[nt,t("div",null,r(s(o).get("view_count")),1)]),t("div",ct,[dt,t("div",null,r(s(o).get("downloads_count")),1)])]),t("div",rt,[t("div",{class:"tag-btn",onClick:a[4]||(a[4]=n=>
1g.value=!s(g))},[ut,t("div",{class:C(["chevron-icon",{"cc-active":s(g)}])},null,2)]),s(g)?(i(),l("div",_t,[(i(!0),l(v,null,P(s(o).obj.tags,n=>(i(),l("div",{key:n.id,class:"tag"},r(n.name),1))),128))])):d("",!0)])]),t("div",pt,[!s(H)&&!s($)?(i(),l("a",{key:0,class:"c-button cc-report w-inline-block",onClick:a[5]||(a[5]=_((...n)=>("initiateReportAsset"in e?e.initiateReportAsset:s(V))&&("initiateReportAsset"in e?e.initiateReportAsset:s(V))(...n),["prevent","stop"]))},mt)):d("",!0),t("a",{class:"c-button cc-download uc-desktophide w-inline-block",onClick:a[6]||(a[6]=_(n=>("download"in e?e.download:s(z))(s(o).obj),["prevent","stop"]))},bt)])]),("lodashIsEmpty"in e?e.lodashIsEmpty:s(M))(s(m))?d("",!0):(i(),l("div",ft,[t("div",gt,[kt,I(Y,{class:"view-btn w-inline-block",to:"/assets"},{default:ts(()=>[yt]),_:1})]),t("div",wt,[(i(!0),l(v,null,P(s(m),n=>(i(),es(J,{key:n.id,asset:n,isRelatedAsset:!0,otherAssets:s(m)},null,8,["asset","otherAssets"]))),128))])]))],64))],2)])])}}}),qt=rs(At,[["__scopeId","data-v-e03a0529"]]);export{qt 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.