{ "version": 3, "sources": ["apps/partner-center-client/src/app/businesses/details/views/overview/components/create-snapshot/create-snapshot.component.ts", "apps/partner-center-client/src/app/businesses/details/views/overview/components/create-snapshot/create-snapshot.component.html", "apps/partner-center-client/src/app/businesses/details/views/overview/components/create-snapshot/create-snapshot.module.ts"], "sourcesContent": ["import {\n AfterViewInit,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n QueryList,\n TemplateRef,\n ViewChildren,\n} from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { ActivatedRoute } from '@angular/router';\nimport { AccountGroup } from '@galaxy/account-group';\nimport { SNAPSHOT_REPORT_SKU } from '@galaxy/billing';\nimport { SnackbarService } from '@vendasta/galaxy/snackbar-service';\nimport { BehaviorSubject, Observable, Subscription, combineLatest, skipUntil } from 'rxjs';\nimport { filter, startWith, switchMap, take, tap, withLatestFrom } from 'rxjs/operators';\nimport { AppConfigService } from '../../../../../../app-config.service';\nimport { CheckoutDialogComponent } from '../../../../../../checkout/checkout-dialog.component';\nimport { UnifiedTOSDialogComponent } from '../../../../../../common/tos-unified/unified-tos-dialog.component';\nimport { AccountService } from '../../../../../../core/account.service';\nimport { CurrentSnapshot, SnapshotService } from '../../../../../../core/snapshot.service';\nimport { UnifiedTOSService } from '../../../../../../core/tos-unified.service';\nimport { DynamicOpenCloseTemplateRefService } from '../../../../../../side-drawer/dynamic-open-close-template-ref.service';\n\n@Component({\n selector: 'app-create-snapshot',\n templateUrl: './create-snapshot.component.html',\n styleUrls: ['./create-snapshot.component.scss'],\n})\nexport class CreateSnapshotComponent implements OnInit, AfterViewInit, OnDestroy {\n static readonly scorecardTemplateID = 'openScorecard';\n @Input()\n accountGroup: AccountGroup;\n @Input()\n showText = true;\n @Input()\n originDetails: string;\n @Input()\n set snapshotIsReady(isReady: boolean) {\n this.snapshotIsReady$$.next(isReady);\n }\n snapshotIsReady$$ = new BehaviorSubject(true);\n @Output()\n snapshotCreated = new EventEmitter(false);\n @ViewChildren('openScorecard') openScorecardTemplate: QueryList>;\n\n subscriptions: Subscription[] = [];\n tosDialog: MatDialogRef;\n partnerId: string;\n\n private displaySnapshotSummaryClick$$: BehaviorSubject = new BehaviorSubject(null);\n displaySnapshotSummaryClick$: Observable = this.displaySnapshotSummaryClick$$\n .asObservable()\n .pipe(filter((a) => !!a));\n\n private agsLoadingCreateSnapshot: string[] = [];\n private isImpersonated: boolean;\n private showTOSDialog: boolean;\n\n currentSnapshot$: Observable;\n snapshotLoading$: Observable;\n\n hasEditAccess$: Observable;\n\n constructor(\n private readonly snackbarService: SnackbarService,\n public dialog: MatDialog,\n private readonly snapshotService: SnapshotService,\n private readonly tosService: UnifiedTOSService,\n private readonly appConfig: AppConfigService,\n private dynamicOpenCloseService: DynamicOpenCloseTemplateRefService,\n private activatedRoute: ActivatedRoute,\n private readonly accountService: AccountService,\n ) {}\n\n ngOnInit(): void {\n this.isImpersonated = this.appConfig.config.isImpersonated;\n this.subscriptions.push(\n this.tosService.tosDataLoaded$.subscribe((isReady) => {\n if (isReady) {\n if (!this.tosService.hasAcceptedTOS && !this.tosService.isClassicSubscription) {\n this.showTOSDialog = true;\n }\n }\n }),\n );\n\n this.partnerId = this.appConfig.config.partnerId;\n\n this.currentSnapshot$ = this.accountService.accountID$.pipe(\n switchMap((id) => this.snapshotService.getCurrentSnapshotUpdates$(id)),\n );\n\n this.snapshotLoading$ = this.accountService.accountID$.pipe(\n switchMap((id) => this.snapshotService.currentSnapshotLoading$(id)),\n );\n\n const snapshotBeingCreated$ = this.accountService.accountID$.pipe(\n switchMap((id) => this.snapshotService.createSnapshotLoading$(id)),\n );\n\n const createSnapshotSuccess$ = this.accountService.accountID$.pipe(\n switchMap((id) => this.snapshotService.createSnapshotSuccess$(id)),\n skipUntil(snapshotBeingCreated$.pipe(filter((is) => is === true))),\n );\n\n this.subscriptions.push(\n createSnapshotSuccess$\n .pipe(\n withLatestFrom(this.appConfig.config$),\n tap(([success, config]) => {\n if (success) {\n const chmln = window['chmln'];\n chmln.identify(config.unifiedUserId);\n chmln.track('Created Snapshot');\n }\n }),\n )\n .subscribe(([success, _]) =>\n success\n ? this.snackbarService.openSuccessSnack('Successfully created a snapshot')\n : this.snackbarService.openErrorSnack('Failed to create snapshot. Please try again.'),\n ),\n );\n\n this.hasEditAccess$ = this.snapshotService.partnerHasAccessToSnapshotEditing();\n }\n\n ngAfterViewInit(): void {\n this.subscriptions.push(\n this.openScorecardTemplate.changes.pipe(startWith(this.openScorecardTemplate), take(1)).subscribe((ref) => {\n this.dynamicOpenCloseService.registerTemplate(CreateSnapshotComponent.scorecardTemplateID, ref.first);\n }),\n );\n\n this.subscriptions.push(\n this.displaySnapshotSummaryClick$.subscribe(() => {\n this.dynamicOpenCloseService.open(CreateSnapshotComponent.scorecardTemplateID);\n }),\n );\n\n // Automatically open snapshot panel for account given url param\n combineLatest([this.currentSnapshot$, this.activatedRoute.queryParams])\n .pipe(take(1))\n .subscribe(([currentSnapshot, params]) => {\n if (!!currentSnapshot && params?.openPanel === 'snapshot-scorecard') {\n this.dynamicOpenCloseService.open(CreateSnapshotComponent.scorecardTemplateID);\n }\n });\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((subscription) => {\n subscription.unsubscribe();\n });\n this.dynamicOpenCloseService.close(CreateSnapshotComponent.scorecardTemplateID);\n }\n\n createSnapshot(inferMissingData: boolean): void {\n this.snapshotService.doCreateSnapshotWork(this.accountGroup.accountGroupId, [this.originDetails], inferMissingData);\n }\n\n private isAccountGroupLoadingCreateSnapshot(accountGroupId: string): boolean {\n return this.agsLoadingCreateSnapshot.indexOf(accountGroupId) >= 0;\n }\n\n onSnapshotCreatePressed(accountGroup: AccountGroup): void {\n this.dynamicOpenCloseService.close(CreateSnapshotComponent.scorecardTemplateID);\n if (this.showTOSDialog && !this.isImpersonated) {\n this.openTOSDialog(this.onCreateSnapshot.bind(this), accountGroup, '');\n return;\n }\n this.onCreateSnapshot(accountGroup);\n }\n\n private onCreateSnapshot(accountGroup: AccountGroup): void {\n if (this.isAccountGroupLoadingCreateSnapshot(this.accountGroup.accountGroupId)) {\n return;\n }\n this.setLoadingCreateSnapshot(this.accountGroup.accountGroupId, true);\n this.openConfirmSnapshotCreateDialog(accountGroup)\n .pipe(take(1))\n .subscribe((r) => {\n if (r?.status !== 'success') {\n this.setLoadingCreateSnapshot(this.accountGroup.accountGroupId, false);\n return;\n }\n this.createSnapshot(r.inferMissingData);\n });\n }\n\n private openConfirmSnapshotCreateDialog(_accountGroup: AccountGroup): Observable {\n this.dialog.closeAll();\n const dialog: MatDialogRef = this.dialog.open(CheckoutDialogComponent, {\n width: '480px',\n data: {\n partnerId: this.partnerId,\n title: 'Create Snapshot Report',\n successLabel: 'Create',\n productSKU: SNAPSHOT_REPORT_SKU,\n createButtonId: 'snapshotCreateButton',\n successId: 'snapshotCreateButton',\n accountGroupId: this.accountGroup.accountGroupId,\n },\n });\n return dialog.afterClosed();\n }\n\n private openTOSDialog(\n callback: (accountGroup: AccountGroup, verb: string) => void,\n accountGroup?: AccountGroup,\n verb?: string,\n ): void {\n if (this.tosDialog) {\n return;\n }\n this.tosDialog = this.dialog.open(UnifiedTOSDialogComponent, UnifiedTOSDialogComponent.config());\n this.subscriptions.push(\n this.tosDialog.afterClosed().subscribe(() => {\n this.tosDialog = null;\n if (this.tosService.hasAcceptedTOS) {\n this.showTOSDialog = false;\n callback(accountGroup, verb);\n }\n }),\n );\n }\n\n private setLoadingCreateSnapshot(accountGroupId: string, loading: boolean): void {\n if (loading) {\n this.agsLoadingCreateSnapshot.push(this.accountGroup.accountGroupId);\n } else {\n this.agsLoadingCreateSnapshot.splice(this.agsLoadingCreateSnapshot.indexOf(accountGroupId), 1);\n }\n }\n\n snapshotSummaryClick(event: Event): void {\n this.displaySnapshotSummaryClick$$.next(event);\n }\n}\n", "
\n
\n
\n
\n {{ (snapshotIsReady$$ | async) ? 'description' : 'insert_drive_file' }}\n \n {{ 'COMMON.TERMS.SNAPSHOT_REPORT' | translate }}\n \n
\n
\n\n \n note_add\n \n {{ 'ACCOUNT_DETAILS.CALL_TO_ACTIONS.CREATE_SNAPSHOT_REPORT' | translate }}\n \n
\n
\n \n
\n {{ 'COMMON.TERMS.SNAPSHOT_REPORT' | translate }}\n
\n
\n
\n\n\n\n \n \n \n\n", "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { CheckoutModule } from '../../../../../../checkout/checkout.module';\nimport { SnapshotScorecardModule } from '../../../../../../snapshot-scorecard/snapshot-scorecard.module';\nimport { CreateSnapshotComponent } from './create-snapshot.component';\n\n@NgModule({\n declarations: [CreateSnapshotComponent],\n exports: [CreateSnapshotComponent],\n imports: [\n CommonModule,\n MatDialogModule,\n MatIconModule,\n CheckoutModule,\n SnapshotScorecardModule,\n MatProgressSpinnerModule,\n MatProgressSpinnerModule,\n TranslateModule,\n ],\n})\nexport class CreateSnapshotModule {}\n"], "mappings": "s/BCKQA,EAAA,EAAA,MAAA,EACEC,EAAA,CAAA,mBACFC,EAAA,SADEC,EAAA,EAAAC,EAAA,IAAAC,EAAA,EAAA,EAAA,8BAAA,EAAA,GAAA,sCAJNL,EAAA,EAAA,KAAA,EAA2C,EAAA,MAAA,CAAA,EACpCM,EAAA,QAAA,SAAAC,EAAA,CAAAC,EAAAC,CAAA,EAAA,IAAAC,EAAAC,EAAA,CAAA,EAAA,OAAAC,EAASF,EAAAG,qBAAAN,CAAA,CAA4B,CAAA,CAAA,EACxCP,EAAA,EAAA,WAAA,CAAA,EAAuBC,EAAA,CAAA,eAAuEC,EAAA,EAC9FY,EAAA,EAAAC,GAAA,EAAA,EAAA,OAAA,CAAA,EAGFb,EAAA,EAAM,qBAJmBC,EAAA,CAAA,EAAAa,EAAAX,EAAA,EAAA,EAAAK,EAAAO,iBAAA,EAA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BC,EAAA7C,oBAAsB,sDAD3B/D,GAAuB6G,EAAAC,EAAA,EAAAD,EAAAE,CAAA,EAAAF,EAAAG,EAAA,EAAAH,EAAAI,EAAA,EAAAJ,EAAAK,EAAA,EAAAL,EAAAM,EAAA,EAAAN,EAAAO,EAAA,EAAAP,EAAAQ,EAAA,CAAA,CAAA,sBAAvBrH,EAAuBsH,UAAA,CAAA,CAAA,qBAAA,CAAA,EAAAC,UAAA,SAAAC,EAAAC,EAAA,IAAAD,EAAA,2nBChCpCjJ,EAAA,EAAAmJ,GAAA,EAAA,EAAA,MAAA,CAAA,eA8BAnJ,EAAA,EAAAoJ,GAAA,EAAA,EAAA,cAAA,KAAA,EAAAC,CAAA,QA9BMjJ,EAAA,OAAAb,EAAA,EAAA,EAAA2J,EAAAzF,gBAAA,EAAA,UAAA,QAAA;uHDgCA,IAAOhC,EAAP4G,SAAO5G,CAAuB,GAAA,EERpC,IAAa6H,IAAoB,IAAA,CAA3B,IAAOA,EAAP,MAAOA,CAAoB,yCAApBA,EAAoB,sBAApBA,CAAoB,CAAA,0BAV7BC,EACAC,EACAC,EACAC,GACAC,GACAC,EACAA,EACAC,EAAe,CAAA,CAAA,EAGb,IAAOP,EAAPQ,SAAOR,CAAoB,GAAA", "names": ["\u0275\u0275elementStart", "\u0275\u0275text", "\u0275\u0275elementEnd", "\u0275\u0275advance", "\u0275\u0275textInterpolate1", "\u0275\u0275pipeBind1", "\u0275\u0275listener", "$event", "\u0275\u0275restoreView", "_r1", "ctx_r1", "\u0275\u0275nextContext", "\u0275\u0275resetView", "snapshotSummaryClick", "\u0275\u0275template", "CreateSnapshotComponent_div_0_div_1_div_1_span_5_Template", "\u0275\u0275textInterpolate", "snapshotIsReady$$", "\u0275\u0275property", "showText", "_r3", "onSnapshotCreatePressed", "accountGroup", "CreateSnapshotComponent_div_0_div_1_div_2_a_3_Template", "\u0275\u0275element", "CreateSnapshotComponent_div_0_div_1_div_3_div_2_Template", "CreateSnapshotComponent_div_0_div_1_div_1_Template", "CreateSnapshotComponent_div_0_div_1_div_2_Template", "CreateSnapshotComponent_div_0_div_1_div_3_Template", "currentSnapshot_r5", "loading_r4", "CreateSnapshotComponent_div_0_div_1_Template", "snapshotLoading$", "\u0275\u0275elementContainerStart", "_r6", "partnerId", "accountGroupId", "displaySnapshotSummaryClick$", "hasEditAccess$", "CreateSnapshotComponent", "snapshotIsReady", "isReady", "next", "constructor", "snackbarService", "dialog", "snapshotService", "tosService", "appConfig", "dynamicOpenCloseService", "activatedRoute", "accountService", "BehaviorSubject", "snapshotCreated", "EventEmitter", "subscriptions", "displaySnapshotSummaryClick$$", "asObservable", "pipe", "filter", "a", "agsLoadingCreateSnapshot", "ngOnInit", "isImpersonated", "config", "push", "tosDataLoaded$", "subscribe", "hasAcceptedTOS", "isClassicSubscription", "showTOSDialog", "currentSnapshot$", "accountID$", "switchMap", "id", "getCurrentSnapshotUpdates$", "currentSnapshotLoading$", "snapshotBeingCreated$", "createSnapshotLoading$", "createSnapshotSuccess$", "skipUntil", "is", "withLatestFrom", "config$", "tap", "success", "chmln", "window", "identify", "unifiedUserId", "track", "_", "openSuccessSnack", "openErrorSnack", "partnerHasAccessToSnapshotEditing", "ngAfterViewInit", "openScorecardTemplate", "changes", "startWith", "take", "ref", "registerTemplate", "scorecardTemplateID", "first", "open", "combineLatest", "queryParams", "currentSnapshot", "params", "openPanel", "ngOnDestroy", "forEach", "subscription", "unsubscribe", "close", "createSnapshot", "inferMissingData", "doCreateSnapshotWork", "originDetails", "isAccountGroupLoadingCreateSnapshot", "indexOf", "openTOSDialog", "onCreateSnapshot", "bind", "setLoadingCreateSnapshot", "openConfirmSnapshotCreateDialog", "r", "status", "_accountGroup", "closeAll", "CheckoutDialogComponent", "width", "data", "title", "successLabel", "productSKU", "SNAPSHOT_REPORT_SKU", "createButtonId", "successId", "afterClosed", "callback", "verb", "tosDialog", "UnifiedTOSDialogComponent", "loading", "splice", "event", "_CreateSnapshotComponent", "\u0275\u0275directiveInject", "SnackbarService", "MatDialog", "SnapshotService", "UnifiedTOSService", "AppConfigService", "DynamicOpenCloseTemplateRefService", "ActivatedRoute", "AccountService", "selectors", "viewQuery", "rf", "ctx", "CreateSnapshotComponent_div_0_Template", "CreateSnapshotComponent_ng_template_2_Template", "\u0275\u0275templateRefExtractor", "CreateSnapshotModule", "CommonModule", "MatDialogModule", "MatIconModule", "CheckoutModule", "SnapshotScorecardModule", "MatProgressSpinnerModule", "TranslateModule", "_CreateSnapshotModule"] }