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AAM,CAAC,EACzBjC,oDAAI,CAAC,CAAC,CAAC,CACR;EACH;;;uCArBWwJ,0BAA0B,EAAAvI,sDAAA,CAAAE,mFAAA,GAAAF,sDAAA,CAAAI,8CAAA;IAAA;EAAA;;;aAA1BmI,0BAA0B;MAAAjI,OAAA,EAA1BiI,0BAA0B,CAAAhI,IAAA;MAAAC,UAAA,EAFzB;IAAM;EAAA;;;;;;;;;;;;;;;;;;;;ACV2C;AAEjB;;;AAOxC,MAAOsI,2BAA2B;EAEtC5J,YACU0B,aAA4B;IAA5B,KAAAA,aAAa,GAAbA,aAAa;EAEvB;EAEAvB,OAAOA,CAACC,KAA6B,EAAEC,KAA0B;IAC/D,MAAM;MAACmJ,oBAAoB;MAAEK;IAAe,CAAC,GAAGzJ,KAAK,CAACI,MAAM;IAE5D,OAAO,IAAI,CAACkB,aAAa,CAACoI,eAAe,CAACN,oBAAoB,EAAEK,eAAe,CAAC,CAACnJ,IAAI,CACnFc,sDAAM,CAACK,GAAG,IAAIA,GAAG,CAACC,MAAM,IAAID,GAAG,CAACE,MAAM,KAAKR,+DAAa,CAACS,OAAO,CAAC,EACjEnC,oDAAI,CAAC,CAAC,CAAC,CACR;EACH;;;uCAdW+J,2BAA2B,EAAA9I,sDAAA,CAAAE,wEAAA;IAAA;EAAA;;;aAA3B4I,2BAA2B;MAAAxI,OAAA,EAA3BwI,2BAA2B,CAAAvI,IAAA;MAAAC,UAAA,EAF1B;IAAM;EAAA","sources":["./src/app/buyer-tier/resolvers/buyer-resolver.service.ts","./src/app/buyer-tier/resolvers/limits-resolver.service.ts","./src/app/core/ngxs/seller/seller-getter.state.ts","./src/app/shared/components/actor-settings/actor-settings.component.ts","./src/app/shared/components/actor-settings/actor-settings.component.html","./src/app/shared/components/adjustors/adjustor-lobby-dashboard/adjustor-lobby-dashboard.component.ts","./src/app/shared/components/adjustors/adjustor-lobby-dashboard/adjustor-lobby-dashboard.component.html","./src/app/shared/components/radio-buttons/radio-buttons.component.ts","./src/app/shared/components/radio-buttons/radio-buttons.component.html","./src/app/stream/resolvers/stream-agent-resolver.service.ts","./src/app/stream/stream-settings/stream-limits/resolvers/stream-limits-resolver.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { map, switchMapTo, take } from 'rxjs/operators';\r\n\r\nimport { BuyerGetterState } from '../../core/ngxs/buyer/buyer-getter.state';\r\nimport { BuyerService } from '../../core/services/buyer.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BuyerResolverService {\r\n\r\n constructor(\r\n private buyerService: BuyerService,\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.store.select(BuyerGetterState.getBuyerByPseudonym(route.params.buyerPseudonym)).pipe(\r\n map((buyer) => {\r\n if (buyer && buyer.pseudonym) {\r\n return buyer;\r\n } else {\r\n return this.buyerService.getBuyerByPseudonym(route.params.buyerPseudonym);\r\n }\r\n }),\r\n switchMapTo(this.buyerService.getBuyerRequestState$),\r\n take(1),\r\n );\r\n\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest, RequestStatus } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\n\r\nimport { LimitsService } from '../../core/services/limits.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LimitsResolverService {\r\n\r\n constructor(\r\n private limitsService: LimitsService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.limitsService.getBuyerTierLimits(route.params.buyerPseudonym, route.params.buyerTierPseudonym).pipe(\r\n filter(res => res.loaded && res.status === RequestStatus.Success),\r\n take(1),\r\n );\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IRegion } from '../../../shared/models/region.interface';\r\nimport { RegionGetterState } from '../region/region-getter.state';\r\nimport { SellerState, SellerStateModel } from './seller.state';\r\n\r\nexport class SellerGetterState {\r\n @Selector([SellerState])\r\n static getAllSellers(state: SellerStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n @Selector([SellerState])\r\n static getSelectedSeller(state: SellerStateModel) {\r\n return state.entities[state.selectedEntityId];\r\n }\r\n\r\n static getSellerByPseudonym(sellerPseudonym: string) {\r\n return createSelector(\r\n [SellerState, RegionGetterState.getAllRegions],\r\n (sellerState: SellerStateModel, regions: IRegion[]) => {\r\n const seller = sellerState.entities[sellerPseudonym];\r\n if (seller) {\r\n const sellerRegion = regions.find(region => region.id === seller.regionId);\r\n return {\r\n ...seller,\r\n region: sellerRegion,\r\n };\r\n }\r\n });\r\n }\r\n}\r\n","import { Component, Input } from '@angular/core';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { NgClass } from '@angular/common';\r\nimport { ExtendedModule } from '@angular/flex-layout/extended';\r\nimport { RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-actor-settings',\r\n templateUrl: './actor-settings.component.html',\r\n styleUrls: ['./actor-settings.component.less'],\r\n standalone: true,\r\n imports: [FlexModule, NgClass, ExtendedModule, RouterLinkActive, RouterLink, RouterOutlet, TranslateModule]\r\n})\r\nexport class ActorSettingsComponent {\r\n @Input() actorName = '';\r\n}\r\n","
\r\n
\r\n
\r\n

{{ 'TEMPLATE.SETTINGS.SUBTITLE' | translate }}

\r\n

{{ actorName }}

\r\n
\r\n
\r\n
\r\n\r\n\r\n","import { Component, Input } from '@angular/core';\r\n\r\nimport { IAdjustor } from '../../../models/common/adjustor/adjustor.interface';\r\nimport { FilterPolicyGroupsTranslations } from '../../../models/common/filters/filter-policy-groups-translations.enum';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AdjustmentDescriptionPipe } from '../../../pipes/adjustment-description/adjustment-description.pipe';\r\n\r\n@Component({\r\n selector: 'app-adjustor-lobby-dashboard',\r\n templateUrl: './adjustor-lobby-dashboard.component.html',\r\n standalone: true,\r\n imports: [\r\n FlexModule,\r\n TranslateModule,\r\n AdjustmentDescriptionPipe,\r\n ],\r\n})\r\nexport class AdjustorLobbyDashboardComponent {\r\n @Input() adjustors: IAdjustor[];\r\n @Input() adjustorsGroups: { group: number, filters: IAdjustor[]} [];\r\n\r\n filterPolicyGroupsTranslations = FilterPolicyGroupsTranslations;\r\n}\r\n","
\r\n

\r\n {{ 'TEMPLATE.ADJUSTOR.YOU_HAVE_ADJUSTERS_DEFINED' | translate:({adjustorsCount: adjustors.length}) }}\r\n

\r\n @for (group of adjustorsGroups; track group.group) {\r\n
\r\n

{{ filterPolicyGroupsTranslations[group.group] | translate }}

\r\n @for (adjustor of group.filters; track adjustor.pseudonym) {\r\n
\r\n
\r\n {{ ('TEMPLATE.FILTER.LAYOUT_POLICY.' + adjustor.propertyId) | translate }}\r\n
\r\n
\r\n @for (adjustment of adjustor.adjustments; track adjustor.pseudonym) {\r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n }\r\n
\r\n }\r\n\r\n","import { Component, Input } from '@angular/core';\r\nimport { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { NgClass } from '@angular/common';\r\nimport { ExtendedModule } from '@angular/flex-layout/extended';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-radio-buttons',\r\n templateUrl: './radio-buttons.component.html',\r\n styleUrls: ['./radio-buttons.component.less'],\r\n standalone: true,\r\n imports: [\r\n FlexModule,\r\n NgClass,\r\n ExtendedModule,\r\n ReactiveFormsModule,\r\n TranslateModule,\r\n ],\r\n})\r\n\r\nexport class RadioButtonsComponent {\r\n\r\n @Input() label: string;\r\n @Input() isFlag = false;\r\n @Input() radioFormControl: UntypedFormControl;\r\n @Input() list: { value: string | number, label: string }[];\r\n\r\n}\r\n","
\r\n \r\n
\r\n @for (item of list; track item.value) {\r\n \r\n }\r\n
\r\n
\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, map, switchMapTo, take } from 'rxjs/operators';\r\n\r\nimport { StreamAgentGetterState } from '../../core/ngxs/stream-agent/stream-agent-getter.state';\r\nimport { StreamAgentService } from '../../core/services/stream-agent.service';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class StreamAgentResolverService {\r\n\r\n constructor(\r\n private streamAgentService: StreamAgentService,\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.store.select(StreamAgentGetterState.getStreamAgentByPseudonym(route.params.streamAgentPseudonym)).pipe(\r\n map(stream => {\r\n if (stream && stream.pseudonym) {\r\n return stream;\r\n } else {\r\n return this.streamAgentService.getStreamAgentByPseudonym(route.params.streamAgentPseudonym);\r\n }\r\n }),\r\n switchMapTo(this.streamAgentService.getStreamAgentRequestState$),\r\n filter(res => res.loaded),\r\n take(1),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest, RequestStatus } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\n\r\nimport { LimitsService } from '../../../../core/services/limits.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class StreamLimitsResolverService {\r\n\r\n constructor(\r\n private limitsService: LimitsService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n const {streamAgentPseudonym, streamPseudonym} = route.params;\r\n\r\n return this.limitsService.getStreamLimits(streamAgentPseudonym, streamPseudonym).pipe(\r\n filter(res => res.loaded && res.status === RequestStatus.Success),\r\n take(1),\r\n );\r\n }\r\n}\r\n"],"names":["map","switchMapTo","take","BuyerGetterState","BuyerResolverService","constructor","buyerService","store","resolve","route","state","select","getBuyerByPseudonym","params","buyerPseudonym","pipe","buyer","pseudonym","getBuyerRequestState$","i0","ɵɵinject","i1","BuyerService","i2","Store","factory","ɵfac","providedIn","RequestStatus","filter","LimitsResolverService","limitsService","getBuyerTierLimits","buyerTierPseudonym","res","loaded","status","Success","LimitsService","createSelector","Selector","RegionGetterState","SellerState","SellerGetterState","getAllSellers","ids","id","entities","getSelectedSeller","selectedEntityId","getSellerByPseudonym","sellerPseudonym","getAllRegions","sellerState","regions","seller","sellerRegion","find","region","regionId","__decorate","FlexModule","NgClass","ExtendedModule","RouterLinkActive","RouterLink","RouterOutlet","TranslateModule","ActorSettingsComponent","actorName","selectors","inputs","decls","vars","consts","template","ActorSettingsComponent_Template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵproperty","ɵɵpureFunction1","_c0","dm_r1","isActive","l_r2","ɵɵtextInterpolate1","ɵɵpureFunction0","_c1","_c2","_c3","_c4","DefaultLayoutDirective","DefaultLayoutAlignDirective","DefaultFlexDirective","DefaultClassDirective","i3","TranslatePipe","styles","FilterPolicyGroupsTranslations","AdjustmentDescriptionPipe","ɵɵpipeBind2","adjustment_r1","adjustor_r2","propertyId","ɵɵsanitizeHtml","ɵɵrepeaterCreate","AdjustorLobbyDashboardComponent_For_5_For_5_For_6_Template","_forTrack2","ɵɵrepeater","adjustments","AdjustorLobbyDashboardComponent_For_5_For_5_Template","_forTrack1","ctx_r3","filterPolicyGroupsTranslations","group_r3","group","filters","AdjustorLobbyDashboardComponent","adjustors","adjustorsGroups","AdjustorLobbyDashboardComponent_Template","AdjustorLobbyDashboardComponent_For_5_Template","_forTrack0","length","encapsulation","ReactiveFormsModule","item_r1","label","ɵɵtemplate","RadioButtonsComponent_For_6_Conditional_1_Template","RadioButtonsComponent_For_6_Conditional_2_Template","value","ctx_r1","radioFormControl","ɵɵconditional","isFlag","RadioButtonsComponent","list","RadioButtonsComponent_Template","RadioButtonsComponent_For_6_Template","DefaultShowHideDirective","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","FormControlDirective","i4","StreamAgentGetterState","StreamAgentResolverService","streamAgentService","getStreamAgentByPseudonym","streamAgentPseudonym","stream","getStreamAgentRequestState$","StreamAgentService","StreamLimitsResolverService","streamPseudonym","getStreamLimits"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}