vendor: 4,257 bytes, lines 1-4
1import{a as O,b as N,c as j}from"./vendor-tslib-Br18AKQG.js";import{r as a}from"./vendor-react-BxcIUS9o.js";import{f as G,z as K,R as Q}from"./vendor-react-remove-scroll-bar-CgBPXEvj.js";import{c as U,e as q}from"./vendor-use-sidecar-CrJP8lqr.js";import{u as J}from"./vendor-use-callback-ref-B6SAVTT5.js";import{s as $}from"./vendor-react-style-singleton-C9DVsUV-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]+914"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="84f5f51f-048d-4b10-9a7a-79cc4598ebdf",e._sentryDebugIdIdentifier="sentry-dbid-84f5f51f-048d-4b10-9a7a-79cc4598ebdf")})()}catch{}var Z=U(),Y=function(){},D=a.forwardRef(function(e,r){var o=a.useRef(null),l=a.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),f=l[0],d=l[1],h=e.forwardProps,c=e.children,m=e.className,b=e.removeScrollBar,y=e.enabled,C=e.shards,k=e.sideCar,R=e.noRelative,E=e.noIsolation,t=e.inert,n=e.allowPinchZoom,s=e.as,i=s===void 0?"div":s,v=e.gapMode,g=O(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),u=k,w=J([o,r]),S=N(N({},g),f);return a.createElement(a.Fragment,null,y&&a.createElement(u,{sideCar:Z,removeScrollBar:b,shards:C,noRelative:R,noIsolation:E,inert:t,setCallbacks:d,allowPinchZoom:!!n,lockRef:o,gapMode:v}),h?a.cloneElement(a.Children.only(c),N(N({},S),{ref:w})):a.createElement(i,N({},S,{className:m,ref:w}),c))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:G,zeroRight:K};var X=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return X=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{X=!1}var T=X?{passive:!1}:!1,ee=function(e){return e.tagName==="TEXTAREA"},_=function(e,r){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!ee(e)&&o[r]==="visible")},re=function(e){return _(e,"overflowY")},te=function(e){return _(e,"overflowX")},H=function(e,r){var o=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var f=p(e,l);if(f){var d=x(e,l),h=d[1],c=d[2];if(h>c)return!0}l=l.parentNode}while(l&&l!==o.body);return!1},ae=function(e){var r=e.scrollTop,o=e.scrollHeight,l=e.clientHeight;return[r,o,l]},ne=function(e){var r=e.scrollLeft,o=e.scrollWidth,l=e.clientWidth;return[r,o,l]},p=function(e,r){return e==="v"?re(r):te(r)},x=function(e,r){return e==="v"?ae(r):ne(r)},le=function(e,r){return e==="h"&&r==="rtl"?-1:1},oe=function(e,r,o,l,f){var d=le(e,window.getComputedStyle(r).direction),h=d*l,c=o.target,m=r.contains(c),b=!1,y=h>0,C=0,k=0;do{if(!c)break;var R=x(e,c),E=R[0],t=R[1],n=R[2],s=t-n-d*E;(E||s)&&p(e,c)&&(C+=s,k+=E);var i=c.parentNode;c=i&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i}while(!m&&c!==document.body||m&&(r.contains(c)||r===c));return(y&&(Math.abs(C)<1||!f)||!y&&(Math.abs(k)<1||!f))&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},ce=function(e,r){return e[0]===r[0]&&e[1]===r[1]},ie=function(e){return` 2 .block-interactivity-`.concat(e,` {pointer-events: none;} 3 .allow-interactivity-`).concat(e,` {pointer-events: all;} 4`)},ue=0,P=[];function se(e){var r=a.useRef([]),o=a.useRef([0,0]),l=a.useRef(),f=a.useState(ue++)[0],d=a.useState($)[0],h=a.useRef(e);a.useEffect(function(){h.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(f));var t=j([e.lockRef.current],(e.shards||[]).map(V),!0).filter(Boolean);return t.forEach(function(n){return n.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),t.forEach(function(n){return n.classList.remove("allow-interactivity-".concat(f))})}}}
vendor: 1,323 bytes, line 4
4,[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(t,n){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!h.current.allowPinchZoom;var s=L(t),i=o.current,v="deltaX"in t?t.deltaX:i[0]-s[0],g="deltaY"in t?t.deltaY:i[1]-s[1],u,w=t.target,S=Math.abs(v)>Math.abs(g)?"h":"v";if("touches"in t&&S==="h"&&w.type==="range")return!1;var W=window.getSelection(),I=W&&W.anchorNode,z=I?I===w||I.contains(w):!1;if(z)return!1;var M=H(S,w);if(!M)return!0;if(M?u=S:(u=S==="v"?"h":"v",M=H(S,w)),!M)return!1;if(!l.current&&"changedTouches"in t&&(v||g)&&(l.current=u),!u)return!0;var A=l.current||u;return oe(A,n,t,A==="h"?v:g,!0)},[]),m=a.useCallback(function(t){var n=t;if(!(!P.length||P[P.length-1]!==d)){var s="deltaY"in n?F(n):L(n),i=r.current.filter(function(u){return u.name===n.type&&(u.target===n.target||n.target===u.shadowParent)&&ce(u.delta,s)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var v=(h.current.shards||[]).map(V).filter(Boolean).filter(function(u){return u.contains(n.target)}),g=v.length>0?c(n,v[0]):!h.current.noIsolation;g&&n.cancelable&&n.preventDefault()}}},[]),b=a.useCallback(function(t,n,s,i){var v={name:t,delta:n,target:s,should:i,shadowParent:fe(s)};r.current.push(v),setTimeout(function(){r.current=r.current.filter(function(g){return g!==v})}
vendor: 1,172 bytes, lines 4-5
4,1)},[]),y=a.useCallback(function(t){o.current=L(t),l.current=void 0},[]),C=a.useCallback(function(t){b(t.type,F(t),t.target,c(t,e.lockRef.current))},[]),k=a.useCallback(function(t){b(t.type,L(t),t.target,c(t,e.lockRef.current))},[]);a.useEffect(function(){return P.push(d),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:k}),document.addEventListener("wheel",m,T),document.addEventListener("touchmove",m,T),document.addEventListener("touchstart",y,T),function(){P=P.filter(function(t){return t!==d}),document.removeEventListener("wheel",m,T),document.removeEventListener("touchmove",m,T),document.removeEventListener("touchstart",y,T)}},[]);var R=e.removeScrollBar,E=e.inert;return a.createElement(a.Fragment,null,E?a.createElement(d,{styles:ie(f)}):null,R?a.createElement(Q,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fe(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const de=q(Z,se);var ve=a.forwardRef(function(e,r){return a.createElement(D,N({},e,{ref:r,sideCar:de}))});ve.classNames=D.classNames;export{ve as R}; 5//# sourceMappingURL=vendor-react-remove-scroll-zDZRLCyM.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.