1import{n as e}from"./rolldown-runtime-C0FnF6B9.js";import{wn as t}from"./vendor-D1JlsGpU.js";function n(e,t){let n=e instanceof Element?e:null;for(;n;){if(n.matches(`input, textarea, select, [contenteditable='true'], [contenteditable='']`)||n.matches(c)||n.hasAttribute(l)||r(n))return!0;if(n===t)return!1;n=n.parentElement}return!1}function r(e){if(e.scrollWidth<=e.clientWidth)return!1;let t=window.getComputedStyle(e).overflowX;return t===`auto`||t===`scroll`}function i(e,t,n){if(e.ignored)return null;let r=e.startX-e.endX,i=e.startY-e.endY;return Math.abs(r)<=n*Math.abs(i)?null:r>t?`left`:r<-t?`right`:null}function a(e,{threshold:t,dominance:n,ignore:r,onDirection:a}){let o={...u},s=e=>{let{clientX:t,clientY:n}=e.touches[0];o={startX:t,startY:n,endX:t,endY:n,ignored:r?r(e.target):!1}},c=e=>{o.endX=e.touches[0].clientX,o.endY=e.touches[0].clientY},l=()=>{let e=i(o,t,n);o={...u},e&&a(e)};return e.addEventListener(`touchstart`,s,d),e.addEventListener(`touchmove`,c,d),e.addEventListener(`touchend`,l,d),()=>{e.removeEventListener(`touchstart`,s,d),e.removeEventListener(`touchmove`,c,d),e.removeEventListener(`touchend`,l,d)}}var o,s,c,l,u,d,f;function p(){return(p=e((()=>{o=t(),s=`input, textarea, select, [contenteditable='true'], [contenteditable='']`,c=[`[data-drag-grip]`,`[aria-roledescription="sortable"]`,`.call-form-editor-rail-grip`,`.call-form-editor-gutter`].join(`, `),l=`data-swipe-scope`,u={startX:0,startY:0,endX:0,endY:0,ignored:!1},d={passive:!0},f=(e,t)=>{let{onSwipeLeft:n,onSwipeRight:r,threshold:i=50,dominance:s=1,ignore:c}=t;(0,o.useEffect)(()=>{let t=e.current;if(t)return a(t,{threshold:i,dominance:s,ignore:c,onDirection:e=>{e===`left`?n?.():r?.()}})},[e,n,r,i,s,c])}})))()}export{f as i,p as n,n as r,s as t};
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.