/*! For license information please see editor-ui.js.LICENSE.txt */
!function(){"use strict";var e={react:function(e){e.exports=window.React},"@elementor/ui":function(e){e.exports=window.elementorV2.ui}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){r.r(o),r.d(o,{EllipsisWithTooltip:function(){return n}});var e=r("react"),t=r("@elementor/ui"),n=({maxWidth:r,title:o,as:n,...l})=>{const[c,s]=a();return s?e.createElement(t.Tooltip,{title:o,placement:"top"},e.createElement(i,{maxWidth:r,ref:c,as:n,...l},o)):e.createElement(i,{maxWidth:r,ref:c,as:n,...l},o)},i=e.forwardRef((({maxWidth:r,as:o=t.Box,...n},i)=>e.createElement(o,{ref:i,position:"relative",...n,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:r}}))),a=()=>{const[t,r]=(0,e.useState)(null),[o,n]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{const e=new ResizeObserver((([{target:e}])=>{n(e.scrollWidth>e.clientWidth)}));return t&&e.observe(t),()=>{e.disconnect()}}),[t]),[r,o]}}(),(window.elementorV2=window.elementorV2||{}).editorUi=o}();