PageSourceSearch

https://sevenhillsvet.com/_next/static/chunks/4352-7867a210d563aab2.js

js sevenhillsvet.com collected 2026-10-05 03:52:11 UTC 8,466 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4352],{14352:(e,t,n)=>{n.d(t,{G:()=>F});var r=n(4902),o=n(14232),a="right-scroll-bar-position",c="width-before-scroll-bar",i=n(5783),l=n(25139),u=(0,l.fi)(),d=function(){},s=o.forwardRef(function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:d}),c=a[0],l=a[1],s=e.forwardProps,f=e.children,h=e.className,v=e.removeScrollBar,m=e.enabled,p=e.shards,g=e.sideCar,b=e.noRelative,w=e.noIsolation,y=e.inert,C=e.allowPinchZoom,E=e.as,R=e.gapMode,k=(0,r.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(0,i.SV)([n,t]),N=(0,r.Cl)((0,r.Cl)({},k),c);return o.createElement(o.Fragment,null,m&&o.createElement(g,{sideCar:u,removeScrollBar:v,shards:p,noRelative:b,noIsolation:w,inert:y,setCallbacks:l,allowPinchZoom:!!C,lockRef:n,gapMode:R}),s?o.cloneElement(o.Children.only(f),(0,r.Cl)((0,r.Cl)({},N),{ref:S})):o.createElement(void 0===E?"div":E,(0,r.Cl)({},N,{className:h,ref:S}),f))});s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},s.classNames={fullWidth:c,zeroRight:a};var f=n(94647),h=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,f.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v=function(){var e=h();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},m=function(){var e=v();return function(t){return e(t.styles,t.dynamic),null}},p={left:0,top:0,right:0,gap:0},g=function(e){return parseInt(e||"",10)||0},b=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[g(n),g(r),g(o)]},w=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return p;var t=b(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},y=m(),C="data-scroll-locked",E=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(C,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(c," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(c," .").concat(c," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(C,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},R=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},k=function(){o.useEffect(function(){return document.body.setAttribute(C,(R()+1).toString()),function(){var e=R()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},S=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;k();var c=o.useMemo(function(){return w(a)},[a]);return o.createElement(y,{styles:E(c,!t,a,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){N=!1}var L=!!N&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},x=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),P(e,r)){var o=B(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},P=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},X=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,l=n.target,u=t.contains(l),d=!1,s=i>0,f=0,h=0;do{var v=B(e,l),m=v[0],p=v[1]-v[2]-c*m;(m||p)&&P(e,l)&&(f+=p,h+=m),l=l.parentNode.host||l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return s&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!s&&(o&&1>Math.abs(h)||!o&&-i>h)&&(d=!0),d},A=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},I=function(e){return[e.deltaX,e.deltaY]},W=function(e){return e&&"current"in e?e.current:e},Y=0,Z=[];let _=(0,l.mb)(u,function(e){var t=o.useRef([]),n=o.useRef([0,0]),a=o.useRef(),c=o.use
1State(Y++)[0],i=o.useState(m)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var t=(0,r.fX)([e.lockRef.current],(e.shards||[]).map(W),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var r,o=A(e),c=n.current,i="deltaX"in e?e.deltaX:c[0]-o[0],u="deltaY"in e?e.deltaY:c[1]-o[1],d=e.target,s=Math.abs(i)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=x(s,d);if(!f)return!0;if(f?r=s:(r="v"===s?"h":"v",f=x(s,d)),!f)return!1;if(!a.current&&"changedTouches"in e&&(i||u)&&(a.current=r),!r)return!0;var h=a.current||r;return X(h,t,e,"h"===h?i:u,!0)},[]),d=o.useCallback(function(e){if(Z.length&&Z[Z.length-1]===i){var n="deltaY"in e?I(e):A(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(W).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=o.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=o.useCallback(function(e){n.current=A(e),a.current=void 0},[]),h=o.useCallback(function(t){s(t.type,I(t),t.target,u(t,e.lockRef.current))},[]),v=o.useCallback(function(t){s(t.type,A(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return Z.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",d,L),document.addEventListener("touchmove",d,L),document.addEventListener("touchstart",f,L),function(){Z=Z.filter(function(e){return e!==i}),document.removeEventListener("wheel",d,L),document.removeEventListener("touchmove",d,L),document.removeEventListener("touchstart",f,L)}},[]);var p=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(i,{styles:"\n  .block-interactivity-".concat(c," {pointer-events: none;}\n  .allow-interactivity-").concat(c," {pointer-events: all;}\n")}):null,p?o.createElement(S,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var D=o.forwardRef(function(e,t){return o.createElement(s,(0,r.Cl)({},e,{ref:t,sideCar:_}))});D.classNames=s.classNames;let F=D}}]);

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.