PageSourceSearch

https://front.com/_next/static/chunks/8187-a4e617017b80d82c.js

js front.com collected 2026-10-02 02:34:02 UTC 10,985 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8187],{82286:function(e,n,t){t.d(n,{Z:function(){return J}});var r,o,a,c,i,u,l,d=function(){return(d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function s(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>n.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}"function"==typeof SuppressedError&&SuppressedError;var f=t(2265),h="right-scroll-bar-position",v="width-before-scroll-bar";function p(e,n){return"function"==typeof e?e(n):e&&(e.current=n),e}var m="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),c=[],i=!1,u={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(e){var n=a(e,i);return c.push(n),function(){c=c.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(i=!0;c.length;){var n=c;c=[],n.forEach(e)}c={push:function(n){return e(n)},filter:function(){return c}}},assignMedium:function(e){i=!0;var n=[];if(c.length){var t=c;c=[],t.forEach(e),n=c}var r=function(){var t=n;n=[],t.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),c={push:function(e){n.push(e),o()},filter:function(e){return n=n.filter(e),c}}}}).options=d({async:!0,ssr:!1},o),u),w=function(){},b=f.forwardRef(function(e,n){var t,r,o,a,c=f.useRef(null),i=f.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),u=i[0],l=i[1],h=e.forwardProps,v=e.children,b=e.className,E=e.removeScrollBar,S=e.enabled,C=e.shards,k=e.sideCar,R=e.noRelative,M=e.noIsolation,N=e.inert,T=e.allowPinchZoom,x=e.as,L=e.gapMode,O=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(t=[c,n],r=function(e){return t.forEach(function(n){return p(n,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,m(function(){var e=g.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){n.has(e)||p(e,o)})}g.set(a,t)},[t]),a),A=d(d({},O),u);return f.createElement(f.Fragment,null,S&&f.createElement(k,{sideCar:y,removeScrollBar:E,shards:C,noRelative:R,noIsolation:M,inert:N,setCallbacks:l,allowPinchZoom:!!T,lockRef:c,gapMode:L}),h?f.cloneElement(f.Children.only(v),d(d({},A),{ref:P})):f.createElement(void 0===x?"div":x,d({},A,{className:b,ref:P}),v))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:v,zeroRight:h};var E=function(e){var n=e.sideCar,t=s(e,["sideCar"]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,d({},t))};E.isSideCarExport=!0;var S=function(){var e=0,n=null;return{add:function(o){if(0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=r||t.nc;return n&&e.setAttribute("nonce",n),e}())){var a,c;(a=n).styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),c=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(c)}e++},remove:function(){--e||!n||(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},C=function(){var e=S();return function(n,t){f.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},k=function(){var e=C();return function(n){return e(n.styles,n.dynamic),null}},R={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},N=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[M(t),M(r),M(o)]},T=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var n=N(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},x=k(),L="data-scroll-locked",O=function(e,n,t,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===t&&(t="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(i,"px ").concat(r,";\n  }\n  body[").concat(L,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(c,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(i,"px ").concat(r,";\n    "),"padding"===t&&"padding-right: ".concat(i,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(h," {\n    right: ").concat(i,"px ").concat(r,";\n  }\n  \n  .").concat(v," {\n    margin-right: ").concat(i,"px ").concat(r,";\n  }\n  \n  .").concat(h," .").concat(h," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(v," .").concat(v," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(L,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n  }\n")},P=function(){var e=parseInt(document.body.getAttribute(L)||"0",10);return isFinite(e)?e:0},A=function(){f.useEffect(function(){return document.body.setAttribute(L,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(L):document.body.setAttribute(L,e.toString())}},[])},B=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;A();var a=f.useMemo(function(){return T(o)},[o]);return f.createElement(x,{styles:O(a,!n,o,t?"":"!important")})},j=!1;if("undefined"!=typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){j=!1}var W=!!j&&{passive:!1},X=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===t[n])},Y=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var o=D(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},_=function(e,n){return"v"===e?X(n,"overflowY"):X(n,"overflowX")},D=function(e,n){return"v"===e?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},Z=function(e,n,t,r,o){var a,c=(a=window.getComputedStyle(n).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=t.target,l=n.contains(u),d=!1,s=i>0,f=0,h=0;do{if(!u)break;var v=D(e,u),p=v[0],m=v[1]-v[2]-c*p;(p||m)&&_(e,u)&&(f+=m,h+=p);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&u!==document.body||l&&(n.contains(u)||n===u));return s&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!s&&(o&&1>Math.abs(h)||!o&&-i>h)&&(d=!0),d},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},G=0,K=[],U=(l=function(e){var n=f.useRef([]),t=f.useRef([0,0]),r=f.useRef(),o=f.useState(G++)[0],a=f.useState(k)[0],c=f.useRef(e);f.useEffect(function(){c.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var n=(function(e,n,t){if(t||2==arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))})([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),n.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(e,n){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var o,a=F(e),i=t.current,u="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,s=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===d||h.contains(d)))return!1;var v=Y(s,d);if(!v)return!0;if(v?o=s:(o="v"===s?"h":"v",v=Y(s,d)),!v)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var p=r.current||o;return Z(p,n,e,"h"===p?u:l,!0)},[]),u=f.useCallback(function(e){if(K.length&&K[K.length-1]===a){var t="deltaY"in e?z(e):F(e),r=n.current.filter(function(n){var r;return n.name===e.type&&(n.target===e.target||e.target===n.shadowParent)&&(r=n.delta)[0]===t[0]&&r[1]===t[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(c.current.shards||[]).map(H).filter(Boolean).filter(function(n){return n.contains(e.target)});(o.length>0?i(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=f.useCallback(function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:function(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=f.useCallback(function(e){t.current=F(e),r.current=void 0},[]),s=f.useCallback(function(n){l(n.type,z(n),n.target,i(n,e.lockRef.current))},[]),h=f.useCallback(function(n){l(n.type,F(n),n.target,i(n,e.lockRef.current))},[]);f.useEffect(function(){return K.push(a),e.setCallbacks({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:h}),document.addEventListener("wheel",u,W),document.addEventListener("touchmove",u,W),document.addEventListener("touchstart",d,W),function(){K=K.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,W),document.removeEventListener("touchmove",u,W),document.removeEventListener("touchstart",d,W)}},[]);var v=e.removeScrollBar,p=e.inert;return f.createElement(f.Fragment,null,p?f.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(B,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(l),E),q=f.forwardRef(function(e,n){return f.createElement(b,d({},e,{ref:n,sideCar:U}))});q.classNames=b.classNames;var J=q}}]);
2//# sourceMappingURL=8187-a4e617017b80d82c.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.