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EAAE;EAE/C,IAAIN,MAAMA,CAAA;IAAa,OAAO,IAAI,CAACT,QAAQ,CAACS,MAAM;EAAE;EACpD,IAAIA,MAAMA,CAACO,KAAa;IAAI,IAAI,CAAChB,QAAQ,CAACS,MAAM,GAAGO,KAAK;EAAE;;;;;;;;;;;ACX5D;AACA,4CAA4C,mBAAO,CAAC,6EAAmE;AACvH,kCAAkC,mBAAO,CAAC,qEAA4D;AACtG;AACA;AACA,8CAA8C,+BAA+B,GAAG,SAAS,oBAAoB,uBAAuB,GAAG,eAAe,oBAAoB,uBAAuB,GAAG,OAAO,6GAA6G,WAAW,KAAK,KAAK,UAAU,WAAW,KAAK,KAAK,UAAU,WAAW,6BAA6B,+BAA+B,UAAU,sBAAsB,yBAAyB,YAAY,YAAY,0BAA0B,6BAA6B,SAAS,OAAO,KAAK,GAAG,mBAAmB;AAChnB;AACA;;;;;;;;;;;ACPA;AACA,4CAA4C,mBAAO,CAAC,6EAAmE;AACvH,kCAAkC,mBAAO,CAAC,qEAA4D;AACtG;AACA;AACA,2DAA2D,iBAAiB,GAAG,OAAO,qHAAqH,UAAU,gCAAgC,eAAe,mBAAmB,KAAK,GAAG,mBAAmB;AAClT;AACA","sources":["./apps/demo/src/app/home/home.component.ts","./apps/demo/src/app/markdown/markdown.component.ts","./apps/demo/src/app/markdown/markdown.element.ts","./apps/demo/src/app/home/home.component.scss","./apps/demo/src/app/markdown/markdown.component.scss"],"sourcesContent":["import { Component } from '@angular/core';\nimport { MarkdownComponent } from '../markdown/markdown.component';\n\n@Component({\n standalone: true,\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss'],\n imports: [MarkdownComponent],\n})\nexport class HomeComponent {}\n","import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';\nimport { DynamicFormMarkdownModule } from '@dynamic-forms/markdown';\nimport { MarkdownElement } from './markdown.element';\n\n@Component({\n standalone: true,\n selector: 'app-markdown',\n templateUrl: './markdown.component.html',\n styleUrls: [ './markdown.component.scss' ],\n imports: [DynamicFormMarkdownModule],\n})\nexport class MarkdownComponent implements OnInit, OnChanges {\n element: MarkdownElement;\n\n @Input()\n source: string;\n\n ngOnInit(): void {\n this.element = new MarkdownElement(this.source);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes.source.firstChange && this.source !== this.element.source) {\n this.element.source = this.source;\n }\n }\n}\n","import { DynamicFormElement } from '@dynamic-forms/core';\nimport { DynamicFormMarkdownTemplate } from '@dynamic-forms/markdown';\n\nexport class MarkdownElement extends DynamicFormElement {\n constructor(source: string) {\n super(null, null, null, { template: { source } }, null);\n }\n\n override get hidden(): boolean { return false; }\n\n get source(): string { return this.template.source; }\n set source(value: string) { this.template.source = value; }\n}\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"ul {\\n padding-inline-start: 20px;\\n}\\nul li {\\n margin-top: 8px;\\n margin-bottom: 8px;\\n}\\nul li ul li {\\n margin-top: 4px;\\n margin-bottom: 4px;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/demo/src/app/home/home.component.scss\"],\"names\":[],\"mappings\":\"AAAA;EACE,0BAAA;AACF;AACE;EACE,eAAA;EACA,kBAAA;AACJ;AAEM;EACE,eAAA;EACA,kBAAA;AAAR\",\"sourcesContent\":[\"ul {\\n padding-inline-start: 20px;\\n\\n li {\\n margin-top: 8px;\\n margin-bottom: 8px;\\n\\n ul {\\n li {\\n margin-top: 4px;\\n margin-bottom: 4px;\\n }\\n }\\n }\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host .markdown {\\n margin: 10px;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/demo/src/app/markdown/markdown.component.scss\"],\"names\":[],\"mappings\":\"AACE;EACE,YAAA;AAAJ\",\"sourcesContent\":[\":host {\\n .markdown {\\n margin: 10px;\\n }\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["Component","MarkdownComponent","HomeComponent","__decorate","standalone","selector","template","__NG_CLI_RESOURCE__0","imports","Input","DynamicFormMarkdownModule","MarkdownElement","_class","ngOnInit","element","source","ngOnChanges","changes","firstChange","DynamicFormElement","constructor","hidden","value"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}