1import"../chunks/DsnmJJEf.js";import{p as ue,f as D,a as h,d as ge,g as e,b as k,u as a,c as pe,e as g,s as m,r as p}from"../chunks/bP0nuir6.js";import{s as fe,a as ve}from"../chunks/DXgkfp3-.js";import{i as b}from"../chunks/DPn6KBIp.js";import{S as he}from"../chunks/Cd1PCyjV.js";import{H as be}from"../chunks/DM2fizm3.js";import{A as _e}from"../chunks/CAS0bB5a.js";import{P as ke}from"../chunks/CGdGGZVw.js";import{S as C}from"../chunks/DJUKkCaw.js";import{R as Se}from"../chunks/BrctZbaT.js";import{P as we}from"../chunks/qcN9R2bK.js";import{E as ye}from"../chunks/1PnhtbgP.js";import"../chunks/BgMTVep1.js";import{Q as Ae}from"../chunks/DmPRsabd.js";import{c as Pe}from"../chunks/wNQdzvUl.js";import{S as $e}from"../chunks/BRZCDZRG.js";import{S as Ce}from"../chunks/CVVqP8fY.js";import{g as j}from"../chunks/BvZ6AWUP.js";import{p as Te}from"../chunks/C4yHtSvz.js";var xe=k('<div class="mb-8"><!></div>'),Le=k('<div class="mt-10 mb-8"><!></div>'),Re=k('<div class="mt-0 mb-12"><!></div>'),Ie=k("<!> <!> <!> <!> <!>",1),De=k('<div class="mt-8"><!></div>'),Ue=k('<!> <div class="w-full min-h-screen bg-canvas"><!> <div class="max-w-7xl mx-auto px-6 pb-8 pt-8 md:pt-10"><div class="mb-8 flex flex-wrap items-center justify-between gap-3"><!> <div class="flex items-center gap-2"><!></div></div> <!> <!> <!></div></div>',1);function et(z,i){ue(i,!0);const _=()=>ve(Te,"$page",J),[J,W]=fe(),r=a(()=>i.data.tag),T=a(()=>i.data.assets),P=a(()=>i.data.meta),s=a(()=>i.data.filters),U=a(()=>i.data.relatedPills||[]),F=a(()=>e(r).header_image_url&&e(r).header_image_url!=="/placeholder.svg"),X=a(()=>{const t=[];t.push(Pe("tag",_().params.slug||"",12,"TagGridDisplayAd"));const o=i.data.sponsoredAssets;if(!o?.length)return t;const d=o.slice(0,3);d.length&&t.push({afterIndex:8,type:"assets",assets:d});const u=o.slice(3,7);return u.length>=4&&t.push({afterIndex:11,type:"grid",title:"Related on Adobe Stock",seeAllHref:`https://adobe.prf.hn/click/camref:1011lKL49/pubref:FOCAStock_TagGrid/[subaffiliatedomain:www.focastock.com]/destination:https://stock.adobe.com/search?k=${encodeURIComponent(e(r).name)}`,seeAllLabel:"See all",items:u.map(l=>({thumbnail_url:l.thumbnail_url,href:l.external_url,name:l.name}))}),t}),f=a(()=>i.data.sponsoredAssets||[]),H=a(()=>i.data.sponsoredVideoAssets||[]),O=a(()=>i.data.quickDesignPhotos||[]),x=a(()=>e(s).type==="templates");function Y(t){const o=new URLSearchParams(_().url.searchParams);t==="all"?o.delete("type"):o.set("type",t),o.set("page","1"),j(`?${o.toString()}`)}function Z(t){const o=new URLSearchParams(_().url.searchParams);t==="newest"?o.delete("sort"):o.set("sort",t),o.set("page","1"),j(`?${o.toString()}`)}const ee=a(()=>e(s).type||"all"),te=a(()=>e(s).sort||"newest"),ae=a(()=>[{label:"Home",href:"/"},{label:"Tags",href:"/tags"},{label:e(r).name,href:_().url.pathname}]),oe=[{value:"all",label:"All"},{value:"photos",label:"Photos"},{value:"videos",label:"Videos"},{value:"templates",label:"Templates"}],re=a(()=>e(P).total>0?`${e(P).total.toLocaleString()} free photos and videos`:""),se=a(()=>()=>{const t={};return e(s).orientation&&(t.orientation=e(s).orientation),e(s).color&&(t.color=e(s).color),e(s).license&&e(s).license!=="free"&&(t.license=e(s).license),e(s).type&&e(s).type!=="all"&&(t.type=e(s).type),e(s).sort&&e(s).sort!=="newest"&&(t.sort=e(s).sort),e(s).category&&(t.category=e(s).category),e(s).collection&&(t.collection=e(s).collection),t});var V=Ue(),B=D(V);{let t=a(()=>e(r).asset_count||"thousands of"),o=a(()=>e(r).name);he(B,{get title(){return`#${e(r).name??""} - Stock Photos, Videos & Templates | FOCA Stock`},get description(){return`Browse ${e(t)??""} stock assets tagged with ${e(o)??""}. Free for commercial use.`},get url(){return _().url.href}})}var K=m(B,2),q=g(K);{const t=l=>{{let v=a(()=>e(F)?"overlay":"light");we(l,{get variant(){return e(v)},get searchTerm(){return e(r).name},contentType:"photos",routeType:"tag",get slug(){return _().params.slug}})}},o=l=>{var v=pe(),$=D(v);{var R=S=>{{let I=a(()=>e(F)?"dark":"light");Se(S,{label:"Related",get items(){return e(U)},get variant(){return e(I)}})}};b($,S=>{e(U).length>0&&S(R)})}h(l,v)};let d=a(()=>e(r).description||`Discover stock photos, videos, and templates tagged with "${e(r).name}".`),u=a(()=>e(r).header_image_url||"");be(q,{get title(){return e(r).name},get subtitle(){return e(d)},variant:"taxonomy",get breadcrumbs(){return e(ae)},get headerImageUrl(){return e(u)},get assetCount(){return e(re)},adSlot:t,pills:o,$$slots:{adSlot:!0,pills:!0}})}var G=m(q,2),L=g(G),E=g(L);Ce(E,{get value(){return e(ee)},get options(){return oe},ariaLabel:"Asset type",onchange:Y});var M=m(E,2),ne=g(M);$e(ne,{get value(){return e(te)},onchange:Z}),p(M),p(L);var N=m(L,2);{var le=t=>{var o=Ie(),d=D(o);{var u=n=>{var c=xe(),w=g(c);{let y=a(()=>`Sponsored results for â${e(r).name}â`),A=a(()=>encodeURIComponent(e(r).name));C(w,{get assets(){return e(f)},get title(){return e(y)},ctaLabel:"See all on Adobe Stock",get ctaHref(){return`https://adobe.prf.hn/click/camref:1011lKL49/pubref:FOCAStock_TagRow/[subaffiliatedomain:www.focastock.com]/destination:https://stock.adobe.com/search?k=${e(A)??""}`}})}p(c),h(n,c)};b(d,n=>{e(f).length>0&&n(u)})}var l=m(d,2);_e(l,{get assets(){return e(T)},get sponsoredSlots(){return e(X)},variant:"captioned"});var v=m(l,2);{let n=a(()=>e(se)());ke(v,{get currentPage(){return e(P).page},get totalPages(){return e(P).total_pages},get baseUrl(){return`/tag/${e(r).slug??""}`},get queryParams(){return e(n)}})}var $=m(v,2);{var R=n=>{var c=Le(),w=g(c);{let y=a(()=>`More â${e(r).name}â on Adobe Stock`),A=a(()=>encodeURIComponent(e(r).name));C(w,{get assets(){return e(f)},get title(){return e(y)},ctaLabel:"See all on Adobe Stock",get ctaHref(){return`https://adobe.prf.hn/click/camref:1011lKL49/pubref:FOCAStock_TagBottom/[subaffiliatedomain:www.focastock.com]/destination:https://stock.adobe.com/search?k=${e(A)??""}`},maxItems:16}
1)}p(c),h(n,c)};b($,n=>{e(f).length>0&&n(R)})}var S=m($,2);{var I=n=>{var c=Re(),w=g(c);{let y=a(()=>`More â${e(r).name}â videos on Adobe Stock`),A=a(()=>encodeURIComponent(e(r).name));C(w,{get assets(){return e(H)},get title(){return e(y)},ctaLabel:"See all on Adobe Stock",get ctaHref(){return`https://adobe.prf.hn/click/camref:1011lKL49/pubref:FOCAStock_TagVideoBottom/[subaffiliatedomain:www.focastock.com]/destination:https://stock.adobe.com/video/search?k=${e(A)??""}`},maxItems:16})}p(c),h(n,c)};b(S,n=>{i.data.filters.type==="all"&&e(H).length>0&&n(I)})}h(t,o)},ie=t=>{{let o=a(()=>`No assets found with the tag "${e(r).name}" and your current filters.`);ye(t,{title:"No assets found",get message(){return e(o)},get sponsoredAssets(){return e(f)},get searchTerm(){return e(r).name}})}};b(N,t=>{e(T).length>0?t(le):e(x)||t(ie,1)})}var Q=m(N,2);{var ce=t=>{Ae(t,{get photos(){return e(O)},get query(){return e(r).name}})};b(Q,t=>{e(x)&&e(O).length>0&&t(ce)})}var me=m(Q,2);{var de=t=>{var o=De(),d=g(o);{let u=a(()=>`Premium â${e(r).name}â templates on Adobe Stock`),l=a(()=>encodeURIComponent(e(r).name));C(d,{get assets(){return e(f)},get title(){return e(u)},ctaLabel:"See all on Adobe Stock",get ctaHref(){return`https://adobe.prf.hn/click/camref:1011lKL49/pubref:FOCAStock_TagTemplates/[subaffiliatedomain:www.focastock.com]/destination:https://stock.adobe.com/search?k=${e(l)??""}`},maxItems:16})}p(o),h(t,o)};b(me,t=>{e(x)&&e(T).length===0&&e(f).length>0&&t(de)})}p(G),p(K),h(z,V),ge(),W()}export{et as component};
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.