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AOC,6BAA6BkY,UAErG,CAAC1c,SAAAzB,KAAA,mBAAA0B,iBAfU4a,GAAkB3a,MAAAqH,MAAArH,MAAAsH,MAAAtH,MAKnB0H,KAAM,EAAA5H,SAAAzB,KAAA,WAAAkC,EAAA4b,IAAA,OALLxB,EAAkByB,QAAlBzB,EAAkB0B,mBAAlB1B,CAAkB,KCAlB8B,EAAkB,MAAzB,MAAOA,EAHbte,cAIUE,KAAAqe,OAAS,EAEbjW,UAAMA,GACRpI,KAAKqe,OAASjW,CAChB,CAEIA,YACF,OAAOpI,KAAKqe,MACd,CAEI7V,sBACF,MAAO,SAASxI,KAAKqe,SACvB,CAEA/Z,aACEtE,KAAKoI,MArBa,CAsBpB,CAAC3G,SAAAzB,KAAA,mBAAA0B,iBAjBU0c,EAAkB,EAAA3c,SAAAzB,KAAA,WAAAkC,EAAA4b,IAAA,OAAlBM,EAAkBL,QAAlBK,EAAkBJ,UAAAM,WAFjB,gBAEDF,CAAkB,yECJzB,SAAUG,EACd7W,GAEA,OAAO,IAAI8W,aAAYC,IACrB,MAAMC,EAAW,IAAIC,eAAgBC,IACnCH,EAAIzd,KAAK4d,EAAQ,GAAE,GAGrBF,SAASG,QAAQnX,GAEV,IAAMgX,EAASI,YAAU,EAEpC,CAMO,IAAMC,EAAe,MAAtB,MAAOA,EAEXjf,YAAoBkf,GAAAhf,KAAAgf,aAEVhf,KAAAif,QAAUV,EAAmBve,KAAKgf,WAAW9W,cAFV,CAACzG,SAAAzB,KAAA,mBAAA0B,iBAFnCqd,GAAepd,aAAA,EAAAF,SAAAzB,KAAA,UAAAqK,EAAAxI,IAAA,MAAfkd,EAAe3c,UAAA,oBAAAmX,QAAA,CAAA0F,QAAA,WAAAC,YAAA,WAAfH,CAAe","names":["UIBaseComponent","constructor","injector","this","forceDefaultStyles","config","isSmallSize","default","defaultCustomWidgetConfig","cdr","get","ChangeDetectorRef","debugName","destroyed$","ReplaySubject","oldWidth","ngOnChanges","onUpdateStyles","ngOnDestroy","next","complete","currentStyles","styles","onElementResized","contentRect","result","width","detectChanges","static","t","i0","_angular_core__WEBPACK_IMPORTED_MODULE_2__","lG2","inputs","features","NORMAL_WIDTH","UICardStyleComponent","core","Xpm","selectors","decls","vars","template","rf","ctx","encapsulation","UICardComponent_ng_container_1_ng_template_2_ng_container_2_ng_container_2_Template","_r1","_r9","ctx_r8","close","UICardComponent_ng_container_1_ng_template_2_ng_container_2_Template","ctx_r4","asModal","$event","_r13","ctx_r12","onResize","UICardComponent_ng_container_1_div_4_ng_container_2_Template","ctx_r5","borderColor","backgroundColor","maxWidth","minWidth","UICardComponent_ng_container_1_ng_template_2_Template","UICardComponent_ng_container_1_div_4_Template","ctx_r0","_r16","ctx_r15","onContentResize","UICardComponent","setAsModal","widgetScaleService","setDefault","dialogRef","dialog","open","modalContentTemplate","panelClass","scrollStrategy","overlay","scrollStrategies","noop","afterClosed","pipe","takeUntil","subscribe","modalClosedEmitter","emit","domSanitizer","matIconRegistry","renderer","env","super","isRefreshing","EventEmitter","bordersWidth","addSvgIcon","bypassSecurityTrustResourceUrl","custom","cdn","e","dialogOpenSubscription","unsubscribe","timer","openedDialog","getDialogById","id","parent","_overlayRef","_host","parentNode","innerHTML","document","head","parentElement","classList","contains","remove","Number","lineColor","markForCheck","target","calcDimensions","updateWrapperHeight","element","newWidth","Math","min","max","offsetWidth","cardPadding","wrapperContentRef","nativeElement","calcPadding","scale","paddingPx","coerceCssPixelValue","setStyle","scaleInCssValue","updateWrapperWidth","wrapperWidth","peWidgetCardRef","CARD_PADDING","wrapperEl","maxHeight","offsetHeight","i1","i2","i3","i4","i5","PE_ENV","viewQuery","UICardComponent_ng_container_1_Template","UICardComponent_ng_template_2_Template","UIFooterPoweredByPayeverComponent","consts","UIFullHeaderSantanderComponent","ngContentSelectors","_c1","UIHeaderSantanderComponent","headerTextColor","iconsHelperService","registerIcons","hostVars","hostBindings","UILoadingRatesComponent","_angular_core__WEBPACK_IMPORTED_MODULE_1__","UIPayeverIconComponent","UIPoweredByPayeverComponent","ctx_r1","mainTextColor","buttonColor","ctx_r2","numColumns","rate","details","ctx_r3","error","UIRateButtonComponent","isLoading","isShowSelectedRateDetails","clickedEmitter","onClick","_angular_core__WEBPACK_IMPORTED_MODULE_6__","UIRateButtonComponent_finexp_ui_loading_rates_1_Template","UIRateButtonComponent_div_2_Template","UIRateButtonComponent_finexp_ui_selected_rate_details_3_Template","UIRateButtonComponent_finexp_ui_selected_rate_details_line_4_Template","UIRateButtonComponent_finexp_ui_rate_error_5_Template","UIRateButtonComponent_finexp_ui_rate_error_6_Template","isOneLine","UIRateDropdownStyleComponent","rate_r10","_r12","$implicit","ctx_r11","selectRate","ctx_r7","value","selectedRate","listTitle","_r14","ctx_r13","onTitleResized","selectedTitle","i_r17","_r19","index","ctx_r18","selectedRateMultiTitles","length","fieldLineColor","col_r16","label","text","UIRateDropdownComponent_div_3_div_8_div_1_Template","ctx_r9","_r21","ctx_r20","onOpened","ctx_r22","onClosed","UIRateDropdownComponent_div_3_div_6_Template","UIRateDropdownComponent_div_3_div_7_Template","UIRateDropdownComponent_div_3_div_8_Template","fieldBackgroundColor","_r6","useMultiTitle","rates","fieldArrowColor","UIRateDropdownComponent","setRates","checkDefaultRate","rateSelectedEmitter","sheetId","dropdownIconWidth","fontSize","dropdownWidth","selectedMultiTitles","onKeydownHandler","event","trigger","closeMenu","clientWidth","removeStyleSheet","addStyleSheet","selected","sheet","createElement","_rootNode","appendChild","dueTime","sheetToBeRemoved","querySelector","removeChild","defaultRate","find","isDefault","body","MatMenuTrigger","UIRateDropdownComponent_finexp_ui_loading_rates_2_Template","UIRateDropdownComponent_div_3_Template","UIRateDropdownComponent_finexp_ui_selected_rate_details_4_Template","UIRateDropdownComponent_finexp_ui_selected_rate_details_line_5_Template","UIRateDropdownComponent_finexp_ui_rate_error_6_Template","UIRateDropdownComponent_finexp_ui_rate_error_7_Template","UIRateErrorComponent","_c0","UIRateTextComponent","_angular_core__WEBPACK_IMPORTED_MODULE_5__","UIRateTextComponent_finexp_ui_loading_rates_0_Template","UIRateTextComponent_div_1_Template","UIRateTextComponent_finexp_ui_selected_rate_details_2_Template","UIRateTextComponent_finexp_ui_selected_rate_details_line_3_Template","UIRateTextComponent_finexp_ui_rate_error_4_Template","UIRateTextComponent_finexp_ui_rate_error_5_Template","UIRegularTextComponent","regularTextColor","UISantanderConsumerIconMediumComponent","UISantanderIconMediumComponent","UISantanderIconShortComponent","col_r1","title","UISelectedRateDetailsLineComponent","UISelectedRateDetailsLineComponent_div_1_Template","col_r2","UISelectedRateDetailsComponent","rows","Renderer2","reduce","acc","item","push","at","gridElement","gridRef","cells","toArray","cols","calculateColumns","cellCount","widest","map","cell","Array","from","children","maxCols","floor","UISelectedRateDetailsComponent_div_2_Template","UIShadowRootWrapperComponent","_angular_core__WEBPACK_IMPORTED_MODULE_0__","UIShortHeaderSantanderComponent","logo","_angular_core__WEBPACK_IMPORTED_MODULE_3__","UIShortHeaderSantanderComponent_finexp_ui_santander_icon_short_0_Template","UIShortHeaderSantanderComponent_finexp_ui_santander_icon_medium_1_Template","UIShowCheckoutWrapperButtonComponent","ctaTextColor","UITopBigTextComponent","UITopTextComponent","channelSet","amountLimits","isVisible","payments","ratesOrder","RatesOrderEnum","Asc","checkoutPlacement","CheckoutPlacementEnum","RighSidebar","checkoutMode","CheckoutModeEnum","None","successUrl","pendingUrl","cancelUrl","failureUrl","noticeUrl","business","checkoutId","widgetId","amount","reference","type","isDebugMode","AbstractBaseWidgetModule","componentFactoryResolver","BaseWidgetComponent","failedEmitter","isLoadingRates","destroy$","currencyPipe","CurrencyPipe","percentPipe","PercentPipe","localeConstantsService","LocaleConstantsService","ratesAsc","ratesDesc","currentRate","isFinCalc","Calculator","hasShortToExtendedViewSwitcher","isFinExp","FinanceExpress","isShowWrapperButtonVisible","isNone","isBNPL","currentPayment","productId","changes","checkPaymentsEquality","currentValue","previousValue","getRatesSub","updateRates","onRateSelected","onClicked","toPercent","transform","toPrice","currency","toPriceNumber","replace","trim","a","enabled","delay","mergeMap","getRates","data","transformRate","reverse","catchError","err","message","throwError","firstPayments","secondPayments","every","payment","correspondingPayment","paymentMethod","cart","billingAddress","shippingAddress","shippingOption","outputs","BaseWidgetCustomElementComponent","setAmount","parseInputNumber","setChannelSet","parseInputString","setWidgetType","setEnv","parseInputObject","setInitialValues","setIsDebugMode","parseInputBoolean","setPaymentMethod","setTheme","theme","window","matchMedia","matches","clicked","isReady$","BehaviorSubject","WidgetTypeEnum","isForceHideSubject$","combineLatest","registerLocale","tap","isForceHide","localeLoaded","onFailed","JSON","parse","parseFloat","String","importLocale","locale","getLang","LOCALE_MAPPER","__webpack_require__","then","bind","first","l","registerLocaleData","shadowRoot","PaymentWidgetsSdkModule","oAB","cJS","IconsHelperService","CheckoutApiService","imports","CommonModule","FormsModule","MatMenuModule","MatDialogModule","MatIconModule","httpClient","checkoutSettings","defaultConnections","getCheckoutSettings","channelSetId","fetchCheckoutSettings","filter","settings","Error","shareReplay","getDefaultConnections","key","fetchDefaultConnections","connection","backend","checkout","Yz7","factory","ɵfac","iconNames","forEach","name","WidgetScaleService","_scale","providedIn","fromResizeObserver","Observable","sub","observer","ResizeObserver","entries","observe","disconnect","ResizeDirective","elementRef","resized","standalone"],"sourceRoot":"webpack:///","sources":["./libs/shared/payment-widgets/src/components/ui/base.component.ts","./libs/shared/payment-widgets/src/components/ui/card/constant.ts","./libs/shared/payment-widgets/src/components/ui/card/style/style.component.ts","./libs/shared/payment-widgets/src/components/ui/card/card.component.html","./libs/shared/payment-widgets/src/components/ui/card/card.component.ts","./libs/shared/payment-widgets/src/components/ui/footer-powered-by-payever/footer-powered-by-payever.component.ts","./libs/shared/payment-widgets/src/components/ui/footer-powered-by-payever/footer-powered-by-payever.component.html","./libs/shared/payment-widgets/src/components/ui/full-header-santander/full-header-santander.component.ts","./libs/shared/payment-widgets/src/components/ui/full-header-santander/full-header-santander.component.html","./libs/shared/payment-widgets/src/components/ui/header-santander/header-santander.component.ts","./libs/shared/payment-widgets/src/components/ui/header-santander/header-santander.component.html","./libs/shared/payment-widgets/src/components/ui/loading-rates/loading-rates.component.ts","./libs/shared/payment-widgets/src/components/ui/loading-rates/loading-rates.component.html","./libs/shared/payment-widgets/src/components/ui/payever-icon/payever-icon.component.ts","./libs/shared/payment-widgets/src/components/ui/powered-by-payever/powered-by-payever.component.ts","./libs/shared/payment-widgets/src/components/ui/powered-by-payever/powered-by-payever.component.html","./libs/shared/payment-widgets/src/components/ui/rate-button/rate-button.component.html","./libs/shared/payment-widgets/src/components/ui/rate-button/rate-button.component.ts","./libs/shared/payment-widgets/src/components/ui/rate-dropdown/style/style.component.ts","./libs/shared/payment-widgets/src/components/ui/rate-dropdown/rate-dropdown.component.html","./libs/shared/payment-widgets/src/components/ui/rate-dropdown/rate-dropdown.component.ts","./libs/shared/payment-widgets/src/components/ui/rate-error/rate-error.component.ts","./libs/shared/payment-widgets/src/components/ui/rate-error/rate-error.component.html","./libs/shared/payment-widgets/src/components/ui/rate-text/rate-text.component.html","./libs/shared/payment-widgets/src/components/ui/rate-text/rate-text.component.ts","./libs/shared/payment-widgets/src/components/ui/regular-text/regular-text.component.ts","./libs/shared/payment-widgets/src/components/ui/regular-text/regular-text.component.html","./libs/shared/payment-widgets/src/components/ui/santander-consumer-icon-medium/santander-consumer-icon-medium.component.ts","./libs/shared/payment-widgets/src/components/ui/santander-icon-medium/santander-icon-medium.component.ts","./libs/shared/payment-widgets/src/components/ui/santander-icon-short/santander-icon-short.component.ts","./libs/shared/payment-widgets/src/components/ui/santander-icon-short/santander-icon-short.component.html","./libs/shared/payment-widgets/src/components/ui/selected-rate-details-line/selected-rate-details-line.component.html","./libs/shared/payment-widgets/src/components/ui/selected-rate-details-line/selected-rate-details-line.component.ts","./libs/shared/payment-widgets/src/components/ui/selected-rate-details/selected-rate-details.component.html","./libs/shared/payment-widgets/src/components/ui/selected-rate-details/selected-rate-details.component.ts","./libs/shared/payment-widgets/src/components/ui/shadow-root-wrapper/shadow-root-wrapper.component.ts","./libs/shared/payment-widgets/src/components/ui/short-header-santander/short-header-santander.component.html","./libs/shared/payment-widgets/src/components/ui/short-header-santander/short-header-santander.component.ts","./libs/shared/payment-widgets/src/components/ui/show-checkout-wrapper-button/show-checkout-wrapper-button.component.ts","./libs/shared/payment-widgets/src/components/ui/show-checkout-wrapper-button/show-checkout-wrapper-button.component.html","./libs/shared/payment-widgets/src/components/ui/top-big-text/top-big-text.component.ts","./libs/shared/payment-widgets/src/components/ui/top-big-text/top-big-text.component.html","./libs/shared/payment-widgets/src/components/ui/top-text/top-text.component.ts","./libs/shared/payment-widgets/src/components/ui/top-text/top-text.component.html","./libs/shared/payment-widgets/src/constants/default-custom-widget-config.constant.ts","./libs/shared/payment-widgets/src/components/abstract-base-widget.module.ts","./libs/shared/payment-widgets/src/components/base-widget.component.ts","./libs/shared/payment-widgets/src/components/base-widget-custom-element.component.ts","./libs/shared/payment-widgets/src/payment-widgets-sdk.module.ts","./libs/shared/payment-widgets/src/services/checkout-api.service.ts","./libs/shared/payment-widgets/src/services/icons-helper.service.ts","./libs/shared/payment-widgets/src/services/widget.scale.service.ts","./libs/shared/utils/from-resize-observer/index.ts"],"sourcesContent":["import {\n ChangeDetectorRef, Directive, Injector, Input, OnChanges, OnDestroy,\n} from '@angular/core';\nimport { ReplaySubject } from 'rxjs';\n\nimport { WidgetConfigInterface } from '@pe/checkout/types';\n\nimport { defaultCustomWidgetConfig } from '../../constants';\n\n@Directive()\nexport class UIBaseComponent implements OnChanges, OnDestroy {\n\n @Input() forceDefaultStyles = false;\n @Input() config: WidgetConfigInterface = null;\n\n isSmallSize = false;\n default: WidgetConfigInterface = defaultCustomWidgetConfig();\n\n protected cdr: ChangeDetectorRef = this.injector.get(ChangeDetectorRef);\n protected debugName = 'noname';\n protected destroyed$: ReplaySubject = new ReplaySubject();\n\n private oldWidth: number = null;\n\n constructor(protected injector: Injector) {\n }\n\n ngOnChanges(): void {\n this.onUpdateStyles();\n }\n\n ngOnDestroy(): void {\n this.destroyed$.next(true);\n this.destroyed$.complete();\n }\n\n get currentStyles(): any {\n return this.forceDefaultStyles ? this.default.styles : this.config?.styles;\n }\n\n onUpdateStyles(): void {\n return;\n }\n\n onElementResized({ contentRect }: ResizeObserverEntry): boolean {\n let result = false;\n if (contentRect.width !== this.oldWidth) {\n this.oldWidth = contentRect.width;\n this.isSmallSize = contentRect.width < 380;\n this.cdr.detectChanges();\n result = true;\n }\n\n return result;\n }\n}\n","export const NORMAL_WIDTH = 500;\nexport const CARD_PADDING = 12;\nexport const MIN_SCALE_WIDTH = 300;\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'finexp-ui-card-style',\n template: '',\n styles: [`\n .pe-widget-card-modal {\n max-width: 540px !important;\n width: 100%;\n }\n .pe-widget-card-modal .mat-dialog-container {\n padding: 12px 12px 6px !important;\n background: #ffffff !important;\n position: relative !important;\n }\n `],\n encapsulation: ViewEncapsulation.None,\n})\nexport class UICardStyleComponent {\n}\n","\n\n
\n \n \n \n \n \n \n \n \n \n \n
\n\n \n \n \n
\n\n \n \n \n\n","import { coerceCssPixelValue } from '@angular/cdk/coercion';\nimport { Overlay } from '@angular/cdk/overlay';\nimport {\n Component, ChangeDetectionStrategy, Injector, Input,\n Output, EventEmitter, ViewChild, TemplateRef, Inject, ElementRef, Renderer2,\n} from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { Subscription, timer } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { PE_ENV, EnvironmentConfigInterface as EnvInterface } from '@pe/common';\n\nimport { WidgetScaleService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\nimport { CARD_PADDING, MIN_SCALE_WIDTH, NORMAL_WIDTH } from './constant';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-card',\n templateUrl: './card.component.html',\n styleUrls: ['./card.component.scss'],\n})\nexport class UICardComponent extends UIBaseComponent {\n\n asModal = false;\n isRefreshing = false;\n dialogOpenSubscription: Subscription;\n\n @Input('asModal') set setAsModal(asModal: boolean) {\n this.asModal = asModal;\n if (this.asModal) {\n this.widgetScaleService.setDefault();\n this.dialogRef = this.dialog.open(this.modalContentTemplate, {\n panelClass: 'pe-widget-card-modal',\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n });\n this.dialogRef.afterClosed().pipe(takeUntil(this.destroyed$)).subscribe(() => {\n if (this.dialogRef) {\n this.dialogRef = null;\n this.modalClosedEmitter.emit();\n }\n });\n } else {\n this.close();\n }\n }\n\n @Output('modalClosed') modalClosedEmitter: EventEmitter = new EventEmitter();\n\n @ViewChild('modalContentTemplate') modalContentTemplate: TemplateRef;\n @ViewChild('peWidgetCard', { static: false }) peWidgetCardRef: ElementRef;\n @ViewChild('wrapperContent') wrapperContentRef: ElementRef;\n\n minWidth: number = null;\n maxWidth: number = null;\n borderColor: string = null;\n backgroundColor: string = null;\n\n private dialogRef: MatDialogRef = null;\n private readonly bordersWidth = 4;\n\n constructor(\n injector: Injector,\n public dialog: MatDialog,\n private overlay: Overlay,\n private domSanitizer: DomSanitizer,\n private matIconRegistry: MatIconRegistry,\n private renderer: Renderer2,\n private widgetScaleService: WidgetScaleService,\n @Inject(PE_ENV) private env: EnvInterface,\n ) {\n super(injector);\n\n this.matIconRegistry.addSvgIcon(\n 'close-16',\n this.domSanitizer.bypassSecurityTrustResourceUrl(`${this.env.custom.cdn}/payment-widgets/icons/close-16.svg`),\n );\n }\n\n close(e?: Event): void {\n if (this.dialogRef) {\n this.dialogOpenSubscription?.unsubscribe();\n this.dialogRef?.close();\n // At some sites animation is broken and\n // Material Dialog stays on page and this.dialogRef.afterClosed() not triggered.\n // So we have to add some logic:\n timer(200).pipe(takeUntil(this.destroyed$)).subscribe(() => {\n if (this.dialogRef) {\n // Have to force use custom close modal mechanism for widget. Seems that animations are broken at site.');\n const openedDialog: any = this.dialog.getDialogById(this.dialogRef.id);\n const parent = ((openedDialog._overlayRef._host as HTMLDivElement).parentNode as HTMLDivElement);\n\n if (parent?.innerHTML) {\n parent.innerHTML = '';\n }\n\n if (document.head?.parentElement?.classList?.contains('cdk-global-scrollblock')) {\n document.head.parentElement.classList.remove('cdk-global-scrollblock');\n }\n\n openedDialog.close();\n\n this.dialogRef = null;\n this.modalClosedEmitter.emit();\n\n this.isRefreshing = true;\n this.cdr.detectChanges();\n timer(10).pipe(takeUntil(this.destroyed$)).subscribe(() => {\n this.isRefreshing = false;\n this.cdr.detectChanges();\n });\n }\n });\n }\n }\n\n onUpdateStyles(): void {\n this.minWidth = Number(this.config?.minWidth) || Number(this.default.minWidth);\n this.maxWidth = Number(this.config?.maxWidth) || Number(this.default.maxWidth);\n if (this.minWidth < this.config.minWidth) {\n this.minWidth = this.config.minWidth;\n }\n if (this.maxWidth < this.minWidth && this.maxWidth > 0) {\n this.maxWidth = this.minWidth;\n }\n this.borderColor = this.currentStyles?.lineColor || this.default.styles.lineColor;\n this.backgroundColor = this.currentStyles?.backgroundColor || this.default.styles.backgroundColor;\n this.cdr.markForCheck();\n }\n\n onResize({ target }: ResizeObserverEntry): void {\n this.calcDimensions(target as HTMLDivElement);\n }\n\n onContentResize({ target }: ResizeObserverEntry): void {\n this.updateWrapperHeight(target as HTMLDivElement);\n }\n\n calcDimensions(element: HTMLDivElement): void {\n const newWidth = Math.min(Math.max(MIN_SCALE_WIDTH, element.offsetWidth), NORMAL_WIDTH);\n let cardPadding = CARD_PADDING;\n const wrapperContentRef = this.wrapperContentRef?.nativeElement;\n\n this.widgetScaleService.setDefault();\n\n if (newWidth !== NORMAL_WIDTH) {\n cardPadding = this.calcPadding(newWidth);\n this.widgetScaleService.scale = (newWidth + this.bordersWidth) / NORMAL_WIDTH;\n }\n\n const paddingPx = coerceCssPixelValue(cardPadding);\n\n this.renderer.setStyle(wrapperContentRef, 'transform', this.widgetScaleService.scaleInCssValue);\n this.renderer.setStyle(wrapperContentRef, 'padding', `8px ${paddingPx}`);\n\n this.updateWrapperWidth(element, this.wrapperContentRef?.nativeElement);\n this.updateWrapperHeight(this.wrapperContentRef?.nativeElement);\n }\n\n private calcPadding(newWidth: number): number {\n const cardPadding = CARD_PADDING * (newWidth / NORMAL_WIDTH);\n\n return Math.min(cardPadding, CARD_PADDING);\n }\n\n private updateWrapperWidth(element: HTMLDivElement, wrapperContentRef: HTMLDivElement) {\n let wrapperWidth = element.offsetWidth <= NORMAL_WIDTH ? NORMAL_WIDTH : this.maxWidth;\n const newWidth = Math.min(Math.max(this.config.minWidth, element.offsetWidth), NORMAL_WIDTH);\n const scale = (newWidth + this.bordersWidth) / NORMAL_WIDTH;\n\n if (element.offsetWidth <= MIN_SCALE_WIDTH) {\n wrapperWidth = (wrapperWidth * scale) / this.widgetScaleService.scale;\n }\n\n this.peWidgetCardRef && this.renderer.setStyle(\n wrapperContentRef,\n 'width',\n `${coerceCssPixelValue(wrapperWidth - CARD_PADDING * 2)}`\n );\n }\n\n private updateWrapperHeight(wrapperEl: HTMLDivElement) {\n const maxHeight = wrapperEl.offsetHeight * this.widgetScaleService.scale;\n this.peWidgetCardRef && this.renderer.setStyle(\n this.peWidgetCardRef?.nativeElement,\n 'height',\n `${coerceCssPixelValue(maxHeight)}`\n );\n }\n}\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-footer-powered-by-payever',\n templateUrl: './footer-powered-by-payever.component.html',\n styleUrls: ['./footer-powered-by-payever.component.scss'],\n})\nexport class UIFooterPoweredByPayeverComponent extends UIBaseComponent {}\n","Powered by\n\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-full-header-santander',\n templateUrl: './full-header-santander.component.html',\n styleUrls: ['./full-header-santander.component.scss'],\n})\nexport class UIFullHeaderSantanderComponent extends UIBaseComponent {\n}\n","
\n \n
\n
\n \n
\n\n\n","import { Component, ChangeDetectionStrategy, HostBinding, Injector } from '@angular/core';\n\nimport { IconsHelperService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-header-santander',\n templateUrl: './header-santander.component.html',\n styleUrls: ['./header-santander.component.scss'],\n})\nexport class UIHeaderSantanderComponent extends UIBaseComponent {\n\n @HostBinding('style.color') headerTextColor: string = null;\n\n onUpdateStyles(): void {\n this.headerTextColor = this.currentStyles?.headerTextColor || this.default.styles.headerTextColor;\n }\n\n constructor(\n protected injector: Injector,\n protected iconsHelperService: IconsHelperService\n ) {\n super(injector);\n\n this.iconsHelperService.registerIcons([\n 'santander-bank',\n ]);\n }\n}\n","\n\n \n\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-loading-rates',\n templateUrl: './loading-rates.component.html',\n styleUrls: ['./loading-rates.component.scss'],\n})\nexport class UILoadingRatesComponent extends UIBaseComponent {}\n"," \n
\n","import { Component, ChangeDetectionStrategy, Input, Injector } from '@angular/core';\n\nimport { IconsHelperService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-payever-icon',\n template: ``,\n styles: [`\n :host, .payever-icon {\n height: 24px;\n }\n `],\n})\nexport class UIPayeverIconComponent extends UIBaseComponent {\n @Input() width: number = null;\n\n constructor(\n protected injector: Injector,\n protected iconsHelperService: IconsHelperService\n ) {\n super(injector);\n\n this.iconsHelperService.registerIcons([\n 'payever',\n ]);\n }\n}\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-powered-by-payever',\n templateUrl: './powered-by-payever.component.html',\n styleUrls: ['./powered-by-payever.component.scss'],\n})\nexport class UIPoweredByPayeverComponent extends UIBaseComponent {}\n","Powered by\n\n","
\n \n
\n \n
\n \n \n\n No rates available\n\n {{ error }}\n
\n","import {\n Component, ChangeDetectionStrategy, Injector, HostListener, Output,\n EventEmitter, Input, ElementRef,\n} from '@angular/core';\n\nimport { RateInterface } from '@pe/checkout/types';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-rate-button',\n templateUrl: './rate-button.component.html',\n styleUrls: ['./rate-button.component.scss'],\n})\nexport class UIRateButtonComponent extends UIBaseComponent {\n\n @Input() isLoading = false;\n @Input() error: string = null;\n @Input() rate: RateInterface = null;\n @Input() isShowSelectedRateDetails = true;\n @Input() numColumns = 2;\n @Output('clicked') clickedEmitter: EventEmitter = new EventEmitter();\n\n mainTextColor: string = null;\n buttonColor: string = null;\n\n protected debugName = 'UIRateButtonComponent';\n\n constructor(injector: Injector, protected element: ElementRef) {\n super(injector);\n }\n\n @HostListener('click', ['$event.target']) onClick(): void {\n this.clickedEmitter.emit();\n }\n\n onUpdateStyles(): void {\n this.mainTextColor = this.currentStyles?.mainTextColor || this.default.styles.mainTextColor;\n this.buttonColor = this.currentStyles?.buttonColor || this.default.styles.buttonColor;\n }\n}\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'finexp-ui-rate-dropdown-style',\n template: '',\n styleUrls: ['./style.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class UIRateDropdownStyleComponent {\n}\n","\n
\n \n 0\"\n class=\"rate-dropdown\"\n [style.color]=\"mainTextColor\"\n [style.background]=\"fieldBackgroundColor\"\n [style.border-color]=\"fieldLineColor\">\n \n \n \n \n
\n \n \n \n\n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n\n \n \n\n No rates available\n\n {{ error }}\n\n","import { coerceCssPixelValue } from '@angular/cdk/coercion';\nimport {\n Component, ChangeDetectionStrategy, ElementRef, Injector, Input,\n Output, EventEmitter, ViewChild, HostListener, OnDestroy,\n} from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\nimport { timer } from 'rxjs';\n\nimport { RateInterface, SelectedRateMultiTitle } from '@pe/checkout/types';\n\nimport { WidgetScaleService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-rate-dropdown',\n templateUrl: './rate-dropdown.component.html',\n styleUrls: ['./rate-dropdown.component.scss'],\n})\nexport class UIRateDropdownComponent extends UIBaseComponent implements OnDestroy {\n\n @Input() isLoading = false;\n @Input() error: string = null;\n rates: RateInterface[] = [];\n @Input('rates') set setRates(rates: RateInterface[]){\n this.rates = rates;\n this.checkDefaultRate();\n }\n\n @Input() useMultiTitle = false;\n @Input() isShowSelectedRateDetails = true;\n @Input() numColumns = 2;\n\n @Input() rate: RateInterface;\n\n @Output('rateSelected') rateSelectedEmitter: EventEmitter = new EventEmitter();\n\n @ViewChild(MatMenuTrigger) trigger: MatMenuTrigger;\n\n readonly sheetId: string = 'pe-widget-rate-drop-down-menu-sheet';\n readonly dropdownIconWidth: number = 56;\n readonly fontSize: number = 16;\n\n dropdownWidth: number = null;\n mainTextColor: string = null;\n fieldBackgroundColor: string = null;\n fieldLineColor: string = null;\n fieldArrowColor: string = null;\n\n constructor(\n injector: Injector,\n protected element: ElementRef,\n private widgetScaleService: WidgetScaleService,\n ) {\n super(injector);\n }\n\n get selectedRate(): RateInterface {\n return this.rates?.length ? (this.rate || this.rates[0]) : null;\n }\n\n get selectedRateMultiTitles(): SelectedRateMultiTitle[] {\n return this.rates?.length ? this.selectedRate?.selectedMultiTitles : null;\n }\n\n @HostListener('document:keydown.escape', ['$event'])\n onKeydownHandler(event: KeyboardEvent): void {\n this.trigger.closeMenu();\n }\n\n onTitleResized({ target }: ResizeObserverEntry) {\n this.dropdownWidth = target.clientWidth + this.dropdownIconWidth;\n }\n\n onOpened(): void {\n this.removeStyleSheet(0); // to prevent multiple insertions\n this.addStyleSheet();\n }\n\n onClosed(): void {\n this.removeStyleSheet();\n }\n\n selectRate(selected: RateInterface): void {\n this.rate = selected;\n this.rateSelectedEmitter.emit(selected);\n }\n\n onUpdateStyles(): void {\n this.mainTextColor = this.currentStyles?.mainTextColor || this.default.styles.mainTextColor;\n this.fieldBackgroundColor = this.currentStyles?.fieldBackgroundColor || this.default.styles.fieldBackgroundColor;\n this.fieldLineColor = this.currentStyles?.fieldLineColor || this.default.styles.fieldLineColor;\n this.fieldArrowColor = this.currentStyles?.fieldArrowColor || this.default.styles.fieldArrowColor;\n }\n\n ngOnDestroy(): void {\n super.ngOnDestroy();\n\n this.onClosed();\n }\n\n private addStyleSheet(): void {\n const sheet = document.createElement('style');\n sheet.id = this.sheetId;\n sheet.innerHTML = `\n .pe-widget-rate-drop-down-menu+* .cdk-overlay-pane > div.mat-menu-panel {\n width: ${(this.dropdownWidth - 2) * this.widgetScaleService.scale}px !important;\n --scale: ${this.widgetScaleService.scale};\n }\n .pe-widget-rate-drop-down-menu + * .cdk-overlay-pane > div.mat-menu-panel .mat-menu-content:not(:empty) {\n padding-top: ${coerceCssPixelValue(8 * this.widgetScaleService.scale)};\n padding-bottom: ${coerceCssPixelValue(8 * this.widgetScaleService.scale)};\n }\n `;\n\n this._rootNode().appendChild(sheet);\n }\n\n private removeStyleSheet(dueTime = 800): void {\n const sheetToBeRemoved = this._rootNode().querySelector(`#${this.sheetId}`);\n if (sheetToBeRemoved) {\n timer(dueTime).subscribe(() => {\n // We have to add delay because close animation takes some time and during that animation we have wrong width\n\n this._rootNode()?.contains(sheetToBeRemoved) && this._rootNode().removeChild(sheetToBeRemoved);\n });\n }\n }\n\n private checkDefaultRate(): void {\n const defaultRate = this.rates?.find(rate => rate?.isDefault);\n defaultRate && this.selectRate(defaultRate);\n }\n\n private _rootNode(): Element {\n return document.body;\n }\n}\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-rate-error',\n templateUrl: './rate-error.component.html',\n styleUrls: ['./rate-error.component.scss'],\n})\nexport class UIRateErrorComponent extends UIBaseComponent {}\n","\n","\n
\n \n
\n\n\n\nNo rates available\n\n{{ error }}\n","import { Component, ChangeDetectionStrategy, Input } from '@angular/core';\n\nimport { RateInterface } from '@pe/checkout/types';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-rate-text',\n templateUrl: './rate-text.component.html',\n styleUrls: ['./rate-text.component.scss'],\n})\nexport class UIRateTextComponent extends UIBaseComponent {\n\n @Input() isLoading = false;\n @Input() error: string = null;\n @Input() rate: RateInterface = null;\n @Input() isShowSelectedRateDetails = true;\n @Input() numColumns = 2;\n\n mainTextColor: string = null;\n\n onUpdateStyles(): void {\n this.mainTextColor = this.currentStyles?.mainTextColor || this.default.styles.mainTextColor;\n }\n}\n","import { Component, ChangeDetectionStrategy, HostBinding } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-regular-text',\n templateUrl: './regular-text.component.html',\n styleUrls: ['./regular-text.component.scss'],\n})\nexport class UIRegularTextComponent extends UIBaseComponent {\n\n @HostBinding('style.color') regularTextColor: string = null;\n\n onUpdateStyles(): void {\n this.regularTextColor = this.currentStyles?.regularTextColor || this.default.styles.regularTextColor;\n }\n}\n","\n","import { Component, ChangeDetectionStrategy, Injector } from '@angular/core';\n\nimport { IconsHelperService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-santander-consumer-icon-medium',\n template: `\n \n `,\n styles: [`\n :host {\n font-family: Roboto, sans-serif;\n display: inline-block;\n margin-right: 6px;\n }\n .payever-icon {\n width: 270px;\n height: 20px;\n }\n `],\n})\nexport class UISantanderConsumerIconMediumComponent extends UIBaseComponent {\n constructor(\n protected injector: Injector,\n protected iconsHelperService: IconsHelperService\n ) {\n super(injector);\n\n this.iconsHelperService.registerIcons([\n 'santander-consumer',\n ]);\n }\n}\n","import { Component, ChangeDetectionStrategy, Injector } from '@angular/core';\n\nimport { IconsHelperService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-santander-icon-medium',\n template: `\n \n `,\n styles: [`\n :host {\n font-family: Roboto, sans-serif;\n display: inline-block;\n margin-right: 6px;\n }\n .payever-icon {\n width: 95px;\n height: 20px;\n }\n `],\n})\nexport class UISantanderIconMediumComponent extends UIBaseComponent {\n constructor(\n protected injector: Injector,\n protected iconsHelperService: IconsHelperService\n ) {\n super(injector);\n\n this.iconsHelperService.registerIcons([\n 'santander-medium',\n ]);\n }\n}\n","import { Component, ChangeDetectionStrategy, Injector } from '@angular/core';\n\nimport { IconsHelperService } from '../../../services';\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-santander-icon-short',\n templateUrl: './santander-icon-short.component.html',\n styleUrls: ['./santander-icon-short.component.scss'],\n})\nexport class UISantanderIconShortComponent extends UIBaseComponent {\n constructor(\n protected injector: Injector,\n protected iconsHelperService: IconsHelperService\n ) {\n super(injector);\n\n this.iconsHelperService.registerIcons([\n 'santander-short',\n ]);\n }\n}\n","\n","
\n
\n {{col.title}} \n {{col.value}}\n
\n
\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n Injector,\n Input,\n OnChanges,\n HostBinding,\n} from '@angular/core';\n\nimport { DetailInterface } from '@pe/checkout/types';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-selected-rate-details-line',\n templateUrl: './selected-rate-details-line.component.html',\n styleUrls: ['./selected-rate-details-line.component.scss'],\n})\nexport class UISelectedRateDetailsLineComponent extends UIBaseComponent implements OnChanges {\n\n @Input() details: DetailInterface[] = [];\n\n @HostBinding('style.color') regularTextColor: string = null;\n\n protected debugName = 'UISelectedRateDetailsLineComponent';\n\n constructor(injector: Injector, protected element: ElementRef) {\n super(injector);\n }\n\n ngOnChanges(): void {\n super.ngOnChanges();\n }\n\n onUpdateStyles(): void {\n this.regularTextColor = this.currentStyles?.regularTextColor || this.default.styles.regularTextColor;\n }\n}\n","\n \n \n \n \n\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n Input,\n OnChanges,\n HostBinding,\n ViewChild,\n ViewChildren,\n QueryList,\n Renderer2,\n} from '@angular/core';\n\nimport { DetailInterface } from '@pe/checkout/types';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-selected-rate-details',\n templateUrl: './selected-rate-details.component.html',\n styleUrls: ['./selected-rate-details.component.scss'],\n})\nexport class UISelectedRateDetailsComponent extends UIBaseComponent implements OnChanges {\n\n @Input() details: DetailInterface[] = [];\n @Input() numColumns: number;\n\n @ViewChild('grid') gridRef: ElementRef;\n\n @ViewChildren('cell') cells: QueryList>;\n\n @HostBinding('style.color') regularTextColor: string = null;\n\n rows: DetailInterface[][] = [];\n\n protected debugName = 'UISelectedRateDetailsComponent';\n\n private renderer = this.injector.get(Renderer2);\n\n ngOnChanges(): void {\n super.ngOnChanges();\n this.rows = this.details.reduce((acc, item, index) => {\n if (index % this.numColumns === 0) {\n acc.push([]);\n }\n acc.at(-1).push(item);\n\n return acc;\n }, []);\n }\n\n onResize({ contentRect }: ResizeObserverEntry): void {\n const gridElement: HTMLElement = this.gridRef.nativeElement;\n const cells: ElementRef[] = this.cells.toArray();\n const gap = 16;\n const { width: newWidth } = contentRect;\n const cols: number = this.calculateColumns(cells.length, newWidth);\n const width: number = (newWidth - (cols - 1) * gap) / cols;\n this.renderer.setStyle(gridElement, 'display', 'grid');\n this.renderer.setStyle(gridElement, 'grid-template-columns', `repeat(${cols}, ${width}px)`);\n }\n\n onUpdateStyles(): void {\n this.regularTextColor = this.currentStyles?.regularTextColor || this.default.styles.regularTextColor;\n }\n\n private calculateColumns(cellCount: number, newWidth: number): number {\n const widest = Math.max(...this.cells.map(cell => Array.from(cell.nativeElement.children).reduce(\n (acc, item) => acc + item.clientWidth, 0\n )));\n const maxCols = Math.floor(newWidth / widest);\n if (cellCount % 2 === 1) {\n return maxCols;\n }\n const cols = maxCols % 2 === 1 && maxCols > 1 ? maxCols - 1 : maxCols;\n\n return Math.max(Math.min(cols, this.cells.length), 1);\n }\n}\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'finexp-ui-shadow-root-wrapper',\n template: '',\n encapsulation: ViewEncapsulation.ShadowDom,\n})\nexport class UIShadowRootWrapperComponent {\n}\n","\n\n\n \n","import { Component, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-short-header-santander',\n templateUrl: './short-header-santander.component.html',\n styles: [`\n :host {\n font-family: Roboto, sans-serif;\n display: flex;\n align-items: center;\n color: #333333;\n padding: 0 6px 2px;\n font-size: 15px;\n font-weight: 500;\n border-radius: 8px;\n .content-wrapper {\n padding: 0px;\n }\n }\n `],\n})\nexport class UIShortHeaderSantanderComponent extends UIBaseComponent {\n @Input() logo: 'short' | 'medium' = 'medium';\n\n @HostBinding('style.color') headerTextColor: string = null;\n\n onUpdateStyles(): void {\n this.headerTextColor = this.currentStyles?.headerTextColor || this.default.styles.headerTextColor;\n }\n}\n","import { Component, ChangeDetectionStrategy, Output, EventEmitter, HostBinding } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-show-checkout-wrapper-button',\n templateUrl: './show-checkout-wrapper-button.component.html',\n styleUrls: ['./show-checkout-wrapper-button.component.scss'],\n})\nexport class UIShowCheckoutWrapperButtonComponent extends UIBaseComponent {\n\n @Output('clicked') clickedEmitter: EventEmitter = new EventEmitter();\n\n @HostBinding('style.color') ctaTextColor: string = null;\n\n onClick(): void {\n this.clickedEmitter.emit();\n }\n\n onUpdateStyles(): void {\n this.ctaTextColor = this.currentStyles?.ctaTextColor || this.default.styles.ctaTextColor;\n }\n}\n","\n >\n\n","import { Component, ChangeDetectionStrategy, HostBinding } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-top-big-text',\n templateUrl: './top-big-text.component.html',\n styleUrls: ['./top-big-text.component.scss'],\n})\nexport class UITopBigTextComponent extends UIBaseComponent {\n\n @HostBinding('style.color') regularTextColor: string = null;\n\n onUpdateStyles(): void {\n this.regularTextColor = this.currentStyles?.regularTextColor || this.default.styles.regularTextColor;\n }\n}\n","\n","import { Component, ChangeDetectionStrategy, HostBinding } from '@angular/core';\n\nimport { UIBaseComponent } from '../base.component';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'finexp-ui-top-text',\n templateUrl: './top-text.component.html',\n styleUrls: ['./top-text.component.scss'],\n})\nexport class UITopTextComponent extends UIBaseComponent {\n\n @HostBinding('style.color') regularTextColor: string = null;\n\n onUpdateStyles(): void {\n this.regularTextColor = this.currentStyles?.regularTextColor || this.default.styles.regularTextColor;\n }\n}\n","\n","import {\n CheckoutModeEnum,\n CheckoutPlacementEnum,\n CustomWidgetConfigInterface,\n RatesOrderEnum,\n} from '@pe/checkout/types';\n\nexport const defaultCustomWidgetConfig: () => CustomWidgetConfigInterface = () => ({\n\n channelSet: null,\n\n amountLimits: {\n min: null,\n max: null,\n },\n // displayMode: 'overlay',\n isVisible: true,\n payments: [],\n ratesOrder: RatesOrderEnum.Asc,\n styles: {\n // color: 'green',\n // anotherStyle: 'someValue',\n\n backgroundColor: '#ffffff',\n lineColor: '#eeeeee',\n mainTextColor: '#333333',\n regularTextColor: '#333333',\n ctaTextColor: '#333333',\n buttonColor: '#e8e8e8',\n fieldBackgroundColor: '#ffffff',\n fieldLineColor: '#e8e8e8',\n fieldArrowColor: '#555555',\n headerTextColor: '#888888',\n },\n\n minWidth: null,\n maxWidth: null,\n // height: null,\n // isAdaptiveSizes: true,\n checkoutPlacement: CheckoutPlacementEnum.RighSidebar,\n checkoutMode: CheckoutModeEnum.None,\n\n successUrl: null,\n pendingUrl: null,\n cancelUrl: null,\n failureUrl: null,\n noticeUrl: null,\n\n business: null,\n checkoutId: null,\n widgetId: null,\n amount: null,\n reference: null,\n type: null,\n isDebugMode: null,\n});\n","import {\n ComponentFactory,\n ComponentFactoryResolver,\n Directive,\n} from '@angular/core';\n\nimport { BaseWidgetCustomElementComponent } from './base-widget-custom-element.component';\n\n\n@Directive()\nexport abstract class AbstractBaseWidgetModule {\n constructor(protected componentFactoryResolver: ComponentFactoryResolver) {}\n\n abstract resolveComponent(): ComponentFactory;\n}\n","import { CurrencyPipe, PercentPipe } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Directive,\n EventEmitter,\n Injector,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport { Observable, ReplaySubject, Subscription, throwError, timer } from 'rxjs';\nimport { catchError, map, mergeMap, takeUntil } from 'rxjs/operators';\n\nimport {\n CheckoutModeEnum,\n CheckoutAndCreditsInterface,\n RateInterface,\n RatesOrderEnum,\n WidgetConfigInterface,\n WidgetConfigPaymentInterface,\n PaymentItem,\n AddressInterface,\n ShippingOption,\n} from '@pe/checkout/types';\nimport { LocaleConstantsService } from '@pe/checkout/utils';\n\n\n\n@Directive()\nexport abstract class BaseWidgetComponent implements OnChanges, OnDestroy {\n\n @Input() amount: number;\n\n @Input() channelSet: string;\n\n @Input() config: WidgetConfigInterface;\n\n @Input() cart: PaymentItem[];\n\n @Input() billingAddress: AddressInterface;\n\n @Input() shippingAddress: AddressInterface;\n\n @Input() shippingOption: ShippingOption;\n\n @Output('clicked') clickedEmitter: EventEmitter = new EventEmitter();\n @Output('failed') failedEmitter: EventEmitter = new EventEmitter();\n\n isLoadingRates = false;\n ratesAsc: RateInterface[];\n ratesDesc: RateInterface[];\n currency: string;\n error: string;\n\n protected destroy$: ReplaySubject = new ReplaySubject();\n protected formattingLocale: string;\n\n protected currencyPipe: CurrencyPipe = this.injector.get(CurrencyPipe);\n protected percentPipe: PercentPipe = this.injector.get(PercentPipe);\n protected cdr: ChangeDetectorRef = this.injector.get(ChangeDetectorRef);\n protected localeConstantsService = this.injector.get(LocaleConstantsService);\n\n private getRatesSub: Subscription;\n private selectedRate: RateInterface;\n\n constructor(protected injector: Injector) {}\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.complete();\n }\n\n get rates(): RateInterface[] {\n return this.config.ratesOrder === RatesOrderEnum.Asc ? this.ratesAsc : this.ratesDesc;\n }\n\n get currentRate(): RateInterface {\n return this.rates ? (this.selectedRate || this.rates[this.rates.length - 1]) : null;\n }\n\n get isFinCalc(): boolean {\n return this.config\n && this.config.checkoutMode\n && this.config.checkoutMode === CheckoutModeEnum.Calculator;\n }\n\n get hasShortToExtendedViewSwitcher(): boolean {\n return this.isFinCalc;\n }\n\n get isFinExp(): boolean {\n return this.config && this.config.checkoutMode && this.config.checkoutMode === CheckoutModeEnum.FinanceExpress;\n }\n\n get isShowWrapperButtonVisible(): boolean {\n return this.isFinExp;\n }\n\n get isNone(): boolean {\n return this.config && this.config.checkoutMode ? this.config.checkoutMode === CheckoutModeEnum.None : true;\n }\n\n get isBNPL(): boolean {\n return this.currentPayment?.isBNPL || false;\n }\n\n get productId(): string {\n return this.currentPayment?.productId || null;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['amount']\n || changes['channelSet']\n || (changes['config']\n && !this.checkPaymentsEquality(changes['config'].currentValue.payments, changes['config'].previousValue?.payments)\n )\n ) {\n if (this.getRatesSub) {\n this.getRatesSub.unsubscribe();\n }\n this.getRatesSub = this.updateRates().pipe(takeUntil(this.destroy$)).subscribe();\n }\n }\n\n onRateSelected(rate: RateInterface): void {\n this.selectedRate = rate;\n }\n\n onClicked(): void {\n if (this.isShowWrapperButtonVisible) {\n this.clickedEmitter.emit();\n }\n }\n\n toPercent(value: number): string {\n return this.percentPipe.transform(value / 100, '1.0-2');\n }\n\n toPrice(value: number): string {\n return this.currencyPipe.transform(\n value,\n this.currency,\n 'symbol-narrow',\n (value % 1 === 0) ? '1.0-2' : '1.2-2',\n );\n }\n\n toPriceNumber(value: number): string {\n return (this.toPrice(value) || '').replace(/[^\\d\\s,.-]/g, '').trim();\n }\n\n protected abstract getRates(): Observable>;\n\n protected abstract transformRate(rate: TCreditInterface): RateInterface;\n\n protected get currentPayment(): WidgetConfigPaymentInterface {\n return this.config?.payments?.find(a => this.amount\n && a.enabled\n && this.amount >= a.amountLimits.min\n && this.amount <= a.amountLimits.max\n );\n }\n\n protected updateRates(delay = 500): Observable {\n this.isLoadingRates = true;\n this.error = null;\n\n return timer(delay).pipe(\n mergeMap(() =>\n this.getRates().pipe(\n takeUntil(this.destroy$),\n map((data) => {\n this.currency = data.currency;\n this.ratesAsc = data.rates.map(rate => this.transformRate(rate));\n this.selectedRate = this.ratesAsc?.[-1];\n this.ratesDesc = this.ratesAsc.map(a => a).reverse();\n this.isLoadingRates = false;\n this.cdr.detectChanges();\n\n return null;\n }),\n catchError((err) => {\n this.ratesAsc = this.ratesDesc = null;\n this.error = err?.error?.message || err?.message || 'Cant load rates!';\n this.isLoadingRates = false;\n this.failedEmitter.emit();\n this.cdr.detectChanges();\n\n return throwError(err);\n })\n )\n ),\n );\n }\n\n private checkPaymentsEquality(\n firstPayments: WidgetConfigPaymentInterface[],\n secondPayments: WidgetConfigPaymentInterface[],\n ): boolean {\n return firstPayments.every((payment, index) => {\n const correspondingPayment = secondPayments?.[index];\n\n return correspondingPayment\n && payment.paymentMethod === correspondingPayment.paymentMethod\n && payment?.amountLimits?.max === correspondingPayment?.amountLimits?.max\n && payment?.amountLimits?.min === correspondingPayment?.amountLimits?.min\n && payment.isBNPL === correspondingPayment.isBNPL\n && payment.productId === correspondingPayment.productId\n && payment.enabled === correspondingPayment.enabled;\n });\n }\n}\n","import { registerLocaleData } from '@angular/common';\nimport {\n Injector,\n Input,\n Directive,\n Output,\n EventEmitter,\n ChangeDetectorRef,\n OnDestroy,\n ElementRef,\n} from '@angular/core';\nimport { BehaviorSubject, combineLatest, from, Observable, ReplaySubject } from 'rxjs';\nimport { first, map, takeUntil, tap } from 'rxjs/operators';\n\nimport {\n PaymentItem,\n PaymentMethodEnum,\n WidgetConfigInterface,\n WidgetTypeEnum,\n} from '@pe/checkout/types';\nimport { LocaleConstantsService } from '@pe/checkout/utils';\nimport { EnvironmentConfigInterface as EnvInterface } from '@pe/common';\n\nimport { LOCALE_MAPPER } from '../../../../../apps/environments/locales';\n\n@Directive()\nexport abstract class BaseWidgetCustomElementComponent implements OnDestroy {\n\n amount: number = null;\n @Input('amount') set setAmount(amount: any) {\n this.amount = this.parseInputNumber(amount);\n }\n\n channelSet: string = null;\n @Input('channelset') set setChannelSet(channelSet: any) {\n this.channelSet = this.parseInputString(channelSet);\n }\n\n type: string = null;\n @Input('type') set setWidgetType(type: any) {\n this.type = this.parseInputString(type);\n }\n\n env: EnvInterface = null;\n @Input('env') set setEnv(env: any) {\n this.env = this.parseInputObject(env);\n }\n\n config: WidgetConfigInterface = null;\n @Input('config') set setInitialValues(config: any) {\n this.config = this.parseInputObject(config);\n }\n\n isDebugMode = false;\n @Input('isdebugmode') set setIsDebugMode(isDebugMode: any) {\n this.isDebugMode = this.parseInputBoolean(isDebugMode);\n }\n\n paymentMethod: PaymentMethodEnum = null;\n @Input('paymentMethod') set setPaymentMethod(paymentMethod: any) {\n this.paymentMethod = this.parseInputString(paymentMethod) as PaymentMethodEnum;\n }\n\n theme: 'light' | 'dark' = null;\n @Input('theme') set setTheme(theme: 'light' | 'dark') {\n const value = theme\n ? this.parseInputString(theme) as 'light' | 'dark'\n : window.matchMedia('(prefers-color-scheme: dark)').matches ? 'light' : 'dark';\n\n this.theme = value;\n }\n\n @Input() cart: PaymentItem[];\n\n @Input() shadowRoot: ShadowRoot;\n\n @Output() clicked: EventEmitter = new EventEmitter();\n\n isReady$ = new BehaviorSubject(false);\n WidgetTypeEnum: typeof WidgetTypeEnum = WidgetTypeEnum;\n cdr: ChangeDetectorRef = this.injector.get(ChangeDetectorRef);\n\n protected destroyed$: ReplaySubject = new ReplaySubject();\n\n protected localeConstantsService = this.injector.get(LocaleConstantsService);\n\n private isForceHideSubject$ = new BehaviorSubject(false);\n\n constructor(\n public element: ElementRef,\n protected injector: Injector,\n ) {\n combineLatest([\n this.isForceHideSubject$,\n this.registerLocale(),\n ]).pipe(\n tap(([isForceHide, localeLoaded]) => this.isReady$.next(!isForceHide && localeLoaded)),\n takeUntil(this.destroyed$),\n ).subscribe();\n }\n\n ngOnDestroy(): void {\n this.destroyed$.next(true);\n this.destroyed$.complete();\n }\n\n onClicked(): void {\n this.clicked.emit();\n }\n\n onFailed(): void {\n if (!this.isDebugMode) {\n this.isForceHideSubject$.next(true);\n }\n }\n\n protected parseInputObject(data: string): any {\n let result: any = data;\n try {\n result = JSON.parse(data);\n } catch (e) {}\n\n return result;\n }\n\n protected parseInputBoolean(data: any): boolean {\n return data === true || data === 'true'\n ? true\n : false;\n }\n\n protected parseInputNumber(data: any): number {\n return parseFloat(data);\n }\n\n protected parseInputString(data: string): string {\n let result: string = data;\n try {\n result = JSON.parse(data);\n } catch (e) {}\n\n return String(result);\n }\n\n private importLocale(): Observable {\n const locale = this.localeConstantsService.getLang();\n\n return from(LOCALE_MAPPER[locale]?.() ?? import('@angular/common/locales/en')).pipe(\n map(locale => locale.default),\n );\n }\n\n protected registerLocale(): Observable {\n return this.importLocale().pipe(\n first(),\n tap((l: any) => {\n registerLocaleData(l, l[0] === 'nb' ? 'no' : l[0]);\n }),\n map(() => true),\n );\n }\n}\n","import { CommonModule, CurrencyPipe, PercentPipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\n\nimport { ResizeDirective } from '@pe/checkout/utils/from-resize-observer';\n\nimport {\n UICardComponent,\n UICardStyleComponent,\n UIFooterPoweredByPayeverComponent,\n UIFullHeaderSantanderComponent,\n UIHeaderSantanderComponent,\n UILoadingRatesComponent,\n UIPayeverIconComponent,\n UIRateButtonComponent,\n UIRateDropdownComponent,\n UIRateTextComponent,\n UIRateErrorComponent,\n UIRegularTextComponent,\n UIPoweredByPayeverComponent,\n UISantanderIconShortComponent,\n UISelectedRateDetailsComponent,\n UIShortHeaderSantanderComponent,\n UIShowCheckoutWrapperButtonComponent,\n UITopTextComponent,\n UITopBigTextComponent,\n UISelectedRateDetailsLineComponent,\n UISantanderIconMediumComponent,\n UISantanderConsumerIconMediumComponent,\n UIRateDropdownStyleComponent,\n UIShadowRootWrapperComponent,\n} from './components/ui';\nimport { CheckoutApiService, IconsHelperService } from './services';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule, // TODO Remove when widgets-dev-config\n MatMenuModule,\n MatDialogModule,\n MatIconModule,\n ResizeDirective,\n ],\n exports: [\n MatIconModule,\n UICardComponent,\n UIFooterPoweredByPayeverComponent,\n UIFullHeaderSantanderComponent,\n UIHeaderSantanderComponent,\n UILoadingRatesComponent,\n UIPayeverIconComponent,\n UIRateButtonComponent,\n UIRateDropdownComponent,\n UIRateTextComponent,\n UIRateErrorComponent,\n UIRegularTextComponent,\n UIPoweredByPayeverComponent,\n UISantanderIconShortComponent,\n UISantanderIconMediumComponent,\n UISantanderConsumerIconMediumComponent,\n UISelectedRateDetailsComponent,\n UISelectedRateDetailsLineComponent,\n UIShortHeaderSantanderComponent,\n UIShowCheckoutWrapperButtonComponent,\n UITopTextComponent,\n UITopBigTextComponent,\n UIShadowRootWrapperComponent,\n ],\n declarations: [\n UICardComponent,\n UICardStyleComponent,\n UIFooterPoweredByPayeverComponent,\n UIFullHeaderSantanderComponent,\n UIHeaderSantanderComponent,\n UILoadingRatesComponent,\n UIPayeverIconComponent,\n UIRateButtonComponent,\n UIRateDropdownStyleComponent,\n UIRateDropdownComponent,\n UIRateTextComponent,\n UIRateErrorComponent,\n UIRegularTextComponent,\n UIPoweredByPayeverComponent,\n UISantanderIconShortComponent,\n UISantanderIconMediumComponent,\n UISantanderConsumerIconMediumComponent,\n UISelectedRateDetailsComponent,\n UISelectedRateDetailsLineComponent,\n UIShortHeaderSantanderComponent,\n UIShowCheckoutWrapperButtonComponent,\n UITopTextComponent,\n UITopBigTextComponent,\n UIShadowRootWrapperComponent,\n ],\n providers: [\n CurrencyPipe,\n PercentPipe,\n IconsHelperService,\n CheckoutApiService,\n ],\n})\nexport class PaymentWidgetsSdkModule {\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Inject, Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, filter, shareReplay } from 'rxjs/operators';\n\nimport { FlowSettingsInterface, PaymentMethodEnum } from '@pe/checkout/types';\nimport { PE_ENV, EnvironmentConfigInterface as EnvInterface } from '@pe/common';\n\n\ninterface DefaultConnectionInterface {\n _id: string;\n}\n\n@Injectable()\nexport class CheckoutApiService {\n\n private checkoutSettings: { [key: string]: Observable } = {};\n private defaultConnections: { [key: string]: Observable } = {};\n\n constructor(\n private httpClient: HttpClient,\n @Inject(PE_ENV) private env: EnvInterface,\n ) {}\n\n getCheckoutSettings(channelSetId: string): Observable {\n if (!this.checkoutSettings[channelSetId]) {\n this.checkoutSettings[channelSetId] = this.fetchCheckoutSettings(channelSetId).pipe(\n filter(settings => !!settings),\n catchError((err) => {\n this.checkoutSettings[channelSetId] = null;\n\n return throwError(new Error(\n `Checkout settings request: ${err?.error?.message || err.message || 'Unknown error'}`\n ));\n }),\n shareReplay(1),\n );\n }\n\n return this.checkoutSettings[channelSetId];\n }\n\n getDefaultConnections(channelSetId: string, payment: PaymentMethodEnum): Observable {\n const key = `${channelSetId}|${payment}`;\n\n if (!this.defaultConnections[key]) {\n this.defaultConnections[key] = this.fetchDefaultConnections(\n channelSetId,\n payment,\n ).pipe(\n filter(connection => !!connection),\n catchError((err) => {\n this.checkoutSettings[channelSetId] = null;\n\n return throwError(new Error(\n `Default connection request: ${err?.error?.message || err?.message || 'Unknown error'}`\n ));\n }),\n shareReplay(1),\n );\n }\n\n return this.defaultConnections[key];\n }\n\n private fetchCheckoutSettings(\n channelSetId: string,\n ): Observable {\n return this.httpClient.get(\n `${this.env.backend.checkout}/api/checkout/channel-set/${channelSetId}/full-settings`\n );\n }\n\n private fetchDefaultConnections(\n channelSetId: string,\n payment: PaymentMethodEnum,\n ): Observable {\n return this.httpClient.get(\n `${this.env.backend.checkout}/api/channel-set/${channelSetId}/default-connection/${payment}`\n );\n }\n}\n","import { Inject, Injectable } from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nimport { PE_ENV, EnvironmentConfigInterface as EnvInterface } from '@pe/common';\n\n@Injectable()\nexport class IconsHelperService {\n\n constructor(\n private domSanitizer: DomSanitizer,\n private matIconRegistry: MatIconRegistry,\n @Inject(PE_ENV) private env: EnvInterface,\n ) {\n\n }\n\n registerIcons(iconNames: string[]): void {\n iconNames?.forEach(name => this.matIconRegistry.addSvgIcon(\n name,\n this.domSanitizer.bypassSecurityTrustResourceUrl(`${this.env.custom.cdn}/payment-widgets/logos/${name}.svg`),\n ));\n }\n}\n","import { Injectable } from '@angular/core';\n\nconst DEFAULT_SCALE = 1;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WidgetScaleService {\n private _scale = 1;\n\n set scale(scale: number) {\n this._scale = scale;\n }\n\n get scale(): number {\n return this._scale;\n }\n\n get scaleInCssValue(): string {\n return `scale(${this._scale})`;\n }\n\n setDefault(): void {\n this.scale = DEFAULT_SCALE;\n }\n}\n","import { Directive, ElementRef, Output } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport function fromResizeObserver(\n element: HTMLElement,\n): Observable {\n return new Observable((sub) => {\n const observer = new ResizeObserver((entries) => {\n sub.next(entries[0]);\n });\n\n observer.observe(element);\n\n return () => observer.disconnect();\n });\n}\n\n@Directive({\n selector: '[resized]',\n standalone: true,\n})\nexport class ResizeDirective {\n\n constructor(private elementRef: ElementRef) {}\n\n @Output() resized = fromResizeObserver(this.elementRef.nativeElement);\n}\n"],"x_google_ignoreList":[]}