{"version":3,"file":"ngxtension-extended-computed.mjs","sources":["../../../../libs/ngxtension/extended-computed/src/extended-computed.ts","../../../../libs/ngxtension/extended-computed/src/ngxtension-extended-computed.ts"],"sourcesContent":["import type { CreateComputedOptions } from '@angular/core';\nimport { computed } from '@angular/core';\n\n/**\n * @deprecated Use `linkedSignal`.\n * @since v4\n */\nexport function extendedComputed<TValue>(\n\tcomputedCallback: (currentValue: TValue) => TValue,\n\toptions?: CreateComputedOptions<TValue>,\n) {\n\tif (!options) {\n\t\toptions = { equal: Object.is };\n\t}\n\n\tlet currentValue: TValue = undefined!;\n\treturn computed(() => {\n\t\treturn (currentValue = computedCallback(currentValue));\n\t}, options);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA;;;AAGG;AACa,SAAA,gBAAgB,CAC/B,gBAAkD,EAClD,OAAuC,EAAA;IAEvC,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KAC/B;IAED,IAAI,YAAY,GAAW,SAAU,CAAC;IACtC,OAAO,QAAQ,CAAC,MAAK;QACpB,QAAQ,YAAY,GAAG,gBAAgB,CAAC,YAAY,CAAC,EAAE;KACvD,EAAE,OAAO,CAAC,CAAC;AACb;;ACnBA;;AAEG;;;;"}