Module 186615

1,125 characters · in 2da5f2141c0984de.js, 12491.74e0356ffdf788fe.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,r){r.d(t,{i:()=>o});var n=r(321733),i=r(582128);function o(e){var t={};return Object.keys(e).forEach(function(r){var o=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var u=function(){var e,t,r,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,i.isValidElement)(u))return o(u,c),u;if("string"!=typeof u.type){var s=u.type.displayName||u.type.name||"the component";throw Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(s," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}return e=u,t=c?function(e){return o(e,c)}:o,r=e.ref,((0,n.V)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r)?(0,i.cloneElement)(e,{ref:function(e){a(r,e),a(t,e)}}):(0,i.cloneElement)(e,{ref:t})};t[r]=function(){return u}}}),t}function a(e,t){"function"==typeof e?e(t):e.current=t}}