@taiga-ui/addon-commerce 5.0.0 → 5.1.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.
@@ -37,10 +37,10 @@ class TuiInputCardGroupDirective {
37
37
  this.breakpoint = inject(TUI_BREAKPOINT);
38
38
  this.compact = input(false);
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.19", type: TuiInputCardGroupDirective, isStandalone: true, inputs: { compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._compact": "compact() || breakpoint() === 'mobile'" } }, ngImport: i0 }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.20", type: TuiInputCardGroupDirective, isStandalone: true, inputs: { compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._compact": "compact() || breakpoint() === 'mobile'" } }, ngImport: i0 }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardGroupDirective, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardGroupDirective, decorators: [{
44
44
  type: Directive,
45
45
  args: [{ host: { '[class._compact]': "compact() || breakpoint() === 'mobile'" } }]
46
46
  }] });
@@ -251,8 +251,8 @@ class TuiInputCardGroup extends TuiControl {
251
251
  this.inputCVC()?.nativeElement;
252
252
  element?.focus();
253
253
  }
254
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
255
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiInputCardGroup, isStandalone: true, selector: "tui-input-card-group", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null }, cardValidator: { classPropertyName: "cardValidator", publicName: "cardValidator", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, codeLength: { classPropertyName: "codeLength", publicName: "codeLength", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { binChange: "binChange" }, host: { listeners: { "pointerdown": "onPointerDown($event)", "scroll.zoneless": "$event.target.scrollLeft = 0", "tuiActiveZoneChange": "onTouched()" }, properties: { "attr.data-size": "textfield.size()" } }, providers: [
254
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
255
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TuiInputCardGroup, isStandalone: true, selector: "tui-input-card-group", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null }, cardValidator: { classPropertyName: "cardValidator", publicName: "cardValidator", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, codeLength: { classPropertyName: "codeLength", publicName: "codeLength", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { binChange: "binChange" }, host: { listeners: { "pointerdown": "onPointerDown($event)", "scroll.zoneless": "$event.target.scrollLeft = 0", "tuiActiveZoneChange": "onTouched()" }, properties: { "attr.data-size": "textfield.size()" } }, providers: [
256
256
  tuiAsDataListHost(TuiInputCardGroup),
257
257
  tuiAsControl(TuiInputCardGroup),
258
258
  tuiDropdownOptionsProvider({ limitWidth: 'fixed' }),
@@ -260,7 +260,7 @@ class TuiInputCardGroup extends TuiControl {
260
260
  TUI_INPUT_CARD_GROUP_TEXTS_PROVIDER,
261
261
  ], viewQueries: [{ propertyName: "inputCard", first: true, predicate: ["inputCard"], descendants: true, isSignal: true }, { propertyName: "inputExpire", first: true, predicate: ["inputExpire"], descendants: true, isSignal: true }, { propertyName: "inputCVC", first: true, predicate: ["inputCVC"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiAppearance }, { directive: i2.TuiDropdownDirective }, { directive: i2.TuiWithDropdownOpen }, { directive: TuiInputCardGroupDirective, inputs: ["compact", "compact"] }], ngImport: i0, template: "@let formattedCard = card() | tuiFormatCard: cardPrefilled();\n\n<div class=\"t-wrapper\">\n <label (click.zoneless.prevent)=\"(0)\">\n <input\n #inputCard\n autocomplete=\"cc-number\"\n automation-id=\"tui-input-card-group__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]=\"`${id()}_card`\"\n [attr.role]=\"dropdown.content() ? 'combobox' : null\"\n [class.t-input_filled]=\"card().length\"\n [class.t-input_inert]=\"cardPrefilled()\"\n [disabled]=\"disabled()\"\n [maskito]=\"maskCard\"\n [ngModel]=\"formattedCard\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"cardPrefilled() ? '' : placeholder()\"\n [readOnly]=\"readOnly()\"\n [tabIndex]=\"cardPrefilled() ? -1 : 0\"\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]=\"cardPrefilled() ? card().slice(-4) : ''\"\n [class.t-collapsed_enable-mask]=\"cardCollapsed\"\n (waResizeObserver)=\"onResize()\"\n >\n <span\n #ghost\n class=\"t-ghost\"\n [textContent]=\"formattedCard.slice(card().length % 4 > 0 ? -5 : -4)\"\n ></span>\n\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [style]=\"getStyle(ghost)\"\n [textContent]=\"formattedCard\"\n ></span>\n </span>\n </span>\n <div\n tuiTransitioned\n class=\"t-label\"\n [attr.data-label]=\"texts().cardNumberText\"\n [class.t-label_raised]=\"labelRaised()\"\n >\n <ng-content />\n </div>\n </label>\n</div>\n<div\n class=\"t-wrapper t-wrapper_expire\"\n [class.t-wrapper_active]=\"cardCollapsed\"\n>\n <label (click.zoneless.prevent)=\"(0)\">\n <input\n #inputExpire\n autocomplete=\"cc-exp\"\n automation-id=\"tui-input-card-group__expire\"\n inputmode=\"numeric\"\n maxlength=\"5\"\n name=\"ccexpiryyear\"\n translate=\"no\"\n class=\"t-input\"\n [attr.id]=\"`${id()}_expire`\"\n [class.t-input_inert]=\"!expireFocusable()\"\n [class.t-input_prefilled]=\"!inputs().expire\"\n [disabled]=\"disabled()\"\n [maskito]=\"maskExpire\"\n [ngModel]=\"expire()\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"inputs().expire ? '00/00' : '\u2022\u2022/\u2022\u2022'\"\n [readOnly]=\"readOnly() || !inputs().expire\"\n [tabIndex]=\"expireFocusable() || (isMobile && isWebkit) ? 0 : -1\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onExpireChange($event)\"\n />\n <div\n tuiTransitioned\n class=\"t-label\"\n [class.t-label_raised]=\"labelRaised()\"\n >\n {{ texts().expiryText }}\n </div>\n </label>\n</div>\n<div\n class=\"t-wrapper t-wrapper_cvc\"\n [class.t-wrapper_active]=\"cardCollapsed\"\n>\n <label (click.zoneless.prevent)=\"(0)\">\n <input\n #inputCVC\n autocomplete=\"cc-csc\"\n automation-id=\"tui-input-card-group__cvc\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input\"\n [attr.id]=\"`${id()}_cvc`\"\n [class.t-input_cvc_hidden]=\"cvcHidden\"\n [class.t-input_prefilled]=\"cvcPrefilled()\"\n [disabled]=\"disabled()\"\n [maskito]=\"cvcMask()\"\n [ngModel]=\"cvc()\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"cvcPrefilled() ? '\u2022\u2022\u2022' : cvcPlaceholder()\"\n [readOnly]=\"readOnly() || cvcPrefilled()\"\n [tabIndex]=\"focusable() || (isMobile && isWebkit) ? 0 : -1\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCVCChange($event)\"\n />\n <div\n tuiTransitioned\n class=\"t-label\"\n [class.t-label_raised]=\"labelRaised()\"\n >\n {{ texts().cvcText }}\n </div>\n </label>\n</div>\n<div class=\"t-icons\">\n @if (content()) {\n <div class=\"t-icon-outlet\">\n <img\n *polymorpheusOutlet=\"content() as src\"\n alt=\"\"\n automation-id=\"tui-input-card-group__icon\"\n class=\"t-card\"\n [src]=\"src | tuiIcon\"\n />\n </div>\n }\n @if (hasCleaner()) {\n <tui-icon\n automation-id=\"tui-input-card-group__cleaner\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [icon]=\"icons.close\"\n (click)=\"clear()\"\n />\n }\n @if (dropdown.content()) {\n <tui-icon\n automation-id=\"tui-input-card-group__dropdown\"\n tuiAppearance=\"icon\"\n tuiChevron\n class=\"t-icon\"\n (click)=\"toggle()\"\n />\n }\n</div>\n", styles: ["@keyframes outside{0%{transform:translate3d(calc(var(--t-translate) * var(--tui-inline)),0,0)}to{transform:translate3d(calc(100% * var(--tui-inline)),0,0)}}@keyframes inside{0%{transform:translate3d(calc(100% * var(--tui-inline)),0,0)}to{transform:translate3d(calc(var(--t-translate) * var(--tui-inline)),0,0)}}:host{--t-height: var(--tui-height-l);--t-padding: var(--tui-padding-l);--t-label: -.7rem;--t-label-size: .83em;--t-translate: 6.5rem;--t-collapsed-offset: 1.4375rem;position:relative;display:block;block-size:var(--t-height);min-inline-size:24rem;border-radius:var(--tui-radius-l);overflow:hidden;font:var(--tui-typography-ui-m);isolation:isolate}:host[data-size=m]{--t-label: -.7em;--t-height: var(--tui-height-m);--t-padding: var(--tui-padding-m);--t-collapsed-offset: 1.125rem;border-radius:var(--tui-radius-m);font:var(--tui-typography-ui-s)}:host[data-size=m] .t-card{inline-size:1.5rem;block-size:1.5rem}:host[data-size=m] [tuiChevron]{margin-inline-end:-.875rem;margin-inline-start:.125rem}:host._compact{min-inline-size:19rem;--t-translate: 4rem}:host[tuiAppearance][data-appearance]:has(:-webkit-autofill,[chrome-autofilled]){background:var(--tui-service-autofill-background)!important}:host [tuiChevron]{block-size:auto;align-self:stretch;border-inline-end:var(--t-padding) solid transparent;margin-inline-end:-.75rem;box-sizing:content-box;font-size:1rem;cursor:pointer}.t-wrapper{position:absolute;z-index:1;inline-size:100%;block-size:var(--t-height);transition:opacity 0s var(--tui-duration)}.t-wrapper_cvc,.t-wrapper_expire{opacity:0;pointer-events:none;animation:outside var(--tui-duration) ease-in-out}.t-wrapper_cvc{margin-inline-start:7rem}:host._compact .t-wrapper_cvc{margin-inline-start:4rem}.t-wrapper_active{transition:none;pointer-events:auto;opacity:1;animation:inside var(--tui-duration) ease-in-out forwards}.t-card{inline-size:2rem;block-size:2rem}.t-collapsed{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;padding:calc(var(--t-height) / 3) var(--t-padding) 0;box-sizing:border-box;line-height:calc(2 * var(--t-height) / 3);color:var(--tui-text-primary);white-space:nowrap;pointer-events:none}.t-collapsed:after{content:\"*\";float:left;opacity:0}:host-context([dir=\"rtl\"]) .t-collapsed:after{float:none}.t-collapsed_enable-mask:before{content:attr(data-before)}.t-collapsed_enable-mask:after{opacity:1}:host-context([dir=\"rtl\"]) .t-collapsed_enable-mask:after{transition:opacity 0s var(--tui-duration)}.t-collapsed_enable-mask .t-collapsed-wrapper{inset-inline-start:var(--t-collapsed-offset)}:host-context([dir=\"rtl\"]) .t-collapsed_enable-mask .t-collapsed-wrapper{inset-inline-start:unset}.t-collapsed-wrapper{position:absolute;display:block;inset-block-start:0;inline-size:100%;block-size:100%;overflow:hidden}.t-value{transition-property:transform,clip-path;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;display:block;inset-block:auto 0;inset-inline:auto 100%;clip-path:inset(0);transform:translate3d(calc(100% * var(--tui-inline)),0,0)}:host-context([dir=\"rtl\"]) .t-value{transform:translate3d(calc(100% * var(--tui-inline)),0,0)!important}.t-input{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;z-index:1;border:0;margin:0;padding:calc(var(--t-height) / 3) var(--t-padding) 0;outline:none;background:transparent;box-sizing:border-box;font:inherit;color:var(--tui-text-primary);direction:ltr}:host-context([dir=\"rtl\"]) .t-input{text-align:end}.t-input::placeholder{color:var(--tui-text-secondary)}.t-input_prefilled::placeholder{color:var(--tui-text-primary)}.t-input[chrome-autofilled],.t-input:-webkit-autofill{-webkit-text-fill-color:var(--tui-text-primary)!important;caret-color:var(--tui-text-primary)!important;transition:background-color 600000s 0s}.t-input.t-input.t-input_card:not(:-webkit-autofill,[chrome-autofilled]):not(:focus:placeholder-shown),.t-input.t-input.t-input_card.t-input_filled{caret-color:var(--tui-text-primary);color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button{content:none!important;position:absolute;inset:-60rem 0 0 -60rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input_inert{pointer-events:none}.t-input_cvc_hidden{-webkit-text-security:disc}.t-icons{position:absolute;z-index:1;display:flex;inset-inline-end:1rem;align-items:center;block-size:var(--t-height);gap:.25rem;pointer-events:none}.t-icon-outlet{display:flex;margin-inline-end:.25rem}.t-icon{cursor:pointer;pointer-events:auto}.t-icon:before{font-size:1rem}.t-label{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;max-inline-size:6.5rem;margin:0 var(--t-padding);line-height:var(--t-height);color:var(--tui-text-secondary)}.t-label:empty:before{content:attr(data-label)}input[chrome-autofilled]~.t-label,input:-webkit-autofill~.t-label,.t-label_raised{font-size:var(--t-label-size);transform:translateY(var(--t-label))}:host([data-mode~=\"invalid\"]) input[chrome-autofilled]~.t-label,:host([data-mode~=\"invalid\"]) input:-webkit-autofill~.t-label,:host([data-mode~=\"invalid\"]) .t-label_raised{color:var(--tui-text-negative)}:host([data-focus=\"true\"]) .t-label{color:var(--tui-text-primary)}.t-ghost{visibility:hidden}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"], outputs: ["maskitoChange", "maskitoElementChange"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "directive", type: TuiChevron, selector: "[tuiChevron]", inputs: ["tuiChevron"] }, { kind: "pipe", type: TuiFormatCardPipe, name: "tuiFormatCard" }, { kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }, { kind: "pipe", type: TuiIconPipe, name: "tuiIcon" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "directive", type: TuiTransitioned, selector: "[tuiTransitioned]" }, { kind: "directive", type: WaResizeObserver, selector: "[waResizeObserver]", inputs: ["waResizeBox"], outputs: ["waResizeObserver"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
262
262
  }
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardGroup, decorators: [{
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardGroup, decorators: [{
264
264
  type: Component,
265
265
  args: [{ selector: 'tui-input-card-group', imports: [
266
266
  FormsModule,
@@ -38,8 +38,8 @@ class TuiInputCardComponent {
38
38
  const onChanges = this.accessor.onChange.bind(this.accessor);
39
39
  this.accessor.onChange = (value) => onChanges(value.replaceAll(CHAR_NO_BREAK_SPACE, ''));
40
40
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
42
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiInputCardComponent, isStandalone: true, selector: "input[tuiInputCard]", outputs: { binChange: "binChange" }, host: { attributes: { "inputmode": "numeric", "placeholder": "0000 0000 0000 0000", "ngSkipHydration": "true", "autocomplete": "cc-number" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0, template: `
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
42
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TuiInputCardComponent, isStandalone: true, selector: "input[tuiInputCard]", outputs: { binChange: "binChange" }, host: { attributes: { "inputmode": "numeric", "placeholder": "0000 0000 0000 0000", "ngSkipHydration": "true", "autocomplete": "cc-number" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0, template: `
43
43
  @if (image()) {
44
44
  <img
45
45
  *tuiTextfieldContent
@@ -48,9 +48,9 @@ class TuiInputCardComponent {
48
48
  [src]="image() | tuiIcon"
49
49
  />
50
50
  }
51
- `, isInline: true, styles: ["tui-textfield:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system:not(:first-child){display:none}tui-textfield:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system{inline-size:1.5rem}tui-textfield[data-size=l]:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system{inline-size:2rem}\n"], dependencies: [{ kind: "pipe", type: TuiIconPipe, name: "tuiIcon" }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
51
+ `, isInline: true, styles: ["tui-textfield:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system:not(:first-child){display:none}tui-textfield:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system{inline-size:1.5rem}tui-textfield[data-size=l]:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system{inline-size:2rem}\n"], dependencies: [{ kind: "pipe", type: TuiIconPipe, name: "tuiIcon" }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCardComponent, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCardComponent, decorators: [{
54
54
  type: Component,
55
55
  args: [{ selector: 'input[tuiInputCard]', imports: [TuiIconPipe, TuiTextfieldContent], template: `
56
56
  @if (image()) {
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
66
66
  placeholder: '0000 0000 0000 0000',
67
67
  ngSkipHydration: 'true',
68
68
  autocomplete: 'cc-number',
69
- }, styles: ["tui-textfield:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system:not(:first-child){display:none}tui-textfield:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system{inline-size:1.5rem}tui-textfield[data-size=l]:where(*[data-tui-version=\"5.0.0\"]) .t-payment-system{inline-size:2rem}\n"] }]
69
+ }, styles: ["tui-textfield:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system:not(:first-child){display:none}tui-textfield:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system{inline-size:1.5rem}tui-textfield[data-size=l]:where(*[data-tui-version=\"5.1.0\"]) .t-payment-system{inline-size:2rem}\n"] }]
70
70
  }] });
71
71
 
72
72
  class TuiInputCVCDirective {
@@ -75,10 +75,10 @@ class TuiInputCVCDirective {
75
75
  this.hidden = input(true);
76
76
  this.length = input(3);
77
77
  }
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCVCDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
79
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.19", type: TuiInputCVCDirective, isStandalone: true, selector: "input[tuiInputCVC]", inputs: { hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "inputmode": "numeric", "autocomplete": "cc-csc" }, listeners: { "copy.prevent": "(0)" }, properties: { "placeholder": "\"0\".repeat(length())", "style.-webkit-text-security": "hidden() ? \"disc\" : null" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0 }); }
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCVCDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
79
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.20", type: TuiInputCVCDirective, isStandalone: true, selector: "input[tuiInputCVC]", inputs: { hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "inputmode": "numeric", "autocomplete": "cc-csc" }, listeners: { "copy.prevent": "(0)" }, properties: { "placeholder": "\"0\".repeat(length())", "style.-webkit-text-security": "hidden() ? \"disc\" : null" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0 }); }
80
80
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputCVCDirective, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputCVCDirective, decorators: [{
82
82
  type: Directive,
83
83
  args: [{
84
84
  selector: 'input[tuiInputCVC]',
@@ -97,10 +97,10 @@ class TuiInputExpireDirective {
97
97
  constructor() {
98
98
  this.mask = tuiMaskito(TUI_MASK_EXPIRE);
99
99
  }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputExpireDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
101
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.19", type: TuiInputExpireDirective, isStandalone: true, selector: "input[tuiInputExpire]", host: { attributes: { "inputmode": "numeric", "placeholder": "00/00", "translate": "no", "maxlength": "5", "name": "ccexpiryyear", "autocomplete": "cc-exp" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0 }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputExpireDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
101
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: TuiInputExpireDirective, isStandalone: true, selector: "input[tuiInputExpire]", host: { attributes: { "inputmode": "numeric", "placeholder": "00/00", "translate": "no", "maxlength": "5", "name": "ccexpiryyear", "autocomplete": "cc-exp" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithInput }], ngImport: i0 }); }
102
102
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputExpireDirective, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiInputExpireDirective, decorators: [{
104
104
  type: Directive,
105
105
  args: [{
106
106
  selector: 'input[tuiInputExpire]',
@@ -18,10 +18,10 @@ class TuiThumbnailCard {
18
18
  this.iconStart = input('');
19
19
  this.iconEnd = input('');
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiThumbnailCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiThumbnailCard, isStandalone: true, selector: "tui-thumbnail-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, paymentSystem: { classPropertyName: "paymentSystem", publicName: "paymentSystem", isSignal: true, isRequired: false, transformFunction: null }, iconStart: { classPropertyName: "iconStart", publicName: "iconStart", isSignal: true, isRequired: false, transformFunction: null }, iconEnd: { classPropertyName: "iconEnd", publicName: "iconEnd", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()" } }, ngImport: i0, template: "<div class=\"t-start t-icon\">\n <ng-content select=\"img\">\n @if (iconStart()) {\n <tui-icon\n class=\"t-icon\"\n [icon]=\"iconStart()\"\n />\n }\n </ng-content>\n</div>\n\n@if (iconEnd()) {\n <tui-icon\n class=\"t-end t-icon\"\n [icon]=\"iconEnd()\"\n />\n}\n\n<div class=\"t-content\">\n <ng-content />\n</div>\n\n@let system = paymentSystem();\n\n@if (system) {\n <tui-icon\n class=\"t-logo\"\n [icon]=\"options.icons[system]\"\n />\n}\n", styles: [":host{position:relative;display:inline-block;flex-shrink:0;background:#000;color:#fff;transform-style:preserve-3d;overflow:hidden;box-shadow:inset 0 0 0 1px var(--tui-background-neutral-1);--t-logo-height: .8125rem}:host:before{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit}:host:after{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";backface-visibility:hidden;transform:rotateY(180deg) translateZ(1px);color:#b0b0b0;border-radius:inherit;background:linear-gradient(to bottom,currentColor 0 20%,#959595 20% 40%,currentColor 40%)}:host[data-size=xs],:host[data-size=s]{font-size:0;border-radius:.25rem}:host[data-size=xs]{inline-size:2rem;block-size:1.375rem}:host[data-size=s]{inline-size:2.5rem;block-size:1.625rem}:host[data-size=m]{inline-size:3rem;block-size:2rem;border-radius:.3125rem;font:normal .5625rem / var(--t-logo-height) var(--tui-typography-family-text)}:host[data-size=l]{inline-size:3.375rem;block-size:2.25rem;border-radius:.375rem;font:normal .6875rem / var(--t-logo-height) var(--tui-typography-family-text)}.t-start{position:absolute;display:flex;inset-block-start:0;inset-inline-start:0;transform-origin:top var(--tui-inline-start)}:host[data-size=xs] .t-start,:host[data-size=s] .t-start{transform:translate(calc(var(--tui-inline) * .125rem),.125rem) scale(.625)}:host[data-size=m] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem) scale(.75)}:host[data-size=l] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem)}.t-end{position:absolute;inset-block-start:.1875rem;inset-inline-end:.1875rem}:host[data-size=xs] .t-end,:host[data-size=s] .t-end{display:none}:host[data-size=m] .t-end{font-size:.875rem}:host[data-size=m] .t-end:before{transform:scale(.5)}:host[data-size=l] .t-end:before{transform:scale(.625)}.t-end:after{--tui-icon-size: 100%;position:absolute;inset-block-start:0;inset-inline-start:0;inset-block-end:0;inset-inline-end:0;content:\"\";z-index:-1;display:block;transform:none;border-radius:100%;background:currentColor;opacity:.35}.t-end:before{color:#fff}.t-logo{position:absolute;inset-inline-end:.25rem;inset-block-end:0;block-size:var(--t-logo-height);transform-origin:var(--tui-inline-end)}:host[data-size=xs] .t-logo{inset-inline-end:.125rem}:host[data-size=m] .t-logo,:host[data-size=l] .t-logo{inset-block-end:.0625rem}.t-logo:before{block-size:100%;background-position:var(--tui-inline-end);background-size:contain;-webkit-mask-position:var(--tui-inline-end);mask-position:var(--tui-inline-end);-webkit-mask-size:contain;mask-size:contain}.t-content{position:absolute}:host[data-size=m] .t-content{inset-inline-start:.1875rem;inset-block-end:.0625rem}:host[data-size=l] .t-content{inset-inline-start:.25rem;inset-block-end:.0625rem}.t-icon{inline-size:1em;block-size:1em;font-size:1rem}\n"], dependencies: [{ kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiThumbnailCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TuiThumbnailCard, isStandalone: true, selector: "tui-thumbnail-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, paymentSystem: { classPropertyName: "paymentSystem", publicName: "paymentSystem", isSignal: true, isRequired: false, transformFunction: null }, iconStart: { classPropertyName: "iconStart", publicName: "iconStart", isSignal: true, isRequired: false, transformFunction: null }, iconEnd: { classPropertyName: "iconEnd", publicName: "iconEnd", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()" } }, ngImport: i0, template: "<div class=\"t-start t-icon\">\n <ng-content select=\"img\">\n @if (iconStart()) {\n <tui-icon\n class=\"t-icon\"\n [icon]=\"iconStart()\"\n />\n }\n </ng-content>\n</div>\n\n@if (iconEnd()) {\n <tui-icon\n class=\"t-end t-icon\"\n [icon]=\"iconEnd()\"\n />\n}\n\n<div class=\"t-content\">\n <ng-content />\n</div>\n\n@let system = paymentSystem();\n\n@if (system) {\n <tui-icon\n class=\"t-logo\"\n [icon]=\"options.icons[system]\"\n />\n}\n", styles: [":host{position:relative;display:inline-block;flex-shrink:0;background:#000;color:#fff;transform-style:preserve-3d;overflow:hidden;box-shadow:inset 0 0 0 1px var(--tui-background-neutral-1);--t-logo-height: .8125rem}:host:before{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit}:host:after{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";backface-visibility:hidden;transform:rotateY(180deg) translateZ(1px);color:#b0b0b0;border-radius:inherit;background:linear-gradient(to bottom,currentColor 0 20%,#959595 20% 40%,currentColor 40%)}:host[data-size=xs],:host[data-size=s]{font-size:0;border-radius:.25rem}:host[data-size=xs]{inline-size:2rem;block-size:1.375rem}:host[data-size=s]{inline-size:2.5rem;block-size:1.625rem}:host[data-size=m]{inline-size:3rem;block-size:2rem;border-radius:.3125rem;font:normal .5625rem / var(--t-logo-height) var(--tui-typography-family-text)}:host[data-size=l]{inline-size:3.375rem;block-size:2.25rem;border-radius:.375rem;font:normal .6875rem / var(--t-logo-height) var(--tui-typography-family-text)}.t-start{position:absolute;display:flex;inset-block-start:0;inset-inline-start:0;transform-origin:top var(--tui-inline-start)}:host[data-size=xs] .t-start,:host[data-size=s] .t-start{transform:translate(calc(var(--tui-inline) * .125rem),.125rem) scale(.625)}:host[data-size=m] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem) scale(.75)}:host[data-size=l] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem)}.t-end{position:absolute;inset-block-start:.1875rem;inset-inline-end:.1875rem}:host[data-size=xs] .t-end,:host[data-size=s] .t-end{display:none}:host[data-size=m] .t-end{font-size:.875rem}:host[data-size=m] .t-end:before{transform:scale(.5)}:host[data-size=l] .t-end:before{transform:scale(.625)}.t-end:after{--tui-icon-size: 100%;position:absolute;inset-block-start:0;inset-inline-start:0;inset-block-end:0;inset-inline-end:0;content:\"\";z-index:-1;display:block;transform:none;border-radius:100%;background:currentColor;opacity:.35}.t-end:before{color:#fff}.t-logo{position:absolute;inset-inline-end:.25rem;inset-block-end:0;block-size:var(--t-logo-height);transform-origin:var(--tui-inline-end)}:host[data-size=xs] .t-logo{inset-inline-end:.125rem}:host[data-size=m] .t-logo,:host[data-size=l] .t-logo{inset-block-end:.0625rem}.t-logo:before{block-size:100%;background-position:var(--tui-inline-end);background-size:contain;-webkit-mask-position:var(--tui-inline-end);mask-position:var(--tui-inline-end);-webkit-mask-size:contain;mask-size:contain}.t-content{position:absolute}:host[data-size=m] .t-content{inset-inline-start:.1875rem;inset-block-end:.0625rem}:host[data-size=l] .t-content{inset-inline-start:.25rem;inset-block-end:.0625rem}.t-icon{inline-size:1em;block-size:1em;font-size:1rem}\n"], dependencies: [{ kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiThumbnailCard, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiThumbnailCard, decorators: [{
25
25
  type: Component,
26
26
  args: [{ selector: 'tui-thumbnail-card', imports: [TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: { '[attr.data-size]': 'size()' }, template: "<div class=\"t-start t-icon\">\n <ng-content select=\"img\">\n @if (iconStart()) {\n <tui-icon\n class=\"t-icon\"\n [icon]=\"iconStart()\"\n />\n }\n </ng-content>\n</div>\n\n@if (iconEnd()) {\n <tui-icon\n class=\"t-end t-icon\"\n [icon]=\"iconEnd()\"\n />\n}\n\n<div class=\"t-content\">\n <ng-content />\n</div>\n\n@let system = paymentSystem();\n\n@if (system) {\n <tui-icon\n class=\"t-logo\"\n [icon]=\"options.icons[system]\"\n />\n}\n", styles: [":host{position:relative;display:inline-block;flex-shrink:0;background:#000;color:#fff;transform-style:preserve-3d;overflow:hidden;box-shadow:inset 0 0 0 1px var(--tui-background-neutral-1);--t-logo-height: .8125rem}:host:before{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit}:host:after{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;content:\"\";backface-visibility:hidden;transform:rotateY(180deg) translateZ(1px);color:#b0b0b0;border-radius:inherit;background:linear-gradient(to bottom,currentColor 0 20%,#959595 20% 40%,currentColor 40%)}:host[data-size=xs],:host[data-size=s]{font-size:0;border-radius:.25rem}:host[data-size=xs]{inline-size:2rem;block-size:1.375rem}:host[data-size=s]{inline-size:2.5rem;block-size:1.625rem}:host[data-size=m]{inline-size:3rem;block-size:2rem;border-radius:.3125rem;font:normal .5625rem / var(--t-logo-height) var(--tui-typography-family-text)}:host[data-size=l]{inline-size:3.375rem;block-size:2.25rem;border-radius:.375rem;font:normal .6875rem / var(--t-logo-height) var(--tui-typography-family-text)}.t-start{position:absolute;display:flex;inset-block-start:0;inset-inline-start:0;transform-origin:top var(--tui-inline-start)}:host[data-size=xs] .t-start,:host[data-size=s] .t-start{transform:translate(calc(var(--tui-inline) * .125rem),.125rem) scale(.625)}:host[data-size=m] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem) scale(.75)}:host[data-size=l] .t-start{transform:translate(calc(var(--tui-inline) * .1875rem),.1875rem)}.t-end{position:absolute;inset-block-start:.1875rem;inset-inline-end:.1875rem}:host[data-size=xs] .t-end,:host[data-size=s] .t-end{display:none}:host[data-size=m] .t-end{font-size:.875rem}:host[data-size=m] .t-end:before{transform:scale(.5)}:host[data-size=l] .t-end:before{transform:scale(.625)}.t-end:after{--tui-icon-size: 100%;position:absolute;inset-block-start:0;inset-inline-start:0;inset-block-end:0;inset-inline-end:0;content:\"\";z-index:-1;display:block;transform:none;border-radius:100%;background:currentColor;opacity:.35}.t-end:before{color:#fff}.t-logo{position:absolute;inset-inline-end:.25rem;inset-block-end:0;block-size:var(--t-logo-height);transform-origin:var(--tui-inline-end)}:host[data-size=xs] .t-logo{inset-inline-end:.125rem}:host[data-size=m] .t-logo,:host[data-size=l] .t-logo{inset-block-end:.0625rem}.t-logo:before{block-size:100%;background-position:var(--tui-inline-end);background-size:contain;-webkit-mask-position:var(--tui-inline-end);mask-position:var(--tui-inline-end);-webkit-mask-size:contain;mask-size:contain}.t-content{position:absolute}:host[data-size=m] .t-content{inset-inline-start:.1875rem;inset-block-end:.0625rem}:host[data-size=l] .t-content{inset-inline-start:.25rem;inset-block-end:.0625rem}.t-icon{inline-size:1em;block-size:1em;font-size:1rem}\n"] }]
27
27
  }] });
@@ -28,7 +28,7 @@ class TuiAmountPipe {
28
28
  constructor() {
29
29
  this.options = inject(TUI_AMOUNT_OPTIONS);
30
30
  this.format = inject(TUI_NUMBER_FORMAT);
31
- this.value = signal(NaN);
31
+ this.value = signal(Number.NaN);
32
32
  this.currency = signal(this.options.currency);
33
33
  this.currencyAlign = signal(this.options.currencyAlign);
34
34
  this.formatted = computed(() => {
@@ -58,10 +58,10 @@ class TuiAmountPipe {
58
58
  });
59
59
  return this.formatted();
60
60
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiAmountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
62
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: TuiAmountPipe, isStandalone: true, name: "tuiAmount", pure: false }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiAmountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
62
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TuiAmountPipe, isStandalone: true, name: "tuiAmount", pure: false }); }
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiAmountPipe, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiAmountPipe, decorators: [{
65
65
  type: Pipe,
66
66
  args: [{ name: 'tuiAmount', pure: false }]
67
67
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-commerce-pipes-amount.mjs","sources":["../../../projects/addon-commerce/pipes/amount/amount.options.ts","../../../projects/addon-commerce/pipes/amount/amount.utils.ts","../../../projects/addon-commerce/pipes/amount/amount.pipe.ts","../../../projects/addon-commerce/pipes/amount/taiga-ui-addon-commerce-pipes-amount.ts"],"sourcesContent":["import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nimport {type TuiAmountSign} from './amount.types';\n\nexport interface TuiAmountOptions {\n readonly currency: TuiCurrencyVariants;\n readonly currencyAlign: TuiHorizontalDirection;\n readonly sign: TuiAmountSign;\n}\n\nexport const TUI_AMOUNT_DEFAULT_OPTIONS: TuiAmountOptions = {\n currency: null,\n currencyAlign: 'start',\n sign: 'negative-only',\n};\n\nexport const [TUI_AMOUNT_OPTIONS, tuiAmountOptionsProvider] = tuiCreateOptions(\n TUI_AMOUNT_DEFAULT_OPTIONS,\n);\n","import {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk/constants';\n\nimport {type TuiAmountSign, type TuiAmountSignSymbol} from './amount.types';\n\nexport function tuiFormatSignSymbol(\n value: number,\n sign: TuiAmountSign,\n): TuiAmountSignSymbol {\n if (sign === 'never' || !value || (sign === 'negative-only' && value > 0)) {\n return '';\n }\n\n if (sign === 'force-negative' || (value < 0 && sign !== 'force-positive')) {\n return CHAR_MINUS;\n }\n\n return CHAR_PLUS;\n}\n","import {\n computed,\n inject,\n Pipe,\n type PipeTransform,\n signal,\n untracked,\n} from '@angular/core';\nimport {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiFormatCurrency} from '@taiga-ui/addon-commerce/utils';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {tuiFormatNumber} from '@taiga-ui/core/utils/format';\n\nimport {TUI_AMOUNT_OPTIONS} from './amount.options';\nimport {tuiFormatSignSymbol} from './amount.utils';\n\nconst DEFAULT_PRECISION = 2;\n\n@Pipe({name: 'tuiAmount', pure: false})\nexport class TuiAmountPipe implements PipeTransform {\n private readonly options = inject(TUI_AMOUNT_OPTIONS);\n private readonly format = inject(TUI_NUMBER_FORMAT);\n private readonly value = signal(NaN);\n private readonly currency = signal(this.options.currency);\n private readonly currencyAlign = signal(this.options.currencyAlign);\n private readonly formatted = computed(() => {\n const format = this.format();\n const currencySymbol = tuiFormatCurrency(this.currency());\n const formatted = tuiFormatNumber(Math.abs(this.value()), {\n ...format,\n precision: Number.isNaN(format.precision)\n ? DEFAULT_PRECISION\n : format.precision,\n });\n const sign =\n formatted === '0' ? '' : tuiFormatSignSymbol(this.value(), this.options.sign);\n const space =\n currencySymbol &&\n (currencySymbol?.length > 1 || this.currencyAlign() === 'end')\n ? CHAR_NO_BREAK_SPACE\n : '';\n\n return this.currencyAlign() === 'end'\n ? `${sign}${formatted}${space}${currencySymbol}`\n : `${sign}${currencySymbol}${space}${formatted}`;\n });\n\n public transform(\n value: number,\n currency: TuiCurrencyVariants = this.options.currency,\n currencyAlign: TuiHorizontalDirection = this.options.currencyAlign,\n ): string {\n untracked(() => {\n this.value.set(value);\n this.currency.set(currency);\n this.currencyAlign.set(currencyAlign);\n });\n\n return this.formatted();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYO,MAAM,0BAA0B,GAAqB;AACxD,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,aAAa,EAAE,OAAO;AACtB,IAAA,IAAI,EAAE,eAAe;;AAGlB,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GAAG,gBAAgB,CAC1E,0BAA0B;;ACfxB,SAAU,mBAAmB,CAC/B,KAAa,EACb,IAAmB,EAAA;AAEnB,IAAA,IAAI,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,KAAK,eAAe,IAAI,KAAK,GAAG,CAAC,CAAC,EAAE;AACvE,QAAA,O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IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,KAAK;AACzD,kBAAE;kBACA,EAAE;AAEZ,YAAA,OAAO,IAAI,CAAC,aAAa,EAAE,KAAK;kBAC1B,GAAG,IAAI,CAAA,EAAG,SAAS,CAAA,EAAG,KAAK,CAAA,EAAG,cAAc,CAAA;kBAC5C,CAAA,EAAG,IAAI,CAAA,EAAG,cAAc,GAAG,KAAK,CAAA,EAAG,SAAS,CAAA,CAAE;AACxD,QAAA,CAAC,CAAC;AAeL,IAAA;AAbU,IAAA,SAAS,CACZ,KAAa,EACb,QAAA,GAAgC,IAAI,CAAC,OAAO,CAAC,QAAQ,EACrD,aAAA,GAAwC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAA;QAElE,SAAS,CAAC,MAAK;AACX,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3B,YAAA,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC;AACzC,QAAA,CAAC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,SAAS,EAAE;IAC3B;+GAxCS,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAC;;;ACpBtC;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-commerce-pipes-amount.mjs","sources":["../../../projects/addon-commerce/pipes/amount/amount.options.ts","../../../projects/addon-commerce/pipes/amount/amount.utils.ts","../../../projects/addon-commerce/pipes/amount/amount.pipe.ts","../../../projects/addon-commerce/pipes/amount/taiga-ui-addon-commerce-pipes-amount.ts"],"sourcesContent":["import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nimport {type TuiAmountSign} from './amount.types';\n\nexport interface TuiAmountOptions {\n readonly currency: TuiCurrencyVariants;\n readonly currencyAlign: TuiHorizontalDirection;\n readonly sign: TuiAmountSign;\n}\n\nexport const TUI_AMOUNT_DEFAULT_OPTIONS: TuiAmountOptions = {\n currency: null,\n currencyAlign: 'start',\n sign: 'negative-only',\n};\n\nexport const [TUI_AMOUNT_OPTIONS, tuiAmountOptionsProvider] = tuiCreateOptions(\n TUI_AMOUNT_DEFAULT_OPTIONS,\n);\n","import {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk/constants';\n\nimport {type TuiAmountSign, type TuiAmountSignSymbol} from './amount.types';\n\nexport function tuiFormatSignSymbol(\n value: number,\n sign: TuiAmountSign,\n): TuiAmountSignSymbol {\n if (sign === 'never' || !value || (sign === 'negative-only' && value > 0)) {\n return '';\n }\n\n if (sign === 'force-negative' || (value < 0 && sign !== 'force-positive')) {\n return CHAR_MINUS;\n }\n\n return CHAR_PLUS;\n}\n","import {\n computed,\n inject,\n Pipe,\n type PipeTransform,\n signal,\n untracked,\n} from '@angular/core';\nimport {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiFormatCurrency} from '@taiga-ui/addon-commerce/utils';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {tuiFormatNumber} from '@taiga-ui/core/utils/format';\n\nimport {TUI_AMOUNT_OPTIONS} from './amount.options';\nimport {tuiFormatSignSymbol} from './amount.utils';\n\nconst DEFAULT_PRECISION = 2;\n\n@Pipe({name: 'tuiAmount', pure: false})\nexport class TuiAmountPipe implements PipeTransform {\n private readonly options = inject(TUI_AMOUNT_OPTIONS);\n private readonly format = inject(TUI_NUMBER_FORMAT);\n private readonly value = signal(Number.NaN);\n private readonly currency = signal(this.options.currency);\n private readonly currencyAlign = signal(this.options.currencyAlign);\n private readonly formatted = computed(() => {\n const format = this.format();\n const currencySymbol = tuiFormatCurrency(this.currency());\n const formatted = tuiFormatNumber(Math.abs(this.value()), {\n ...format,\n precision: Number.isNaN(format.precision)\n ? DEFAULT_PRECISION\n : format.precision,\n });\n const sign =\n formatted === '0' ? '' : tuiFormatSignSymbol(this.value(), this.options.sign);\n const space =\n currencySymbol &&\n (currencySymbol?.length > 1 || this.currencyAlign() === 'end')\n ? CHAR_NO_BREAK_SPACE\n : '';\n\n return this.currencyAlign() === 'end'\n ? `${sign}${formatted}${space}${currencySymbol}`\n : `${sign}${currencySymbol}${space}${formatted}`;\n });\n\n public transform(\n value: number,\n currency: TuiCurrencyVariants = this.options.currency,\n currencyAlign: TuiHorizontalDirection = this.options.currencyAlign,\n ): string {\n untracked(() => {\n this.value.set(value);\n this.currency.set(currency);\n this.currencyAlign.set(currencyAlign);\n });\n\n return this.formatted();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYO,MAAM,0BAA0B,GAAqB;AACxD,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,aAAa,EAAE,OAAO;AACtB,IAAA,IAAI,EAAE,eAAe;;AAGlB,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GAAG,gBAAgB,CAC1E,0BAA0B;;ACfxB,SAAU,mBAAmB,CAC/B,KAAa,EACb,IAAmB,EAAA;AAEnB,IAAA,IAAI,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,KAAK,eAAe,IAAI,KAAK,GAAG,CAAC,CAAC,EAAE;AACvE,QA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ngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: TuiCurrencyPipe, isStandalone: true, name: "tuiCurrency" }); }
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TuiCurrencyPipe, isStandalone: true, name: "tuiCurrency" }); }
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiCurrencyPipe, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiCurrencyPipe, decorators: [{
13
13
  type: Pipe,
14
14
  args: [{ name: 'tuiCurrency' }]
15
15
  }] });
@@ -10,7 +10,7 @@ class TuiDecimalPipe {
10
10
  providers: [{ provide: TuiAmountPipe }],
11
11
  parent: inject(INJECTOR),
12
12
  }).get(TuiAmountPipe);
13
- this.value = signal(NaN);
13
+ this.value = signal(Number.NaN);
14
14
  this.currency = signal('');
15
15
  this.formatted = computed(() => {
16
16
  const format = this.format();
@@ -26,10 +26,10 @@ class TuiDecimalPipe {
26
26
  });
27
27
  return this.formatted();
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
30
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: TuiDecimalPipe, isStandalone: true, name: "tuiDecimal", pure: false }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
30
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TuiDecimalPipe, isStandalone: true, name: "tuiDecimal", pure: false }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiDecimalPipe, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiDecimalPipe, decorators: [{
33
33
  type: Pipe,
34
34
  args: [{ name: 'tuiDecimal', pure: false }]
35
35
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-commerce-pipes-decimal.mjs","sources":["../../../projects/addon-commerce/pipes/decimal/decimal.pipe.ts","../../../projects/addon-commerce/pipes/decimal/taiga-ui-addon-commerce-pipes-decimal.ts"],"sourcesContent":["import {\n computed,\n inject,\n INJECTOR,\n Injector,\n Pipe,\n type PipeTransform,\n signal,\n untracked,\n} from '@angular/core';\nimport {TuiAmountPipe} from '@taiga-ui/addon-commerce/pipes/amount';\nimport {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\n\n@Pipe({name: 'tuiDecimal', pure: false})\nexport class TuiDecimalPipe implements PipeTransform {\n private readonly format = inject(TUI_NUMBER_FORMAT);\n private readonly amountPipe = Injector.create({\n providers: [{provide: TuiAmountPipe}],\n parent: inject(INJECTOR),\n }).get(TuiAmountPipe);\n\n private readonly value = signal(NaN);\n private readonly currency = signal<TuiCurrencyVariants>('');\n private readonly formatted = computed(() => {\n const format = this.format();\n const amount = this.amountPipe.transform(this.value(), this.currency());\n const [, decimal] = amount.split(format.decimalSeparator);\n\n return decimal ? `${format.decimalSeparator}${decimal}` : '';\n });\n\n public transform(value: number, currency: TuiCurrencyVariants = ''): string {\n untracked(() => {\n this.value.set(value);\n this.currency.set(currency);\n });\n\n return this.formatted();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAea,cAAc,CAAA;AAD3B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC1C,YAAA,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,aAAa,EAAC,CAAC;AACrC,YAAA,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;AAC3B,SAAA,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;AAEJ,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC;AACnB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAsB,EAAE,CAAC;AAC1C,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AACvC,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;AAC5B,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;AACvE,YAAA,MAAM,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC;AAEzD,YAAA,OAAO,OAAO,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAA,EAAG,OAAO,CAAA,CAAE,GAAG,EAAE;AAChE,QAAA,CAAC,CAAC;AAUL,IAAA;AARU,IAAA,SAAS,CAAC,KAAa,EAAE,QAAA,GAAgC,EAAE,EAAA;QAC9D,SAAS,CAAC,MAAK;AACX,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC/B,QAAA,CAAC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,SAAS,EAAE;IAC3B;+GAxBS,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAC;;;ACdvC;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-commerce-pipes-decimal.mjs","sources":["../../../projects/addon-commerce/pipes/decimal/decimal.pipe.ts","../../../projects/addon-commerce/pipes/decimal/taiga-ui-addon-commerce-pipes-decimal.ts"],"sourcesContent":["import {\n computed,\n inject,\n INJECTOR,\n Injector,\n Pipe,\n type PipeTransform,\n signal,\n untracked,\n} from '@angular/core';\nimport {TuiAmountPipe} from '@taiga-ui/addon-commerce/pipes/amount';\nimport {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\n\n@Pipe({name: 'tuiDecimal', pure: false})\nexport class TuiDecimalPipe implements PipeTransform {\n private readonly format = inject(TUI_NUMBER_FORMAT);\n private readonly amountPipe = Injector.create({\n providers: [{provide: TuiAmountPipe}],\n parent: inject(INJECTOR),\n }).get(TuiAmountPipe);\n\n private readonly value = signal(Number.NaN);\n private readonly currency = signal<TuiCurrencyVariants>('');\n private readonly formatted = computed(() => {\n const format = this.format();\n const amount = this.amountPipe.transform(this.value(), this.currency());\n const [, decimal] = amount.split(format.decimalSeparator);\n\n return decimal ? `${format.decimalSeparator}${decimal}` : '';\n });\n\n public transform(value: number, currency: TuiCurrencyVariants = ''): string {\n untracked(() => {\n this.value.set(value);\n this.currency.set(currency);\n });\n\n return this.formatted();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAea,cAAc,CAAA;AAD3B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC1C,YAAA,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,aAAa,EAAC,CAAC;AACrC,YAAA,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;AAC3B,SAAA,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;AAEJ,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;AAC1B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAsB,EAAE,CAAC;AAC1C,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AACvC,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;AAC5B,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;AACvE,YAAA,MAAM,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC;AAEzD,YAAA,OAAO,OAAO,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAA,EAAG,OAAO,CAAA,CAAE,GAAG,EAAE;AAChE,QAAA,CAAC,CAAC;AAUL,IAAA;AARU,IAAA,SAAS,CAAC,KAAa,EAAE,QAAA,GAAgC,EAAE,EAAA;QAC9D,SAAS,CAAC,MAAK;AACX,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC/B,QAAA,CAAC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,SAAS,EAAE;IAC3B;+GAxBS,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAC;;;ACdvC;;AAEG;;;;"}
@@ -11,10 +11,10 @@ class TuiFormatCardPipe {
11
11
  .join('')
12
12
  : '';
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiFormatCardPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
15
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: TuiFormatCardPipe, isStandalone: true, name: "tuiFormatCard" }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiFormatCardPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
15
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TuiFormatCardPipe, isStandalone: true, name: "tuiFormatCard" }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiFormatCardPipe, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiFormatCardPipe, decorators: [{
18
18
  type: Pipe,
19
19
  args: [{ name: 'tuiFormatCard' }]
20
20
  }] });
@@ -386,7 +386,7 @@ function tuiIsCardNumberValid(value) {
386
386
  const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, '');
387
387
  const { length } = cardNumber;
388
388
  const arr = cardNumber.split('').map((char, index) => {
389
- const digit = parseInt(char, 10);
389
+ const digit = Number.parseInt(char, 10);
390
390
  if ((index + length) % 2 === 0) {
391
391
  const digitX2 = digit * 2;
392
392
  return digitX2 > 9 ? digitX2 - 9 : digitX2;
@@ -399,8 +399,8 @@ function tuiIsCardNumberValid(value) {
399
399
  function tuiIsExpireValid(expire, today = new Date()) {
400
400
  const currentMonth = today.getMonth() + 1;
401
401
  const currentYear = today.getFullYear() - 2000;
402
- const expireMonth = tuiClamp(parseInt(expire.slice(0, 2), 10), 1, 12);
403
- const expireYear = tuiClamp(parseInt(expire.slice(-2), 10), 0, 99);
402
+ const expireMonth = tuiClamp(Number.parseInt(expire.slice(0, 2), 10), 1, 12);
403
+ const expireYear = tuiClamp(Number.parseInt(expire.slice(-2), 10), 0, 99);
404
404
  return (expireYear > currentYear ||
405
405
  (currentYear === expireYear && expireMonth >= currentMonth));
406
406
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-commerce-utils.mjs","sources":["../../../projects/addon-commerce/utils/get-currency-symbol.ts","../../../projects/addon-commerce/utils/format-currency.ts","../../../projects/addon-commerce/utils/get-code-by-currency.ts","../../../projects/addon-commerce/utils/get-currency-by-code.ts","../../../projects/addon-commerce/utils/get-payment-system.ts","../../../projects/addon-commerce/utils/is-card-length-valid.ts","../../../projects/addon-commerce/utils/is-card-number-valid.ts","../../../projects/addon-commerce/utils/is-expire-valid.ts","../../../projects/addon-commerce/utils/taiga-ui-addon-commerce-utils.ts"],"sourcesContent":["import {\n TuiCurrency,\n TuiCurrencyCode,\n type TuiCurrencyVariants,\n} from '@taiga-ui/addon-commerce/types';\n\nexport function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null {\n switch (currency) {\n case TuiCurrency.ArmenianDram:\n case TuiCurrencyCode.ArmenianDram:\n return '֏';\n case TuiCurrency.AustralianDollar:\n case TuiCurrencyCode.AustralianDollar:\n return 'A$';\n case TuiCurrency.AzerbaijaniManat:\n case TuiCurrencyCode.AzerbaijaniManat:\n return '₼';\n case TuiCurrency.BahrainiDinar:\n case TuiCurrencyCode.BahrainiDinar:\n return 'BD';\n case TuiCurrency.Baht:\n case TuiCurrencyCode.Baht:\n return '฿';\n case TuiCurrency.BelarusianRuble:\n case TuiCurrencyCode.BelarusianRuble:\n return 'Br';\n case TuiCurrency.BrazilianReal:\n case TuiCurrencyCode.BrazilianReal:\n return 'R$';\n case TuiCurrency.CanadianDollar:\n case TuiCurrencyCode.CanadianDollar:\n return 'C$';\n case TuiCurrency.CzechKoruna:\n case TuiCurrencyCode.CzechKoruna:\n return 'Kč';\n case TuiCurrency.Dirham:\n case TuiCurrencyCode.Dirham:\n return 'Dh';\n case TuiCurrency.Dollar:\n case TuiCurrency.MexicanPeso:\n case TuiCurrencyCode.Dollar:\n case TuiCurrencyCode.MexicanPeso:\n return '$';\n case TuiCurrency.EastCaribbeanDollar:\n case TuiCurrencyCode.EastCaribbeanDollar:\n return 'EC$';\n case TuiCurrency.Euro:\n case TuiCurrencyCode.Euro:\n return '€';\n case TuiCurrency.Forint:\n case TuiCurrencyCode.Forint:\n return 'Ft';\n case TuiCurrency.GeorgianLari:\n case TuiCurrencyCode.GeorgianLari:\n return '₾';\n case TuiCurrency.HongKongDollar:\n case TuiCurrencyCode.HongKongDollar:\n return 'HK$';\n case TuiCurrency.Hryvnia:\n case TuiCurrencyCode.Hryvnia:\n return '₴';\n case TuiCurrency.IndianRupee:\n case TuiCurrencyCode.IndianRupee:\n return '₹';\n case TuiCurrency.IndonesianRupiah:\n case TuiCurrencyCode.IndonesianRupiah:\n return 'Rp';\n case TuiCurrency.IranianRial:\n case TuiCurrencyCode.IranianRial:\n return 'IR';\n case TuiCurrency.IsraeliShekel:\n case TuiCurrencyCode.IsraeliShekel:\n return '₪';\n case TuiCurrency.KyrgyzstanSom:\n case TuiCurrencyCode.KyrgyzstanSom:\n return 'c';\n case TuiCurrency.MalaysianRinggit:\n case TuiCurrencyCode.MalaysianRinggit:\n return 'RM';\n case TuiCurrency.MoldovanLeu:\n case TuiCurrencyCode.MoldovanLeu:\n return 'L';\n case TuiCurrency.MongolianTugrik:\n case TuiCurrencyCode.MongolianTugrik:\n return '₮';\n case TuiCurrency.NewTurkmenManat:\n case TuiCurrencyCode.NewTurkmenManat:\n return 'TMT';\n case TuiCurrency.PolandZloty:\n case TuiCurrencyCode.PolandZloty:\n return 'zł';\n case TuiCurrency.Pound:\n case TuiCurrencyCode.Pound:\n return '£';\n case TuiCurrency.Ruble:\n case TuiCurrencyCode.Ruble:\n return '₽';\n case TuiCurrency.SaudiRiyal:\n case TuiCurrencyCode.SaudiRiyal:\n return 'SR';\n case TuiCurrency.SerbianDinar:\n case TuiCurrencyCode.SerbianDinar:\n return 'DIN';\n case TuiCurrency.SingaporeDollar:\n case TuiCurrencyCode.SingaporeDollar:\n return 'S$';\n case TuiCurrency.SouthAfricanRand:\n case TuiCurrencyCode.SouthAfricanRand:\n return 'R';\n case TuiCurrency.SriLankanRupee:\n case TuiCurrencyCode.SriLankanRupee:\n return 'Rs.';\n case TuiCurrency.SwissFranc:\n case TuiCurrencyCode.SwissFranc:\n return '₣';\n case TuiCurrency.TajikistaniSomoni:\n case TuiCurrencyCode.TajikistaniSomoni:\n return 'SM';\n case TuiCurrency.Tenge:\n case TuiCurrencyCode.Tenge:\n return '₸';\n case TuiCurrency.TurkishLira:\n case TuiCurrencyCode.TurkishLira:\n return '₺';\n case TuiCurrency.UzbekSum:\n case TuiCurrencyCode.UzbekSum:\n return \"So'm\";\n case TuiCurrency.VietnameseDong:\n case TuiCurrencyCode.VietnameseDong:\n return 'đ';\n case TuiCurrency.Won:\n case TuiCurrencyCode.Won:\n return '₩';\n case TuiCurrency.Yen:\n case TuiCurrencyCode.Yen:\n return '¥';\n case TuiCurrency.YuanRenminbi:\n case TuiCurrencyCode.YuanRenminbi:\n return 'CN¥';\n default:\n return null;\n }\n}\n","import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiGetCurrencySymbol} from './get-currency-symbol';\n\nfunction stringifyCurrency(currency: TuiCurrencyVariants): string {\n return currency === null || tuiIsString(currency)\n ? currency || ''\n : String(currency).padStart(3, '0');\n}\n\nexport function tuiFormatCurrency(currency: TuiCurrencyVariants): string {\n const stringifiedCurrency = stringifyCurrency(currency);\n\n return tuiGetCurrencySymbol(stringifiedCurrency) || stringifiedCurrency;\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_CODE_DICTIONARY: Record<TuiCurrency, TuiCurrencyCode> = {\n [TuiCurrency.Ruble]: TuiCurrencyCode.Ruble,\n [TuiCurrency.Dollar]: TuiCurrencyCode.Dollar,\n [TuiCurrency.MexicanPeso]: TuiCurrencyCode.MexicanPeso,\n [TuiCurrency.MoldovanLeu]: TuiCurrencyCode.MoldovanLeu,\n [TuiCurrency.PolandZloty]: TuiCurrencyCode.PolandZloty,\n [TuiCurrency.SingaporeDollar]: TuiCurrencyCode.SingaporeDollar,\n [TuiCurrency.AustralianDollar]: TuiCurrencyCode.AustralianDollar,\n [TuiCurrency.HongKongDollar]: TuiCurrencyCode.HongKongDollar,\n [TuiCurrency.CanadianDollar]: TuiCurrencyCode.CanadianDollar,\n [TuiCurrency.CzechKoruna]: TuiCurrencyCode.CzechKoruna,\n [TuiCurrency.EastCaribbeanDollar]: TuiCurrencyCode.EastCaribbeanDollar,\n [TuiCurrency.Euro]: TuiCurrencyCode.Euro,\n [TuiCurrency.Forint]: TuiCurrencyCode.Forint,\n [TuiCurrency.Pound]: TuiCurrencyCode.Pound,\n [TuiCurrency.Baht]: TuiCurrencyCode.Baht,\n [TuiCurrency.BahrainiDinar]: TuiCurrencyCode.BahrainiDinar,\n [TuiCurrency.TurkishLira]: TuiCurrencyCode.TurkishLira,\n [TuiCurrency.YuanRenminbi]: TuiCurrencyCode.YuanRenminbi,\n [TuiCurrency.Yen]: TuiCurrencyCode.Yen,\n [TuiCurrency.IsraeliShekel]: TuiCurrencyCode.IsraeliShekel,\n [TuiCurrency.IndianRupee]: TuiCurrencyCode.IndianRupee,\n [TuiCurrency.SwissFranc]: TuiCurrencyCode.SwissFranc,\n [TuiCurrency.ArmenianDram]: TuiCurrencyCode.ArmenianDram,\n [TuiCurrency.Won]: TuiCurrencyCode.Won,\n [TuiCurrency.Tenge]: TuiCurrencyCode.Tenge,\n [TuiCurrency.Hryvnia]: TuiCurrencyCode.Hryvnia,\n [TuiCurrency.UzbekSum]: TuiCurrencyCode.UzbekSum,\n [TuiCurrency.KyrgyzstanSom]: TuiCurrencyCode.KyrgyzstanSom,\n [TuiCurrency.Dirham]: TuiCurrencyCode.Dirham,\n [TuiCurrency.TajikistaniSomoni]: TuiCurrencyCode.TajikistaniSomoni,\n [TuiCurrency.MalaysianRinggit]: TuiCurrencyCode.MalaysianRinggit,\n [TuiCurrency.BelarusianRuble]: TuiCurrencyCode.BelarusianRuble,\n [TuiCurrency.GeorgianLari]: TuiCurrencyCode.GeorgianLari,\n [TuiCurrency.AzerbaijaniManat]: TuiCurrencyCode.AzerbaijaniManat,\n [TuiCurrency.SriLankanRupee]: TuiCurrencyCode.SriLankanRupee,\n [TuiCurrency.SerbianDinar]: TuiCurrencyCode.SerbianDinar,\n [TuiCurrency.SaudiRiyal]: TuiCurrencyCode.SaudiRiyal,\n [TuiCurrency.MongolianTugrik]: TuiCurrencyCode.MongolianTugrik,\n [TuiCurrency.SouthAfricanRand]: TuiCurrencyCode.SouthAfricanRand,\n [TuiCurrency.IranianRial]: TuiCurrencyCode.IranianRial,\n [TuiCurrency.IndonesianRupiah]: TuiCurrencyCode.IndonesianRupiah,\n [TuiCurrency.VietnameseDong]: TuiCurrencyCode.VietnameseDong,\n [TuiCurrency.NewTurkmenManat]: TuiCurrencyCode.NewTurkmenManat,\n [TuiCurrency.BrazilianReal]: TuiCurrencyCode.BrazilianReal,\n};\n\nexport function tuiGetCodeByCurrency(code: TuiCurrency): TuiCurrencyCode | null {\n return TUI_CODE_DICTIONARY[code] ?? null;\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_CURRENCY_DICTIONARY: Record<TuiCurrencyCode, TuiCurrency> = {\n [TuiCurrencyCode.Ruble]: TuiCurrency.Ruble,\n [TuiCurrencyCode.Dollar]: TuiCurrency.Dollar,\n [TuiCurrencyCode.MexicanPeso]: TuiCurrency.MexicanPeso,\n [TuiCurrencyCode.MoldovanLeu]: TuiCurrency.MoldovanLeu,\n [TuiCurrencyCode.PolandZloty]: TuiCurrency.PolandZloty,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.AustralianDollar]: TuiCurrency.AustralianDollar,\n [TuiCurrencyCode.HongKongDollar]: TuiCurrency.HongKongDollar,\n [TuiCurrencyCode.CanadianDollar]: TuiCurrency.CanadianDollar,\n [TuiCurrencyCode.CzechKoruna]: TuiCurrency.CzechKoruna,\n [TuiCurrencyCode.EastCaribbeanDollar]: TuiCurrency.EastCaribbeanDollar,\n [TuiCurrencyCode.Euro]: TuiCurrency.Euro,\n [TuiCurrencyCode.Forint]: TuiCurrency.Forint,\n [TuiCurrencyCode.Pound]: TuiCurrency.Pound,\n [TuiCurrencyCode.Baht]: TuiCurrency.Baht,\n [TuiCurrencyCode.BahrainiDinar]: TuiCurrency.BahrainiDinar,\n [TuiCurrencyCode.TurkishLira]: TuiCurrency.TurkishLira,\n [TuiCurrencyCode.YuanRenminbi]: TuiCurrency.YuanRenminbi,\n [TuiCurrencyCode.Yen]: TuiCurrency.Yen,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IndianRupee]: TuiCurrency.IndianRupee,\n [TuiCurrencyCode.SwissFranc]: TuiCurrency.SwissFranc,\n [TuiCurrencyCode.ArmenianDram]: TuiCurrency.ArmenianDram,\n [TuiCurrencyCode.Won]: TuiCurrency.Won,\n [TuiCurrencyCode.Tenge]: TuiCurrency.Tenge,\n [TuiCurrencyCode.Hryvnia]: TuiCurrency.Hryvnia,\n [TuiCurrencyCode.UzbekSum]: TuiCurrency.UzbekSum,\n [TuiCurrencyCode.KyrgyzstanSom]: TuiCurrency.KyrgyzstanSom,\n [TuiCurrencyCode.Dirham]: TuiCurrency.Dirham,\n [TuiCurrencyCode.TajikistaniSomoni]: TuiCurrency.TajikistaniSomoni,\n [TuiCurrencyCode.MalaysianRinggit]: TuiCurrency.MalaysianRinggit,\n [TuiCurrencyCode.BelarusianRuble]: TuiCurrency.BelarusianRuble,\n [TuiCurrencyCode.GeorgianLari]: TuiCurrency.GeorgianLari,\n [TuiCurrencyCode.AzerbaijaniManat]: TuiCurrency.AzerbaijaniManat,\n [TuiCurrencyCode.SriLankanRupee]: TuiCurrency.SriLankanRupee,\n [TuiCurrencyCode.SerbianDinar]: TuiCurrency.SerbianDinar,\n [TuiCurrencyCode.SaudiRiyal]: TuiCurrency.SaudiRiyal,\n [TuiCurrencyCode.MongolianTugrik]: TuiCurrency.MongolianTugrik,\n [TuiCurrencyCode.SouthAfricanRand]: TuiCurrency.SouthAfricanRand,\n [TuiCurrencyCode.IranianRial]: TuiCurrency.IranianRial,\n [TuiCurrencyCode.IndonesianRupiah]: TuiCurrency.IndonesianRupiah,\n [TuiCurrencyCode.VietnameseDong]: TuiCurrency.VietnameseDong,\n [TuiCurrencyCode.NewTurkmenManat]: TuiCurrency.NewTurkmenManat,\n [TuiCurrencyCode.BrazilianReal]: TuiCurrency.BrazilianReal,\n};\n\nexport function tuiGetCurrencyByCode(currency: TuiCurrencyCode): TuiCurrency | null {\n return TUI_CURRENCY_DICTIONARY[currency] ?? null;\n}\n","import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\n// https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)\nexport const TUI_BIN_TABLE: ReadonlyArray<\n [paymentSystem: TuiPaymentSystem, start: number, end?: number]\n> = [\n ['mir', 2200, 2204],\n ['mastercard', 2221, 2720],\n ['jcb', 3528, 3589],\n ['amex', 34],\n ['amex', 37],\n ['dinersclub', 36],\n ['electron', 4026],\n ['electron', 4175],\n ['electron', 4405],\n ['electron', 4508],\n ['electron', 4844],\n ['electron', 4913],\n ['electron', 4917],\n ['visa', 4],\n ['verve', 506099, 506198],\n ['verve', 507865, 507964],\n ['maestro', 5018],\n ['maestro', 5020],\n ['maestro', 5038],\n ['maestro', 5090],\n ['maestro', 5890],\n ['maestro', 5893],\n ['rupay', 508],\n ['maestro', 50],\n ['mastercard', 51, 55],\n ['maestro', 56],\n ['maestro', 58],\n ['mastercard', 5],\n ['maestro', 6000],\n ['maestro', 6304],\n ['maestro', 6759, 6763],\n ['verve', 650002, 650027],\n ['maestro', 676770],\n ['maestro', 676774],\n ['discover', 644, 649],\n ['discover', 6011],\n ['rupay', 60],\n ['unionpay', 62],\n ['discover', 65],\n ['maestro', 6],\n ['rupay', 81, 82],\n ['uzcard', 8600],\n ['humo', 9860],\n];\n\nexport function tuiGetPaymentSystem(\n cardNumber?: string | null,\n supported?: TuiPaymentSystem[],\n): TuiPaymentSystem | null {\n if (!cardNumber) {\n return null;\n }\n\n const row = TUI_BIN_TABLE.find(([paymentSystem, start, end = start]) => {\n const cardNumberNumeric = Number.parseInt(\n cardNumber.slice(0, String(start).length),\n 10,\n );\n\n const match = cardNumberNumeric >= start && cardNumberNumeric <= end;\n\n return match && (!supported?.length || supported.includes(paymentSystem));\n });\n\n return row?.[0] ?? null;\n}\n\nexport function tuiIsMaestro(three: number, two: number, one: number): boolean {\n if (one === 6) {\n return true;\n }\n\n if (two === 50 || (two > 55 && two < 59)) {\n return true;\n }\n\n if (three < 500) {\n return false;\n }\n\n return three < 510;\n}\n\nexport function tuiIsMastercard(four: number, two: number, one: number): boolean {\n if (one === 5) {\n return true;\n }\n\n if (two < 10) {\n return false;\n }\n\n if (two > 50 && two < 56) {\n return true;\n }\n\n if (four < 1000) {\n return false;\n }\n\n return four > 2220 && four < 2721;\n}\n\nexport function tuiIsMir(four: number): boolean {\n return four > 2199 && four < 2205;\n}\n\nexport function tuiIsElectron(four: number): boolean {\n switch (four) {\n case 4026:\n case 4175:\n case 4405:\n case 4508:\n case 4844:\n case 4913:\n case 4917:\n return true;\n default:\n return false;\n }\n}\n\nexport function tuiIsVisa(one: number): boolean {\n return one === 4;\n}\n","import {tuiGetPaymentSystem} from './get-payment-system';\n\n/**\n * Validates card number length using payment system dictionary\n */\nexport function tuiIsCardLengthValid(cardNumber: string): boolean {\n const {length} = cardNumber;\n const paymentSystem = tuiGetPaymentSystem(cardNumber);\n\n switch (paymentSystem) {\n case 'electron':\n return length === 16;\n case 'maestro':\n return length > 11 && length < 20;\n case 'mastercard':\n case 'mir':\n return length > 15 && length < 20;\n case 'visa':\n return length > 12 && length < 20;\n default:\n return length > 8 && length < 20;\n }\n}\n","import {TUI_NON_DIGITS_REGEXP} from '@taiga-ui/cdk/constants';\n\n/**\n * Validates card number using Luhn algorithm\n */\nexport function tuiIsCardNumberValid(value: number | string): boolean {\n const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, '');\n\n const {length} = cardNumber;\n const arr = cardNumber.split('').map((char, index) => {\n const digit = parseInt(char, 10);\n\n if ((index + length) % 2 === 0) {\n const digitX2 = digit * 2;\n\n return digitX2 > 9 ? digitX2 - 9 : digitX2;\n }\n\n return digit;\n });\n\n return !(arr.reduce((a, b) => a + b, 0) % 10);\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nexport function tuiIsExpireValid(expire: string, today = new Date()): boolean {\n const currentMonth = today.getMonth() + 1;\n const currentYear = today.getFullYear() - 2000;\n const expireMonth = tuiClamp(parseInt(expire.slice(0, 2), 10), 1, 12);\n const expireYear = tuiClamp(parseInt(expire.slice(-2), 10), 0, 99);\n\n return (\n expireYear > currentYear ||\n (currentYear === expireYear && expireMonth >= currentMonth)\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAMM,SAAU,oBAAoB,CAAC,QAA6B,EAAA;IAC9D,QAAQ,QAAQ;QACZ,KAAK,WAAW,CAAC,YAAY;QAC7B,KAAK,eAAe,CAAC,YAAY;AAC7B,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,gBAAgB;QACjC,KAAK,eAAe,CAAC,gBAAgB;AACjC,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,gBAAgB;QACjC,KAAK,eAAe,CAAC,gBAAgB;AACjC,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,aAAa;QAC9B,KAAK,eAAe,CAAC,aAAa;AAC9B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,IAAI;QACrB,KAAK,eAAe,CAAC,IAAI;AACrB,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,eAAe;QAChC,KAAK,eAAe,CAAC,eAAe;AAChC,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,aAAa;QAC9B,KAAK,eAAe,CAAC,aAAa;AAC9B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,cAAc;QAC/B,KAAK,eAAe,CAAC,cAAc;AAC/B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,WAAW;QAC5B,KAAK,eAAe,CAAC,WAAW;AAC5B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,MAAM;QACvB,KAAK,eAAe,CAAC,MAAM;AACvB,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAA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EAAE,EAAE,CAAC;QAEhC,IAAI,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,EAAE;AAC5B,YAAA,MAAM,OAAO,GAAG,KAAK,GAAG,CAAC;AAEzB,YAAA,OAAO,OAAO,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,GAAG,OAAO;QAC9C;AAEA,QAAA,OAAO,KAAK;AAChB,IAAA,CAAC,CAAC;IAEF,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;AACjD;;ACpBM,SAAU,gBAAgB,CAAC,MAAc,EAAE,KAAK,GAAG,IAAI,IAAI,EAAE,EAAA;IAC/D,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC;IACzC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,IAAI;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACrE,MAAM,UAAU,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAElE,QACI,UAAU,GAAG,WAAW;SACvB,WAAW,KAAK,UAAU,IAAI,WAAW,IAAI,YAAY,CAAC;AAEnE;;ACZA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-commerce-utils.mjs","sources":["../../../projects/addon-commerce/utils/get-currency-symbol.ts","../../../projects/addon-commerce/utils/format-currency.ts","../../../projects/addon-commerce/utils/get-code-by-currency.ts","../../../projects/addon-commerce/utils/get-currency-by-code.ts","../../../projects/addon-commerce/utils/get-payment-system.ts","../../../projects/addon-commerce/utils/is-card-length-valid.ts","../../../projects/addon-commerce/utils/is-card-number-valid.ts","../../../projects/addon-commerce/utils/is-expire-valid.ts","../../../projects/addon-commerce/utils/taiga-ui-addon-commerce-utils.ts"],"sourcesContent":["import {\n TuiCurrency,\n TuiCurrencyCode,\n type TuiCurrencyVariants,\n} from '@taiga-ui/addon-commerce/types';\n\nexport function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null {\n switch (currency) {\n case TuiCurrency.ArmenianDram:\n case TuiCurrencyCode.ArmenianDram:\n return '֏';\n case TuiCurrency.AustralianDollar:\n case TuiCurrencyCode.AustralianDollar:\n return 'A$';\n case TuiCurrency.AzerbaijaniManat:\n case TuiCurrencyCode.AzerbaijaniManat:\n return '₼';\n case TuiCurrency.BahrainiDinar:\n case TuiCurrencyCode.BahrainiDinar:\n return 'BD';\n case TuiCurrency.Baht:\n case TuiCurrencyCode.Baht:\n return '฿';\n case TuiCurrency.BelarusianRuble:\n case TuiCurrencyCode.BelarusianRuble:\n return 'Br';\n case TuiCurrency.BrazilianReal:\n case TuiCurrencyCode.BrazilianReal:\n return 'R$';\n case TuiCurrency.CanadianDollar:\n case TuiCurrencyCode.CanadianDollar:\n return 'C$';\n case TuiCurrency.CzechKoruna:\n case TuiCurrencyCode.CzechKoruna:\n return 'Kč';\n case TuiCurrency.Dirham:\n case TuiCurrencyCode.Dirham:\n return 'Dh';\n case TuiCurrency.Dollar:\n case TuiCurrency.MexicanPeso:\n case TuiCurrencyCode.Dollar:\n case TuiCurrencyCode.MexicanPeso:\n return '$';\n case TuiCurrency.EastCaribbeanDollar:\n case TuiCurrencyCode.EastCaribbeanDollar:\n return 'EC$';\n case TuiCurrency.Euro:\n case TuiCurrencyCode.Euro:\n return '€';\n case TuiCurrency.Forint:\n case TuiCurrencyCode.Forint:\n return 'Ft';\n case TuiCurrency.GeorgianLari:\n case TuiCurrencyCode.GeorgianLari:\n return '₾';\n case TuiCurrency.HongKongDollar:\n case TuiCurrencyCode.HongKongDollar:\n return 'HK$';\n case TuiCurrency.Hryvnia:\n case TuiCurrencyCode.Hryvnia:\n return '₴';\n case TuiCurrency.IndianRupee:\n case TuiCurrencyCode.IndianRupee:\n return '₹';\n case TuiCurrency.IndonesianRupiah:\n case TuiCurrencyCode.IndonesianRupiah:\n return 'Rp';\n case TuiCurrency.IranianRial:\n case TuiCurrencyCode.IranianRial:\n return 'IR';\n case TuiCurrency.IsraeliShekel:\n case TuiCurrencyCode.IsraeliShekel:\n return '₪';\n case TuiCurrency.KyrgyzstanSom:\n case TuiCurrencyCode.KyrgyzstanSom:\n return 'c';\n case TuiCurrency.MalaysianRinggit:\n case TuiCurrencyCode.MalaysianRinggit:\n return 'RM';\n case TuiCurrency.MoldovanLeu:\n case TuiCurrencyCode.MoldovanLeu:\n return 'L';\n case TuiCurrency.MongolianTugrik:\n case TuiCurrencyCode.MongolianTugrik:\n return '₮';\n case TuiCurrency.NewTurkmenManat:\n case TuiCurrencyCode.NewTurkmenManat:\n return 'TMT';\n case TuiCurrency.PolandZloty:\n case TuiCurrencyCode.PolandZloty:\n return 'zł';\n case TuiCurrency.Pound:\n case TuiCurrencyCode.Pound:\n return '£';\n case TuiCurrency.Ruble:\n case TuiCurrencyCode.Ruble:\n return '₽';\n case TuiCurrency.SaudiRiyal:\n case TuiCurrencyCode.SaudiRiyal:\n return 'SR';\n case TuiCurrency.SerbianDinar:\n case TuiCurrencyCode.SerbianDinar:\n return 'DIN';\n case TuiCurrency.SingaporeDollar:\n case TuiCurrencyCode.SingaporeDollar:\n return 'S$';\n case TuiCurrency.SouthAfricanRand:\n case TuiCurrencyCode.SouthAfricanRand:\n return 'R';\n case TuiCurrency.SriLankanRupee:\n case TuiCurrencyCode.SriLankanRupee:\n return 'Rs.';\n case TuiCurrency.SwissFranc:\n case TuiCurrencyCode.SwissFranc:\n return '₣';\n case TuiCurrency.TajikistaniSomoni:\n case TuiCurrencyCode.TajikistaniSomoni:\n return 'SM';\n case TuiCurrency.Tenge:\n case TuiCurrencyCode.Tenge:\n return '₸';\n case TuiCurrency.TurkishLira:\n case TuiCurrencyCode.TurkishLira:\n return '₺';\n case TuiCurrency.UzbekSum:\n case TuiCurrencyCode.UzbekSum:\n return \"So'm\";\n case TuiCurrency.VietnameseDong:\n case TuiCurrencyCode.VietnameseDong:\n return 'đ';\n case TuiCurrency.Won:\n case TuiCurrencyCode.Won:\n return '₩';\n case TuiCurrency.Yen:\n case TuiCurrencyCode.Yen:\n return '¥';\n case TuiCurrency.YuanRenminbi:\n case TuiCurrencyCode.YuanRenminbi:\n return 'CN¥';\n default:\n return null;\n }\n}\n","import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiGetCurrencySymbol} from './get-currency-symbol';\n\nfunction stringifyCurrency(currency: TuiCurrencyVariants): string {\n return currency === null || tuiIsString(currency)\n ? currency || ''\n : String(currency).padStart(3, '0');\n}\n\nexport function tuiFormatCurrency(currency: TuiCurrencyVariants): string {\n const stringifiedCurrency = stringifyCurrency(currency);\n\n return tuiGetCurrencySymbol(stringifiedCurrency) || stringifiedCurrency;\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_CODE_DICTIONARY: Record<TuiCurrency, TuiCurrencyCode> = {\n [TuiCurrency.Ruble]: TuiCurrencyCode.Ruble,\n [TuiCurrency.Dollar]: TuiCurrencyCode.Dollar,\n [TuiCurrency.MexicanPeso]: TuiCurrencyCode.MexicanPeso,\n [TuiCurrency.MoldovanLeu]: TuiCurrencyCode.MoldovanLeu,\n [TuiCurrency.PolandZloty]: TuiCurrencyCode.PolandZloty,\n [TuiCurrency.SingaporeDollar]: TuiCurrencyCode.SingaporeDollar,\n [TuiCurrency.AustralianDollar]: TuiCurrencyCode.AustralianDollar,\n [TuiCurrency.HongKongDollar]: TuiCurrencyCode.HongKongDollar,\n [TuiCurrency.CanadianDollar]: TuiCurrencyCode.CanadianDollar,\n [TuiCurrency.CzechKoruna]: TuiCurrencyCode.CzechKoruna,\n [TuiCurrency.EastCaribbeanDollar]: TuiCurrencyCode.EastCaribbeanDollar,\n [TuiCurrency.Euro]: TuiCurrencyCode.Euro,\n [TuiCurrency.Forint]: TuiCurrencyCode.Forint,\n [TuiCurrency.Pound]: TuiCurrencyCode.Pound,\n [TuiCurrency.Baht]: TuiCurrencyCode.Baht,\n [TuiCurrency.BahrainiDinar]: TuiCurrencyCode.BahrainiDinar,\n [TuiCurrency.TurkishLira]: TuiCurrencyCode.TurkishLira,\n [TuiCurrency.YuanRenminbi]: TuiCurrencyCode.YuanRenminbi,\n [TuiCurrency.Yen]: TuiCurrencyCode.Yen,\n [TuiCurrency.IsraeliShekel]: TuiCurrencyCode.IsraeliShekel,\n [TuiCurrency.IndianRupee]: TuiCurrencyCode.IndianRupee,\n [TuiCurrency.SwissFranc]: TuiCurrencyCode.SwissFranc,\n [TuiCurrency.ArmenianDram]: TuiCurrencyCode.ArmenianDram,\n [TuiCurrency.Won]: TuiCurrencyCode.Won,\n [TuiCurrency.Tenge]: TuiCurrencyCode.Tenge,\n [TuiCurrency.Hryvnia]: TuiCurrencyCode.Hryvnia,\n [TuiCurrency.UzbekSum]: TuiCurrencyCode.UzbekSum,\n [TuiCurrency.KyrgyzstanSom]: TuiCurrencyCode.KyrgyzstanSom,\n [TuiCurrency.Dirham]: TuiCurrencyCode.Dirham,\n [TuiCurrency.TajikistaniSomoni]: TuiCurrencyCode.TajikistaniSomoni,\n [TuiCurrency.MalaysianRinggit]: TuiCurrencyCode.MalaysianRinggit,\n [TuiCurrency.BelarusianRuble]: TuiCurrencyCode.BelarusianRuble,\n [TuiCurrency.GeorgianLari]: TuiCurrencyCode.GeorgianLari,\n [TuiCurrency.AzerbaijaniManat]: TuiCurrencyCode.AzerbaijaniManat,\n [TuiCurrency.SriLankanRupee]: TuiCurrencyCode.SriLankanRupee,\n [TuiCurrency.SerbianDinar]: TuiCurrencyCode.SerbianDinar,\n [TuiCurrency.SaudiRiyal]: TuiCurrencyCode.SaudiRiyal,\n [TuiCurrency.MongolianTugrik]: TuiCurrencyCode.MongolianTugrik,\n [TuiCurrency.SouthAfricanRand]: TuiCurrencyCode.SouthAfricanRand,\n [TuiCurrency.IranianRial]: TuiCurrencyCode.IranianRial,\n [TuiCurrency.IndonesianRupiah]: TuiCurrencyCode.IndonesianRupiah,\n [TuiCurrency.VietnameseDong]: TuiCurrencyCode.VietnameseDong,\n [TuiCurrency.NewTurkmenManat]: TuiCurrencyCode.NewTurkmenManat,\n [TuiCurrency.BrazilianReal]: TuiCurrencyCode.BrazilianReal,\n};\n\nexport function tuiGetCodeByCurrency(code: TuiCurrency): TuiCurrencyCode | null {\n return TUI_CODE_DICTIONARY[code] ?? null;\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_CURRENCY_DICTIONARY: Record<TuiCurrencyCode, TuiCurrency> = {\n [TuiCurrencyCode.Ruble]: TuiCurrency.Ruble,\n [TuiCurrencyCode.Dollar]: TuiCurrency.Dollar,\n [TuiCurrencyCode.MexicanPeso]: TuiCurrency.MexicanPeso,\n [TuiCurrencyCode.MoldovanLeu]: TuiCurrency.MoldovanLeu,\n [TuiCurrencyCode.PolandZloty]: TuiCurrency.PolandZloty,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.AustralianDollar]: TuiCurrency.AustralianDollar,\n [TuiCurrencyCode.HongKongDollar]: TuiCurrency.HongKongDollar,\n [TuiCurrencyCode.CanadianDollar]: TuiCurrency.CanadianDollar,\n [TuiCurrencyCode.CzechKoruna]: TuiCurrency.CzechKoruna,\n [TuiCurrencyCode.EastCaribbeanDollar]: TuiCurrency.EastCaribbeanDollar,\n [TuiCurrencyCode.Euro]: TuiCurrency.Euro,\n [TuiCurrencyCode.Forint]: TuiCurrency.Forint,\n [TuiCurrencyCode.Pound]: TuiCurrency.Pound,\n [TuiCurrencyCode.Baht]: TuiCurrency.Baht,\n [TuiCurrencyCode.BahrainiDinar]: TuiCurrency.BahrainiDinar,\n [TuiCurrencyCode.TurkishLira]: TuiCurrency.TurkishLira,\n [TuiCurrencyCode.YuanRenminbi]: TuiCurrency.YuanRenminbi,\n [TuiCurrencyCode.Yen]: TuiCurrency.Yen,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IndianRupee]: TuiCurrency.IndianRupee,\n [TuiCurrencyCode.SwissFranc]: TuiCurrency.SwissFranc,\n [TuiCurrencyCode.ArmenianDram]: TuiCurrency.ArmenianDram,\n [TuiCurrencyCode.Won]: TuiCurrency.Won,\n [TuiCurrencyCode.Tenge]: TuiCurrency.Tenge,\n [TuiCurrencyCode.Hryvnia]: TuiCurrency.Hryvnia,\n [TuiCurrencyCode.UzbekSum]: TuiCurrency.UzbekSum,\n [TuiCurrencyCode.KyrgyzstanSom]: TuiCurrency.KyrgyzstanSom,\n [TuiCurrencyCode.Dirham]: TuiCurrency.Dirham,\n [TuiCurrencyCode.TajikistaniSomoni]: TuiCurrency.TajikistaniSomoni,\n [TuiCurrencyCode.MalaysianRinggit]: TuiCurrency.MalaysianRinggit,\n [TuiCurrencyCode.BelarusianRuble]: TuiCurrency.BelarusianRuble,\n [TuiCurrencyCode.GeorgianLari]: TuiCurrency.GeorgianLari,\n [TuiCurrencyCode.AzerbaijaniManat]: TuiCurrency.AzerbaijaniManat,\n [TuiCurrencyCode.SriLankanRupee]: TuiCurrency.SriLankanRupee,\n [TuiCurrencyCode.SerbianDinar]: TuiCurrency.SerbianDinar,\n [TuiCurrencyCode.SaudiRiyal]: TuiCurrency.SaudiRiyal,\n [TuiCurrencyCode.MongolianTugrik]: TuiCurrency.MongolianTugrik,\n [TuiCurrencyCode.SouthAfricanRand]: TuiCurrency.SouthAfricanRand,\n [TuiCurrencyCode.IranianRial]: TuiCurrency.IranianRial,\n [TuiCurrencyCode.IndonesianRupiah]: TuiCurrency.IndonesianRupiah,\n [TuiCurrencyCode.VietnameseDong]: TuiCurrency.VietnameseDong,\n [TuiCurrencyCode.NewTurkmenManat]: TuiCurrency.NewTurkmenManat,\n [TuiCurrencyCode.BrazilianReal]: TuiCurrency.BrazilianReal,\n};\n\nexport function tuiGetCurrencyByCode(currency: TuiCurrencyCode): TuiCurrency | null {\n return TUI_CURRENCY_DICTIONARY[currency] ?? null;\n}\n","import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\n// https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)\nexport const TUI_BIN_TABLE: ReadonlyArray<\n [paymentSystem: TuiPaymentSystem, start: number, end?: number]\n> = [\n ['mir', 2200, 2204],\n ['mastercard', 2221, 2720],\n ['jcb', 3528, 3589],\n ['amex', 34],\n ['amex', 37],\n ['dinersclub', 36],\n ['electron', 4026],\n ['electron', 4175],\n ['electron', 4405],\n ['electron', 4508],\n ['electron', 4844],\n ['electron', 4913],\n ['electron', 4917],\n ['visa', 4],\n ['verve', 506099, 506198],\n ['verve', 507865, 507964],\n ['maestro', 5018],\n ['maestro', 5020],\n ['maestro', 5038],\n ['maestro', 5090],\n ['maestro', 5890],\n ['maestro', 5893],\n ['rupay', 508],\n ['maestro', 50],\n ['mastercard', 51, 55],\n ['maestro', 56],\n ['maestro', 58],\n ['mastercard', 5],\n ['maestro', 6000],\n ['maestro', 6304],\n ['maestro', 6759, 6763],\n ['verve', 650002, 650027],\n ['maestro', 676770],\n ['maestro', 676774],\n ['discover', 644, 649],\n ['discover', 6011],\n ['rupay', 60],\n ['unionpay', 62],\n ['discover', 65],\n ['maestro', 6],\n ['rupay', 81, 82],\n ['uzcard', 8600],\n ['humo', 9860],\n];\n\nexport function tuiGetPaymentSystem(\n cardNumber?: string | null,\n supported?: TuiPaymentSystem[],\n): TuiPaymentSystem | null {\n if (!cardNumber) {\n return null;\n }\n\n const row = TUI_BIN_TABLE.find(([paymentSystem, start, end = start]) => {\n const cardNumberNumeric = Number.parseInt(\n cardNumber.slice(0, String(start).length),\n 10,\n );\n\n const match = cardNumberNumeric >= start && cardNumberNumeric <= end;\n\n return match && (!supported?.length || supported.includes(paymentSystem));\n });\n\n return row?.[0] ?? null;\n}\n\nexport function tuiIsMaestro(three: number, two: number, one: number): boolean {\n if (one === 6) {\n return true;\n }\n\n if (two === 50 || (two > 55 && two < 59)) {\n return true;\n }\n\n if (three < 500) {\n return false;\n }\n\n return three < 510;\n}\n\nexport function tuiIsMastercard(four: number, two: number, one: number): boolean {\n if (one === 5) {\n return true;\n }\n\n if (two < 10) {\n return false;\n }\n\n if (two > 50 && two < 56) {\n return true;\n }\n\n if (four < 1000) {\n return false;\n }\n\n return four > 2220 && four < 2721;\n}\n\nexport function tuiIsMir(four: number): boolean {\n return four > 2199 && four < 2205;\n}\n\nexport function tuiIsElectron(four: number): boolean {\n switch (four) {\n case 4026:\n case 4175:\n case 4405:\n case 4508:\n case 4844:\n case 4913:\n case 4917:\n return true;\n default:\n return false;\n }\n}\n\nexport function tuiIsVisa(one: number): boolean {\n return one === 4;\n}\n","import {tuiGetPaymentSystem} from './get-payment-system';\n\n/**\n * Validates card number length using payment system dictionary\n */\nexport function tuiIsCardLengthValid(cardNumber: string): boolean {\n const {length} = cardNumber;\n const paymentSystem = tuiGetPaymentSystem(cardNumber);\n\n switch (paymentSystem) {\n case 'electron':\n return length === 16;\n case 'maestro':\n return length > 11 && length < 20;\n case 'mastercard':\n case 'mir':\n return length > 15 && length < 20;\n case 'visa':\n return length > 12 && length < 20;\n default:\n return length > 8 && length < 20;\n }\n}\n","import {TUI_NON_DIGITS_REGEXP} from '@taiga-ui/cdk/constants';\n\n/**\n * Validates card number using Luhn algorithm\n */\nexport function tuiIsCardNumberValid(value: number | string): boolean {\n const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, '');\n\n const {length} = cardNumber;\n const arr = cardNumber.split('').map((char, index) => {\n const digit = Number.parseInt(char, 10);\n\n if ((index + length) % 2 === 0) {\n const digitX2 = digit * 2;\n\n return digitX2 > 9 ? digitX2 - 9 : digitX2;\n }\n\n return digit;\n });\n\n return !(arr.reduce((a, b) => a + b, 0) % 10);\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nexport function tuiIsExpireValid(expire: string, today = new Date()): boolean {\n const currentMonth = today.getMonth() + 1;\n const currentYear = today.getFullYear() - 2000;\n const expireMonth = tuiClamp(Number.parseInt(expire.slice(0, 2), 10), 1, 12);\n const expireYear = tuiClamp(Number.parseInt(expire.slice(-2), 10), 0, 99);\n\n return (\n expireYear > currentYear ||\n (currentYear === expireYear && expireMonth >= currentMonth)\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAMM,SAAU,oBAAoB,CAAC,QAA6B,EAAA;IAC9D,QAAQ,QAAQ;QACZ,KAAK,WAAW,CAAC,YAAY;QAC7B,KAAK,eAAe,CAAC,YAAY;AAC7B,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,gBAAgB;QACjC,KAAK,eAAe,CAAC,gBAAgB;AACjC,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,gBAAgB;QACjC,KAAK,eAAe,CAAC,gBAAgB;AACjC,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,aAAa;QAC9B,KAAK,eAAe,CAAC,aAAa;AAC9B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,IAAI;QACrB,KAAK,eAAe,CAAC,IAAI;AACrB,YAAA,OAAO,GAAG;QACd,KAAK,WAAW,CAAC,eAAe;QAChC,KAAK,eAAe,CAAC,eAAe;AAChC,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,aAAa;QAC9B,KAAK,eAAe,CAAC,aAAa;AAC9B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CAAC,cAAc;QAC/B,KAAK,eAAe,CAAC,cAAc;AAC/B,YAAA,OAAO,IAAI;QACf,KAAK,WAAW,CA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 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-commerce",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Extension package for Taiga UI related to commerce, payment systems, currencies etc.",
5
5
  "keywords": [
6
6
  "angular",
@@ -18,16 +18,16 @@
18
18
  "license": "Apache-2.0",
19
19
  "contributors": [
20
20
  {
21
- "name": "Alex Inkin",
22
- "email": "alexander@inkin.ru"
21
+ "email": "alexander@inkin.ru",
22
+ "name": "Alex Inkin"
23
23
  },
24
24
  {
25
- "name": "Vladimir Potekhin",
26
- "email": "vladimir.potekh@gmail.com"
25
+ "email": "vladimir.potekh@gmail.com",
26
+ "name": "Vladimir Potekhin"
27
27
  },
28
28
  {
29
- "name": "Nikita Barsukov",
30
- "email": "nikita.s.barsukov@gmail.com"
29
+ "email": "nikita.s.barsukov@gmail.com",
30
+ "name": "Nikita Barsukov"
31
31
  }
32
32
  ],
33
33
  "peerDependencies": {
@@ -38,10 +38,10 @@
38
38
  "@maskito/core": "^5.2.2",
39
39
  "@maskito/kit": "^5.2.2",
40
40
  "@ng-web-apis/common": "^5.2.0",
41
- "@taiga-ui/cdk": "5.0.0",
42
- "@taiga-ui/core": "5.0.0",
43
- "@taiga-ui/i18n": "5.0.0",
44
- "@taiga-ui/kit": "5.0.0",
41
+ "@taiga-ui/cdk": "5.1.0",
42
+ "@taiga-ui/core": "5.1.0",
43
+ "@taiga-ui/i18n": "5.1.0",
44
+ "@taiga-ui/kit": "5.1.0",
45
45
  "@taiga-ui/polymorpheus": "^5.0.0",
46
46
  "rxjs": ">=7.0.0"
47
47
  },