{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport Trigger from '@rc-component/trigger';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { getRealPlacement } from \"../utils/uiUtil\";\nimport PickerContext from \"../PickerInput/context\";\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 1,\n adjustY: 1\n }\n },\n bottomRight: {\n points: ['tr', 'br'],\n offset: [0, 4],\n overflow: {\n adjustX: 1,\n adjustY: 1\n }\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n },\n topRight: {\n points: ['br', 'tr'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n }\n};\nfunction PickerTrigger(_ref) {\n var popupElement = _ref.popupElement,\n popupStyle = _ref.popupStyle,\n popupClassName = _ref.popupClassName,\n popupAlign = _ref.popupAlign,\n transitionName = _ref.transitionName,\n getPopupContainer = _ref.getPopupContainer,\n children = _ref.children,\n range = _ref.range,\n placement = _ref.placement,\n _ref$builtinPlacement = _ref.builtinPlacements,\n builtinPlacements = _ref$builtinPlacement === void 0 ? BUILT_IN_PLACEMENTS : _ref$builtinPlacement,\n direction = _ref.direction,\n visible = _ref.visible,\n onClose = _ref.onClose;\n var _React$useContext = React.useContext(PickerContext),\n prefixCls = _React$useContext.prefixCls;\n var dropdownPrefixCls = \"\".concat(prefixCls, \"-dropdown\");\n var realPlacement = getRealPlacement(placement, direction === 'rtl');\n return /*#__PURE__*/React.createElement(Trigger, {\n showAction: [],\n hideAction: ['click'],\n popupPlacement: realPlacement,\n builtinPlacements: builtinPlacements,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: transitionName,\n popup: popupElement,\n popupAlign: popupAlign,\n popupVisible: visible,\n popupClassName: classNames(popupClassName, _defineProperty(_defineProperty({}, \"\".concat(dropdownPrefixCls, \"-range\"), range), \"\".concat(dropdownPrefixCls, \"-rtl\"), direction === 'rtl')),\n popupStyle: popupStyle,\n stretch: \"minWidth\",\n getPopupContainer: getPopupContainer,\n onPopupVisibleChange: function onPopupVisibleChange(nextVisible) {\n if (!nextVisible) {\n onClose();\n }\n }\n }, children);\n}\nexport default PickerTrigger;","map":{"version":3,"names":["_defineProperty","Trigger","classNames","React","getRealPlacement","PickerContext","BUILT_IN_PLACEMENTS","bottomLeft","points","offset","overflow","adjustX","adjustY","bottomRight","topLeft","topRight","PickerTrigger","_ref","popupElement","popupStyle","popupClassName","popupAlign","transitionName","getPopupContainer","children","range","placement","_ref$builtinPlacement","builtinPlacements","direction","visible","onClose","_React$useContext","useContext","prefixCls","dropdownPrefixCls","concat","realPlacement","createElement","showAction","hideAction","popupPlacement","popupTransitionName","popup","popupVisible","stretch","onPopupVisibleChange","nextVisible"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-picker/es/PickerTrigger/index.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport Trigger from '@rc-component/trigger';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { getRealPlacement } from \"../utils/uiUtil\";\nimport PickerContext from \"../PickerInput/context\";\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 1,\n adjustY: 1\n }\n },\n bottomRight: {\n points: ['tr', 'br'],\n offset: [0, 4],\n overflow: {\n adjustX: 1,\n adjustY: 1\n }\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n },\n topRight: {\n points: ['br', 'tr'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n }\n};\nfunction PickerTrigger(_ref) {\n var popupElement = _ref.popupElement,\n popupStyle = _ref.popupStyle,\n popupClassName = _ref.popupClassName,\n popupAlign = _ref.popupAlign,\n transitionName = _ref.transitionName,\n getPopupContainer = _ref.getPopupContainer,\n children = _ref.children,\n range = _ref.range,\n placement = _ref.placement,\n _ref$builtinPlacement = _ref.builtinPlacements,\n builtinPlacements = _ref$builtinPlacement === void 0 ? BUILT_IN_PLACEMENTS : _ref$builtinPlacement,\n direction = _ref.direction,\n visible = _ref.visible,\n onClose = _ref.onClose;\n var _React$useContext = React.useContext(PickerContext),\n prefixCls = _React$useContext.prefixCls;\n var dropdownPrefixCls = \"\".concat(prefixCls, \"-dropdown\");\n var realPlacement = getRealPlacement(placement, direction === 'rtl');\n return /*#__PURE__*/React.createElement(Trigger, {\n showAction: [],\n hideAction: ['click'],\n popupPlacement: realPlacement,\n builtinPlacements: builtinPlacements,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: transitionName,\n popup: popupElement,\n popupAlign: popupAlign,\n popupVisible: visible,\n popupClassName: classNames(popupClassName, _defineProperty(_defineProperty({}, \"\".concat(dropdownPrefixCls, \"-range\"), range), \"\".concat(dropdownPrefixCls, \"-rtl\"), direction === 'rtl')),\n popupStyle: popupStyle,\n stretch: \"minWidth\",\n getPopupContainer: getPopupContainer,\n onPopupVisibleChange: function onPopupVisibleChange(nextVisible) {\n if (!nextVisible) {\n onClose();\n }\n }\n }, children);\n}\nexport default PickerTrigger;"],"mappings":"AAAA,OAAOA,eAAe,MAAM,2CAA2C;AACvE,OAAOC,OAAO,MAAM,uBAAuB;AAC3C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,OAAOC,aAAa,MAAM,wBAAwB;AAClD,IAAIC,mBAAmB,GAAG;EACxBC,UAAU,EAAE;IACVC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACpBC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACdC,QAAQ,EAAE;MACRC,OAAO,EAAE,CAAC;MACVC,OAAO,EAAE;IACX;EACF,CAAC;EAC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