PageSourceSearch

https://www.steviaplease.me/_nuxt/WorkMedia.4d4ecb68.js

js steviaplease.me collected 2026-10-04 21:02:35 UTC 13,764 bytes, 1 lines download raw bytes

1import{r as g,o as le,m as ce,J as h,d as b,c as k,C as Pe,n as de,k as H,q as He,b2 as ue,g as Fe,x as Ge,f as B,F as je,Q as We,l as qe}from"./entry.964128ba.js";import{V as Je}from"./ViewportTracker.0817b048.js";import{P as Qe}from"./plyr.min.851d14af.js";const Ye={__name:"WorkDeco",props:{slice:{type:Object,required:!0},type:{type:String,required:!0}},setup(e,{expose:t}){const o=e,a=g(),r=g({animateIn:!1});t({$el:a,setSize:l,onScroll:s,animateIn:i,animateOut:O}),le(()=>{l()}),ce(()=>{clearTimeout(r.value.animateOutTo)});function l(){r.value.bbox=a.value.parentNode.getBoundingClientRect()}function i(){r.value.animatedIn=!0}function O(){r.value.animatedIn=!1}function s(u,f){if(f){let I=h(f.progress,0,1,-r.value.bbox.height*.2,-r.value.bbox.height*.7,!0),x=h(f.progress,0,1,-10,90,!0);o.type==="work-asim"?(I=h(f.progress,0,1,-r.value.bbox.height*0,-r.value.bbox.height*.4,!0),x=h(f.progress,0,1,-10,90,!0)):o.type==="work-n-player"&&(I=h(f.progress,0,1,-r.value.bbox.height*.2,-r.value.bbox.height*.6,!0),x=h(f.progress,0,1,-11,92,!0)),a.value.style.transform=`translate3d(0, ${I}px, 0) rotate(${x}deg)`}}return(u,f)=>{const I=ue;return b(),k("div",{class:de(["work-deco",H(r).animatedIn?"work-deco--in":"work-deco--sleep"]),style:He(e.slice.primary.icon_percent_position_x?`left: ${e.slice.primary.icon_percent_position_x}%`:""),ref_key:"$el",ref:a},[Pe(I,{field:e.slice.primary.icon,ref:"$img"},null,8,["field"])],6)}}},po=Ye,m=typeof window<"u",fe=m&&!("onscroll"in window)||typeof navigator<"u"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),pe=m&&"IntersectionObserver"in window,ve=m&&"classList"in document.createElement("p"),ge=m&&window.devicePixelRatio>1,Ze={elements_selector:".lazy",container:fe||m?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},_e=e=>Object.assign({},Ze,e),ae=function(e,t){let o;const a="LazyLoad::Initialized",r=new e(t);try{o=new CustomEvent(a,{detail:{instance:r}})}catch{o=document.createEvent("CustomEvent"),o.initCustomEvent(a,!1,!1,{instance:r})}window.dispatchEvent(o)},Ke=(e,t)=>{if(t)if(!t.length)ae(e,t);else for(let o=0,a;a=t[o];o+=1)ae(e,a)},_="src",G="srcset",j="sizes",be="poster",V="llOriginalAttrs",he="data",W="loading",ye="loaded",me="applied",Xe="entered",q="error",Le="native",Ie="data-",ke="ll-status",d=(e,t)=>e.getAttribute(Ie+t),et=(e,t,o)=>{const a=Ie+t;if(o===null){e.removeAttribute(a);return}e.setAttribute(a,o)},N=e=>d(e,ke),w=(e,t)=>et(e,ke,t),z=e=>w(e,null),J=e=>N(e)===null,tt=e=>N(e)===W,ot=e=>N(e)===q,Q=e=>N(e)===Le,at=[W,ye,me,q],rt=e=>at.indexOf(N(e))>=0,L=(e,t,o,a)=>
1{if(!(!e||typeof e!="function")){if(a!==void 0){e(t,o,a);return}if(o!==void 0){e(t,o);return}e(t)}},T=(e,t)=>{if(t!==""){if(ve){e.classList.add(t);return}e.className+=(e.className?" ":"")+t}},p=(e,t)=>{if(t!==""){if(ve){e.classList.remove(t);return}e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}},st=e=>{e.llTempImage=document.createElement("IMG")},nt=e=>{delete e.llTempImage},Ee=e=>e.llTempImage,D=(e,t)=>{if(!t)return;const o=t._observer;o&&o.unobserve(e)},it=e=>{e.disconnect()},lt=(e,t,o)=>{t.unobserve_entered&&D(e,o)},Y=(e,t)=>{e&&(e.loadingCount+=t)},ct=e=>{e&&(e.toLoadCount-=1)},we=(e,t)=>{e&&(e.toLoadCount=t)},dt=e=>e.loadingCount>0,ut=e=>e.toLoadCount>0,Oe=e=>{let t=[];for(let o=0,a;a=e.children[o];o+=1)a.tagName==="SOURCE"&&t.push(a);return t},Z=(e,t)=>{const o=e.parentNode;if(!o||o.tagName!=="PICTURE")return;Oe(o).forEach(t)},Se=(e,t)=>{Oe(e).forEach(t)},M=[_],Te=[_,be],R=[_,G,j],xe=[he],P=e=>!!e[V],Ae=e=>e[V],Ce=e=>delete e[V],S=(e,t)=>{if(P(e))return;const o={};t.forEach(a=>{o[a]=e.getAttribute(a)}),e[V]=o},ft=e=>{P(e)||(e[V]={backgroundImage:e.style.backgroundImage})},pt=(e,t,o)=>{if(!o){e.removeAttribute(t);return}e.setAttribute(t,o)},E=(e,t)=>{if(!P(e))return;const o=Ae(e);t.forEach(a=>{pt(e,a,o[a])})},vt=e=>{if(!P(e))return;const t=Ae(e);e.style.backgroundImage=t.backgroundImage},Re=(e,t,o)=>{T(e,t.class_applied),w(e,me),o&&(t.unobserve_completed&&D(e,t),L(t.callback_applied,e,o))},Ve=(e,t,o)=>{T(e,t.class_loading),w(e,W),o&&(Y(o,1),L(t.callback_loading,e,o))},y=(e,t,o)=>{o&&e.setAttribute(t,o)},re=(e,t)=>{y(e,j,d(e,t.data_sizes)),y(e,G,d(e,t.data_srcset)),y(e,_,d(e,t.data_src))},gt=(e,t)=>{Z(e,o=>{S(o,R),re(o,t)}),S(e,R),re(e,t)},_t=(e,t)=>{S(e,M),y(e,_,d(e,t.data_src))},bt=(e,t)=>{Se(e,o=>{S(o,M),y(o,_,d(o,t.data_src))}),S(e,Te),y(e,be,d(e,t.data_poster)),y(e,_,d(e,t.data_src)),e.load()},ht=(e,t)=>{S(e,xe),y(e,he,d(e,t.data_src))},yt=(e,t,o)=>{const a=d(e,t.data_bg),r=d(e,t.data_bg_hidpi),l=ge&&r?r:a;l&&(e.style.backgroundImage=`url("${l}")`,Ee(e).setAttribute(_,l),Ve(e,t,o))},mt=(e,t,o)=>{const a=d(e,t.data_bg_multi),r=d(e,t.data_bg_multi_hidpi),l=ge&&r?r:a;l&&(e.style.backgroundImage=l,Re(e,t,o))},Lt=(e,t,o)=>{const a=d(e,t.data_bg_set);if(!a)return;const r=a.split("|");let l=r.map(i=>`image-set(${i})`);e.style.backgroundImage=l.join(),e.style.backgroundImage===""&&(l=r.map(i=>`-webkit-image-set(${i})`),e.style.backgroundImage=l.join()),Re(e,t,o)},Ne={IMG:gt,IFRAME:_t,VIDEO:bt,OBJECT:ht},It=(e,t)=>{const o=Ne[e.tagName];o&&o(e,t)},kt=(e,t,o)=>{const a=Ne[e.tagName];a&&(a(e,t),Ve(e,t,o))},Et=["IMG","IFRAME","VIDEO","OBJECT"],wt=e=>Et.indexOf(e.tagName)>-1,$e=(e,t)=>{t&&!dt(t)&&!ut(t)&&L(e.callback_finish,t)},se=(e,t,o)=>{e.addEventListener(t,o),e.llEvLisnrs[t]=o},Ot=(e,t,o)=>{e.removeEventListener(t,o)},K=e=>!!e.llEvLisnrs,St=(e,t,o)=>{K(e)||(e.llEvLisnrs={});const a=e.tagName==="VIDEO"?"loadeddata":"load";se(e,a,t),se(e,"error",o)},F=e=>{if(!K(e))return;const t=e.llEvLisnrs;for(let o in t){const a=t[o];Ot(e,o,a)}delete e.llEvLisnrs},Be=(e,t,o)=>{nt(e),Y(o,-1),ct(o),p(e,t.class_loading),t.unobserve_completed&&D(e,o)},Tt=(e,t,o,a)=>{const r=Q(t);Be(t,o,a),T(t,o.class_loaded),w(t,ye),L(o.callback_loaded,t,a),r||$e(o,a)},xt=(e,t,o,a)=>{const r=Q(t);Be(t,o,a),T(t,o.class_error),w(t,q),L(o.callback_error,t,a),o.restore_on_error&&E(t,R),r||$e(o,a)},X=(e,t,o)=>{const a=Ee(e)||e;if(K(a))return;St(a,i=>{Tt(i,e,t,o),F(a)},i=>{xt(i,e,t,o),F(a)})},At=(e,t,o)=>{st(e),X(e,t,o),ft(e),yt(e,t,o),mt(e,t,o),Lt(e,t,o)},Ct=(e,t,o)=>{X(e,t,o),kt(e,t,o)},ee=(e,t,o)=>{wt(e)?Ct(e,t,o):At(e,t,o)},Rt=(e,t,o)=>{e.setAttribute("loading","lazy"),X(e,t,o),It(e,t),w(e,Le)},ne=e=>{e.removeAttribute(_),e.removeAttribute(G),e.removeAttribute(j)},Vt=e=>{Z(e,t=>{ne(t)}),ne(e)},Ue=e=>{Z(e,t=>{E(t,R)}),E(e,R)},Nt=e=>{Se(e,t=>{E(t,M)}),E(e,Te),e.load()},$t=e=>{E(e,M)},Bt=e=>{E(e,xe)},Ut={IMG:Ue,IFRAME:$t,VIDEO:Nt,OBJECT:Bt},zt=e=>{const t=Ut[e.tagName];if(!t){vt(e);return}t(e)},Dt=(e,t)=>
1{J(e)||Q(e)||(p(e,t.class_entered),p(e,t.class_exited),p(e,t.class_applied),p(e,t.class_loading),p(e,t.class_loaded),p(e,t.class_error))},Mt=(e,t)=>{zt(e),Dt(e,t),z(e),Ce(e)},Pt=(e,t,o,a)=>{o.cancel_on_exit&&tt(e)&&e.tagName==="IMG"&&(F(e),Vt(e),Ue(e),p(e,o.class_loading),Y(a,-1),z(e),L(o.callback_cancel,e,t,a))},Ht=(e,t,o,a)=>{const r=rt(e);w(e,Xe),T(e,o.class_entered),p(e,o.class_exited),lt(e,o,a),L(o.callback_enter,e,t,a),!r&&ee(e,o,a)},Ft=(e,t,o,a)=>{J(e)||(T(e,o.class_exited),Pt(e,t,o,a),L(o.callback_exit,e,t,a))},Gt=["IMG","IFRAME","VIDEO"],ze=e=>e.use_native&&"loading"in HTMLImageElement.prototype,jt=(e,t,o)=>{e.forEach(a=>{Gt.indexOf(a.tagName)!==-1&&Rt(a,t,o)}),we(o,0)},Wt=e=>e.isIntersecting||e.intersectionRatio>0,qt=e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),Jt=(e,t,o)=>{e.forEach(a=>Wt(a)?Ht(a.target,a,t,o):Ft(a.target,a,t,o))},Qt=(e,t)=>{t.forEach(o=>{e.observe(o)})},Yt=(e,t)=>{it(e),Qt(e,t)},Zt=(e,t)=>{!pe||ze(e)||(t._observer=new IntersectionObserver(o=>{Jt(o,e,t)},qt(e)))},De=e=>Array.prototype.slice.call(e),U=e=>e.container.querySelectorAll(e.elements_selector),Kt=e=>De(e).filter(J),Xt=e=>ot(e),eo=e=>De(e).filter(Xt),ie=(e,t)=>Kt(e||U(t)),to=(e,t)=>{eo(U(e)).forEach(a=>{p(a,e.class_error),z(a)}),t.update()},oo=(e,t)=>{m&&(t._onlineHandler=()=>{to(e,t)},window.addEventListener("online",t._onlineHandler))},ao=e=>{m&&window.removeEventListener("online",e._onlineHandler)},$=function(e,t){const o=_e(e);this._settings=o,this.loadingCount=0,Zt(o,this),oo(o,this),this.update(t)};$.prototype={update:function(e){const t=this._settings,o=ie(e,t);if(we(this,o.length),fe||!pe){this.loadAll(o);return}if(ze(t)){jt(o,t,this);return}Yt(this._observer,o)},destroy:function(){this._observer&&this._observer.disconnect(),ao(this),U(this._settings).forEach(e=>{Ce(e)}),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){const t=this._settings;ie(e,t).forEach(a=>{D(a,this),ee(a,t,this)})},restoreAll:function(){const e=this._settings;U(e).forEach(t=>{Mt(t,e)})}};$.load=(e,t)=>{const o=_e(t);ee(e,o)};$.resetStatus=e=>{z(e)};m&&Ke($,window.lazyLoadOptions);const ro={class:"work-media__wrapper"},so=["data-plyr-embed-id"],no=["data-plyr-embed-id"],io=["src"],lo=["src"],vo={__name:"WorkMedia",props:{image:{type:Object},borderRadius:{type:Boolean,default:!0},isPlayer:{type:Boolean,default:!0},enablePortrait:{type:Boolean,default:!1},last:{type:Boolean,default:!1},videoURL:{type:Object},st:{type:Object}},setup(e,{expose:t}){const o=e,a=g(),r=g(),l=g(),i=g(),O=g(),s=g({loaded:!1,animatedIn:!1,ty:0}),u=g();t({$el:a,$img:r,$video:i,setSize:te,onScroll:oe,onUpdate:Me}),Fe(()=>{}),le(()=>{o.videoURL&&o.videoURL.url&&o.isPlayer?f():o.videoURL&&o.videoURL.url&&!o.isPlayer?I():o.image&&o.image.url&&x(),te(),s.value.tracker=new Je(a.value,{autoSetSize:!1,autoRaf:!1,onViewportIn:()=>{i&&i.value&&i.value.play(),s.value.animatedIn=!0,clearTimeout(s.value.animateOutTo)},onViewportOut:()=>{i&&i.value&&i.value.pause(),u.value&&u.value.playing&&u.value.pause()},onViewportDownIn:()=>{},onViewportDownOut:()=>{clearTimeout(s.value.animateOutTo),s.value.animateOutTo=setTimeout(()=>{s.value.animatedIn=!1},1400)},scrollTopGetter:()=>o.st.lenis&&o.st.lenis.getScroll()||0})}),ce(()=>{clearTimeout(s.value.loadedTimeOut),clearTimeout(s.value.animateOutTo),u.value&&(u.value.pause(),setTimeout(()=>{u.value.destroy()},500)),s.value.lazy&&s.value.lazy.destroy(),i&&i.value&&i.value.pause()});function f(){u.value=new Qe(O.value,{fullscreen:{enabled:!0,fallback:!0,iosNative:!0,container:null}});const n=u.value;o.image&&o.image.url&&(n.poster=o.image.url),n.on("play",c=>{o.st.container&&o.st.container.classList.add("playing")}),n.on("ready",c=>{s.value.loadedTimeOut=setTimeout(()=>{A()},800)}),n.on("pause",c=>{o.st.container&&o.st.container.classList.remove("playing")}),n.on("ended",c=>{n.currentTime=0,o.st.container&&o.st.container.classList.remove("playing")})}function I(){const n=i.value;n.readyState>3?A():n.oncanplaythrough=()=>{A()}}function x(){let n=r.value.$el;if(n.complete)A();else{n.setAttribute("width",o.image.dimensions.width+"px"),n.setAttribute("height",o.image.dimensions.height+"px");let c=n.getAttribute("src");n.setAttribute("data-src",c),n.setAttribute("src",""),n.setAttribute("alt",""),s.value.lazy=new $({},[n]),n.onload=A}}function A(){s.value.loaded||(s.value.loaded=!0,clearTimeout(s.value.loadedTimeOut),i.value?l.value.style.visibility="visible":s.value.loadedTimeOut=setTimeout(()=>{l.value.style.display="none"},300))}function te(n){const c=a.value.getBoundingClientRect();let v=c.width,C=c.height;return o.image&&o.image.dimensions&&(v=c.width,C=v*o.image.dimensions.height/o.image.dimensions.width,a.value.style.height=`${C}px`),s.value.tracker&&s.value.tracker.resize(),a.value.style.transform=null,s.value.needsUpdate=!0,oe(),{bbox:c,width:v,height:C}}function oe(){let n=s.value.tracker;if(n){if(n.update(),n.isVisible||s.value.needsUpdate){let c=o.last?150:220,v=Ge.width<1e3?h(n.progress,0,.23,18,0,!0):h(n.pixelIn,0,c,50,0,!0),C=s.value.ty;(Math.abs(v-C)>.03||s.value.needsUpdate)&&(s.value.ty=v,a.value.style.transform=`translate3d(0, ${v}px, 0)`)}s.value.needsUpdate=!1}}function Me(n,c){}return(n,c)=>{const v=ue;return b(),k("div",{class:de(["work-media",H(s).animatedIn?"work-media--in":"work-media--sleep",H(s).loaded?"work-media--loaded":null,o.borderRadius?"":"work-media--no-border-radius",o.image&&o.image.dimensions.width<o.image.dimensions.height&&o.enablePortrait?"work-media--is-portrait":!1]),ref_key:"$el",ref:a},[B("div",ro,[o.isPlayer&&o.videoURL&&o.videoURL.url?(b(),k(je,{key:0},[o.videoURL.url.indexOf("vimeo")>
1-1?(b(),k("div",{key:0,ref_key:"$plyrContainer",ref:O,"data-plyr-provider":"vimeo","data-plyr-embed-id":o.videoURL.url},null,8,so)):o.videoURL.url.indexOf("youtube")>-1?(b(),k("div",{key:1,ref_key:"$plyrContainer",ref:O,"data-plyr-provider":"youtube","data-plyr-embed-id":o.videoURL.url},null,8,no)):(b(),k("video",{key:2,ref_key:"$plyrContainer",ref:O},[B("source",{src:o.videoURL.url,type:"video/mp4"},null,8,io)],512))],64)):!o.isPlayer&&o.videoURL&&o.videoURL.url?(b(),k("video",{key:1,class:"work-media__video",ref_key:"$video",ref:i,muted:"",loop:"",playsinline:"",crossorigin:"anonymous",preload:"auto"},[B("source",{src:o.videoURL.url,type:"video/mp4"},null,8,lo)],512)):o.image?(b(),We(v,{key:2,field:o.image,ref_key:"$img",ref:r},null,8,["field"])):qe("",!0),B("div",{class:"work-media__loader",ref_key:"$loader",ref:l},null,512)])],2)}}};export{vo as _,po as a};

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.