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AAI,CAACC,KAAM,IAAa,0BAGjC,mBAAOC,QAASJ,EAAMrG,GAAI+F,UAAW,ICtDsK,YDsD9I,UACxDE,GAAsB,SAACS,EAAA,EAAc,UAAEb,IAA0BA,EACjEC,IAAiB,iBAAMC,UCxD8M,WDwD3K,SAAGD,SAGzE,C","sources":["webpack:///./src/microApps/base/components/CommonLayout/CommonLayout.hooks.ts","webpack:///./src/microApps/common/api/clients/directAdobeCampaignAxiosClient.ts","webpack:///./src/microApps/myCoop/emailSubscriptions/api/consentSubscriptionsApi.ts","webpack:///./src/microApps/common/flow/consentAdobeSubscriptionFlow.ts","webpack:///./src/microApps/common/api/clients/directKimProxyAxiosClient.ts","webpack:///./src/microApps/common/api/finance/consentErrorInterceptor.ts","webpack:///./src/microApps/common/api/finance/kimProxyApi.ts","webpack:///./src/microApps/common/flow/kimProxyFlow.ts","webpack:///./src/microApps/common/tracking/ga4/emailSubscription/ga4EmailSubscriptionEvents.ts","webpack:///./src/microApps/common/utils/neoIdUtils.ts","webpack:///./src/microApps/member/consts.ts","webpack:///./src/microApps/member/hooks/useKimCustomerDataQuery.ts","webpack:///./src/microApps/member/member.utils.ts","webpack:///./src/microApps/member/memberQueries.ts","webpack:///./src/microApps/myCoop/consentSubscriptions/hooks/useConsentQuery.ts","webpack:///./src/microApps/myCoop/consentSubscriptions/hooks/useSubscribeMutation.ts","webpack:///./src/microApps/myCoop/emailSubscriptions/hooks/useEmailSubscriptionQuery.ts","webpack:///./src/microApps/myCoop/myCoopQueries.ts","webpack:///./src/utility/consts.ts","webpack:///../../packages/components/src/Checkbox/Checkbox.tsx","webpack:///../../packages/components/src/Checkbox/Checkbox.module.scss"],"sourcesContent":["import { useEffect } from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\n\nimport { appConfig } from '../../../../appConfig';\nimport { useAppDispatch, useAppSelector } from '../../../common/hooks/useThunkDispatch';\nimport { storeSelectors } from '../../../common/selectors/storeSelectors';\nimport { cartThunks } from '../../../common/thunks/cartThunks';\nimport { personalizationTracking } from '../../../common/tracking/contextAware/personalizationEvents';\nimport { ga4UserTracking } from '../../../common/tracking/ga4/user';\n\nexport const useInitialCartFetch = () => {\n const dispatch = useAppDispatch();\n const hasActiveStoreSelection = useAppSelector(storeSelectors.hasActiveStoreSelection);\n useEffect(() => {\n if (\n hasActiveStoreSelection ||\n (appConfig.coopUserSettings.isOrdererMunicipal &&\n !appConfig.coopUserSettings.isShoppingForMunicipal)\n ) {\n dispatch(cartThunks.getCart());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dispatch]);\n};\n\nconst REDIRECT_REASON_QUERY_KEY = 'redirectReason';\nexport const useRedirectReasonHandler = () => {\n const { search, pathname } = useLocation();\n const navigate = useNavigate();\n\n useEffect(() => {\n const queryString = new URLSearchParams(search);\n const redirectReason = queryString.get(REDIRECT_REASON_QUERY_KEY);\n let removeRedirectReasonQuery = true;\n if (!redirectReason) return;\n\n switch (redirectReason) {\n case 'accountRemoved': {\n ga4UserTracking.accountRemoved();\n break;\n }\n case 'loginSuccess': {\n ga4UserTracking.login(\n appConfig.coopUserSettings.isAuthenticatedWithBankId ? 'bankid' : 'email',\n 'done',\n );\n personalizationTracking.trackUserLogin();\n break;\n }\n case 'signup': {\n removeRedirectReasonQuery = false;\n ga4UserTracking.signup(\n appConfig.coopUserSettings.isMedmeraCustomer ? 'membership' : 'account',\n appConfig.coopUserSettings.isCompany ? 'business' : 'private',\n appConfig.coopUserSettings.isAuthenticatedWithBankId ? 'bankid' : 'email',\n );\n break;\n }\n case 'loginAndConnectMembership': {\n ga4UserTracking.connectMembership('success', 'login');\n break;\n }\n\n default: {\n // eslint-disable-next-line no-console\n console.error('Unknown redirect reason: ', redirectReason);\n return;\n }\n }\n\n if (removeRedirectReasonQuery) {\n queryString.delete(REDIRECT_REASON_QUERY_KEY);\n }\n\n navigate(\n {\n pathname,\n search: queryString.toString(),\n },\n { replace: true },\n );\n }, [navigate, search, pathname]);\n};\n","import type { AxiosInstance } from 'axios';\n\nimport { appConfig } from '../../../../appConfig';\nimport axiosClientFactory from './clientFactory';\nimport type { CustomErrorInterceptor } from './localApiAxiosErrorInterceptors';\n\nconst getDirectAdobeCampaignAxiosClient = <TApiError = unknown>(\n accessToken?: string,\n neoId?: string,\n errorInterceptors?: CustomErrorInterceptor<TApiError>[],\n): AxiosInstance => {\n const directShoppingListAxiosClient = axiosClientFactory.createDirectApiClient(\n {\n baseURL: appConfig.coopSettings.serviceAccess.apimBaseUrl,\n headers: {\n Authorization: neoId ? `adobe ${btoa(neoId)}` : `Bearer ${accessToken}`,\n },\n params: {\n 'api-version': 'v1',\n },\n },\n errorInterceptors,\n );\n\n return directShoppingListAxiosClient;\n};\n\nexport default getDirectAdobeCampaignAxiosClient;\n","import getDirectAdobeCampaignAxiosClient from '../../../common/api/clients/directAdobeCampaignAxiosClient';\nimport type { CustomErrorInterceptor } from '../../../common/api/clients/localApiAxiosErrorInterceptors';\nimport { createDefaultException } from '../../../common/exceptions/exceptionUtils';\nimport type { EmailSubscriptionResponse } from '../models';\n\nconst baseUrl = '/external/ac/offers';\n\ntype EmailSubscriptionApiException = {\n status: number;\n title: string;\n};\n\nconst emailSubscriptionErrorInterceptor: CustomErrorInterceptor<EmailSubscriptionApiException> = (\n error,\n) => {\n const exception = createDefaultException(\n error.response.data.title,\n error.response.data.status.toString(),\n );\n return exception;\n};\n\nconst getSubscriptions = async (\n token?: string,\n neoId?: string,\n): Promise<EmailSubscriptionResponse | null> => {\n const url = `${baseUrl}/subscriptions`;\n\n try {\n const response = await getDirectAdobeCampaignAxiosClient(token, neoId, [\n emailSubscriptionErrorInterceptor,\n ]).get(url);\n\n return response.data;\n } catch (error) {\n const err = error as { code?: string };\n if (err.code && err.code === '404') {\n return null;\n }\n\n throw error;\n }\n};\n\nconst subscribe = async (services: string[], token?: string, neoId?: string, email?: string) => {\n const url = `${baseUrl}/subscriptions/services`;\n\n const axiosClient = await getDirectAdobeCampaignAxiosClient(token, neoId);\n const data = {\n email,\n services,\n };\n await axiosClient.post<void>(url, data);\n};\n\nconst unsubscribe = async (services: string[], token?: string, neoId?: string) => {\n const url = `${baseUrl}/subscriptions/services`;\n\n const axiosClient = await getDirectAdobeCampaignAxiosClient(token, neoId);\n await axiosClient.delete<void>(url, { data: services });\n};\n\nconst consentSubscriptionsApi = {\n getSubscriptions,\n subscribe,\n unsubscribe,\n};\n\nexport default consentSubscriptionsApi;\n","import { appConfig } from '../../../appConfig';\nimport consentSubscriptionsApi from '../../myCoop/emailSubscriptions/api/consentSubscriptionsApi';\nimport { getAuthToken } from '../api/auth/getAuthToken';\nimport { getNeoId } from '../utils/neoIdUtils';\n\nconst getSubscriptions = async (preferNeoId?: boolean) => {\n const neoId = (preferNeoId && getNeoId()) || undefined;\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n const response = await consentSubscriptionsApi.getSubscriptions(token, neoId);\n return response;\n};\n\nconst subscribe = async (services: string[], preferNeoId?: boolean, email?: string) => {\n const neoId = (preferNeoId && getNeoId()) || undefined;\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n const response = consentSubscriptionsApi.subscribe(services, token, neoId, email);\n return response;\n};\n\nconst unsubscribe = async (services: string[], preferNeoId?: boolean) => {\n const neoId = (preferNeoId && getNeoId()) || undefined;\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n const response = consentSubscriptionsApi.unsubscribe(services, token, neoId);\n return response;\n};\n\nexport const consentAdobeSubscriptionFlow = {\n getSubscriptions,\n subscribe,\n unsubscribe,\n};\n","import type { AxiosInstance } from 'axios';\n\nimport { appConfig } from '../../../../appConfig';\nimport axiosClientFactory from './clientFactory';\nimport type { CustomErrorInterceptor } from './localApiAxiosErrorInterceptors';\n\nconst getDirectKimProxyAxiosClient = <TApiError = unknown>(\n accessToken?: string,\n neoId?: string,\n errorInterceptors?: CustomErrorInterceptor<TApiError>[],\n): AxiosInstance => {\n const directKimProxyAxiosClient = axiosClientFactory.createDirectApiClient(\n {\n baseURL: appConfig.coopSettings.serviceAccess.kimProxyApiUrl,\n headers: {\n Accept: 'application/json',\n 'Ocp-Apim-Trace': 'true',\n 'Ocp-Apim-Subscription-Key':\n appConfig.coopSettings.serviceAccess.kimProxyApiSubscriptionKey,\n Authorization: neoId ? `adobe ${btoa(neoId)}` : `Bearer ${accessToken}`,\n },\n params: {\n 'api-version': appConfig.coopSettings.serviceAccess.kimProxyApiVersion,\n },\n },\n errorInterceptors,\n );\n\n return directKimProxyAxiosClient;\n};\n\nexport default getDirectKimProxyAxiosClient;\n","import { createDefaultException } from '../../exceptions/exceptionUtils';\nimport type { CustomErrorInterceptor } from '../clients/localApiAxiosErrorInterceptors';\n\ntype ConsentApiException = {\n code: '404' | '401';\n details: string;\n status: number;\n title: string;\n message: string;\n};\n\nconst consentErrorInterceptor: CustomErrorInterceptor<ConsentApiException> = (error) => {\n const exception = createDefaultException(\n error.response.data.message,\n error.response.status.toString(),\n );\n return exception;\n};\n\nexport default consentErrorInterceptor;\n","import type { Consent } from '../../models/kimProxy/consentData';\nimport type { CustomerData, CustomerDataMinimized } from '../../models/kimProxy/customerData';\nimport getDirectKimProxyAxiosClient from '../clients/directKimProxyAxiosClient';\nimport consentErrorInterceptor from './consentErrorInterceptor';\n\nexport const kimProxyDirectApi = {\n getCustomerData: async (token: string): Promise<CustomerDataMinimized> => {\n const kimCustomerDataUrl = '/customer/data/me/';\n\n const response =\n await getDirectKimProxyAxiosClient(token).get<CustomerDataMinimized>(\n kimCustomerDataUrl,\n );\n\n const resp = response.data;\n return resp;\n },\n getCustomerDataFull: async (token: string): Promise<CustomerData> => {\n const kimCustomerDataUrl = '/customer/data/me/';\n\n const response =\n await getDirectKimProxyAxiosClient(token).get<CustomerData>(kimCustomerDataUrl);\n\n const resp = response.data;\n return resp;\n },\n deleteCustomerDataCache: async (token: string) => {\n const kimCustomerDataClearCacheUrl = '/customer/data/me/cache';\n\n await getDirectKimProxyAxiosClient(token).delete<boolean>(kimCustomerDataClearCacheUrl);\n },\n changeEmail: async (token: string, email: string) => {\n const kimCustomerEmailUrl = '/customer/change-email';\n await getDirectKimProxyAxiosClient(token).post(kimCustomerEmailUrl, {\n email,\n });\n },\n getConsents: async (token?: string, neoId?: string): Promise<Consent[]> => {\n const response = await getDirectKimProxyAxiosClient(token, neoId, [\n consentErrorInterceptor,\n ]).get<Consent[]>('/consent');\n\n const resp = response.data;\n return resp;\n },\n subscribeConsents: async (serviceIds: string[], token?: string, neoId?: string) => {\n const response = await getDirectKimProxyAxiosClient(token, neoId).put('/consent/selected', {\n identifiers: serviceIds,\n });\n\n const resp = response.data;\n return resp;\n },\n unsubscribeConsent: async (serviceId: string, token?: string, neoId?: string) => {\n const response = await getDirectKimProxyAxiosClient(token, neoId).delete('/consent', {\n data: {\n id: serviceId,\n },\n });\n\n const resp = response.data;\n return resp;\n },\n};\n","import { appConfig } from '../../../appConfig';\nimport { getAuthToken } from '../api/auth/getAuthToken';\nimport { kimProxyDirectApi } from '../api/finance/kimProxyApi';\n\nconst kimProxyFlow = {\n getCustomerData: async () => {\n const identity = await getAuthToken();\n const details = await kimProxyDirectApi.getCustomerData(identity.token);\n return details;\n },\n getCustomerDataWithAppToken: async (appAuthToken: string) => {\n const details = await kimProxyDirectApi.getCustomerData(appAuthToken);\n return details;\n },\n getCustomerDataFull: async () => {\n const identity = await getAuthToken();\n const details = await kimProxyDirectApi.getCustomerDataFull(identity.token);\n return details;\n },\n deleteCustomerDataCache: async () => {\n const identity = await getAuthToken();\n await kimProxyDirectApi.deleteCustomerDataCache(identity.token);\n },\n changeEmail: async (email: string) => {\n const identity = await getAuthToken();\n await kimProxyDirectApi.changeEmail(identity.token, email);\n return true;\n },\n getConsents: async (neoId?: string) => {\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n return getConsentWithErrorHandling(token, neoId);\n },\n getConsentsWithAppToken: async (appToken: string) => {\n return getConsentWithErrorHandling(appToken);\n },\n subscribeConsents: async (services: string[], neoId?: string) => {\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n const response = kimProxyDirectApi.subscribeConsents(services, token, neoId);\n return response;\n },\n subscribeConsentsWithAppToken: async (services: string[], appToken: string) => {\n const response = kimProxyDirectApi.subscribeConsents(services, appToken);\n return response;\n },\n unsubscribeConsent: async (service: string, neoId?: string) => {\n const { isAuthenticated } = appConfig.coopUserSettings;\n let token;\n if (isAuthenticated) {\n const spaToken = await getAuthToken();\n token = spaToken?.token;\n }\n\n const response = kimProxyDirectApi.unsubscribeConsent(service, token, neoId);\n return response;\n },\n};\n\nconst getConsentWithErrorHandling = async (token?: string, neoId?: string) => {\n try {\n const details = await kimProxyDirectApi.getConsents(token, neoId);\n return details;\n } catch (error) {\n const err = error as { code?: string };\n if (err.code && err.code === '404') {\n // If there is no user found, return empty array\n return [];\n }\n\n throw error;\n }\n};\n\nexport default kimProxyFlow;\n","import { failSilently } from '../../utils/failSilently';\nimport { sendGA4Event } from '../shared/sendGa4Event';\n\nconst emailSubscriptionInteraction = (clickText: string) => {\n const event: EmailSubscriptionInteractionEvent = {\n event: 'interaction',\n type: 'missa inga erbjudanden pop-up',\n click_text: clickText,\n };\n sendGA4Event(event);\n};\n\nexport default {\n close: {\n sendEmailSubscriptionInteraction: failSilently(() => emailSubscriptionInteraction('Stäng')),\n },\n confirm: {\n sendEmailSubscriptionInteraction: failSilently(() =>\n emailSubscriptionInteraction('Godkänn'),\n ),\n },\n skip: {\n sendEmailSubscriptionInteraction: failSilently(() =>\n emailSubscriptionInteraction('Hoppa över'),\n ),\n },\n};\n","import { appConfig } from '../../../appConfig';\nimport { Helpers } from '../../../utility/helpers';\n\nconst NEOID_HEADER = 'neoId';\nconst SESSION_STORAGE_NEO_IDENTITY = 'user.identity.neo';\n/**\n * This will return neoId if it exists as a query parameter.\n * If user is not authenticated, it will store neoId to session storage.\n * If user doesn't have it in query parameter and is still not authenticated it will return neoId from session storage.\n */\nexport const getNeoId = () => {\n const neoId = Helpers.getParameterByName(NEOID_HEADER);\n\n if (!appConfig.coopUserSettings.isAuthenticated) {\n if (neoId) {\n window.sessionStorage.setItem(SESSION_STORAGE_NEO_IDENTITY, neoId);\n } else {\n const storedNeoId = window.sessionStorage.getItem(SESSION_STORAGE_NEO_IDENTITY);\n return storedNeoId ?? undefined;\n }\n }\n\n return neoId;\n};\n","export const MEMBER_CONSENT_QUERY = 'memberConsent';\nexport const MEMBER_CONSENT_NEWSLETTERS_EMAIL = [\n 'coop_offers',\n 'xtra_offers',\n 'member_association',\n 'membership_program',\n];\n\nexport const MEMBER_CONSENT_NEWSLETTERS_SMS = 'sms';\nexport const MEMBER_CONSENT_NEWSLETTER_STORE = 'coop_offers';\n\n// Remove later when Bloomreach is in use\nexport const ADOBE_MEMBER_CONSENT_NEWSLETTERS_EMAIL = [\n 'cooOnline',\n 'cooDRDigital',\n 'cooPartnermail',\n 'cooNewsletter',\n];\n","import { useQuery } from '@tanstack/react-query';\n\nimport kimProxyFlow from '../../common/flow/kimProxyFlow';\nimport { kimCustomerDataQueryKeys } from '../memberQueries';\n\nexport const useKimCustomerDataQuery = (enabled: boolean) => {\n const query = useQuery({\n queryKey: kimCustomerDataQueryKeys.defaultDataSet(),\n queryFn: async () => {\n return kimProxyFlow.getCustomerData();\n },\n enabled,\n });\n\n return query;\n};\n","import type { CustomerDataMinimized } from '../common/models/kimProxy/customerData';\n\nconst kimPhoneNumber = (customerData?: CustomerDataMinimized) => {\n const phoneNumber =\n customerData?.addresses?.find((x) => x.typeOfAddress === 'TEL_MOB')?.address || null;\n\n return phoneNumber;\n};\n\nconst kimPhoneNumberVerified = (customerData?: CustomerDataMinimized) => {\n const phoneNumberVerified =\n customerData?.addresses?.find((x) => x.typeOfAddress === 'TEL_MOB')?.addressVerified ||\n false;\n\n return phoneNumberVerified;\n};\n\nexport default {\n kimPhoneNumber,\n kimPhoneNumberVerified,\n};\n","export const autoVoucherStatusQueryKey = ['autoVoucherStatus'];\nexport const kimCustomerDataQueryKeys = {\n all: ['kimCustomerData'],\n defaultDataSet: () => [...kimCustomerDataQueryKeys.all],\n fullDatSet: () => [...kimCustomerDataQueryKeys.all, 'kimCustomerDataFull'],\n byEmail: (email: string) => [...kimCustomerDataQueryKeys.all, 'kimCustomerEmail', email],\n byApp: (params: { appToken?: string }) => [...kimCustomerDataQueryKeys.all, 'app', params],\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { appConfig } from '../../../../appConfig';\nimport kimProxyFlow from '../../../common/flow/kimProxyFlow';\nimport { consentSubscriptionsKeys } from '../../myCoopQueries';\n\nconst useConsentQuery = (enabled: boolean, neoId?: string) => {\n const mmid = appConfig.coopUserSettings.profile?.medmeraId?.toString();\n const email = appConfig.coopUserSettings.profile?.email?.toString();\n\n let queryKeyName: string[] = [];\n if (neoId) queryKeyName = consentSubscriptionsKeys.consentSubscriptionsByNeoId(neoId);\n else if (mmid) queryKeyName = consentSubscriptionsKeys.consentSubscriptionsByMmId(mmid);\n else if (email) queryKeyName = consentSubscriptionsKeys.consentSubscriptionsByEmail(email);\n\n const query = useQuery({\n queryKey: queryKeyName,\n queryFn: () => kimProxyFlow.getConsents(neoId),\n retry: 0,\n enabled: enabled && queryKeyName.length > 0 && !!queryKeyName,\n });\n\n return query;\n};\n\nexport default useConsentQuery;\n","import { useMutation } from '@tanstack/react-query';\n\nimport kimProxyFlow from '../../../common/flow/kimProxyFlow';\n\nexport const useSubscribeMutation = (onSubscribeSuccess?: () => void) => {\n const subscribeMutation = useMutation({\n mutationFn: (consent: string[]) => {\n return kimProxyFlow.subscribeConsents(consent);\n },\n onSuccess: () => {\n if (onSubscribeSuccess) {\n onSubscribeSuccess();\n }\n },\n });\n\n return subscribeMutation;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { appConfig } from '../../../../appConfig';\nimport { consentAdobeSubscriptionFlow } from '../../../common/flow/consentAdobeSubscriptionFlow';\nimport { getNeoId } from '../../../common/utils/neoIdUtils';\nimport { adobeConsentSubscriptionsKeys } from '../../myCoopQueries';\n\nconst useEmailSubscriptionQuery = (preferNeoId: boolean | undefined, enabled: boolean) => {\n const neoId = (preferNeoId && getNeoId()) || undefined;\n const mmid = appConfig.coopUserSettings.profile?.medmeraId?.toString();\n const email = appConfig.coopUserSettings.profile?.email?.toString();\n\n let queryKeyName: string[] = [];\n\n if (neoId) queryKeyName = adobeConsentSubscriptionsKeys.consentSubscriptionsByNeoId(neoId);\n else if (mmid) queryKeyName = adobeConsentSubscriptionsKeys.consentSubscriptionsByMmId(mmid);\n else if (email) queryKeyName = adobeConsentSubscriptionsKeys.consentSubscriptionsByEmail(email);\n\n const query = useQuery({\n queryKey: queryKeyName,\n queryFn: () => consentAdobeSubscriptionFlow.getSubscriptions(preferNeoId),\n retry: 0,\n enabled: enabled && queryKeyName.length > 0 && !!queryKeyName,\n });\n\n return query;\n};\n\nexport default useEmailSubscriptionQuery;\n","export const savedCartQueryKeys = {\n all: ['savedCarts'],\n byPaging: (page: number, pageSize: number) => [...savedCartQueryKeys.all, page, pageSize],\n};\n\nexport const subscriptionsQueryKeys = {\n all: ['subscriptions'],\n byId: (id: string) => [...subscriptionsQueryKeys.all, id],\n timeslots: (subId: string) => [...subscriptionsQueryKeys.all, 'subscriptionTimeslots', subId],\n klarnaSnippet: ['subscriptionsKlarnaSnippet'],\n};\n\nexport const orderReclamationsQueryKey = ['orderReclamations'];\nexport const deliveryAddressQueryKey = ['deliveryAddress'];\nexport const connectedCardsQueryKey = ['connectedCards'];\n\nexport const lastOrdersQueryKeys = {\n all: ['lastOrders'],\n byId: (id: string | undefined) => [...lastOrdersQueryKeys.all, id],\n};\n\nexport const myCoopProfileMenuKeys = {\n all: ['myCoopProfileMenu'],\n settingsPage: ['myCoopSettingsPage'],\n};\n\nexport const myCoopHouseholdKeys = {\n householdMembers: ['householdMembers'],\n};\n\nexport const associationNamesQueryKey = ['associationNames'];\n\nexport const householdMemberQueryKeys = {\n addHouseholdMember: (personalNumber: string) => ['addHouseholdMember', personalNumber],\n};\n\n// Poänguttag - Pointitem purchases\nexport const pointItemWithdrawalHistoryKeys = {\n all: ['pointItemWithdrawalHistory'],\n byDate: (from: Date, to: Date, page: number, size: number) => [\n ...pointItemWithdrawalHistoryKeys.all,\n from,\n to,\n page,\n size,\n ],\n};\n\n// Poänghistorik - point history\nexport const pointHistoryKeys = {\n all: ['pointHistory'],\n byDate: (from: Date, page: number, size: number) => [...pointHistoryKeys.all, from, page, size],\n};\n\n// Köphistorik - Money purchase history\nexport const purchaseHistoryKeys = {\n all: ['purchaseHistory'],\n byDate: (from: Date, page: number, size: number) => [\n ...purchaseHistoryKeys.all,\n from,\n page,\n size,\n ],\n};\n\nexport const consentSubscriptionsKeys = {\n all: ['consentSubscriptions'],\n consentSubscriptionsByNeoId: (neoId: string) => [...consentSubscriptionsKeys.all, neoId],\n consentSubscriptionsByAppViewToken: (AppViewToken: string) => [\n ...consentSubscriptionsKeys.all,\n AppViewToken,\n ],\n consentSubscriptionsByMmId: (mmId: string) => [...consentSubscriptionsKeys.all, mmId],\n consentSubscriptionsByEmail: (email: string) => [...consentSubscriptionsKeys.all, email],\n};\n\n// Remove later when bloomreach is in place\nexport const adobeConsentSubscriptionsKeys = {\n all: ['adobeConsentSubscriptions'],\n consentSubscriptionsByNeoId: (neoId: string) => [\n ...adobeConsentSubscriptionsKeys.all,\n `neo:${neoId}`,\n ],\n consentSubscriptionsByMmId: (mmId: string) => [...adobeConsentSubscriptionsKeys.all, mmId],\n consentSubscriptionsByEmail: (email: string) => [...adobeConsentSubscriptionsKeys.all, email],\n};\n\nexport const consentSubscribeToggleKeys = {\n consentSubscribeByNeoId: (neoId: string) => ['consentSubscribeNeo', neoId],\n consentSubscribeByMmId: (mmId: string) => ['consentSubscribe', mmId],\n consentUnsubscribeByNeoId: (neoId: string) => ['consentUnsubscribeNeo', neoId],\n consentUnsubscribeByMmId: (mmId: string) => ['consentUnsubscribe', mmId],\n};\n","export const IDS_REDIRECTREASON_QUERY = 'redirectReason';\nexport const IDS_REDIRECTREASON_QUERYVALUE_SIGNUP = 'signup';\nexport const IDS_RETURNURL_QUERY = 'returnUrl';\n","'use client';\n\nimport { CheckmarkIcon } from '@coop/icons';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport classNames from 'classnames';\nimport type * as React from 'react';\nimport { VisuallyHidden } from 'react-aria';\n\nimport { Icon } from '../Icon';\nimport styles from './Checkbox.module.scss';\n\ninterface StyledCheckboxProps extends CheckboxPrimitive.CheckboxProps {\n label: React.ReactNode;\n labelVisuallyHidden?: boolean; // hide for render, but still announce when using screen reader\n disabled?: boolean;\n validationMsg?: string;\n theme?: 'shadowed' | 'default';\n indicatorVerticalPosition?: 'top' | 'center';\n}\n\nconst StyledCheckbox = ({\n label,\n validationMsg,\n className,\n disabled = false,\n labelVisuallyHidden = false,\n theme = 'default',\n indicatorVerticalPosition: labeVerticalPosition = 'center',\n ...props\n}: StyledCheckboxProps) => {\n const classes = classNames(\n styles.Checkbox,\n className,\n theme === 'shadowed' && styles['Checkbox-shadowed'],\n disabled && styles['is-disabled'],\n validationMsg && styles['is-invalid'],\n );\n\n return (\n <div className={classes}>\n <CheckboxPrimitive.Root\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n className={classNames(\n styles.CheckboxButton,\n labeVerticalPosition === 'center' && styles['CheckboxButton--center'],\n labeVerticalPosition === 'top' && styles['CheckboxButton--top'],\n )}\n disabled={disabled}\n >\n {theme === 'shadowed' && <div className={classNames(styles.IndicatorShadow)} />}\n <CheckboxPrimitive.Indicator className={styles.Indicator}>\n <Icon icon={CheckmarkIcon} aria-hidden />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n <label htmlFor={props.id} className={classNames(styles.Label)}>\n {labelVisuallyHidden ? <VisuallyHidden>{label}</VisuallyHidden> : label}\n {validationMsg && <span className={styles.ValidationMessage}>{validationMsg}</span>}\n </label>\n </div>\n );\n};\n\nexport default StyledCheckbox;\n","// extracted by mini-css-extract-plugin\nexport default {\"Checkbox\":\"Y02YGszF\",\"is-disabled\":\"Q92zu7lA\",\"is-invalid\":\"pTNKREns\",\"CheckboxButton\":\"WTmRJxlo\",\"CheckboxButton--center\":\"ChXSMKxP\",\"CheckboxButton--top\":\"oWSBitfJ\",\"Indicator\":\"Kvm8CmPU\",\"Label\":\"xlvlfBnS\",\"ValidationMessage\":\"k4rpKaRx\",\"Checkbox-shadowed\":\"OgUQu9R2\",\"IndicatorShadow\":\"YbZlQr1_\"};"],"names":["useInitialCartFetch","dispatch","hasActiveStoreSelection","useEffect","coopUserSettings","isOrdererMunicipal","isShoppingForMunicipal","getCart","REDIRECT_REASON_QUERY_KEY","useRedirectReasonHandler","search","pathname","navigate","queryString","URLSearchParams","redirectReason","get","removeRedirectReasonQuery","accountRemoved","login","isAuthenticatedWithBankId","trackUserLogin","signup","isMedmeraCustomer","isCompany","connectMembership","console","error","delete","toString","replace","accessToken","neoId","errorInterceptors","createDirectApiClient","baseURL","coopSettings","serviceAccess","apimBaseUrl","headers","Authorization","btoa","params","baseUrl","emailSubscriptionErrorInterceptor","response","data","title","status","token","url","err","code","services","email","axiosClient","post","consentAdobeSubscriptionFlow","getSubscriptions","preferNeoId","undefined","isAuthenticated","appConfig","spaToken","getAuthToken","subscribe","unsubscribe","kimProxyApiUrl","Accept","kimProxyApiSubscriptionKey","kimProxyApiVersion","message","kimProxyDirectApi","serviceIds","put","identifiers","kimProxyFlow","getCustomerData","identity","getCustomerDataWithAppToken","appAuthToken","getCustomerDataFull","deleteCustomerDataCache","changeEmail","getConsents","getConsentWithErrorHandling","getConsentsWithAppToken","appToken","subscribeConsents","subscribeConsentsWithAppToken","unsubscribeConsent","service","serviceId","id","emailSubscriptionInteraction","clickText","event","type","click_text","close","sendEmailSubscriptionInteraction","confirm","skip","SESSION_STORAGE_NEO_IDENTITY","getNeoId","getParameterByName","storedNeoId","window","sessionStorage","getItem","setItem","MEMBER_CONSENT_QUERY","MEMBER_CONSENT_NEWSLETTERS_EMAIL","MEMBER_CONSENT_NEWSLETTERS_SMS","MEMBER_CONSENT_NEWSLETTER_STORE","ADOBE_MEMBER_CONSENT_NEWSLETTERS_EMAIL","useKimCustomerDataQuery","enabled","queryKey","defaultDataSet","queryFn","kimPhoneNumber","customerData","addresses","find","x","typeOfAddress","address","kimPhoneNumberVerified","addressVerified","autoVoucherStatusQueryKey","kimCustomerDataQueryKeys","all","fullDatSet","byEmail","byApp","mmid","profile","medmeraId","queryKeyName","consentSubscriptionsByNeoId","consentSubscriptionsByMmId","consentSubscriptionsByEmail","retry","length","useSubscribeMutation","onSubscribeSuccess","mutationFn","consent","onSuccess","savedCartQueryKeys","byPaging","page","pageSize","subscriptionsQueryKeys","byId","timeslots","subId","klarnaSnippet","orderReclamationsQueryKey","deliveryAddressQueryKey","connectedCardsQueryKey","lastOrdersQueryKeys","myCoopProfileMenuKeys","settingsPage","myCoopHouseholdKeys","householdMembers","associationNamesQueryKey","householdMemberQueryKeys","addHouseholdMember","personalNumber","pointItemWithdrawalHistoryKeys","byDate","from","to","size","pointHistoryKeys","purchaseHistoryKeys","consentSubscriptionsKeys","consentSubscriptionsByAppViewToken","AppViewToken","mmId","adobeConsentSubscriptionsKeys","IDS_REDIRECTREASON_QUERY","IDS_REDIRECTREASON_QUERYVALUE_SIGNUP","IDS_RETURNURL_QUERY","label","validationMsg","className","disabled","labelVisuallyHidden","theme","indicatorVerticalPosition","labeVerticalPosition","props","classes","Icon","icon","htmlFor","VisuallyHidden"],"sourceRoot":""}