@taiga-ui/addon-commerce 3.72.0-canary.e5fa8b1 → 3.73.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.
@@ -1,1064 +1,918 @@
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', cvcHidden: false });
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', cvcHidden: false });
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.cvcHidden = _this.options.cvcHidden;
547
- _this.maskCVC = {
548
- mask: new Array(3).fill(i1.TUI_DIGIT_REGEXP),
549
- };
550
- _this.maskCard = {
551
- mask: constants.TUI_CARD_MASK,
552
- };
553
- _this.maskExpire = kit.maskitoDateOptionsGenerator({
554
- mode: 'mm/yy',
555
- separator: '/',
556
- });
557
- _this.open = false;
558
- return _this;
559
- }
560
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "codeLength", {
561
- set: function (length) {
562
- this.exampleTextCVC = '0'.repeat(length);
563
- this.maskCVC = {
564
- mask: new Array(length).fill(i1.TUI_DIGIT_REGEXP),
565
- };
566
- },
567
- enumerable: false,
568
- configurable: true
569
- });
570
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "nativeFocusableElement", {
571
- get: function () {
572
- var _a, _b;
573
- return (_b = (_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
574
- },
575
- enumerable: false,
576
- configurable: true
577
- });
578
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "focused", {
579
- get: function () {
580
- return this.open || i3.tuiIsNativeFocusedIn(this.el.nativeElement);
581
- },
582
- enumerable: false,
583
- configurable: true
584
- });
585
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "appearance", {
586
- get: function () {
587
- return this.controller.appearance;
588
- },
589
- enumerable: false,
590
- configurable: true
591
- });
592
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "card", {
593
- get: function () {
594
- var _a;
595
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || '';
596
- },
597
- enumerable: false,
598
- configurable: true
599
- });
600
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expire", {
601
- get: function () {
602
- var _a;
603
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || '';
604
- },
605
- enumerable: false,
606
- configurable: true
607
- });
608
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvc", {
609
- get: function () {
610
- var _a;
611
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || '';
612
- },
613
- enumerable: false,
614
- configurable: true
615
- });
616
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCleaner", {
617
- get: function () {
618
- var _a, _b;
619
- 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;
620
- },
621
- enumerable: false,
622
- configurable: true
623
- });
624
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasDropdown", {
625
- get: function () {
626
- return !!this.dropdown;
627
- },
628
- enumerable: false,
629
- configurable: true
630
- });
631
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "placeholderRaised", {
632
- get: function () {
633
- return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
634
- },
635
- enumerable: false,
636
- configurable: true
637
- });
638
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCardNumber", {
639
- get: function () {
640
- var _a, _b;
641
- return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
642
- },
643
- enumerable: false,
644
- configurable: true
645
- });
646
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCard", {
647
- get: function () {
648
- return this.id + "_card";
649
- },
650
- enumerable: false,
651
- configurable: true
652
- });
653
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idExpire", {
654
- get: function () {
655
- return this.id + "_expire";
656
- },
657
- enumerable: false,
658
- configurable: true
659
- });
660
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCVC", {
661
- get: function () {
662
- return this.id + "_cvc";
663
- },
664
- enumerable: false,
665
- configurable: true
666
- });
667
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "isCardCollapsed", {
668
- get: function () {
669
- return this.isFocusable(this.card) && !this.cardFocused;
670
- },
671
- enumerable: false,
672
- configurable: true
673
- });
674
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteExpire", {
675
- get: function () {
676
- return this.autocompleteEnabled ? 'cc-exp' : 'off';
677
- },
678
- enumerable: false,
679
- configurable: true
680
- });
681
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCVC", {
682
- get: function () {
683
- return this.autocompleteEnabled ? 'cc-csc' : 'off';
684
- },
685
- enumerable: false,
686
- configurable: true
687
- });
688
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "tailLength", {
689
- get: function () {
690
- return this.hasExtraSpace ? 5 : 4;
691
- },
692
- enumerable: false,
693
- configurable: true
694
- });
695
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "name", {
696
- // Safari expiration date autofill workaround
697
- get: function () {
698
- return this.autocompleteEnabled ? 'ccexpiryyear' : null;
699
- },
700
- enumerable: false,
701
- configurable: true
702
- });
703
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardPrefilled", {
704
- get: function () {
705
- return !!this.card.match(i1.TUI_NON_DIGIT_REGEXP);
706
- },
707
- enumerable: false,
708
- configurable: true
709
- });
710
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcPrefilled", {
711
- get: function () {
712
- return !!this.cvc.match(i1.TUI_NON_DIGIT_REGEXP);
713
- },
714
- enumerable: false,
715
- configurable: true
716
- });
717
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocusable", {
718
- get: function () {
719
- return this.focusable && !this.cardPrefilled;
720
- },
721
- enumerable: false,
722
- configurable: true
723
- });
724
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireFocusable", {
725
- get: function () {
726
- return this.isFocusable(this.card) && !this.expireInert;
727
- },
728
- enumerable: false,
729
- configurable: true
730
- });
731
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcFocusable", {
732
- get: function () {
733
- return this.isFocusable(this.card);
734
- },
735
- enumerable: false,
736
- configurable: true
737
- });
738
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "masked", {
739
- get: function () {
740
- return this.cardPrefilled ? "*" + this.card.slice(-4) : '*';
741
- },
742
- enumerable: false,
743
- configurable: true
744
- });
745
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireSelectionStart", {
746
- get: function () {
747
- var _a;
748
- return ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement.selectionStart) || 0;
749
- },
750
- enumerable: false,
751
- configurable: true
752
- });
753
- TuiInputCardGroupedComponent.prototype.onEsc = function () {
754
- this.open = false;
755
- };
756
- TuiInputCardGroupedComponent.prototype.onArrow = function (element, step) {
757
- var _a;
758
- this.open = this.hasDropdown;
759
- this.cdr.detectChanges();
760
- (_a = this.datalist) === null || _a === void 0 ? void 0 : _a.onKeyDownArrow(element, step);
761
- };
762
- TuiInputCardGroupedComponent.prototype.handleOption = function (option) {
763
- var _a, _b;
764
- 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;
765
- var bin = this.bin;
766
- 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);
767
- this.value = { card: card, expire: expire, cvc: cvc };
768
- this.updateBin(bin);
769
- this.open = false;
770
- this.expireInert = !!expire;
771
- element === null || element === void 0 ? void 0 : element.focus();
772
- };
773
- TuiInputCardGroupedComponent.prototype.onCardChange = function (card) {
774
- var _d = this, value = _d.value, bin = _d.bin;
775
- var parsed = card.split(' ').join('');
776
- if (value && value.card === parsed) {
777
- return;
778
- }
779
- this.updateProperty(parsed, 'card');
780
- this.updateBin(bin);
781
- if (this.cardValidator(this.card) && !this.expire && this.inputExpire) {
782
- this.focusExpire();
783
- }
784
- };
785
- TuiInputCardGroupedComponent.prototype.onExpireChange = function (expire) {
786
- this.updateProperty(expire, 'expire');
787
- if (expire.length === EXPIRE_COMPLETE_LENGTH &&
788
- this.expireSelectionStart >= EXPIRE_COMPLETE_LENGTH) {
789
- this.focusCVC();
790
- }
791
- };
792
- TuiInputCardGroupedComponent.prototype.onCVCChange = function (cvc) {
793
- this.updateProperty(cvc, 'cvc');
794
- };
795
- TuiInputCardGroupedComponent.prototype.transform = function (_d) {
796
- var offsetWidth = _d.offsetWidth;
797
- return this.isCardCollapsed ? "translate3d(" + offsetWidth + "px, 0, 0)" : '';
798
- };
799
- TuiInputCardGroupedComponent.prototype.onActiveZoneChange = function (active) {
800
- this.updateFocused(active);
801
- this.open = active && this.open;
802
- };
803
- TuiInputCardGroupedComponent.prototype.onMouseDown = function (event) {
804
- if (i3.tuiIsElement(event.target) && i3.tuiIsInput(event.target)) {
805
- return;
806
- }
807
- event.preventDefault();
808
- this.focusInput();
809
- };
810
- TuiInputCardGroupedComponent.prototype.onScroll = function (_d) {
811
- var currentTarget = _d.currentTarget;
812
- if (i3.tuiIsElement(currentTarget)) {
813
- currentTarget.scrollLeft = 0;
814
- }
815
- };
816
- TuiInputCardGroupedComponent.prototype.clear = function () {
817
- this.expireInert = false;
818
- this.value = null;
819
- this.focusCard();
820
- };
821
- TuiInputCardGroupedComponent.prototype.toggle = function () {
822
- this.open = !this.open;
823
- };
824
- TuiInputCardGroupedComponent.prototype.writeValue = function (value) {
825
- var bin = this.bin;
826
- _super.prototype.writeValue.call(this, value);
827
- this.updateBin(bin);
828
- this.expireInert = !!this.expire && this.cardPrefilled;
829
- };
830
- /** Public API for manual focus management */
831
- TuiInputCardGroupedComponent.prototype.focusCard = function () {
832
- var _a;
833
- (_a = this.cardNumberAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
834
- };
835
- TuiInputCardGroupedComponent.prototype.focusExpire = function () {
836
- var _a;
837
- (_a = this.expireCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
838
- };
839
- TuiInputCardGroupedComponent.prototype.focusCVC = function () {
840
- var _a;
841
- (_a = this.cvcCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
842
- };
843
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocused", {
844
- get: function () {
845
- return !!this.inputCard && i3.tuiIsNativeFocused(this.inputCard.nativeElement);
846
- },
847
- enumerable: false,
848
- configurable: true
849
- });
850
- Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasExtraSpace", {
851
- get: function () {
852
- return this.card.length % 4 > 0;
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
- TuiInputCardGroupedComponent.prototype.isFocusable = function (card) {
858
- return this.focusable && (this.cardValidator(card) || this.cardPrefilled);
859
- };
860
- TuiInputCardGroupedComponent.prototype.updateBin = function (oldBin) {
861
- var bin = this.bin;
862
- if (bin !== oldBin && !this.cardPrefilled) {
863
- this.binChange.emit(bin);
864
- }
865
- };
866
- TuiInputCardGroupedComponent.prototype.updateProperty = function (value, propName) {
867
- 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;
868
- var newValue = { card: card, expire: expire, cvc: cvc };
869
- newValue[propName] = value;
870
- this.value = newValue.expire || newValue.cvc || newValue.card ? newValue : null;
871
- };
872
- TuiInputCardGroupedComponent.prototype.focusInput = function () {
873
- var _a, _b, _c;
874
- var element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
875
- (this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
876
- ((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
877
- element === null || element === void 0 ? void 0 : element.focus();
878
- };
879
- return TuiInputCardGroupedComponent;
880
- }(inputCard.AbstractTuiInputCard));
881
- 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 });
882
- 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: [
883
- i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
884
- i3.tuiAsControl(TuiInputCardGroupedComponent),
885
- i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
886
- i1.MODE_PROVIDER,
887
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
888
- ], 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_hidden]=\"cvcHidden\"\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=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=l]:not(._label-outside) .t-collapsed{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed:-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=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=l]:not(._label-outside) .t-input{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input:-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-input_hidden{-webkit-text-security:disc}.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 });
889
- __decorate([
890
- i3.tuiPure
891
- ], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
892
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, decorators: [{
893
- type: i0.Component,
894
- args: [{
895
- selector: 'tui-input-card-grouped',
896
- templateUrl: './input-card-grouped.template.html',
897
- styleUrls: ['./input-card-grouped.style.less'],
898
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
899
- providers: [
900
- i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
901
- i3.tuiAsControl(TuiInputCardGroupedComponent),
902
- i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
903
- i1.MODE_PROVIDER,
904
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
905
- ],
906
- host: {
907
- '($.data-mode.attr)': 'mode$',
908
- 'data-size': 'l',
909
- },
910
- }]
911
- }], ctorParameters: function () {
912
- return [{ type: i5__namespace.NgControl, decorators: [{
913
- type: i0.Optional
914
- }, {
915
- type: i0.Self
916
- }, {
917
- type: i0.Inject,
918
- args: [i5.NgControl]
919
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
920
- type: i0.Inject,
921
- args: [i0.ChangeDetectorRef]
922
- }] }, { type: i0__namespace.ElementRef, decorators: [{
923
- type: i0.Inject,
924
- args: [i0.ElementRef]
925
- }] }, { type: i8__namespace.Observable, decorators: [{
926
- type: i0.Inject,
927
- args: [i1.TUI_MODE]
928
- }] }, { type: i8__namespace.Observable, decorators: [{
929
- type: i0.Inject,
930
- args: [TUI_INPUT_CARD_GROUPED_TEXTS]
931
- }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
932
- type: i0.Inject,
933
- args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
934
- }] }, { type: undefined, decorators: [{
935
- type: i0.Inject,
936
- args: [i1.TUI_COMMON_ICONS]
937
- }] }, { type: undefined, decorators: [{
938
- type: i0.Inject,
939
- args: [kit$1.TUI_ARROW_OPTIONS]
940
- }] }, { type: undefined, decorators: [{
941
- type: i0.Inject,
942
- args: [TUI_INPUT_CARD_GROUPED_OPTIONS]
943
- }] }];
944
- }, propDecorators: { inputCard: [{
945
- type: i0.ViewChild,
946
- args: ['inputCard']
947
- }], cardNumberAutofocusRef: [{
948
- type: i0.ViewChild,
949
- args: ['inputCard', { read: i3.TuiAutoFocusDirective }]
950
- }], inputExpire: [{
951
- type: i0.ViewChild,
952
- args: ['inputExpire']
953
- }], expireCardAutofocusRef: [{
954
- type: i0.ViewChild,
955
- args: ['inputExpire', { read: i3.TuiAutoFocusDirective }]
956
- }], inputCVC: [{
957
- type: i0.ViewChild,
958
- args: ['inputCVC']
959
- }], cvcCardAutofocusRef: [{
960
- type: i0.ViewChild,
961
- args: ['inputCVC', { read: i3.TuiAutoFocusDirective }]
962
- }], exampleText: [{
963
- type: i0.Input
964
- }], cardValidator: [{
965
- type: i0.Input
966
- }], codeLength: [{
967
- type: i0.Input
968
- }], autofilledChange: [{
969
- type: i0.Output
970
- }], dropdown: [{
971
- type: i0.ContentChild,
972
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
973
- }], datalist: [{
974
- type: i0.ContentChild,
975
- args: [i1.TuiDataListComponent]
976
- }], onEsc: [{
977
- type: i0.HostListener,
978
- args: ['keydown.esc']
979
- }], onArrow: [{
980
- type: i0.HostListener,
981
- args: ['keydown.arrowDown.prevent', ['$event.target', '1']]
982
- }, {
983
- type: i0.HostListener,
984
- args: ['keydown.arrowUp.prevent', ['$event.target', '-1']]
985
- }], 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.cvcHidden = _this.options.cvcHidden;
401
+ _this.maskCVC = {
402
+ mask: new Array(3).fill(i1.TUI_DIGIT_REGEXP),
403
+ };
404
+ _this.maskCard = {
405
+ mask: constants.TUI_CARD_MASK,
406
+ };
407
+ _this.maskExpire = kit.maskitoDateOptionsGenerator({
408
+ mode: 'mm/yy',
409
+ separator: '/',
410
+ });
411
+ _this.open = false;
412
+ return _this;
413
+ }
414
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "codeLength", {
415
+ set: function (length) {
416
+ this.exampleTextCVC = '0'.repeat(length);
417
+ this.maskCVC = {
418
+ mask: new Array(length).fill(i1.TUI_DIGIT_REGEXP),
419
+ };
420
+ },
421
+ enumerable: false,
422
+ configurable: true
423
+ });
424
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "nativeFocusableElement", {
425
+ get: function () {
426
+ var _a, _b;
427
+ return (_b = (_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
428
+ },
429
+ enumerable: false,
430
+ configurable: true
431
+ });
432
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "focused", {
433
+ get: function () {
434
+ return this.open || i3.tuiIsNativeFocusedIn(this.el.nativeElement);
435
+ },
436
+ enumerable: false,
437
+ configurable: true
438
+ });
439
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "appearance", {
440
+ get: function () {
441
+ return this.controller.appearance;
442
+ },
443
+ enumerable: false,
444
+ configurable: true
445
+ });
446
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "card", {
447
+ get: function () {
448
+ var _a;
449
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || '';
450
+ },
451
+ enumerable: false,
452
+ configurable: true
453
+ });
454
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expire", {
455
+ get: function () {
456
+ var _a;
457
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || '';
458
+ },
459
+ enumerable: false,
460
+ configurable: true
461
+ });
462
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvc", {
463
+ get: function () {
464
+ var _a;
465
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || '';
466
+ },
467
+ enumerable: false,
468
+ configurable: true
469
+ });
470
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCleaner", {
471
+ get: function () {
472
+ var _a, _b;
473
+ 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;
474
+ },
475
+ enumerable: false,
476
+ configurable: true
477
+ });
478
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasDropdown", {
479
+ get: function () {
480
+ return !!this.dropdown;
481
+ },
482
+ enumerable: false,
483
+ configurable: true
484
+ });
485
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "placeholderRaised", {
486
+ get: function () {
487
+ return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
488
+ },
489
+ enumerable: false,
490
+ configurable: true
491
+ });
492
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCardNumber", {
493
+ get: function () {
494
+ var _a, _b;
495
+ return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
496
+ },
497
+ enumerable: false,
498
+ configurable: true
499
+ });
500
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCard", {
501
+ get: function () {
502
+ return this.id + "_card";
503
+ },
504
+ enumerable: false,
505
+ configurable: true
506
+ });
507
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idExpire", {
508
+ get: function () {
509
+ return this.id + "_expire";
510
+ },
511
+ enumerable: false,
512
+ configurable: true
513
+ });
514
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCVC", {
515
+ get: function () {
516
+ return this.id + "_cvc";
517
+ },
518
+ enumerable: false,
519
+ configurable: true
520
+ });
521
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "isCardCollapsed", {
522
+ get: function () {
523
+ return this.isFocusable(this.card) && !this.cardFocused;
524
+ },
525
+ enumerable: false,
526
+ configurable: true
527
+ });
528
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteExpire", {
529
+ get: function () {
530
+ return this.autocompleteEnabled ? 'cc-exp' : 'off';
531
+ },
532
+ enumerable: false,
533
+ configurable: true
534
+ });
535
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCVC", {
536
+ get: function () {
537
+ return this.autocompleteEnabled ? 'cc-csc' : 'off';
538
+ },
539
+ enumerable: false,
540
+ configurable: true
541
+ });
542
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "tailLength", {
543
+ get: function () {
544
+ return this.hasExtraSpace ? 5 : 4;
545
+ },
546
+ enumerable: false,
547
+ configurable: true
548
+ });
549
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "name", {
550
+ // Safari expiration date autofill workaround
551
+ get: function () {
552
+ return this.autocompleteEnabled ? 'ccexpiryyear' : null;
553
+ },
554
+ enumerable: false,
555
+ configurable: true
556
+ });
557
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardPrefilled", {
558
+ get: function () {
559
+ return !!this.card.match(i1.TUI_NON_DIGIT_REGEXP);
560
+ },
561
+ enumerable: false,
562
+ configurable: true
563
+ });
564
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcPrefilled", {
565
+ get: function () {
566
+ return !!this.cvc.match(i1.TUI_NON_DIGIT_REGEXP);
567
+ },
568
+ enumerable: false,
569
+ configurable: true
570
+ });
571
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocusable", {
572
+ get: function () {
573
+ return this.focusable && !this.cardPrefilled;
574
+ },
575
+ enumerable: false,
576
+ configurable: true
577
+ });
578
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireFocusable", {
579
+ get: function () {
580
+ return this.isFocusable(this.card) && !this.expireInert;
581
+ },
582
+ enumerable: false,
583
+ configurable: true
584
+ });
585
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcFocusable", {
586
+ get: function () {
587
+ return this.isFocusable(this.card);
588
+ },
589
+ enumerable: false,
590
+ configurable: true
591
+ });
592
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "masked", {
593
+ get: function () {
594
+ return this.cardPrefilled ? "*" + this.card.slice(-4) : '*';
595
+ },
596
+ enumerable: false,
597
+ configurable: true
598
+ });
599
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireSelectionStart", {
600
+ get: function () {
601
+ var _a;
602
+ return ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement.selectionStart) || 0;
603
+ },
604
+ enumerable: false,
605
+ configurable: true
606
+ });
607
+ TuiInputCardGroupedComponent.prototype.onEsc = function () {
608
+ this.open = false;
609
+ };
610
+ TuiInputCardGroupedComponent.prototype.onArrow = function (element, step) {
611
+ var _a;
612
+ this.open = this.hasDropdown;
613
+ this.cdr.detectChanges();
614
+ (_a = this.datalist) === null || _a === void 0 ? void 0 : _a.onKeyDownArrow(element, step);
615
+ };
616
+ TuiInputCardGroupedComponent.prototype.handleOption = function (option) {
617
+ var _a, _b;
618
+ 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;
619
+ var bin = this.bin;
620
+ 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);
621
+ this.value = { card: card, expire: expire, cvc: cvc };
622
+ this.updateBin(bin);
623
+ this.open = false;
624
+ this.expireInert = !!expire;
625
+ element === null || element === void 0 ? void 0 : element.focus();
626
+ };
627
+ TuiInputCardGroupedComponent.prototype.onCardChange = function (card) {
628
+ var _d = this, value = _d.value, bin = _d.bin;
629
+ var parsed = card.split(' ').join('');
630
+ if (value && value.card === parsed) {
631
+ return;
632
+ }
633
+ this.updateProperty(parsed, 'card');
634
+ this.updateBin(bin);
635
+ if (this.cardValidator(this.card) && !this.expire && this.inputExpire) {
636
+ this.focusExpire();
637
+ }
638
+ };
639
+ TuiInputCardGroupedComponent.prototype.onExpireChange = function (expire) {
640
+ this.updateProperty(expire, 'expire');
641
+ if (expire.length === EXPIRE_COMPLETE_LENGTH &&
642
+ this.expireSelectionStart >= EXPIRE_COMPLETE_LENGTH) {
643
+ this.focusCVC();
644
+ }
645
+ };
646
+ TuiInputCardGroupedComponent.prototype.onCVCChange = function (cvc) {
647
+ this.updateProperty(cvc, 'cvc');
648
+ };
649
+ TuiInputCardGroupedComponent.prototype.transform = function (_d) {
650
+ var offsetWidth = _d.offsetWidth;
651
+ return this.isCardCollapsed ? "translate3d(" + offsetWidth + "px, 0, 0)" : '';
652
+ };
653
+ TuiInputCardGroupedComponent.prototype.onActiveZoneChange = function (active) {
654
+ this.updateFocused(active);
655
+ this.open = active && this.open;
656
+ };
657
+ TuiInputCardGroupedComponent.prototype.onMouseDown = function (event) {
658
+ if (i3.tuiIsElement(event.target) && i3.tuiIsInput(event.target)) {
659
+ return;
660
+ }
661
+ event.preventDefault();
662
+ this.focusInput();
663
+ };
664
+ TuiInputCardGroupedComponent.prototype.onScroll = function (_d) {
665
+ var currentTarget = _d.currentTarget;
666
+ if (i3.tuiIsElement(currentTarget)) {
667
+ currentTarget.scrollLeft = 0;
668
+ }
669
+ };
670
+ TuiInputCardGroupedComponent.prototype.clear = function () {
671
+ this.expireInert = false;
672
+ this.value = null;
673
+ this.focusCard();
674
+ };
675
+ TuiInputCardGroupedComponent.prototype.toggle = function () {
676
+ this.open = !this.open;
677
+ };
678
+ TuiInputCardGroupedComponent.prototype.writeValue = function (value) {
679
+ var bin = this.bin;
680
+ _super.prototype.writeValue.call(this, value);
681
+ this.updateBin(bin);
682
+ this.expireInert = !!this.expire && this.cardPrefilled;
683
+ };
684
+ /** Public API for manual focus management */
685
+ TuiInputCardGroupedComponent.prototype.focusCard = function () {
686
+ var _a;
687
+ (_a = this.cardNumberAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
688
+ };
689
+ TuiInputCardGroupedComponent.prototype.focusExpire = function () {
690
+ var _a;
691
+ (_a = this.expireCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
692
+ };
693
+ TuiInputCardGroupedComponent.prototype.focusCVC = function () {
694
+ var _a;
695
+ (_a = this.cvcCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
696
+ };
697
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocused", {
698
+ get: function () {
699
+ return !!this.inputCard && i3.tuiIsNativeFocused(this.inputCard.nativeElement);
700
+ },
701
+ enumerable: false,
702
+ configurable: true
703
+ });
704
+ Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasExtraSpace", {
705
+ get: function () {
706
+ return this.card.length % 4 > 0;
707
+ },
708
+ enumerable: false,
709
+ configurable: true
710
+ });
711
+ TuiInputCardGroupedComponent.prototype.isFocusable = function (card) {
712
+ return this.focusable && (this.cardValidator(card) || this.cardPrefilled);
713
+ };
714
+ TuiInputCardGroupedComponent.prototype.updateBin = function (oldBin) {
715
+ var bin = this.bin;
716
+ if (bin !== oldBin && !this.cardPrefilled) {
717
+ this.binChange.emit(bin);
718
+ }
719
+ };
720
+ TuiInputCardGroupedComponent.prototype.updateProperty = function (value, propName) {
721
+ 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;
722
+ var newValue = { card: card, expire: expire, cvc: cvc };
723
+ newValue[propName] = value;
724
+ this.value = newValue.expire || newValue.cvc || newValue.card ? newValue : null;
725
+ };
726
+ TuiInputCardGroupedComponent.prototype.focusInput = function () {
727
+ var _a, _b, _c;
728
+ var element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
729
+ (this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
730
+ ((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
731
+ element === null || element === void 0 ? void 0 : element.focus();
732
+ };
733
+ return TuiInputCardGroupedComponent;
734
+ }(inputCard.AbstractTuiInputCard));
735
+ 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 });
736
+ 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: [
737
+ i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
738
+ i3.tuiAsControl(TuiInputCardGroupedComponent),
739
+ i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
740
+ i1.MODE_PROVIDER,
741
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
742
+ ], 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_hidden]=\"cvcHidden\"\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=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=l]:not(._label-outside) .t-collapsed{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed:-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=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=l]:not(._label-outside) .t-input{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input:-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-input_hidden{-webkit-text-security:disc}.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]" }, { 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 });
743
+ __decorate([
744
+ i3.tuiPure
745
+ ], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
746
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, decorators: [{
747
+ type: i0.Component,
748
+ args: [{
749
+ selector: 'tui-input-card-grouped',
750
+ templateUrl: './input-card-grouped.template.html',
751
+ styleUrls: ['./input-card-grouped.style.less'],
752
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
753
+ providers: [
754
+ i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
755
+ i3.tuiAsControl(TuiInputCardGroupedComponent),
756
+ i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
757
+ i1.MODE_PROVIDER,
758
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
759
+ ],
760
+ host: {
761
+ '($.data-mode.attr)': 'mode$',
762
+ 'data-size': 'l',
763
+ },
764
+ }]
765
+ }], ctorParameters: function () {
766
+ return [{ type: i5__namespace.NgControl, decorators: [{
767
+ type: i0.Optional
768
+ }, {
769
+ type: i0.Self
770
+ }, {
771
+ type: i0.Inject,
772
+ args: [i5.NgControl]
773
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
774
+ type: i0.Inject,
775
+ args: [i0.ChangeDetectorRef]
776
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
777
+ type: i0.Inject,
778
+ args: [i0.ElementRef]
779
+ }] }, { type: i8__namespace.Observable, decorators: [{
780
+ type: i0.Inject,
781
+ args: [i1.TUI_MODE]
782
+ }] }, { type: i8__namespace.Observable, decorators: [{
783
+ type: i0.Inject,
784
+ args: [TUI_INPUT_CARD_GROUPED_TEXTS]
785
+ }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
786
+ type: i0.Inject,
787
+ args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
788
+ }] }, { type: undefined, decorators: [{
789
+ type: i0.Inject,
790
+ args: [i1.TUI_COMMON_ICONS]
791
+ }] }, { type: undefined, decorators: [{
792
+ type: i0.Inject,
793
+ args: [kit$1.TUI_ARROW_OPTIONS]
794
+ }] }, { type: undefined, decorators: [{
795
+ type: i0.Inject,
796
+ args: [TUI_INPUT_CARD_GROUPED_OPTIONS]
797
+ }] }];
798
+ }, propDecorators: { inputCard: [{
799
+ type: i0.ViewChild,
800
+ args: ['inputCard']
801
+ }], cardNumberAutofocusRef: [{
802
+ type: i0.ViewChild,
803
+ args: ['inputCard', { read: i3.TuiAutoFocusDirective }]
804
+ }], inputExpire: [{
805
+ type: i0.ViewChild,
806
+ args: ['inputExpire']
807
+ }], expireCardAutofocusRef: [{
808
+ type: i0.ViewChild,
809
+ args: ['inputExpire', { read: i3.TuiAutoFocusDirective }]
810
+ }], inputCVC: [{
811
+ type: i0.ViewChild,
812
+ args: ['inputCVC']
813
+ }], cvcCardAutofocusRef: [{
814
+ type: i0.ViewChild,
815
+ args: ['inputCVC', { read: i3.TuiAutoFocusDirective }]
816
+ }], exampleText: [{
817
+ type: i0.Input
818
+ }], cardValidator: [{
819
+ type: i0.Input
820
+ }], codeLength: [{
821
+ type: i0.Input
822
+ }], autofilledChange: [{
823
+ type: i0.Output
824
+ }], dropdown: [{
825
+ type: i0.ContentChild,
826
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
827
+ }], datalist: [{
828
+ type: i0.ContentChild,
829
+ args: [i1.TuiDataListComponent]
830
+ }], onEsc: [{
831
+ type: i0.HostListener,
832
+ args: ['keydown.esc']
833
+ }], onArrow: [{
834
+ type: i0.HostListener,
835
+ args: ['keydown.arrowDown.prevent', ['$event.target', '1']]
836
+ }, {
837
+ type: i0.HostListener,
838
+ args: ['keydown.arrowUp.prevent', ['$event.target', '-1']]
839
+ }], isFocusable: [] } });
986
840
 
987
- var TuiInputCardGroupedModule = /** @class */ (function () {
988
- function TuiInputCardGroupedModule() {
989
- }
990
- return TuiInputCardGroupedModule;
991
- }());
992
- TuiInputCardGroupedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
993
- TuiInputCardGroupedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [i2.CommonModule,
994
- i5.FormsModule,
995
- i4.MaskitoModule,
996
- i3.TuiFocusableModule,
997
- i1.TuiSvgModule,
998
- i1.TuiWrapperModule,
999
- i3.TuiActiveZoneModule,
1000
- i3.TuiMapperPipeModule,
1001
- i1.TuiDropdownModule,
1002
- i3.TuiPreventDefaultModule,
1003
- i6.PolymorpheusModule,
1004
- i3.TuiLetModule,
1005
- i3.TuiResizeModule,
1006
- i7.TuiFormatCardModule,
1007
- i3.TuiAutoFocusModule], exports: [TuiInputCardGroupedComponent] });
1008
- TuiInputCardGroupedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, imports: [[
1009
- i2.CommonModule,
1010
- i5.FormsModule,
1011
- i4.MaskitoModule,
1012
- i3.TuiFocusableModule,
1013
- i1.TuiSvgModule,
1014
- i1.TuiWrapperModule,
1015
- i3.TuiActiveZoneModule,
1016
- i3.TuiMapperPipeModule,
1017
- i1.TuiDropdownModule,
1018
- i3.TuiPreventDefaultModule,
1019
- i6.PolymorpheusModule,
1020
- i3.TuiLetModule,
1021
- i3.TuiResizeModule,
1022
- i7.TuiFormatCardModule,
1023
- i3.TuiAutoFocusModule,
1024
- ]] });
1025
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, decorators: [{
1026
- type: i0.NgModule,
1027
- args: [{
1028
- imports: [
1029
- i2.CommonModule,
1030
- i5.FormsModule,
1031
- i4.MaskitoModule,
1032
- i3.TuiFocusableModule,
1033
- i1.TuiSvgModule,
1034
- i1.TuiWrapperModule,
1035
- i3.TuiActiveZoneModule,
1036
- i3.TuiMapperPipeModule,
1037
- i1.TuiDropdownModule,
1038
- i3.TuiPreventDefaultModule,
1039
- i6.PolymorpheusModule,
1040
- i3.TuiLetModule,
1041
- i3.TuiResizeModule,
1042
- i7.TuiFormatCardModule,
1043
- i3.TuiAutoFocusModule,
1044
- ],
1045
- declarations: [TuiInputCardGroupedComponent],
1046
- exports: [TuiInputCardGroupedComponent],
1047
- }]
1048
- }] });
841
+ var TuiInputCardGroupedModule = /** @class */ (function () {
842
+ function TuiInputCardGroupedModule() {
843
+ }
844
+ return TuiInputCardGroupedModule;
845
+ }());
846
+ TuiInputCardGroupedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
847
+ TuiInputCardGroupedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [i2.CommonModule,
848
+ i5.FormsModule,
849
+ i4.MaskitoModule,
850
+ i3.TuiFocusableModule,
851
+ i1.TuiSvgModule,
852
+ i1.TuiWrapperModule,
853
+ i3.TuiActiveZoneModule,
854
+ i3.TuiMapperPipeModule,
855
+ i1.TuiDropdownModule,
856
+ i3.TuiPreventDefaultModule,
857
+ i6.PolymorpheusModule,
858
+ i3.TuiLetModule,
859
+ i3.TuiResizeModule,
860
+ i7.TuiFormatCardModule,
861
+ i3.TuiAutoFocusModule], exports: [TuiInputCardGroupedComponent] });
862
+ TuiInputCardGroupedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, imports: [[
863
+ i2.CommonModule,
864
+ i5.FormsModule,
865
+ i4.MaskitoModule,
866
+ i3.TuiFocusableModule,
867
+ i1.TuiSvgModule,
868
+ i1.TuiWrapperModule,
869
+ i3.TuiActiveZoneModule,
870
+ i3.TuiMapperPipeModule,
871
+ i1.TuiDropdownModule,
872
+ i3.TuiPreventDefaultModule,
873
+ i6.PolymorpheusModule,
874
+ i3.TuiLetModule,
875
+ i3.TuiResizeModule,
876
+ i7.TuiFormatCardModule,
877
+ i3.TuiAutoFocusModule,
878
+ ]] });
879
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputCardGroupedModule, decorators: [{
880
+ type: i0.NgModule,
881
+ args: [{
882
+ imports: [
883
+ i2.CommonModule,
884
+ i5.FormsModule,
885
+ i4.MaskitoModule,
886
+ i3.TuiFocusableModule,
887
+ i1.TuiSvgModule,
888
+ i1.TuiWrapperModule,
889
+ i3.TuiActiveZoneModule,
890
+ i3.TuiMapperPipeModule,
891
+ i1.TuiDropdownModule,
892
+ i3.TuiPreventDefaultModule,
893
+ i6.PolymorpheusModule,
894
+ i3.TuiLetModule,
895
+ i3.TuiResizeModule,
896
+ i7.TuiFormatCardModule,
897
+ i3.TuiAutoFocusModule,
898
+ ],
899
+ declarations: [TuiInputCardGroupedComponent],
900
+ exports: [TuiInputCardGroupedComponent],
901
+ }]
902
+ }] });
1049
903
 
1050
- /**
1051
- * Generated bundle index. Do not edit.
1052
- */
904
+ /**
905
+ * Generated bundle index. Do not edit.
906
+ */
1053
907
 
1054
- exports.TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS;
1055
- exports.TUI_INPUT_CARD_GROUPED_OPTIONS = TUI_INPUT_CARD_GROUPED_OPTIONS;
1056
- exports.TUI_INPUT_CARD_GROUPED_TEXTS = TUI_INPUT_CARD_GROUPED_TEXTS;
1057
- exports.TuiInputCardGroupedComponent = TuiInputCardGroupedComponent;
1058
- exports.TuiInputCardGroupedModule = TuiInputCardGroupedModule;
1059
- exports.tuiInputCardGroupedOptionsProvider = tuiInputCardGroupedOptionsProvider;
908
+ exports.TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS;
909
+ exports.TUI_INPUT_CARD_GROUPED_OPTIONS = TUI_INPUT_CARD_GROUPED_OPTIONS;
910
+ exports.TUI_INPUT_CARD_GROUPED_TEXTS = TUI_INPUT_CARD_GROUPED_TEXTS;
911
+ exports.TuiInputCardGroupedComponent = TuiInputCardGroupedComponent;
912
+ exports.TuiInputCardGroupedModule = TuiInputCardGroupedModule;
913
+ exports.tuiInputCardGroupedOptionsProvider = tuiInputCardGroupedOptionsProvider;
1060
914
 
1061
- Object.defineProperty(exports, '__esModule', { value: true });
915
+ Object.defineProperty(exports, '__esModule', { value: true });
1062
916
 
1063
917
  }));
1064
918
  //# sourceMappingURL=taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map