1 |
- {"ast":null,"code":"import { isDevMode } from '@angular/core';\nimport { environment } from 'ng-zorro-antd/core/environments';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst record = {};\nconst PREFIX = '[NG-ZORRO]:';\nfunction notRecorded(...args) {\n const asRecord = args.reduce((acc, c) => acc + c.toString(), '');\n if (record[asRecord]) {\n return false;\n } else {\n record[asRecord] = true;\n return true;\n }\n}\nfunction consoleCommonBehavior(consoleFunc, ...args) {\n if (environment.isTestMode || isDevMode() && notRecorded(...args)) {\n consoleFunc(...args);\n }\n}\n// Warning should only be printed in dev mode and only once.\nconst warn = (...args) => consoleCommonBehavior((...arg) => console.warn(PREFIX, ...arg), ...args);\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst warnDeprecation = (...args) => {\n if (!environment.isTestMode) {\n const stack = new Error().stack;\n return consoleCommonBehavior((...arg) => console.warn(PREFIX, 'deprecated:', ...arg, stack), ...args);\n } else {\n return () => {};\n }\n};\n// Log should only be printed in dev mode.\nconst log = (...args) => {\n if (isDevMode()) {\n console.log(PREFIX, ...args);\n }\n};\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { PREFIX, log, warn, warnDeprecation };","map":{"version":3,"names":["isDevMode","environment","record","PREFIX","notRecorded","args","asRecord","reduce","acc","c","toString","consoleCommonBehavior","consoleFunc","isTestMode","warn","arg","console","warnDeprecation","stack","Error","log"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-logger.mjs"],"sourcesContent":["import { isDevMode } from '@angular/core';\nimport { environment } from 'ng-zorro-antd/core/environments';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst record = {};\nconst PREFIX = '[NG-ZORRO]:';\nfunction notRecorded(...args) {\n const asRecord = args.reduce((acc, c) => acc + c.toString(), '');\n if (record[asRecord]) {\n return false;\n }\n else {\n record[asRecord] = true;\n return true;\n }\n}\nfunction consoleCommonBehavior(consoleFunc, ...args) {\n if (environment.isTestMode || (isDevMode() && notRecorded(...args))) {\n consoleFunc(...args);\n }\n}\n// Warning should only be printed in dev mode and only once.\nconst warn = (...args) => consoleCommonBehavior((...arg) => console.warn(PREFIX, ...arg), ...args);\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst warnDeprecation = (...args) => {\n if (!environment.isTestMode) {\n const stack = new Error().stack;\n return consoleCommonBehavior((...arg) => console.warn(PREFIX, 'deprecated:', ...arg, stack), ...args);\n }\n else {\n return () => { };\n }\n};\n// Log should only be printed in dev mode.\nconst log = (...args) => {\n if (isDevMode()) {\n console.log(PREFIX, ...args);\n }\n};\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { PREFIX, log, warn, warnDeprecation };\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,eAAe;AACzC,SAASC,WAAW,QAAQ,iCAAiC;;AAE7D;AACA;AACA;AACA;AACA,MAAMC,MAAM,GAAG,CAAC,CAAC;AACjB,MAAMC,MAAM,GAAG,aAAa;AAC5B,SAASC,WAAWA,CAAC,GAAGC,IAAI,EAAE;EAC1B,MAAMC,QAAQ,GAAGD,IAAI,CAACE,MAAM,CAAC,CAACC,GAAG,EAAEC,CAAC,KAAKD,GAAG,GAAGC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;EAChE,IAAIR,MAAM,CAACI,QAAQ,CAAC,EAAE;IAClB,OAAO,KAAK;EAChB,CAAC,MACI;IACDJ,MAAM,CAACI,QAAQ,CA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