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form/platform/packages/sanity-hooks/lib/hooks/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/useBaseLanguage/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/useOrganization/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/useOrganizationPrograms/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/useProgram/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/swr/useSettings/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/useSanityLocalization/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/hooks/useSanityOrganizationPrograms/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/SanityOrganizationProgramsSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/SanityProgramSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/sanityBaseLanguageSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/sanityLocalizationSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/sanityOrganizationSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/slices/sanitySettingsSlice/index.js","file:////home/runner/work/platform/platform/packages/sanity-hooks/lib/utils/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./useSanityOrganizationPrograms\"), exports);\n__exportStar(require(\"./useSanityLocalization\"), exports);\n__exportStar(require(\"./swr\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./useOrganization\"), exports);\n__exportStar(require(\"./useOrganizationPrograms\"), exports);\n__exportStar(require(\"./useBaseLanguage\"), exports);\n__exportStar(require(\"./useSettings\"), exports);\n__exportStar(require(\"./useProgram\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useBaseLanguage = void 0;\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\nconst swr_1 = require(\"@guider-global/swr\");\n/**\n * Custom hook for retrieving and managing base language data.\n *\n * This hook uses SWR (stale-while-revalidate) to fetch and cache base language information for a given locale.\n *\n * @param props - The properties required for the hook. See {@link IUseLanguageProps}.\n *\n * @returns An object containing the following properties:\n * - `isLoadingBaseLanguage`: `boolean` - Indicates if the base language data is currently loading.\n * - `isValidatingBaseLanguage`: `boolean` - Indicates if the base language data is being revalidated.\n * - `isErrorBaseLanguage`: `boolean` - Indicates if an error occurred while fetching the base language data.\n * - `errorBaseLanguage`: `Error | undefined` - Contains the error object if an error occurred during data fetching.\n * - `baseLanguage`: `Base_languages | undefined` - The base language object for the specified locale, or `undefined` if not found.\n * - `revalidateBaseLanguage`: `function` - Function to manually trigger revalidation of the base language data.\n *\n * @see {@link IUseBaseLanguageParams} for required query parameters.\n * @see {@link useGuiderSanitySWR} for details on the SWR hook used internally.\n *\n * @example\n * ```typescript\n * // Basic usage with required locale code\n * const { baseLanguage, isLoadingBaseLanguage } = useBaseLanguage({\n * localeCode: 'en-US',\n * });\n *\n * // Usage with SWR options\n * const { revalidateBaseLanguage } = useBaseLanguage({\n * localeCode: 'fr-FR',\n * options: { revalidateOnFocus: false },\n * });\n * ```\n */\nfunction useBaseLanguage(props) {\n var _a;\n const { options } = props, params = __rest(props, [\"options\"]);\n const { data, error, isLoading, isValidating, mutate } = (0, swr_1.useGuiderSanitySWR)({\n params: Object.assign(Object.assign({}, params), { localeCode: (_a = params.localeCode) !== null && _a !== void 0 ? _a : 'en_GB' }),\n query: sanity_api_1.baseLanguages,\n options,\n });\n return {\n isLoadingBaseLanguage: isLoading,\n isValidatingBaseLanguage: isValidating,\n isErrorBaseLanguage: Boolean(error),\n errorBaseLanguage: error,\n baseLanguage: data === null || data === void 0 ? void 0 : data[0],\n revalidateBaseLanguage: mutate,\n };\n}\nexports.useBaseLanguage = useBaseLanguage;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useOrganization = void 0;\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\nconst swr_1 = require(\"@guider-global/swr\");\n/**\n * Custom hook for fetching and managing organization data.\n *\n * This hook uses SWR (stale-while-revalidate) to fetch organization data from Sanity CMS\n * based on the provided organization slug and optional parameters.\n *\n * @param props - The properties required for the hook. See {@link IUseOrganizationProps}.\n *\n * @returns An object containing the following properties:\n * - `isLoadingOrganization`: `boolean` - Indicates if the organization data is currently loading.\n * - `isValidatingOrganization`: `boolean` - Indicates if the organization data is being revalidated.\n * - `isErrorOrganization`: `boolean` - Indicates if an error occurred while fetching organization data.\n * - `errorOrganization`: `Error | undefined` - Contains the error object if an error occurred during data fetching.\n * - `organization`: `IOrganizationBySlugResponse | undefined` - The fetched organization data.\n * - `revalidateOrganization`: `function` - Function to manually trigger revalidation of the organization data.\n *\n * @see {@link IUseOrganizationProps} for the properties required.\n * @see {@link useGuiderSanitySWR} for details on the SWR hook used internally.\n *\n * @example\n * ```typescript\n * // Basic usage with required organization slug\n * const { organization, isLoadingOrganization } = useOrganization({\n * organizationSlug: 'example-org',\n * });\n *\n * // Usage with locale code and show hidden profile data\n * const { organization } = useOrganization({\n * organizationSlug: 'example-org',\n * localeCode: 'en-US',\n * showHiddenProfileData: true,\n * });\n *\n * // Usage with additional SWR options\n * const { revalidateOrganization } = useOrganization({\n * organizationSlug: 'example-org',\n * options: { revalidateOnFocus: false },\n * });\n * ```\n */\nfunction useOrganization(props) {\n var _a, _b;\n const { options } = props, params = __rest(props, [\"options\"]);\n const { data, error, isLoading, isValidating, mutate } = (0, swr_1.useGuiderSanitySWR)({\n params: Object.assign(Object.assign({}, params), { showHiddenProfileData: (_a = params.showHiddenProfileData) !== null && _a !== void 0 ? _a : false, localeCode: (_b = params.localeCode) !== null && _b !== void 0 ? _b : 'en_GB' }),\n query: sanity_api_1.organizationBySlug,\n options,\n });\n return {\n isLoadingOrganization: isLoading,\n isValidatingOrganization: isValidating,\n isErrorOrganization: Boolean(error),\n errorOrganization: error,\n organization: data === null || data === void 0 ? void 0 : data.at(0),\n revalidateOrganization: mutate,\n };\n}\nexports.useOrganization = useOrganization;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useOrganizationPrograms = void 0;\nconst front_end_utils_1 = require(\"@guider-global/front-end-utils\");\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\nconst swr_1 = require(\"@guider-global/swr\");\n/**\n * Custom hook for retrieving and managing an organization's programs.\n *\n * This hook uses SWR (stale-while-revalidate) to fetch and cache a list of programs associated with an organization,\n * supporting additional functions to retrieve specific program information or authorized programs for a user.\n *\n * @param props - The properties for the hook. See {@link IUseOrganizationProgramsProps}.\n *\n * @returns An object with the following properties:\n * - `isLoadingPrograms` - `boolean`: Indicates if the programs data is currently loading.\n * - `isValidatingPrograms` - `boolean`: Indicates if the programs data is being revalidated.\n * - `isErrorPrograms` - `boolean`: Indicates if an error occurred while fetching programs data.\n * - `errorPrograms` - `Error | undefined`: Contains the error object if an error occurred during data fetching.\n * - `programs` - `Program[]`: Sorted list of programs associated with the organization.\n * - `revalidatePrograms` - `function`: Function to manually trigger revalidation of the programs data.\n * - `getAuthorizedPrograms` - `function`: Retrieves a list of authorized programs based on user memberships and profile fields.\n * - `getProgram` - `function`: Finds a specific program by its slug from the fetched programs list.\n *\n * @see {@link IUseOrganizationProgramsProps} for required properties.\n * @see {@link useGuiderSanitySWR} for details on the SWR hook used internally.\n *\n * @example\n * ```typescript\n * // Basic usage with required organization slug\n * const { programs, isLoadingPrograms, getProgram } = useOrganizationPrograms({\n * organizationSlug: 'example-org',\n * });\n *\n * // Usage with locale and SWR options\n * const { getAuthorizedPrograms } = useOrganizationPrograms({\n * organizationSlug: 'example-org',\n * localeCode: 'en-US',\n * options: { revalidateOnFocus: false },\n * });\n * ```\n */\nfunction useOrganizationPrograms(_a) {\n var _b;\n var { options } = _a, params = __rest(_a, [\"options\"]);\n const { data, error, isLoading, isValidating, mutate } = (0, swr_1.useGuiderSanitySWR)({\n params: Object.assign(Object.assign({}, params), { localeCode: (_b = params.localeCode) !== null && _b !== void 0 ? _b : 'en_GB' }),\n query: sanity_api_1.programsByOrganizationSlug,\n options,\n });\n const sortedPrograms = data === null || data === void 0 ? void 0 : data.slice().sort((a, b) => {\n var _a, _b, _c, _d;\n const sortOrderA = (_b = (_a = a.program_details) === null || _a === void 0 ? void 0 : _a.priority) !== null && _b !== void 0 ? _b : Infinity;\n const sortOrderB = (_d = (_c = b.program_details) === null || _c === void 0 ? void 0 : _c.priority) !== null && _d !== void 0 ? _d : Infinity;\n return sortOrderA - sortOrderB;\n });\n /**\n * Filters and retrieves the list of programs that the user is authorized to access.\n *\n * @param profileOrganizationFields - Optional custom fields from the user's profile used to determine program authorization.\n * @param memberships - Optional array of user memberships containing program slugs.\n * @returns An array of programs authorized for the user, including both user-specific and organization-authorized programs.\n */\n function getAuthorizedPrograms(profileOrganizationFields, memberships) {\n var _a;\n if (!data)\n return [];\n const userProgramSlugs = (_a = memberships === null || memberships === void 0 ? void 0 : memberships.map((membership) => membership.programSlug)) !== null && _a !== void 0 ? _a : [];\n const userPrograms = data.filter((program) => userProgramSlugs.includes(program.metadata.id.current));\n const authorizedPrograms = (0, front_end_utils_1.getAuthorizedProgramsList)({\n programs: data,\n profileOrganizationFields,\n }).filter((program) => !userProgramSlugs.includes(program.metadata.id.current));\n return [...userPrograms, ...authorizedPrograms];\n }\n /**\n * Finds and retrieves a specific program by its slug.\n *\n * @param programSlug - The unique slug identifier of the program to retrieve.\n * @returns The program matching the given slug, or `undefined` if no match is found.\n */\n function getProgram(programSlug) {\n if (!data)\n return undefined;\n return data.find((program) => program.metadata.id.current === programSlug);\n }\n return {\n isLoadingPrograms: isLoading,\n isValidatingPrograms: isValidating,\n isErrorPrograms: Boolean(error),\n errorPrograms: error,\n programs: sortedPrograms !== null && sortedPrograms !== void 0 ? sortedPrograms : [],\n revalidatePrograms: mutate,\n getAuthorizedPrograms,\n getProgram,\n };\n}\nexports.useOrganizationPrograms = useOrganizationPrograms;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useProgram = void 0;\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\nconst swr_1 = require(\"@guider-global/swr\");\n/**\n * Custom hook for retrieving and managing program data based on a slug.\n *\n * This hook uses SWR (stale-while-revalidate) to fetch program data from Sanity's CMS\n * based on the provided program slug and SWR options.\n *\n * @param options - Optional SWR settings for custom cache and revalidation control, as defined in {@link SanitySWROptions}.\n * @param params - Query parameters, such as `programSlug`, for fetching the program data. See {@link IUseProgramParams}.\n *\n * @returns An object with the following properties:\n * - `isLoadingProgram` - `boolean`: Indicates if the program data is currently loading.\n * - `isValidatingProgram` - `boolean`: Indicates if the program data is being revalidated.\n * - `isErrorProgram` - `boolean`: Indicates if an error occurred while fetching program data.\n * - `errorProgram` - `Error | undefined`: Contains the error object if an error occurred during data fetching.\n * - `program` - `Program | undefined`: The retrieved program data if loaded successfully.\n * - `mutateProgram` - `function`: Function to manually trigger revalidation of the program data.\n *\n * @see {@link IUseProgramParams} for required query parameters.\n * @see {@link useGuiderSanitySWR} for details on the SWR hook used internally.\n *\n * @example\n * ```typescript\n * // Basic usage with only the required program slug\n * const { program, isLoadingProgram, isErrorProgram } = useProgram({ programSlug: 'example-slug' });\n *\n * // Usage with additional SWR options\n * const { program, mutateProgram } = useProgram({\n * programSlug: 'example-slug',\n * localeCode: 'en-US',\n * options: {\n * revalidateOnFocus: false,\n * },\n * });\n * ```\n */\nfunction useProgram(_a) {\n var _b;\n var { options } = _a, params = __rest(_a, [\"options\"]);\n const { data, error, isLoading, isValidating, mutate } = (0, swr_1.useGuiderSanitySWR)({\n params: Object.assign(Object.assign({}, params), { localeCode: (_b = params.localeCode) !== null && _b !== void 0 ? _b : 'en_GB' }),\n query: sanity_api_1.programBySlug,\n options,\n });\n return {\n isLoadingProgram: isLoading,\n isValidatingProgram: isValidating,\n isErrorProgram: Boolean(error),\n errorProgram: error,\n program: data,\n mutateProgram: mutate,\n };\n}\nexports.useProgram = useProgram;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useSettings = void 0;\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\nconst swr_1 = require(\"@guider-global/swr\");\n/**\n * Custom hook for retrieving and managing localized settings data.\n *\n * This hook uses SWR (stale-while-revalidate) to fetch settings from Sanity's CMS\n * based on the provided locale code and SWR options.\n *\n * @param options - Optional SWR settings for custom cache and revalidation control, as defined in {@link SanitySWROptions}.\n * @param params - Query parameters, such as `localeCode`, for fetching localized settings.\n *\n * @returns An object with the following properties:\n * - `isLoadingSettings` - `boolean`: Indicates if the settings data is currently loading.\n * - `isValidatingSettings` - `boolean`: Indicates if the settings data is being revalidated.\n * - `isErrorSettings` - `boolean`: Indicates if an error occurred while fetching settings data.\n * - `errorSettings` - `Error | undefined`: Contains the error object if an error occurred during data fetching.\n * - `settings` - `SanitySettings | undefined`: The retrieved settings data if loaded successfully.\n * - `mutateSettings` - `function`: Function to manually trigger revalidation of settings data.\n *\n * @see {@link IUseSettingsParams} for required query parameters.\n * @see {@link useGuiderSanitySWR} for details on the SWR hook used internally.\n *\n * @example\n * ```typescript\n * // Basic usage with a specified locale\n * const { settings, isLoadingSettings, isErrorSettings } = useSettings({ localeCode: 'en-US' });\n *\n * // Usage with additional SWR options\n * const { settings, mutateSettings } = useSettings({\n * localeCode: 'fr-FR',\n * options: {\n * revalidateOnFocus: false,\n * },\n * });\n * ```\n */\nfunction useSettings(_a) {\n var _b;\n var { options } = _a, params = __rest(_a, [\"options\"]);\n const { data, error, isLoading, isValidating, mutate, } = (0, swr_1.useGuiderSanitySWR)({\n params: Object.assign(Object.assign({}, params), { localeCode: (_b = params.localeCode) !== null && _b !== void 0 ? _b : 'en_GB' }),\n query: sanity_api_1.settings,\n options,\n });\n return {\n isLoadingSettings: isLoading,\n isValidatingSettings: isValidating,\n isErrorSettings: Boolean(error),\n errorSettings: error,\n settings: data === null || data === void 0 ? void 0 : data.at(0),\n mutateSettings: mutate,\n };\n}\nexports.useSettings = useSettings;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useSanityLocalization = void 0;\nconst front_end_utils_1 = require(\"@guider-global/front-end-utils\");\nconst hooks_1 = require(\"../../hooks\");\nconst react_1 = require(\"react\");\nconst react_redux_1 = require(\"react-redux\");\nconst slices_1 = require(\"../../slices\");\nfunction useSanityLocalization(organizationSlug, sessionStorageKeys, onLanguageChange, isLoading, lastUsedLanguage) {\n var _a;\n // Redux\n const useAppSelector = react_redux_1.useSelector;\n const sanityLocalization = useAppSelector((state) => state.sanityLocalization);\n const localeCode = sanityLocalization === null || sanityLocalization === void 0 ? void 0 : sanityLocalization.localeCode;\n const dispatch = (0, react_redux_1.useDispatch)();\n const { setLocaleCode } = slices_1.sanityLocalizationSlice.actions;\n // - Session Storage\n const [sessionLocaleCode, setSessionLocaleCode] = (0, front_end_utils_1.useSessionStorage)(sessionStorageKeys.LOCALE_CODE);\n // - Sanity BaseLanguages\n const { revalidateBaseLanguage, baseLanguage } = (0, hooks_1.useBaseLanguage)({\n localeCode,\n });\n const baseLanguageLocaleCode = (_a = baseLanguage === null || baseLanguage === void 0 ? void 0 : baseLanguage.locale_code) === null || _a === void 0 ? void 0 : _a.current;\n const textDirection = baseLanguage === null || baseLanguage === void 0 ? void 0 : baseLanguage.text_direction;\n // - Sanity Organization\n // - Sanity Programs\n const { revalidatePrograms } = (0, hooks_1.useOrganizationPrograms)({\n organizationSlug,\n localeCode,\n });\n const { revalidateOrganization } = (0, hooks_1.useOrganization)({\n organizationSlug,\n });\n const handleLanguageChange = (0, react_1.useCallback)((localeCode, textDirection) => __awaiter(this, void 0, void 0, function* () {\n dispatch(setLocaleCode(localeCode));\n revalidateBaseLanguage();\n revalidateOrganization();\n revalidatePrograms();\n setSessionLocaleCode(localeCode);\n onLanguageChange(localeCode, textDirection);\n }), [\n dispatch,\n onLanguageChange,\n revalidateBaseLanguage,\n revalidateOrganization,\n revalidatePrograms,\n setLocaleCode,\n setSessionLocaleCode,\n ]);\n (0, react_1.useEffect)(() => {\n if (localeCode || isLoading)\n return;\n if (sessionLocaleCode && sessionLocaleCode !== localeCode) {\n dispatch(setLocaleCode(sessionLocaleCode));\n revalidateBaseLanguage();\n revalidatePrograms();\n revalidateOrganization();\n return;\n }\n if (lastUsedLanguage && !sessionLocaleCode) {\n dispatch(setLocaleCode(lastUsedLanguage));\n revalidateBaseLanguage();\n revalidatePrograms();\n revalidateOrganization();\n return;\n }\n if (!lastUsedLanguage &&\n baseLanguageLocaleCode &&\n baseLanguageLocaleCode !== localeCode) {\n dispatch(setLocaleCode(baseLanguageLocaleCode));\n }\n }, [\n baseLanguageLocaleCode,\n dispatch,\n isLoading,\n lastUsedLanguage,\n localeCode,\n organizationSlug,\n revalidateBaseLanguage,\n revalidateOrganization,\n revalidatePrograms,\n sessionLocaleCode,\n setLocaleCode,\n ]);\n return {\n localeCode,\n textDirection,\n handleLanguageChange,\n };\n}\nexports.useSanityLocalization = useSanityLocalization;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useSanityOrganizationPrograms = void 0;\nconst react_1 = require(\"react\");\nconst react_redux_1 = require(\"react-redux\");\nconst slices_1 = require(\"../../slices\");\nconst front_end_utils_1 = require(\"@guider-global/front-end-utils\");\nconst sanity_api_1 = require(\"@guider-global/sanity-api\");\n/**\n * @deprecated\n * If organizationId is undefined, hook will only return cached programs from redux\n * Use useOrganizationPrograms instead\n */\nfunction useSanityOrganizationPrograms({ organizationSlug, getSilently = false, localeCode, }) {\n const dispatch = (0, react_redux_1.useDispatch)();\n const { setLoading, setErrors, setSuccess, setPrograms } = slices_1.sanityOrganizationProgramsSlice.actions;\n const useAppSelector = react_redux_1.useSelector;\n const { programs, success, loading, errors, error, } = useAppSelector((state) => state.sanityOrganizationPrograms);\n const handleGetPrograms = (0, react_1.useCallback)((organizationSlug, localeCode) => __awaiter(this, void 0, void 0, function* () {\n try {\n dispatch(setLoading(true));\n const programs = yield (0, sanity_api_1.getProgramsByOrganizationSlug)({\n organizationSlug,\n localeCode,\n });\n dispatch(setPrograms(programs));\n dispatch(setSuccess(true));\n return {\n programs,\n loading,\n errors,\n };\n }\n catch (err) {\n if (err instanceof Error) {\n dispatch(setErrors([{ message: err.message, code: 'SanityProgram' }]));\n }\n else {\n dispatch(setErrors([\n {\n message: 'Unknown error occurred getting organization programs',\n code: 'SanityProgram',\n },\n ]));\n }\n return {\n programs: undefined,\n loading,\n errors,\n };\n }\n finally {\n dispatch(setLoading(false));\n }\n }), [dispatch, errors, loading, setErrors, setLoading, setPrograms, setSuccess]);\n (0, react_1.useEffect)(() => {\n if (getSilently && !loading && !success && !error) {\n if (!organizationSlug || !localeCode)\n return;\n handleGetPrograms(organizationSlug, localeCode);\n }\n }, [\n error,\n getSilently,\n handleGetPrograms,\n loading,\n localeCode,\n organizationSlug,\n success,\n ]);\n function isLoadingSanityPrograms() {\n return loading;\n }\n function isErrorSanityPrograms() {\n return error;\n }\n function isSuccessSanityPrograms() {\n return success;\n }\n function getPrograms() {\n return programs;\n }\n function getProgram(programSlug) {\n return programs.find((program) => programSlug === program.metadata.id.current);\n }\n function getAuthorizedPrograms(profileOrganizationFields, memberships) {\n var _a;\n if (!programs) {\n return [];\n }\n const userProgramSlugs = (_a = memberships === null || memberships === void 0 ? void 0 : memberships.map((membership) => membership.programSlug)) !== null && _a !== void 0 ? _a : [];\n const userPrograms = programs.filter((program) => userProgramSlugs.includes(program.metadata.id.current));\n const authorizedPrograms = (0, front_end_utils_1.getAuthorizedProgramsList)({\n programs,\n profileOrganizationFields,\n }).filter((program) => !userProgramSlugs.includes(program.metadata.id.current));\n return [...userPrograms, ...authorizedPrograms];\n }\n function getErrorsSanityPrograms() {\n return errors;\n }\n function refetchPrograms(organizationId, localeCode) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield handleGetPrograms(organizationId, localeCode);\n });\n }\n return {\n isLoadingSanityPrograms,\n isErrorSanityPrograms,\n isSuccessSanityPrograms,\n getErrorsSanityPrograms,\n getPrograms,\n getProgram,\n getAuthorizedPrograms,\n refetchPrograms,\n };\n}\nexports.useSanityOrganizationPrograms = useSanityOrganizationPrograms;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./hooks\"), exports);\n__exportStar(require(\"./slices\"), exports);\n__exportStar(require(\"./utils\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n// external\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanityOrganizationProgramsSlice = void 0;\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nconst initialSanityOrganizationProgramsState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n programs: [],\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanityOrganizationPrograms',\n initialState: initialSanityOrganizationProgramsState,\n reducers: {\n setPrograms(state, { payload }) {\n return Object.assign(Object.assign({}, state), { programs: [...payload] });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanityOrganizationProgramsSlice = {\n slice,\n initialState: initialSanityOrganizationProgramsState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n// external\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanityProgramSlice = void 0;\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nconst initialSanityProgramState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n program: undefined,\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanityProgram',\n initialState: initialSanityProgramState,\n reducers: {\n setProgram(state, { payload }) {\n return Object.assign(Object.assign({}, state), { program: payload });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanityProgramSlice = {\n slice,\n initialState: initialSanityProgramState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./sanityBaseLanguageSlice\"), exports);\n__exportStar(require(\"./sanityOrganizationSlice\"), exports);\n__exportStar(require(\"./SanityOrganizationProgramsSlice\"), exports);\n__exportStar(require(\"./sanityLocalizationSlice\"), exports);\n__exportStar(require(\"./sanitySettingsSlice\"), exports);\n__exportStar(require(\"./SanityProgramSlice\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n/* eslint-disable camelcase */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanityBaseLanguageSlice = exports.initialBaseLanguageState = void 0;\n// external\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nexports.initialBaseLanguageState = {\n _id: '',\n _type: 'base_languages',\n _createdAt: '',\n _updatedAt: '',\n _rev: '',\n translating: false,\n display_name: '',\n country_flag: {\n _type: 'emoji',\n name: undefined,\n names: undefined,\n skin: undefined,\n unified: undefined,\n unifiedWithoutSkinTone: undefined,\n native: undefined,\n imageUrl: undefined,\n },\n language_code: '',\n country_code: '',\n locale_code: {\n _type: 'slug',\n current: undefined,\n source: undefined,\n },\n time_format: '12-hour',\n date_format: 'dd-mm-yyyy',\n text_direction: 'ltr',\n globals: {\n common: undefined,\n goals: undefined,\n relationships: undefined,\n sessions: undefined,\n programs: undefined,\n errors: undefined,\n },\n generic_errors: {\n none_select_label: undefined,\n no_internet_connection: undefined,\n no_search_results_found_label: undefined,\n partial_translation_notice: undefined,\n not_found_404_error: undefined,\n },\n dashboard: {\n title: undefined,\n onboarding: undefined,\n notifications: undefined,\n leaderboard: undefined,\n open_matching: undefined,\n program_memberships: undefined,\n resources: undefined,\n },\n profile_fields: {\n first_name_input_label: undefined,\n last_name_input_label: undefined,\n pronouns_input_label: undefined,\n date_of_birth_input_label: undefined,\n town_or_city_input_label: undefined,\n job_title_input_label: undefined,\n phone_number_input_label: undefined,\n gender: undefined,\n country: undefined,\n email: undefined,\n password: undefined,\n picture: undefined,\n linkedin_url: undefined,\n },\n settings: {\n title: undefined,\n description: undefined,\n profile: undefined,\n account: undefined,\n communication: undefined,\n integrations: undefined,\n availability: undefined,\n reviews: undefined,\n },\n navigation: {\n dashboard_link_label: undefined,\n programs_link_label: undefined,\n relationships_link_label: undefined,\n learning_center_link_label: undefined,\n support_link_label: undefined,\n other_resources_link_label: undefined,\n goals_link_label: undefined,\n register_button_label: undefined,\n login_button_label: undefined,\n logout_successful_alert_message: undefined,\n guider_admin_label: undefined,\n user_action_menu: undefined,\n },\n notifications: {\n individual_relationships: undefined,\n group_relationships: undefined,\n },\n metrics: {\n title: undefined,\n device_not_supported: undefined,\n },\n legal_notices: {\n i_agree_to_legals_label: undefined,\n company_information: undefined,\n privacy_policy: undefined,\n cookie_policy: undefined,\n terms_of_service: undefined,\n },\n select_organization: {\n select_organization_title_input: undefined,\n last_accessed_on_label: undefined,\n registered_on_label: undefined,\n },\n onboarding: {\n common: undefined,\n profile: undefined,\n picture: undefined,\n new_profile_fields: undefined,\n },\n programs: {\n program_registration: undefined,\n programs_list: undefined,\n manage_guide_profile: undefined,\n },\n learning_hub: {\n content_types: undefined,\n },\n relationships: {\n relationship_actions: undefined,\n no_relationships_state: undefined,\n relationships_list: undefined,\n chat: undefined,\n relationships_header: undefined,\n archived_relationship_view: undefined,\n view_profile_modal: undefined,\n goals: undefined,\n sessions: undefined,\n session_history: undefined,\n notes: undefined,\n groups: undefined,\n review_guide: undefined,\n },\n registration: {\n common: undefined,\n multitenant_SSO: undefined,\n local_accounts: undefined,\n sso_and_local_accounts: undefined,\n open_matching: undefined,\n },\n surveys: {\n feedback_requested_modal: undefined,\n response_submitted_modal: undefined,\n },\n profile_card: {\n match_percentage: undefined,\n matched_on_skills_label: undefined,\n matched_on_goals_label: undefined,\n reviews_button_label: undefined,\n reviews_singular: undefined,\n reviews_plural: undefined,\n no_reviews_yet_label: undefined,\n spots_left_label: undefined,\n spot_singular: undefined,\n spots_plural: undefined,\n bio_title: undefined,\n },\n};\nconst initialState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n baseLanguage: exports.initialBaseLanguageState,\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanityBaseLanguage',\n initialState,\n reducers: {\n setBaseLanguages(state, { payload }) {\n return Object.assign(Object.assign({}, state), { baseLanguage: Object.assign({}, payload) });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanityBaseLanguageSlice = {\n slice,\n initialState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n/* eslint-disable camelcase */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanityLocalizationSlice = void 0;\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nconst initialState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n localeCode: undefined,\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanityLocalization',\n initialState,\n reducers: {\n setLocaleCode(state, { payload }) {\n return Object.assign(Object.assign({}, state), { localeCode: payload });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanityLocalizationSlice = {\n slice,\n initialState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n/* eslint-disable camelcase */\n// external\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanityOrganizationSlice = void 0;\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nconst shared_types_1 = require(\"@guider-global/shared-types\");\nrequire(\"immer\");\nconst sanityBaseLanguageSlice_1 = require(\"../../slices/sanityBaseLanguageSlice\");\nconst initialSanityImage = {\n _type: 'image',\n asset: {\n _ref: '',\n _type: 'reference',\n },\n};\nconst initialSanityOrganizationState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n organization: {\n _id: '',\n organizationLanguages: [],\n deployment_status: {\n subdomain_deployment_status: {\n status_type: '',\n subdomain_status: '',\n auth0_status: '',\n },\n },\n access: {\n local_account_registration: false,\n },\n basic_info: {\n database_region: '',\n default_user_language: sanityBaseLanguageSlice_1.initialBaseLanguageState,\n limited_licenses: false,\n number_of_licenses: undefined,\n name: '',\n subdomain: {\n current: '',\n },\n auth0_organization_id: '',\n other_languages: undefined,\n },\n white_label: {\n additional_agreements: [],\n color_palette_config: {\n color_palette_enabled: false,\n color_palette: undefined,\n },\n logo_size: shared_types_1.SanityOrganizationWhiteLabelLogoSize.Default,\n registration_logo: initialSanityImage,\n additional_nav_links: [],\n integrations: {\n video_conferencing: {\n active_directory_teams: false,\n guider_video: false,\n },\n calendar: {\n active_directory_outlook_calendar: false,\n },\n },\n logo: initialSanityImage,\n auth0_logo: initialSanityImage,\n },\n landing_page: {\n enable_landing_page: false,\n hero: {\n dynamic_title: false,\n title: undefined,\n title_prefix: undefined,\n dynamic_list: undefined,\n title_suffix: undefined,\n subtitle: '',\n button_1_label: '',\n button_2_label: '',\n button_2_enable: false,\n },\n content: [],\n },\n skills: {\n soft_skills: [],\n hard_skills: [],\n },\n learning_hub: {\n navigation_label: '',\n welcome_message: {\n title: '',\n subtitle: '',\n },\n layout: [],\n },\n dashboard_page: {\n leaderboard: false,\n background_color: '',\n top_resources: {\n content_selection_type: '',\n content_selection: [],\n },\n },\n programs: {\n enable_programsV2: false,\n },\n personal_details: {\n enable_bio: true,\n gender: {\n enabled: true,\n required: true,\n },\n town_or_city: {\n enabled: true,\n required: true,\n },\n country: {\n enabled: true,\n required: true,\n },\n job_title: {\n enabled: true,\n required: true,\n },\n date_of_birth: { enabled: true, required: true },\n pronouns: {\n enabled: true,\n required: true,\n },\n linkedin_url: {\n enabled: true,\n required: true,\n },\n phone_number: {\n enabled: true,\n required: true,\n },\n },\n profile_fields: [],\n goal_categories: {\n guide_max_goals: undefined,\n trainee_max_goals: undefined,\n categories: [],\n select_goals_custom_description: '',\n },\n metrics: [],\n availabilities: {\n start_time: '',\n end_time: '',\n },\n open_matching: {\n enable_open_matching: false,\n program_type: {\n program_type_slug: '',\n program_type_text: {},\n },\n details: {\n title: '',\n description: '',\n image: initialSanityImage,\n },\n config: {\n enable_guide_matching: false,\n guide_relationship_limit: undefined,\n trainee_relationship_limit: undefined,\n number_of_profiles_to_display: undefined,\n matching_rules: [],\n },\n },\n },\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanityOrganization',\n initialState: initialSanityOrganizationState,\n reducers: {\n setOrganization(state, { payload }) {\n return Object.assign(Object.assign({}, state), { organization: Object.assign({}, payload) });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanityOrganizationSlice = {\n slice,\n initialState: initialSanityOrganizationState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n/* eslint-disable camelcase */\n// external\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanitySettingsSlice = void 0;\nrequire(\"immer\");\nconst redux_axios_hooks_1 = require(\"@guider-global/redux-axios-hooks\");\nconst initialSanityColor = {\n alpha: 0,\n hex: '',\n hsl: {\n _type: '',\n a: 0,\n h: 0,\n l: 0,\n s: 0,\n },\n hsv: {\n _type: '',\n a: 0,\n h: 0,\n s: 0,\n v: 0,\n },\n rgb: {\n _type: '',\n a: 0,\n b: 0,\n g: 0,\n r: 0,\n },\n};\nconst initialSanityImage = {\n _type: 'image',\n asset: {\n _ref: '',\n _type: 'reference',\n },\n};\nconst initialSanityFile = {\n _type: 'file',\n asset: {\n _ref: '',\n _type: 'reference',\n },\n};\nconst initialSanitySettingsState = {\n loading: false,\n success: false,\n error: false,\n errors: [],\n settings: {\n metadata: {\n generic: {\n application_name: '',\n title: '',\n description: '',\n favicon: initialSanityFile,\n favicon_16x16: initialSanityImage,\n favicon_32x32: initialSanityImage,\n theme_color_fallback: initialSanityColor,\n },\n open_graph: {\n title: '',\n description: '',\n image: initialSanityImage,\n },\n apple: {\n mobile_web_app_title: '',\n apple_touch_icon: initialSanityImage,\n mask_icon: initialSanityImage,\n mask_icon_color: initialSanityColor,\n },\n microsoft: {\n ms_application_tile_color: initialSanityColor,\n },\n },\n static_media: {\n common: {\n error_404: initialSanityImage,\n footer_logo: initialSanityImage,\n },\n landing_page: {\n quotation_mark: initialSanityImage,\n organization_hero_image: initialSanityImage,\n },\n integrations: {\n active_directory_outlook_calendar: initialSanityImage,\n active_directory_teams: initialSanityImage,\n hubspot_logo: initialSanityImage,\n outlook_logo: initialSanityImage,\n slack_logo: initialSanityImage,\n degreed_logo: initialSanityImage,\n docebo_logo: initialSanityImage,\n enterprise_sso_logo: initialSanityImage,\n csv_import_logo: initialSanityImage,\n learning360_logo: initialSanityImage,\n },\n relationships: {\n empty_state_illustration: initialSanityImage,\n default_user_avatar: initialSanityImage,\n relationship_created: initialSanityImage,\n },\n leaderboard: {\n gold: initialSanityImage,\n silver: initialSanityImage,\n bronze: initialSanityImage,\n },\n },\n guider_surveys: {\n log_session_survey: {\n title: '',\n disclaimer: '',\n days_since_last_session_scheduled_logged: 0,\n trainee_question_title: '',\n guide_question_title: '',\n responses: {\n today: '',\n this_week: '',\n this_month: '',\n last_month: '',\n no: '',\n },\n thank_you_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n },\n guide_feedback_survey: {\n title: '',\n disclaimer: '',\n days_since_relationship_was_created: 0,\n trainee_rating_question_title: '',\n trainee_feedback_question_title: '',\n response_placeholder: '',\n thank_you_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n },\n goals_survey: {\n title: '',\n disclaimer: '',\n days_since_relationship_was_created: 0,\n trainee_question_title: '',\n guide_question_title: '',\n responses: {\n fully: '',\n partially: '',\n not_at_all: '',\n goals_have_changed: '',\n },\n thank_you_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n },\n skills_survey: {\n title: '',\n disclaimer: '',\n days_since_relationship_was_created: 0,\n trainee_question_title: '',\n guide_question_title: '',\n responses: {\n vastly_improved: '',\n somewhat_improved: '',\n not_improved: '',\n not_working_on_this_skill_at_the_moment: '',\n },\n thank_you_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n },\n survey_not_found_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n survey_already_submitted_state: {\n title: '',\n description: '',\n return_to_the_platform_button_label: '',\n },\n },\n },\n};\nconst slice = (0, redux_axios_hooks_1.createReduxSlice)({\n name: 'sanitySettings',\n initialState: initialSanitySettingsState,\n reducers: {\n setSettings(state, { payload }) {\n return Object.assign(Object.assign({}, state), { settings: Object.assign({}, payload) });\n },\n },\n});\nconst { actions, reducer } = slice;\nconst selector = (state) => state;\nexports.sanitySettingsSlice = {\n slice,\n initialState: initialSanitySettingsState,\n actions,\n reducer,\n selector,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.imageBuilder = exports.buildSanityImageUrl = exports.buildSanityFileUrl = void 0;\nvar sanity_api_1 = require(\"@guider-global/sanity-api\");\nObject.defineProperty(exports, \"buildSanityFileUrl\", { enumerable: true, get: function () { return sanity_api_1.buildSanityFileUrl; } });\nObject.defineProperty(exports, \"buildSanityImageUrl\", { enumerable: true, get: function () { return sanity_api_1.buildSanityImageUrl; } });\nObject.defineProperty(exports, \"imageBuilder\", { enumerable: true, get: function () { return sanity_api_1.imageBuilder; } });\n//# sourceMappingURL=index.js.map"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","__rest","s","e","t","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","useBaseLanguage","sanity_api_1","swr_1","props","_a","options","params","data","error","isLoading","isValidating","mutate","useGuiderSanitySWR","assign","localeCode","query","baseLanguages","isLoadingBaseLanguage","isValidatingBaseLanguage","isErrorBaseLanguage","Boolean","errorBaseLanguage","baseLanguage","revalidateBaseLanguage","useOrganization","_b","showHiddenProfileData","organizationBySlug","isLoadingOrganization","isValidatingOrganization","isErrorOrganization","errorOrganization","organization","at","revalidateOrganization","useOrganizationPrograms","front_end_utils_1","programsByOrganizationSlug","sortedPrograms","slice","sort","a","b","_c","_d","program_details","priority","Infinity","isLoadingPrograms","isValidatingPrograms","isErrorPrograms","errorPrograms","programs","revalidatePrograms","getAuthorizedPrograms","profileOrganizationFields","memberships","userProgramSlugs","map","membership","programSlug","filter","program","includes","metadata","id","current","getAuthorizedProgramsList","getProgram","find","useProgram","programBySlug","isLoadingProgram","isValidatingProgram","isErrorProgram","errorProgram","mutateProgram","useSettings","settings","isLoadingSettings","isValidatingSettings","isErrorSettings","errorSettings","mutateSettings","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","useSanityLocalization","hooks_1","react_1","react_redux_1","slices_1","organizationSlug","sessionStorageKeys","onLanguageChange","lastUsedLanguage","sanityLocalization","useAppSelector","useSelector","state","dispatch","useDispatch","setLocaleCode","sanityLocalizationSlice","actions","sessionLocaleCode","setSessionLocaleCode","useSessionStorage","LOCALE_CODE","baseLanguageLocaleCode","locale_code","textDirection","text_direction","handleLanguageChange","useCallback","useEffect","useSanityOrganizationPrograms","getSilently","setLoading","setErrors","setSuccess","setPrograms","sanityOrganizationProgramsSlice","success","loading","errors","sanityOrganizationPrograms","handleGetPrograms","getProgramsByOrganizationSlug","err","Error","message","code","isLoadingSanityPrograms","isErrorSanityPrograms","isSuccessSanityPrograms","getErrorsSanityPrograms","getPrograms","refetchPrograms","organizationId","initialSanityOrganizationProgramsState","createReduxSlice","name","initialState","reducers","payload","reducer","selector","sanityProgramSlice","initialSanityProgramState","setProgram","sanityBaseLanguageSlice","initialBaseLanguageState","redux_axios_hooks_1","_id","_type","_createdAt","_updatedAt","_rev","translating","display_name","country_flag","names","skin","unified","unifiedWithoutSkinTone","native","imageUrl","language_code","country_code","source","time_format","date_format","globals","common","goals","relationships","sessions","generic_errors","none_select_label","no_internet_connection","no_search_results_found_label","partial_translation_notice","not_found_404_error","dashboard","title","onboarding","notifications","leaderboard","open_matching","program_memberships","resources","profile_fields","first_name_input_label","last_name_input_label","pronouns_input_label","date_of_birth_input_label","town_or_city_input_label","job_title_input_label","phone_number_input_label","gender","country","email","password","picture","linkedin_url","description","profile","account","communication","integrations","availability","reviews","navigation","dashboard_link_label","programs_link_label","relationships_link_label","learning_center_link_label","support_link_label","other_resources_link_label","goals_link_label","register_button_label","login_button_label","logout_successful_alert_message","guider_admin_label","user_action_menu","individual_relationships","group_relationships","metrics","device_not_supported","legal_notices","i_agree_to_legals_label","company_information","privacy_policy","cookie_policy","terms_of_service","select_organization","select_organization_title_input","last_accessed_on_label","registered_on_label","new_profile_fields","program_registration","programs_list","manage_guide_profile","learning_hub","content_types","relationship_actions","no_relationships_state","relationships_list","chat","relationships_header","archived_relationship_view","view_profile_modal","session_history","notes","groups","review_guide","registration","multitenant_SSO","local_accounts","sso_and_local_accounts","surveys","feedback_requested_modal","response_submitted_modal","profile_card","match_percentage","matched_on_skills_label","matched_on_goals_label","reviews_button_label","reviews_singular","reviews_plural","no_reviews_yet_label","spots_left_label","spot_singular","spots_plural","bio_title","setBaseLanguages","sanityOrganizationSlice","shared_types_1","initialSanityImage","asset","_ref","initialSanityOrganizationState","organizationLanguages","deployment_status","subdomain_deployment_status","status_type","subdomain_status","auth0_status","access","local_account_registration","basic_info","database_region","default_user_language","limited_licenses","number_of_licenses","subdomain","auth0_organization_id","other_languages","white_label","additional_agreements","color_palette_config","color_palette_enabled","color_palette","logo_size","SanityOrganizationWhiteLabelLogoSize","Default","registration_logo","additional_nav_links","video_conferencing","active_directory_teams","guider_video","calendar","active_directory_outlook_calendar","logo","auth0_logo","landing_page","enable_landing_page","hero","dynamic_title","title_prefix","dynamic_list","title_suffix","subtitle","button_1_label","button_2_label","button_2_enable","content","skills","soft_skills","hard_skills","navigation_label","welcome_message","layout","dashboard_page","background_color","top_resources","content_selection_type","content_selection","enable_programsV2","personal_details","enable_bio","enabled","required","town_or_city","job_title","date_of_birth","pronouns","phone_number","goal_categories","guide_max_goals","trainee_max_goals","categories","select_goals_custom_description","availabilities","start_time","end_time","enable_open_matching","program_type","program_type_slug","program_type_text","details","image","config","enable_guide_matching","guide_relationship_limit","trainee_relationship_limit","number_of_profiles_to_display","matching_rules","setOrganization","sanitySettingsSlice","initialSanityColor","alpha","hex","hsl","h","l","hsv","v","rgb","g","r","initialSanitySettingsState","generic","application_name","favicon","favicon_16x16","favicon_32x32","theme_color_fallback","open_graph","apple","mobile_web_app_title","apple_touch_icon","mask_icon","mask_icon_color","microsoft","ms_application_tile_color","static_media","error_404","footer_logo","quotation_mark","organization_hero_image","hubspot_logo","outlook_logo","slack_logo","degreed_logo","docebo_logo","enterprise_sso_logo","csv_import_logo","learning360_logo","empty_state_illustration","default_user_avatar","relationship_created","gold","silver","bronze","guider_surveys","log_session_survey","disclaimer","days_since_last_session_scheduled_logged","trainee_question_title","guide_question_title","responses","today","this_week","this_month","last_month","no","thank_you_state","return_to_the_platform_button_label","guide_feedback_survey","days_since_relationship_was_created","trainee_rating_question_title","trainee_feedback_question_title","response_placeholder","goals_survey","fully","partially","not_at_all","goals_have_changed","skills_survey","vastly_improved","somewhat_improved","not_improved","not_working_on_this_skill_at_the_moment","survey_not_found_state","survey_already_submitted_state","setSettings","imageBuilder","buildSanityImageUrl","buildSanityFileUrl"],"sourceRoot":""}