var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},T=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of m(t))!d.call(e,n)&&n!==r&&i(e,n,{get:()=>t[n],enumerable:!(o=p(t,n))||o.enumerable});return e};var h=e=>T(i({},"__esModule",{value:!0}),e);var w={};v(w,{default:()=>y,removeAnnotationsChartTextOverflowTypesCodemod:()=>u,removeAnnotationsChartTextOverflowTypesMotion:()=>c});module.exports=h(w);var l=["TextOverflowExpandOptions","TextOverflowTruncateOptions"];function c(e,t){let r=!1;return l.forEach(o=>{t.find(e.ImportDeclaration).filter(n=>n.value.source.value==="@dynatrace/strato-components-preview/charts").forEach(n=>{let s=n.value.specifiers||[],a=s.filter(f=>"imported"in f&&f.imported.name===o?(r=!0,!1):!0);n.value.specifiers=a,a.length===0&&s.length>0&&e(n).remove()})}),t.find(e.TSTypeReference).filter(o=>"typeName"in o.value&&"name"in o.value.typeName&&l.includes(o.value.typeName.name)).forEach(o=>{r=!0,o.value.typeName=e.identifier("TextOverflowOptions")}),r?!0:null}function u(e,t){let r=t.jscodeshift,o=r(e.source);return c(r,o)?o.toSource():null}var y=u;0&&(module.exports={removeAnnotationsChartTextOverflowTypesCodemod,removeAnnotationsChartTextOverflowTypesMotion});
