UNPKG

@asoftwareworld/form-builder-pro

Version:

ASW Form Builder Pro helps you with rapid development and designed web forms which includes several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same b

1 lines 35 kB
{"version":3,"file":"asoftwareworld-form-builder-pro-form-control-button.mjs","sources":["../../src/components/form-control/button/button-dialog.ts","../../src/components/form-control/button/button-dialog.html","../../src/components/form-control/button/button.ts","../../src/components/form-control/button/button.html","../../src/components/form-control/button/button.module.ts","../../src/components/form-control/button/public_api.ts","../../src/components/form-control/button/asoftwareworld-form-builder-pro-form-control-button.ts"],"sourcesContent":["/**\n * @license\n * Copyright ASW (A Software World) All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file\n */\n\nimport { Component, Inject, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { Constants, Icons } from '@asoftwareworld/form-builder-pro/common';\nimport { ButtonControl } from './button-control';\n\n@Component({\n selector: 'asw-button-dialog',\n templateUrl: './button-dialog.html'\n})\nexport class AswButtonDialog implements OnInit {\n constants: any = Constants;\n icons = Icons;\n aswEditButtonForm!: FormGroup;\n status!: boolean;\n control!: ButtonControl;\n constructor(\n private formBuilder: FormBuilder,\n public dialogRef: MatDialogRef<AswButtonDialog>,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) {}\n\n ngOnInit(): void {\n this.control = this.data.control;\n this.validateFormBuilder();\n this.editProperty(this.control);\n }\n\n validateFormBuilder(): void {\n this.aswEditButtonForm = this.formBuilder.group({\n id: ['', [Validators.required]],\n customClass: [],\n tooltip: ['', [Validators.required]],\n label: ['', [Validators.required, Validators.minLength(2)]],\n type: ['', [Validators.required]],\n color: [],\n style: ['', [Validators.required]]\n });\n }\n\n editProperty(control: ButtonControl): void {\n this.aswEditButtonForm.setValue({\n id: control.id,\n customClass: control.customClass ?? '',\n tooltip: control.tooltip,\n label: control.label,\n type: control.type,\n color: control.color,\n style: control.style\n });\n }\n\n onNoClick(): void {\n this.dialogRef.close();\n }\n\n onSubmit(): void {\n if (this.aswEditButtonForm.invalid) {\n return;\n }\n this.aswEditButtonForm.value.controlType = this.control.controlType;\n this.aswEditButtonForm.value.guid = this.control.guid;\n this.dialogRef.close(this.aswEditButtonForm.value);\n }\n\n onChange(event: any): void {\n if (event.checked) {\n this.status = true;\n } else {\n this.status = false;\n }\n }\n}\n","<div class=\"asw-dialog-header\">\r\n <div class=\"asw-edit-row-dialog\">\r\n <div class=\"asw-dialog-header clearfix\">\r\n <div class=\"asw-dialog-about\">\r\n <h1 mat-dialog-title class=\"asw-m-0\">{{'FormControl.Edit' | aswTranslate}} {{control.label | aswTranslate}}</h1>\r\n </div>\r\n </div>\r\n </div>\r\n <button mat-icon-button (click)=\"onNoClick()\" aria-label=\"Close dialog\" class=\"asw-mt-2 asw-me-2\">\r\n <div [innerHTML]=\"icons.close | aswSafeHtml\"></div>\r\n </button>\r\n</div>\r\n<form [formGroup]=\"aswEditButtonForm\" (ngSubmit)=\"onSubmit()\">\r\n <mat-dialog-content class=\"mat-typography\">\r\n <ng-container *ngIf=\"data.CSSFramework === 'material'; else bootstrap\">\r\n <div class=\"asw-row\">\r\n <ng-container *ngIf=\"!data.propertyPersonalization.includes('uniqueId')\">\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.UniqueId' | aswTranslate}}</mat-label>\r\n <input matInput type=\"text\"\r\n name=\"id\"\r\n placeholder=\"{{'FormControl.UniqueId' | aswTranslate}}\"\r\n matTooltip=\"{{'FormControl.UniqueId' | aswTranslate}}\"\r\n formControlName=\"id\" required>\r\n <mat-error *ngFor=\"let validation of constants.accountValidationMessages.id\">\r\n <ng-container *ngIf=\"aswEditButtonForm.get('id')?.hasError(validation.type) && (aswEditButtonForm.get('id')?.dirty || aswEditButtonForm.get('id')?.touched)\">\r\n {{validation.message | aswTranslate}}\r\n </ng-container>\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </ng-container>\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.Label' | aswTranslate}}</mat-label>\r\n <input matInput type=\"text\"\r\n placeholder=\"{{'FormControl.Label' | aswTranslate}}\"\r\n matTooltip=\"{{'FormControl.Label' | aswTranslate}}\"\r\n formControlName=\"label\" required>\r\n <mat-error *ngFor=\"let validation of constants.accountValidationMessages.label\">\r\n <ng-container *ngIf=\"aswEditButtonForm.get('label')?.hasError(validation.type) && (aswEditButtonForm.get('label')?.dirty || aswEditButtonForm.get('label')?.touched)\">\r\n {{validation.message | aswTranslate}}\r\n </ng-container>\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <ng-container *ngIf=\"!data.propertyPersonalization.includes('customCSSClass')\">\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.CustomCSSClass' | aswTranslate}}</mat-label>\r\n <input matInput type=\"text\"\r\n name=\"customClass\"\r\n placeholder=\"{{'FormControl.CustomCSSClass' | aswTranslate}}\"\r\n matTooltip=\"{{'FormControl.CustomCSSClass' | aswTranslate}}\"\r\n formControlName=\"customClass\">\r\n </mat-form-field>\r\n </div>\r\n </ng-container>\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.Tooltip' | aswTranslate}}</mat-label>\r\n <input matInput type=\"text\"\r\n placeholder=\"{{'FormControl.Tooltip' | aswTranslate}}\"\r\n matTooltip=\"{{'FormControl.Tooltip' | aswTranslate}}\"\r\n formControlName=\"tooltip\">\r\n </mat-form-field>\r\n </div>\r\n <div class=\"asw-col-md-12\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.Color' | aswTranslate}}</mat-label>\r\n <mat-select formControlName=\"color\" matTooltip=\"{{'FormControl.SelectColor' | aswTranslate}}\">\r\n <mat-option value=\"\">{{'Basic' | aswTranslate}}</mat-option>\r\n <mat-option value=\"primary\">{{'Primary' | aswTranslate}}</mat-option>\r\n <mat-option value=\"accent\">{{'Rose' | aswTranslate}}</mat-option>\r\n <mat-option value=\"warn\">{{'Danger' | aswTranslate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.Type' | aswTranslate}}</mat-label>\r\n <mat-select formControlName=\"type\" matTooltip=\"{{'FormControl.SelectType' | aswTranslate}}\">\r\n <mat-option value=\"button\">{{'Button' | aswTranslate}}</mat-option>\r\n <mat-option value=\"submit\">{{'Submit' | aswTranslate}}</mat-option>\r\n <mat-option value=\"reset\">{{'Reset' | aswTranslate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"asw-col-md-6\">\r\n <mat-form-field appearance=\"outline\" class=\"asw-width-100\">\r\n <mat-label>{{'FormControl.Style' | aswTranslate}}</mat-label>\r\n <mat-select formControlName=\"style\" matTooltip=\"{{'FormControl.SelectStyle' | aswTranslate}}\">\r\n <mat-option value=\"mat-button\">{{'Basic' | aswTranslate}}</mat-option>\r\n <mat-option value=\"mat-raised-button\">{{'Raised' | aswTranslate}}</mat-option>\r\n <mat-option value=\"mat-stroked-button\">{{'Stroked' | aswTranslate}}</mat-option>\r\n <mat-option value=\"mat-flat-button\">{{'Flat' | aswTranslate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #bootstrap>\r\n <div class=\"asw-row\">\r\n <ng-container *ngIf=\"!data.propertyPersonalization.includes('uniqueId')\">\r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label asw-invalid-label {{(aswEditButtonForm.get('id')?.invalid && (aswEditButtonForm.get('id')?.dirty || aswEditButtonForm.get('id')?.touched)) ? 'asw-red-color' : ''}}\">{{'FormControl.UniqueId' | aswTranslate}}</label>\r\n <input type=\"text\"\r\n name=\"id\"\r\n class=\"asw-input-control\"\r\n [class.asw-is-invalid]=\"(aswEditButtonForm.get('id')?.invalid && (aswEditButtonForm.get('id')?.dirty || aswEditButtonForm.get('id')?.touched))\"\r\n matTooltip=\"{{'FormControl.UniqueId' | aswTranslate}}\"\r\n formControlName=\"id\" required>\r\n <div *ngFor=\"let validation of constants.accountValidationMessages.id\" class=\"invalid-feedback\">\r\n <ng-container *ngIf=\"aswEditButtonForm.get('id')?.hasError(validation.type) && (aswEditButtonForm.get('id')?.dirty || aswEditButtonForm.get('id')?.touched)\">\r\n {{validation.message | aswTranslate}}\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container> \r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label asw-invalid-label {{(aswEditButtonForm.get('label')?.invalid && (aswEditButtonForm.get('label')?.dirty || aswEditButtonForm.get('label')?.touched)) ? 'asw-red-color' : ''}}\">{{'FormControl.Label' | aswTranslate}}</label>\r\n <input type=\"text\"\r\n class=\"asw-input-control\"\r\n [class.asw-is-invalid]=\"(aswEditButtonForm.get('label')?.invalid && (aswEditButtonForm.get('label')?.dirty || aswEditButtonForm.get('label')?.touched))\"\r\n matTooltip=\"{{'FormControl.Label' | aswTranslate}}\"\r\n formControlName=\"label\" required>\r\n <div *ngFor=\"let validation of constants.accountValidationMessages.label\" class=\"invalid-feedback\">\r\n <ng-container *ngIf=\"aswEditButtonForm.get('label')?.hasError(validation.type) && (aswEditButtonForm.get('label')?.dirty || aswEditButtonForm.get('label')?.touched)\">\r\n {{validation.message | aswTranslate}}\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!data.propertyPersonalization.includes('customCSSClass')\">\r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label\">{{'FormControl.CustomCSSClass' | aswTranslate}}</label>\r\n <input type=\"text\"\r\n name=\"customClass\"\r\n class=\"asw-input-control\"\r\n matTooltip=\"{{'FormControl.CustomCSSClass' | aswTranslate}}\"\r\n formControlName=\"customClass\">\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label\">{{'FormControl.Tooltip' | aswTranslate}}</label>\r\n <input type=\"text\"\r\n class=\"asw-input-control\"\r\n matTooltip=\"{{'FormControl.Tooltip' | aswTranslate}}\"\r\n formControlName=\"tooltip\">\r\n </div>\r\n </div>\r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label\">{{'FormControl.Type' | aswTranslate}}</label>\r\n <select formControlName=\"type\" class=\"asw-select\" matTooltip=\"{{'FormControl.SelectType' | aswTranslate}}\">\r\n <option value=\"button\">{{'Button' | aswTranslate}}</option>\r\n <option value=\"submit\">{{'Submit' | aswTranslate}}</option>\r\n <option value=\"reset\">{{'Reset' | aswTranslate}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"asw-col-md-6\">\r\n <div class=\"asw-mb-3\">\r\n <label class=\"asw-input-label\">{{'FormControl.Color' | aswTranslate}}</label>\r\n <select formControlName=\"color\" class=\"asw-select\" matTooltip=\"{{'FormControl.SelectColor' | aswTranslate}}\">\r\n <option value=\"primary\">{{'Primary' | aswTranslate}}</option>\r\n <option value=\"secondary\">{{'Secondary' | aswTranslate}}</option>\r\n <option value=\"success\">{{'Success' | aswTranslate}}</option>\r\n <option value=\"danger\">{{'Danger' | aswTranslate}}</option>\r\n <option value=\"warning\">{{'Warning' | aswTranslate}}</option>\r\n <option value=\"info\">{{'Info' | aswTranslate}}</option>\r\n <option value=\"light\">{{'Light' | aswTranslate}}</option>\r\n <option value=\"dark\">{{'Dark' | aswTranslate}}</option>\r\n <option value=\"link\">{{'Link' | aswTranslate}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </mat-dialog-content>\r\n <mat-dialog-actions align=\"end\">\r\n <button type=\"button\"\r\n class=\"asw-button asw-button-danger asw-mb-1 asw-me-2\"\r\n (click)=\"onNoClick()\">\r\n {{'FormControl.No' | aswTranslate}}\r\n </button>\r\n <button type=\"submit\"\r\n class=\"asw-button asw-button-primary asw-mb-1\"\r\n cdkFocusInitial>\r\n {{'FormControl.Yes' | aswTranslate}}\r\n </button>\r\n </mat-dialog-actions>\r\n</form>\r\n\r\n","/**\n * @license\n * Copyright ASW (A Software World) All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file\n */\n\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { CSSFrameworkEnum } from '@asoftwareworld/form-builder-pro/api';\nimport { Constants, Icons } from '@asoftwareworld/form-builder-pro/common';\nimport { AswConfirmDialog } from '@asoftwareworld/form-builder-pro/form-control/confirm-dialog';\nimport { ButtonControl } from './button-control';\nimport { AswButtonDialog } from './button-dialog';\n\n@Component({\n selector: 'asw-button',\n templateUrl: './button.html'\n})\nexport class AswButton {\n constants: any = Constants;\n icons = Icons;\n /**\n * Button control\n */\n @Input() control: ButtonControl | null = null;\n @Input() CSSFramework: CSSFrameworkEnum = CSSFrameworkEnum.Material;\n @Input() isPreviewTemplate = false;\n @Input() propertyPersonalization: string[] = [];\n\n @Output() buttonClickEvent = new EventEmitter<string>();\n @Output() buttonUpdateEvent = new EventEmitter<ButtonControl>();\n @Output() buttonDeleteEvent = new EventEmitter<ButtonControl>();\n @Output() duplicateControl = new EventEmitter<ButtonControl>();\n\n constructor(public dialog: MatDialog) {}\n\n /**\n * Delete button control based on control index\n * @param control button control items\n * @param controlIndex button control index\n */\n deleteButtonDialog(control: ButtonControl): void {\n const dialogRef = this.dialog.open(AswConfirmDialog, {\n width: '350px',\n data: { name: control.controlType, message: this.constants.messages.waringMessage }\n });\n dialogRef.afterClosed().subscribe((result) => {\n if (result !== undefined) {\n this.buttonDeleteEvent.emit(control);\n }\n });\n }\n\n editButtonDialog(control: ButtonControl): void {\n const dialogRef = this.dialog.open(AswButtonDialog, {\n width: '50%',\n disableClose: true,\n data: { control, CSSFramework: this.CSSFramework, propertyPersonalization: this.propertyPersonalization }\n });\n dialogRef.afterClosed().subscribe((result) => {\n if (result !== undefined) {\n this.buttonUpdateEvent.emit(result);\n }\n });\n }\n\n buttonClick(type: string): void {\n this.buttonClickEvent.emit(type);\n }\n\n duplicateButtonControl(control: ButtonControl): void {\n this.duplicateControl.emit(control);\n }\n}\n","<ng-container *ngIf=\"control as control\">\r\n <ng-container *ngIf=\"CSSFramework === 'material'; else bootstrap\">\r\n <ng-container [ngSwitch]=\"control.style\">\r\n <ng-container *ngSwitchCase=\"'mat-button'\">\r\n <button mat-button \r\n [color]=\"control.color\"\r\n [id]=\"control.id\"\r\n [class]=\"control.customClass\"\r\n [type]=\"control.type\"\r\n [matTooltip]=\"control.tooltip | aswTranslate\"\r\n (click)=\"buttonClick(control.type)\"\r\n >{{control.label | aswTranslate}}</button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'mat-raised-button'\">\r\n <button mat-raised-button \r\n [color]=\"control.color\"\r\n [id]=\"control.id\"\r\n [class]=\"control.customClass\"\r\n [type]=\"control.type\"\r\n [matTooltip]=\"control.tooltip | aswTranslate\"\r\n (click)=\"buttonClick(control.type)\"\r\n >{{control.label | aswTranslate}}</button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'mat-stroked-button'\">\r\n <button mat-stroked-button \r\n [color]=\"control.color\"\r\n [id]=\"control.id\"\r\n [class]=\"control.customClass\"\r\n [type]=\"control.type\"\r\n [matTooltip]=\"control.tooltip | aswTranslate\"\r\n (click)=\"buttonClick(control.type)\"\r\n >{{control.label | aswTranslate}}</button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'mat-flat-button'\">\r\n <button mat-flat-button \r\n [color]=\"control.color\"\r\n [id]=\"control.id\"\r\n [class]=\"control.customClass\"\r\n [type]=\"control.type\"\r\n [matTooltip]=\"control.tooltip | aswTranslate\"\r\n (click)=\"buttonClick(control.type)\">\r\n {{control.label | aswTranslate}}\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #bootstrap>\r\n <button [id]=\"control.id\"\r\n [class]=\"control.customClass\"\r\n [type]=\"control.type\"\r\n [matTooltip]=\"control.tooltip | aswTranslate\"\r\n (click)=\"buttonClick(control.type)\"\r\n class=\"asw-button asw-button-{{control.color}}\">{{control.label | aswTranslate}}\r\n </button>\r\n </ng-template>\r\n <div class=\"asw-row\" *ngIf=\"isPreviewTemplate\">\r\n <div class=\"asw-col-md-12\" align=\"right\">\r\n <button type=\"button\"\r\n mat-icon-button \r\n matTooltip=\"{{'FormControl.Duplicate' | aswTranslate}}\" \r\n [matTooltipPosition]=\"'below'\" \r\n (click)=\"duplicateButtonControl(control)\">\r\n <div [innerHTML]=\"icons.contentCopy | aswSafeHtml\"></div>\r\n </button>\r\n <button mat-icon-button \r\n type=\"button\" \r\n matTooltip=\"{{'FormControl.Edit' | aswTranslate}}\" \r\n [matTooltipPosition]=\"'below'\" \r\n (click)=\"editButtonDialog(control)\">\r\n <div [innerHTML]=\"icons.edit | aswSafeHtml\"></div>\r\n </button>\r\n <button mat-icon-button \r\n type=\"button\" \r\n matTooltip=\"{{'FormControl.Delete' | aswTranslate}}\" \r\n [matTooltipPosition]=\"'below'\" \r\n (click)=\"deleteButtonDialog(control)\">\r\n <div [innerHTML]=\"icons.delete2 | aswSafeHtml\"></div>\r\n </button>\r\n </div>\r\n </div>\r\n</ng-container>","/**\n * @license\n * Copyright ASW (A Software World) All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { AswPipeModule, MaterialModule } from '@asoftwareworld/form-builder-pro/common';\nimport { AswTranslateModule } from '@asoftwareworld/form-builder-pro/core';\nimport { AswConfirmDialogModule } from '@asoftwareworld/form-builder-pro/form-control/confirm-dialog';\n\nimport { AswButton } from './button';\nimport { AswButtonDialog } from './button-dialog';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ReactiveFormsModule, MaterialModule, AswConfirmDialogModule, AswTranslateModule, AswPipeModule],\n declarations: [AswButton, AswButtonDialog],\n exports: [AswButton, AswButtonDialog]\n})\nexport class AswButtonModule {}\n","/**\n * @license\n * Copyright ASW (A Software World) All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file\n */\n\nexport * from './button';\nexport * from './button-dialog';\nexport * from './button-control';\nexport * from './button.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i3","i5","i1","i2","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;MAYU,eAAe,CAAA;AAOZ,IAAA,WAAA;AACD,IAAA,SAAA;AACyB,IAAA,IAAA;IARpC,SAAS,GAAQ,SAAS;IAC1B,KAAK,GAAG,KAAK;AACb,IAAA,iBAAiB;AACjB,IAAA,MAAM;AACN,IAAA,OAAO;AACP,IAAA,WAAA,CACY,WAAwB,EACzB,SAAwC,EACf,IAAS,EAAA;QAFjC,IAAW,CAAA,WAAA,GAAX,WAAW;QACZ,IAAS,CAAA,SAAA,GAAT,SAAS;QACgB,IAAI,CAAA,IAAA,GAAJ,IAAI;;IAGxC,QAAQ,GAAA;QACJ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO;QAChC,IAAI,CAAC,mBAAmB,EAAE;AAC1B,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;;IAGnC,mBAAmB,GAAA;QACf,IAAI,CAAC,iBAAiB,GA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