{ "version": 3, "sources": ["src/app/shared/services/administration.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, filter, Observable } from 'rxjs';\nimport { map, distinctUntilChanged } from 'rxjs/operators';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\n\nimport * as appRouter from '@src/app/state/router-state';\nimport * as fromTheme from 'src/app/shared/state/theme-state';\nimport * as themeActions from '@app-shared/state/theme-state/theme.actions';\n\nimport { UserSettingsService } from '@app-core/auth/user-settings.service';\nimport { LocalizationService } from '@app-core/localization/localization.service';\nimport { LocationSettingsService } from '@app-core/auth/location-settings.service';\nimport { AuthService } from '@app-core/auth/auth.service';\n\nimport { EzMenuResponseModel } from '@app-root/admin-module/models/ez-menu-response-model';\nimport { EzStoreService } from '@ezuiaws/ez.ui.packages/ez-store';\nimport { LocationModulesEnum } from '@app-core/auth/location-modules-enum';\nimport { GetCloverMerchantIsSetUpResponse } from '@app-autogen/ez.common/contracts/response/get-clover-merchant-is-set-up-response';\n\n@UntilDestroy()\n@Injectable({\n providedIn: 'root'\n})\nexport class AdministrationService {\n\n // Implemented BehaviorSubject to receive an observable which we are able to use once will be fetching the results from the server asynchronously\n // So the code in the components that are using this service won't have to change radically.\n private adminSubject: BehaviorSubject = new BehaviorSubject([]);\n private environment: string = this.authService.getEnvironment();\n\n administrationItems$: Observable = this.adminSubject.asObservable()\n .pipe(\n filter(adminItems => adminItems && adminItems.length > 0),\n );\n\n routerUrl: string = '';\n hasCloverMerchantSetUp$: BehaviorSubject = new BehaviorSubject(false);\n hasCloverMerchantSetUp: boolean = undefined;\n\n constructor(\n private userSettingsService: UserSettingsService,\n private locationSettingsService: LocationSettingsService,\n private storeHelper: EzStoreService,\n private themeStoreHelper: EzStoreService,\n private authService: AuthService\n ) {\n\n this.showCloverAuthentication();\n this.storeHelper.stateStreamSelector(appRouter.getRouterFeatureState).pipe(\n map(route => route.state.url),\n distinctUntilChanged(),\n untilDestroyed(this)\n ).subscribe((url: string) => {\n this.routerUrl = url;\n });\n }\n\n showCloverAuthentication() {\n this.themeStoreHelper.dispatchAction(themeActions.getCloverMerchantIsSetUp());\n this.themeStoreHelper.stateStreamSelector(fromTheme.getCloverMerchantIsSetUp)\n .pipe(\n filter(result => result != undefined),\n untilDestroyed(this)\n )\n .subscribe((result: GetCloverMerchantIsSetUpResponse) => {\n this.hasCloverMerchantSetUp = result.hasCloverMerchant;\n this.hasCloverMerchantSetUp$.next(result.hasCloverMerchant);\n this.getAdministrationItems();\n });\n }\n\n public getAdministrationItems(): EzMenuResponseModel[] {\n const administrationItems: EzMenuResponseModel[] = [];\n\n const membershipsSubItems: EzMenuResponseModel[] = this.getMembershipsSubItems();\n if (membershipsSubItems.length) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.Memberships,\n styleClass: 'is-subitem has-submenu',\n items: membershipsSubItems,\n expanded: this.routerUrl.indexOf('/admin/membership') >= 0,\n }\n ]);\n }\n\n const packagesSubItems: EzMenuResponseModel[] = this.getPackagesSubItems();\n if (packagesSubItems.length) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.Packages,\n styleClass: 'is-subitem has-submenu',\n items: packagesSubItems,\n expanded: this.routerUrl.indexOf('/admin/packages') >= 0,\n }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('EmailBlast') && !this.locationSettingsService.locationHasModule(LocationModulesEnum.HasNewEmailCampaign)) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.EmailCampaign,\n description: LocalizationService.rks.AdminEmailCampaignDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/emails/campaign-history']\n }\n ]);\n\n administrationItems.push(...[\n {\n label: LocalizationService.rks.ImageLibrary,\n description: LocalizationService.rks.AdminImageLibraryDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/image-library'],\n queryParams: { 'adjustHeight': true }\n }\n ]);\n }\n\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasOnlineRegistrations) && this.userSettingsService.userHasPermission('AccountAdministration')) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.OnlineRegistration,\n description: LocalizationService.rks.AdminOnlineRegistrationDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/online-registration']\n }\n ]);\n }\n\n if (this.locationSettingsService.getLocationPreferenceBooleanValue('EnableDocuments')\n && (this.userSettingsService.userHasPermission('Create/EditDocumentTemplates')\n || this.userSettingsService.userHasPermission('GenerateDocument')\n || this.userSettingsService.userHasPermission('ViewDocumentHistory'))) {\n\n const documentSubItems: EzMenuResponseModel[] = [];\n if (this.userSettingsService.userHasPermission('ViewDocumentHistory')\n || this.userSettingsService.userHasPermission('GenerateDocument')) {\n\n documentSubItems.push(...[\n {\n label: LocalizationService.rks.DocumentHistory,\n description: LocalizationService.rks.AdminDocumentHistoryDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/documents/document-history'],\n queryParams: { 'adjustHeight': true }\n }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('Create/EditDocumentTemplates')\n || this.userSettingsService.userHasPermission('GenerateDocument')) {\n\n documentSubItems.push(...[\n {\n label: LocalizationService.rks.DocumentTemplates,\n description: LocalizationService.rks.AdminDocumentTemplatesDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/documents/document-templates']\n }\n ]);\n }\n administrationItems.push(...[\n {\n label: LocalizationService.rks.Documents,\n styleClass: 'is-subitem has-submenu',\n items: documentSubItems,\n expanded: this.routerUrl.indexOf('/admin/documents') >= 0,\n }\n ]);\n }\n\n const billingSubItems: EzMenuResponseModel[] = this.getBillingSubItems();\n if (billingSubItems.length) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.Billing,\n styleClass: 'is-subitem has-submenu',\n items: billingSubItems,\n expanded: this.routerUrl.indexOf('/admin/billing') >= 0,\n }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')\n && this.locationSettingsService.locationHasModule(LocationModulesEnum.HasTimeClock)) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.TimeClock,\n styleClass: 'is-subitem has-submenu',\n items: [\n { label: LocalizationService.rks.HourlyRate, description: LocalizationService.rks.AdminHourlyRateDescription, styleClass: 'is-subitem', routerLink: ['/admin/time-clock/hourly-rate'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.IpRestriction, description: LocalizationService.rks.AdminIpRestrictionDescription, styleClass: 'is-subitem', routerLink: ['/admin/time-clock/ip-restriction'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.JobClassifications, description: LocalizationService.rks.AdminJobClassificationsDescription, styleClass: 'is-subitem', routerLink: ['/admin/time-clock/job-classification'], queryParams: { 'adjustHeight': true } },\n ],\n expanded: this.routerUrl.indexOf('/admin/time-clock') >= 0,\n }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')\n && this.locationSettingsService.getLocationPreferenceBooleanValue('MasterEnableSelfService')) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.AdminSelfService,\n styleClass: 'is-subitem has-submenu',\n items: [\n { label: LocalizationService.rks.Preferences, description: LocalizationService.rks.AdminPreferencesDescription, styleClass: 'is-subitem', routerLink: ['/admin/self-service/self-service-preferences'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.Design, description: LocalizationService.rks.AdminDesignDescription, styleClass: 'is-subitem', routerLink: ['/admin/self-service/self-service-design'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.VideoLibrary, description: LocalizationService.rks.AdminVideoLibraryDescription, styleClass: 'is-subitem', routerLink: ['/admin/self-service/video-library'], queryParams: { 'adjustHeight': true } },\n ],\n expanded: this.routerUrl.indexOf('/admin/self-service') >= 0,\n }\n ]);\n }\n\n const clientSubItems: EzMenuResponseModel[] = this.getClientSubItems();\n if (clientSubItems && clientSubItems.length) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.ClientSettings,\n styleClass: 'is-subitem has-submenu',\n items: clientSubItems,\n expanded: this.routerUrl.indexOf('/admin/client-settings') >= 0,\n }\n ]);\n }\n\n if ((this.locationSettingsService.locationHasModule(LocationModulesEnum.HasPOS) || this.locationSettingsService.locationHasModule(LocationModulesEnum.HasPOSv2))\n && this.userSettingsService.userHasPermission('POSAdministration')) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.POSSettings,\n styleClass: 'is-subitem has-submenu',\n items: [\n { label: LocalizationService.rks.CashRegisters, description: LocalizationService.rks.AdminCashRegistersDescription, styleClass: 'is-subitem', routerLink: ['/admin/pos-settings/cash-registers'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.AdminCashRegisterFavorites, description: LocalizationService.rks.AdminCashRegisterFavoritesDescription, styleClass: 'is-subitem', routerLink: ['/admin/pos-settings/cash-register-favorites'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.Brands, description: LocalizationService.rks.AdminBrandsDescription, styleClass: 'is-subitem', routerLink: ['/admin/pos-settings/brands'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.ProductCategories, description: LocalizationService.rks.ProductCategories, styleClass: 'is-subitem', routerLink: ['/admin/pos-settings/product-categories'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.ProductSuppliers, description: LocalizationService.rks.AdminProductSuppliersDescription, styleClass: 'is-subitem', routerLink: ['/admin/pos-settings/product-suppliers'], queryParams: { 'adjustHeight': true } },\n ],\n expanded: this.routerUrl.indexOf('/admin/pos-settings') >= 0,\n }\n ]);\n }\n\n const locationSettingsItems: EzMenuResponseModel[] = this.getLocationSettingsItems();\n\n if (locationSettingsItems.length) {\n administrationItems.push(...[\n {\n label: LocalizationService.rks.LocationSettings,\n styleClass: 'is-subitem has-submenu',\n items: locationSettingsItems,\n expanded: this.routerUrl.indexOf('/admin/location-settings') >= 0,\n }\n ]);\n }\n this.adminSubject.next(administrationItems);\n return administrationItems;\n }\n\n private getMembershipsSubItems(): EzMenuResponseModel[] {\n const membershipsSubItems: EzMenuResponseModel[] = [];\n\n //will we need membership agreements page later?\n // let membershipsSubItems = [{ label: 'Agreement', styleClass: 'is-subitem', routerLink: ['/admin/memberships/plans'] }];\n\n if (this.userSettingsService.userHasPermission('MembershipAdministration')) {\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasAdvancedMemberships)) {\n membershipsSubItems.push(...[\n { label: LocalizationService.rks.Plans, description: LocalizationService.rks.AdminMembershipsPlansDescription, styleClass: 'is-subitem', routerLink: ['/admin/memberships/plans'] }\n ]);\n }\n\n //will we need membership preferences page later?\n // { label: 'Preferences', styleClass: 'is-subitem', routerLink: ['/admin/memberships/plans'] },\n\n membershipsSubItems.push(...[\n { label: LocalizationService.rks.MembershipTypes, description: LocalizationService.rks.AdminMembershipsTypesDescription, styleClass: 'is-subitem', routerLink: ['/admin/memberships/types'] }\n ]);\n\n }\n return membershipsSubItems;\n }\n\n private getPackagesSubItems(): EzMenuResponseModel[] {\n const packagesSubItems: EzMenuResponseModel[] = [];\n\n if (this.userSettingsService.userHasPermission('AccountAdministration') ||\n this.userSettingsService.userHasPermission('CreatePackagePlans') ||\n this.userSettingsService.userHasPermission('DeletePackagePlans') ||\n this.userSettingsService.userHasPermission('EditPackagePlans') ||\n this.userSettingsService.userHasPermission('EditSoldByPackages')\n ) {\n packagesSubItems.push(...[\n { label: LocalizationService.rks.Plans, description: LocalizationService.rks.AdminPackagesPlansDescription, styleClass: 'is-subitem', routerLink: ['/admin/packages/plans'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('FullAccessReservationType') ||\n this.userSettingsService.userHasPermission('LimitedAccessReservationType') ||\n this.userSettingsService.userHasPermission('ViewOnlyAccessReservationType')) {\n // Temporary added production check until feature is ready to be released\n const isProduction: boolean = this.environment !== 'Development' && this.environment !== 'QA';\n packagesSubItems.push(...[\n { label: LocalizationService.rks.ReservationTypes, description: LocalizationService.rks.AdminReservationTypesDescription, styleClass: 'is-subitem', routerLink: ['/admin/packages/reservation-types'], queryParams: isProduction ? { 'adjustHeight': true } : null }\n ]);\n }\n return packagesSubItems;\n }\n\n private getBillingSubItems(): EzMenuResponseModel[] {\n const billingSubItems: EzMenuResponseModel[] = [];\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n billingSubItems.push(...[\n { label: LocalizationService.rks.BillingPreferences, description: LocalizationService.rks.AdminBillingPreferencesDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/billing-preferences'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.RevenueCategories, description: LocalizationService.rks.AdminRevenueCategoriesDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/revenue-categories'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.Taxes, description: LocalizationService.rks.AdminTaxesDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/taxes'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('ManageCoupons')) {\n billingSubItems.push(...[\n { label: LocalizationService.rks.Coupons, description: LocalizationService.rks.CouponsDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/coupons'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('EditClients')) {\n billingSubItems.push(...[\n { label: LocalizationService.rks.AdminUnInvoicedItemsUser, description: LocalizationService.rks.AdminUnInvoicedItemsUserDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/un-invoiced-items'], queryParams: { 'preset': 'MyCart', 'adjustHeight': true } },\n {\n label: LocalizationService.rks.AdminUnInvoicedItemsLocation,\n description: LocalizationService.rks.AdminUnInvoicedItemsLocationDescription,\n styleClass: 'is-subitem',\n routerLink: ['/admin/billing/un-invoiced-items'],\n queryParams: { 'preset': 'AllCart', 'adjustHeight': true }\n },\n { label: LocalizationService.rks.ReviewPostBilling, description: LocalizationService.rks.AdminReviewPostBillingDescription, styleClass: 'is-subitem', routerLink: ['/admin/billing/review-post-billing'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n return billingSubItems;\n }\n\n private getClientSubItems(): EzMenuResponseModel[] {\n const clientSubItems: EzMenuResponseModel[] = [];\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')\n || this.userSettingsService.userHasPermission('EditLocation')) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.ContactPreferences, description: LocalizationService.rks.AdminContactPreferencesDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/contact-preferences'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.ClientCategories, description: LocalizationService.rks.AdminClientCategoriesDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/client-categories'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.AssessmentCategories, description: LocalizationService.rks.AdminAssessmentCategoriesDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/assessment-categories'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.AccessControl, description: LocalizationService.rks.AdminAccessControlDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/access-control'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')\n && this.locationSettingsService.getLocationPreferenceBooleanValue('EnableEmailNotifications')) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.EmailAlerts, description: LocalizationService.rks.AdminEmailAlertsDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/email-alerts'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')\n && this.locationSettingsService.locationHasModule(LocationModulesEnum.HasCheckIn)) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.AdminCheckInStations, description: LocalizationService.rks.AdminCheckInStationsDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/check-in-stations'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.StaffCheckIn, description: LocalizationService.rks.AdminStaffCheckInDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/staff-check-in'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.SelfCheckIn, description: LocalizationService.rks.AdminSelfCheckInDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/self-check-in'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('ExportClients')) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.ExportClients, description: LocalizationService.rks.AdminExportClientsDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/export-clients'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.ReferralCategories, description: LocalizationService.rks.AdminReferralCategoriesDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/referral-categories'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('CreateIDCard')\n && this.locationSettingsService.locationHasModule(LocationModulesEnum.HasPhotoID)) {\n clientSubItems.push(...[\n { label: LocalizationService.rks.ClientIdCard, description: LocalizationService.rks.AdminClientIdCardDescription, styleClass: 'is-subitem', routerLink: ['/admin/client-settings/client-id-card'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n return clientSubItems;\n }\n\n private getLocationSettingsItems(): EzMenuResponseModel[] {\n const locationSettingsItems: EzMenuResponseModel[] = [];\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.Users, description: LocalizationService.rks.AdminUsersDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/users'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.Roles, description: LocalizationService.rks.AdminRolesDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/users/roles'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('EditLocation')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.LocationSetup, description: LocalizationService.rks.AdminLocationSetupDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/location-setup'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.ResourceSetup, description: LocalizationService.rks.AdminResourceSetupDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/resource-setup'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration') && this.userSettingsService.userHasPermission('AccessReservationCategories')) {\n locationSettingsItems.push(...[\n { label: 'Reservation Categories', description: 'Add/modify/disable reservation categories', styleClass: 'is-subitem', routerLink: ['/admin/location-settings/reservation-categories'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.PreDefinedItems, description: LocalizationService.rks.AdminPredefinedItemsDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/predefined-items'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.RentalRates, description: LocalizationService.rks.AdminRentalRatesDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/rental-rates'], queryParams: { 'adjustHeight': true } },\n { label: LocalizationService.rks.RentalTypes, description: LocalizationService.rks.AdminRentalTypesDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/rental-types'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasEquipment) && this.userSettingsService.userHasPermission('AccountAdministration')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.Equipment, description: LocalizationService.rks.AdminEquipmentDescription, styleClass: 'is-subitem', routerLink: ['/admin/equipment'] }\n ]);\n }\n\n\n\n // TODO - in addition to requiring the ManagePaymentTerminal user permission,\n //determine if EMV Terminals menu option should show, EZ-13675\n if (this.userSettingsService.userHasPermission('ManagePaymentTerminal')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.AdminEmvTerminals, description: LocalizationService.rks.AdminEmailAlertsDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/emv-terminals'], queryParams: { 'adjustHeight': true } },\n ]);\n }\n if (this.hasCloverMerchantSetUp && this.userSettingsService.userHasPermission('AccountAdministration')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.AdminCloverAuthentication, description: LocalizationService.rks.AdminCloverAuthenticationDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/clover-authentication'], queryParams: { 'adjustHeight': true } },\n ]);\n }\n\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasSmartwaiver)) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.AdminSmartwaiver, description: LocalizationService.rks.AdminSmartwaiverDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/smartwaiver'], queryParams: { 'adjustHeight': true } }\n\n ]);\n }\n\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasQuickbooksOnline)\n && this.userSettingsService.userHasPermission('QuickBooksOnline')) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.QuickBooksOnline, description: LocalizationService.rks.AdminQuickBooksOnlineDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/qbo'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n if (this.userSettingsService.userHasPermission('AccountAdministration')) {\n\n if (this.locationSettingsService.locationHasModule(LocationModulesEnum.HasZoom)) {\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.Zoom, description: LocalizationService.rks.AdminZoomDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/zoom'], queryParams: { 'adjustHeight': true } }\n ]);\n }\n\n locationSettingsItems.push(...[\n { label: LocalizationService.rks.ProgramFees, description: LocalizationService.rks.AdminProgramFeesDescription, styleClass: 'is-subitem', routerLink: ['/admin/location-settings/program-fees'], queryParams: { 'adjustHeight': true } }\n ]);\n\n if (this.locationSettingsService.getLocationPreferenceBooleanValue('MasterEnableSelfService')) {\n locationSettingsItems.push(...[\n {\n label: LocalizationService.rks.AdminMemberMe,\n description: LocalizationService.rks.AdminMemberMeDescription,\n styleClass: 'is-subitem',\n url: 'https://admin.migym.com/login', target: '_blank'\n }\n ]);\n }\n }\n\n return locationSettingsItems;\n }\n}\n"], "mappings": "kXAuBaA,GAANC,EAAA,KAA2B,CAgBhCC,YACUC,EACAC,EACAC,EACAC,EACAC,EAAwB,CAJxB,KAAAJ,oBAAAA,EACA,KAAAC,wBAAAA,EACA,KAAAC,YAAAA,EACA,KAAAC,iBAAAA,EACA,KAAAC,YAAAA,EAjBF,KAAAC,aAAuD,IAAIC,EAAuC,CAAA,CAAE,EACpG,KAAAC,YAAsB,KAAKH,YAAYI,eAAc,EAE7D,KAAAC,qBAA0D,KAAKJ,aAAaK,aAAY,EACrFC,KACCC,EAAOC,GAAcA,GAAcA,EAAWC,OAAS,CAAC,CAAC,EAG7D,KAAAC,UAAoB,GACpB,KAAAC,wBAAoD,IAAIV,EAAyB,EAAK,EACtF,KAAAW,uBAAkCC,OAUhC,KAAKC,yBAAwB,EAC7B,KAAKjB,YAAYkB,oBAA8BC,CAAqB,EAAEV,KACpEW,EAAIC,GAASA,EAAMC,MAAMC,GAAG,EAC5BC,EAAoB,EACpBC,EAAe,IAAI,CAAC,EACpBC,UAAWH,GAAe,CAC1B,KAAKV,UAAYU,CACnB,CAAC,CACH,CAEAN,0BAAwB,CACtB,KAAKhB,iBAAiB0B,eAA4BC,EAAwB,CAAE,EAC5E,KAAK3B,iBAAiBiB,oBAA8BU,CAAwB,EACzEnB,KACCC,EAAOmB,GAAUA,GAAUb,IAAS,EACpCS,EAAe,IAAI,CAAC,EAErBC,UAAWG,GAA4C,CACtD,KAAKd,uBAAyBc,EAAOC,kBACrC,KAAKhB,wBAAwBiB,KAAKF,EAAOC,iBAAiB,EAC1D,KAAKE,uBAAsB,CAC7B,CAAC,CACL,CAEOA,wBAAsB,CAC3B,IAAMC,EAA6C,CAAA,EAE7CC,EAA6C,KAAKC,uBAAsB,EAC1ED,EAAoBtB,QACtBqB,EAAoBG,K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A,oBAAA,CAqBkBT,EACIC,EACZC,EACKA,EACLC,CAAW,CAAA,CAAA,EArBvBnM,CAAqB", "names": ["AdministrationService", "_a", "constructor", "userSettingsService", "locationSettingsService", "storeHelper", "themeStoreHelper", "authService", "adminSubject", "BehaviorSubject", "environment", "getEnvironment", "administrationItems$", "asObservable", "pipe", "filter", "adminItems", "length", "routerUrl", "hasCloverMerchantSetUp$", "hasCloverMerchantSetUp", "undefined", "showCloverAuthentication", "stateStreamSelector", "getRouterFeatureState", "map", "route", "state", "url", "distinctUntilChanged", "untilDestroyed", "subscribe", "dispatchAction", "getCloverMerchantIsSetUp", "result", "hasCloverMerchant", "next", "getAdministrationItems", "administrationItems", "membershipsSubItems", "getMembershipsSubItems", "push", "label", "LocalizationService", "rks", "Memberships", "styleClass", "items", "expanded", "indexOf", "packagesSubItems", "getPackagesSubItems", "Packages", "userHasPermission", "locationHasModule", "LocationModulesEnum", "HasNewEmailCampaign", "EmailCampaign", "description", "AdminEmailCampaignDescription", "routerLink", "ImageLibrary", "AdminImageLibraryDescription", "queryParams", "HasOnlineRegistrations", "OnlineRegistration", "AdminOnlineRegistrationDescription", "getLocationPreferenceBooleanValue", "documentSubItems", "DocumentHistory", "AdminDocumentHistoryDescription", "DocumentTemplates", "AdminDocumentTemplatesDescription", "Documents", "billingSubItems", "getBillingSubItems", "Billing", "HasTimeClock", "TimeClock", "HourlyRate", "AdminHourlyRateDescription", "IpRestriction", "AdminIpRestrictionDescription", "JobClassifications", "AdminJobClassificationsDescription", "AdminSelfService", "Preferences", "AdminPreferencesDescription", "Design", "AdminDesignDescription", "VideoLibrary", "AdminVideoLibraryDescription", "clientSubItems", "getClientSubItems", "ClientSettings", "HasPOS", "HasPOSv2", "POSSettings", "CashRegisters", "AdminCashRegistersDescription", "AdminCashRegisterFavorites", "AdminCashRegisterFavoritesDescription", "Brands", "AdminBrandsDescription", "ProductCategories", "ProductSuppliers", "AdminProductSuppliersDescription", "locationSettingsItems", "getLocationSettingsItems", "LocationSettings", "HasAdvancedMemberships", "Plans", "AdminMembershipsPlansDescription", "MembershipTypes", "AdminMembershipsTypesDescription", "AdminPackagesPlansDescription", "isProduction", "ReservationTypes", "AdminReservationTypesDescription", "BillingPreferences", "AdminBillingPreferencesDescription", "RevenueCategories", "AdminRevenueCategoriesDescription", "Taxes", "AdminTaxesDescription", "Coupons", "CouponsDescription", "AdminUnInvoicedItemsUser", "AdminUnInvoicedItemsUserDescription", "AdminUnInvoicedItemsLocation", "AdminUnInvoicedItemsLocationDescription", "ReviewPostBilling", "AdminReviewPostBillingDescription", "ContactPreferences", "AdminContactPreferencesDescription", "ClientCategories", "AdminClientCategoriesDescription", "AssessmentCategories", "AdminAssessmentCategoriesDescription", "AccessControl", "AdminAccessControlDescription", "EmailAlerts", "AdminEmailAlertsDescription", "HasCheckIn", "AdminCheckInStations", "AdminCheckInStationsDescription", "StaffCheckIn", "AdminStaffCheckInDescription", "SelfCheckIn", "AdminSelfCheckInDescription", "ExportClients", "AdminExportClientsDescription", "ReferralCategories", "AdminReferralCategoriesDescription", "HasPhotoID", "ClientIdCard", "AdminClientIdCardDescription", "Users", "AdminUsersDescription", "Roles", "AdminRolesDescription", "LocationSetup", "AdminLocationSetupDescription", "ResourceSetup", "AdminResourceSetupDescription", "PreDefinedItems", "AdminPredefinedItemsDescription", "RentalRates", "AdminRentalRatesDescription", "RentalTypes", "AdminRentalTypesDescription", "HasEquipment", "Equipment", "AdminEquipmentDescription", "AdminEmvTerminals", "AdminCloverAuthentication", "AdminCloverAuthenticationDescription", "HasSmartwaiver", "AdminSmartwaiver", "AdminSmartwaiverDescription", "HasQuickbooksOnline", "QuickBooksOnline", "AdminQuickBooksOnlineDescription", "HasZoom", "Zoom", "AdminZoomDescription", "ProgramFees", "AdminProgramFeesDescription", "AdminMemberMe", "AdminMemberMeDescription", "target", "\u0275\u0275inject", "UserSettingsService", "LocationSettingsService", "EzStoreService", "AuthService", "factory", "\u0275fac", "providedIn", "__decorate", "UntilDestroy", "__metadata"] }