back_gestalt/resources/out/_next/static/chunks/742-fc8a609e8d43018d.js

1 line
22 KiB
JavaScript
Raw Normal View History

2025-01-15 15:04:34 +03:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[742],{8173:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let n=r(306),o=r(5155),i=n._(r(2115)),u=r(180),l=r(1394),a=r(4116),s=r(4445),f=r(5353),c=r(2170),d=r(9544);function p(e,t,r){"undefined"!=typeof window&&(async()=>e.prefetch(t,r))().catch(e=>{})}function g(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}r(2363);let m=i.default.forwardRef(function(e,t){let r,n;let{href:u,as:m,children:h,prefetch:y=null,passHref:b,replace:v,shallow:_,scroll:w,onClick:j,onMouseEnter:P,onTouchStart:C,legacyBehavior:x=!1,...O}=e;r=h,x&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let S=i.default.useContext(l.AppRouterContext),E=!1!==y,M=null===y?s.PrefetchKind.AUTO:s.PrefetchKind.FULL,{href:I,as:k}=i.default.useMemo(()=>{let e=g(u);return{href:e,as:m?g(m):e}},[u,m]),R=i.default.useRef(I),A=i.default.useRef(k);x&&(n=i.default.Children.only(r));let z=x?n&&"object"==typeof n&&n.ref:t,[T,N,U]=(0,a.useIntersection)({rootMargin:"200px"}),D=i.default.useCallback(e=>{(A.current!==k||R.current!==I)&&(U(),A.current=k,R.current=I),T(e)},[k,I,U,T]),F=(0,f.useMergedRef)(D,z);i.default.useEffect(()=>{S&&N&&E&&p(S,I,{kind:M})},[k,I,N,E,S,M]);let L={ref:F,onClick(e){x||"function"!=typeof j||j(e),x&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),S&&!e.defaultPrevented&&function(e,t,r,n,o,u,l){let{nodeName:a}=e.currentTarget;"A"===a.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||(e.preventDefault(),i.default.startTransition(()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:u,scroll:e}):t[o?"replace":"push"](n||r,{scroll:e})}))}(e,S,I,k,v,_,w)},onMouseEnter(e){x||"function"!=typeof P||P(e),x&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),S&&E&&p(S,I,{kind:M})},onTouchStart:function(e){x||"function"!=typeof C||C(e),x&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),S&&E&&p(S,I,{kind:M})}};return(0,c.isAbsoluteUrl)(k)?L.href=k:x&&!b&&("a"!==n.type||"href"in n.props)||(L.href=(0,d.addBasePath)(k)),x?i.default.cloneElement(n,L):(0,o.jsx)("a",{...O,...L,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7970:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(306),o=r(9955),i=r(5155),u=o._(r(2115)),l=n._(r(7650)),a=n._(r(6107)),s=r(666),f=r(1159),c=r(3621);r(2363);let d=r(3576),p=n._(r(5514)),g=r(5353),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e,t,r,n,o,i,u){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return u.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,u.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:l,width:a,decoding:s,className:f,style:c,fetchPriority:d,placeholder:p,loading:m,unoptimized:b,fill:v,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:P,sizesInput:C,onLoad:x,onError:O,...S}=e,E=(0,u.useCa