{"version":3,"file":"ironsource-fusion-ui-decorators.mjs","sources":["../../../projects/fusion-ui/decorators/native-token.ts","../../../projects/fusion-ui/decorators/detect-changes.decorator.ts","../../../projects/fusion-ui/decorators/ironsource-fusion-ui-decorators.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const NATIVE_TOKEN = new InjectionToken<boolean>('native token');\n","import {ChangeDetectorRef} from '@angular/core';\nimport {NATIVE_TOKEN} from './native-token';\n\nexport function detectChangesDecorator(target: any, propertyName: string, propertyDescriptor: PropertyDescriptor): PropertyDescriptor {\n    const method = propertyDescriptor.value;\n\n    propertyDescriptor.value = function (...args) {\n        const injector = this.injector;\n        if (!injector) {\n            throw new Error('You must provide Injector as injector in component constructor');\n        }\n        const result = method.apply(this, args);\n        if (injector.get(NATIVE_TOKEN, null)) {\n            (injector.get(ChangeDetectorRef) as ChangeDetectorRef).detectChanges();\n        }\n        return result;\n    };\n\n    return propertyDescriptor;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAEa,YAAY,GAAG,IAAI,cAAc,CAAU,cAAc;;SCCtD,sBAAsB,CAAC,MAAW,EAAE,YAAoB,EAAE,kBAAsC,EAAA;AAC5G,IAAA,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC;AAExC,IAAA,kBAAkB,CAAC,KAAK,GAAG,UAAU,GAAG,IAAI,EAAA;AACxC,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;AACrF,SAAA;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxC,IAAI,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE;YACjC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAuB,CAAC,aAAa,EAAE,CAAC;AAC1E,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;AAClB,KAAC,CAAC;AAEF,IAAA,OAAO,kBAAkB,CAAC;AAC9B;;ACnBA;;AAEG;;;;"}