GoScrobble/web/node_modules/.cache/babel-loader/0f3c61cba46ba9192b9b6139c24dc113.json

1 line
6.0 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport warning from 'warning';\nimport { ManagerReferenceNodeSetterContext } from './Manager';\nimport { safeInvoke, unwrapArray, setRef } from './utils';\n\nvar InnerReference = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(InnerReference, _React$Component);\n\n function InnerReference() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"refHandler\", function (node) {\n setRef(_this.props.innerRef, node);\n safeInvoke(_this.props.setReferenceNode, node);\n });\n\n return _this;\n }\n\n var _proto = InnerReference.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n setRef(this.props.innerRef, null);\n };\n\n _proto.render = function render() {\n warning(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');\n return unwrapArray(this.props.children)({\n ref: this.refHandler\n });\n };\n\n return InnerReference;\n}(React.Component);\n\nexport default function Reference(props) {\n return React.createElement(ManagerReferenceNodeSetterContext.Consumer, null, function (setReferenceNode) {\n return React.createElement(InnerReference, _extends({\n setReferenceNode: setReferenceNode\n }, props));\n });\n}","map":{"version":3,"sources":["/app/node_modules/react-popper/lib/esm/Reference.js"],"names":["_extends","_inheritsLoose","_assertThisInitialized","_defineProperty","React","warning","ManagerReferenceNodeSetterContext","safeInvoke","unwrapArray","setRef","InnerReference","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","node","props","innerRef","setReferenceNode","_proto","prototype","componentWillUnmount","render","Boolean","children","ref","refHandler","Component","Reference","createElement","Consumer"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,cAAP,MAA2B,sCAA3B;AACA,OAAOC,sBAAP,MAAmC,8CAAnC;AACA,OAAOC,eAAP,MAA4B,uCAA5B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,OAAP,MAAoB,SAApB;AACA,SAASC,iCAAT,QAAkD,WAAlD;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,MAAlC,QAAgD,SAAhD;;AAEA,IAAIC,cAAc,GAClB,aACA,UAAUC,gBAAV,EAA4B;AAC1BV,EAAAA,cAAc,CAACS,cAAD,EAAiBC,gBAAjB,CAAd;;AAEA,WAASD,cAAT,GAA0B;AACxB,QAAIE,KAAJ;;AAEA,SAAK,IAAIC,IAAI,GAAGC,SAAS,CAACC,MAArB,EAA6BC,IAAI,GAAG,IAAIC,KAAJ,CAAUJ,IAAV,CAApC,EAAqDK,IAAI,GAAG,CAAjE,EAAoEA,IAAI,GAAGL,IAA3E,EAAiFK,IAAI,EAArF,EAAyF;AACvFF,MAAAA,IAAI,CAACE,IAAD,CAAJ,GAAaJ,SAAS,CAACI,IAAD,CAAtB;AACD;;AAEDN,IAAAA,KAAK,GAAGD,gBAAgB,CAACQ,IAAjB,CAAsBC,KAAtB,CAA4BT,gBAA5B,EAA8C,CAAC,IAAD,EAAOU,MAAP,CAAcL,IAAd,CAA9C,KAAsE,IAA9E;;AAEAb,IAAAA,eAAe,CAACD,sBAAsB,CAACA,sBAAsB,CAACU,KAAD,CAAvB,CAAvB,EAAwD,YAAxD,EAAsE,UAAUU,IAAV,EAAgB;AACnGb,MAAAA,MAAM,CAACG,KAAK,CAACW,KAAN,CAAYC,QAAb,EAAuBF,IAAvB,CAAN;AACAf,MAAAA,UAAU,CAACK,KAAK,CAACW,KAAN,CAAYE,gBAAb,EAA+BH,IAA/B,CAAV;AACD,KAHc,CAAf;;AAKA,WAAOV,KAAP;AACD;;AAED,MAAIc,MAAM,GAAGhB,cAAc,CAACiB,SAA5B;;AAEAD,EAAAA,MAAM,CAACE,oBAAP,GAA8B,SAASA,oBAAT,GAAgC;AAC5DnB,IAAAA,MAAM,CAAC,KAAKc,KAAL,CAAWC,QAAZ,EAAsB,IAAtB,CAAN;AACD,GAFD;;AAIAE,EAAAA,MAAM,CAACG,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChCxB,IAAAA,OAAO,CAACyB,OAAO,CAAC,KAAKP,KAAL,CAAWE,gBAAZ,CAAR,EAAuC,kEAAvC,CAAP;AACA,WAAOjB,WAAW,CAAC,KAAKe,KAAL,CAAWQ,QAAZ,CAAX,CAAiC;AACtCC,MAAAA,GAAG,EAAE,KAAKC;AAD4B,KAAjC,CAAP;AAGD,GALD;;AAOA,SAAOvB,cAAP;AACD,CAlCD,CAkCEN,KAAK,CAAC8B,SAlCR,CAFA;;AAsCA,eAAe,SAASC,SAAT,CAAmBZ,KAAnB,EAA0B;AACvC,SAAOnB,KAAK,CAACgC,aAAN,CAAoB9B,iCAAiC,CAAC+B,QAAtD,EAAgE,IAAhE,EAAsE,UAAUZ,gBAAV,EAA4B;AACvG,WAAOrB,KAAK,CAACgC,aAAN,CAAoB1B,cAApB,EAAoCV,QAAQ,CAAC;AAClDyB,MAAAA,gBAAgB,EAAEA;AADgC,KAAD,EAEhDF,KAFgD,CAA5C,CAAP;AAGD,GAJM,CAAP;AAKD","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport warning from 'warning';\nimport { ManagerReferenceNodeSetterContext } from './Manager';\nimport { safeInvoke, unwrapArray, setRef } from './utils';\n\nvar InnerReference =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(InnerReference, _React$Component);\n\n function InnerReference() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"refHandler\", function (node) {\n setRef(_this.props.innerRef, node);\n safeInvoke(_this.props.setReferenceNode, node);\n });\n\n return _this;\n }\n\n var _proto = InnerReference.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n setRef(this.props.innerRef, null);\n };\n\n _proto.render = function render() {\n warning(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');\n return unwrapArray(this.props.children)({\n ref: this.refHandler\n });\n };\n\n return InnerReference;\n}(React.Component);\n\nexport default function Reference(props) {\n return React.createElement(ManagerReferenceNodeSetterContext.Consumer, null, function (setReferenceNode) {\n return React.createElement(InnerReference, _extends({\n setReferenceNode: setReferenceNode\n }, props));\n });\n}"]},"metadata":{},"sourceType":"module"}