@trustcomponent/trustcaptcha-angular
Advanced tools
| import { __decorate } from 'tslib'; | ||
| import * as i0 from '@angular/core'; | ||
| import { EventEmitter, Output, ChangeDetectionStrategy, Component } from '@angular/core'; | ||
| import { fromEvent } from 'rxjs'; | ||
| import { defineCustomElement as defineCustomElement$1 } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js'; | ||
| /* eslint-disable */ | ||
| /* tslint:disable */ | ||
| const proxyInputs = (Cmp, inputs) => { | ||
| const Prototype = Cmp.prototype; | ||
| inputs.forEach((item) => { | ||
| Object.defineProperty(Prototype, item, { | ||
| get() { | ||
| return this.el[item]; | ||
| }, | ||
| set(val) { | ||
| this.z.runOutsideAngular(() => (this.el[item] = val)); | ||
| }, | ||
| /** | ||
| * In the event that proxyInputs is called | ||
| * multiple times re-defining these inputs | ||
| * will cause an error to be thrown. As a result | ||
| * we set configurable: true to indicate these | ||
| * properties can be changed. | ||
| */ | ||
| configurable: true, | ||
| }); | ||
| }); | ||
| }; | ||
| const proxyMethods = (Cmp, methods) => { | ||
| const Prototype = Cmp.prototype; | ||
| methods.forEach((methodName) => { | ||
| Prototype[methodName] = function () { | ||
| const args = arguments; | ||
| return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args)); | ||
| }; | ||
| }); | ||
| }; | ||
| const proxyOutputs = (instance, el, events) => { | ||
| events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName))); | ||
| }; | ||
| const defineCustomElement = (tagName, customElement) => { | ||
| if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) { | ||
| customElements.define(tagName, customElement); | ||
| } | ||
| }; | ||
| // tslint:disable-next-line: only-arrow-functions | ||
| function ProxyCmp(opts) { | ||
| const decorator = function (cls) { | ||
| const { defineCustomElementFn, inputs, methods } = opts; | ||
| if (defineCustomElementFn !== undefined) { | ||
| defineCustomElementFn(); | ||
| } | ||
| if (inputs) { | ||
| proxyInputs(cls, inputs); | ||
| } | ||
| if (methods) { | ||
| proxyMethods(cls, methods); | ||
| } | ||
| return cls; | ||
| }; | ||
| return decorator; | ||
| } | ||
| let TrustcaptchaComponent = class TrustcaptchaComponent { | ||
| constructor(c, r, z) { | ||
| this.z = z; | ||
| this.captchaStarted = new EventEmitter(); | ||
| this.captchaSolved = new EventEmitter(); | ||
| this.captchaFailed = new EventEmitter(); | ||
| this.captchaExpired = new EventEmitter(); | ||
| this.captchaReset = new EventEmitter(); | ||
| c.detach(); | ||
| this.el = r.nativeElement; | ||
| } | ||
| static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: TrustcaptchaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); } | ||
| static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: TrustcaptchaComponent, isStandalone: true, selector: "trustcaptcha-component", inputs: { apiUrl: "apiUrl", autostartDisabled: "autostartDisabled", bypassToken: "bypassToken", design: "design", failoverEnabled: "failoverEnabled", framework: "framework", fullWidth: "fullWidth", invisible: "invisible", invisibleHint: "invisibleHint", language: "language", licenseKey: "licenseKey", minimalDataMode: "minimalDataMode", privacyUrl: "privacyUrl", sitekey: "sitekey", theme: "theme", tokenFieldName: "tokenFieldName", translations: "translations", whiteLabel: "whiteLabel" }, outputs: { captchaStarted: "captchaStarted", captchaSolved: "captchaSolved", captchaFailed: "captchaFailed", captchaExpired: "captchaExpired", captchaReset: "captchaReset" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } | ||
| }; | ||
| TrustcaptchaComponent = __decorate([ | ||
| ProxyCmp({ | ||
| defineCustomElementFn: defineCustomElement$1, | ||
| inputs: ['apiUrl', 'autostartDisabled', 'bypassToken', 'design', 'failoverEnabled', 'framework', 'fullWidth', 'invisible', 'invisibleHint', 'language', 'licenseKey', 'minimalDataMode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'translations', 'whiteLabel'], | ||
| methods: ['startVerification', 'reset'] | ||
| }) | ||
| ], TrustcaptchaComponent); | ||
| i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: TrustcaptchaComponent, decorators: [{ | ||
| type: Component, | ||
| args: [{ | ||
| selector: 'trustcaptcha-component', | ||
| changeDetection: ChangeDetectionStrategy.OnPush, | ||
| template: '<ng-content></ng-content>', | ||
| // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property | ||
| inputs: ['apiUrl', 'autostartDisabled', 'bypassToken', 'design', 'failoverEnabled', 'framework', 'fullWidth', 'invisible', 'invisibleHint', 'language', 'licenseKey', 'minimalDataMode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'translations', 'whiteLabel'], | ||
| outputs: ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaExpired', 'captchaReset'], | ||
| }] | ||
| }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { captchaStarted: [{ | ||
| type: Output | ||
| }], captchaSolved: [{ | ||
| type: Output | ||
| }], captchaFailed: [{ | ||
| type: Output | ||
| }], captchaExpired: [{ | ||
| type: Output | ||
| }], captchaReset: [{ | ||
| type: Output | ||
| }] } }); | ||
| /* | ||
| * Public API Surface of trustcaptcha-library | ||
| */ | ||
| /** | ||
| * Generated bundle index. Do not edit. | ||
| */ | ||
| export { TrustcaptchaComponent }; | ||
| //# sourceMappingURL=trustcomponent-trustcaptcha-angular.mjs.map |
| {"version":3,"file":"trustcomponent-trustcaptcha-angular.mjs","sources":["../../../projects/trustcaptcha-library/src/lib/stencil-generated/angular-component-lib/utils.ts","../../../projects/trustcaptcha-library/src/lib/stencil-generated/components.ts","../../../projects/trustcaptcha-library/src/public-api.ts","../../../projects/trustcaptcha-library/src/trustcomponent-trustcaptcha-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@trustcomponent/trustcaptcha-frontend/dist/components';\n\nimport { defineCustomElement as defineTrustcaptchaComponent } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js';\n@ProxyCmp({\n defineCustomElementFn: defineTrustcaptchaComponent,\n inputs: ['apiUrl', 'autostartDisabled', 'bypassToken', 'design', 'failoverEnabled', 'framework', 'fullWidth', 'invisible', 'invisibleHint', 'language', 'licenseKey', 'minimalDataMode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'translations', 'whiteLabel'],\n methods: ['startVerification', 'reset']\n})\n@Component({\n selector: 'trustcaptcha-component',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['apiUrl', 'autostartDisabled', 'bypassToken', 'design', 'failoverEnabled', 'framework', 'fullWidth', 'invisible', 'invisibleHint', 'language', 'licenseKey', 'minimalDataMode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'translations', 'whiteLabel'],\n outputs: ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaExpired', 'captchaReset'],\n})\nexport class TrustcaptchaComponent {\n protected el: HTMLTrustcaptchaComponentElement;\n @Output() captchaStarted = new EventEmitter<CustomEvent<void>>();\n @Output() captchaSolved = new EventEmitter<CustomEvent<string>>();\n @Output() captchaFailed = new EventEmitter<CustomEvent<ITrustcaptchaComponentErrorModel>>();\n @Output() captchaExpired = new EventEmitter<CustomEvent<void>>();\n @Output() captchaReset = new EventEmitter<CustomEvent<void>>();\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nimport type { ErrorModel as ITrustcaptchaComponentErrorModel } from '@trustcomponent/trustcaptcha-frontend/dist/components';\n\nexport declare interface TrustcaptchaComponent extends Components.TrustcaptchaComponent {\n\n captchaStarted: EventEmitter<CustomEvent<void>>;\n\n captchaSolved: EventEmitter<CustomEvent<string>>;\n\n captchaFailed: EventEmitter<CustomEvent<ITrustcaptchaComponentErrorModel>>;\n\n captchaExpired: EventEmitter<CustomEvent<void>>;\n\n captchaReset: EventEmitter<CustomEvent<void>>;\n}\n\n\n","/*\n * Public API Surface of trustcaptcha-library\n */\n\nexport * from './lib/stencil-generated/components';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineTrustcaptchaComponent"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;YACtB,CAAC;AACD,YAAA,GAAG,CAAC,GAAQ,EAAA;AACV,gBAAA,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;YACvD,CAAC;AACD;;;;;;AAMG;AACH,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;AACJ,IAAA,CAAC,CAAC;AACJ,CAAC;AAEM,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAiB,KAAI;AAC1D,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,OAAO,CAAC,OAAO,CAAC,CAAC,UAAU,KAAI;QAC7B,SAAS,CAAC,UAAU,CAAC,GAAG,YAAA;YACtB,MAAM,IAAI,GAAG,SAAS;YACtB,OAAO,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AACjF,QAAA,CAAC;AACH,IAAA,CAAC,CAAC;AACJ,CAAC;AAEM,MAAM,YAAY,GAAG,CAAC,QAAa,EAAE,EAAO,EAAE,MAAgB,KAAI;IACv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,MAAM;AAC/C,oBAAA,QAAQ,EAAE,2BAA2B;;AAErC,oBAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,CAAC;oBAC1Q,OAAO,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,CAAC;AAChG,iBAAA;;sBAGE;;sBACA;;sBACA;;sBACA;;sBACA;;;AC5BH;;AAEG;;ACFH;;AAEG;;;;"} |
| import * as i0 from '@angular/core'; | ||
| import { NgZone, EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core'; | ||
| import { ErrorModel, Components } from '@trustcomponent/trustcaptcha-frontend/dist/components'; | ||
| declare class TrustcaptchaComponent { | ||
| protected z: NgZone; | ||
| protected el: HTMLTrustcaptchaComponentElement; | ||
| captchaStarted: EventEmitter<CustomEvent<void>>; | ||
| captchaSolved: EventEmitter<CustomEvent<string>>; | ||
| captchaFailed: EventEmitter<CustomEvent<ErrorModel>>; | ||
| captchaExpired: EventEmitter<CustomEvent<void>>; | ||
| captchaReset: EventEmitter<CustomEvent<void>>; | ||
| constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone); | ||
| static ɵfac: i0.ɵɵFactoryDeclaration<TrustcaptchaComponent, never>; | ||
| static ɵcmp: i0.ɵɵComponentDeclaration<TrustcaptchaComponent, "trustcaptcha-component", never, { "apiUrl": { "alias": "apiUrl"; "required": false; }; "autostartDisabled": { "alias": "autostartDisabled"; "required": false; }; "bypassToken": { "alias": "bypassToken"; "required": false; }; "design": { "alias": "design"; "required": false; }; "failoverEnabled": { "alias": "failoverEnabled"; "required": false; }; "framework": { "alias": "framework"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "invisible": { "alias": "invisible"; "required": false; }; "invisibleHint": { "alias": "invisibleHint"; "required": false; }; "language": { "alias": "language"; "required": false; }; "licenseKey": { "alias": "licenseKey"; "required": false; }; "minimalDataMode": { "alias": "minimalDataMode"; "required": false; }; "privacyUrl": { "alias": "privacyUrl"; "required": false; }; "sitekey": { "alias": "sitekey"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "tokenFieldName": { "alias": "tokenFieldName"; "required": false; }; "translations": { "alias": "translations"; "required": false; }; "whiteLabel": { "alias": "whiteLabel"; "required": false; }; }, { "captchaStarted": "captchaStarted"; "captchaSolved": "captchaSolved"; "captchaFailed": "captchaFailed"; "captchaExpired": "captchaExpired"; "captchaReset": "captchaReset"; }, never, ["*"], true, never>; | ||
| } | ||
| declare interface TrustcaptchaComponent extends Components.TrustcaptchaComponent { | ||
| captchaStarted: EventEmitter<CustomEvent<void>>; | ||
| captchaSolved: EventEmitter<CustomEvent<string>>; | ||
| captchaFailed: EventEmitter<CustomEvent<ErrorModel>>; | ||
| captchaExpired: EventEmitter<CustomEvent<void>>; | ||
| captchaReset: EventEmitter<CustomEvent<void>>; | ||
| } | ||
| export { TrustcaptchaComponent }; |
+10
-17
| { | ||
| "name": "@trustcomponent/trustcaptcha-angular", | ||
| "version": "2.2.0", | ||
| "version": "3.0.0-beta.0", | ||
| "description": "TrustCaptcha – Privacy-first CAPTCHA solution for Angular. GDPR-compliant, bot protection made in Europe.", | ||
@@ -27,16 +27,12 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@angular/common": ">=14.0.0 <22.0.0", | ||
| "@angular/core": ">=14.0.0 <22.0.0", | ||
| "@angular/common": ">=17.0.0 <22.0.0", | ||
| "@angular/core": ">=17.0.0 <22.0.0", | ||
| "@trustcomponent/trustcaptcha-frontend": "*" | ||
| }, | ||
| "dependencies": { | ||
| "tslib": "^2.3.0" | ||
| "tslib": "^2.8.1" | ||
| }, | ||
| "sideEffects": false, | ||
| "module": "fesm2015/trustcomponent-trustcaptcha-angular.mjs", | ||
| "es2020": "fesm2020/trustcomponent-trustcaptcha-angular.mjs", | ||
| "esm2020": "esm2020/trustcomponent-trustcaptcha-angular.mjs", | ||
| "fesm2020": "fesm2020/trustcomponent-trustcaptcha-angular.mjs", | ||
| "fesm2015": "fesm2015/trustcomponent-trustcaptcha-angular.mjs", | ||
| "typings": "index.d.ts", | ||
| "module": "fesm2022/trustcomponent-trustcaptcha-angular.mjs", | ||
| "typings": "types/trustcomponent-trustcaptcha-angular.d.ts", | ||
| "exports": { | ||
@@ -47,10 +43,7 @@ "./package.json": { | ||
| ".": { | ||
| "types": "./index.d.ts", | ||
| "esm2020": "./esm2020/trustcomponent-trustcaptcha-angular.mjs", | ||
| "es2020": "./fesm2020/trustcomponent-trustcaptcha-angular.mjs", | ||
| "es2015": "./fesm2015/trustcomponent-trustcaptcha-angular.mjs", | ||
| "node": "./fesm2015/trustcomponent-trustcaptcha-angular.mjs", | ||
| "default": "./fesm2020/trustcomponent-trustcaptcha-angular.mjs" | ||
| "types": "./types/trustcomponent-trustcaptcha-angular.d.ts", | ||
| "default": "./fesm2022/trustcomponent-trustcaptcha-angular.mjs" | ||
| } | ||
| } | ||
| }, | ||
| "type": "module" | ||
| } |
+10
-11
@@ -38,18 +38,17 @@  | ||
| 2. Add the TrustcaptchaModule to your app.module.ts if not standalone | ||
| 2. Import the TrustcaptchaComponent where you want to use it (standalone) | ||
| ```typescript | ||
| import {TrustcaptchaModule} from "@trustcomponent/trustcaptcha-angular"; | ||
| import {TrustcaptchaComponent} from "@trustcomponent/trustcaptcha-angular"; | ||
| @NgModule({ | ||
| ... | ||
| imports: [ | ||
| ... | ||
| TrustcaptchaModule | ||
| ], | ||
| ... | ||
| @Component({ | ||
| // standalone components: add to imports | ||
| imports: [TrustcaptchaComponent], | ||
| // ... | ||
| }) | ||
| export class AppModule { } | ||
| export class MyComponent { } | ||
| ``` | ||
| If your app still uses NgModules, add `TrustcaptchaComponent` to the `imports` | ||
| array of the NgModule that hosts the form template. | ||
| 3. Use the TrustCaptcha component in any form element | ||
@@ -56,0 +55,0 @@ ```html |
| /* eslint-disable */ | ||
| /* tslint:disable */ | ||
| import { fromEvent } from 'rxjs'; | ||
| export const proxyInputs = (Cmp, inputs) => { | ||
| const Prototype = Cmp.prototype; | ||
| inputs.forEach((item) => { | ||
| Object.defineProperty(Prototype, item, { | ||
| get() { | ||
| return this.el[item]; | ||
| }, | ||
| set(val) { | ||
| this.z.runOutsideAngular(() => (this.el[item] = val)); | ||
| }, | ||
| /** | ||
| * In the event that proxyInputs is called | ||
| * multiple times re-defining these inputs | ||
| * will cause an error to be thrown. As a result | ||
| * we set configurable: true to indicate these | ||
| * properties can be changed. | ||
| */ | ||
| configurable: true, | ||
| }); | ||
| }); | ||
| }; | ||
| export const proxyMethods = (Cmp, methods) => { | ||
| const Prototype = Cmp.prototype; | ||
| methods.forEach((methodName) => { | ||
| Prototype[methodName] = function () { | ||
| const args = arguments; | ||
| return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args)); | ||
| }; | ||
| }); | ||
| }; | ||
| export const proxyOutputs = (instance, el, events) => { | ||
| events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName))); | ||
| }; | ||
| export const defineCustomElement = (tagName, customElement) => { | ||
| if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) { | ||
| customElements.define(tagName, customElement); | ||
| } | ||
| }; | ||
| // tslint:disable-next-line: only-arrow-functions | ||
| export function ProxyCmp(opts) { | ||
| const decorator = function (cls) { | ||
| const { defineCustomElementFn, inputs, methods } = opts; | ||
| if (defineCustomElementFn !== undefined) { | ||
| defineCustomElementFn(); | ||
| } | ||
| if (inputs) { | ||
| proxyInputs(cls, inputs); | ||
| } | ||
| if (methods) { | ||
| proxyMethods(cls, methods); | ||
| } | ||
| return cls; | ||
| }; | ||
| return decorator; | ||
| } | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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GVsLCBldmVudE5hbWUpKSk7XG59O1xuXG5leHBvcnQgY29uc3QgZGVmaW5lQ3VzdG9tRWxlbWVudCA9ICh0YWdOYW1lOiBzdHJpbmcsIGN1c3RvbUVsZW1lbnQ6IGFueSkgPT4ge1xuICBpZiAoY3VzdG9tRWxlbWVudCAhPT0gdW5kZWZpbmVkICYmIHR5cGVvZiBjdXN0b21FbGVtZW50cyAhPT0gJ3VuZGVmaW5lZCcgJiYgIWN1c3RvbUVsZW1lbnRzLmdldCh0YWdOYW1lKSkge1xuICAgIGN1c3RvbUVsZW1lbnRzLmRlZmluZSh0YWdOYW1lLCBjdXN0b21FbGVtZW50KTtcbiAgfVxufTtcblxuLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOiBvbmx5LWFycm93LWZ1bmN0aW9uc1xuZXhwb3J0IGZ1bmN0aW9uIFByb3h5Q21wKG9wdHM6IHsgZGVmaW5lQ3VzdG9tRWxlbWVudEZuPzogKCkgPT4gdm9pZDsgaW5wdXRzPzogYW55OyBtZXRob2RzPzogYW55IH0pIHtcbiAgY29uc3QgZGVjb3JhdG9yID0gZnVuY3Rpb24gKGNsczogYW55KSB7XG4gICAgY29uc3QgeyBkZWZpbmVDdXN0b21FbGVtZW50Rm4sIGlucHV0cywgbWV0aG9kcyB9ID0gb3B0cztcblxuICAgIGlmIChkZWZpbmVDdXN0b21FbGVtZW50Rm4gIT09IHVuZGVmaW5lZCkge1xuICAgICAgZGVmaW5lQ3VzdG9tRWxlbWVudEZuKCk7XG4gICAgfVxuXG4gICAgaWYgKGlucHV0cykge1xuICAgICAgcHJveHlJbnB1dHMoY2xzLCBpbnB1dHMpO1xuICAgIH1cbiAgICBpZiAobWV0aG9kcykge1xuICAgICAgcHJveHlNZXRob2RzKGNscywgbWV0aG9kcyk7XG4gICAgfVxuICAgIHJldHVybiBjbHM7XG4gIH07XG4gIHJldHVybiBkZWNvcmF0b3I7XG59XG4iXX0= |
| import { __decorate } from "tslib"; | ||
| /* tslint:disable */ | ||
| /* auto-generated angular directive proxies */ | ||
| import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
| import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils'; | ||
| import { defineCustomElement as defineTrustcaptchaComponent } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js'; | ||
| import * as i0 from "@angular/core"; | ||
| let TrustcaptchaComponent = class TrustcaptchaComponent { | ||
| constructor(c, r, z) { | ||
| this.z = z; | ||
| c.detach(); | ||
| this.el = r.nativeElement; | ||
| proxyOutputs(this, this.el, ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaReset']); | ||
| } | ||
| }; | ||
| TrustcaptchaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); | ||
| TrustcaptchaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TrustcaptchaComponent, isStandalone: true, selector: "trustcaptcha-component", inputs: { autostart: "autostart", bypassToken: "bypassToken", customDesign: "customDesign", customTranslations: "customTranslations", framework: "framework", hideBranding: "hideBranding", invisible: "invisible", invisibleHint: "invisibleHint", language: "language", license: "license", mode: "mode", privacyUrl: "privacyUrl", sitekey: "sitekey", theme: "theme", tokenFieldName: "tokenFieldName", trustcaptchaApi: "trustcaptchaApi", width: "width" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); | ||
| TrustcaptchaComponent = __decorate([ | ||
| ProxyCmp({ | ||
| defineCustomElementFn: defineTrustcaptchaComponent, | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| methods: ['startVerification', 'reset'] | ||
| }) | ||
| ], TrustcaptchaComponent); | ||
| export { TrustcaptchaComponent }; | ||
| i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, decorators: [{ | ||
| type: Component, | ||
| args: [{ | ||
| selector: 'trustcaptcha-component', | ||
| changeDetection: ChangeDetectionStrategy.OnPush, | ||
| template: '<ng-content></ng-content>', | ||
| // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| standalone: true | ||
| }] | ||
| }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } }); | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RydXN0Y2FwdGNoYS1saWJyYXJ5L3NyYy9saWIvc3RlbmNpbC1nZW5lcmF0ZWQvY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLDhDQUE4QztBQUM5QyxPQUFPLEVBQUUsdUJBQXVCLEVBQXFCLFNBQVMsRUFBb0MsTUFBTSxlQUFlLENBQUM7QUFFeEgsT0FBTyxFQUFFLFFBQVEsRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUl2RSxPQUFPLEVBQUUsbUJBQW1CLElBQUksMkJBQTJCLEVBQUUsTUFBTSxpRkFBaUYsQ0FBQzs7QUFjOUksSUFBTSxxQkFBcUIsR0FBM0IsTUFBTSx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dGNhcHRjaGFDb21wb25lbnQge1xuICBwcm90ZWN0ZWQgZWw6IEhUTUxUcnVzdGNhcHRjaGFDb21wb25lbnRFbGVtZW50O1xuICBjb25zdHJ1Y3RvcihjOiBDaGFuZ2VEZXRlY3RvclJlZiwgcjogRWxlbWVudFJlZiwgcHJvdGVjdGVkIHo6IE5nWm9uZSkge1xuICAgIGMuZGV0YWNoKCk7XG4gICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICBwcm94eU91dHB1dHModGhpcywgdGhpcy5lbCwgWydjYXB0Y2hhU3RhcnRlZCcsICdjYXB0Y2hhU29sdmVkJywgJ2NhcHRjaGFGYWlsZWQnLCAnY2FwdGNoYVJlc2V0J10pO1xuICB9XG59XG5cblxuZXhwb3J0IGRlY2xhcmUgaW50ZXJmYWNlIFRydXN0Y2FwdGNoYUNvbXBvbmVudCBleHRlbmRzIENvbXBvbmVudHMuVHJ1c3RjYXB0Y2hhQ29tcG9uZW50IHtcblxuICBjYXB0Y2hhU3RhcnRlZDogRXZlbnRFbWl0dGVyPEN1c3RvbUV2ZW50PHZvaWQ+PjtcblxuICBjYXB0Y2hhU29sdmVkOiBFdmVudEVtaXR0ZXI8Q3VzdG9tRXZlbnQ8c3RyaW5nPj47XG5cbiAgY2FwdGNoYUZhaWxlZDogRXZlbnRFbWl0dGVyPEN1c3RvbUV2ZW50PHN0cmluZz4+O1xuXG4gIGNhcHRjaGFSZXNldDogRXZlbnRFbWl0dGVyPEN1c3RvbUV2ZW50PHZvaWQ+Pjtcbn1cblxuXG4iXX0= |
| /* | ||
| * Public API Surface of trustcaptcha-library | ||
| */ | ||
| export * from './lib/stencil-generated/components'; | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3RydXN0Y2FwdGNoYS1saWJyYXJ5L3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdHJ1c3RjYXB0Y2hhLWxpYnJhcnlcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdGVuY2lsLWdlbmVyYXRlZC9jb21wb25lbnRzJztcbiJdfQ== |
| /** | ||
| * Generated bundle index. Do not edit. | ||
| */ | ||
| export * from './public-api'; | ||
| //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1c3Rjb21wb25lbnQtdHJ1c3RjYXB0Y2hhLWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy90cnVzdGNhcHRjaGEtbGlicmFyeS9zcmMvdHJ1c3Rjb21wb25lbnQtdHJ1c3RjYXB0Y2hhLWFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== |
| import { __decorate } from 'tslib'; | ||
| import * as i0 from '@angular/core'; | ||
| import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
| import { fromEvent } from 'rxjs'; | ||
| import { defineCustomElement as defineCustomElement$1 } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js'; | ||
| /* eslint-disable */ | ||
| /* tslint:disable */ | ||
| const proxyInputs = (Cmp, inputs) => { | ||
| const Prototype = Cmp.prototype; | ||
| inputs.forEach((item) => { | ||
| Object.defineProperty(Prototype, item, { | ||
| get() { | ||
| return this.el[item]; | ||
| }, | ||
| set(val) { | ||
| this.z.runOutsideAngular(() => (this.el[item] = val)); | ||
| }, | ||
| /** | ||
| * In the event that proxyInputs is called | ||
| * multiple times re-defining these inputs | ||
| * will cause an error to be thrown. As a result | ||
| * we set configurable: true to indicate these | ||
| * properties can be changed. | ||
| */ | ||
| configurable: true, | ||
| }); | ||
| }); | ||
| }; | ||
| const proxyMethods = (Cmp, methods) => { | ||
| const Prototype = Cmp.prototype; | ||
| methods.forEach((methodName) => { | ||
| Prototype[methodName] = function () { | ||
| const args = arguments; | ||
| return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args)); | ||
| }; | ||
| }); | ||
| }; | ||
| const proxyOutputs = (instance, el, events) => { | ||
| events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName))); | ||
| }; | ||
| const defineCustomElement = (tagName, customElement) => { | ||
| if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) { | ||
| customElements.define(tagName, customElement); | ||
| } | ||
| }; | ||
| // tslint:disable-next-line: only-arrow-functions | ||
| function ProxyCmp(opts) { | ||
| const decorator = function (cls) { | ||
| const { defineCustomElementFn, inputs, methods } = opts; | ||
| if (defineCustomElementFn !== undefined) { | ||
| defineCustomElementFn(); | ||
| } | ||
| if (inputs) { | ||
| proxyInputs(cls, inputs); | ||
| } | ||
| if (methods) { | ||
| proxyMethods(cls, methods); | ||
| } | ||
| return cls; | ||
| }; | ||
| return decorator; | ||
| } | ||
| let TrustcaptchaComponent = class TrustcaptchaComponent { | ||
| constructor(c, r, z) { | ||
| this.z = z; | ||
| c.detach(); | ||
| this.el = r.nativeElement; | ||
| proxyOutputs(this, this.el, ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaReset']); | ||
| } | ||
| }; | ||
| TrustcaptchaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); | ||
| TrustcaptchaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TrustcaptchaComponent, isStandalone: true, selector: "trustcaptcha-component", inputs: { autostart: "autostart", bypassToken: "bypassToken", customDesign: "customDesign", customTranslations: "customTranslations", framework: "framework", hideBranding: "hideBranding", invisible: "invisible", invisibleHint: "invisibleHint", language: "language", license: "license", mode: "mode", privacyUrl: "privacyUrl", sitekey: "sitekey", theme: "theme", tokenFieldName: "tokenFieldName", trustcaptchaApi: "trustcaptchaApi", width: "width" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); | ||
| TrustcaptchaComponent = __decorate([ | ||
| ProxyCmp({ | ||
| defineCustomElementFn: defineCustomElement$1, | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| methods: ['startVerification', 'reset'] | ||
| }) | ||
| ], TrustcaptchaComponent); | ||
| i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, decorators: [{ | ||
| type: Component, | ||
| args: [{ | ||
| selector: 'trustcaptcha-component', | ||
| changeDetection: ChangeDetectionStrategy.OnPush, | ||
| template: '<ng-content></ng-content>', | ||
| // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| standalone: true | ||
| }] | ||
| }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } }); | ||
| /* | ||
| * Public API Surface of trustcaptcha-library | ||
| */ | ||
| /** | ||
| * Generated bundle index. Do not edit. | ||
| */ | ||
| export { TrustcaptchaComponent }; | ||
| //# sourceMappingURL=trustcomponent-trustcaptcha-angular.mjs.map |
| {"version":3,"file":"trustcomponent-trustcaptcha-angular.mjs","sources":["../../../projects/trustcaptcha-library/src/lib/stencil-generated/angular-component-lib/utils.ts","../../../projects/trustcaptcha-library/src/lib/stencil-generated/components.ts","../../../projects/trustcaptcha-library/src/public-api.ts","../../../projects/trustcaptcha-library/src/trustcomponent-trustcaptcha-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';\n\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nimport type { Components } from '@trustcomponent/trustcaptcha-frontend/dist/components';\n\nimport { defineCustomElement as defineTrustcaptchaComponent } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js';\n@ProxyCmp({\n defineCustomElementFn: defineTrustcaptchaComponent,\n inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'],\n methods: ['startVerification', 'reset']\n})\n@Component({\n selector: 'trustcaptcha-component',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'],\n standalone: true\n})\nexport class TrustcaptchaComponent {\n protected el: HTMLTrustcaptchaComponentElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaReset']);\n }\n}\n\n\nexport declare interface TrustcaptchaComponent extends Components.TrustcaptchaComponent {\n\n captchaStarted: EventEmitter<CustomEvent<void>>;\n\n captchaSolved: EventEmitter<CustomEvent<string>>;\n\n captchaFailed: EventEmitter<CustomEvent<string>>;\n\n captchaReset: EventEmitter<CustomEvent<void>>;\n}\n\n\n","/*\n * Public API Surface of trustcaptcha-library\n */\n\nexport * from './lib/stencil-generated/components';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineTrustcaptchaComponent"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;aACtB;AACD,YAAA,GAAG,CAAC,GAAQ,EAAA;AACV,gBAAA,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;aACvD;AACD;;;;;;AAMG;AACH,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC,CAAC;AACL,KAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAiB,KAAI;AAC1D,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,IAAA,OAAO,CAAC,OAAO,CAAC,CAAC,UAAU,KAAI;QAC7B,SAAS,CAAC,UAAU,CAAC,GAAG,YAAA;YACtB,MAAM,IAAI,GAAG,SAAS,CAAC;YACvB,OAAO,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;AAClF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AAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;oBAClC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE,2BAA2B;;AAErC,oBAAA,MAAM,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,OAAO,CAAC;AACpP,oBAAA,UAAU,EAAE,IAAI;iBACjB,CAAA;;;ACrBD;;AAEG;;ACFH;;AAEG;;;;"} |
| import { __decorate } from 'tslib'; | ||
| import * as i0 from '@angular/core'; | ||
| import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
| import { fromEvent } from 'rxjs'; | ||
| import { defineCustomElement as defineCustomElement$1 } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js'; | ||
| /* eslint-disable */ | ||
| /* tslint:disable */ | ||
| const proxyInputs = (Cmp, inputs) => { | ||
| const Prototype = Cmp.prototype; | ||
| inputs.forEach((item) => { | ||
| Object.defineProperty(Prototype, item, { | ||
| get() { | ||
| return this.el[item]; | ||
| }, | ||
| set(val) { | ||
| this.z.runOutsideAngular(() => (this.el[item] = val)); | ||
| }, | ||
| /** | ||
| * In the event that proxyInputs is called | ||
| * multiple times re-defining these inputs | ||
| * will cause an error to be thrown. As a result | ||
| * we set configurable: true to indicate these | ||
| * properties can be changed. | ||
| */ | ||
| configurable: true, | ||
| }); | ||
| }); | ||
| }; | ||
| const proxyMethods = (Cmp, methods) => { | ||
| const Prototype = Cmp.prototype; | ||
| methods.forEach((methodName) => { | ||
| Prototype[methodName] = function () { | ||
| const args = arguments; | ||
| return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args)); | ||
| }; | ||
| }); | ||
| }; | ||
| const proxyOutputs = (instance, el, events) => { | ||
| events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName))); | ||
| }; | ||
| const defineCustomElement = (tagName, customElement) => { | ||
| if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) { | ||
| customElements.define(tagName, customElement); | ||
| } | ||
| }; | ||
| // tslint:disable-next-line: only-arrow-functions | ||
| function ProxyCmp(opts) { | ||
| const decorator = function (cls) { | ||
| const { defineCustomElementFn, inputs, methods } = opts; | ||
| if (defineCustomElementFn !== undefined) { | ||
| defineCustomElementFn(); | ||
| } | ||
| if (inputs) { | ||
| proxyInputs(cls, inputs); | ||
| } | ||
| if (methods) { | ||
| proxyMethods(cls, methods); | ||
| } | ||
| return cls; | ||
| }; | ||
| return decorator; | ||
| } | ||
| let TrustcaptchaComponent = class TrustcaptchaComponent { | ||
| constructor(c, r, z) { | ||
| this.z = z; | ||
| c.detach(); | ||
| this.el = r.nativeElement; | ||
| proxyOutputs(this, this.el, ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaReset']); | ||
| } | ||
| }; | ||
| TrustcaptchaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); | ||
| TrustcaptchaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TrustcaptchaComponent, isStandalone: true, selector: "trustcaptcha-component", inputs: { autostart: "autostart", bypassToken: "bypassToken", customDesign: "customDesign", customTranslations: "customTranslations", framework: "framework", hideBranding: "hideBranding", invisible: "invisible", invisibleHint: "invisibleHint", language: "language", license: "license", mode: "mode", privacyUrl: "privacyUrl", sitekey: "sitekey", theme: "theme", tokenFieldName: "tokenFieldName", trustcaptchaApi: "trustcaptchaApi", width: "width" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); | ||
| TrustcaptchaComponent = __decorate([ | ||
| ProxyCmp({ | ||
| defineCustomElementFn: defineCustomElement$1, | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| methods: ['startVerification', 'reset'] | ||
| }) | ||
| ], TrustcaptchaComponent); | ||
| i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TrustcaptchaComponent, decorators: [{ | ||
| type: Component, | ||
| args: [{ | ||
| selector: 'trustcaptcha-component', | ||
| changeDetection: ChangeDetectionStrategy.OnPush, | ||
| template: '<ng-content></ng-content>', | ||
| // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property | ||
| inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'], | ||
| standalone: true | ||
| }] | ||
| }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } }); | ||
| /* | ||
| * Public API Surface of trustcaptcha-library | ||
| */ | ||
| /** | ||
| * Generated bundle index. Do not edit. | ||
| */ | ||
| export { TrustcaptchaComponent }; | ||
| //# sourceMappingURL=trustcomponent-trustcaptcha-angular.mjs.map |
| {"version":3,"file":"trustcomponent-trustcaptcha-angular.mjs","sources":["../../../projects/trustcaptcha-library/src/lib/stencil-generated/angular-component-lib/utils.ts","../../../projects/trustcaptcha-library/src/lib/stencil-generated/components.ts","../../../projects/trustcaptcha-library/src/public-api.ts","../../../projects/trustcaptcha-library/src/trustcomponent-trustcaptcha-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';\n\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nimport type { Components } from '@trustcomponent/trustcaptcha-frontend/dist/components';\n\nimport { defineCustomElement as defineTrustcaptchaComponent } from '@trustcomponent/trustcaptcha-frontend/dist/components/trustcaptcha-component.js';\n@ProxyCmp({\n defineCustomElementFn: defineTrustcaptchaComponent,\n inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'],\n methods: ['startVerification', 'reset']\n})\n@Component({\n selector: 'trustcaptcha-component',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['autostart', 'bypassToken', 'customDesign', 'customTranslations', 'framework', 'hideBranding', 'invisible', 'invisibleHint', 'language', 'license', 'mode', 'privacyUrl', 'sitekey', 'theme', 'tokenFieldName', 'trustcaptchaApi', 'width'],\n standalone: true\n})\nexport class TrustcaptchaComponent {\n protected el: HTMLTrustcaptchaComponentElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['captchaStarted', 'captchaSolved', 'captchaFailed', 'captchaReset']);\n }\n}\n\n\nexport declare interface TrustcaptchaComponent extends Components.TrustcaptchaComponent {\n\n captchaStarted: EventEmitter<CustomEvent<void>>;\n\n captchaSolved: EventEmitter<CustomEvent<string>>;\n\n captchaFailed: EventEmitter<CustomEvent<string>>;\n\n captchaReset: EventEmitter<CustomEvent<void>>;\n}\n\n\n","/*\n * Public API Surface of trustcaptcha-library\n */\n\nexport * from './lib/stencil-generated/components';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineTrustcaptchaComponent"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO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name="@trustcomponent/trustcaptcha-angular" /> | ||
| export * from './public-api'; |
| export declare const proxyInputs: (Cmp: any, inputs: string[]) => void; | ||
| export declare const proxyMethods: (Cmp: any, methods: string[]) => void; | ||
| export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void; | ||
| export declare const defineCustomElement: (tagName: string, customElement: any) => void; | ||
| export declare function ProxyCmp(opts: { | ||
| defineCustomElementFn?: () => void; | ||
| inputs?: any; | ||
| methods?: any; | ||
| }): (cls: any) => any; |
| import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core'; | ||
| import type { Components } from '@trustcomponent/trustcaptcha-frontend/dist/components'; | ||
| import * as i0 from "@angular/core"; | ||
| export declare class TrustcaptchaComponent { | ||
| protected z: NgZone; | ||
| protected el: HTMLTrustcaptchaComponentElement; | ||
| constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone); | ||
| static ɵfac: i0.ɵɵFactoryDeclaration<TrustcaptchaComponent, never>; | ||
| static ɵcmp: i0.ɵɵComponentDeclaration<TrustcaptchaComponent, "trustcaptcha-component", never, { "autostart": "autostart"; "bypassToken": "bypassToken"; "customDesign": "customDesign"; "customTranslations": "customTranslations"; "framework": "framework"; "hideBranding": "hideBranding"; "invisible": "invisible"; "invisibleHint": "invisibleHint"; "language": "language"; "license": "license"; "mode": "mode"; "privacyUrl": "privacyUrl"; "sitekey": "sitekey"; "theme": "theme"; "tokenFieldName": "tokenFieldName"; "trustcaptchaApi": "trustcaptchaApi"; "width": "width"; }, {}, never, ["*"], true, never>; | ||
| } | ||
| export declare interface TrustcaptchaComponent extends Components.TrustcaptchaComponent { | ||
| captchaStarted: EventEmitter<CustomEvent<void>>; | ||
| captchaSolved: EventEmitter<CustomEvent<string>>; | ||
| captchaFailed: EventEmitter<CustomEvent<string>>; | ||
| captchaReset: EventEmitter<CustomEvent<void>>; | ||
| } |
| export * from './lib/stencil-generated/components'; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Yes
NaN21651
-64.05%5
-66.67%142
-57.86%1
Infinity%91
-1.09%1
Infinity%Updated