PromoCursed/node_modules/.cache/babel-loader/aa84d3680d217c917299a22a1cecbb9f49b4512a70dfa43a3e3b7a2a62499152.json
2024-08-20 23:25:37 +04:00

1 line
6.2 KiB
JSON

{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Panel } from 'rc-cascader';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useBase from './hooks/useBase';\nimport useCheckable from './hooks/useCheckable';\nimport useColumnIcons from './hooks/useColumnIcons';\nimport useStyle from './style';\nimport usePanelStyle from './style/panel';\nfunction CascaderPanel(props) {\n const {\n prefixCls: customizePrefixCls,\n className,\n multiple,\n rootClassName,\n notFoundContent,\n direction,\n expandIcon\n } = props;\n const [prefixCls, cascaderPrefixCls, mergedDirection, renderEmpty] = useBase(customizePrefixCls, direction);\n const rootCls = useCSSVarCls(cascaderPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(cascaderPrefixCls, rootCls);\n usePanelStyle(cascaderPrefixCls);\n const isRtl = mergedDirection === 'rtl';\n // ===================== Icon ======================\n const [mergedExpandIcon, loadingIcon] = useColumnIcons(prefixCls, isRtl, expandIcon);\n // ===================== Empty =====================\n const mergedNotFoundContent = notFoundContent || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Cascader')) || ( /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"Cascader\"\n }));\n // =================== Multiple ====================\n const checkable = useCheckable(cascaderPrefixCls, multiple);\n // ==================== Render =====================\n return wrapCSSVar( /*#__PURE__*/React.createElement(Panel, Object.assign({}, props, {\n checkable: checkable,\n prefixCls: cascaderPrefixCls,\n className: classNames(className, hashId, rootClassName, cssVarCls, rootCls),\n notFoundContent: mergedNotFoundContent,\n direction: mergedDirection,\n expandIcon: mergedExpandIcon,\n loadingIcon: loadingIcon\n })));\n}\nexport default CascaderPanel;","map":{"version":3,"names":["React","classNames","Panel","DefaultRenderEmpty","useCSSVarCls","useBase","useCheckable","useColumnIcons","useStyle","usePanelStyle","CascaderPanel","props","prefixCls","customizePrefixCls","className","multiple","rootClassName","notFoundContent","direction","expandIcon","cascaderPrefixCls","mergedDirection","renderEmpty","rootCls","wrapCSSVar","hashId","cssVarCls","isRtl","mergedExpandIcon","loadingIcon","mergedNotFoundContent","createElement","componentName","checkable","Object","assign"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/cascader/Panel.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Panel } from 'rc-cascader';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useBase from './hooks/useBase';\nimport useCheckable from './hooks/useCheckable';\nimport useColumnIcons from './hooks/useColumnIcons';\nimport useStyle from './style';\nimport usePanelStyle from './style/panel';\nfunction CascaderPanel(props) {\n const {\n prefixCls: customizePrefixCls,\n className,\n multiple,\n rootClassName,\n notFoundContent,\n direction,\n expandIcon\n } = props;\n const [prefixCls, cascaderPrefixCls, mergedDirection, renderEmpty] = useBase(customizePrefixCls, direction);\n const rootCls = useCSSVarCls(cascaderPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(cascaderPrefixCls, rootCls);\n usePanelStyle(cascaderPrefixCls);\n const isRtl = mergedDirection === 'rtl';\n // ===================== Icon ======================\n const [mergedExpandIcon, loadingIcon] = useColumnIcons(prefixCls, isRtl, expandIcon);\n // ===================== Empty =====================\n const mergedNotFoundContent = notFoundContent || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Cascader')) || ( /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"Cascader\"\n }));\n // =================== Multiple ====================\n const checkable = useCheckable(cascaderPrefixCls, multiple);\n // ==================== Render =====================\n return wrapCSSVar( /*#__PURE__*/React.createElement(Panel, Object.assign({}, props, {\n checkable: checkable,\n prefixCls: cascaderPrefixCls,\n className: classNames(className, hashId, rootClassName, cssVarCls, rootCls),\n notFoundContent: mergedNotFoundContent,\n direction: mergedDirection,\n expandIcon: mergedExpandIcon,\n loadingIcon: loadingIcon\n })));\n}\nexport default CascaderPanel;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,aAAa;AACnC,OAAOC,kBAAkB,MAAM,uCAAuC;AACtE,OAAOC,YAAY,MAAM,uCAAuC;AAChE,OAAOC,OAAO,MAAM,iBAAiB;AACrC,OAAOC,YAAY,MAAM,sBAAsB;AAC/C,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,QAAQ,MAAM,SAAS;AAC9B,OAAOC,aAAa,MAAM,eAAe;AACzC,SAASC,aAAaA,CAACC,KAAK,EAAE;EAC5B,MAAM;IACJC,SAAS,EAAEC,kBAAkB;IAC7BC,SAAS;IACTC,QAAQ;IACRC,aAAa;IACbC,eAAe;IACfC,SAAS;IACTC;EACF,CAAC,GAAGR,KAAK;EACT,MAAM,CAACC,SAAS,EAAEQ,iBAAiB,EAAEC,eAAe,EAAEC,WAAW,CAAC,GAAGjB,OAAO,CAACQ,kBAAkB,EAAEK,SAAS,CAAC;EAC3G,MAAMK,OAAO,GAAGnB,YAAY,CAACgB,iBAAiB,CAAC;EAC/C,MAAM,CAACI,UAAU,EAAEC,MAAM,EAAEC,SAAS,CAAC,GAAGlB,QAAQ,CAACY,iBAAiB,EAAEG,OAAO,CAAC;EAC5Ed,aAAa,CAACW,iBAAiB,CAAC;EAChC,MAAMO,KAAK,GAAGN,eAAe,KAAK,KAAK;EACvC;EACA,MAAM,CAACO,gBAAgB,EAAEC,WAAW,CAAC,GAAGtB,cAAc,CAACK,SAAS,EAAEe,KAAK,EAAER,UAAU,CAAC;EACpF;EACA,MAAMW,qBAAqB,GAAGb,eAAe,KAAKK,WAAW,KAAK,IAAI,IA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