1 line
24 KiB
JSON
1 line
24 KiB
JSON
{"ast":null,"code":"\"use client\";\n\nimport React from 'react';\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport omit from \"rc-util/es/omit\";\nimport throttleByAnimationFrame from '../_util/throttleByAnimationFrame';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport { getFixedBottom, getFixedTop, getTargetRect } from './utils';\nconst TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];\nfunction getDefaultTarget() {\n return typeof window !== 'undefined' ? window : null;\n}\nconst AFFIX_STATUS_NONE = 0;\nconst AFFIX_STATUS_PREPARE = 1;\nconst Affix = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n style,\n offsetTop,\n offsetBottom,\n prefixCls,\n className,\n rootClassName,\n children,\n target,\n onChange\n } = props;\n const {\n getPrefixCls,\n getTargetContainer\n } = React.useContext(ConfigContext);\n const affixPrefixCls = getPrefixCls('affix', prefixCls);\n const [lastAffix, setLastAffix] = React.useState(false);\n const [affixStyle, setAffixStyle] = React.useState();\n const [placeholderStyle, setPlaceholderStyle] = React.useState();\n const status = React.useRef(AFFIX_STATUS_NONE);\n const prevTarget = React.useRef(null);\n const prevListener = React.useRef();\n const placeholderNodeRef = React.useRef(null);\n const fixedNodeRef = React.useRef(null);\n const timer = React.useRef(null);\n const targetFunc = (_a = target !== null && target !== void 0 ? target : getTargetContainer) !== null && _a !== void 0 ? _a : getDefaultTarget;\n const internalOffsetTop = offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;\n // =================== Measure ===================\n const measure = () => {\n if (status.current !== AFFIX_STATUS_PREPARE || !fixedNodeRef.current || !placeholderNodeRef.current || !targetFunc) {\n return;\n }\n const targetNode = targetFunc();\n if (targetNode) {\n const newState = {\n status: AFFIX_STATUS_NONE\n };\n const placeholderRect = getTargetRect(placeholderNodeRef.current);\n if (placeholderRect.top === 0 && placeholderRect.left === 0 && placeholderRect.width === 0 && placeholderRect.height === 0) {\n return;\n }\n const targetRect = getTargetRect(targetNode);\n const fixedTop = getFixedTop(placeholderRect, targetRect, internalOffsetTop);\n const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);\n if (fixedTop !== undefined) {\n newState.affixStyle = {\n position: 'fixed',\n top: fixedTop,\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n newState.placeholderStyle = {\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n } else if (fixedBottom !== undefined) {\n newState.affixStyle = {\n position: 'fixed',\n bottom: fixedBottom,\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n newState.placeholderStyle = {\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n }\n newState.lastAffix = !!newState.affixStyle;\n if (lastAffix !== newState.lastAffix) {\n onChange === null || onChange === void 0 ? void 0 : onChange(newState.lastAffix);\n }\n status.current = newState.status;\n setAffixStyle(newState.affixStyle);\n setPlaceholderStyle(newState.placeholderStyle);\n setLastAffix(newState.lastAffix);\n }\n };\n const prepareMeasure = () => {\n var _a;\n status.current = AFFIX_STATUS_PREPARE;\n measure();\n if (process.env.NODE_ENV === 'test') {\n (_a = props === null || props === void 0 ? void 0 : props.onTestUpdatePosition) === null || _a === void 0 ? void 0 : _a.call(props);\n }\n };\n const updatePosition = throttleByAnimationFrame(() => {\n prepareMeasure();\n });\n const lazyUpdatePosition = throttleByAnimationFrame(() => {\n // Check position change before measure to make Safari smooth\n if (targetFunc && affixStyle) {\n const targetNode = targetFunc();\n if (targetNode && placeholderNodeRef.current) {\n const targetRect = getTargetRect(targetNode);\n const placeholderRect = getTargetRect(placeholderNodeRef.current);\n const fixedTop = getFixedTop(placeholderRect, targetRect, internalOffsetTop);\n const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);\n if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {\n return;\n }\n }\n }\n // Directly call prepare measure since it's already throttled.\n prepareMeasure();\n });\n const addListeners = () => {\n const listenerTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();\n if (!listenerTarget) {\n return;\n }\n TRIGGER_EVENTS.forEach(eventName => {\n var _a;\n if (prevListener.current) {\n (_a = prevTarget.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(eventName, prevListener.current);\n }\n listenerTarget === null || listenerTarget === void 0 ? void 0 : listenerTarget.addEventListener(eventName, lazyUpdatePosition);\n });\n prevTarget.current = listenerTarget;\n prevListener.current = lazyUpdatePosition;\n };\n const removeListeners = () => {\n if (timer.current) {\n clearTimeout(timer.current);\n timer.current = null;\n }\n const newTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();\n TRIGGER_EVENTS.forEach(eventName => {\n var _a;\n newTarget === null || newTarget === void 0 ? void 0 : newTarget.removeEventListener(eventName, lazyUpdatePosition);\n if (prevListener.current) {\n (_a = prevTarget.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(eventName, prevListener.current);\n }\n });\n updatePosition.cancel();\n lazyUpdatePosition.cancel();\n };\n React.useImperativeHandle(ref, () => ({\n updatePosition\n }));\n // mount & unmount\n React.useEffect(() => {\n // [Legacy] Wait for parent component ref has its value.\n // We should use target as directly element instead of function which makes element check hard.\n timer.current = setTimeout(addListeners);\n return () => removeListeners();\n }, []);\n React.useEffect(() => {\n addListeners();\n }, [target, affixStyle]);\n React.useEffect(() => {\n updatePosition();\n }, [target, offsetTop, offsetBottom]);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(affixPrefixCls);\n const rootCls = classNames(rootClassName, hashId, affixPrefixCls, cssVarCls);\n const mergedCls = classNames({\n [rootCls]: affixStyle\n });\n let otherProps = omit(props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'rootClassName']);\n if (process.env.NODE_ENV === 'test') {\n otherProps = omit(otherProps, ['onTestUpdatePosition']);\n }\n return wrapCSSVar( /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: updatePosition\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n style: style,\n className: className,\n ref: placeholderNodeRef\n }, otherProps), affixStyle && /*#__PURE__*/React.createElement(\"div\", {\n style: placeholderStyle,\n \"aria-hidden\": \"true\"\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: mergedCls,\n ref: fixedNodeRef,\n style: affixStyle\n }, /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: updatePosition\n }, children)))));\n});\nif (process.env.NODE_ENV !== 'production') {\n Affix.displayName = 'Affix';\n}\nexport default Affix;","map":{"version":3,"names":["React","classNames","ResizeObserver","omit","throttleByAnimationFrame","ConfigContext","useStyle","getFixedBottom","getFixedTop","getTargetRect","TRIGGER_EVENTS","getDefaultTarget","window","AFFIX_STATUS_NONE","AFFIX_STATUS_PREPARE","Affix","forwardRef","props","ref","_a","style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","getPrefixCls","getTargetContainer","useContext","affixPrefixCls","lastAffix","setLastAffix","useState","affixStyle","setAffixStyle","placeholderStyle","setPlaceholderStyle","status","useRef","prevTarget","prevListener","placeholderNodeRef","fixedNodeRef","timer","targetFunc","internalOffsetTop","undefined","measure","current","targetNode","newState","placeholderRect","top","left","width","height","targetRect","fixedTop","fixedBottom","position","bottom","prepareMeasure","process","env","NODE_ENV","onTestUpdatePosition","call","updatePosition","lazyUpdatePosition","addListeners","listenerTarget","forEach","eventName","removeEventListener","addEventListener","removeListeners","clearTimeout","newTarget","cancel","useImperativeHandle","useEffect","setTimeout","wrapCSSVar","hashId","cssVarCls","rootCls","mergedCls","otherProps","createElement","onResize","Object","assign","displayName"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/affix/index.js"],"sourcesContent":["\"use client\";\n\nimport React from 'react';\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport omit from \"rc-util/es/omit\";\nimport throttleByAnimationFrame from '../_util/throttleByAnimationFrame';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport { getFixedBottom, getFixedTop, getTargetRect } from './utils';\nconst TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];\nfunction getDefaultTarget() {\n return typeof window !== 'undefined' ? window : null;\n}\nconst AFFIX_STATUS_NONE = 0;\nconst AFFIX_STATUS_PREPARE = 1;\nconst Affix = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n style,\n offsetTop,\n offsetBottom,\n prefixCls,\n className,\n rootClassName,\n children,\n target,\n onChange\n } = props;\n const {\n getPrefixCls,\n getTargetContainer\n } = React.useContext(ConfigContext);\n const affixPrefixCls = getPrefixCls('affix', prefixCls);\n const [lastAffix, setLastAffix] = React.useState(false);\n const [affixStyle, setAffixStyle] = React.useState();\n const [placeholderStyle, setPlaceholderStyle] = React.useState();\n const status = React.useRef(AFFIX_STATUS_NONE);\n const prevTarget = React.useRef(null);\n const prevListener = React.useRef();\n const placeholderNodeRef = React.useRef(null);\n const fixedNodeRef = React.useRef(null);\n const timer = React.useRef(null);\n const targetFunc = (_a = target !== null && target !== void 0 ? target : getTargetContainer) !== null && _a !== void 0 ? _a : getDefaultTarget;\n const internalOffsetTop = offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;\n // =================== Measure ===================\n const measure = () => {\n if (status.current !== AFFIX_STATUS_PREPARE || !fixedNodeRef.current || !placeholderNodeRef.current || !targetFunc) {\n return;\n }\n const targetNode = targetFunc();\n if (targetNode) {\n const newState = {\n status: AFFIX_STATUS_NONE\n };\n const placeholderRect = getTargetRect(placeholderNodeRef.current);\n if (placeholderRect.top === 0 && placeholderRect.left === 0 && placeholderRect.width === 0 && placeholderRect.height === 0) {\n return;\n }\n const targetRect = getTargetRect(targetNode);\n const fixedTop = getFixedTop(placeholderRect, targetRect, internalOffsetTop);\n const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);\n if (fixedTop !== undefined) {\n newState.affixStyle = {\n position: 'fixed',\n top: fixedTop,\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n newState.placeholderStyle = {\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n } else if (fixedBottom !== undefined) {\n newState.affixStyle = {\n position: 'fixed',\n bottom: fixedBottom,\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n newState.placeholderStyle = {\n width: placeholderRect.width,\n height: placeholderRect.height\n };\n }\n newState.lastAffix = !!newState.affixStyle;\n if (lastAffix !== newState.lastAffix) {\n onChange === null || onChange === void 0 ? void 0 : onChange(newState.lastAffix);\n }\n status.current = newState.status;\n setAffixStyle(newState.affixStyle);\n setPlaceholderStyle(newState.placeholderStyle);\n setLastAffix(newState.lastAffix);\n }\n };\n const prepareMeasure = () => {\n var _a;\n status.current = AFFIX_STATUS_PREPARE;\n measure();\n if (process.env.NODE_ENV === 'test') {\n (_a = props === null || props === void 0 ? void 0 : props.onTestUpdatePosition) === null || _a === void 0 ? void 0 : _a.call(props);\n }\n };\n const updatePosition = throttleByAnimationFrame(() => {\n prepareMeasure();\n });\n const lazyUpdatePosition = throttleByAnimationFrame(() => {\n // Check position change before measure to make Safari smooth\n if (targetFunc && affixStyle) {\n const targetNode = targetFunc();\n if (targetNode && placeholderNodeRef.current) {\n const targetRect = getTargetRect(targetNode);\n const placeholderRect = getTargetRect(placeholderNodeRef.current);\n const fixedTop = getFixedTop(placeholderRect, targetRect, internalOffsetTop);\n const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);\n if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {\n return;\n }\n }\n }\n // Directly call prepare measure since it's already throttled.\n prepareMeasure();\n });\n const addListeners = () => {\n const listenerTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();\n if (!listenerTarget) {\n return;\n }\n TRIGGER_EVENTS.forEach(eventName => {\n var _a;\n if (prevListener.current) {\n (_a = prevTarget.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(eventName, prevListener.current);\n }\n listenerTarget === null || listenerTarget === void 0 ? void 0 : listenerTarget.addEventListener(eventName, lazyUpdatePosition);\n });\n prevTarget.current = listenerTarget;\n prevListener.current = lazyUpdatePosition;\n };\n const removeListeners = () => {\n if (timer.current) {\n clearTimeout(timer.current);\n timer.current = null;\n }\n const newTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();\n TRIGGER_EVENTS.forEach(eventName => {\n var _a;\n newTarget === null || newTarget === void 0 ? void 0 : newTarget.removeEventListener(eventName, lazyUpdatePosition);\n if (prevListener.current) {\n (_a = prevTarget.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(eventName, prevListener.current);\n }\n });\n updatePosition.cancel();\n lazyUpdatePosition.cancel();\n };\n React.useImperativeHandle(ref, () => ({\n updatePosition\n }));\n // mount & unmount\n React.useEffect(() => {\n // [Legacy] Wait for parent component ref has its value.\n // We should use target as directly element instead of function which makes element check hard.\n timer.current = setTimeout(addListeners);\n return () => removeListeners();\n }, []);\n React.useEffect(() => {\n addListeners();\n }, [target, affixStyle]);\n React.useEffect(() => {\n updatePosition();\n }, [target, offsetTop, offsetBottom]);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(affixPrefixCls);\n const rootCls = classNames(rootClassName, hashId, affixPrefixCls, cssVarCls);\n const mergedCls = classNames({\n [rootCls]: affixStyle\n });\n let otherProps = omit(props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'rootClassName']);\n if (process.env.NODE_ENV === 'test') {\n otherProps = omit(otherProps, ['onTestUpdatePosition']);\n }\n return wrapCSSVar( /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: updatePosition\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n style: style,\n className: className,\n ref: placeholderNodeRef\n }, otherProps), affixStyle && /*#__PURE__*/React.createElement(\"div\", {\n style: placeholderStyle,\n \"aria-hidden\": \"true\"\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: mergedCls,\n ref: fixedNodeRef,\n style: affixStyle\n }, /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: updatePosition\n }, children)))));\n});\nif (process.env.NODE_ENV !== 'production') {\n Affix.displayName = 'Affix';\n}\nexport default Affix;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,wBAAwB,MAAM,mCAAmC;AACxE,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,QAAQ,MAAM,SAAS;AAC9B,SAASC,cAAc,EAAEC,WAAW,EAAEC,aAAa,QAAQ,SAAS;AACpE,MAAMC,cAAc,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC;AACtG,SAASC,gBAAgBA,CAAA,EAAG;EAC1B,OAAO,OAAOC,MAAM,KAAK,WAAW,GAAGA,MAAM,GAAG,IAAI;AACtD;AACA,MAAMC,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,oBAAoB,GAAG,CAAC;AAC9B,MAAMC,KAAK,GAAG,aAAaf,KAAK,CAACgB,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC1D,IAAIC,EAAE;EACN,MAAM;IACJC,KAAK;IACLC,SAAS;IACTC,YAAY;IACZC,SAAS;IACTC,SAAS;IACTC,aAAa;IACbC,QAAQ;IACRC,MAAM;IACNC;EACF,CAAC,GAAGX,KAAK;EACT,MAAM;IACJY,YAAY;IACZC;EACF,CAAC,GAAG9B,KAAK,CAAC+B,UAAU,CAAC1B,aAAa,CAAC;EACnC,MAAM2B,cAAc,GAAGH,YAAY,CAAC,OAAO,EAAEN,SAAS,CAAC;EACvD,MAAM,CAACU,SAAS,EAAEC,YAAY,CAAC,GAAGlC,KAAK,CAACmC,QAAQ,CAAC,KAAK,CAAC;EACvD,MAAM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