PageSourceSearch

https://outfit7.com/_nuxt/V1veJcHu.js

js outfit7.com collected 2026-10-09 22:41:19 UTC 2,641 bytes, 2 lines download raw bytes

1import{_ as I}from"./DSXnuyB5.js";import{_ as k}from"./hKoFiw4g.js";import{d as x,n as r,r as d,o as B,ah as R,a as A,e as C,h as f,w as D,f as P}from"./BgOPsrZ5.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="1a6946c5-e3ca-4ab0-ad9c-928cf06fbc23",n._sentryDebugIdIdentifier="sentry-dbid-1a6946c5-e3ca-4ab0-ad9c-928cf06fbc23")}catch{}})();const $={class:"w-full h-full overflow-hidden rounded-lg"},V=x({__name:"youtube-slider",props:{element:{}},setup(n){const i=n,a=r(()=>i.element??i);function m(e){if(e){if(typeof e=="string")return e;if(Array.isArray(e)){const o=e[0];return(o==null?void 0:o.url)||(o==null?void 0:o.path)||(o==null?void 0:o.permalink)||(o==null?void 0:o.src)||void 0}return e.url||e.path||e.permalink||e.src||void 0}}const b=r(()=>{var o;const e=(o=a.value)==null?void 0:o.youtube_items;return Array.isArray(e)?e:[]}),p=r(()=>b.value.map(e=>({alt:(e==null?void 0:e.title)||"YouTube video",youtube_id:e==null?void 0:e.youtube_id,title:e==null?void 0:e.title,cover:m(e==null?void 0:e.cover_photo)||(e==null?void 0:e.thumbnail)||""}))),_=r(()=>{var e,o,t;return((o=(e=a.value)==null?void 0:e.header)==null?void 0:o.title)||((t=a.value)==null?void 0:t.title)||""}),g=r(()=>{var e,o,t;return((o=(e=a.value)==null?void 0:e.header)==null?void 0:o.copy)||((t=a.value)==null?void 0:t.copy)||""}),h=r(()=>{var e;return((e=a.value)==null?void 0:e.topGradientColor)||"gradient-red"}),w=r(()=>{var e;return((e=a.value)==null?void 0:e.bottomGradientColor)||"gradient-red"}),c=d(0),u=d(null),s=d(null);let l=null;function y(e){var o,t;c.value=e;try{(t=(o=u.value)==null?void 0:o.centerSlide)==null||t.call(o,e)}catch{}}return B(()=>{typeof window>"u"||s.value&&(l=new IntersectionObserver(e=>{const o=e[0];(o==null?void 0:o.isIntersecting)&&o.intersectionRatio>.01||(c.value=-1)},{threshold:[0,.01,.1]}),l.observe(s.value))}),R(()=>{if(l&&s.value){try{l.unobserve(s.value)}catch{}try{l.disconnect()}catch{}}l=null}),(e,o)=>(A(),C("div",{ref_key:"sectionRef",ref:s,class:"relative"},[f(I,{ref_key:"sliderRef",ref:u,title:_.value,copy:g.value,images:p.value,"gradient-top":h.value,"gradient-bottom":w.value,"youtube-padding":!0}
1,{slide:D(({item:t,index:v})=>[P("div",$,[f(k,{index:v,"active-index":c.value,"video-id":t.youtube_id||"",title:t.title||"","image-path":t.cover,onPlay:E=>y(v)},null,8,["index","active-index","video-id","title","image-path","onPlay"])])]),_:1},8,["title","copy","images","gradient-top","gradient-bottom"])],512))}});export{V as _};
2//# sourceMappingURL=V1veJcHu.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.