PageSourceSearch

https://inspirebroadband.net/_nuxt/JQgbnoDZ.js

js inspirebroadband.net collected 2026-10-07 06:52:12 UTC 8,905 bytes, 5 lines download raw bytes

1import{a1 as Q,j as r,a2 as V,a3 as S,s as Se,a4 as be,v as ye,k as J,m as q,a5 as ve,a6 as b,a7 as g,F as xe}from"./BGyqb_Oo.js";/**
2 * Vue 3 Carousel 0.2.16
3 * (c) 2023
4 * @license MIT
5 */const m={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},fe={itemsToShow:{default:m.itemsToShow,type:Number},itemsToScroll:{default:m.itemsToScroll,type:Number},wrapAround:{default:m.wrapAround,type:Boolean},throttle:{default:m.throttle,type:Number},snapAlign:{default:m.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:m.transition,type:Number},breakpoints:{default:m.breakpoints,type:Object},autoplay:{default:m.autoplay,type:Number},pauseAutoplayOnHover:{default:m.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:m.mouseDrag,type:Boolean},touchDrag:{default:m.touchDrag,type:Boolean},dir:{default:m.dir,validator(t){return["rtl","ltr"].includes(t)}},settings:{default(){return{}},type:Object}};function we({config:t,slidesCount:n}){const{snapAlign:a,wrapAround:s,itemsToShow:u=1}=t;if(s)return Math.max(n-1,0);let o;switch(a){case"start":o=n-u;break;case"end":o=n-1;break;case"center":case"center-odd":o=n-Math.ceil((u-.5)/2);break;case"center-even":o=n-Math.ceil(u/2);break;default:o=0;break}return Math.max(o,0)}function Te({config:t,slidesCount:n}){const{wrapAround:a,snapAlign:s,itemsToShow:u=1}=t;let o=0;if(a||u>n)return o;switch(s){case"start":o=0;break;case"end":o=u-1;break;case"center":case"center-odd":o=Math.floor((u-1)/2);break;case"center-even":o=Math.floor((u-2)/2);break;default:o=0;break}return o}function K({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,a),n)}function ke({config:t,currentSlide:n,slidesCount:a}){const{snapAlign:s,wrapAround:u,itemsToShow:o=1}=t;let d=n;switch(s){case"center":case"center-odd":d-=(o-1)/2;break;case"center-even":d-=(o-2)/2;break;case"end":d-=o-1;break}return u?d:K({val:d,max:a-o,min:0})}function me(t){return t?t.reduce((n,a)=>{var s;return a.type===xe?[...n,...me(a.children)]:((s=a.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...n,a]:n},[]):[]}function $({val:t,max:n,min:a=0}){return t>n?$({val:t-(n+1),max:n,min:a}):t<a?$({val:t+(n+1),max:n,min:a}):t}function Ae(t,n){let a;return n?function(...s){const u=this;a||(t.apply(u,s),a=!0,setTimeout(()=>a=!1,n))}:t}function _e(t,n){let a;return function(...s){a&&clearTimeout(a),a=setTimeout(()=>{t(...s),a=null},n)}}var Ce=Q({name:"ARIA",setup(){const t=g("currentSlide",r(0)),n=g("slidesCount",r(0));return()=>b("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},`Item ${t.value+1} of ${n.value}`)}}),Ee=Q({name:"Carousel",props:fe,setup(t,{slots:n,emit:a,expose:s}){var u;const o=r(null),d=r([]),h=r(0),f=r(0);let T=r({}),k=Object.assign({},m);const l=V(Object.assign({},k)),i=r((u=t.modelValue)!==null&&u!==void 0?u:0),M=r(0),Z=r(0),A=r(0),E=r(0);let _,B;S("config",l),S("slidesCount",f),S("currentSlide",i),S("maxSlide",A),S("minSlide",E),S("slideWidth",h);function R(){const e=Object.assign(Object.assign({},t),t.settings);T=r(Object.assign({},e.breakpoints)),k=Object.assign(Object.assign({},e),{settings:void 0,breakpoints:void 0}),ee(k)}function j(){if(!Object.keys(T.value).length)return;const e=Object.keys(T.value).map(c=>Number(c)).sort((c,w)=>+w-+c);let v=Object.assign({},k);e.some(c=>window.matchMedia(`(min-width: ${c}px)`).matches?(v=Object.assign(Object.assign({},v),T.value[c]),!0):!1),ee(v)}function ee(e){Object.entries(e).forEach(([v,c])=>l[v]=c)}const te=_e(()=>{j(),O(),N()},16);function N(){if(!o.value)return;const e=o.value.getBoundingClientRect();h.value=e.width/l.itemsToShow}function O(){f.value<=0||(Z.value=Math.ceil((f.value-1)/2),A.value=we({config:l,slidesCount:f.value}),E.value=Te({config:l,slidesCount:f.value}),l.wrapAround||(i.value=K({val:i.value,max:A.value,min:E.value})))}Se(()=>{be(()=>setTimeout(()=>{j(),O(),N(),a("init")},16)),oe(),window.addEventListener("resize",te,{passive:!0})}),ye(()=>{B&&clearTimeout(B),_&&clearInterval(_),window.removeEventListener("resize",te,{passive:!0})});let p=!1;const D={x:0,y:0},P={x:0,y:0},y=V({x:0,y:0}
5),X=r(!1),pe=()=>{X.value=!0},ge=()=>{X.value=!1};function ne(e){["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||(p=e.type==="touchstart",p||e.preventDefault(),!(!p&&e.button!==0||C.value)&&(D.x=p?e.touches[0].clientX:e.clientX,D.y=p?e.touches[0].clientY:e.clientY,document.addEventListener(p?"touchmove":"mousemove",ae,!0),document.addEventListener(p?"touchend":"mouseup",le,!0)))}const ae=Ae(e=>{P.x=p?e.touches[0].clientX:e.clientX,P.y=p?e.touches[0].clientY:e.clientY;const v=P.x-D.x,c=P.y-D.y;y.y=c,y.x=v},l.throttle);function le(){const e=l.dir==="rtl"?-1:1,v=Math.sign(y.x)*.4,c=Math.round(y.x/h.value+v)*e;if(c&&!p){const w=z=>{z.stopPropagation(),window.removeEventListener("click",w,!0)};window.addEventListener("click",w,!0)}x(i.value-c),y.x=0,y.y=0,document.removeEventListener(p?"touchmove":"mousemove",ae,!0),document.removeEventListener(p?"touchend":"mouseup",le,!0)}function oe(){!l.autoplay||l.autoplay<=0||(_=setInterval(()=>{l.pauseAutoplayOnHover&&X.value||L()},l.autoplay))}function ie(){_&&(clearInterval(_),_=null),oe()}const C=r(!1);function x(e){const v=l.wrapAround?e:K({val:e,max:A.value,min:E.value});i.value===v||C.value||(a("slide-start",{slidingToIndex:e,currentSlideIndex:i.value,prevSlideIndex:M.value,slidesCount:f.value}),C.value=!0,M.value=i.value,i.value=v,B=setTimeout(()=>{if(l.wrapAround){const c=$({val:v,max:A.value,min:0});c!==i.value&&(i.value=c,a("loop",{currentSlideIndex:i.value,slidingToIndex:e}))}a("update:modelValue",i.value),a("slide-end",{currentSlideIndex:i.value,prevSlideIndex:M.value,slidesCount:f.value}),C.value=!1,ie()},l.transition))}function L(){x(i.value+l.itemsToScroll)}function W(){x(i.value-l.itemsToScroll)}const re={slideTo:x,next:L,prev:W};S("nav",re),S("isSliding",C);const se=J(()=>ke({config:l,currentSlide:i.value,slidesCount:f.value}));S("slidesToScroll",se);const he=J(()=>{const e=l.dir==="rtl"?-1:1,v=se.value*h.value*e;return{transform:`translateX(${y.x-v}px)`,transition:`${C.value?l.transition:0}ms`,margin:l.wrapAround?`0 -${f.value*h.value}px`:"",width:"100%"}});function ue(){R(),j(),O(),N(),ie()}Object.keys(fe).forEach(e=>{["modelValue"].includes(e)||q(()=>t[e],ue)}),q(()=>t.modelValue,e=>{e!==i.value&&x(Number(e))}),q(f,O),R();const ce={config:l,slidesCount:f,slideWidth:h,next:L,prev:W,slideTo:x,currentSlide:i,maxSlide:A,minSlide:E,middleSlide:Z};s({updateBreakpointsConfigs:j,updateSlidesData:O,updateSlideWidth:N,initDefaultConfigs:R,restartCarousel:ue,slideTo:x,next:L,prev:W,nav:re,data:ce});const H=n.default||n.slides,Y=n.addons,de=V(ce);return()=>{const e=me(H==null?void 0:H(de)),v=(Y==null?void 0:Y(de))||[];e.forEach((F,U)=>F.props.index=U);let c=e;if(l.wrapAround){const F=e.map((G,I)=>ve(G,{index:-e.length+I,isClone:!0,key:`clone-before-${I}`})),U=e.map((G,I)=>ve(G,{index:e.length+I,isClone:!0,key:`clone-after-${I}`}));c=[...F,...e,...U]}d.value=e,f.value=Math.max(e.length,1);const w=b("ol",{class:"carousel__track",style:he.value,onMousedownCapture:l.mouseDrag?ne:null,onTouchstartPassiveCapture:l.touchDrag?ne:null},c),z=b("div",{class:"carousel__viewport"},w);return b("section",{ref:o,class:{carousel:!0,"carousel--rtl":l.dir==="rtl"},dir:l.dir,"aria-label":"Gallery",tabindex:"0",onMouseenter:pe,onMouseleave:ge},[z,v,b(Ce)])}}});const Oe=()=>{const t=g("maxSlide",r(1)),n=g("minSlide",r(1)),a=g("currentSlide",r(1)),s=g("nav",{}),u=d=>$({val:a.value,max:t.value,min:0})===d,o=[];for(let d=n.value;d<t.value+1;d++){const h=b("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":u(d)},"aria-label":`Navigate to slide ${d+1}`,onClick:()=>s.slideTo(d)}),f=b("li",{class:"carousel__pagination-item",key:d},h);o.push(f)}return b("ol",{class:"carousel__pagination"},o)};var Ie=Q({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:n}){const a=g("config",V(Object.assign({},m))),s=g("currentSlide",r(0)),u=g("slidesToScroll",r(0)),o=g("slideWidth",r(0)),d=g("isSliding",r(!1)),h=J(()=>({width:o.value?`${o.value}px`:"100%"})),f=()=>t.index===s.value,T=()=>t.index===s.value-1,k=()=>t.index===s.value+1,l=()=>{const i=Math.floor(u.value),M=Math.ceil(u.value+a.itemsToShow-1);return t.index>
5=i&&t.index<=M};return()=>{var i;return b("li",{style:h.value,class:{carousel__slide:!0,"carousel_slide--clone":t.isClone,"carousel__slide--visible":l(),"carousel__slide--active":f(),"carousel__slide--prev":T(),"carousel__slide--next":k(),"carousel__slide--sliding":d.value},"aria-hidden":!l()},(i=n.default)===null||i===void 0?void 0:i.call(n))}}});export{Ee as C,Oe as P,Ie as S};

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.