@taiga-ui/addon-commerce 3.60.0 → 3.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js +898 -1044
  2. package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +615 -761
  4. package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js +490 -636
  6. package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +463 -609
  8. package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-commerce-components-money.umd.js +12 -12
  10. package/bundles/taiga-ui-addon-commerce-components-money.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js +457 -603
  12. package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-commerce-constants.umd.js +32 -32
  14. package/bundles/taiga-ui-addon-commerce-constants.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +1 -1
  16. package/bundles/taiga-ui-addon-commerce-pipes.umd.js +6 -6
  17. package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +1 -1
  18. package/bundles/taiga-ui-addon-commerce-tokens.umd.js +3 -3
  19. package/bundles/taiga-ui-addon-commerce-tokens.umd.js.map +1 -1
  20. package/bundles/taiga-ui-addon-commerce-utils.umd.js +113 -259
  21. package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +1 -1
  22. package/bundles/taiga-ui-addon-commerce-validators.umd.js +2 -2
  23. package/bundles/taiga-ui-addon-commerce-validators.umd.js.map +1 -1
  24. package/esm2015/components/input-card/abstract-input-card.js +2 -2
  25. package/esm2015/components/input-card/input-card.options.js +2 -2
  26. package/esm2015/components/input-card-grouped/input-card-grouped.options.js +2 -2
  27. package/esm2015/components/input-card-grouped/input-card-grouped.providers.js +2 -2
  28. package/esm2015/components/money/money.options.js +4 -4
  29. package/esm2015/components/money/pipes/fraction-part.pipe.js +2 -2
  30. package/esm2015/components/money/pipes/integer-part.pipe.js +3 -3
  31. package/esm2015/components/money/pipes/sign-symbol.pipe.js +2 -2
  32. package/esm2015/components/money/utils/format-fraction-part.js +3 -3
  33. package/esm2015/components/money/utils/format-sign-symbol.js +4 -4
  34. package/esm2015/components/thumbnail-card/deprecated.js +4 -4
  35. package/esm2015/constants/card-holder-mask.js +29 -29
  36. package/esm2015/constants/card-mask.js +5 -5
  37. package/esm2015/enums/currency-code.js +1 -1
  38. package/esm2015/enums/currency.js +1 -1
  39. package/esm2015/pipes/currency/currency.pipe.js +2 -2
  40. package/esm2015/pipes/format-card/format-card.pipe.js +6 -6
  41. package/esm2015/tokens/i18n.js +4 -4
  42. package/esm2015/utils/create-auto-corrected-expire-pipe.js +6 -6
  43. package/esm2015/utils/format-currency.js +3 -3
  44. package/esm2015/utils/get-currency-symbol.js +38 -38
  45. package/esm2015/utils/get-payment-system.js +44 -44
  46. package/esm2015/utils/is-card-length-valid.js +6 -6
  47. package/esm2015/utils/is-card-number-valid.js +3 -3
  48. package/esm2015/utils/payment-system-icons.js +15 -15
  49. package/esm2015/validators/card-expire.validator.js +2 -2
  50. package/esm2015/validators/card-number.validator.js +2 -2
  51. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +2 -2
  52. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +1 -1
  53. package/fesm2015/taiga-ui-addon-commerce-components-input-card.js +2 -2
  54. package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +1 -1
  55. package/fesm2015/taiga-ui-addon-commerce-components-money.js +12 -12
  56. package/fesm2015/taiga-ui-addon-commerce-components-money.js.map +1 -1
  57. package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js +3 -3
  58. package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js.map +1 -1
  59. package/fesm2015/taiga-ui-addon-commerce-constants.js +32 -32
  60. package/fesm2015/taiga-ui-addon-commerce-constants.js.map +1 -1
  61. package/fesm2015/taiga-ui-addon-commerce-enums.js.map +1 -1
  62. package/fesm2015/taiga-ui-addon-commerce-pipes.js +6 -6
  63. package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +1 -1
  64. package/fesm2015/taiga-ui-addon-commerce-tokens.js +3 -3
  65. package/fesm2015/taiga-ui-addon-commerce-tokens.js.map +1 -1
  66. package/fesm2015/taiga-ui-addon-commerce-utils.js +108 -108
  67. package/fesm2015/taiga-ui-addon-commerce-utils.js.map +1 -1
  68. package/fesm2015/taiga-ui-addon-commerce-validators.js +2 -2
  69. package/fesm2015/taiga-ui-addon-commerce-validators.js.map +1 -1
  70. package/package.json +5 -5
@@ -1,1063 +1,917 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/addon-commerce/components/input-card'), require('@taiga-ui/addon-commerce/constants'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('@ng-web-apis/common'), require('@taiga-ui/addon-commerce/tokens'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@maskito/angular'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/addon-commerce/pipes')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/input-card-grouped', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/addon-commerce/components/input-card', '@taiga-ui/addon-commerce/constants', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', '@ng-web-apis/common', '@taiga-ui/addon-commerce/tokens', 'rxjs', 'rxjs/operators', '@angular/common', '@maskito/angular', '@tinkoff/ng-polymorpheus', '@taiga-ui/addon-commerce/pipes'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-commerce"] = global["taiga-ui"]["addon-commerce"] || {}, global["taiga-ui"]["addon-commerce"].components = global["taiga-ui"]["addon-commerce"].components || {}, global["taiga-ui"]["addon-commerce"].components["input-card-grouped"] = {}), global.ng.core, global.ng.forms, global.kit, global["taiga-ui"]["addon-commerce"].components["input-card"], global["taiga-ui"]["addon-commerce"].constants, global.i3, global.i1, global.kit$1, global.common, global["taiga-ui"]["addon-commerce"].tokens, global.rxjs, global.rxjs.operators, global.ng.common, global.i4, global.i6, global["taiga-ui"]["addon-commerce"].pipes));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/addon-commerce/components/input-card'), require('@taiga-ui/addon-commerce/constants'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('@ng-web-apis/common'), require('@taiga-ui/addon-commerce/tokens'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@maskito/angular'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/addon-commerce/pipes')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/input-card-grouped', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/addon-commerce/components/input-card', '@taiga-ui/addon-commerce/constants', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', '@ng-web-apis/common', '@taiga-ui/addon-commerce/tokens', 'rxjs', 'rxjs/operators', '@angular/common', '@maskito/angular', '@tinkoff/ng-polymorpheus', '@taiga-ui/addon-commerce/pipes'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-commerce"] = global["taiga-ui"]["addon-commerce"] || {}, global["taiga-ui"]["addon-commerce"].components = global["taiga-ui"]["addon-commerce"].components || {}, global["taiga-ui"]["addon-commerce"].components["input-card-grouped"] = {}), global.ng.core, global.ng.forms, global.kit, global["taiga-ui"]["addon-commerce"].components["input-card"], global["taiga-ui"]["addon-commerce"].constants, global.i3, global.i1, global.kit$1, global.common, global["taiga-ui"]["addon-commerce"].tokens, global.rxjs, global.rxjs.operators, global.ng.common, global.i4, global.i6, global["taiga-ui"]["addon-commerce"].pipes));
5
5
  })(this, (function (exports, i0, i5, kit, inputCard, constants, i3, i1, kit$1, common, tokens, i8, operators, i2, i4, i6, i7) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
18
20
  }
19
- });
21
+ n["default"] = e;
22
+ return Object.freeze(n);
20
23
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
27
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
34
34
 
35
- /******************************************************************************
36
- Copyright (c) Microsoft Corporation.
35
+ /*! *****************************************************************************
36
+ Copyright (c) Microsoft Corporation.
37
37
 
38
- Permission to use, copy, modify, and/or distribute this software for any
39
- purpose with or without fee is hereby granted.
38
+ Permission to use, copy, modify, and/or distribute this software for any
39
+ purpose with or without fee is hereby granted.
40
40
 
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
- PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */
49
- /* global Reflect, Promise, SuppressedError, Symbol */
50
- var extendStatics = function (d, b) {
51
- extendStatics = Object.setPrototypeOf ||
52
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
- function (d, b) { for (var p in b)
54
- if (Object.prototype.hasOwnProperty.call(b, p))
55
- d[p] = b[p]; };
56
- return extendStatics(d, b);
57
- };
58
- function __extends(d, b) {
59
- if (typeof b !== "function" && b !== null)
60
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
- extendStatics(d, b);
62
- function __() { this.constructor = d; }
63
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
- }
65
- var __assign = function () {
66
- __assign = Object.assign || function __assign(t) {
67
- for (var s, i = 1, n = arguments.length; i < n; i++) {
68
- s = arguments[i];
69
- for (var p in s)
70
- if (Object.prototype.hasOwnProperty.call(s, p))
71
- t[p] = s[p];
72
- }
73
- return t;
74
- };
75
- return __assign.apply(this, arguments);
76
- };
77
- function __rest(s, e) {
78
- var t = {};
79
- for (var p in s)
80
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
- t[p] = s[p];
82
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
- t[p[i]] = s[p[i]];
86
- }
87
- return t;
88
- }
89
- function __decorate(decorators, target, key, desc) {
90
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
- r = Reflect.decorate(decorators, target, key, desc);
93
- else
94
- for (var i = decorators.length - 1; i >= 0; i--)
95
- if (d = decorators[i])
96
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
- return c > 3 && r && Object.defineProperty(target, key, r), r;
98
- }
99
- function __param(paramIndex, decorator) {
100
- return function (target, key) { decorator(target, key, paramIndex); };
101
- }
102
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
103
- function accept(f) { if (f !== void 0 && typeof f !== "function")
104
- throw new TypeError("Function expected"); return f; }
105
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
106
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
107
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
108
- var _, done = false;
109
- for (var i = decorators.length - 1; i >= 0; i--) {
110
- var context = {};
111
- for (var p in contextIn)
112
- context[p] = p === "access" ? {} : contextIn[p];
113
- for (var p in contextIn.access)
114
- context.access[p] = contextIn.access[p];
115
- context.addInitializer = function (f) { if (done)
116
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
117
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
118
- if (kind === "accessor") {
119
- if (result === void 0)
120
- continue;
121
- if (result === null || typeof result !== "object")
122
- throw new TypeError("Object expected");
123
- if (_ = accept(result.get))
124
- descriptor.get = _;
125
- if (_ = accept(result.set))
126
- descriptor.set = _;
127
- if (_ = accept(result.init))
128
- initializers.unshift(_);
129
- }
130
- else if (_ = accept(result)) {
131
- if (kind === "field")
132
- initializers.unshift(_);
133
- else
134
- descriptor[key] = _;
135
- }
136
- }
137
- if (target)
138
- Object.defineProperty(target, contextIn.name, descriptor);
139
- done = true;
140
- }
141
- ;
142
- function __runInitializers(thisArg, initializers, value) {
143
- var useValue = arguments.length > 2;
144
- for (var i = 0; i < initializers.length; i++) {
145
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
146
- }
147
- return useValue ? value : void 0;
148
- }
149
- ;
150
- function __propKey(x) {
151
- return typeof x === "symbol" ? x : "".concat(x);
152
- }
153
- ;
154
- function __setFunctionName(f, name, prefix) {
155
- if (typeof name === "symbol")
156
- name = name.description ? "[".concat(name.description, "]") : "";
157
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
158
- }
159
- ;
160
- function __metadata(metadataKey, metadataValue) {
161
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
162
- return Reflect.metadata(metadataKey, metadataValue);
163
- }
164
- function __awaiter(thisArg, _arguments, P, generator) {
165
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
166
- return new (P || (P = Promise))(function (resolve, reject) {
167
- function fulfilled(value) { try {
168
- step(generator.next(value));
169
- }
170
- catch (e) {
171
- reject(e);
172
- } }
173
- function rejected(value) { try {
174
- step(generator["throw"](value));
175
- }
176
- catch (e) {
177
- reject(e);
178
- } }
179
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
180
- step((generator = generator.apply(thisArg, _arguments || [])).next());
181
- });
182
- }
183
- function __generator(thisArg, body) {
184
- var _ = { label: 0, sent: function () { if (t[0] & 1)
185
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
186
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
187
- function verb(n) { return function (v) { return step([n, v]); }; }
188
- function step(op) {
189
- if (f)
190
- throw new TypeError("Generator is already executing.");
191
- while (g && (g = 0, op[0] && (_ = 0)), _)
192
- try {
193
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
194
- return t;
195
- if (y = 0, t)
196
- op = [op[0] & 2, t.value];
197
- switch (op[0]) {
198
- case 0:
199
- case 1:
200
- t = op;
201
- break;
202
- case 4:
203
- _.label++;
204
- return { value: op[1], done: false };
205
- case 5:
206
- _.label++;
207
- y = op[1];
208
- op = [0];
209
- continue;
210
- case 7:
211
- op = _.ops.pop();
212
- _.trys.pop();
213
- continue;
214
- default:
215
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
216
- _ = 0;
217
- continue;
218
- }
219
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
220
- _.label = op[1];
221
- break;
222
- }
223
- if (op[0] === 6 && _.label < t[1]) {
224
- _.label = t[1];
225
- t = op;
226
- break;
227
- }
228
- if (t && _.label < t[2]) {
229
- _.label = t[2];
230
- _.ops.push(op);
231
- break;
232
- }
233
- if (t[2])
234
- _.ops.pop();
235
- _.trys.pop();
236
- continue;
237
- }
238
- op = body.call(thisArg, _);
239
- }
240
- catch (e) {
241
- op = [6, e];
242
- y = 0;
243
- }
244
- finally {
245
- f = t = 0;
246
- }
247
- if (op[0] & 5)
248
- throw op[1];
249
- return { value: op[0] ? op[1] : void 0, done: true };
250
- }
251
- }
252
- var __createBinding = Object.create ? (function (o, m, k, k2) {
253
- if (k2 === undefined)
254
- k2 = k;
255
- var desc = Object.getOwnPropertyDescriptor(m, k);
256
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
257
- desc = { enumerable: true, get: function () { return m[k]; } };
258
- }
259
- Object.defineProperty(o, k2, desc);
260
- }) : (function (o, m, k, k2) {
261
- if (k2 === undefined)
262
- k2 = k;
263
- o[k2] = m[k];
264
- });
265
- function __exportStar(m, o) {
266
- for (var p in m)
267
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
268
- __createBinding(o, m, p);
269
- }
270
- function __values(o) {
271
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
272
- if (m)
273
- return m.call(o);
274
- if (o && typeof o.length === "number")
275
- return {
276
- next: function () {
277
- if (o && i >= o.length)
278
- o = void 0;
279
- return { value: o && o[i++], done: !o };
280
- }
281
- };
282
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
283
- }
284
- function __read(o, n) {
285
- var m = typeof Symbol === "function" && o[Symbol.iterator];
286
- if (!m)
287
- return o;
288
- var i = m.call(o), r, ar = [], e;
289
- try {
290
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
291
- ar.push(r.value);
292
- }
293
- catch (error) {
294
- e = { error: error };
295
- }
296
- finally {
297
- try {
298
- if (r && !r.done && (m = i["return"]))
299
- m.call(i);
300
- }
301
- finally {
302
- if (e)
303
- throw e.error;
304
- }
305
- }
306
- return ar;
307
- }
308
- /** @deprecated */
309
- function __spread() {
310
- for (var ar = [], i = 0; i < arguments.length; i++)
311
- ar = ar.concat(__read(arguments[i]));
312
- return ar;
313
- }
314
- /** @deprecated */
315
- function __spreadArrays() {
316
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
317
- s += arguments[i].length;
318
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
319
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
320
- r[k] = a[j];
321
- return r;
322
- }
323
- function __spreadArray(to, from, pack) {
324
- if (pack || arguments.length === 2)
325
- for (var i = 0, l = from.length, ar; i < l; i++) {
326
- if (ar || !(i in from)) {
327
- if (!ar)
328
- ar = Array.prototype.slice.call(from, 0, i);
329
- ar[i] = from[i];
330
- }
331
- }
332
- return to.concat(ar || Array.prototype.slice.call(from));
333
- }
334
- function __await(v) {
335
- return this instanceof __await ? (this.v = v, this) : new __await(v);
336
- }
337
- function __asyncGenerator(thisArg, _arguments, generator) {
338
- if (!Symbol.asyncIterator)
339
- throw new TypeError("Symbol.asyncIterator is not defined.");
340
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
341
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
342
- function verb(n) { if (g[n])
343
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
344
- function resume(n, v) { try {
345
- step(g[n](v));
346
- }
347
- catch (e) {
348
- settle(q[0][3], e);
349
- } }
350
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
351
- function fulfill(value) { resume("next", value); }
352
- function reject(value) { resume("throw", value); }
353
- function settle(f, v) { if (f(v), q.shift(), q.length)
354
- resume(q[0][0], q[0][1]); }
355
- }
356
- function __asyncDelegator(o) {
357
- var i, p;
358
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
359
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
360
- }
361
- function __asyncValues(o) {
362
- if (!Symbol.asyncIterator)
363
- throw new TypeError("Symbol.asyncIterator is not defined.");
364
- var m = o[Symbol.asyncIterator], i;
365
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
366
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
367
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
368
- }
369
- function __makeTemplateObject(cooked, raw) {
370
- if (Object.defineProperty) {
371
- Object.defineProperty(cooked, "raw", { value: raw });
372
- }
373
- else {
374
- cooked.raw = raw;
375
- }
376
- return cooked;
377
- }
378
- ;
379
- var __setModuleDefault = Object.create ? (function (o, v) {
380
- Object.defineProperty(o, "default", { enumerable: true, value: v });
381
- }) : function (o, v) {
382
- o["default"] = v;
383
- };
384
- function __importStar(mod) {
385
- if (mod && mod.__esModule)
386
- return mod;
387
- var result = {};
388
- if (mod != null)
389
- for (var k in mod)
390
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
391
- __createBinding(result, mod, k);
392
- __setModuleDefault(result, mod);
393
- return result;
394
- }
395
- function __importDefault(mod) {
396
- return (mod && mod.__esModule) ? mod : { default: mod };
397
- }
398
- function __classPrivateFieldGet(receiver, state, kind, f) {
399
- if (kind === "a" && !f)
400
- throw new TypeError("Private accessor was defined without a getter");
401
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
402
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
403
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
404
- }
405
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
406
- if (kind === "m")
407
- throw new TypeError("Private method is not writable");
408
- if (kind === "a" && !f)
409
- throw new TypeError("Private accessor was defined without a setter");
410
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
411
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
412
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
413
- }
414
- function __classPrivateFieldIn(state, receiver) {
415
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
416
- throw new TypeError("Cannot use 'in' operator on non-object");
417
- return typeof state === "function" ? receiver === state : state.has(receiver);
418
- }
419
- function __addDisposableResource(env, value, async) {
420
- if (value !== null && value !== void 0) {
421
- if (typeof value !== "object" && typeof value !== "function")
422
- throw new TypeError("Object expected.");
423
- var dispose;
424
- if (async) {
425
- if (!Symbol.asyncDispose)
426
- throw new TypeError("Symbol.asyncDispose is not defined.");
427
- dispose = value[Symbol.asyncDispose];
428
- }
429
- if (dispose === void 0) {
430
- if (!Symbol.dispose)
431
- throw new TypeError("Symbol.dispose is not defined.");
432
- dispose = value[Symbol.dispose];
433
- }
434
- if (typeof dispose !== "function")
435
- throw new TypeError("Object not disposable.");
436
- env.stack.push({ value: value, dispose: dispose, async: async });
437
- }
438
- else if (async) {
439
- env.stack.push({ async: true });
440
- }
441
- return value;
442
- }
443
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
444
- var e = new Error(message);
445
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
446
- };
447
- function __disposeResources(env) {
448
- function fail(e) {
449
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
450
- env.hasError = true;
451
- }
452
- function next() {
453
- while (env.stack.length) {
454
- var rec = env.stack.pop();
455
- try {
456
- var result = rec.dispose && rec.dispose.call(rec.value);
457
- if (rec.async)
458
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
459
- }
460
- catch (e) {
461
- fail(e);
462
- }
463
- }
464
- if (env.hasError)
465
- throw env.error;
466
- }
467
- return next();
468
- }
469
- var tslib_es6 = {
470
- __extends: __extends,
471
- __assign: __assign,
472
- __rest: __rest,
473
- __decorate: __decorate,
474
- __param: __param,
475
- __metadata: __metadata,
476
- __awaiter: __awaiter,
477
- __generator: __generator,
478
- __createBinding: __createBinding,
479
- __exportStar: __exportStar,
480
- __values: __values,
481
- __read: __read,
482
- __spread: __spread,
483
- __spreadArrays: __spreadArrays,
484
- __spreadArray: __spreadArray,
485
- __await: __await,
486
- __asyncGenerator: __asyncGenerator,
487
- __asyncDelegator: __asyncDelegator,
488
- __asyncValues: __asyncValues,
489
- __makeTemplateObject: __makeTemplateObject,
490
- __importStar: __importStar,
491
- __importDefault: __importDefault,
492
- __classPrivateFieldGet: __classPrivateFieldGet,
493
- __classPrivateFieldSet: __classPrivateFieldSet,
494
- __classPrivateFieldIn: __classPrivateFieldIn,
495
- __addDisposableResource: __addDisposableResource,
496
- __disposeResources: __disposeResources,
497
- };
41
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
+ PERFORMANCE OF THIS SOFTWARE.
48
+ ***************************************************************************** */
49
+ /* global Reflect, Promise */
50
+ var extendStatics = function (d, b) {
51
+ extendStatics = Object.setPrototypeOf ||
52
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
+ function (d, b) { for (var p in b)
54
+ if (Object.prototype.hasOwnProperty.call(b, p))
55
+ d[p] = b[p]; };
56
+ return extendStatics(d, b);
57
+ };
58
+ function __extends(d, b) {
59
+ if (typeof b !== "function" && b !== null)
60
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
+ extendStatics(d, b);
62
+ function __() { this.constructor = d; }
63
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
+ }
65
+ var __assign = function () {
66
+ __assign = Object.assign || function __assign(t) {
67
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
68
+ s = arguments[i];
69
+ for (var p in s)
70
+ if (Object.prototype.hasOwnProperty.call(s, p))
71
+ t[p] = s[p];
72
+ }
73
+ return t;
74
+ };
75
+ return __assign.apply(this, arguments);
76
+ };
77
+ function __rest(s, e) {
78
+ var t = {};
79
+ for (var p in s)
80
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
+ t[p] = s[p];
82
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
+ t[p[i]] = s[p[i]];
86
+ }
87
+ return t;
88
+ }
89
+ function __decorate(decorators, target, key, desc) {
90
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
+ r = Reflect.decorate(decorators, target, key, desc);
93
+ else
94
+ for (var i = decorators.length - 1; i >= 0; i--)
95
+ if (d = decorators[i])
96
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
98
+ }
99
+ function __param(paramIndex, decorator) {
100
+ return function (target, key) { decorator(target, key, paramIndex); };
101
+ }
102
+ function __metadata(metadataKey, metadataValue) {
103
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
104
+ return Reflect.metadata(metadataKey, metadataValue);
105
+ }
106
+ function __awaiter(thisArg, _arguments, P, generator) {
107
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108
+ return new (P || (P = Promise))(function (resolve, reject) {
109
+ function fulfilled(value) { try {
110
+ step(generator.next(value));
111
+ }
112
+ catch (e) {
113
+ reject(e);
114
+ } }
115
+ function rejected(value) { try {
116
+ step(generator["throw"](value));
117
+ }
118
+ catch (e) {
119
+ reject(e);
120
+ } }
121
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
122
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
123
+ });
124
+ }
125
+ function __generator(thisArg, body) {
126
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
127
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
128
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
129
+ function verb(n) { return function (v) { return step([n, v]); }; }
130
+ function step(op) {
131
+ if (f)
132
+ throw new TypeError("Generator is already executing.");
133
+ while (_)
134
+ try {
135
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
136
+ return t;
137
+ if (y = 0, t)
138
+ op = [op[0] & 2, t.value];
139
+ switch (op[0]) {
140
+ case 0:
141
+ case 1:
142
+ t = op;
143
+ break;
144
+ case 4:
145
+ _.label++;
146
+ return { value: op[1], done: false };
147
+ case 5:
148
+ _.label++;
149
+ y = op[1];
150
+ op = [0];
151
+ continue;
152
+ case 7:
153
+ op = _.ops.pop();
154
+ _.trys.pop();
155
+ continue;
156
+ default:
157
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
158
+ _ = 0;
159
+ continue;
160
+ }
161
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
162
+ _.label = op[1];
163
+ break;
164
+ }
165
+ if (op[0] === 6 && _.label < t[1]) {
166
+ _.label = t[1];
167
+ t = op;
168
+ break;
169
+ }
170
+ if (t && _.label < t[2]) {
171
+ _.label = t[2];
172
+ _.ops.push(op);
173
+ break;
174
+ }
175
+ if (t[2])
176
+ _.ops.pop();
177
+ _.trys.pop();
178
+ continue;
179
+ }
180
+ op = body.call(thisArg, _);
181
+ }
182
+ catch (e) {
183
+ op = [6, e];
184
+ y = 0;
185
+ }
186
+ finally {
187
+ f = t = 0;
188
+ }
189
+ if (op[0] & 5)
190
+ throw op[1];
191
+ return { value: op[0] ? op[1] : void 0, done: true };
192
+ }
193
+ }
194
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
195
+ if (k2 === undefined)
196
+ k2 = k;
197
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
198
+ }) : (function (o, m, k, k2) {
199
+ if (k2 === undefined)
200
+ k2 = k;
201
+ o[k2] = m[k];
202
+ });
203
+ function __exportStar(m, o) {
204
+ for (var p in m)
205
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
+ __createBinding(o, m, p);
207
+ }
208
+ function __values(o) {
209
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
+ if (m)
211
+ return m.call(o);
212
+ if (o && typeof o.length === "number")
213
+ return {
214
+ next: function () {
215
+ if (o && i >= o.length)
216
+ o = void 0;
217
+ return { value: o && o[i++], done: !o };
218
+ }
219
+ };
220
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
+ }
222
+ function __read(o, n) {
223
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
224
+ if (!m)
225
+ return o;
226
+ var i = m.call(o), r, ar = [], e;
227
+ try {
228
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
+ ar.push(r.value);
230
+ }
231
+ catch (error) {
232
+ e = { error: error };
233
+ }
234
+ finally {
235
+ try {
236
+ if (r && !r.done && (m = i["return"]))
237
+ m.call(i);
238
+ }
239
+ finally {
240
+ if (e)
241
+ throw e.error;
242
+ }
243
+ }
244
+ return ar;
245
+ }
246
+ /** @deprecated */
247
+ function __spread() {
248
+ for (var ar = [], i = 0; i < arguments.length; i++)
249
+ ar = ar.concat(__read(arguments[i]));
250
+ return ar;
251
+ }
252
+ /** @deprecated */
253
+ function __spreadArrays() {
254
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
+ s += arguments[i].length;
256
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
+ r[k] = a[j];
259
+ return r;
260
+ }
261
+ function __spreadArray(to, from, pack) {
262
+ if (pack || arguments.length === 2)
263
+ for (var i = 0, l = from.length, ar; i < l; i++) {
264
+ if (ar || !(i in from)) {
265
+ if (!ar)
266
+ ar = Array.prototype.slice.call(from, 0, i);
267
+ ar[i] = from[i];
268
+ }
269
+ }
270
+ return to.concat(ar || from);
271
+ }
272
+ function __await(v) {
273
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
274
+ }
275
+ function __asyncGenerator(thisArg, _arguments, generator) {
276
+ if (!Symbol.asyncIterator)
277
+ throw new TypeError("Symbol.asyncIterator is not defined.");
278
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
+ function verb(n) { if (g[n])
281
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
+ function resume(n, v) { try {
283
+ step(g[n](v));
284
+ }
285
+ catch (e) {
286
+ settle(q[0][3], e);
287
+ } }
288
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
+ function fulfill(value) { resume("next", value); }
290
+ function reject(value) { resume("throw", value); }
291
+ function settle(f, v) { if (f(v), q.shift(), q.length)
292
+ resume(q[0][0], q[0][1]); }
293
+ }
294
+ function __asyncDelegator(o) {
295
+ var i, p;
296
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
298
+ }
299
+ function __asyncValues(o) {
300
+ if (!Symbol.asyncIterator)
301
+ throw new TypeError("Symbol.asyncIterator is not defined.");
302
+ var m = o[Symbol.asyncIterator], i;
303
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
304
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
305
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
+ }
307
+ function __makeTemplateObject(cooked, raw) {
308
+ if (Object.defineProperty) {
309
+ Object.defineProperty(cooked, "raw", { value: raw });
310
+ }
311
+ else {
312
+ cooked.raw = raw;
313
+ }
314
+ return cooked;
315
+ }
316
+ ;
317
+ var __setModuleDefault = Object.create ? (function (o, v) {
318
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
319
+ }) : function (o, v) {
320
+ o["default"] = v;
321
+ };
322
+ function __importStar(mod) {
323
+ if (mod && mod.__esModule)
324
+ return mod;
325
+ var result = {};
326
+ if (mod != null)
327
+ for (var k in mod)
328
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
+ __createBinding(result, mod, k);
330
+ __setModuleDefault(result, mod);
331
+ return result;
332
+ }
333
+ function __importDefault(mod) {
334
+ return (mod && mod.__esModule) ? mod : { default: mod };
335
+ }
336
+ function __classPrivateFieldGet(receiver, state, kind, f) {
337
+ if (kind === "a" && !f)
338
+ throw new TypeError("Private accessor was defined without a getter");
339
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
+ }
343
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
+ if (kind === "m")
345
+ throw new TypeError("Private method is not writable");
346
+ if (kind === "a" && !f)
347
+ throw new TypeError("Private accessor was defined without a setter");
348
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
351
+ }
498
352
 
499
- var TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = Object.assign(Object.assign({}, inputCard.TUI_INPUT_CARD_DEFAULT_OPTIONS), { cardValidator: constants.tuiDefaultCardValidator, exampleText: "0000 0000 0000 0000", exampleTextCVC: "000" });
500
- var TUI_INPUT_CARD_GROUPED_OPTIONS = i3.tuiCreateToken(TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
501
- function tuiInputCardGroupedOptionsProvider(options) {
502
- return i3.tuiProvideOptions(TUI_INPUT_CARD_GROUPED_OPTIONS, options, TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
503
- }
353
+ var TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = Object.assign(Object.assign({}, inputCard.TUI_INPUT_CARD_DEFAULT_OPTIONS), { cardValidator: constants.tuiDefaultCardValidator, exampleText: '0000 0000 0000 0000', exampleTextCVC: '000' });
354
+ var TUI_INPUT_CARD_GROUPED_OPTIONS = i3.tuiCreateToken(TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
355
+ function tuiInputCardGroupedOptionsProvider(options) {
356
+ return i3.tuiProvideOptions(TUI_INPUT_CARD_GROUPED_OPTIONS, options, TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
357
+ }
504
358
 
505
- /**
506
- * InputCardGrouped texts
507
- */
508
- var TUI_INPUT_CARD_GROUPED_TEXTS = i3.tuiCreateTokenFromFactory(function () {
509
- var win = i0.inject(common.WINDOW);
510
- var cardNumberTexts = i0.inject(tokens.TUI_CARD_NUMBER_TEXTS);
511
- var expiryTexts = i0.inject(tokens.TUI_CARD_EXPIRY_TEXTS);
512
- var cvcTexts = i0.inject(tokens.TUI_CARD_CVC_TEXTS);
513
- var desktopSmall = i0.inject(i1.TUI_MEDIA).desktopSmall;
514
- var media = win.matchMedia("screen and (min-width: " + (desktopSmall - 1) / 16 + "em)");
515
- return i3.tuiTypedFromEvent(media, "change").pipe(operators.startWith(null), operators.switchMap(function () { return i8.combineLatest([
516
- i8.of(Number(media.matches)),
517
- cardNumberTexts,
518
- expiryTexts,
519
- cvcTexts,
520
- ]); }), operators.map(function (_a) {
521
- var _b = __read(_a, 4), index = _b[0], cardNumber = _b[1], expiry = _b[2], cvcTexts = _b[3];
522
- return ({
523
- cardNumberText: cardNumber[index],
524
- expiryText: expiry[index],
525
- cvcText: cvcTexts[index],
526
- });
527
- }));
528
- });
359
+ /**
360
+ * InputCardGrouped texts
361
+ */
362
+ var TUI_INPUT_CARD_GROUPED_TEXTS = i3.tuiCreateTokenFromFactory(function () {
363
+ var win = i0.inject(common.WINDOW);
364
+ var cardNumberTexts = i0.inject(tokens.TUI_CARD_NUMBER_TEXTS);
365
+ var expiryTexts = i0.inject(tokens.TUI_CARD_EXPIRY_TEXTS);
366
+ var cvcTexts = i0.inject(tokens.TUI_CARD_CVC_TEXTS);
367
+ var desktopSmall = i0.inject(i1.TUI_MEDIA).desktopSmall;
368
+ var media = win.matchMedia("screen and (min-width: " + (desktopSmall - 1) / 16 + "em)");
369
+ return i3.tuiTypedFromEvent(media, 'change').pipe(operators.startWith(null), operators.switchMap(function () { return i8.combineLatest([
370
+ i8.of(Number(media.matches)),
371
+ cardNumberTexts,
372
+ expiryTexts,
373
+ cvcTexts,
374
+ ]); }), operators.map(function (_a) {
375
+ var _b = __read(_a, 4), index = _b[0], cardNumber = _b[1], expiry = _b[2], cvcTexts = _b[3];
376
+ return ({
377
+ cardNumberText: cardNumber[index],
378
+ expiryText: expiry[index],
379
+ cvcText: cvcTexts[index],
380
+ });
381
+ }));
382
+ });
529
383
 
530
- var EXPIRE_COMPLETE_LENGTH = 5; // MM/YY
531
- var TuiInputCardGroupedComponent = /** @class */ (function (_super) {
532
- __extends(TuiInputCardGroupedComponent, _super);
533
- function TuiInputCardGroupedComponent(control, cdr, el, mode$, cardGroupedTexts$, controller, icons, arrowOptions, options) {
534
- var _this = _super.call(this, control, cdr, options) || this;
535
- _this.el = el;
536
- _this.mode$ = mode$;
537
- _this.cardGroupedTexts$ = cardGroupedTexts$;
538
- _this.controller = controller;
539
- _this.icons = icons;
540
- _this.arrowOptions = arrowOptions;
541
- _this.expireInert = false;
542
- _this.exampleText = _this.options.exampleText;
543
- _this.cardValidator = _this.options.cardValidator;
544
- _this.autofilledChange = new i0.EventEmitter();
545
- _this.exampleTextCVC = _this.options.exampleTextCVC;
546
- _this.maskCVC = {
547
- mask: new Array(3).fill(i1.TUI_DIGIT_REGEXP),
548
- };
549
- _this.maskCard = {
550
- mask: constants.TUI_CARD_MASK,
551
- };
552
- _this.maskExpire = kit.maskitoDateOptionsGenerator({
553
- mode: 'mm/yy',
554
- separator: '/',
555
- });
556
- _this.open = false;
557
- return _this;
558
- }
559
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "codeLength", {
560
- set: function (length) {
561
- this.exampleTextCVC = '0'.repeat(length);
562
- this.maskCVC = {
563
- mask: new Array(length).fill(i1.TUI_DIGIT_REGEXP),
564
- };
565
- },
566
- enumerable: false,
567
- configurable: true
568
- });
569
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "nativeFocusableElement", {
570
- get: function () {
571
- var _a, _b;
572
- return (_b = (_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
573
- },
574
- enumerable: false,
575
- configurable: true
576
- });
577
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "focused", {
578
- get: function () {
579
- return this.open || i3.tuiIsNativeFocusedIn(this.el.nativeElement);
580
- },
581
- enumerable: false,
582
- configurable: true
583
- });
584
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "appearance", {
585
- get: function () {
586
- return this.controller.appearance;
587
- },
588
- enumerable: false,
589
- configurable: true
590
- });
591
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "card", {
592
- get: function () {
593
- var _a;
594
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || '';
595
- },
596
- enumerable: false,
597
- configurable: true
598
- });
599
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expire", {
600
- get: function () {
601
- var _a;
602
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || '';
603
- },
604
- enumerable: false,
605
- configurable: true
606
- });
607
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvc", {
608
- get: function () {
609
- var _a;
610
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || '';
611
- },
612
- enumerable: false,
613
- configurable: true
614
- });
615
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCleaner", {
616
- get: function () {
617
- var _a, _b;
618
- return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim()) && !this.readOnly && !this.computedDisabled;
619
- },
620
- enumerable: false,
621
- configurable: true
622
- });
623
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasDropdown", {
624
- get: function () {
625
- return !!this.dropdown;
626
- },
627
- enumerable: false,
628
- configurable: true
629
- });
630
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "placeholderRaised", {
631
- get: function () {
632
- return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
633
- },
634
- enumerable: false,
635
- configurable: true
636
- });
637
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCardNumber", {
638
- get: function () {
639
- var _a, _b;
640
- return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
641
- },
642
- enumerable: false,
643
- configurable: true
644
- });
645
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCard", {
646
- get: function () {
647
- return this.id + "_card";
648
- },
649
- enumerable: false,
650
- configurable: true
651
- });
652
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idExpire", {
653
- get: function () {
654
- return this.id + "_expire";
655
- },
656
- enumerable: false,
657
- configurable: true
658
- });
659
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCVC", {
660
- get: function () {
661
- return this.id + "_cvc";
662
- },
663
- enumerable: false,
664
- configurable: true
665
- });
666
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "isCardCollapsed", {
667
- get: function () {
668
- return this.isFocusable(this.card) && !this.cardFocused;
669
- },
670
- enumerable: false,
671
- configurable: true
672
- });
673
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteExpire", {
674
- get: function () {
675
- return this.autocompleteEnabled ? 'cc-exp' : 'off';
676
- },
677
- enumerable: false,
678
- configurable: true
679
- });
680
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCVC", {
681
- get: function () {
682
- return this.autocompleteEnabled ? 'cc-csc' : 'off';
683
- },
684
- enumerable: false,
685
- configurable: true
686
- });
687
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "tailLength", {
688
- get: function () {
689
- return this.hasExtraSpace ? 5 : 4;
690
- },
691
- enumerable: false,
692
- configurable: true
693
- });
694
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "name", {
695
- // Safari expiration date autofill workaround
696
- get: function () {
697
- return this.autocompleteEnabled ? 'ccexpiryyear' : null;
698
- },
699
- enumerable: false,
700
- configurable: true
701
- });
702
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardPrefilled", {
703
- get: function () {
704
- return !!this.card.match(i1.TUI_NON_DIGIT_REGEXP);
705
- },
706
- enumerable: false,
707
- configurable: true
708
- });
709
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcPrefilled", {
710
- get: function () {
711
- return !!this.cvc.match(i1.TUI_NON_DIGIT_REGEXP);
712
- },
713
- enumerable: false,
714
- configurable: true
715
- });
716
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocusable", {
717
- get: function () {
718
- return this.focusable && !this.cardPrefilled;
719
- },
720
- enumerable: false,
721
- configurable: true
722
- });
723
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireFocusable", {
724
- get: function () {
725
- return this.isFocusable(this.card) && !this.expireInert;
726
- },
727
- enumerable: false,
728
- configurable: true
729
- });
730
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcFocusable", {
731
- get: function () {
732
- return this.isFocusable(this.card);
733
- },
734
- enumerable: false,
735
- configurable: true
736
- });
737
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "masked", {
738
- get: function () {
739
- return this.cardPrefilled ? "*" + this.card.slice(-4) : '*';
740
- },
741
- enumerable: false,
742
- configurable: true
743
- });
744
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireSelectionStart", {
745
- get: function () {
746
- var _a;
747
- return ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement.selectionStart) || 0;
748
- },
749
- enumerable: false,
750
- configurable: true
751
- });
752
- TuiInputCardGroupedComponent.prototype.onEsc = function () {
753
- this.open = false;
754
- };
755
- TuiInputCardGroupedComponent.prototype.onArrow = function (element, step) {
756
- var _a;
757
- this.open = this.hasDropdown;
758
- this.cdr.detectChanges();
759
- (_a = this.datalist) === null || _a === void 0 ? void 0 : _a.onKeyDownArrow(element, step);
760
- };
761
- TuiInputCardGroupedComponent.prototype.handleOption = function (option) {
762
- var _a, _b;
763
- var _d = option.card, card = _d === void 0 ? '' : _d, _e = option.expire, expire = _e === void 0 ? '' : _e, _f = option.cvc, cvc = _f === void 0 ? '' : _f;
764
- var bin = this.bin;
765
- var element = (!expire && ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement)) || ((_b = this.inputCVC) === null || _b === void 0 ? void 0 : _b.nativeElement);
766
- this.value = { card: card, expire: expire, cvc: cvc };
767
- this.updateBin(bin);
768
- this.open = false;
769
- this.expireInert = !!expire;
770
- element === null || element === void 0 ? void 0 : element.focus();
771
- };
772
- TuiInputCardGroupedComponent.prototype.onCardChange = function (card) {
773
- var _d = this, value = _d.value, bin = _d.bin;
774
- var parsed = card.split(' ').join('');
775
- if (value && value.card === parsed) {
776
- return;
777
- }
778
- this.updateProperty(parsed, 'card');
779
- this.updateBin(bin);
780
- if (this.cardValidator(this.card) && !this.expire && this.inputExpire) {
781
- this.focusExpire();
782
- }
783
- };
784
- TuiInputCardGroupedComponent.prototype.onExpireChange = function (expire) {
785
- this.updateProperty(expire, 'expire');
786
- if (expire.length === EXPIRE_COMPLETE_LENGTH &&
787
- this.expireSelectionStart >= EXPIRE_COMPLETE_LENGTH) {
788
- this.focusCVC();
789
- }
790
- };
791
- TuiInputCardGroupedComponent.prototype.onCVCChange = function (cvc) {
792
- this.updateProperty(cvc, 'cvc');
793
- };
794
- TuiInputCardGroupedComponent.prototype.transform = function (_d) {
795
- var offsetWidth = _d.offsetWidth;
796
- return this.isCardCollapsed ? "translate3d(" + offsetWidth + "px, 0, 0)" : '';
797
- };
798
- TuiInputCardGroupedComponent.prototype.onActiveZoneChange = function (active) {
799
- this.updateFocused(active);
800
- this.open = active && this.open;
801
- };
802
- TuiInputCardGroupedComponent.prototype.onMouseDown = function (event) {
803
- if (i3.tuiIsElement(event.target) && i3.tuiIsInput(event.target)) {
804
- return;
805
- }
806
- event.preventDefault();
807
- this.focusInput();
808
- };
809
- TuiInputCardGroupedComponent.prototype.onScroll = function (_d) {
810
- var currentTarget = _d.currentTarget;
811
- if (i3.tuiIsElement(currentTarget)) {
812
- currentTarget.scrollLeft = 0;
813
- }
814
- };
815
- TuiInputCardGroupedComponent.prototype.clear = function () {
816
- this.expireInert = false;
817
- this.value = null;
818
- this.focusCard();
819
- };
820
- TuiInputCardGroupedComponent.prototype.toggle = function () {
821
- this.open = !this.open;
822
- };
823
- TuiInputCardGroupedComponent.prototype.writeValue = function (value) {
824
- var bin = this.bin;
825
- _super.prototype.writeValue.call(this, value);
826
- this.updateBin(bin);
827
- this.expireInert = !!this.expire && this.cardPrefilled;
828
- };
829
- /** Public API for manual focus management */
830
- TuiInputCardGroupedComponent.prototype.focusCard = function () {
831
- var _a;
832
- (_a = this.cardNumberAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
833
- };
834
- TuiInputCardGroupedComponent.prototype.focusExpire = function () {
835
- var _a;
836
- (_a = this.expireCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
837
- };
838
- TuiInputCardGroupedComponent.prototype.focusCVC = function () {
839
- var _a;
840
- (_a = this.cvcCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
841
- };
842
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocused", {
843
- get: function () {
844
- return !!this.inputCard && i3.tuiIsNativeFocused(this.inputCard.nativeElement);
845
- },
846
- enumerable: false,
847
- configurable: true
848
- });
849
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasExtraSpace", {
850
- get: function () {
851
- return this.card.length % 4 > 0;
852
- },
853
- enumerable: false,
854
- configurable: true
855
- });
856
- TuiInputCardGroupedComponent.prototype.isFocusable = function (card) {
857
- return this.focusable && (this.cardValidator(card) || this.cardPrefilled);
858
- };
859
- TuiInputCardGroupedComponent.prototype.updateBin = function (oldBin) {
860
- var bin = this.bin;
861
- if (bin !== oldBin && !this.cardPrefilled) {
862
- this.binChange.emit(bin);
863
- }
864
- };
865
- TuiInputCardGroupedComponent.prototype.updateProperty = function (value, propName) {
866
- var _d = this.value || {}, _e = _d.card, card = _e === void 0 ? '' : _e, _f = _d.expire, expire = _f === void 0 ? '' : _f, _g = _d.cvc, cvc = _g === void 0 ? '' : _g;
867
- var newValue = { card: card, expire: expire, cvc: cvc };
868
- newValue[propName] = value;
869
- this.value = newValue.expire || newValue.cvc || newValue.card ? newValue : null;
870
- };
871
- TuiInputCardGroupedComponent.prototype.focusInput = function () {
872
- var _a, _b, _c;
873
- var element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
874
- (this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
875
- ((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
876
- element === null || element === void 0 ? void 0 : element.focus();
877
- };
878
- return TuiInputCardGroupedComponent;
879
- }(inputCard.AbstractTuiInputCard));
880
- TuiInputCardGroupedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TUI_MODE }, { token: TUI_INPUT_CARD_GROUPED_TEXTS }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i1.TUI_COMMON_ICONS }, { token: kit$1.TUI_ARROW_OPTIONS }, { token: TUI_INPUT_CARD_GROUPED_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
881
- TuiInputCardGroupedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCardGroupedComponent, selector: "tui-input-card-grouped", inputs: { exampleText: "exampleText", cardValidator: "cardValidator", codeLength: "codeLength" }, outputs: { autofilledChange: "autofilledChange" }, host: { attributes: { "data-size": "l" }, listeners: { "$.data-mode.attr": "mode$", "keydown.esc": "onEsc()", "keydown.arrowDown.prevent": "onArrow($event.target,1)", "keydown.arrowUp.prevent": "onArrow($event.target,-1)" } }, providers: [
882
- i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
883
- i3.tuiAsControl(TuiInputCardGroupedComponent),
884
- i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
885
- i1.MODE_PROVIDER,
886
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
887
- ], queries: [{ propertyName: "dropdown", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListComponent, descendants: true }], viewQueries: [{ propertyName: "inputCard", first: true, predicate: ["inputCard"], descendants: true }, { propertyName: "cardNumberAutofocusRef", first: true, predicate: ["inputCard"], descendants: true, read: i3.TuiAutoFocusDirective }, { propertyName: "inputExpire", first: true, predicate: ["inputExpire"], descendants: true }, { propertyName: "expireCardAutofocusRef", first: true, predicate: ["inputExpire"], descendants: true, read: i3.TuiAutoFocusDirective }, { propertyName: "inputCVC", first: true, predicate: ["inputCVC"], descendants: true }, { propertyName: "cvcCardAutofocusRef", first: true, predicate: ["inputCVC"], descendants: true, read: i3.TuiAutoFocusDirective }], usesInheritance: true, ngImport: i0__namespace, template: "<div\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n tuiDropdownLimitWidth=\"fixed\"\n tuiWrapper\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown || ''\"\n [tuiDropdownManual]=\"open\"\n (mousedown)=\"onMouseDown($event)\"\n (scroll)=\"onScroll($event)\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n>\n <div class=\"t-wrapper\">\n <label\n *tuiLet=\"value?.card | tuiFormatCard: cardPrefilled as formattedCard\"\n tuiPreventDefault=\"click\"\n >\n <input\n #inputCard\n automation-id=\"tui-input-card-grouped__card\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input t-input_card\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [attr.id]=\"idCard\"\n [autocomplete]=\"autocompleteCard\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [class.t-input_inert]=\"cardPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCard\"\n [ngModel]=\"formattedCard\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cardFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCardChange($event)\"\n />\n <span\n aria-hidden=\"true\"\n translate=\"no\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n (tuiResize)=\"(0)\"\n >\n <span\n #ghost\n class=\"t-ghost\"\n [textContent]=\"formattedCard.slice(-tailLength)\"\n ></span>\n\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [style.transform]=\"transform(ghost)\"\n >\n {{ formattedCard }}\n </span>\n </span>\n </span>\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cardNumberText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_expire\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputExpire\n automation-id=\"tui-input-card-grouped__expire\"\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n class=\"t-input\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [class.t-input_inert]=\"!expireFocusable\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskExpire\"\n [ngModel]=\"expire\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"expireFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onExpireChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.expiryText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_cvc\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputCVC\n automation-id=\"tui-input-card-grouped__cvc\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input\"\n [attr.id]=\"idCVC\"\n [autocomplete]=\"autocompleteCVC\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCVC\"\n [ngModel]=\"cvc\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cvcFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCVCChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cvcText }}\n </span>\n </label>\n </div>\n <div class=\"t-icons\">\n <div\n *ngIf=\"icon\"\n class=\"t-icon-outlet\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as text\"\n automation-id=\"tui-input-card-grouped__icon\"\n class=\"t-card\"\n [src]=\"text\"\n ></tui-svg>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__cleaner\"\n tuiWrapper\n class=\"t-icon\"\n [src]=\"icons.close\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__dropdown\"\n tuiWrapper\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n [src]=\"arrowOptions.iconLarge\"\n (click)=\"toggle()\"\n ></tui-svg>\n </div>\n</div>\n", styles: [":host{display:block;height:var(--tui-height-l);width:29.5rem;border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{--tui-autofill: var(--tui-autofill-night)}:host :host-context(tui-root._mobile){width:18rem}.t-outline{height:100%;width:100%}.t-common-wrapper{position:relative;height:100%;width:100%;overflow:hidden}.t-wrapper{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;width:100%;height:100%}.t-wrapper_cvc{margin-left:7.1875rem;transform:translate(100%)}:host-context(tui-root._mobile) .t-wrapper_cvc{margin-left:4.0625rem}.t-wrapper_expire{transform:translate(100%)}.t-wrapper_active{transform:translate(6.5625rem)}:host-context(tui-root._mobile) .t-wrapper_active{transform:translate(4.125rem)}.t-card{width:2rem;height:2rem;margin-right:.5rem;color:#1434cb}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;border:0;padding:0 0 0 1rem;line-height:2.25rem;pointer-events:none}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:hover,.t-collapsed:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-collapsed::-webkit-caps-lock-indicator,.t-collapsed::-webkit-contacts-auto-fill-button,.t-collapsed::-webkit-credit-card-auto-fill-button,.t-collapsed::-webkit-credentials-auto-fill-button,.t-collapsed::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-collapsed::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-collapsed::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-collapsed::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:hover,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:focus,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-collapsed::placeholder,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._disabled),.t-collapsed :host-context(tui-textarea._disabled),.t-collapsed :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-collapsed_enable-mask:before{content:attr(data-before)}.t-collapsed_enable-mask .t-collapsed-wrapper{left:1.375rem}.t-collapsed-wrapper{position:absolute;top:0;display:block;width:100%;height:100%;overflow:hidden}.t-value{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate(100%)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border:0;padding:0 1rem}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-input::placeholder{color:var(--tui-text-03);opacity:1}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input.t-input.t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden),.t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,.t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill{caret-color:var(--tui-base-09);color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input_inert{pointer-events:none}.t-icons{position:absolute;right:.75rem;display:flex;align-items:center;height:100%}.t-icon-outlet{display:flex}.t-icon{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-icon,:host._disabled .t-icon{pointer-events:none}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-ghost{visibility:hidden}\n"], components: [{ type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i1__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i1__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i1__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i1__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }, { type: i4__namespace.MaskitoCva, selector: "input[maskito], textarea[maskito]", inputs: ["maskito"] }, { type: i5__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { type: i3__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i3__namespace.TuiResizeDirective, selector: "[tuiResize]", outputs: ["tuiResize"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i2__namespace.AsyncPipe, "tuiFormatCard": i7__namespace.TuiFormatCardPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
888
- __decorate([
889
- i3.tuiPure
890
- ], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
891
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, decorators: [{
892
- type: i0.Component,
893
- args: [{
894
- selector: 'tui-input-card-grouped',
895
- templateUrl: './input-card-grouped.template.html',
896
- styleUrls: ['./input-card-grouped.style.less'],
897
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
898
- providers: [
899
- i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
900
- i3.tuiAsControl(TuiInputCardGroupedComponent),
901
- i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
902
- i1.MODE_PROVIDER,
903
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
904
- ],
905
- host: {
906
- '($.data-mode.attr)': 'mode$',
907
- 'data-size': 'l',
908
- },
909
- }]
910
- }], ctorParameters: function () {
911
- return [{ type: i5__namespace.NgControl, decorators: [{
912
- type: i0.Optional
913
- }, {
914
- type: i0.Self
915
- }, {
916
- type: i0.Inject,
917
- args: [i5.NgControl]
918
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
919
- type: i0.Inject,
920
- args: [i0.ChangeDetectorRef]
921
- }] }, { type: i0__namespace.ElementRef, decorators: [{
922
- type: i0.Inject,
923
- args: [i0.ElementRef]
924
- }] }, { type: i8__namespace.Observable, decorators: [{
925
- type: i0.Inject,
926
- args: [i1.TUI_MODE]
927
- }] }, { type: i8__namespace.Observable, decorators: [{
928
- type: i0.Inject,
929
- args: [TUI_INPUT_CARD_GROUPED_TEXTS]
930
- }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
931
- type: i0.Inject,
932
- args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
933
- }] }, { type: undefined, decorators: [{
934
- type: i0.Inject,
935
- args: [i1.TUI_COMMON_ICONS]
936
- }] }, { type: undefined, decorators: [{
937
- type: i0.Inject,
938
- args: [kit$1.TUI_ARROW_OPTIONS]
939
- }] }, { type: undefined, decorators: [{
940
- type: i0.Inject,
941
- args: [TUI_INPUT_CARD_GROUPED_OPTIONS]
942
- }] }];
943
- }, propDecorators: { inputCard: [{
944
- type: i0.ViewChild,
945
- args: ['inputCard']
946
- }], cardNumberAutofocusRef: [{
947
- type: i0.ViewChild,
948
- args: ['inputCard', { read: i3.TuiAutoFocusDirective }]
949
- }], inputExpire: [{
950
- type: i0.ViewChild,
951
- args: ['inputExpire']
952
- }], expireCardAutofocusRef: [{
953
- type: i0.ViewChild,
954
- args: ['inputExpire', { read: i3.TuiAutoFocusDirective }]
955
- }], inputCVC: [{
956
- type: i0.ViewChild,
957
- args: ['inputCVC']
958
- }], cvcCardAutofocusRef: [{
959
- type: i0.ViewChild,
960
- args: ['inputCVC', { read: i3.TuiAutoFocusDirective }]
961
- }], exampleText: [{
962
- type: i0.Input
963
- }], cardValidator: [{
964
- type: i0.Input
965
- }], codeLength: [{
966
- type: i0.Input
967
- }], autofilledChange: [{
968
- type: i0.Output
969
- }], dropdown: [{
970
- type: i0.ContentChild,
971
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
972
- }], datalist: [{
973
- type: i0.ContentChild,
974
- args: [i1.TuiDataListComponent]
975
- }], onEsc: [{
976
- type: i0.HostListener,
977
- args: ['keydown.esc']
978
- }], onArrow: [{
979
- type: i0.HostListener,
980
- args: ['keydown.arrowDown.prevent', ['$event.target', '1']]
981
- }, {
982
- type: i0.HostListener,
983
- args: ['keydown.arrowUp.prevent', ['$event.target', '-1']]
984
- }], isFocusable: [] } });
384
+ var EXPIRE_COMPLETE_LENGTH = 5; // MM/YY
385
+ var TuiInputCardGroupedComponent = /** @class */ (function (_super) {
386
+ __extends(TuiInputCardGroupedComponent, _super);
387
+ function TuiInputCardGroupedComponent(control, cdr, el, mode$, cardGroupedTexts$, controller, icons, arrowOptions, options) {
388
+ var _this = _super.call(this, control, cdr, options) || this;
389
+ _this.el = el;
390
+ _this.mode$ = mode$;
391
+ _this.cardGroupedTexts$ = cardGroupedTexts$;
392
+ _this.controller = controller;
393
+ _this.icons = icons;
394
+ _this.arrowOptions = arrowOptions;
395
+ _this.expireInert = false;
396
+ _this.exampleText = _this.options.exampleText;
397
+ _this.cardValidator = _this.options.cardValidator;
398
+ _this.autofilledChange = new i0.EventEmitter();
399
+ _this.exampleTextCVC = _this.options.exampleTextCVC;
400
+ _this.maskCVC = {
401
+ mask: new Array(3).fill(i1.TUI_DIGIT_REGEXP),
402
+ };
403
+ _this.maskCard = {
404
+ mask: constants.TUI_CARD_MASK,
405
+ };
406
+ _this.maskExpire = kit.maskitoDateOptionsGenerator({
407
+ mode: 'mm/yy',
408
+ separator: '/',
409
+ });
410
+ _this.open = false;
411
+ return _this;
412
+ }
413
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "codeLength", {
414
+ set: function (length) {
415
+ this.exampleTextCVC = '0'.repeat(length);
416
+ this.maskCVC = {
417
+ mask: new Array(length).fill(i1.TUI_DIGIT_REGEXP),
418
+ };
419
+ },
420
+ enumerable: false,
421
+ configurable: true
422
+ });
423
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "nativeFocusableElement", {
424
+ get: function () {
425
+ var _a, _b;
426
+ return (_b = (_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
427
+ },
428
+ enumerable: false,
429
+ configurable: true
430
+ });
431
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "focused", {
432
+ get: function () {
433
+ return this.open || i3.tuiIsNativeFocusedIn(this.el.nativeElement);
434
+ },
435
+ enumerable: false,
436
+ configurable: true
437
+ });
438
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "appearance", {
439
+ get: function () {
440
+ return this.controller.appearance;
441
+ },
442
+ enumerable: false,
443
+ configurable: true
444
+ });
445
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "card", {
446
+ get: function () {
447
+ var _a;
448
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || '';
449
+ },
450
+ enumerable: false,
451
+ configurable: true
452
+ });
453
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expire", {
454
+ get: function () {
455
+ var _a;
456
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || '';
457
+ },
458
+ enumerable: false,
459
+ configurable: true
460
+ });
461
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvc", {
462
+ get: function () {
463
+ var _a;
464
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || '';
465
+ },
466
+ enumerable: false,
467
+ configurable: true
468
+ });
469
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCleaner", {
470
+ get: function () {
471
+ var _a, _b;
472
+ return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim()) && !this.readOnly && !this.computedDisabled;
473
+ },
474
+ enumerable: false,
475
+ configurable: true
476
+ });
477
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasDropdown", {
478
+ get: function () {
479
+ return !!this.dropdown;
480
+ },
481
+ enumerable: false,
482
+ configurable: true
483
+ });
484
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "placeholderRaised", {
485
+ get: function () {
486
+ return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
487
+ },
488
+ enumerable: false,
489
+ configurable: true
490
+ });
491
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCardNumber", {
492
+ get: function () {
493
+ var _a, _b;
494
+ return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
495
+ },
496
+ enumerable: false,
497
+ configurable: true
498
+ });
499
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCard", {
500
+ get: function () {
501
+ return this.id + "_card";
502
+ },
503
+ enumerable: false,
504
+ configurable: true
505
+ });
506
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idExpire", {
507
+ get: function () {
508
+ return this.id + "_expire";
509
+ },
510
+ enumerable: false,
511
+ configurable: true
512
+ });
513
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCVC", {
514
+ get: function () {
515
+ return this.id + "_cvc";
516
+ },
517
+ enumerable: false,
518
+ configurable: true
519
+ });
520
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "isCardCollapsed", {
521
+ get: function () {
522
+ return this.isFocusable(this.card) && !this.cardFocused;
523
+ },
524
+ enumerable: false,
525
+ configurable: true
526
+ });
527
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteExpire", {
528
+ get: function () {
529
+ return this.autocompleteEnabled ? 'cc-exp' : 'off';
530
+ },
531
+ enumerable: false,
532
+ configurable: true
533
+ });
534
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCVC", {
535
+ get: function () {
536
+ return this.autocompleteEnabled ? 'cc-csc' : 'off';
537
+ },
538
+ enumerable: false,
539
+ configurable: true
540
+ });
541
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "tailLength", {
542
+ get: function () {
543
+ return this.hasExtraSpace ? 5 : 4;
544
+ },
545
+ enumerable: false,
546
+ configurable: true
547
+ });
548
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "name", {
549
+ // Safari expiration date autofill workaround
550
+ get: function () {
551
+ return this.autocompleteEnabled ? 'ccexpiryyear' : null;
552
+ },
553
+ enumerable: false,
554
+ configurable: true
555
+ });
556
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardPrefilled", {
557
+ get: function () {
558
+ return !!this.card.match(i1.TUI_NON_DIGIT_REGEXP);
559
+ },
560
+ enumerable: false,
561
+ configurable: true
562
+ });
563
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcPrefilled", {
564
+ get: function () {
565
+ return !!this.cvc.match(i1.TUI_NON_DIGIT_REGEXP);
566
+ },
567
+ enumerable: false,
568
+ configurable: true
569
+ });
570
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocusable", {
571
+ get: function () {
572
+ return this.focusable && !this.cardPrefilled;
573
+ },
574
+ enumerable: false,
575
+ configurable: true
576
+ });
577
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireFocusable", {
578
+ get: function () {
579
+ return this.isFocusable(this.card) && !this.expireInert;
580
+ },
581
+ enumerable: false,
582
+ configurable: true
583
+ });
584
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcFocusable", {
585
+ get: function () {
586
+ return this.isFocusable(this.card);
587
+ },
588
+ enumerable: false,
589
+ configurable: true
590
+ });
591
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "masked", {
592
+ get: function () {
593
+ return this.cardPrefilled ? "*" + this.card.slice(-4) : '*';
594
+ },
595
+ enumerable: false,
596
+ configurable: true
597
+ });
598
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireSelectionStart", {
599
+ get: function () {
600
+ var _a;
601
+ return ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement.selectionStart) || 0;
602
+ },
603
+ enumerable: false,
604
+ configurable: true
605
+ });
606
+ TuiInputCardGroupedComponent.prototype.onEsc = function () {
607
+ this.open = false;
608
+ };
609
+ TuiInputCardGroupedComponent.prototype.onArrow = function (element, step) {
610
+ var _a;
611
+ this.open = this.hasDropdown;
612
+ this.cdr.detectChanges();
613
+ (_a = this.datalist) === null || _a === void 0 ? void 0 : _a.onKeyDownArrow(element, step);
614
+ };
615
+ TuiInputCardGroupedComponent.prototype.handleOption = function (option) {
616
+ var _a, _b;
617
+ var _d = option.card, card = _d === void 0 ? '' : _d, _e = option.expire, expire = _e === void 0 ? '' : _e, _f = option.cvc, cvc = _f === void 0 ? '' : _f;
618
+ var bin = this.bin;
619
+ var element = (!expire && ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement)) || ((_b = this.inputCVC) === null || _b === void 0 ? void 0 : _b.nativeElement);
620
+ this.value = { card: card, expire: expire, cvc: cvc };
621
+ this.updateBin(bin);
622
+ this.open = false;
623
+ this.expireInert = !!expire;
624
+ element === null || element === void 0 ? void 0 : element.focus();
625
+ };
626
+ TuiInputCardGroupedComponent.prototype.onCardChange = function (card) {
627
+ var _d = this, value = _d.value, bin = _d.bin;
628
+ var parsed = card.split(' ').join('');
629
+ if (value && value.card === parsed) {
630
+ return;
631
+ }
632
+ this.updateProperty(parsed, 'card');
633
+ this.updateBin(bin);
634
+ if (this.cardValidator(this.card) && !this.expire && this.inputExpire) {
635
+ this.focusExpire();
636
+ }
637
+ };
638
+ TuiInputCardGroupedComponent.prototype.onExpireChange = function (expire) {
639
+ this.updateProperty(expire, 'expire');
640
+ if (expire.length === EXPIRE_COMPLETE_LENGTH &&
641
+ this.expireSelectionStart >= EXPIRE_COMPLETE_LENGTH) {
642
+ this.focusCVC();
643
+ }
644
+ };
645
+ TuiInputCardGroupedComponent.prototype.onCVCChange = function (cvc) {
646
+ this.updateProperty(cvc, 'cvc');
647
+ };
648
+ TuiInputCardGroupedComponent.prototype.transform = function (_d) {
649
+ var offsetWidth = _d.offsetWidth;
650
+ return this.isCardCollapsed ? "translate3d(" + offsetWidth + "px, 0, 0)" : '';
651
+ };
652
+ TuiInputCardGroupedComponent.prototype.onActiveZoneChange = function (active) {
653
+ this.updateFocused(active);
654
+ this.open = active && this.open;
655
+ };
656
+ TuiInputCardGroupedComponent.prototype.onMouseDown = function (event) {
657
+ if (i3.tuiIsElement(event.target) && i3.tuiIsInput(event.target)) {
658
+ return;
659
+ }
660
+ event.preventDefault();
661
+ this.focusInput();
662
+ };
663
+ TuiInputCardGroupedComponent.prototype.onScroll = function (_d) {
664
+ var currentTarget = _d.currentTarget;
665
+ if (i3.tuiIsElement(currentTarget)) {
666
+ currentTarget.scrollLeft = 0;
667
+ }
668
+ };
669
+ TuiInputCardGroupedComponent.prototype.clear = function () {
670
+ this.expireInert = false;
671
+ this.value = null;
672
+ this.focusCard();
673
+ };
674
+ TuiInputCardGroupedComponent.prototype.toggle = function () {
675
+ this.open = !this.open;
676
+ };
677
+ TuiInputCardGroupedComponent.prototype.writeValue = function (value) {
678
+ var bin = this.bin;
679
+ _super.prototype.writeValue.call(this, value);
680
+ this.updateBin(bin);
681
+ this.expireInert = !!this.expire && this.cardPrefilled;
682
+ };
683
+ /** Public API for manual focus management */
684
+ TuiInputCardGroupedComponent.prototype.focusCard = function () {
685
+ var _a;
686
+ (_a = this.cardNumberAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
687
+ };
688
+ TuiInputCardGroupedComponent.prototype.focusExpire = function () {
689
+ var _a;
690
+ (_a = this.expireCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
691
+ };
692
+ TuiInputCardGroupedComponent.prototype.focusCVC = function () {
693
+ var _a;
694
+ (_a = this.cvcCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
695
+ };
696
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocused", {
697
+ get: function () {
698
+ return !!this.inputCard && i3.tuiIsNativeFocused(this.inputCard.nativeElement);
699
+ },
700
+ enumerable: false,
701
+ configurable: true
702
+ });
703
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasExtraSpace", {
704
+ get: function () {
705
+ return this.card.length % 4 > 0;
706
+ },
707
+ enumerable: false,
708
+ configurable: true
709
+ });
710
+ TuiInputCardGroupedComponent.prototype.isFocusable = function (card) {
711
+ return this.focusable && (this.cardValidator(card) || this.cardPrefilled);
712
+ };
713
+ TuiInputCardGroupedComponent.prototype.updateBin = function (oldBin) {
714
+ var bin = this.bin;
715
+ if (bin !== oldBin && !this.cardPrefilled) {
716
+ this.binChange.emit(bin);
717
+ }
718
+ };
719
+ TuiInputCardGroupedComponent.prototype.updateProperty = function (value, propName) {
720
+ var _d = this.value || {}, _e = _d.card, card = _e === void 0 ? '' : _e, _f = _d.expire, expire = _f === void 0 ? '' : _f, _g = _d.cvc, cvc = _g === void 0 ? '' : _g;
721
+ var newValue = { card: card, expire: expire, cvc: cvc };
722
+ newValue[propName] = value;
723
+ this.value = newValue.expire || newValue.cvc || newValue.card ? newValue : null;
724
+ };
725
+ TuiInputCardGroupedComponent.prototype.focusInput = function () {
726
+ var _a, _b, _c;
727
+ var element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
728
+ (this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
729
+ ((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
730
+ element === null || element === void 0 ? void 0 : element.focus();
731
+ };
732
+ return TuiInputCardGroupedComponent;
733
+ }(inputCard.AbstractTuiInputCard));
734
+ TuiInputCardGroupedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TUI_MODE }, { token: TUI_INPUT_CARD_GROUPED_TEXTS }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i1.TUI_COMMON_ICONS }, { token: kit$1.TUI_ARROW_OPTIONS }, { token: TUI_INPUT_CARD_GROUPED_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
735
+ TuiInputCardGroupedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCardGroupedComponent, selector: "tui-input-card-grouped", inputs: { exampleText: "exampleText", cardValidator: "cardValidator", codeLength: "codeLength" }, outputs: { autofilledChange: "autofilledChange" }, host: { attributes: { "data-size": "l" }, listeners: { "$.data-mode.attr": "mode$", "keydown.esc": "onEsc()", "keydown.arrowDown.prevent": "onArrow($event.target,1)", "keydown.arrowUp.prevent": "onArrow($event.target,-1)" } }, providers: [
736
+ i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
737
+ i3.tuiAsControl(TuiInputCardGroupedComponent),
738
+ i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
739
+ i1.MODE_PROVIDER,
740
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
741
+ ], queries: [{ propertyName: "dropdown", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListComponent, descendants: true }], viewQueries: [{ propertyName: "inputCard", first: true, predicate: ["inputCard"], descendants: true }, { propertyName: "cardNumberAutofocusRef", first: true, predicate: ["inputCard"], descendants: true, read: i3.TuiAutoFocusDirective }, { propertyName: "inputExpire", first: true, predicate: ["inputExpire"], descendants: true }, { propertyName: "expireCardAutofocusRef", first: true, predicate: ["inputExpire"], descendants: true, read: i3.TuiAutoFocusDirective }, { propertyName: "inputCVC", first: true, predicate: ["inputCVC"], descendants: true }, { propertyName: "cvcCardAutofocusRef", first: true, predicate: ["inputCVC"], descendants: true, read: i3.TuiAutoFocusDirective }], usesInheritance: true, ngImport: i0__namespace, template: "<div\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n tuiDropdownLimitWidth=\"fixed\"\n tuiWrapper\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown || ''\"\n [tuiDropdownManual]=\"open\"\n (mousedown)=\"onMouseDown($event)\"\n (scroll)=\"onScroll($event)\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n>\n <div class=\"t-wrapper\">\n <label\n *tuiLet=\"value?.card | tuiFormatCard: cardPrefilled as formattedCard\"\n tuiPreventDefault=\"click\"\n >\n <input\n #inputCard\n automation-id=\"tui-input-card-grouped__card\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input t-input_card\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [attr.id]=\"idCard\"\n [autocomplete]=\"autocompleteCard\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [class.t-input_inert]=\"cardPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCard\"\n [ngModel]=\"formattedCard\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cardFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCardChange($event)\"\n />\n <span\n aria-hidden=\"true\"\n translate=\"no\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n (tuiResize)=\"(0)\"\n >\n <span\n #ghost\n class=\"t-ghost\"\n [textContent]=\"formattedCard.slice(-tailLength)\"\n ></span>\n\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [style.transform]=\"transform(ghost)\"\n >\n {{ formattedCard }}\n </span>\n </span>\n </span>\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cardNumberText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_expire\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputExpire\n automation-id=\"tui-input-card-grouped__expire\"\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n class=\"t-input\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [class.t-input_inert]=\"!expireFocusable\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskExpire\"\n [ngModel]=\"expire\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"expireFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onExpireChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.expiryText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_cvc\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputCVC\n automation-id=\"tui-input-card-grouped__cvc\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input\"\n [attr.id]=\"idCVC\"\n [autocomplete]=\"autocompleteCVC\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCVC\"\n [ngModel]=\"cvc\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cvcFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCVCChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cvcText }}\n </span>\n </label>\n </div>\n <div class=\"t-icons\">\n <div\n *ngIf=\"icon\"\n class=\"t-icon-outlet\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as text\"\n automation-id=\"tui-input-card-grouped__icon\"\n class=\"t-card\"\n [src]=\"text\"\n ></tui-svg>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__cleaner\"\n tuiWrapper\n class=\"t-icon\"\n [src]=\"icons.close\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__dropdown\"\n tuiWrapper\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n [src]=\"arrowOptions.iconLarge\"\n (click)=\"toggle()\"\n ></tui-svg>\n </div>\n</div>\n", styles: [":host{display:block;height:var(--tui-height-l);width:29.5rem;border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{--tui-autofill: var(--tui-autofill-night)}:host :host-context(tui-root._mobile){width:18rem}.t-outline{height:100%;width:100%}.t-common-wrapper{position:relative;height:100%;width:100%;overflow:hidden}.t-wrapper{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;width:100%;height:100%}.t-wrapper_cvc{margin-left:7.1875rem;transform:translate(100%)}:host-context(tui-root._mobile) .t-wrapper_cvc{margin-left:4.0625rem}.t-wrapper_expire{transform:translate(100%)}.t-wrapper_active{transform:translate(6.5625rem)}:host-context(tui-root._mobile) .t-wrapper_active{transform:translate(4.125rem)}.t-card{width:2rem;height:2rem;margin-right:.5rem;color:#1434cb}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;border:0;padding:0 0 0 1rem;line-height:2.25rem;pointer-events:none}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:hover,.t-collapsed:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-collapsed::-webkit-caps-lock-indicator,.t-collapsed::-webkit-contacts-auto-fill-button,.t-collapsed::-webkit-credit-card-auto-fill-button,.t-collapsed::-webkit-credentials-auto-fill-button,.t-collapsed::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-collapsed::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-collapsed::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-collapsed::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:hover,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:focus,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-collapsed::placeholder,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._disabled),.t-collapsed :host-context(tui-textarea._disabled),.t-collapsed :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-collapsed_enable-mask:before{content:attr(data-before)}.t-collapsed_enable-mask .t-collapsed-wrapper{left:1.375rem}.t-collapsed-wrapper{position:absolute;top:0;display:block;width:100%;height:100%;overflow:hidden}.t-value{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate(100%)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border:0;padding:0 1rem}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-input::placeholder{color:var(--tui-text-03);opacity:1}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input.t-input.t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden),.t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,.t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill{caret-color:var(--tui-base-09);color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input_inert{pointer-events:none}.t-icons{position:absolute;right:.75rem;display:flex;align-items:center;height:100%}.t-icon-outlet{display:flex}.t-icon{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-icon,:host._disabled .t-icon{pointer-events:none}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-ghost{visibility:hidden}\n"], components: [{ type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i1__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i1__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i1__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i1__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }, { type: i4__namespace.MaskitoCva, selector: "input[maskito], textarea[maskito]", inputs: ["maskito"] }, { type: i5__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { type: i3__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i3__namespace.TuiResizeDirective, selector: "[tuiResize]", outputs: ["tuiResize"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i2__namespace.AsyncPipe, "tuiFormatCard": i7__namespace.TuiFormatCardPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
742
+ __decorate([
743
+ i3.tuiPure
744
+ ], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
745
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, decorators: [{
746
+ type: i0.Component,
747
+ args: [{
748
+ selector: 'tui-input-card-grouped',
749
+ templateUrl: './input-card-grouped.template.html',
750
+ styleUrls: ['./input-card-grouped.style.less'],
751
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
752
+ providers: [
753
+ i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
754
+ i3.tuiAsControl(TuiInputCardGroupedComponent),
755
+ i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
756
+ i1.MODE_PROVIDER,
757
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
758
+ ],
759
+ host: {
760
+ '($.data-mode.attr)': 'mode$',
761
+ 'data-size': 'l',
762
+ },
763
+ }]
764
+ }], ctorParameters: function () {
765
+ return [{ type: i5__namespace.NgControl, decorators: [{
766
+ type: i0.Optional
767
+ }, {
768
+ type: i0.Self
769
+ }, {
770
+ type: i0.Inject,
771
+ args: [i5.NgControl]
772
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
773
+ type: i0.Inject,
774
+ args: [i0.ChangeDetectorRef]
775
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
776
+ type: i0.Inject,
777
+ args: [i0.ElementRef]
778
+ }] }, { type: i8__namespace.Observable, decorators: [{
779
+ type: i0.Inject,
780
+ args: [i1.TUI_MODE]
781
+ }] }, { type: i8__namespace.Observable, decorators: [{
782
+ type: i0.Inject,
783
+ args: [TUI_INPUT_CARD_GROUPED_TEXTS]
784
+ }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
785
+ type: i0.Inject,
786
+ args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
787
+ }] }, { type: undefined, decorators: [{
788
+ type: i0.Inject,
789
+ args: [i1.TUI_COMMON_ICONS]
790
+ }] }, { type: undefined, decorators: [{
791
+ type: i0.Inject,
792
+ args: [kit$1.TUI_ARROW_OPTIONS]
793
+ }] }, { type: undefined, decorators: [{
794
+ type: i0.Inject,
795
+ args: [TUI_INPUT_CARD_GROUPED_OPTIONS]
796
+ }] }];
797
+ }, propDecorators: { inputCard: [{
798
+ type: i0.ViewChild,
799
+ args: ['inputCard']
800
+ }], cardNumberAutofocusRef: [{
801
+ type: i0.ViewChild,
802
+ args: ['inputCard', { read: i3.TuiAutoFocusDirective }]
803
+ }], inputExpire: [{
804
+ type: i0.ViewChild,
805
+ args: ['inputExpire']
806
+ }], expireCardAutofocusRef: [{
807
+ type: i0.ViewChild,
808
+ args: ['inputExpire', { read: i3.TuiAutoFocusDirective }]
809
+ }], inputCVC: [{
810
+ type: i0.ViewChild,
811
+ args: ['inputCVC']
812
+ }], cvcCardAutofocusRef: [{
813
+ type: i0.ViewChild,
814
+ args: ['inputCVC', { read: i3.TuiAutoFocusDirective }]
815
+ }], exampleText: [{
816
+ type: i0.Input
817
+ }], cardValidator: [{
818
+ type: i0.Input
819
+ }], codeLength: [{
820
+ type: i0.Input
821
+ }], autofilledChange: [{
822
+ type: i0.Output
823
+ }], dropdown: [{
824
+ type: i0.ContentChild,
825
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
826
+ }], datalist: [{
827
+ type: i0.ContentChild,
828
+ args: [i1.TuiDataListComponent]
829
+ }], onEsc: [{
830
+ type: i0.HostListener,
831
+ args: ['keydown.esc']
832
+ }], onArrow: [{
833
+ type: i0.HostListener,
834
+ args: ['keydown.arrowDown.prevent', ['$event.target', '1']]
835
+ }, {
836
+ type: i0.HostListener,
837
+ args: ['keydown.arrowUp.prevent', ['$event.target', '-1']]
838
+ }], isFocusable: [] } });
985
839
 
986
- var TuiInputCardGroupedModule = /** @class */ (function () {
987
- function TuiInputCardGroupedModule() {
988
- }
989
- return TuiInputCardGroupedModule;
990
- }());
991
- TuiInputCardGroupedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
992
- TuiInputCardGroupedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [i2.CommonModule,
993
- i5.FormsModule,
994
- i4.MaskitoModule,
995
- i3.TuiFocusableModule,
996
- i1.TuiSvgModule,
997
- i1.TuiWrapperModule,
998
- i3.TuiActiveZoneModule,
999
- i3.TuiMapperPipeModule,
1000
- i1.TuiDropdownModule,
1001
- i3.TuiPreventDefaultModule,
1002
- i6.PolymorpheusModule,
1003
- i3.TuiLetModule,
1004
- i3.TuiResizeModule,
1005
- i7.TuiFormatCardModule,
1006
- i3.TuiAutoFocusModule], exports: [TuiInputCardGroupedComponent] });
1007
- TuiInputCardGroupedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, imports: [[
1008
- i2.CommonModule,
1009
- i5.FormsModule,
1010
- i4.MaskitoModule,
1011
- i3.TuiFocusableModule,
1012
- i1.TuiSvgModule,
1013
- i1.TuiWrapperModule,
1014
- i3.TuiActiveZoneModule,
1015
- i3.TuiMapperPipeModule,
1016
- i1.TuiDropdownModule,
1017
- i3.TuiPreventDefaultModule,
1018
- i6.PolymorpheusModule,
1019
- i3.TuiLetModule,
1020
- i3.TuiResizeModule,
1021
- i7.TuiFormatCardModule,
1022
- i3.TuiAutoFocusModule,
1023
- ]] });
1024
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, decorators: [{
1025
- type: i0.NgModule,
1026
- args: [{
1027
- imports: [
1028
- i2.CommonModule,
1029
- i5.FormsModule,
1030
- i4.MaskitoModule,
1031
- i3.TuiFocusableModule,
1032
- i1.TuiSvgModule,
1033
- i1.TuiWrapperModule,
1034
- i3.TuiActiveZoneModule,
1035
- i3.TuiMapperPipeModule,
1036
- i1.TuiDropdownModule,
1037
- i3.TuiPreventDefaultModule,
1038
- i6.PolymorpheusModule,
1039
- i3.TuiLetModule,
1040
- i3.TuiResizeModule,
1041
- i7.TuiFormatCardModule,
1042
- i3.TuiAutoFocusModule,
1043
- ],
1044
- declarations: [TuiInputCardGroupedComponent],
1045
- exports: [TuiInputCardGroupedComponent],
1046
- }]
1047
- }] });
840
+ var TuiInputCardGroupedModule = /** @class */ (function () {
841
+ function TuiInputCardGroupedModule() {
842
+ }
843
+ return TuiInputCardGroupedModule;
844
+ }());
845
+ TuiInputCardGroupedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
846
+ TuiInputCardGroupedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [i2.CommonModule,
847
+ i5.FormsModule,
848
+ i4.MaskitoModule,
849
+ i3.TuiFocusableModule,
850
+ i1.TuiSvgModule,
851
+ i1.TuiWrapperModule,
852
+ i3.TuiActiveZoneModule,
853
+ i3.TuiMapperPipeModule,
854
+ i1.TuiDropdownModule,
855
+ i3.TuiPreventDefaultModule,
856
+ i6.PolymorpheusModule,
857
+ i3.TuiLetModule,
858
+ i3.TuiResizeModule,
859
+ i7.TuiFormatCardModule,
860
+ i3.TuiAutoFocusModule], exports: [TuiInputCardGroupedComponent] });
861
+ TuiInputCardGroupedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, imports: [[
862
+ i2.CommonModule,
863
+ i5.FormsModule,
864
+ i4.MaskitoModule,
865
+ i3.TuiFocusableModule,
866
+ i1.TuiSvgModule,
867
+ i1.TuiWrapperModule,
868
+ i3.TuiActiveZoneModule,
869
+ i3.TuiMapperPipeModule,
870
+ i1.TuiDropdownModule,
871
+ i3.TuiPreventDefaultModule,
872
+ i6.PolymorpheusModule,
873
+ i3.TuiLetModule,
874
+ i3.TuiResizeModule,
875
+ i7.TuiFormatCardModule,
876
+ i3.TuiAutoFocusModule,
877
+ ]] });
878
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, decorators: [{
879
+ type: i0.NgModule,
880
+ args: [{
881
+ imports: [
882
+ i2.CommonModule,
883
+ i5.FormsModule,
884
+ i4.MaskitoModule,
885
+ i3.TuiFocusableModule,
886
+ i1.TuiSvgModule,
887
+ i1.TuiWrapperModule,
888
+ i3.TuiActiveZoneModule,
889
+ i3.TuiMapperPipeModule,
890
+ i1.TuiDropdownModule,
891
+ i3.TuiPreventDefaultModule,
892
+ i6.PolymorpheusModule,
893
+ i3.TuiLetModule,
894
+ i3.TuiResizeModule,
895
+ i7.TuiFormatCardModule,
896
+ i3.TuiAutoFocusModule,
897
+ ],
898
+ declarations: [TuiInputCardGroupedComponent],
899
+ exports: [TuiInputCardGroupedComponent],
900
+ }]
901
+ }] });
1048
902
 
1049
- /**
1050
- * Generated bundle index. Do not edit.
1051
- */
903
+ /**
904
+ * Generated bundle index. Do not edit.
905
+ */
1052
906
 
1053
- exports.TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS;
1054
- exports.TUI_INPUT_CARD_GROUPED_OPTIONS = TUI_INPUT_CARD_GROUPED_OPTIONS;
1055
- exports.TUI_INPUT_CARD_GROUPED_TEXTS = TUI_INPUT_CARD_GROUPED_TEXTS;
1056
- exports.TuiInputCardGroupedComponent = TuiInputCardGroupedComponent;
1057
- exports.TuiInputCardGroupedModule = TuiInputCardGroupedModule;
1058
- exports.tuiInputCardGroupedOptionsProvider = tuiInputCardGroupedOptionsProvider;
907
+ exports.TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS;
908
+ exports.TUI_INPUT_CARD_GROUPED_OPTIONS = TUI_INPUT_CARD_GROUPED_OPTIONS;
909
+ exports.TUI_INPUT_CARD_GROUPED_TEXTS = TUI_INPUT_CARD_GROUPED_TEXTS;
910
+ exports.TuiInputCardGroupedComponent = TuiInputCardGroupedComponent;
911
+ exports.TuiInputCardGroupedModule = TuiInputCardGroupedModule;
912
+ exports.tuiInputCardGroupedOptionsProvider = tuiInputCardGroupedOptionsProvider;
1059
913
 
1060
- Object.defineProperty(exports, '__esModule', { value: true });
914
+ Object.defineProperty(exports, '__esModule', { value: true });
1061
915
 
1062
916
  }));
1063
917
  //# sourceMappingURL=taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map