Module 348275

1,273 characters · in no known chunk
Dependencies
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{EE:()=>l,Xj:()=>u,cZ:()=>i,cy:()=>a,iO:()=>s,l8:()=>o}),n(321073);var r=n(64700);function i(e,t){if(null!=e){if("function"==typeof e)return void e(t);"object"==typeof e&&"current"in e&&(e.current=t)}}function s(e,t){let n=(e??"").trim(),r=(t??"").trim();if(""===n)return r;if(""===r)return n;let i=` ${n} `,s=r.split(/\s+/).filter(Boolean),a=[];for(let e of s){let t=` ${e} `;i.includes(t)||a.push(e)}return 0===a.length?n:`${n} ${a.join(" ")}`.trim()}function a(e,t){if(null!=e||null!=t)return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];"function"==typeof e&&e(...r),"function"==typeof t&&t(...r)}}function o(e){switch(e){case"top":default:return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}function l(e){let{tag:t,className:n,tabIndex:i,children:s,triggerHandlers:a,describedById:o,triggerRef:l}=e;return r.createElement(t,{ref:l,className:n,tabIndex:i,onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave,onFocus:a.onFocus,onBlur:a.onBlur,onContextMenu:a.onContextMenu,onClick:a.onClick,...null!=o&&""!==o?{"aria-describedby":o}:{}},s)}function u(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}}