PageSourceSearch

https://www.bibleserver.com/build/ripple-BzhEQZ-Z.js

js bibleserver.com collected 2026-10-01 09:11:25 UTC 8,791 bytes, 2 lines download raw bytes

vendor: 8,791 bytes, lines 1-2
1import{$ as e,Dt as t,F as n,O as r,R as i,Tt as a,U as o,V as s,_t as c,d as l,ot as u,wt as d}from"./runtime-core.esm-bundler-UheJ8LN3.js";import{W as f,a as p,c as m,f as h,ht as g,k as _,l as v,st as y}from"./tag-Btqo1t2a.js";import{a as b,n as x,t as S}from"./deepEqual-BCAkay3n.js";import{s as C}from"./dimensions-CUjidJp_.js";var w=h({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},`VDefaultsProvider`),T=p(!1)({name:`VDefaultsProvider`,props:w(),setup(e,t){let{slots:n}=t,{defaults:r,disabled:i,reset:o,root:s,scoped:c}=a(e);return m(r,{reset:o,root:s,scoped:c,disabled:i}),()=>n.default?.()}}),E=h({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},`group`),D=h({value:null,disabled:Boolean,selectedClass:String},`group-item`);function O(t,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=v(`useGroupItem`);if(!s)throw Error(`[Vuetify] useGroupItem composable must be used inside a component setup function`);let c=e();o(Symbol.for(`${i.description}:id`),c);let f=r(i,null);if(!f){if(!a)return f;throw Error(`[Vuetify] Could not find useGroup injection with symbol ${i.description}`)}let p=d(()=>t.value),m=l(()=>!!(f.disabled.value||t.disabled));function h(){f?.register({id:c,value:p,disabled:m},s)}function g(){f?.unregister(c)}h(),n(()=>g());let _=l(()=>f.isSelected(c)),y=l(()=>f.items.value[0].id===c),b=l(()=>f.items.value[f.items.value.length-1].id===c),x=l(()=>_.value&&[f.selectedClass.value,t.selectedClass]);return u(_,e=>{s.emit(`group:selected`,{value:e})},{flush:`sync`}),{id:c,isSelected:_,isFirst:y,isLast:b,toggle:()=>f.select(c,!_.value),select:e=>f.select(c,e),selectedClass:x,value:p,disabled:m,group:f,register:h,unregister:g}}function k(e,r){let a=!1,l=c([]),u=C(e,`modelValue`,[],e=>e===void 0?[]:j(l,e===null?[null]:y(e)),t=>{let n=M(l,t);return e.multiple?n:n[0]}),f=v(`useGroup`);function p(e,n){let i=e,a=Symbol.for(`${r.description}:id`),o=_(a,f?.vnode).indexOf(n);t(i.value)===void 0&&(i.value=o,i.useIndexAsValue=!0),o>-1?l.splice(o,0,i):l.push(i)}function m(e){if(a)return;h();let t=l.findIndex(t=>t.id===e);l.splice(t,1)}function h(){let t=l.find(e=>!e.disabled);t&&e.mandatory===`force`&&!u.value.length&&(u.value=[t.id])}i(()=>{h()}),n(()=>{a=!0}),s(()=>{for(let e=0;e<l.length;e++)l[e].useIndexAsValue&&(l[e].value=e)});function b(t,n){let r=l.find(e=>e.id===t);if(!(n&&r?.disabled)){if(e.multiple){let r=u.value.slice(),i=r.findIndex(e=>e===t),a=~i;if(n??=!a,a&&e.mandatory&&r.length<=1||!a&&e.max!=null&&r.length+1>e.max)return;i<0&&n?r.push(t):i>=0&&!n&&r.splice(i,1),u.value=r}else{let r=u.value.includes(t);if(e.mandatory&&r||!r&&!n)return;u.value=n??!r?[t]:[]}}}function x(t){if(e.multiple&&g(`This method is not supported when using "multiple" prop`),u.value.length){let e=u.value[0],n=l.findIndex(t=>t.id===e),r=(n+t)%l.length,i=l[r];for(;i.disabled&&r!==n;)r=(r+t)%l.length,i=l[r];if(i.disabled)return;u.value=[l[r].id]}else{let e=l.find(e=>!e.disabled);e&&(u.value=[e.id])}}let S={register:p,unregister:m,selected:u,select:b,disabled:d(()=>e.disabled),prev:()=>x(l.length-1),next:()=>x(1),isSelected:e=>u.value.includes(e),selectedClass:d(()=>e.selectedClass),items:d(()=>l),getItemIndex:e=>A(l,e)};return o(r,S),S}function A(e,t){let n=j(e,[t]);return n.length?e.findIndex(e=>e.id===n[0]):-1}function j(e,t){let n=[];return t.forEach(t=>{let r=e.find(e=>S(t,e.value)),i=e[t];r?.value===void 0?i?.useIndexAsValue&&n.push(i.id):n.push(r.id)}),n}function M(e,t){let n=[];return t.forEach(t=>{let r=e.findIndex(e=>e.id===t);if(~r){let t=e[r];n.push(t.value===void 0?r:t.value)}}),n}var N=Symbol(`rippleStop`),P=80;function F(e,t){e.style.transform=t,e.style.webkitTransform=t}function I(e){return e.constructor.name===`TouchEvent`}function L(e){return e.constructor.name===`KeyboardEvent`}var R=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!L(e)){let n=new x(t),a=I(e)?e.touches[e.touches.length-1]:e,o=b([a.clientX,a.clientY]);r=o.x-n.left,i=o.y-n.top}let a=0,o=.3;t._ripple?.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((r-a)**2+(i-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;let s=`${(t.clientWidth-a*2)/2}px`,c=`${(t.clientHeight-a*2)/2}px`,l=n.center?s:`${r-a}px`,u=n.center?c:`${i-a}px`;return{radius:a,scale:o,x:l,y:u,centerX:s,centerY:c}},z={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;let r=document.createElement(`span`),i=document.createElement(`span`);r.appendChild(i),r.className=`v-ripple__container`,n.class&&(r.className+=` ${n.class}`);let{radius:a,scale:o,x:s,y:c,centerX:l,centerY:u}=R(e,t,n),d=`${a*2}px`;i.className=`v-ripple__animation`,i.style.width=d,i.style.height=d,t.appendChild(r);let f=window.getComputedStyle(t);f&&f.position===`static`&&(t.style.position=`relative`,t.dataset.previousPosition=`static`),i.classList.add(`v-ripple__animation--enter`),i.classList.add(`v-ripple__animation--visible`),F(i,`translate(${s}, ${c}) scale3d(${o},${o},${o})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove(`v-ripple__animation--enter`),i.classList.add(`v-ripple__animation--in`),F(i,`translate(${l}, ${u}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;let t=e.getElementsByClassName(`v-ripple__animation`);if(t.length===0)return;let n=Array.from(t).findLast(e=>!e.dataset.isHiding);if(n)n.dataset.isHiding=`true`;else return;let r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove(`v-ripple__animation--in`),n.classList.add(`v-ripple__animation--out`),setTimeout(()=>{e.getElementsByClassName(`v-ripple__animation`).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function B(e){return e===void 0||!!e}function V(e){let t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[N])){if(e[N]=!0,I(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||L(e),n._ripple.class&&(t.class=n._ripple.class),I(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{z.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},P)}else z.show(e,n,t)}}function H(e){e[N]=!0}function U(e){let t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type===`touchend`&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{U(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),z.hide(t)}}function W(e){let t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}var G=!1;function K(e,t){!G&&t.includes(e.key)&&(G=!0,V(e))}function q(e){G=!1,U(e)}function J(e){G&&(G=!1,U(e))}function Y(e,t,n){let{value:r,modifiers:i}=t,a=B(r);a||z.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=i.center,e._ripple.circle=i.circle;let o=f(r)?r:{};o.class&&(e._ripple.class=o.class);let s=o.keys??[`Enter`,`Space`];if(e._ripple.keyDownHandler=e=>K(e,s),a&&!n){if(i.stop){e.addEventListener(`touchstart`,H,{passive:!0}),e.addEventListener(`mousedown`,H);return}e.addEventListener(`touchstart`,V,{passive:!0}),e.addEventListener(`touchend`,U,{passive:!0}),e.addEventListener(`touchmove`,W,{passive:!0}),e.addEventListener(`touchcancel`,U),e.addEventListener(`mousedown`,V),e.addEventListener(`mouseup`,U),e.addEventListener(`mouseleave`,U),e.addEventListener(`keydown`,e._ripple.keyDownHandler),e.addEventListener(`keyup`,q),e.addEventListener(`blur`,J),e.addEventListener(`dragstart`,U,{passive:!0})}else!a&&n&&X(e)}function X(e){e.removeEventListener(`touchstart`,H),e.removeEventListener(`mousedown`,H),e.removeEventListener(`touchstart`,V),e.removeEventListener(`touchend`,U),e.removeEventListener(`touchmove`,W),e.removeEventListener(`touchcancel`,U),e.removeEventListener(`mousedown`,V),e.removeEventListener(`mouseup`,U),e.removeEventListener(`mouseleave`,U),e._ripple?.keyDownHandler&&e.removeEventListener(`keydown`,e._ripple.keyDownHandler),e.removeEventListener(`keyup`,q),e.removeEventListener(`blur`,J),e.removeEventListener(`dragstart`,U)}function Z(e,t){Y(e,t,!1)}function Q(e){X(e),delete e._ripple}function $(e,t){t.value!==t.oldValue&&Y(e,t,B(t.oldValue))}var ee={mounted:Z,unmounted:Q,updated:$};export{O as a,k as i,D as n,T as o,E as r,ee as t};
2//# sourceMappingURL=ripple-BzhEQZ-Z.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.