1import{g as D,c as N}from"./app.bd771a27.js";var P={exports:{}};/*! 2 * in-view 0.6.1 - Get notified when a DOM element enters or exits the viewport. 3 * Copyright (c) 2016 Cam Wiegert <[email protected]> - https://camwiegert.github.io/in-view 4 * License: MIT 5 */(function(w,O){(function(f,c){w.exports=c()})(N,function(){return function(f){function c(n){if(t[n])return t[n].exports;var r=t[n]={exports:{},id:n,loaded:!1};return f[n].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}var t={};return c.m=f,c.c=t,c.p="",c(0)}([function(f,c,t){function n(e){return e&&e.__esModule?e:{default:e}}var r=t(2),i=n(r);f.exports=i.default},function(f,c){function t(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}f.exports=t},function(f,c,t){function n(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(c,"__esModule",{value:!0});var r=t(9),i=n(r),e=t(3),s=n(e),h=t(4),l=function(){if(typeof window<"u"){var o=100,v=["scroll","resize","load"],d={history:[]},u={offset:{},threshold:0,test:h.inViewport},b=(0,i.default)(function(){d.history.forEac
5h(function(a){d[a].check()})},o);v.forEach(function(a){return addEventListener(a,b)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(b).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var g=function(a){if(typeof a=="string"){var y=[].slice.call(document.querySelectorAll(a));return d.history.indexOf(a)>-1?d[a].elements=y:(d[a]=(0,s.default)(y,u),d.history.push(a)),d[a]}};return g.offset=function(a){if(a===void 0)return u.offset;var y=function(m){return typeof m=="number"};return["top","right","bottom","left"].forEach(y(a)?function(m){return u.offset[m]=a}:function(m){return y(a[m])?u.offset[m]=a[m]:null}),u.offset},g.threshold=function(a){return typeof a=="number"&&a>=0&&a<=1?u.threshold=a:u.threshold},g.test=function(a){return typeof a=="function"?u.test=a:u.test},g.is=function(a){return u.test(a,u)},g.offset(0),g}};c.default=l()},function(f,c){function t(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var n=function(){function i(e,s){for(var h=0;h<s.length;h++){var l=s[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(e,s,h){return s&&i(e.prototype,s),h&&i(e,h),e}}(),r=function(){function i(e,s){t(this,i),this.options=s,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return n(i,[{key:"check",value:function(){var e=this;return this.elements.forEach(function(s){var h=e.options.test(s,e.options),l=e.current.indexOf(s),o=l>-1,v=h&&!o,d=!h&&o;v&&(e.current.push(s),e.emit("enter",s)),d&&(e.current.splice(l,1),e.emit("exit",s))}),this}},{key:"on",value:function(e,s){return this.handlers[e].push(s),this}},{key:"once",value:function(e,s){return this.singles[e].unshift(s),this}},{key:"emit",value:function(e,s){for(;this.singles[e].length;)this.singles[e].pop()(s);for(var h=this.handlers[e].length;--h>-1;)this.handlers[e][h](s);return this}}]),i}();c.default=function(i,e){return new r(i,e)}},function(f,c){function t(n,r){var i=n.getBoundingClientRect(),e=i.top,s=i.right,h=i.bottom,l=i.left,o=i.width,v=i.height,d={t:h,r:window.innerWidth-l,b:window.innerHeight-e,l:s},u={x:r.threshold*o,y:r.threshold*v};return d.t>r.offset.top+u.y&&d.r>r.offset.right+u.x&&d.b>r.offset.bottom+u.y&&d.l>r.offset.left+u.x}Object.defineProperty(c,"__esModule",{value:!0}),c.inViewport=t},function(f,c){(function(t){var n=typeof t=="object"&&t&&t.Object===Object&&t;f.exports=n}).call(c,function(){return this}())},function(f,c,t){var n=t(5),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();f.exports=i},function(f,c,t){function n(o,v,d){function u(p){var C=j,T=L;return j=L=void 0,I=p,_=o.apply(T,C)}function b(p){return I=p,x=setTimeout(y,v),S?u(p):_}function g(p){var C=p-E,T=p-I,q=v-C;return M?l(q,k-T):q}function a(p){var C=p-E,T=p-I;return E===void 0||C>=v||C<0||M&&T>=k}function y(){var p=i();return a(p)?m(p):void(x=setTimeout(y,g(p)))}function m(p){return x=void 0,A&&j?u(p):(j=L=void 0,_)}function W(){x!==void 0&&clearTimeout(x),I=0,j=E=L=x=void 0}function B(){return x===void 0?_:m(i())}function U(){var p=i(),C=a(p);if(j=arguments,L=this,E=p,C){if(x===void 0)return b(E);if(M)return x=setTimeout(y,v),u(E)}return x===void 0&&(x=setTimeout(y,v)),_}var j,L,k,_,x,E,I=0,S=!1,M=!1,A=!0;if(typeof o!="function")throw new TypeError(s);return v=e(v)||0,r(d)&&(S=!!d.leading,M="maxWait"in d,k=M?h(e(d.maxWait)||0,v):k,A="trailing"in d?!!d.trailing:A),U.cancel=W,U.flush=B,U}var r=t(1),i=t(8),e=t(10),s="Expected a function",h=Math.max,l=Math.min;f.exports=n},function(f,c,t){var n=t(6),r=function(){return n.Date.now()};f.exports=r},function(f,c,t){function n(s,h,l){var o=!0,v=!0;if(typeof s!="function")throw new TypeError(e);return i(l)&&(o="leading"in l?!!l.leading:o,v="trailing"in l?!!l.trailing:v),r(s,h,{leading:o,maxWait:h,trailing:v})}var r=t(7),i=t(1),e="Expected a function";f.exports=n},function(f,c){function t(n){return n}f.exports=t}])})})(P);const V=D(P.exports);const $=10*1e3,R={init(w){const O=w.querySelectorAll(".use-case-button"),f=w.querySelectorAll(".mockup-container"),c=w.querySelectorAll(".text-container");if(!O||!f||!c)return;const t=Array.from(O).map(o=>o.dataset.useCaseId);let n=null,r=0;const i=()=>{let o=Number(r);o===O.length-1?o=0:o++,l(t[o])},e=()=>{i(),n=setInterval(i,$)},s=()=>{n&&clearInterval(n)},h=w.dataset.useCaseUid;V.threshold(.5),V(`[data-use-case-uid="${h}"]`).on("enter",e).on("exit",s);const l=o=>{r=t.indexOf(o),O.forEach(u=>{u.classList.remove("active")});const d=w.querySelector(`.use-case-button[data-use-case-id="${o}"]`);d&&d.classList.add("active"),f.forEach(u=>{const b=u.dataset.useCaseId;o===b?u.classList.add("active"):u.classList.remove("active")}
5),c.forEach(u=>{const b=u.dataset.useCaseId;o===b?u.classList.add("active"):u.classList.remove("active")})};O.forEach(o=>{const v=o.dataset.useCaseId;o.addEventListener("click",()=>{l(v),s()})})}};export{R as default}; 6//# sourceMappingURL=use-cases.5f885de9.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.