ng-implementation/implem/.angular/cache/20.1.4/babel-webpack/0e02ba8e749a30cae5770c7d705e156c.json
2025-08-19 12:05:42 +02:00

1 line
No EOL
85 KiB
JSON

{"ast":null,"code":"import _asyncToGenerator from \"/home/poule/encrypted/stockage-syncable/www/development/html/ng-implementation/implem/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport '@angular/compiler';\nimport { BrowserModule, bootstrapApplication } from '@angular/platform-browser';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { stringify } from 'telejson';\nimport { ɵReflectionCapabilities, InjectionToken, Component, Input, Output, NgZone, VERSION, NgModule, ViewChild, ViewContainerRef, Inject, ChangeDetectorRef, Injectable, Pipe, Directive } from '@angular/core';\nimport { skip, map } from 'rxjs/operators';\nimport { CommonModule } from '@angular/common';\nimport { dedent } from 'ts-dedent';\nimport { STORY_CHANGED, DOCS_RENDERED } from 'storybook/internal/core-events';\nimport { addons } from 'storybook/preview-api';\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __export = (target, all) => {\n for (var name in all) __defProp(target, name, {\n get: all[name],\n enumerable: !0\n });\n};\nvar __decorateClass = (decorators, target, key, kind) => {\n for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--) (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);\n return kind && result && __defProp(target, key, result), result;\n },\n __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);\nvar render_exports = {};\n__export(render_exports, {\n render: () => render,\n renderToCanvas: () => renderToCanvas,\n rendererFactory: () => rendererFactory\n});\nvar reflectionCapabilities = new ɵReflectionCapabilities(),\n getComponentInputsOutputs = component => {\n let componentMetadata = getComponentDecoratorMetadata(component),\n componentPropsMetadata = getComponentPropsDecoratorMetadata(component),\n initialValue = {\n inputs: [],\n outputs: []\n };\n return componentMetadata && componentMetadata.inputs && initialValue.inputs.push(...componentMetadata.inputs.map(i => ({\n propName: typeof i == \"string\" ? i : i.name,\n templateName: typeof i == \"string\" ? i : i.alias\n }))), componentMetadata && componentMetadata.outputs && initialValue.outputs.push(...componentMetadata.outputs.map(i => ({\n propName: i,\n templateName: i\n }))), componentPropsMetadata ? Object.entries(componentPropsMetadata).reduce((previousValue, [propertyName, values]) => {\n let value = values.find(v => v instanceof Input || v instanceof Output);\n if (value instanceof Input) {\n let inputToAdd = {\n propName: propertyName,\n templateName: value.bindingPropertyName ?? value.alias ?? propertyName\n },\n previousInputsFiltered = previousValue.inputs.filter(i => i.templateName !== propertyName);\n return {\n ...previousValue,\n inputs: [...previousInputsFiltered, inputToAdd]\n };\n }\n if (value instanceof Output) {\n let outputToAdd = {\n propName: propertyName,\n templateName: value.bindingPropertyName ?? value.alias ?? propertyName\n },\n previousOutputsFiltered = previousValue.outputs.filter(i => i.templateName !== propertyName);\n return {\n ...previousValue,\n outputs: [...previousOutputsFiltered, outputToAdd]\n };\n }\n return previousValue;\n }, initialValue) : initialValue;\n };\nvar isComponent = component => component ? (reflectionCapabilities.annotations(component) || []).some(d => d instanceof Component) : !1;\nvar getComponentPropsDecoratorMetadata = component => reflectionCapabilities.propMetadata(component),\n getComponentDecoratorMetadata = component => reflectionCapabilities.annotations(component).reverse().find(d => d instanceof Component);\nvar isValidIdentifier = name => /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name),\n formatPropInTemplate = propertyName => isValidIdentifier(propertyName) ? propertyName : `this['${propertyName}']`,\n separateInputsOutputsAttributes = (ngComponentInputsOutputs, props = {}) => {\n let inputs = ngComponentInputsOutputs.inputs.filter(i => i.templateName in props).map(i => i.templateName),\n outputs = ngComponentInputsOutputs.outputs.filter(o => o.templateName in props).map(o => o.templateName);\n return {\n inputs,\n outputs,\n otherProps: Object.keys(props).filter(k => ![...inputs, ...outputs].includes(k))\n };\n },\n computesTemplateFromComponent = (component, initialProps, innerTemplate = \"\") => {\n let ngComponentMetadata = getComponentDecoratorMetadata(component),\n ngComponentInputsOutputs = getComponentInputsOutputs(component);\n if (!ngComponentMetadata.selector) return '<ng-container *ngComponentOutlet=\"storyComponent\"></ng-container>';\n let {\n inputs: initialInputs,\n outputs: initialOutputs\n } = separateInputsOutputsAttributes(ngComponentInputsOutputs, initialProps),\n templateInputs = initialInputs.length > 0 ? ` ${initialInputs.map(i => `[${i}]=\"${formatPropInTemplate(i)}\"`).join(\" \")}` : \"\",\n templateOutputs = initialOutputs.length > 0 ? ` ${initialOutputs.map(i => `(${i})=\"${formatPropInTemplate(i)}($event)\"`).join(\" \")}` : \"\";\n return buildTemplate(ngComponentMetadata.selector, innerTemplate, templateInputs, templateOutputs);\n };\nfunction stringifyCircular(obj) {\n let seen = new Set();\n return JSON.stringify(obj, (key, value) => {\n if (typeof value == \"object\" && value !== null) {\n if (seen.has(value)) return \"[Circular]\";\n seen.add(value);\n }\n return value;\n });\n}\nvar createAngularInputProperty = ({\n propertyName,\n value,\n argType\n }) => {\n let templateValue;\n switch (typeof value) {\n case \"string\":\n templateValue = `'${value}'`;\n break;\n case \"object\":\n templateValue = stringifyCircular(value).replace(/'/g, \"\\u2019\").replace(/\\\\\"/g, \"\\u201D\").replace(/\"([^-\"]+)\":/g, \"$1: \").replace(/\"/g, \"'\").replace(/\\u2019/g, \"\\\\'\").replace(/\\u201D/g, \"\\\\'\").split(\",\").join(\", \");\n break;\n default:\n templateValue = value;\n }\n return `[${propertyName}]=\"${templateValue}\"`;\n },\n computesTemplateSourceFromComponent = (component, initialProps, argTypes) => {\n let ngComponentMetadata = getComponentDecoratorMetadata(component);\n if (!ngComponentMetadata) return null;\n if (!ngComponentMetadata.selector) return `<ng-container *ngComponentOutlet=\"${component.name}\"></ng-container>`;\n let ngComponentInputsOutputs = getComponentInputsOutputs(component),\n {\n inputs: initialInputs,\n outputs: initialOutputs\n } = separateInputsOutputsAttributes(ngComponentInputsOutputs, initialProps),\n templateInputs = initialInputs.length > 0 ? ` ${initialInputs.map(propertyName => createAngularInputProperty({\n propertyName,\n value: initialProps[propertyName],\n argType: argTypes?.[propertyName]\n })).join(\" \")}` : \"\",\n templateOutputs = initialOutputs.length > 0 ? ` ${initialOutputs.map(i => `(${i})=\"${formatPropInTemplate(i)}($event)\"`).join(\" \")}` : \"\";\n return buildTemplate(ngComponentMetadata.selector, \"\", templateInputs, templateOutputs);\n },\n buildTemplate = (selector, innerTemplate, inputs, outputs) => {\n let voidElements = [\"area\", \"base\", \"br\", \"col\", \"command\", \"embed\", \"hr\", \"img\", \"input\", \"keygen\", \"link\", \"meta\", \"param\", \"source\", \"track\", \"wbr\"],\n firstSelector = selector.split(\",\")[0];\n return [[/(^.*?)(?=[,])/, \"$1\"], [/(^\\..+)/, \"div$1\"], [/(^\\[.+?])/, \"div$1\"], [/([\\w[\\]]+)(\\s*,[\\w\\s-[\\],]+)+/, \"$1\"], [/#([\\w-]+)/, ' id=\"$1\"'], [/((\\.[\\w-]+)+)/, (_, c) => ` class=\"${c.split`.`.join` `.trim()}\"`], [/(\\[.+?])/g, (_, a) => ` ${a.slice(1, -1)}`], [/([\\S]+)(.*)/, (template, elementSelector) => voidElements.some(element => elementSelector === element) ? template.replace(/([\\S]+)(.*)/, `<$1$2${inputs}${outputs} />`) : template.replace(/([\\S]+)(.*)/, `<$1$2${inputs}${outputs}>${innerTemplate}</$1>`)]].reduce((prevSelector, [searchValue, replacer]) => prevSelector.replace(searchValue, replacer), firstSelector);\n };\nvar STORY_PROPS = new InjectionToken(\"STORY_PROPS\"),\n storyPropsProvider = storyProps$ => ({\n provide: STORY_PROPS,\n useFactory: storyDataFactory(storyProps$.asObservable()),\n deps: [NgZone]\n });\nfunction storyDataFactory(data) {\n return ngZone => new Observable(subscriber => {\n let sub = data.subscribe(v => {\n ngZone.run(() => subscriber.next(v));\n }, err => {\n ngZone.run(() => subscriber.error(err));\n }, () => {\n ngZone.run(() => subscriber.complete());\n });\n return () => {\n sub.unsubscribe();\n };\n });\n}\nvar reflectionCapabilities2 = new ɵReflectionCapabilities(),\n isComponentAlreadyDeclared = (componentToFind, moduleDeclarations, moduleImports) => moduleDeclarations && moduleDeclarations.flat().some(declaration => declaration === componentToFind) ? !0 : moduleImports ? moduleImports.flat().some(importItem => {\n let extractedNgModuleMetadata = extractNgModuleMetadata(importItem);\n return extractedNgModuleMetadata ? isComponentAlreadyDeclared(componentToFind, extractedNgModuleMetadata.declarations, extractedNgModuleMetadata.imports) : !1;\n }) : !1,\n extractNgModuleMetadata = importItem => {\n let target = importItem && importItem.ngModule ? importItem.ngModule : importItem,\n decorators = reflectionCapabilities2.annotations(target);\n if (!decorators || decorators.length === 0) return null;\n let ngModuleDecorator = decorators.find(decorator => decorator instanceof NgModule);\n return ngModuleDecorator || null;\n };\nvar reflectionCapabilities3 = new ɵReflectionCapabilities();\nnew InjectionToken(\"REMOVED_MODULES\");\nvar uniqueArray = arr => arr.flat(Number.MAX_VALUE).filter(Boolean).filter((value, index, self) => self.indexOf(value) === index),\n _PropertyExtractor = class _PropertyExtractor {\n constructor(metadata, component) {\n this.metadata = metadata;\n this.component = component;\n this.declarations = [];\n this.analyzeMetadata = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (metadata) {\n let declarations = [...(metadata?.declarations || [])],\n providers = [...(metadata?.providers || [])],\n applicationProviders = [],\n imports = yield Promise.all([...(metadata?.imports || [])].map(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(function* (imported) {\n let [isRestricted, restrictedProviders] = yield _PropertyExtractor.analyzeRestricted(imported);\n return isRestricted ? (applicationProviders.unshift(restrictedProviders || []), null) : imported;\n });\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }())).then(results => results.filter(Boolean));\n return {\n ...metadata,\n imports,\n providers,\n applicationProviders,\n declarations\n };\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }();\n }\n static warnImportsModuleWithProviders(propertyExtractor) {\n propertyExtractor.imports.some(importedModule => \"ngModule\" in importedModule) && console.warn(dedent(`\n Storybook Warning: \n moduleMetadata property 'imports' contains one or more ModuleWithProviders, likely the result of a 'Module.forRoot()'-style call.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' to pass your ModuleWithProviders to the 'providers' property in combination with the importProvidersFrom helper function from '@angular/core' to extract all the necessary providers.\n Visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information\n `));\n }\n init() {\n var _this = this;\n return _asyncToGenerator(function* () {\n let analyzed = yield _this.analyzeMetadata(_this.metadata);\n if (_this.imports = uniqueArray([CommonModule, analyzed.imports]), _this.providers = uniqueArray(analyzed.providers), _this.applicationProviders = uniqueArray(analyzed.applicationProviders), _this.declarations = uniqueArray(analyzed.declarations), _this.component) {\n let {\n isDeclarable,\n isStandalone\n } = _PropertyExtractor.analyzeDecorators(_this.component),\n isDeclared = isComponentAlreadyDeclared(_this.component, analyzed.declarations, _this.imports);\n isStandalone ? _this.imports.push(_this.component) : isDeclarable && !isDeclared && _this.declarations.push(_this.component);\n }\n })();\n }\n };\n_PropertyExtractor.analyzeRestricted = /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator(function* (ngModule) {\n if (ngModule === BrowserModule) return console.warn(dedent`\n Storybook Warning:\n You have imported the \"BrowserModule\", which is not necessary anymore. \n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM.\n Note that the BrowserModule providers are automatically included when starting an application with bootstrapApplication()\n Please remove the \"BrowserModule\" from the list of imports in your moduleMetadata definition to remove this warning.\n `), [!0];\n try {\n let animations = yield import('@angular/platform-browser/animations');\n if (ngModule === animations.BrowserAnimationsModule) return console.warn(dedent`\n Storybook Warning:\n You have added the \"BrowserAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up animations. For this case, please add \"importProvidersFrom(BrowserAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `), [!0, animations.provideAnimations()];\n if (ngModule === animations.NoopAnimationsModule) return console.warn(dedent`\n Storybook Warning:\n You have added the \"NoopAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideNoopAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up noop animations and to extract all necessary providers from NoopAnimationsModule. For this case, please add \"importProvidersFrom(NoopAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `), [!0, animations.provideNoopAnimations()];\n } catch {\n return [!1];\n }\n return [!1];\n });\n return function (_x3) {\n return _ref3.apply(this, arguments);\n };\n}(), _PropertyExtractor.analyzeDecorators = component => {\n let decorators = reflectionCapabilities3.annotations(component),\n isComponent2 = decorators.some(d => _PropertyExtractor.isDecoratorInstanceOf(d, \"Component\")),\n isDirective = decorators.some(d => _PropertyExtractor.isDecoratorInstanceOf(d, \"Directive\")),\n isPipe = decorators.some(d => _PropertyExtractor.isDecoratorInstanceOf(d, \"Pipe\")),\n isDeclarable = isComponent2 || isDirective || isPipe,\n isStandalone = (isComponent2 || isDirective) && [...decorators].reverse().find(d => _PropertyExtractor.isDecoratorInstanceOf(d, \"Component\") || _PropertyExtractor.isDecoratorInstanceOf(d, \"Directive\"))?.standalone;\n return isStandalone === void 0 && (isStandalone = !!(VERSION.major && Number(VERSION.major) >= 19)), {\n isDeclarable,\n isStandalone\n };\n}, _PropertyExtractor.isDecoratorInstanceOf = (decorator, name) => {\n let factory;\n switch (name) {\n case \"Component\":\n factory = Component;\n break;\n case \"Directive\":\n factory = Directive;\n break;\n case \"Pipe\":\n factory = Pipe;\n break;\n case \"Injectable\":\n factory = Injectable;\n break;\n case \"Input\":\n factory = Input;\n break;\n case \"Output\":\n factory = Output;\n break;\n default:\n throw new Error(`Unknown decorator type: ${name}`);\n }\n return decorator instanceof factory || decorator.ngMetadataName === name;\n};\nvar PropertyExtractor = _PropertyExtractor;\nvar getNonInputsOutputsProps = (ngComponentInputsOutputs, props = {}) => {\n let inputs = ngComponentInputsOutputs.inputs.filter(i => i.templateName in props).map(i => i.templateName),\n outputs = ngComponentInputsOutputs.outputs.filter(o => o.templateName in props).map(o => o.templateName);\n return Object.keys(props).filter(k => ![...inputs, ...outputs].includes(k));\n },\n createStorybookWrapperComponent = ({\n selector,\n template,\n storyComponent,\n styles,\n moduleMetadata,\n initialProps,\n analyzedMetadata\n }) => {\n let viewChildSelector = storyComponent ?? \"__storybook-noop\",\n {\n imports,\n declarations,\n providers\n } = analyzedMetadata,\n StorybookComponentModule = class {};\n StorybookComponentModule = __decorateClass([NgModule({\n declarations,\n imports,\n exports: [...declarations, ...imports]\n })], StorybookComponentModule), PropertyExtractor.warnImportsModuleWithProviders(analyzedMetadata);\n let StorybookWrapperComponent = class {\n constructor(storyProps$, changeDetectorRef) {\n this.storyProps$ = storyProps$;\n this.changeDetectorRef = changeDetectorRef;\n this.storyComponent = storyComponent ?? \"\";\n }\n ngOnInit() {\n this.storyWrapperPropsSubscription = this.storyProps$.subscribe((storyProps = {}) => {\n Object.assign(this, storyProps), this.changeDetectorRef.detectChanges(), this.changeDetectorRef.markForCheck();\n });\n }\n ngAfterViewInit() {\n if (this.storyComponentElementRef) {\n let ngComponentInputsOutputs = getComponentInputsOutputs(storyComponent);\n getNonInputsOutputsProps(ngComponentInputsOutputs, initialProps).forEach(p => {\n this.storyComponentElementRef[p] = initialProps[p];\n }), this.storyComponentViewContainerRef.injector.get(ChangeDetectorRef).markForCheck(), this.changeDetectorRef.detectChanges(), this.storyComponentPropsSubscription = this.storyProps$.pipe(skip(1), map(props => getNonInputsOutputsProps(ngComponentInputsOutputs, props).reduce((acc, p) => ({\n ...acc,\n [p]: props[p]\n }), {}))).subscribe(props => {\n Object.assign(this.storyComponentElementRef, props), this.storyComponentViewContainerRef.injector.get(ChangeDetectorRef).markForCheck(), this.changeDetectorRef.detectChanges();\n });\n }\n }\n ngOnDestroy() {\n this.storyComponentPropsSubscription != null && this.storyComponentPropsSubscription.unsubscribe(), this.storyWrapperPropsSubscription != null && this.storyWrapperPropsSubscription.unsubscribe();\n }\n };\n return __decorateClass([ViewChild(viewChildSelector, {\n static: !0\n })], StorybookWrapperComponent.prototype, \"storyComponentElementRef\", 2), __decorateClass([ViewChild(viewChildSelector, {\n read: ViewContainerRef,\n static: !0\n })], StorybookWrapperComponent.prototype, \"storyComponentViewContainerRef\", 2), StorybookWrapperComponent = __decorateClass([Component({\n selector,\n template,\n standalone: !0,\n imports: [StorybookComponentModule],\n providers,\n styles,\n schemas: moduleMetadata.schemas\n }), __decorateParam(0, Inject(STORY_PROPS)), __decorateParam(1, Inject(ChangeDetectorRef))], StorybookWrapperComponent), StorybookWrapperComponent;\n };\nvar getApplication = ({\n storyFnAngular,\n component,\n targetSelector,\n analyzedMetadata\n}) => {\n let {\n props,\n styles,\n moduleMetadata = {}\n } = storyFnAngular,\n {\n template\n } = storyFnAngular;\n return !!hasNoTemplate(template) && component && (template = computesTemplateFromComponent(component, props, \"\")), createStorybookWrapperComponent({\n moduleMetadata,\n selector: targetSelector,\n template,\n storyComponent: component,\n styles,\n initialProps: props,\n analyzedMetadata\n });\n};\nfunction hasNoTemplate(template) {\n return template == null;\n}\nvar queue = [],\n isProcessing = !1,\n resetCompiledComponents = /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator(function* () {\n try {\n let {\n ɵresetCompiledComponents\n } = yield import('@angular/core');\n ɵresetCompiledComponents();\n } catch {}\n });\n return function resetCompiledComponents() {\n return _ref4.apply(this, arguments);\n };\n }(),\n queueBootstrapping = fn => new Promise((resolve, reject) => {\n queue.push(() => fn().then(resolve).catch(reject)), isProcessing || processQueue();\n }),\n processQueue = /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator(function* () {\n for (isProcessing = !0; queue.length > 0;) {\n let bootstrappingFn = queue.shift();\n bootstrappingFn && (yield bootstrappingFn(), yield resetCompiledComponents());\n }\n isProcessing = !1;\n });\n return function processQueue() {\n return _ref5.apply(this, arguments);\n };\n }();\nvar getProvideZonelessChangeDetectionFn = /*#__PURE__*/function () {\n var _ref6 = _asyncToGenerator(function* () {\n let angularCore = yield import('@angular/core');\n return \"provideExperimentalZonelessChangeDetection\" in angularCore ? angularCore.provideExperimentalZonelessChangeDetection : \"provideZonelessChangeDetection\" in angularCore ? angularCore.provideZonelessChangeDetection : null;\n });\n return function getProvideZonelessChangeDetectionFn() {\n return _ref6.apply(this, arguments);\n };\n}();\nvar applicationRefs = new Map(),\n STORY_UID_ATTRIBUTE = \"data-sb-story-uid\",\n AbstractRenderer = class {\n constructor() {\n this.previousStoryRenderInfo = new Map();\n }\n static resetApplications(domNode) {\n applicationRefs.forEach((appRef, appDOMNode) => {\n !appRef.destroyed && (!domNode || appDOMNode === domNode) && appRef.destroy();\n });\n }\n render(_x4) {\n var _this2 = this;\n return _asyncToGenerator(function* ({\n storyFnAngular,\n forced,\n component,\n targetDOMNode\n }) {\n let targetSelector = _this2.generateTargetSelectorFromStoryId(targetDOMNode.id),\n newStoryProps$ = new BehaviorSubject(storyFnAngular.props);\n if (!_this2.fullRendererRequired({\n targetDOMNode,\n storyFnAngular,\n moduleMetadata: {\n ...storyFnAngular.moduleMetadata\n },\n forced\n })) {\n _this2.storyProps$.next(storyFnAngular.props);\n return;\n }\n yield _this2.beforeFullRender(targetDOMNode), _this2.storyProps$ && _this2.storyProps$.complete(), _this2.storyProps$ = newStoryProps$, _this2.initAngularRootElement(targetDOMNode, targetSelector);\n let analyzedMetadata = new PropertyExtractor(storyFnAngular.moduleMetadata, component);\n yield analyzedMetadata.init();\n let storyUid = _this2.generateStoryUIdFromRawStoryUid(targetDOMNode.getAttribute(STORY_UID_ATTRIBUTE)),\n componentSelector = storyUid !== null ? `${targetSelector}[${storyUid}]` : targetSelector;\n storyUid !== null && targetDOMNode.querySelector(targetSelector).toggleAttribute(storyUid, !0);\n let application = getApplication({\n storyFnAngular,\n component,\n targetSelector: componentSelector,\n analyzedMetadata\n }),\n providers = [storyPropsProvider(newStoryProps$), ...analyzedMetadata.applicationProviders, ...(storyFnAngular.applicationConfig?.providers ?? [])];\n if (STORYBOOK_ANGULAR_OPTIONS?.experimentalZoneless) {\n let provideZonelessChangeDetectionFn = yield getProvideZonelessChangeDetectionFn();\n if (provideZonelessChangeDetectionFn) providers.unshift(provideZonelessChangeDetectionFn());else throw new Error(\"Zoneless change detection requires Angular 18 or higher\");\n }\n let applicationRef = yield queueBootstrapping(() => bootstrapApplication(application, {\n ...storyFnAngular.applicationConfig,\n providers\n }));\n applicationRefs.set(targetDOMNode, applicationRef);\n }).apply(this, arguments);\n }\n generateTargetSelectorFromStoryId(id) {\n let invalidHtmlTag = /[^A-Za-z0-9-]/g;\n return invalidHtmlTag.test(id) ? `sb-${id.replace(invalidHtmlTag, \"\")}-component` : id;\n }\n generateStoryUIdFromRawStoryUid(rawStoryUid) {\n if (rawStoryUid === null) return rawStoryUid;\n let accentCharacters = /[\\u0300-\\u036f]/g;\n return rawStoryUid.normalize(\"NFD\").replace(accentCharacters, \"\");\n }\n initAngularRootElement(targetDOMNode, targetSelector) {\n targetDOMNode.innerHTML = \"\", targetDOMNode.appendChild(document.createElement(targetSelector));\n }\n fullRendererRequired({\n targetDOMNode,\n storyFnAngular,\n moduleMetadata,\n forced\n }) {\n let previousStoryRenderInfo = this.previousStoryRenderInfo.get(targetDOMNode),\n currentStoryRender = {\n storyFnAngular,\n moduleMetadataSnapshot: stringify(moduleMetadata, {\n maxDepth: 50\n })\n };\n return this.previousStoryRenderInfo.set(targetDOMNode, currentStoryRender), !forced || !this.storyProps$ || !!storyFnAngular?.template && previousStoryRenderInfo?.storyFnAngular?.template !== storyFnAngular.template ? !0 : currentStoryRender.moduleMetadataSnapshot !== previousStoryRenderInfo?.moduleMetadataSnapshot;\n }\n };\nvar CanvasRenderer = class _CanvasRenderer extends AbstractRenderer {\n render(options) {\n var _superprop_getRender = () => super.render,\n _this3 = this;\n return _asyncToGenerator(function* () {\n yield _superprop_getRender().call(_this3, options);\n })();\n }\n beforeFullRender() {\n return _asyncToGenerator(function* () {\n _CanvasRenderer.resetApplications();\n })();\n }\n};\nvar storyCounts = new Map(),\n getNextStoryUID = storyId => {\n storyCounts.has(storyId) || storyCounts.set(storyId, -1);\n let count = storyCounts.get(storyId) + 1;\n return storyCounts.set(storyId, count), `${storyId}-${count}`;\n };\nvar DocsRenderer = class _DocsRenderer extends AbstractRenderer {\n render(options) {\n var _superprop_getRender2 = () => super.render,\n _this4 = this;\n return _asyncToGenerator(function* () {\n let channel = addons.getChannel();\n channel.once(STORY_CHANGED, /*#__PURE__*/_asyncToGenerator(function* () {\n yield _DocsRenderer.resetApplications();\n })), channel.once(DOCS_RENDERED, /*#__PURE__*/_asyncToGenerator(function* () {\n yield _DocsRenderer.resetApplications();\n })), yield _superprop_getRender2().call(_this4, {\n ...options,\n forced: !1\n });\n })();\n }\n beforeFullRender(domNode) {\n return _asyncToGenerator(function* () {\n _DocsRenderer.resetApplications(domNode);\n })();\n }\n initAngularRootElement(targetDOMNode, targetSelector) {\n super.initAngularRootElement(targetDOMNode, targetSelector), targetDOMNode.setAttribute(STORY_UID_ATTRIBUTE, getNextStoryUID(targetDOMNode.id));\n }\n};\nvar RendererFactory = class {\n constructor() {\n this.rendererMap = new Map();\n }\n getRendererInstance(targetDOMNode) {\n var _this5 = this;\n return _asyncToGenerator(function* () {\n let targetId = targetDOMNode.id;\n if (targetDOMNode === null) return null;\n let renderType = getRenderType(targetDOMNode);\n return _this5.lastRenderType && _this5.lastRenderType !== renderType && (yield AbstractRenderer.resetApplications(), clearRootHTMLElement(renderType), _this5.rendererMap.clear()), _this5.rendererMap.has(targetId) || _this5.rendererMap.set(targetId, _this5.buildRenderer(renderType)), _this5.lastRenderType = renderType, _this5.rendererMap.get(targetId);\n })();\n }\n buildRenderer(renderType) {\n return renderType === \"docs\" ? new DocsRenderer() : new CanvasRenderer();\n }\n },\n getRenderType = targetDOMNode => targetDOMNode.id === \"storybook-root\" ? \"canvas\" : \"docs\";\nfunction clearRootHTMLElement(renderType) {\n switch (renderType) {\n case \"canvas\":\n global.document.getElementById(\"storybook-docs\").innerHTML = \"\";\n break;\n case \"docs\":\n global.document.getElementById(\"storybook-root\").innerHTML = \"\";\n break;\n }\n}\nvar rendererFactory = new RendererFactory(),\n render = props => ({\n props\n });\nfunction renderToCanvas(_x5, _x6) {\n return _renderToCanvas.apply(this, arguments);\n}\nfunction _renderToCanvas() {\n _renderToCanvas = _asyncToGenerator(function* ({\n storyFn,\n showMain,\n forceRemount,\n storyContext: {\n component\n }\n }, element) {\n showMain(), yield (yield rendererFactory.getRendererInstance(element)).render({\n storyFnAngular: storyFn(),\n component,\n forced: !forceRemount,\n targetDOMNode: element\n });\n });\n return _renderToCanvas.apply(this, arguments);\n}\nexport { computesTemplateFromComponent, computesTemplateSourceFromComponent, formatPropInTemplate, isComponent, render, renderToCanvas, render_exports };","map":{"version":3,"names":["BrowserModule","bootstrapApplication","BehaviorSubject","Observable","stringify","ɵReflectionCapabilities","InjectionToken","Component","Input","Output","NgZone","VERSION","NgModule","ViewChild","ViewContainerRef","Inject","ChangeDetectorRef","Injectable","Pipe","Directive","skip","map","CommonModule","dedent","STORY_CHANGED","DOCS_RENDERED","addons","__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__export","target","all","name","get","enumerable","__decorateClass","decorators","key","kind","result","i","length","decorator","__decorateParam","index","render_exports","render","renderToCanvas","rendererFactory","reflectionCapabilities","getComponentInputsOutputs","component","componentMetadata","getComponentDecoratorMetadata","componentPropsMetadata","getComponentPropsDecoratorMetadata","initialValue","inputs","outputs","push","propName","templateName","alias","entries","reduce","previousValue","propertyName","values","value","find","v","inputToAdd","bindingPropertyName","previousInputsFiltered","filter","outputToAdd","previousOutputsFiltered","isComponent","annotations","some","d","propMetadata","reverse","isValidIdentifier","test","formatPropInTemplate","separateInputsOutputsAttributes","ngComponentInputsOutputs","props","o","otherProps","keys","k","includes","computesTemplateFromComponent","initialProps","innerTemplate","ngComponentMetadata","selector","initialInputs","initialOutputs","templateInputs","join","templateOutputs","buildTemplate","stringifyCircular","obj","seen","Set","JSON","has","add","createAngularInputProperty","argType","templateValue","replace","split","computesTemplateSourceFromComponent","argTypes","voidElements","firstSelector","_","c","trim","a","slice","template","elementSelector","element","prevSelector","searchValue","replacer","STORY_PROPS","storyPropsProvider","storyProps$","provide","useFactory","storyDataFactory","asObservable","deps","data","ngZone","subscriber","sub","subscribe","run","next","err","error","complete","unsubscribe","reflectionCapabilities2","isComponentAlreadyDeclared","componentToFind","moduleDeclarations","moduleImports","flat","declaration","importItem","extractedNgModuleMetadata","extractNgModuleMetadata","declarations","imports","ngModule","ngModuleDecorator","reflectionCapabilities3","uniqueArray","arr","Number","MAX_VALUE","Boolean","self","indexOf","_PropertyExtractor","constructor","metadata","analyzeMetadata","_ref","_asyncToGenerator","providers","applicationProviders","Promise","_ref2","imported","isRestricted","restrictedProviders","analyzeRestricted","unshift","_x2","apply","arguments","then","results","_x","warnImportsModuleWithProviders","propertyExtractor","importedModule","console","warn","init","_this","analyzed","isDeclarable","isStandalone","analyzeDecorators","isDeclared","_ref3","animations","BrowserAnimationsModule","provideAnimations","NoopAnimationsModule","provideNoopAnimations","_x3","isComponent2","isDecoratorInstanceOf","isDirective","isPipe","standalone","major","factory","Error","ngMetadataName","PropertyExtractor","getNonInputsOutputsProps","createStorybookWrapperComponent","storyComponent","styles","moduleMetadata","analyzedMetadata","viewChildSelector","StorybookComponentModule","exports","StorybookWrapperComponent","changeDetectorRef","ngOnInit","storyWrapperPropsSubscription","storyProps","assign","detectChanges","markForCheck","ngAfterViewInit","storyComponentElementRef","forEach","p","storyComponentViewContainerRef","injector","storyComponentPropsSubscription","pipe","acc","ngOnDestroy","static","prototype","read","schemas","getApplication","storyFnAngular","targetSelector","hasNoTemplate","queue","isProcessing","resetCompiledComponents","_ref4","ɵresetCompiledComponents","queueBootstrapping","fn","resolve","reject","catch","processQueue","_ref5","bootstrappingFn","shift","getProvideZonelessChangeDetectionFn","_ref6","angularCore","provideExperimentalZonelessChangeDetection","provideZonelessChangeDetection","applicationRefs","Map","STORY_UID_ATTRIBUTE","AbstractRenderer","previousStoryRenderInfo","resetApplications","domNode","appRef","appDOMNode","destroyed","destroy","_x4","_this2","forced","targetDOMNode","generateTargetSelectorFromStoryId","id","newStoryProps$","fullRendererRequired","beforeFullRender","initAngularRootElement","storyUid","generateStoryUIdFromRawStoryUid","getAttribute","componentSelector","querySelector","toggleAttribute","application","applicationConfig","STORYBOOK_ANGULAR_OPTIONS","experimentalZoneless","provideZonelessChangeDetectionFn","applicationRef","set","invalidHtmlTag","rawStoryUid","accentCharacters","normalize","innerHTML","appendChild","document","createElement","currentStoryRender","moduleMetadataSnapshot","maxDepth","CanvasRenderer","_CanvasRenderer","options","_superprop_getRender","_this3","call","storyCounts","getNextStoryUID","storyId","count","DocsRenderer","_DocsRenderer","_superprop_getRender2","_this4","channel","getChannel","once","setAttribute","RendererFactory","rendererMap","getRendererInstance","_this5","targetId","renderType","getRenderType","lastRenderType","clearRootHTMLElement","clear","buildRenderer","global","getElementById","_x5","_x6","_renderToCanvas","storyFn","showMain","forceRemount","storyContext"],"sources":["/home/poule/encrypted/stockage-syncable/www/development/html/ng-implementation/implem/node_modules/@storybook/angular/dist/chunk-LXSTVAFF.mjs"],"sourcesContent":["import '@angular/compiler';\nimport { BrowserModule, bootstrapApplication } from '@angular/platform-browser';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { stringify } from 'telejson';\nimport { ɵReflectionCapabilities, InjectionToken, Component, Input, Output, NgZone, VERSION, NgModule, ViewChild, ViewContainerRef, Inject, ChangeDetectorRef, Injectable, Pipe, Directive } from '@angular/core';\nimport { skip, map } from 'rxjs/operators';\nimport { CommonModule } from '@angular/common';\nimport { dedent } from 'ts-dedent';\nimport { STORY_CHANGED, DOCS_RENDERED } from 'storybook/internal/core-events';\nimport { addons } from 'storybook/preview-api';\n\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});};var __decorateClass=(decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp(target,key,result),result},__decorateParam=(index,decorator)=>(target,key)=>decorator(target,key,index);var render_exports={};__export(render_exports,{render:()=>render,renderToCanvas:()=>renderToCanvas,rendererFactory:()=>rendererFactory});var reflectionCapabilities=new ɵReflectionCapabilities,getComponentInputsOutputs=component=>{let componentMetadata=getComponentDecoratorMetadata(component),componentPropsMetadata=getComponentPropsDecoratorMetadata(component),initialValue={inputs:[],outputs:[]};return componentMetadata&&componentMetadata.inputs&&initialValue.inputs.push(...componentMetadata.inputs.map(i=>({propName:typeof i==\"string\"?i:i.name,templateName:typeof i==\"string\"?i:i.alias}))),componentMetadata&&componentMetadata.outputs&&initialValue.outputs.push(...componentMetadata.outputs.map(i=>({propName:i,templateName:i}))),componentPropsMetadata?Object.entries(componentPropsMetadata).reduce((previousValue,[propertyName,values])=>{let value=values.find(v=>v instanceof Input||v instanceof Output);if(value instanceof Input){let inputToAdd={propName:propertyName,templateName:value.bindingPropertyName??value.alias??propertyName},previousInputsFiltered=previousValue.inputs.filter(i=>i.templateName!==propertyName);return {...previousValue,inputs:[...previousInputsFiltered,inputToAdd]}}if(value instanceof Output){let outputToAdd={propName:propertyName,templateName:value.bindingPropertyName??value.alias??propertyName},previousOutputsFiltered=previousValue.outputs.filter(i=>i.templateName!==propertyName);return {...previousValue,outputs:[...previousOutputsFiltered,outputToAdd]}}return previousValue},initialValue):initialValue};var isComponent=component=>component?(reflectionCapabilities.annotations(component)||[]).some(d=>d instanceof Component):!1;var getComponentPropsDecoratorMetadata=component=>reflectionCapabilities.propMetadata(component),getComponentDecoratorMetadata=component=>reflectionCapabilities.annotations(component).reverse().find(d=>d instanceof Component);var isValidIdentifier=name=>/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name),formatPropInTemplate=propertyName=>isValidIdentifier(propertyName)?propertyName:`this['${propertyName}']`,separateInputsOutputsAttributes=(ngComponentInputsOutputs,props={})=>{let inputs=ngComponentInputsOutputs.inputs.filter(i=>i.templateName in props).map(i=>i.templateName),outputs=ngComponentInputsOutputs.outputs.filter(o=>o.templateName in props).map(o=>o.templateName);return {inputs,outputs,otherProps:Object.keys(props).filter(k=>![...inputs,...outputs].includes(k))}},computesTemplateFromComponent=(component,initialProps,innerTemplate=\"\")=>{let ngComponentMetadata=getComponentDecoratorMetadata(component),ngComponentInputsOutputs=getComponentInputsOutputs(component);if(!ngComponentMetadata.selector)return '<ng-container *ngComponentOutlet=\"storyComponent\"></ng-container>';let{inputs:initialInputs,outputs:initialOutputs}=separateInputsOutputsAttributes(ngComponentInputsOutputs,initialProps),templateInputs=initialInputs.length>0?` ${initialInputs.map(i=>`[${i}]=\"${formatPropInTemplate(i)}\"`).join(\" \")}`:\"\",templateOutputs=initialOutputs.length>0?` ${initialOutputs.map(i=>`(${i})=\"${formatPropInTemplate(i)}($event)\"`).join(\" \")}`:\"\";return buildTemplate(ngComponentMetadata.selector,innerTemplate,templateInputs,templateOutputs)};function stringifyCircular(obj){let seen=new Set;return JSON.stringify(obj,(key,value)=>{if(typeof value==\"object\"&&value!==null){if(seen.has(value))return \"[Circular]\";seen.add(value);}return value})}var createAngularInputProperty=({propertyName,value,argType})=>{let templateValue;switch(typeof value){case\"string\":templateValue=`'${value}'`;break;case\"object\":templateValue=stringifyCircular(value).replace(/'/g,\"\\u2019\").replace(/\\\\\"/g,\"\\u201D\").replace(/\"([^-\"]+)\":/g,\"$1: \").replace(/\"/g,\"'\").replace(/\\u2019/g,\"\\\\'\").replace(/\\u201D/g,\"\\\\'\").split(\",\").join(\", \");break;default:templateValue=value;}return `[${propertyName}]=\"${templateValue}\"`},computesTemplateSourceFromComponent=(component,initialProps,argTypes)=>{let ngComponentMetadata=getComponentDecoratorMetadata(component);if(!ngComponentMetadata)return null;if(!ngComponentMetadata.selector)return `<ng-container *ngComponentOutlet=\"${component.name}\"></ng-container>`;let ngComponentInputsOutputs=getComponentInputsOutputs(component),{inputs:initialInputs,outputs:initialOutputs}=separateInputsOutputsAttributes(ngComponentInputsOutputs,initialProps),templateInputs=initialInputs.length>0?` ${initialInputs.map(propertyName=>createAngularInputProperty({propertyName,value:initialProps[propertyName],argType:argTypes?.[propertyName]})).join(\" \")}`:\"\",templateOutputs=initialOutputs.length>0?` ${initialOutputs.map(i=>`(${i})=\"${formatPropInTemplate(i)}($event)\"`).join(\" \")}`:\"\";return buildTemplate(ngComponentMetadata.selector,\"\",templateInputs,templateOutputs)},buildTemplate=(selector,innerTemplate,inputs,outputs)=>{let voidElements=[\"area\",\"base\",\"br\",\"col\",\"command\",\"embed\",\"hr\",\"img\",\"input\",\"keygen\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"],firstSelector=selector.split(\",\")[0];return [[/(^.*?)(?=[,])/,\"$1\"],[/(^\\..+)/,\"div$1\"],[/(^\\[.+?])/,\"div$1\"],[/([\\w[\\]]+)(\\s*,[\\w\\s-[\\],]+)+/,\"$1\"],[/#([\\w-]+)/,' id=\"$1\"'],[/((\\.[\\w-]+)+)/,(_,c)=>` class=\"${c.split`.`.join` `.trim()}\"`],[/(\\[.+?])/g,(_,a)=>` ${a.slice(1,-1)}`],[/([\\S]+)(.*)/,(template,elementSelector)=>voidElements.some(element=>elementSelector===element)?template.replace(/([\\S]+)(.*)/,`<$1$2${inputs}${outputs} />`):template.replace(/([\\S]+)(.*)/,`<$1$2${inputs}${outputs}>${innerTemplate}</$1>`)]].reduce((prevSelector,[searchValue,replacer])=>prevSelector.replace(searchValue,replacer),firstSelector)};var STORY_PROPS=new InjectionToken(\"STORY_PROPS\"),storyPropsProvider=storyProps$=>({provide:STORY_PROPS,useFactory:storyDataFactory(storyProps$.asObservable()),deps:[NgZone]});function storyDataFactory(data){return ngZone=>new Observable(subscriber=>{let sub=data.subscribe(v=>{ngZone.run(()=>subscriber.next(v));},err=>{ngZone.run(()=>subscriber.error(err));},()=>{ngZone.run(()=>subscriber.complete());});return ()=>{sub.unsubscribe();}})}var reflectionCapabilities2=new ɵReflectionCapabilities,isComponentAlreadyDeclared=(componentToFind,moduleDeclarations,moduleImports)=>moduleDeclarations&&moduleDeclarations.flat().some(declaration=>declaration===componentToFind)?!0:moduleImports?moduleImports.flat().some(importItem=>{let extractedNgModuleMetadata=extractNgModuleMetadata(importItem);return extractedNgModuleMetadata?isComponentAlreadyDeclared(componentToFind,extractedNgModuleMetadata.declarations,extractedNgModuleMetadata.imports):!1}):!1,extractNgModuleMetadata=importItem=>{let target=importItem&&importItem.ngModule?importItem.ngModule:importItem,decorators=reflectionCapabilities2.annotations(target);if(!decorators||decorators.length===0)return null;let ngModuleDecorator=decorators.find(decorator=>decorator instanceof NgModule);return ngModuleDecorator||null};var reflectionCapabilities3=new ɵReflectionCapabilities;new InjectionToken(\"REMOVED_MODULES\");var uniqueArray=arr=>arr.flat(Number.MAX_VALUE).filter(Boolean).filter((value,index,self)=>self.indexOf(value)===index),_PropertyExtractor=class _PropertyExtractor{constructor(metadata,component){this.metadata=metadata;this.component=component;this.declarations=[];this.analyzeMetadata=async metadata=>{let declarations=[...metadata?.declarations||[]],providers=[...metadata?.providers||[]],applicationProviders=[],imports=await Promise.all([...metadata?.imports||[]].map(async imported=>{let[isRestricted,restrictedProviders]=await _PropertyExtractor.analyzeRestricted(imported);return isRestricted?(applicationProviders.unshift(restrictedProviders||[]),null):imported})).then(results=>results.filter(Boolean));return {...metadata,imports,providers,applicationProviders,declarations}};}static warnImportsModuleWithProviders(propertyExtractor){propertyExtractor.imports.some(importedModule=>\"ngModule\"in importedModule)&&console.warn(dedent(`\n Storybook Warning: \n moduleMetadata property 'imports' contains one or more ModuleWithProviders, likely the result of a 'Module.forRoot()'-style call.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' to pass your ModuleWithProviders to the 'providers' property in combination with the importProvidersFrom helper function from '@angular/core' to extract all the necessary providers.\n Visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information\n `));}async init(){let analyzed=await this.analyzeMetadata(this.metadata);if(this.imports=uniqueArray([CommonModule,analyzed.imports]),this.providers=uniqueArray(analyzed.providers),this.applicationProviders=uniqueArray(analyzed.applicationProviders),this.declarations=uniqueArray(analyzed.declarations),this.component){let{isDeclarable,isStandalone}=_PropertyExtractor.analyzeDecorators(this.component),isDeclared=isComponentAlreadyDeclared(this.component,analyzed.declarations,this.imports);isStandalone?this.imports.push(this.component):isDeclarable&&!isDeclared&&this.declarations.push(this.component);}}};_PropertyExtractor.analyzeRestricted=async ngModule=>{if(ngModule===BrowserModule)return console.warn(dedent`\n Storybook Warning:\n You have imported the \"BrowserModule\", which is not necessary anymore. \n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM.\n Note that the BrowserModule providers are automatically included when starting an application with bootstrapApplication()\n Please remove the \"BrowserModule\" from the list of imports in your moduleMetadata definition to remove this warning.\n `),[!0];try{let animations=await import('@angular/platform-browser/animations');if(ngModule===animations.BrowserAnimationsModule)return console.warn(dedent`\n Storybook Warning:\n You have added the \"BrowserAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook 7.0 we use Angular's new 'bootstrapApplication' API to mount the component to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up animations. For this case, please add \"importProvidersFrom(BrowserAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `),[!0,animations.provideAnimations()];if(ngModule===animations.NoopAnimationsModule)return console.warn(dedent`\n Storybook Warning:\n You have added the \"NoopAnimationsModule\" to the list of \"imports\" in your moduleMetadata definition of your Story.\n In Storybook v7.0 we are using Angular's new bootstrapApplication API to mount an Angular application to the DOM, which accepts a list of providers to set up application-wide providers.\n Use the 'applicationConfig' decorator from '@storybook/angular' and add the \"provideNoopAnimations\" function to the list of \"providers\".\n If your Angular version does not support \"provide-like\" functions, use the helper function importProvidersFrom instead to set up noop animations and to extract all necessary providers from NoopAnimationsModule. For this case, please add \"importProvidersFrom(NoopAnimationsModule)\" to the list of providers of your applicationConfig definition.\n Please visit https://angular.io/guide/standalone-components#configuring-dependency-injection for more information.\n `),[!0,animations.provideNoopAnimations()]}catch{return [!1]}return [!1]},_PropertyExtractor.analyzeDecorators=component=>{let decorators=reflectionCapabilities3.annotations(component),isComponent2=decorators.some(d=>_PropertyExtractor.isDecoratorInstanceOf(d,\"Component\")),isDirective=decorators.some(d=>_PropertyExtractor.isDecoratorInstanceOf(d,\"Directive\")),isPipe=decorators.some(d=>_PropertyExtractor.isDecoratorInstanceOf(d,\"Pipe\")),isDeclarable=isComponent2||isDirective||isPipe,isStandalone=(isComponent2||isDirective)&&[...decorators].reverse().find(d=>_PropertyExtractor.isDecoratorInstanceOf(d,\"Component\")||_PropertyExtractor.isDecoratorInstanceOf(d,\"Directive\"))?.standalone;return isStandalone===void 0&&(isStandalone=!!(VERSION.major&&Number(VERSION.major)>=19)),{isDeclarable,isStandalone}},_PropertyExtractor.isDecoratorInstanceOf=(decorator,name)=>{let factory;switch(name){case\"Component\":factory=Component;break;case\"Directive\":factory=Directive;break;case\"Pipe\":factory=Pipe;break;case\"Injectable\":factory=Injectable;break;case\"Input\":factory=Input;break;case\"Output\":factory=Output;break;default:throw new Error(`Unknown decorator type: ${name}`)}return decorator instanceof factory||decorator.ngMetadataName===name};var PropertyExtractor=_PropertyExtractor;var getNonInputsOutputsProps=(ngComponentInputsOutputs,props={})=>{let inputs=ngComponentInputsOutputs.inputs.filter(i=>i.templateName in props).map(i=>i.templateName),outputs=ngComponentInputsOutputs.outputs.filter(o=>o.templateName in props).map(o=>o.templateName);return Object.keys(props).filter(k=>![...inputs,...outputs].includes(k))},createStorybookWrapperComponent=({selector,template,storyComponent,styles,moduleMetadata,initialProps,analyzedMetadata})=>{let viewChildSelector=storyComponent??\"__storybook-noop\",{imports,declarations,providers}=analyzedMetadata,StorybookComponentModule=class{};StorybookComponentModule=__decorateClass([NgModule({declarations,imports,exports:[...declarations,...imports]})],StorybookComponentModule),PropertyExtractor.warnImportsModuleWithProviders(analyzedMetadata);let StorybookWrapperComponent=class{constructor(storyProps$,changeDetectorRef){this.storyProps$=storyProps$;this.changeDetectorRef=changeDetectorRef;this.storyComponent=storyComponent??\"\";}ngOnInit(){this.storyWrapperPropsSubscription=this.storyProps$.subscribe((storyProps={})=>{Object.assign(this,storyProps),this.changeDetectorRef.detectChanges(),this.changeDetectorRef.markForCheck();});}ngAfterViewInit(){if(this.storyComponentElementRef){let ngComponentInputsOutputs=getComponentInputsOutputs(storyComponent);getNonInputsOutputsProps(ngComponentInputsOutputs,initialProps).forEach(p=>{this.storyComponentElementRef[p]=initialProps[p];}),this.storyComponentViewContainerRef.injector.get(ChangeDetectorRef).markForCheck(),this.changeDetectorRef.detectChanges(),this.storyComponentPropsSubscription=this.storyProps$.pipe(skip(1),map(props=>getNonInputsOutputsProps(ngComponentInputsOutputs,props).reduce((acc,p)=>({...acc,[p]:props[p]}),{}))).subscribe(props=>{Object.assign(this.storyComponentElementRef,props),this.storyComponentViewContainerRef.injector.get(ChangeDetectorRef).markForCheck(),this.changeDetectorRef.detectChanges();});}}ngOnDestroy(){this.storyComponentPropsSubscription!=null&&this.storyComponentPropsSubscription.unsubscribe(),this.storyWrapperPropsSubscription!=null&&this.storyWrapperPropsSubscription.unsubscribe();}};return __decorateClass([ViewChild(viewChildSelector,{static:!0})],StorybookWrapperComponent.prototype,\"storyComponentElementRef\",2),__decorateClass([ViewChild(viewChildSelector,{read:ViewContainerRef,static:!0})],StorybookWrapperComponent.prototype,\"storyComponentViewContainerRef\",2),StorybookWrapperComponent=__decorateClass([Component({selector,template,standalone:!0,imports:[StorybookComponentModule],providers,styles,schemas:moduleMetadata.schemas}),__decorateParam(0,Inject(STORY_PROPS)),__decorateParam(1,Inject(ChangeDetectorRef))],StorybookWrapperComponent),StorybookWrapperComponent};var getApplication=({storyFnAngular,component,targetSelector,analyzedMetadata})=>{let{props,styles,moduleMetadata={}}=storyFnAngular,{template}=storyFnAngular;return !!hasNoTemplate(template)&&component&&(template=computesTemplateFromComponent(component,props,\"\")),createStorybookWrapperComponent({moduleMetadata,selector:targetSelector,template,storyComponent:component,styles,initialProps:props,analyzedMetadata})};function hasNoTemplate(template){return template==null}var queue=[],isProcessing=!1,resetCompiledComponents=async()=>{try{let{\\u0275resetCompiledComponents}=await import('@angular/core');\\u0275resetCompiledComponents();}catch{}},queueBootstrapping=fn=>new Promise((resolve,reject)=>{queue.push(()=>fn().then(resolve).catch(reject)),isProcessing||processQueue();}),processQueue=async()=>{for(isProcessing=!0;queue.length>0;){let bootstrappingFn=queue.shift();bootstrappingFn&&(await bootstrappingFn(),await resetCompiledComponents());}isProcessing=!1;};var getProvideZonelessChangeDetectionFn=async()=>{let angularCore=await import('@angular/core');return \"provideExperimentalZonelessChangeDetection\"in angularCore?angularCore.provideExperimentalZonelessChangeDetection:\"provideZonelessChangeDetection\"in angularCore?angularCore.provideZonelessChangeDetection:null};var applicationRefs=new Map,STORY_UID_ATTRIBUTE=\"data-sb-story-uid\",AbstractRenderer=class{constructor(){this.previousStoryRenderInfo=new Map;}static resetApplications(domNode){applicationRefs.forEach((appRef,appDOMNode)=>{!appRef.destroyed&&(!domNode||appDOMNode===domNode)&&appRef.destroy();});}async render({storyFnAngular,forced,component,targetDOMNode}){let targetSelector=this.generateTargetSelectorFromStoryId(targetDOMNode.id),newStoryProps$=new BehaviorSubject(storyFnAngular.props);if(!this.fullRendererRequired({targetDOMNode,storyFnAngular,moduleMetadata:{...storyFnAngular.moduleMetadata},forced})){this.storyProps$.next(storyFnAngular.props);return}await this.beforeFullRender(targetDOMNode),this.storyProps$&&this.storyProps$.complete(),this.storyProps$=newStoryProps$,this.initAngularRootElement(targetDOMNode,targetSelector);let analyzedMetadata=new PropertyExtractor(storyFnAngular.moduleMetadata,component);await analyzedMetadata.init();let storyUid=this.generateStoryUIdFromRawStoryUid(targetDOMNode.getAttribute(STORY_UID_ATTRIBUTE)),componentSelector=storyUid!==null?`${targetSelector}[${storyUid}]`:targetSelector;storyUid!==null&&targetDOMNode.querySelector(targetSelector).toggleAttribute(storyUid,!0);let application=getApplication({storyFnAngular,component,targetSelector:componentSelector,analyzedMetadata}),providers=[storyPropsProvider(newStoryProps$),...analyzedMetadata.applicationProviders,...storyFnAngular.applicationConfig?.providers??[]];if(STORYBOOK_ANGULAR_OPTIONS?.experimentalZoneless){let provideZonelessChangeDetectionFn=await getProvideZonelessChangeDetectionFn();if(provideZonelessChangeDetectionFn)providers.unshift(provideZonelessChangeDetectionFn());else throw new Error(\"Zoneless change detection requires Angular 18 or higher\")}let applicationRef=await queueBootstrapping(()=>bootstrapApplication(application,{...storyFnAngular.applicationConfig,providers}));applicationRefs.set(targetDOMNode,applicationRef);}generateTargetSelectorFromStoryId(id){let invalidHtmlTag=/[^A-Za-z0-9-]/g;return invalidHtmlTag.test(id)?`sb-${id.replace(invalidHtmlTag,\"\")}-component`:id}generateStoryUIdFromRawStoryUid(rawStoryUid){if(rawStoryUid===null)return rawStoryUid;let accentCharacters=/[\\u0300-\\u036f]/g;return rawStoryUid.normalize(\"NFD\").replace(accentCharacters,\"\")}initAngularRootElement(targetDOMNode,targetSelector){targetDOMNode.innerHTML=\"\",targetDOMNode.appendChild(document.createElement(targetSelector));}fullRendererRequired({targetDOMNode,storyFnAngular,moduleMetadata,forced}){let previousStoryRenderInfo=this.previousStoryRenderInfo.get(targetDOMNode),currentStoryRender={storyFnAngular,moduleMetadataSnapshot:stringify(moduleMetadata,{maxDepth:50})};return this.previousStoryRenderInfo.set(targetDOMNode,currentStoryRender),!forced||!this.storyProps$||!!storyFnAngular?.template&&previousStoryRenderInfo?.storyFnAngular?.template!==storyFnAngular.template?!0:currentStoryRender.moduleMetadataSnapshot!==previousStoryRenderInfo?.moduleMetadataSnapshot}};var CanvasRenderer=class _CanvasRenderer extends AbstractRenderer{async render(options){await super.render(options);}async beforeFullRender(){_CanvasRenderer.resetApplications();}};var storyCounts=new Map,getNextStoryUID=storyId=>{storyCounts.has(storyId)||storyCounts.set(storyId,-1);let count=storyCounts.get(storyId)+1;return storyCounts.set(storyId,count),`${storyId}-${count}`};var DocsRenderer=class _DocsRenderer extends AbstractRenderer{async render(options){let channel=addons.getChannel();channel.once(STORY_CHANGED,async()=>{await _DocsRenderer.resetApplications();}),channel.once(DOCS_RENDERED,async()=>{await _DocsRenderer.resetApplications();}),await super.render({...options,forced:!1});}async beforeFullRender(domNode){_DocsRenderer.resetApplications(domNode);}initAngularRootElement(targetDOMNode,targetSelector){super.initAngularRootElement(targetDOMNode,targetSelector),targetDOMNode.setAttribute(STORY_UID_ATTRIBUTE,getNextStoryUID(targetDOMNode.id));}};var RendererFactory=class{constructor(){this.rendererMap=new Map;}async getRendererInstance(targetDOMNode){let targetId=targetDOMNode.id;if(targetDOMNode===null)return null;let renderType=getRenderType(targetDOMNode);return this.lastRenderType&&this.lastRenderType!==renderType&&(await AbstractRenderer.resetApplications(),clearRootHTMLElement(renderType),this.rendererMap.clear()),this.rendererMap.has(targetId)||this.rendererMap.set(targetId,this.buildRenderer(renderType)),this.lastRenderType=renderType,this.rendererMap.get(targetId)}buildRenderer(renderType){return renderType===\"docs\"?new DocsRenderer:new CanvasRenderer}},getRenderType=targetDOMNode=>targetDOMNode.id===\"storybook-root\"?\"canvas\":\"docs\";function clearRootHTMLElement(renderType){switch(renderType){case\"canvas\":global.document.getElementById(\"storybook-docs\").innerHTML=\"\";break;case\"docs\":global.document.getElementById(\"storybook-root\").innerHTML=\"\";break;}}var rendererFactory=new RendererFactory,render=props=>({props});async function renderToCanvas({storyFn,showMain,forceRemount,storyContext:{component}},element){showMain(),await(await rendererFactory.getRendererInstance(element)).render({storyFnAngular:storyFn(),component,forced:!forceRemount,targetDOMNode:element});}\n\nexport { computesTemplateFromComponent, computesTemplateSourceFromComponent, formatPropInTemplate, isComponent, render, renderToCanvas, render_exports };\n"],"mappings":";AAAA,OAAO,mBAAmB;AAC1B,SAASA,aAAa,EAAEC,oBAAoB,QAAQ,2BAA2B;AAC/E,SAASC,eAAe,EAAEC,UAAU,QAAQ,MAAM;AAClD,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,uBAAuB,EAAEC,cAAc,EAAEC,SAAS,EAAEC,KAAK,EAAEC,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,iBAAiB,EAAEC,UAAU,EAAEC,IAAI,EAAEC,SAAS,QAAQ,eAAe;AACjN,SAASC,IAAI,EAAEC,GAAG,QAAQ,gBAAgB;AAC1C,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,aAAa,EAAEC,aAAa,QAAQ,gCAAgC;AAC7E,SAASC,MAAM,QAAQ,uBAAuB;AAE9C,IAAIC,SAAS,GAACC,MAAM,CAACC,cAAc;AAAC,IAAIC,gBAAgB,GAACF,MAAM,CAACG,wBAAwB;AAAC,IAAIC,QAAQ,GAACA,CAACC,MAAM,EAACC,GAAG,KAAG;EAAC,KAAI,IAAIC,IAAI,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