-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy path33085.be6968bc8dae67f1.js
1 lines (1 loc) · 1.04 KB
/
33085.be6968bc8dae67f1.js
1
(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[33085],{33085:o=>{o.exports="import {Component} from '@angular/core';\nimport {changeDetection} from '@demo/emulate/change-detection';\nimport {encapsulation} from '@demo/emulate/encapsulation';\nimport {MaskitoPipe} from '@maskito/angular';\nimport {maskitoTransform} from '@maskito/core';\nimport {maskitoPhoneOptionsGenerator} from '@maskito/phone';\nimport metadata from 'libphonenumber-js/max/metadata';\n\n@Component({\n standalone: true,\n exportAs: \"Example6\",\n imports: [MaskitoPipe],\n template: `\n Phone: {{ rawValue | maskito: mask }}\n `,\n encapsulation,\n changeDetection,\n host: {\n '(click)': 'showUtilityPower()',\n },\n})\nexport default class Example {\n protected rawValue = '12125552368';\n protected readonly mask = maskitoPhoneOptionsGenerator({\n metadata,\n countryIsoCode: 'US',\n });\n\n protected showUtilityPower(): void {\n console.info(maskitoTransform(this.rawValue, this.mask));\n }\n}\n"}}]);