PageSourceSearch

https://erikalust.com/_nuxt4/CLxN5bmm.js

js erikalust.com collected 2026-10-02 04:43:13 UTC 6,825 bytes, 1 lines download raw bytes

1import{u as ee,T as fe,a as R}from"./CUG_yEYr.js";import{u as be,a as he,D as S,L as j}from"./D5Y19T86.js";import{S as ye,t as _e}from"./tMDy53DN.js";import{I as Pe,M as xe}from"./Du6tJ63X.js";import{F as Se}from"./C3wLsjO2.js";import{aW as e,aK as Me,bn as Te,bl as Ce,bo as we,bm as Le,bh as M,bi as ke,aX as J,aQ as A,aR as $,aN as Ee,b8 as Ne,aU as W,aZ as s,aP as Y,aJ as Be,aO as z,by as De,bz as Ie}from"#entry";import{u as Fe}from"./DrNggzfu.js";import{u as ae}from"./BH8mxIPa.js";import{u as Oe,a as Qe}from"./DJ6kJHZE.js";import{u as Re}from"./D3mcJqW7.js";import"./C8tdCacw.js";import"./Tuu9LPQI.js";import"./6w6cMtHA.js";import"./DOSPYcJw.js";import"./BCl0hV64.js";import"./BJGAv3hM.js";import"./bfnnWKO4.js";import"./Dz8SA2Gw.js";import"./CszUXe9t.js";import"./P5AMOxwv.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="0c7c059f-658a-4f4a-b217-c455227e1ef5",o._sentryDebugIdIdentifier="sentry-dbid-0c7c059f-658a-4f4a-b217-c455227e1ef5")}catch{}})();function Ae({taxonomy:o,markerMode:r,sort:g,queryInitialPage:m,pageSize:l,initialRouteFullPath:p,routeFullPath:T}){const u=ee(),C=Oe(),f=Qe(),b=e(()=>({labelId:o.value?.id??0,perPage:l,sortBy:g.value.order,direction:g.value.dir})),h=e(()=>({sceneMarkerId:o.value?.id??0,perPage:l,sortBy:g.value.order,direction:g.value.dir})),w=`labels-slug-initial-movies:${p}`,{data:c}=ae(w,async()=>o.value?.id?r.value?await u.getSceneMarkerMovies({...h.value,page:m.value}):await u.getLabelMovies({...b.value,page:m.value}):null,{server:!0,lazy:!1,default:()=>null}),d=e(()=>T.value===p?c.value??null:null),L=e(()=>!!o.value?.id&&!r.value),y=e(()=>!!o.value?.id&&r.value),k=C.labelMoviesInfinite(b,m,{initialData:d,enabled:L}),i=f.sceneMarkerMoviesInfinite(h,m,{initialData:d,enabled:y}),t=e(()=>r.value?i:k),v=e(()=>t.value.items.value),E=e(()=>t.value.status.value),N=e(()=>t.value.error.value),B=e(()=>t.value.isLoading.value),_=e(()=>t.value.isFetchingNextPage.value),D=e(()=>t.value.hasNextPage.value),P=e(()=>t.value.hasPreviousPage.value),I=e(()=>t.value.isFetchingPreviousPage.value),F=e(()=>t.value.data.value?.pages);function O(){t.value.fetchNextPage()}function Q(){t.value.fetchPreviousPage()}return{items:v,status:E,error:N,isLoading:B,isFetchingNextPage:_,hasNextPage:D,fetchNextPage:O,hasPreviousPage:P,isFetchingPreviousPage:I,fetchPreviousPage:Q,pages:F}}const $e={class:"min-h-screen"},ze={class:"mb-6 mt-14 md:mb-8"},Ke={class:"mb-6 flex justify-end"},Ue={class:"text-sm text-gray-400"},Ve=["innerHTML"],K=24,da=Me({__name:"[slug]",async setup(o){let r,g;const m=["i-lucide-heart","i-lucide-clapperboard","i-lucide-flame"],l=Te(),p=Ce(),T=l.fullPath,{t:u}=we(),C=Be(),f=ee(),{setBreadcrumbs:b,clearBreadcrumbs:h}=Fe(),w={order:S.order,dir:S.dir},c=e(()=>String(l.params.slug??"")),d=e(()=>l.query.marker==="true");function L(a){return j.some(n=>n.order===a.order&&n.dir===a.dir)}const y=e(()=>{const a=he(l.query);return L(a)?a:w});async function k(){try{return d.value?await f.getSceneMarkerBySlug(c.value):await f.getLabelBySlug(c.value)}catch(a){throw a instanceof fe&&(a.type===R.LabelNotFound||a.type===R.SceneMarkerNotFound)?De({statusCode:404,statusMessage:a.type===R.SceneMarkerNotFound?"Scene marker not found":"Label not found",fatal:!0}):a}}const{data:i,error:t}=([r,g]=Le(()=>ae(e(()=>`labels-slug:${d.value?"scene-marker":"label"}:${c.value}`),k,{server:!0,lazy:!1,watch:[c,d],default:()=>null})),r=await r,g(),r);if(t.value)throw t.value;M(t,a=>{a&&Ie(a)}),M([c,d],()=>{i.value=null});const v=e(()=>i.value?.name??c.value),E=e(()=>u("pages.labels.title",{label:v.value})),N=e(()=>u("pages.labels.empty",{label:v.value})),B=e(()=>u("pages.taxonomyIndex.error.title").toString());M(v,a=>{b([{labelKey:"pages.labels_index.title"},{label:a,pending:!i.value}])},{immediate:!0});const{queryInitialPage:_,startPage:D,currentPage:P,handlePageChange:I,resetPage:F,bindPages:O}=be();M([c,d],()=>{F()});function Q(a){_.value=1;const n={...l.query};delete n.page,a.order===S.order?delete n.order:n.order=a.order,a.dir===S.dir?delete n.dir:n.dir=a.dir,p.replace({query:n})}const{items:U,status:te,error:V,isLoading:se,isFetchingNextPage:oe,hasNextPage:re,fetchNextPage:ne,hasPreviousPage:ie,isFetchingPreviousPage:le,fetchPreviousPage:ue,pages:ce}=Ae({taxonomy:i,markerMode:d,sort:y,queryInitialPage:_,pageSize:K,initialRouteFullPath:T,routeFullPath:e(()=>l.fullPath)}),de=e(()=>te.value==="error"),ve=e(()=>V.value instanceof Error?V.value.message:"");O(()=>ce.value);const q=e(()=>(i.value?.cards??[]).flatMap((a,n)=>{const x=a.title?.trim(),Z=a.content?.trim();return!x||!Z?[]:[{icon:m[n]??"i-lucide-sparkles",title:x,text:Z}]})),G=e(()=>!!i.value?.long_description&&q.value.length===0),ge=e(()=>U.value.length>0&&!G.value),H=e(()=>{const a=i.value;return!a||!("above_seo_cards_text"in a)||typeof a.above_seo_cards_text!="string"?"":a.above_seo_cards_text.trim()}),me=e(()=>H.value.length>0),pe=e(()=>me.value?H.value:i.value?u("pages.labels.seoCardsTitle",{label:v.value}).toString():""),X=e(()=>C.public.app.brandCode==="OL"?"pages.labels.meta.OlTitle":"pages.labels.meta.title");return Re({title:e(()=>P.value>1?`${u(X.value,{label:v.value})} - Page ${P.value}
1`:u(X.value,{label:v.value}).toString()),description:e(()=>u("pages.labels.meta.description",{label:v.value}).toString()),canonicalPath:e(()=>l.path)}),ke(()=>{h()}),(a,n)=>(z(),J("div",$e,[A("h1",ze,W(E.value),1),A("div",Ke,[$(ye,{options:s(j),sort:y.value,onSortChanged:Q},null,8,["options","sort"])]),$(Pe,{items:s(U),"is-loading":s(se),"is-error":de.value,"error-title":B.value,"error-description":ve.value,"is-fetching-more":s(oe),"has-next-page":s(re),"has-previous-page":s(ie),"is-fetching-prev":s(le),"start-page":s(D),"skeleton-count":K,"page-size":K,"item-key":"id",onLoadMore:s(ne),onLoadPrev:s(ue),onPageChange:s(I)},{item:Y(({item:x})=>[$(xe,{card:s(_e)(x)},null,8,["card"])]),empty:Y(()=>[A("p",Ue,W(N.value),1)]),_:1},8,["items","is-loading","is-error","error-title","error-description","is-fetching-more","has-next-page","has-previous-page","is-fetching-prev","start-page","onLoadMore","onLoadPrev","onPageChange"]),G.value?(z(),J("section",{key:0,class:"mx-auto my-14 max-w-screen-2xl text-sm text-white tablet:text-base [&_a]:font-bold [&_h2]:text-lg [&_h2]:font-semibold [&_h2:not(:first-of-type)]:mt-3 [&_h3]:text-lg [&_h3]:font-semibold [&_h3:not(:first-of-type)]:mt-3 [&_p]:mb-4","data-test":"label-long-description",innerHTML:s(i)?.long_description},null,8,Ve)):ge.value?(z(),Ee(Se,{key:1,title:pe.value,"render-when-empty":"",cards:q.value,"section-data-test":"label-seo-cards-section","title-data-test":"label-seo-cards-title"},null,8,["title","cards"])):Ne("",!0)]))}});export{da 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.