{ "version": 3, "sources": ["libs/mediio-plattform/shared/helper-links/feedback/data-access/src/lib/store/feedback.actions.ts", "libs/mediio-plattform/shared/helper-links/feedback/data-access/src/lib/store/feedback.reducer.ts", "libs/mediio-plattform/shared/helper-links/feedback/data-access/src/lib/store/feedback.selectors.ts", "libs/mediio-plattform/shared/helper-links/feedback/data-access/src/lib/store/feedback.facade.ts", "libs/mediio-plattform/shared/helper-links/feedback/domain/src/lib/models/feedback-type.ts", "libs/mediio-plattform/shared/helper-links/feedback/util/src/lib/consts/feedback-mail-body-consts.ts"], "sourcesContent": ["import { createActionGroup, emptyProps, props } from '@ngrx/store';\r\n\r\nimport { FeedbackSettings } from '@mp/shared/helper-links/feedback/domain';\r\n\r\nexport const FeedbackActions = createActionGroup({\r\n source: 'Feedback',\r\n events: {\r\n fetchFeedbackSettings: emptyProps(),\r\n fetchFeedbackSettingsSuccess: props<{ feedbackSettings: FeedbackSettings }>(),\r\n fetchFeedbackSettingsError: emptyProps(),\r\n\r\n updateFeedbackSettings: props<{ feedbackSettings: FeedbackSettings }>(),\r\n updateFeedbackSettingsSuccess: props<{ feedbackSettings: FeedbackSettings }>(),\r\n updateFeedbackSettingsError: emptyProps(),\r\n },\r\n});\r\n", "import { createReducer, on } from '@ngrx/store';\r\n\r\nimport { FeedbackSettings } from '@mp/shared/helper-links/feedback/domain';\r\n\r\nimport { FeedbackActions } from './feedback.actions';\r\n\r\nexport const feedbackFeatureKey = 'mp-feedback';\r\n\r\nexport interface FeedbackState {\r\n feedbackSettings: FeedbackSettings | undefined;\r\n isLoading: boolean;\r\n}\r\n\r\nexport const initialState: FeedbackState = {\r\n feedbackSettings: undefined,\r\n isLoading: false,\r\n};\r\n\r\nexport const feedbackReducer = createReducer(\r\n initialState,\r\n on(\r\n FeedbackActions.fetchFeedbackSettings,\r\n (state): FeedbackState => ({\r\n ...state,\r\n feedbackSettings: undefined,\r\n isLoading: true,\r\n }),\r\n ),\r\n on(\r\n FeedbackActions.fetchFeedbackSettingsSuccess,\r\n (state, { feedbackSettings }): FeedbackState => ({\r\n ...state,\r\n feedbackSettings,\r\n isLoading: false,\r\n }),\r\n ),\r\n on(\r\n FeedbackActions.fetchFeedbackSettingsError,\r\n (state): FeedbackState => ({\r\n ...state,\r\n feedbackSettings: undefined,\r\n isLoading: false,\r\n }),\r\n ),\r\n\r\n on(\r\n FeedbackActions.updateFeedbackSettings,\r\n (state): FeedbackState => ({\r\n ...state,\r\n isLoading: true,\r\n }),\r\n ),\r\n on(\r\n FeedbackActions.updateFeedbackSettingsSuccess,\r\n (state, { feedbackSettings }): FeedbackState => ({\r\n ...state,\r\n feedbackSettings,\r\n isLoading: false,\r\n }),\r\n ),\r\n on(\r\n FeedbackActions.updateFeedbackSettingsError,\r\n (state): FeedbackState => ({\r\n ...state,\r\n isLoading: false,\r\n }),\r\n ),\r\n);\r\n", "import { createFeatureSelector, createSelector } from '@ngrx/store';\r\n\r\nimport { FeedbackState, feedbackFeatureKey } from './feedback.reducer';\r\n\r\nexport const selectFeedbackState = createFeatureSelector(feedbackFeatureKey);\r\n\r\nexport const selectFeedbackSettings = createSelector(selectFeedbackState, (state) => state.feedbackSettings);\r\n\r\nexport const selectIsLoading = createSelector(selectFeedbackState, (state) => state.isLoading);\r\n", "import { Injectable } from '@angular/core';\r\nimport { Actions, ofType } from '@ngrx/effects';\r\nimport { Store } from '@ngrx/store';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FeedbackSettings } from '@mp/shared/helper-links/feedback/domain';\r\n\r\nimport { FeedbackActions } from './feedback.actions';\r\nimport { selectFeedbackSettings, selectIsLoading } from './feedback.selectors';\r\n\r\n@Injectable()\r\nexport class FeedbackFacade {\r\n readonly feedbackSettings$: Observable = this.store$.select(selectFeedbackSettings);\r\n\r\n readonly isLoading$: Observable = this.store$.select(selectIsLoading);\r\n\r\n readonly updateFeedbackSettingsSuccess$: Observable = this.actions$.pipe(\r\n ofType(FeedbackActions.updateFeedbackSettingsSuccess),\r\n );\r\n\r\n constructor(\r\n private readonly store$: Store,\r\n private readonly actions$: Actions,\r\n ) {}\r\n\r\n fetchFeedbackSettings(): void {\r\n this.store$.dispatch(FeedbackActions.fetchFeedbackSettings());\r\n }\r\n\r\n updateFeedbackSettings(feedbackSettings: FeedbackSettings): void {\r\n this.store$.dispatch(FeedbackActions.updateFeedbackSettings({ feedbackSettings }));\r\n }\r\n}\r\n", "export enum FeedbackType {\r\n Disabled = 'Disabled',\r\n Zendesk = 'Zendesk',\r\n MailTo = 'MailTo',\r\n}\r\n", "export const USER_FIRST_NAME_PLACEHOLDER = '%vorname%';\r\n\r\nexport const USER_LAST_NAME_PLACEHOLDER = '%nachname%';\r\n\r\nexport const USER_EMAIL_PLACEHOLDER = '%email%';\r\n"], "mappings": "wOAIO,IAAMA,EAAkBC,EAAkB,CAC/CC,OAAQ,WACRC,OAAQ,CACNC,sBAAuBC,EAAU,EACjCC,6BAA8BC,EAAK,EACnCC,2BAA4BH,EAAU,EAEtCI,uBAAwBF,EAAK,EAC7BG,8BAA+BH,EAAK,EACpCI,4BAA6BN,EAAU,GAE1C,ECTM,IAAMO,EAAqB,cAOrBC,EAA8B,CACzCC,iBAAkBC,OAClBC,UAAW,IAGAC,EAAkBC,EAC7BL,EACAM,EACEC,EAAgBC,sBACfC,GAA0BC,EAAAC,EAAA,GACtBF,GADsB,CAEzBR,iBAAkBC,OAClBC,UAAW,IACX,EAEJG,EACEC,EAAgBK,6BAChB,CAACH,EAAO,CAAER,iBAAAA,CAAgB,IAAuBS,EAAAC,EAAA,GAC5CF,GAD4C,CAE/CR,iBAAAA,EACAE,UAAW,IACX,EAEJG,EACEC,EAAgBM,2BACfJ,GAA0BC,EAAAC,EAAA,GACtBF,GADsB,CAEzBR,iBAAkBC,OAClBC,UAAW,IACX,EAGJG,EACEC,EAAgBO,uBACfL,GAA0BC,EAAAC,EAAA,GACtBF,GADsB,CAEzBN,UAAW,IACX,EAEJG,EACEC,EAAgBQ,8BAChB,CAACN,EAAO,CAAER,iBAAAA,CAAgB,IAAuBS,EAAAC,EAAA,GAC5CF,GAD4C,CAE/CR,iBAAAA,EACAE,UAAW,IACX,EAEJG,EACEC,EAAgBS,4BACfP,GAA0BC,EAAAC,EAAA,GACtBF,GADsB,CAEzBN,UAAW,IACX,CACH,EC9DI,IAAMc,EAAsBC,EAAqCC,CAAkB,EAE7EC,EAAyBC,EAAeJ,EAAsBK,GAAUA,EAAMC,gBAAgB,EAE9FC,EAAkBH,EAAeJ,EAAsBK,GAAUA,EAAMG,SAAS,ECG7F,IAAaC,GAAc,IAAA,CAArB,MAAOA,CAAc,CASzBC,YACmBC,EACAC,EAAiB,CADjB,KAAAD,OAAAA,EACA,KAAAC,SAAAA,EAVV,KAAAC,kBAA8D,KAAKF,OAAOG,OAAOC,CAAsB,EAEvG,KAAAC,WAAkC,KAAKL,OAAOG,OAAOG,CAAe,EAEpE,KAAAC,+BAAsD,KAAKN,SAASO,KAC3EC,EAAOC,EAAgBC,6BAA6B,CAAC,CAMpD,CAEHC,uBAAqB,CACnB,KAAKZ,OAAOa,SAASH,EAAgBE,sBAAqB,CAAE,CAC9D,CAEAE,uBAAuBC,EAAkC,CACvD,KAAKf,OAAOa,SAASH,EAAgBI,uBAAuB,CAAEC,iBAAAA,CAAgB,CAAE,CAAC,CACnF,iDApBWjB,GAAckB,EAAAC,CAAA,EAAAD,EAAAE,CAAA,CAAA,CAAA,CAAA,iCAAdpB,EAAcqB,QAAdrB,EAAcsB,SAAA,CAAA,CAAA,SAAdtB,CAAc,GAAA,ECX3B,IAAYuB,EAAZ,SAAYA,EAAY,CACtBA,OAAAA,EAAA,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SAHUA,CAIZ,EAJYA,GAAY,CAAA,CAAA,ECAjB,IAAMC,EAA8B,YAE9BC,EAA6B,aAE7BC,EAAyB", "names": ["FeedbackActions", "createActionGroup", "source", "events", "fetchFeedbackSettings", "emptyProps", "fetchFeedbackSettingsSuccess", "props", "fetchFeedbackSettingsError", "updateFeedbackSettings", "updateFeedbackSettingsSuccess", "updateFeedbackSettingsError", "feedbackFeatureKey", "initialState", "feedbackSettings", "undefined", "isLoading", "feedbackReducer", "createReducer", "on", "FeedbackActions", "fetchFeedbackSettings", "state", "__spreadProps", "__spreadValues", "fetchFeedbackSettingsSuccess", "fetchFeedbackSettingsError", "updateFeedbackSettings", "updateFeedbackSettingsSuccess", "updateFeedbackSettingsError", "selectFeedbackState", "createFeatureSelector", "feedbackFeatureKey", "selectFeedbackSettings", "createSelector", "state", "feedbackSettings", "selectIsLoading", "isLoading", "FeedbackFacade", "constructor", "store$", "actions$", "feedbackSettings$", "select", "selectFeedbackSettings", "isLoading$", "selectIsLoading", "updateFeedbackSettingsSuccess$", "pipe", "ofType", "FeedbackActions", "updateFeedbackSettingsSuccess", "fetchFeedbackSettings", "dispatch", "updateFeedbackSettings", "feedbackSettings", "\u0275\u0275inject", "Store", "Actions", "factory", "\u0275fac", "FeedbackType", "USER_FIRST_NAME_PLACEHOLDER", "USER_LAST_NAME_PLACEHOLDER", "USER_EMAIL_PLACEHOLDER"] }