var p=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var g=(e,t)=>{for(var o in t)p(e,o,{get:t[o],enumerable:!0})},h=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of S(t))!E.call(e,r)&&r!==o&&p(e,r,{get:()=>t[r],enumerable:!(s=d(t,r))||s.enumerable});return e};var y=e=>h(p({},"__esModule",{value:!0}),e);var X={};g(X,{default:()=>M,removeIconSlotCodemod:()=>x,removeIconSlotMotion:()=>u});module.exports=y(X);var C=["MeterBarChart","MultiMeterBarChart"],J="Icon",f="prefixIcon";function u(e,t){let o=!1;for(let s of C)t.find(e.JSXElement,{openingElement:{name:{type:"JSXMemberExpression",object:{name:s},property:{name:J}}}}).forEach(r=>{let a=r.node.children?.filter(n=>!(n.type==="JSXText"&&n.value.trim()===""));if(!a||a.length===0){e(r).remove(),o=!0;return}let l;if(a.length===1){let n=a[0];n.type==="JSXElement"||n.type==="JSXFragment"?l=e.jsxExpressionContainer(n):n.type==="JSXExpressionContainer"?l=n:l=e.jsxExpressionContainer(e.jsxFragment(e.jsxOpeningFragment(),e.jsxClosingFragment(),[n]))}else l=e.jsxExpressionContainer(e.jsxFragment(e.jsxOpeningFragment(),e.jsxClosingFragment(),a));let i=r.parentPath;for(;i;){let n=i.node;if(n.type==="JSXElement"){let m=n.openingElement.name;if(m.type==="JSXIdentifier"&&m.name===s||m.type==="JSXMemberExpression"&&m.property.name===s)break}i=i.parentPath}if(i){let n=i.node.openingElement;n.attributes?.some(c=>c.type==="JSXAttribute"&&c.name.name===f)||n.attributes?.push(e.jsxAttribute(e.jsxIdentifier(f),l))}e(r).remove(),o=!0});return o?!0:null}function x(e,t){let o=t.jscodeshift,s=o(e.source);return u(o,s)?s.toSource():null}var M=x;0&&(module.exports={removeIconSlotCodemod,removeIconSlotMotion});
