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8G,oBAGoB9G,KAAA+G,QAAkB,CAF7C,CAOHnC,qBACM5E,KAAKD,WAAWS,WAClBR,KAAK0C,SAASsE,SAAS9D,SAASC,gBAAiB,aAEjD1C,WAAW,KACTT,KAAK+G,QAAU/G,KAAK+G,OACpB/G,KAAK8G,kBAAkBG,cAAY,EAClC,KAEP,CAEA5D,UAAUqB,GACR1E,KAAKwE,iBAAiBgC,WAAW9B,GACjC1E,KAAKqG,aAAaa,aACpB,CAEA3D,cACEvD,KAAK0C,SAASO,YAAYC,SAASC,gBAAiB,YACtD,CAACzC,SAAAV,KAAA,mBAAAW,iBA9BUgD,GAAmBzH,MAAA0E,KAAA1E,0BAAA,EAAAwE,SAAAV,KAAA,UAAAmH,EAAAT,IAAA,MAAnB/C,EAAmB1C,UAAA,0BAAAmG,eAAA,SAAA1D,EAAA/B,EAAA0F,MAAA,EAAA3D,YAShBU,IAAyB,WACzBD,IAAqB,wMAVxBR,CAAmB,8DCVzB,IAAMQ,EAAqB,MAA5B,MAAOA,EACXvE,YACUwD,GAAApD,KAAAoD,YACP,CAKgCtG,UACjCkD,KAAKkH,cACLlH,KAAKoD,WAAWoB,iBAAiBgC,YACnC,CAEAF,WAAWgB,GACTtH,KAAKuH,QAAUD,EAAaE,UAC9B,CAEAN,cACElH,KAAKmG,WAAa,mBAClBnG,KAAKuH,QAAU,GACjB,CAAC7G,SAAAV,KAAA,mBAAAW,iBApBUwD,GAAqBjI,MAAA0E,KAAA,EAAAF,SAAAV,KAAA,UAAAyG,EAAAC,IAAA,MAArBvC,EAAqBlD,UAAA,4BAAA0F,SAAA,EAAAC,aAAA,SAAAlD,EAAA/B,GAAA,EAAA+B,oCAArB/B,EAAA7E,QAAA+J,EAAe,sFAAf1C,CAAqB","sources":["./src/app/blocks/status-message/status-message.component.html","./src/app/blocks/status-message/status-message.component.ts","./src/app/shared/components/modal/modal.component.html","./src/app/shared/components/modal/modal.component.ts","./src/app/shared/directives/modal-swipe/bottom-swipe-sheet.directive.ts","./src/app/shared/directives/modal-swipe/modal-swipe.directive.ts","./src/app/shared/directives/modal-swipe/overlay-swipe.directive.ts"],"sourcesContent":["<ng-container [ngSwitch]=\"layout$ | async\">\n  <ng-container *ngSwitchCase=\"layouts.Default\">\n    <ng-container *ngIf=\"statusMessage$ | async as statusMessage\">\n      <app-modal\n        *ngIf=\"isShowStatusMessage\"\n        [title]=\"statusMessage.title\"\n        i18n-title\n        (closeModal)=\"isShowStatusMessage = false\"\n        [isDialog]=\"!!statusMessage.dialog\"\n      >\n        <div class=\"modal-message h4\" *ngIf=\"isMessageArray\">\n          <p *ngFor=\"let line of $any(statusMessage.message)\">\n            {{ line }}\n          </p>\n        </div>\n        <div class=\"modal-message h4\" *ngIf=\"!isMessageArray\">\n          {{ statusMessage.message }}\n        </div>\n        <ng-container footer>\n          <button *ngIf=\"!statusMessage.dialog\" type=\"button\" mat-flat-button color=\"accent\" (click)=\"isShowStatusMessage = false\" class=\"modal-footer-button\">\n            <span i18n=\"@@Ok\">Ok</span>\n          </button>\n\n          <div *ngIf=\"statusMessage.dialog\" class=\"button-panel _center l-wrapper\">\n            <div class=\"button-panel__col\" *ngFor=\"let button of statusMessage.dialog.buttons\">\n              <button type=\"button\" mat-flat-button [color]=\"button.type\" (click)=\"button.onClick(); isShowStatusMessage = false\">\n                <span>{{ button.text }}</span>\n              </button>\n            </div>\n          </div>\n        </ng-container>\n      </app-modal>\n    </ng-container>\n\n  </ng-container>\n\n  <ng-container *ngSwitchCase=\"layouts.Fresh\">\n    <div *ngIf=\"statusMessage$ | async as statusMessage\">\n      <app-modal\n        *ngIf=\"isShowStatusMessage\"\n        [isDialog]=\"!!statusMessage.dialog\"\n        [additionalClass]=\"'_info'\"\n        [swipeDirection]=\"'bottom'\"\n        (closeModal)=\"onClose()\"\n        class=\"modal-info\"\n      >\n        <div class=\"modal-info__image\">\n          <img *ngIf=\"statusMessage.type === 'error'\" ngSrc=\"./assets/images/error@2x.png\" alt=\"logo\" width=\"163\" height=\"160\">\n          <img *ngIf=\"statusMessage.type === 'warning'\" ngSrc=\"./assets/images/warning@2x.png\" alt=\"logo\" width=\"150\" height=\"157\">\n        </div>\n\n        <div class=\"modal-info__title h1\">\n          <p>{{ statusMessage.title }}</p>\n        </div>\n\n        <div class=\"modal-info__message h4\" *ngIf=\"isMessageArray\">\n          <p *ngFor=\"let line of $any(statusMessage.message)\">\n            {{ line }}\n          </p>\n        </div>\n        <div class=\"modal-info__message h4\" *ngIf=\"!isMessageArray\">\n          {{ statusMessage.message }}\n        </div>\n\n        <div class=\"modal-info__footer\">\n          <button *ngIf=\"!statusMessage.dialog\" type=\"button\"\n                  (click)=\"isShowStatusMessage = false\"\n                  class=\"button button--th-main\">\n            <span i18n=\"@@Ok\">Ok</span>\n          </button>\n        </div>\n\n        <div class=\"modal-info__footer\" *ngIf=\"statusMessage.dialog\"\n             [ngClass]=\"{'_multiple': statusMessage.dialog.buttons.length > 1}\">\n          <ng-container *ngFor=\"let button of statusMessage.dialog.buttons\">\n            <button type=\"button\" class=\"button button--th-main\" (click)=\"button.onClick();\n                  isShowStatusMessage = false\">\n              <span>{{ button.text }}</span>\n            </button>\n          </ng-container>\n        </div>\n\n      </app-modal>\n    </div>\n  </ng-container>\n</ng-container>\n","import { AsyncPipe, NgClass, NgFor, NgIf, NgOptimizedImage, NgSwitch, NgSwitchCase } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Observable, tap } from 'rxjs';\n\nimport { ModalComponent } from '../../shared/components/modal/modal.component';\nimport { StatusMessage } from '../../shared/interfaces/message-status.interface';\nimport { StatusMessageService } from '../../shared/services/status-message.service';\nimport { Layout } from '../../api/v1/models/layout';\nimport { ConfigRepository } from '../../shared/repositories/config.repository';\nimport { BreakpointService } from '../../shared/services/breakpoint.service';\n\n@Component({\n  selector: 'app-status-message',\n  standalone: true,\n  imports: [\n    AsyncPipe,\n    MatButtonModule,\n    NgIf,\n    NgFor,\n    NgClass,\n    NgOptimizedImage,\n    NgSwitch,\n    NgSwitchCase,\n    ModalComponent\n  ],\n  templateUrl: './status-message.component.html',\n  styleUrls: ['./status-message.component.scss']\n})\nexport class StatusMessageComponent {\n  constructor(\n    private config: ConfigRepository,\n    private statusMessage: StatusMessageService,\n    private breakPoint: BreakpointService,\n  ) {}\n\n  layout$: Observable<Layout> = this.config.layout$;\n\n  layouts = Layout;\n\n  isShowStatusMessage: boolean = false;\n\n  isMessageArray: boolean = false;\n\n  statusMessage$: Observable<StatusMessage> = this.statusMessage.statusMessage$.pipe(\n    tap((statusMessage) => {\n      this.isMessageArray = Array.isArray(statusMessage.message);\n      this.isShowStatusMessage = true;\n    })\n  );\n\n  onClose(): void {\n    if (this.breakPoint.isMobile) {\n      setTimeout(() => {\n        this.isShowStatusMessage = false;\n      }, 300);\n    } else {\n      this.isShowStatusMessage = false;\n    }\n  }\n}\n","<div class=\"modal l-wrapper {{ additionalClass }}\"\n     [ngClass]=\"{'modal--mobile': breakPoint.isMobile && (layout$ | async) === layouts.Fresh,\n      'modal--android': breakPoint.isAndroid, 'is-hide-head': isHideHead}\"\n     appModalSwipe>\n  <div class=\"modal__overlay\" (click)=\"onClose()\" appOverlaySwipe></div>\n    <div class=\"modal__container\" appBottomSwipeSheet (swipeAnimationEnd)=\"onClose()\">\n      <div class=\"modal__content\">\n\n        <div class=\"modal__head l-wrapper\">\n          <div class=\"modal__title h2\">{{ title }}</div>\n          <ng-container [ngSwitch]=\"additionalClass\">\n            <button *ngSwitchCase=\"'_order'\" class=\"button-icon button-icon--th-ctrl\" (click)=\"onClose()\">\n              <i class=\"icomoon icomoon--arrow-left\"></i>\n            </button>\n            <div *ngSwitchDefault class=\"modal__close _round\">\n              <button class=\"button-icon button-icon--th-main\" (click)=\"onClose()\">\n                <mat-icon class=\"material-icons-outlined\">close</mat-icon>\n              </button>\n            </div>\n          </ng-container>\n        </div>\n\n        <div class=\"modal__body l-wrapper\" [ngClass]=\"{'_form': isSmall}\">\n          <ng-content></ng-content>\n        </div>\n\n        <div class=\"modal__footer l-wrapper\" [ngClass]=\"{'is-dialog': isDialog}\">\n          <ng-content select=\"[footer]\"></ng-content>\n        </div>\n\n      </div>\n    </div>\n</div>\n","import { AsyncPipe, NgClass, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\nimport { Component, EventEmitter, Input, OnDestroy, Output, Renderer2, ViewChild } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { Layout } from '../../../api/v1/models/layout';\nimport { ModalSwipeDirective } from '../../directives/modal-swipe/modal-swipe.directive';\nimport { OverlaySwipeDirective } from '../../directives/modal-swipe/overlay-swipe.directive';\nimport { BottomSwipeSheetDirective } from '../../directives/modal-swipe/bottom-swipe-sheet.directive';\nimport { ConfigRepository } from '../../repositories/config.repository';\nimport { BreakpointService } from '../../services/breakpoint.service';\nimport { MatIconModule } from \"@angular/material/icon\";\n\n@Component({\n  selector: 'app-modal',\n  templateUrl: './modal.component.html',\n  standalone: true,\n    imports: [NgClass, ModalSwipeDirective, OverlaySwipeDirective, BottomSwipeSheetDirective,\n        NgSwitch, NgSwitchCase, NgSwitchDefault, AsyncPipe, MatIconModule,]\n})\nexport class ModalComponent implements OnDestroy {\n  constructor(\n    public breakPoint: BreakpointService,\n    private renderer: Renderer2,\n    private config: ConfigRepository,\n  ) {}\n\n  @ViewChild(ModalSwipeDirective) modalSwipe: ModalSwipeDirective;\n\n  @Input() isDialog: boolean = false;\n  @Input() isSmall: boolean = true;\n  @Input() title?: string = '';\n  @Input() additionalClass?: string;\n  @Input() swipeDirection?: string = '';\n  @Input() isHideHead: boolean = false;\n\n  @Output() closeModal = new EventEmitter();\n\n  layout$: Observable<Layout> = this.config.layout$;\n\n  layouts = Layout;\n\n  onClose(): void {\n    this.renderer.removeClass(document.documentElement, 'is-scroll');\n    if (this.swipeDirection === 'bottom') {\n      this.modalSwipe.hideModal('down');\n    } else {\n      this.modalSwipe.hideModal('right');\n    }\n    this.closeModal.emit();\n  }\n\n  ngOnDestroy(): void {\n    this.renderer.removeClass(document.documentElement, 'is-scroll');\n  }\n}\n","import {\n  AfterContentInit,\n  Directive,\n  ElementRef,\n  EventEmitter,\n  HostBinding,\n  HostListener,\n  Input,\n  Output\n} from '@angular/core';\n\nimport { ModalSwipeDirective } from './modal-swipe.directive';\n\n@Directive({\n  selector: '[appBottomSwipeSheet]',\n  standalone: true\n})\nexport class BottomSwipeSheetDirective implements AfterContentInit {\n  constructor(\n    private bottomSwipeSheet: ElementRef,\n    private modalSwipe: ModalSwipeDirective\n  ) { }\n\n  private touchStartPoint: number;\n  private currentPoint: number;\n  private modalWidth: number;\n  private modalHeight: number;\n  private isTrueDirection: boolean = true;\n  private overlayOpacity: number;\n  private axis: 'X' | 'Y';\n  private isUpOrLeft: 1 | -1;\n  private modalBodyScrollTop: number;\n  private modalBodyScrollLeft: number;\n\n  @HostBinding('style.transform') transform: string;\n  @HostBinding('style.transition') transition: string;\n\n  @Input() direction: 'up' | 'down' | 'left' | 'right' = 'down';\n\n  @Output()\n  swipeAnimationEnd: EventEmitter<any> = new EventEmitter();\n\n  ngAfterContentInit(): void {\n    this.axis = this.getAxis(this.direction);\n    this.isUpOrLeft = ['up', 'left'].includes(this.direction) ? -1 : 1;\n    this.currentPoint = 0;\n    this.modalBodyScrollTop = 0;\n    this.modalBodyScrollLeft = 0;\n\n    setTimeout(() => {\n      this.modalWidth = this.bottomSwipeSheet.nativeElement.offsetWidth;\n      this.modalHeight = this.bottomSwipeSheet.nativeElement.offsetHeight;\n    }, 300);\n  }\n\n  @HostListener('touchstart', ['$event']) touchStart(event: TouchEvent): void {\n    this.touchStartPoint = event.touches[0][`client${this.axis}`];\n    this.modalBodyScrollTop = this.bottomSwipeSheet.nativeElement.querySelector('.modal__body.l-wrapper')?.scrollTop ?? 0;\n    this.modalBodyScrollLeft = this.bottomSwipeSheet.nativeElement.querySelector('.modal__body.l-wrapper')?.scrollLeft ?? 0;\n  }\n\n  @HostListener('touchmove', ['$event']) touchMove(event: TouchEvent): void {\n    const modalPoint = event.touches[0][`client${this.axis}`];\n    const diff = modalPoint - this.touchStartPoint;\n    this.isTrueDirection = this.isUpOrLeft * diff > 0;\n\n    this.currentPoint = diff - (this.axis === 'Y' ? this.modalBodyScrollTop : this.modalBodyScrollLeft);\n\n    if (this.isTrueDirection && this.isUpOrLeft * this.currentPoint > 0) {\n      this.transform = `translate${this.axis}(${this.currentPoint}px)`;\n      this.transition = 'none 0s ease 0s';\n\n      this.overlayOpacity = (100 - (this.currentPoint * 100 / this.modalHeight)) / 100;\n      this.modalSwipe.overlaySwipe.setOpacity(this.overlayOpacity);\n    }\n  }\n\n  @HostListener('touchend', ['$event']) touchEnd(): void {\n    if (this.isTrueDirection && this.isUpOrLeft * this.currentPoint > 0) {\n      this.swipeModal();\n    }\n\n    this.currentPoint = 0;\n    this.modalBodyScrollTop = 0;\n    this.modalBodyScrollLeft = 0;\n  }\n\n  swipeModal(direction?: 'up' | 'down' | 'left' | 'right'): void {\n    this.transition = '.3s ease transform';\n\n    direction = direction || this.direction;\n    const axis = this.getAxis(direction);\n\n    switch (direction) {\n      case 'up':\n        this.transform = `translate${axis}(-${this.modalHeight}px)`;\n        break;\n      case 'down':\n        this.transform = `translate${axis}(${this.modalHeight}px)`;\n        break;\n      case 'left':\n        this.transform = `translate${axis}(-${this.modalWidth}px)`;\n        break;\n      case 'right':\n        this.transform = `translate${axis}(${this.modalWidth}px)`;\n        break;\n    }\n\n    setTimeout(() => {\n      this.swipeAnimationEnd.emit();\n    }, 150);\n  }\n\n  private getAxis(direction: 'up' | 'down' | 'left' | 'right') {\n    return ['up', 'down'].includes(direction) ? 'Y' : 'X';\n  }\n}\n","import {\n  AfterContentInit,\n  ChangeDetectorRef,\n  ContentChild,\n  Directive,\n  HostBinding,\n  OnDestroy,\n  Renderer2\n} from '@angular/core';\n\nimport { BreakpointService } from '../../services/breakpoint.service';\nimport { BottomSwipeSheetDirective } from './bottom-swipe-sheet.directive';\nimport { OverlaySwipeDirective } from './overlay-swipe.directive';\n\n@Directive({\n    selector: '[appModalSwipe]',\n    standalone: true\n})\nexport class ModalSwipeDirective implements AfterContentInit, OnDestroy {\n  constructor(\n    public breakPoint: BreakpointService,\n    private renderer: Renderer2,\n    private changeDetectorRef: ChangeDetectorRef,\n  ) {}\n\n  @HostBinding('class.is-open') toggle: boolean = false;\n\n  @ContentChild(BottomSwipeSheetDirective) bottomSwipeSheet: BottomSwipeSheetDirective;\n  @ContentChild(OverlaySwipeDirective) overlaySwipe: OverlaySwipeDirective;\n\n  ngAfterContentInit(): void {\n    if (this.breakPoint.isMobile) {\n      this.renderer.addClass(document.documentElement, 'is-scroll');\n\n      setTimeout(() => {\n        this.toggle = !this.toggle;\n        this.changeDetectorRef.markForCheck();\n      }, 300);\n    }\n  }\n\n  hideModal(direction?: 'up' | 'down' | 'left' | 'right'): void {\n    this.bottomSwipeSheet.swipeModal(direction);\n    this.overlaySwipe.fadeOverlay();\n  }\n\n  ngOnDestroy(): void {\n    this.renderer.removeClass(document.documentElement, 'is-scroll');\n  }\n}\n","import { Directive, HostBinding, HostListener } from '@angular/core';\n\nimport { ModalSwipeDirective } from './modal-swipe.directive';\n\n@Directive({\n    selector: '[appOverlaySwipe]',\n    standalone: true\n})\nexport class OverlaySwipeDirective {\n  constructor(\n    private modalSwipe: ModalSwipeDirective\n  ) {}\n\n  @HostBinding('style.opacity') opacity: string;\n  @HostBinding('style.transition') transition: string;\n\n  @HostListener('click', ['$event']) onClick(): void {\n    this.fadeOverlay();\n    this.modalSwipe.bottomSwipeSheet.swipeModal();\n  }\n\n  setOpacity(opacityValue: number): void {\n    this.opacity = opacityValue.toString();\n  }\n\n  fadeOverlay(): void {\n    this.transition = '.3s ease opacity';\n    this.opacity = '0';\n  }\n}\n"],"names":["i0","line_r10","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_div_1_p_1_Template","statusMessage_r3","message","_r14","ctx_r13","isShowStatusMessage","button_r16","_r18","$implicit","ctx_r17","onClick","type","text","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_div_5_div_1_Template","dialog","buttons","_r21","ctx_r20","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_div_1_Template","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_div_2_Template","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_button_4_Template","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_div_5_Template","title","ctx_r4","isMessageArray","StatusMessageComponent_ng_container_2_ng_container_1_app_modal_1_Template","ctx_r2","StatusMessageComponent_ng_container_2_ng_container_1_Template","ctx_r0","statusMessage$","line_r33","StatusMessageComponent_ng_container_3_div_1_app_modal_1_div_7_p_1_Template","statusMessage_r24","_r37","ctx_r36","button_r39","_r41","ctx_r40","StatusMessageComponent_ng_container_3_div_1_app_modal_1_div_11_ng_container_1_Template","_c4","length","_r44","ctx_r43","onClose","StatusMessageComponent_ng_container_3_div_1_app_modal_1_img_2_Template","StatusMessageComponent_ng_container_3_div_1_app_modal_1_img_3_Template","StatusMessageComponent_ng_container_3_div_1_app_modal_1_div_7_Template","StatusMessageComponent_ng_container_3_div_1_app_modal_1_div_8_Template","StatusMessageComponent_ng_container_3_div_1_app_modal_1_button_10_Template","StatusMessageComponent_ng_container_3_div_1_app_modal_1_div_11_Template","ctx_r25","StatusMessageComponent_ng_container_3_div_1_app_modal_1_Template","ctx_r23","StatusMessageComponent_ng_container_3_div_1_Template","ctx_r1","StatusMessageComponent","constructor","config","statusMessage","breakPoint","this","layout$","layouts","Layout","pipe","tap","Array","isArray","isMobile","setTimeout","static","t","i1","i2","i3","_angular_core__WEBPACK_IMPORTED_MODULE_4__","Xpm","selectors","standalone","features","decls","vars","consts","i18n_0","$localize","StatusMessageComponent_ng_container_2_Template","StatusMessageComponent_ng_container_3_Template","ctx","Default","Fresh","AsyncPipe","MatButtonModule","i4","NgIf","NgFor","NgClass","NgOptimizedImage","NgSwitch","NgSwitchCase","ModalComponent","_r3","_r5","renderer","isDialog","isSmall","swipeDirection","isHideHead","closeModal","EventEmitter","removeClass","document","documentElement","modalSwipe","hideModal","emit","ngOnDestroy","_angular_core__WEBPACK_IMPORTED_MODULE_6__","viewQuery","rf","ModalSwipeDirective","ModalComponent_button_9_Template","ModalComponent_div_10_Template","additionalClass","_c1","isAndroid","_c2","_c3","OverlaySwipeDirective","BottomSwipeSheetDirective","NgSwitchDefault","MatIconModule","encapsulation","bottomSwipeSheet","isTrueDirection","direction","swipeAnimationEnd","ngAfterContentInit","axis","getAxis","isUpOrLeft","includes","currentPoint","modalBodyScrollTop","modalBodyScrollLeft","modalWidth","nativeElement","offsetWidth","modalHeight","offsetHeight","touchStart","event","touchStartPoint","touches","querySelector","scrollTop","scrollLeft","touchMove","diff","transform","transition","overlayOpacity","overlaySwipe","setOpacity","touchEnd","swipeModal","_angular_core__WEBPACK_IMPORTED_MODULE_1__","lG2","hostVars","hostBindings","$event","changeDetectorRef","toggle","addClass","markForCheck","fadeOverlay","_angular_core__WEBPACK_IMPORTED_MODULE_3__","contentQueries","dirIndex","opacityValue","opacity","toString"],"sourceRoot":"webpack:///"}