PageSourceSearch

https://www.elliptic.co/_nuxt/i2jZoDVy.js

js elliptic.co collected 2026-09-24 15:17:55 UTC 4,905 bytes, 1 lines download raw bytes

1import{d as L,o as t,j as c,I as m,f as g,al as Y,i as v,au as J,am as Q,an as X,c as Z,ah as ee,ai as ae,u as te,v as le,aq as oe,ar as $,as as se,A as E,g as M,Y as ne,av as ue,n as k,k as y,x as u,F as T,r as I,h as ce,_ as x,aA as re}from"./CHz7KWu6.js";import{E as ie}from"./ii0N_fta.js";const de={class:"callout-carousel-card"},me={class:"callout-carousel-card__body"},ge=L({name:"callout-carousel-card",__name:"callout-carousel-card-block",props:{card:{}},setup(e){return(b,a)=>(t(),c("div",de,[m("div",me,[e.card.heading?(t(),g(Y,{key:0,class:"callout-carousel-card__heading",heading:{type:"h2",style:null,text:e.card.heading}},null,8,["heading"])):v("",!0),e.card.textBlock?(t(),g(J,{key:1,class:"callout-carousel-card__text-block","text-block":e.card.textBlock},null,8,["text-block"])):v("",!0),e.card.buttonBlock?(t(),g(Q,{key:2,class:"callout-carousel-card__button-block",buttons:e.card.buttonBlock},null,8,["buttons"])):v("",!0)]),e.card.asset?(t(),g(X,{key:0,class:"callout-carousel-card__asset",asset:e.card.asset,"image-sizes":"xs:80vw sm:80vw md:80vw lg:80vw xl:35vw 2xl:35vw 3xl:35vw 4xl:35vw 5xl:550px","img-attrs":{class:"callout-carousel-card__image"},"picture-class":"callout-carousel-card__image-holder","video-class":"callout-carousel-card__video","video-attrs":{autoplay:!0,playsinline:!0,muted:!0,loop:!0},ref:"assetRef"},null,8,["asset"])):v("",!0)]))}}),ve=Object.assign(ge,{__name:"BlocksCardsCalloutCarouselCardBlock"}),_e=["id"],fe=["aria-label","onClick"],pe=["textContent"],ke=["textContent"],ye=["textContent"],xe={class:"embla__container callout-carousel__wrapper",ref:"carouselWrapper"},D=5e3,be=L({name:"callout-carousel",__name:"callout-carousel-module",props:{module:{}},setup(e){const{t:b}=Z(),a=u(),r=u(0),O=u(!1),R=y(()=>a.value?.isAutoplayPaused??!1),N=y(()=>a.value?.autoplayDuration??D),P=y(()=>a.value?.autoplayTimerKey??0),j=u({containScroll:!1,loop:!0,fade:!0,duration:10,autoplay:{active:!0,playOnInit:!1,stopOnMouseEnter:!1,stopOnInteraction:!1,stopOnFocusIn:!1,delay:D},breakpoints:{"(min-width: 1024px)":{skipSnaps:!0}}}),z=ee(),{firstLoadComplete:h}=ae(z),n=te(),_=u(),C=u();let f=null,p=null;const F=`(max-width: ${n.$screen.xl-1}px)`,V=`(min-width: ${n.$screen.xl}px)`;function A(){h.value&&(f=n.$gsap.context(()=>{p=n.$gsap.matchMedia(),p.add(F,()=>{K()}),p.add(V,()=>{q()})},_.value))}function K(){w()}function q(){w()}function G(){a.value.emblaApi.on("scroll",s=>{const o=s.internalEngine().index.get();O.value=!s.canScrollNext(),o!==r.value&&(r.value=o)})}function H(){a.value?.pauseAutoplay()}function U(){a.value?.resumeAutoplay()}function w(){const s=_.value,o=C.value;!s||!o||(n.$ScrollTrigger?.create({trigger:o,endTrigger:s,start:"bottom bottom",end:"bottom top",onEnter:()=>{a.value?.resumeAutoplay()},onLeave:()=>{a.value?.pauseAutoplay()}}),n.$ScrollTrigger?.create({trigger:o,endTrigger:s,start:"top bottom",end:"top top",onEnterBack:()=>{a.value?.resumeAutoplay()},onLeaveBack:()=>{a.value?.pauseAutoplay()}}))}return le(h,()=>{$(()=>{A()})}),oe(()=>{G(),$(()=>{A()})}),se(()=>{f&&f.revert()}),(s,o)=>e.module.slides&&e.module.slides.length?(t(),c("section",{key:0,class:k(["callout-carousel module",[e.module.variant?`callout-carousel--${e.module.variant}`:"",{"module--colour-inverted":e.module.colourIsInverted}]]),id:e.module.id,ref_key:"moduleRef",ref:_,style:ue({"--progress-duration":`${N.value}ms`,"--progress-state":R.value?"paused":"running"}),onMouseenter:H,onMouseleave:U},[E(ne,{class:"callout-carousel__container"},{default:M(()=>[m("div",{class:"callout-carousel__pagination",ref_key:"paginationRef",ref:C},[(t(!0),c(T,null,I(e.module.slides,(i,l)=>(t(),c("button",{class:k(["callout-carousel__tag",[{"callout-carousel__tag--active":l===r.value&&e.module.slides.length>1},{"callout-carousel__tag--solo":e.module.slides.length===1}]]),key:l,"aria-label":ce(b)("Go to slide {number}",{number:l+1}),onClick:W=>a.value?.goToAutoplaySlide(l)},[m("span",{class:"callout-carousel__tag-inner callout-carousel__tag-inner--standard",textContent:x(i.tag)},null,8,pe),(t(),c("span",{class:"callout-carousel__tag-inner callout-carousel__tag-inner--animated",key:P.value,textContent:x(i.tag)},null,8,ke)),m("span",{class:"callout-carousel__tag-inner callout-carousel__tag-inner--paused",textContent:x(i.tag)},null,8,ye)],10,fe))),128))],512),E(ie,{class:"callout-carousel__carousel","parent-class":"callout-carousel","carousel-config":j.value,ref_key:"carousel",ref:a},{default:M(()=>[m("div",xe,[(t(!0),c(T,null,I(e.module.slides,(i,l,W,d)=>{const B=[r.value===l];if(d&&d.el&&d.key===l&&re(d,B))return d;const S=(t(),g(ve,{key:l,card:i,class:k(["embla__slide callout-carousel__slide",{"callout-carousel__slide--active":r.value===l}])},null,8,["card","class"]));return S.memo=B,S},o,0),128))],512)]),_:1},8,["carousel-config"])]),_:1})],46,_e)):v("",!0)}}),Ae=Object.assign(be,{__name:"CalloutCarouselModule"});export{Ae 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.