{"version":3,"file":"enhance.mjs","names":["Enhancement","condition","Component","Boolean","enhance","length","wrapperProps","props","WrapperComponent","reduce","acc"],"sources":["../../src/enhancement/enhance.tsx"],"sourcesContent":["function Enhancement() {\n  return {\n    condition: function (Component: any) {\n      return Boolean(Component.enhance?.length);\n    },\n    wrapperProps: function (props: any, WrapperComponent: any) {\n      return WrapperComponent.enhance.reduce((acc: any, enhance: any) => enhance(acc), props);\n    },\n  };\n}\n\nexport default Enhancement;\n"],"mappings":"AAAA,SAASA,WAAWA,CAAA,EAAG;EACrB,OAAO;IACLC,SAAS,EAAE,SAAAA,CAAUC,SAAc,EAAE;MACnC,OAAOC,OAAO,CAACD,SAAS,CAACE,OAAO,EAAEC,MAAM,CAAC;IAC3C,CAAC;IACDC,YAAY,EAAE,SAAAA,CAAUC,KAAU,EAAEC,gBAAqB,EAAE;MACzD,OAAOA,gBAAgB,CAACJ,OAAO,CAACK,MAAM,CAAC,CAACC,GAAQ,EAAEN,OAAY,KAAKA,OAAO,CAACM,GAAG,CAAC,EAAEH,KAAK,CAAC;IACzF;EACF,CAAC;AACH;AAEA,eAAeP,WAAW","ignoreList":[]}