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,CAAS,CACTC,CAAO,EAEP,IAAMC,EAAOD,EAAKE,KAAK,CAAC,KACpB/P,EAAmB4P,EAEvB,IAAK,IAAMI,KAAOF,EAChB9P,EAASA,MAAAA,EAAAA,KAAAA,EAAAA,CAAQ,CAACgQ,EAAI,CAGxB,OAAOhQ,CACT,oDCbA3B,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/../../node_modules/lodash/_Symbol.js","webpack://_N_E/../../node_modules/lodash/_baseGetTag.js","webpack://_N_E/../../node_modules/lodash/_baseTrim.js","webpack://_N_E/../../node_modules/lodash/_freeGlobal.js","webpack://_N_E/../../node_modules/lodash/_getRawTag.js","webpack://_N_E/../../node_modules/lodash/_objectToString.js","webpack://_N_E/../../node_modules/lodash/_root.js","webpack://_N_E/../../node_modules/lodash/_trimmedEndIndex.js","webpack://_N_E/../../node_modules/lodash/debounce.js","webpack://_N_E/../../node_modules/lodash/isObject.js","webpack://_N_E/../../node_modules/lodash/isObjectLike.js","webpack://_N_E/../../node_modules/lodash/isSymbol.js","webpack://_N_E/../../node_modules/lodash/now.js","webpack://_N_E/../../node_modules/lodash/toNumber.js","webpack://_N_E/./src/api/user-records/mutations/useCreateUserRecord/service.ts","webpack://_N_E/./src/api/user-records/mutations/useCreateUserRecord/index.ts","webpack://_N_E/./src/api/user-records/mutations/useUpdateUserRecord/service.ts","webpack://_N_E/./src/api/user-records/mutations/useUpdateUserRecord/index.ts","webpack://_N_E/./src/api/user-records/mutations/useDeleteUserRecord/service.ts","webpack://_N_E/./src/api/user-records/mutations/useDeleteUserRecord/index.ts","webpack://_N_E/./src/api/user-records/mutations/index.ts","webpack://_N_E/./src/api/user-records/index.ts","webpack://_N_E/./src/api/user-records/queries/useUserRecordsById/service.ts","webpack://_N_E/./src/api/user-records/queries/useUserRecordsById/index.tsx","webpack://_N_E/./src/api/user-records/queries/useUserRecords/service.ts","webpack://_N_E/./src/api/user-records/queries/useUserRecords/index.tsx","webpack://_N_E/./src/api/user-records/queries/index.ts","webpack://_N_E/./src/api/user-records/queryKeys.ts","webpack://_N_E/./src/hooks/user-records/useUserRecordForm/index.ts","webpack://_N_E/./src/api/user-identity-types/queryKey.ts","webpack://_N_E/./src/api/user-identity-types/queries/useUserIdentityTypesByTypeId/service.ts","webpack://_N_E/./src/api/user-identity-types/queries/useUserIdentityTypesByTypeId/index.ts","webpack://_N_E/./src/api/user-identity-types/queries/index.ts","webpack://_N_E/./src/api/user-identity-types/index.ts","webpack://_N_E/./src/components/Restrictions/SelfExclusion/Modal/Content/TimePeriodPicker/index.tsx","webpack://_N_E/./src/api/user-record-types/queryKey.ts","webpack://_N_E/./src/api/user-record-types/queries/useRecordTypes/service.ts","webpack://_N_E/./src/api/user-record-types/queries/useRecordTypes/index.ts","webpack://_N_E/./src/api/user-record-types/queries/index.ts","webpack://_N_E/./src/api/user-record-types/index.ts","webpack://_N_E/./src/components/Restrictions/SelfExclusion/Modal/Content/Type/index.tsx","webpack://_N_E/./src/components/Restrictions/SelfExclusion/Modal/Content/index.tsx","webpack://_N_E/./src/components/Restrictions/SelfExclusion/Modal/index.tsx","webpack://_N_E/./src/models/user-record/type/id/index.ts","webpack://_N_E/../../packages/common/src/components/TransWithDefault/index.tsx","webpack://_N_E/../../packages/common/src/utils/i18n/getDateFNSLocale.ts","webpack://_N_E/../../packages/common/src/utils/i18n/getDatePickerTranslation.ts","webpack://_N_E/../../packages/common/src/utils/object/get.ts","webpack://_N_E/./src/components/Restrictions/SelfExclusion/Modal/Content/styles.module.scss"],"sourcesContent":["var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","import baseAPI from '@/api';\nimport { UserRecord } from '@/models/user-record';\nimport { CreateUserRecordRequestDto } from '@/services/dto/user-records/create-user-records-input.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchCreateUserRecord(\n data: CreateUserRecordRequestDto,\n): Promise {\n const response: AxiosResponse = await baseAPI.post(\n '/user-records',\n data,\n );\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { fetchCreateUserRecord } from './service';\nimport { UserRecordsQueryKey } from '../../queryKeys';\nimport { useModal } from '@starsoft/common/hooks';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useCreateUserRecord() {\n const queryClient: QueryClient = useQueryClient();\n const { onClose } = useModal(ModalsKey.SelfExclusion);\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n queryClient.invalidateQueries({\n queryKey: [UserRecordsQueryKey.Primary],\n });\n\n NotificationsService.success({ message: 'created_user_record_message' });\n\n onClose(true);\n }\n\n const { isPending, mutate } = useMutation({\n onSuccess,\n mutationFn: fetchCreateUserRecord,\n });\n\n return {\n createUserRecord: mutate,\n loadingCreateUserRecord: isPending,\n };\n}\n","import baseAPI from '@/api';\nimport { UpdateUserRecordRequestDto } from '@/services/dto/user-records/update-user-records-input.dto';\nimport { UserRecord } from '@/models/user-record';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchUpdateUserRecord({\n id,\n ...data\n}: UpdateUserRecordRequestDto): Promise {\n const response: AxiosResponse = await baseAPI.patch(\n `/user-records/${id}`,\n data,\n );\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { fetchUpdateUserRecord } from './service';\nimport { UserRecordsQueryKey } from '../../queryKeys';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useUpdateUserRecord() {\n const queryClient: QueryClient = useQueryClient();\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n queryClient.invalidateQueries({\n queryKey: [UserRecordsQueryKey.Primary],\n });\n NotificationsService.success({ message: 'updated_user_record_message' });\n }\n\n const { isPending, mutate } = useMutation({\n onSuccess,\n mutationFn: fetchUpdateUserRecord,\n });\n\n return {\n updateUserRecord: mutate,\n loadingUpdateUserRecord: isPending,\n };\n}\n","import baseAPI from '@/api';\nimport { UserRecord } from '@/models/user-record';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchDeleteUserRecord(id: bigint): Promise {\n const response: AxiosResponse = await baseAPI.delete(\n `/user-records/${id}`,\n );\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { fetchDeleteUserRecord } from './service';\nimport { UserRecordsQueryKey } from '../../queryKeys';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useDeleteUserRecord() {\n const queryClient: QueryClient = useQueryClient();\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n queryClient.invalidateQueries({\n queryKey: [UserRecordsQueryKey.Primary],\n });\n NotificationsService.success({ message: 'deleted_user_record_message' });\n }\n\n const { isPending, mutate } = useMutation({\n onSuccess,\n mutationFn: fetchDeleteUserRecord,\n });\n\n return {\n deleteUserRecord: mutate,\n loadingDeleteUserRecord: isPending,\n };\n}\n","export { useCreateUserRecord } from './useCreateUserRecord';\nexport { useUpdateUserRecord } from './useUpdateUserRecord';\nexport { useDeleteUserRecord } from './useDeleteUserRecord';\n","export * from './mutations';\n","import baseAPI from '@/api';\nimport { UserRecord } from '@/models/user-record';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { AxiosResponse } from 'axios';\nimport { UseUserRecordsByIdQueryKeyProps } from './props';\n\nexport async function fetchUserRecordById({\n queryKey,\n}: QueryFunctionContext): Promise {\n const { id } = queryKey[1];\n\n const response: AxiosResponse = await baseAPI.get(\n `/user-records/${id}`,\n );\n return response.data;\n}\n","import { GenericError } from '@/models/generic-error';\nimport { UserRecord } from '@/models/user-record';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { useEffect } from 'react';\nimport { UserRecordsQueryKey } from '../../queryKeys';\nimport {\n UseUserRecordsByIdProps,\n UseUserRecordsByIdQueryKeyProps,\n} from './props';\nimport { fetchUserRecordById } from './service';\n\nexport function useUserRecordsById({\n id,\n externalOnSuccess,\n}: UseUserRecordsByIdProps) {\n const filter: { id: bigint | string } = {\n id,\n };\n const queryKey: UseUserRecordsByIdQueryKeyProps = [\n UserRecordsQueryKey.ById,\n filter,\n ];\n\n const { data, isPending, error, refetch, fetchStatus } = useQuery<\n UserRecord,\n AxiosError,\n UserRecord,\n UseUserRecordsByIdQueryKeyProps\n >({\n queryKey,\n queryFn: fetchUserRecordById,\n staleTime: 5 * 1000,\n enabled: !!id,\n });\n\n function handleExternalOnSuccess() {\n if (!externalOnSuccess || !data) {\n return;\n }\n\n externalOnSuccess(data);\n }\n\n useEffect(handleExternalOnSuccess, [data, externalOnSuccess]);\n\n return {\n userRecord: data,\n isLoadingUserRecord: isPending && fetchStatus != 'idle',\n errorUserRecord: error,\n refetchUserRecord: refetch,\n };\n}\n","import baseAPI from '@/api';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseUserRecordsQueryKeyProps } from './props';\nimport { UserRecord } from '@/models/user-record';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchUserRecords({\n queryKey,\n}: QueryFunctionContext): Promise> {\n const { limit, page } = queryKey[1];\n\n const response: AxiosResponse> = await baseAPI.get>(\n `/user-records`,\n {\n params: {\n limit,\n page,\n },\n },\n );\n return response.data;\n}\n","import { useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { UseUserRecordsQueryKeyProps } from './props';\nimport { UserRecordsQueryKey } from '../../queryKeys';\nimport { UserRecordsRequestDto } from '@/services/dto/user-records/user-records-request.dto';\nimport { fetchUserRecords } from './service';\nimport { UserRecord } from '@/models/user-record';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\nimport { useUserAccount } from '@/api/user/queries';\n\nexport function useUserRecords() {\n const [page, setPage] = useState(1);\n const { isAuthorized } = useUserAccount();\n\n const filter: UserRecordsRequestDto = {\n page,\n limit: 10,\n };\n\n const queryKey: UseUserRecordsQueryKeyProps = [\n UserRecordsQueryKey.Primary,\n filter,\n ];\n\n const { data, isPending, isLoading, error, refetch, fetchStatus } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseUserRecordsQueryKeyProps\n >({\n queryKey,\n queryFn: fetchUserRecords,\n staleTime: 5 * 1000,\n enabled: !!isAuthorized,\n });\n\n const { fetchNextPage, fetchPreviousPage, setCurrentPage } =\n usePaginatedQuery({\n data,\n page,\n setPage,\n });\n\n return {\n data,\n isLoading: isPending && fetchStatus !== 'idle',\n isPreviousData: isLoading,\n error,\n setCurrentPage,\n fetchNextPage,\n fetchPreviousPage,\n refetch,\n page,\n };\n}\n","export { useUserRecordsById } from './useUserRecordsById';\nexport { useUserRecords } from './useUserRecords';\n","export enum UserRecordsQueryKey {\n Primary = '/user-records',\n ById = '/user-records/:id',\n}\n","import { useUserRecords, useUserRecordsById } from '@/api/user-records/queries';\nimport { useSearchParams } from '@starsoft/common/hooks';\n\nexport function useUserRecordForm() {\n const search: URLSearchParams = useSearchParams();\n const id = search.get('user_record_id');\n const isCreating = !id;\n\n const useUserRecordsByUserIdWithResolvedParamsQuery = useUserRecords();\n const useUserRecordsByIdQuery = useUserRecordsById({\n id,\n });\n\n return {\n id,\n isCreating,\n useUserRecordsByUserIdWithResolvedParamsQuery,\n useUserRecordsByIdQuery,\n };\n}\n","export enum UserIdentityTypeQueryKey {\n ByTypeId = '/user-identity-types/:typeId/periods',\n}\n","import baseAPI from '@/api';\nimport { TimePeriod } from '@/models/time-period';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { AxiosResponse } from 'axios';\nimport { UseUserIdentityTypesByTypeIdQueryKey } from './props';\n\nexport async function fetchUserIdentityTypesByTypeId({\n queryKey,\n}: QueryFunctionContext): Promise<\n TimePeriod[]\n> {\n const typeId: bigint | string = queryKey[1];\n const response: AxiosResponse = await baseAPI.get(\n `/user-record-types/${typeId}/periods`,\n );\n return response.data;\n}\n","import { TimePeriod } from '@/models/time-period';\nimport { GenericError } from '@starsoft/common/models';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { UserIdentityTypeQueryKey } from '../../queryKey';\nimport {\n UseUserIdentityTypesByTypeIdProps,\n UseUserIdentityTypesByTypeIdQueryKey,\n} from './props';\nimport { fetchUserIdentityTypesByTypeId } from './service';\n\nexport function useUserIdentityTypesByTypeId({\n typeId,\n refetchOnMount = true,\n}: UseUserIdentityTypesByTypeIdProps) {\n const queryKey: UseUserIdentityTypesByTypeIdQueryKey = [\n UserIdentityTypeQueryKey.ByTypeId,\n typeId as bigint,\n ];\n\n const { data, isPending, error, refetch, fetchStatus } = useQuery<\n TimePeriod[],\n AxiosError,\n TimePeriod[],\n UseUserIdentityTypesByTypeIdQueryKey\n >({\n queryKey,\n enabled: !!typeId,\n refetchOnMount,\n staleTime: 5 * 1000,\n queryFn: fetchUserIdentityTypesByTypeId,\n });\n\n return {\n userIdentityTypes: data,\n error,\n refetch,\n isPending: isPending && fetchStatus !== 'idle',\n };\n}\n","export { useUserIdentityTypesByTypeId } from './useUserIdentityTypesByTypeId';\n","export * from './queries';\n","import { useUserIdentityTypesByTypeId } from '@/api/user-identity-types';\nimport { TimePeriod } from '@/models/time-period';\nimport { CreateUserRecordRequestDto } from '@/services/dto/user-records/create-user-records-input.dto';\nimport { UpdateUserRecordRequestDto } from '@/services/dto/user-records/update-user-records-input.dto';\nimport { FormGroup, SelectInput } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useFormContext } from 'react-hook-form';\n\nexport default function UserRecordModalContentTimePeriodPicker() {\n const { t, lang } = useTranslation('common');\n const { setValue, watch } = useFormContext<\n CreateUserRecordRequestDto & UpdateUserRecordRequestDto\n >();\n\n const typeId = watch('typeId');\n const periodId = watch('periodId');\n\n const { userIdentityTypes, error, isPending, refetch } =\n useUserIdentityTypesByTypeId({\n typeId,\n });\n\n function handleSetPeriodId(data: TimePeriod) {\n setValue('periodId', data?.id?.toString(), {\n shouldDirty: true,\n });\n }\n\n return (\n <>\n \n option.name?.[lang]}\n getOptionValue={option => option.id.toString()}\n setValue={handleSetPeriodId}\n value={periodId}\n error={error}\n loading={isPending}\n refetch={refetch}\n />\n \n \n );\n}\n","export enum UserRecordTypesQueryKey {\n Primary = '/user-record-types',\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UserRecordTypesQueryKeyProps } from './props';\nimport { AxiosResponse } from 'axios';\nimport baseAPI from '@/api';\nimport { UserRecordType } from '@/models/user-record/type';\nimport { PaginatedRequest } from '@/models/pagination/paginated-request';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\n\nexport async function fetchRecordTypes({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const params: PaginatedRequest = queryKey[1];\n\n const response: AxiosResponse> =\n await baseAPI.get>('/user-record-types', {\n params,\n });\n return response.data;\n}\n","import { InfiniteData } from '@tanstack/react-query';\nimport { useInfiniteQuery } from '@starsoft/common/services/query-client';\nimport { AxiosError } from 'axios';\nimport { UserRecordTypesQueryKey } from '../../queryKey';\nimport { fetchRecordTypes } from './service';\nimport { GenericError } from '@/models/generic-error';\nimport { UserRecordTypesQueryKeyProps } from './props';\nimport { useMemo } from 'react';\nimport { PaginatedRequest } from '@/models/pagination/paginated-request';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { UserRecordType } from '@/models/user-record/type';\nimport { useInfiniteQueryCallbacks } from '@starsoft/common/hooks';\n\nexport function useRecordTypes() {\n const filter: PaginatedRequest = {\n limit: 20,\n };\n\n const queryKey: UserRecordTypesQueryKeyProps = [\n UserRecordTypesQueryKey.Primary,\n filter,\n ];\n\n const infiniteQueryCallbacks = useInfiniteQueryCallbacks();\n\n const { data, isPending, error, refetch, fetchStatus, isSuccess, ...rest } =\n useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UserRecordTypesQueryKeyProps\n >({\n queryKey,\n queryFn: fetchRecordTypes,\n staleTime: 5 * 1000,\n ...infiniteQueryCallbacks,\n initialPageParam: 1,\n });\n\n const userRecordTypes = useMemo(\n () => data?.pages.flatMap(page => page.data) ?? [],\n [data],\n );\n\n return {\n error,\n refetch,\n isSuccess,\n userRecordTypes,\n isPending: isPending && fetchStatus !== 'idle',\n ...rest,\n };\n}\n","export { useRecordTypes } from './useRecordTypes';\n","export * from './queries';\n","import { useRecordTypes } from '@/api/user-record-types';\nimport { useUserRecordForm } from '@/hooks/user-records/useUserRecordForm';\nimport { UserRecordType } from '@/models/user-record/type';\nimport { CreateUserRecordRequestDto } from '@/services/dto/user-records/create-user-records-input.dto';\nimport { UpdateUserRecordRequestDto } from '@/services/dto/user-records/update-user-records-input.dto';\nimport {\n AutocompleteMenuSelector,\n ErrorChip,\n FormGroup,\n} from '@starsoft/common/components';\nimport { useFormContext } from 'react-hook-form';\nimport useTranslation from 'next-translate/useTranslation';\nimport { UserRecordTypeId } from '@/models/user-record/type/id';\n\nexport default function UserRecordModalContentTypeSelector() {\n const { t } = useTranslation('account');\n const { setValue, watch } = useFormContext<\n CreateUserRecordRequestDto & UpdateUserRecordRequestDto\n >();\n const {\n useUserRecordsByUserIdWithResolvedParamsQuery: { isLoading },\n } = useUserRecordForm();\n const {\n userRecordTypes,\n isPending,\n error,\n refetch,\n hasNextPage,\n fetchNextPage,\n isFetchingNextPage,\n } = useRecordTypes();\n\n const type = watch('typeId');\n\n function handleSelect(option: UserRecordType) {\n setValue('typeId', option.id);\n }\n\n if (error) {\n return ;\n }\n\n return (\n \n record?.id != UserRecordTypeId.JudiciallyDeleted,\n )}\n filterBy={['name']}\n setValue={handleSelect}\n value={type}\n getOptionLabel={e => t(`${e?.id}_record_type_label`)}\n getOptionValue={e => e?.id}\n loading={isPending || isLoading}\n loadMore={fetchNextPage}\n hasNextPage={hasNextPage}\n hideSearch\n loadingMore={isFetchingNextPage}\n title={t('user_record_type_label') as string}\n />\n \n );\n}\n","import { useCreateUserRecord, useUpdateUserRecord } from '@/api/user-records';\nimport { useUserRecordForm } from '@/hooks/user-records/useUserRecordForm';\nimport { CreateUserRecordRequestDto } from '@/services/dto/user-records/create-user-records-input.dto';\nimport { UpdateUserRecordRequestDto } from '@/services/dto/user-records/update-user-records-input.dto';\nimport { LocalizationProvider } from '@mui/x-date-pickers';\nimport { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';\nimport { Button, FormGroup, Input } from '@starsoft/common/components';\nimport getDateFNSLocale from '@starsoft/common/utils/i18n/getDateFNSLocale';\nimport getDatePickerTranslation from '@starsoft/common/utils/i18n/getDatePickerTranslation';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useEffect } from 'react';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport styles from './styles.module.scss';\nimport UserRecordModalContentTimePeriodPicker from './TimePeriodPicker';\nimport UserRecordModalContentTypeSelector from './Type';\n\nexport default function UserRecordModalContent() {\n const { t, lang } = useTranslation('account');\n const locale = getDateFNSLocale(lang);\n const translation = getDatePickerTranslation(lang);\n const methods = useForm<\n CreateUserRecordRequestDto & UpdateUserRecordRequestDto\n >();\n const {\n isCreating,\n useUserRecordsByUserIdWithResolvedParamsQuery: { isLoading, data },\n useUserRecordsByIdQuery: { userRecord },\n } = useUserRecordForm();\n\n const { handleSubmit, register, setValue } = methods;\n\n const { createUserRecord, loadingCreateUserRecord } = useCreateUserRecord();\n const { updateUserRecord, loadingUpdateUserRecord } = useUpdateUserRecord();\n\n function onSubmit(\n data: CreateUserRecordRequestDto & UpdateUserRecordRequestDto,\n ) {\n if (isCreating) {\n createUserRecord({ ...data });\n return;\n }\n\n updateUserRecord({\n ...data,\n id: userRecord?.id,\n typeId: undefined,\n });\n }\n\n function handleResetForm() {\n if (isCreating || !userRecord) {\n return;\n }\n\n setValue('reason', userRecord?.reason);\n setValue('periodId', userRecord?.periodId);\n setValue('typeId', userRecord?.typeId as bigint);\n }\n\n useEffect(handleResetForm, [userRecord]);\n\n return (\n \n \n
\n
\n {isCreating && }\n \n \n \n \n
\n

\n {t('suspension_description')}\n

\n \n {t(isCreating ? 'common:create' : 'common:update')}\n \n \n \n
\n );\n}\n","import useTranslation from 'next-translate/useTranslation';\nimport { useUserRecordForm } from '@/hooks/user-records/useUserRecordForm';\nimport { ModalLayout } from '@starsoft/common/components';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport SelfExclusionModalContent from './Content';\nimport { ModalWithVersion } from '@/components/core/Modal/WithVersion';\n\nexport default function SelfExclusionModal() {\n const { t } = useTranslation('account');\n const { isCreating } = useUserRecordForm();\n\n return (\n \n \n \n );\n}\n","export namespace UserRecordTypeId {\n export const Paused = 1n;\n export const Deleted = 2n;\n export const JudiciallyDeleted = 3n;\n}\n\nexport type UserRecordTypeIdType =\n (typeof UserRecordTypeId)[keyof typeof UserRecordTypeId];\n","import { useSettingsStore } from '@starsoft/common/hooks/useSettingsStore';\nimport { CommonSettings } from '@starsoft/common/interfaces';\nimport { Trans as ITrans } from '@starsoft/common/interfaces/trans';\nimport { ComponentType } from 'react';\n\n/**\n * TransWithDefault Component\n * This component is responsible for rendering a translation component with default fallback.\n * It utilizes the settings store to determine the appropriate translation component to use.\n *\n * @param {ITrans} props - The properties for the component.\n * @param {object} props.components - Custom components to be used within the translation text.\n * @param {string} props.i18nKey - The internationalization key for the translation.\n * @param {object} props.values - The values to be interpolated in the translation string.\n *\n * @returns {JSX.Element} The rendered translation component with provided components and props.\n *\n * @example\n * // Usage example:\n * , br:
}}\n * i18nKey=\"example_key\"\n * values={{ name: 'John' }}\n * />\n */\nexport function TransWithDefault({ components, ...props }: ITrans) {\n const { state } = useSettingsStore();\n const settings: CommonSettings = state.settings;\n const Trans: ComponentType = settings.translationComponents.Trans;\n\n // Render the Trans component with provided components and props\n return (\n ,\n br:
,\n p:

,\n ul:

    ,\n li:
  • ,\n ...components,\n }}\n {...props}\n />\n );\n}\n","import enLocale from 'date-fns/locale/en-US';\nimport ptLocale from 'date-fns/locale/pt-BR';\nimport frLocale from 'date-fns/locale/fr-CA';\nimport deLocale from 'date-fns/locale/de';\nimport esLocale from 'date-fns/locale/es';\nimport zhLocale from 'date-fns/locale/zh-CN';\n\nexport default function getDateFNSLocale(lang: string) {\n switch (lang.slice(0, 2)) {\n case 'pt':\n return ptLocale;\n case 'en':\n return enLocale;\n case 'fr':\n return frLocale;\n case 'es':\n return esLocale;\n case 'de':\n return deLocale;\n case 'ru':\n return deLocale;\n case 'zh':\n return zhLocale;\n default:\n return enLocale;\n }\n}\n","import { enUS as enLocale } from '@mui/x-date-pickers/locales';\nimport { ptBR as ptLocale } from '@mui/x-date-pickers/locales';\nimport { frFR as frLocale } from '@mui/x-date-pickers/locales';\nimport { deDE as deLocale } from '@mui/x-date-pickers/locales';\nimport { esES as esLocale } from '@mui/x-date-pickers/locales';\nimport { ruRU as ruLocale } from '@mui/x-date-pickers/locales';\nimport { zhCN as zhLocale } from '@mui/x-date-pickers/locales';\n\nexport default function getDatePickerTranslation(lang: string) {\n switch (lang.slice(0, 2)) {\n case 'pt':\n return ptLocale;\n case 'en':\n return enLocale;\n case 'fr':\n return frLocale;\n case 'es':\n return esLocale;\n case 'de':\n return deLocale;\n case 'ru':\n return ruLocale;\n case 'zh':\n return zhLocale;\n default:\n return enLocale;\n }\n}\n","import { FieldPath, FieldValues } from 'react-hook-form';\n\nexport function get>(\n object: T,\n path: K,\n): T[K] {\n const keys = path.split('.') as (keyof T)[];\n let result: T | T[K] = object;\n\n for (const key of keys) {\n result = result?.[key];\n }\n\n return result as T[K];\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__cM3aU\",\"container__content\":\"styles_container__content__37iL7\",\"container__content__warning\":\"styles_container__content__warning__iorBv\",\"skeleton-animation\":\"styles_skeleton-animation__FUgIg\"};"],"names":["Symbol","root","module","exports","__webpack_require__","getRawTag","objectToString","symToStringTag","toStringTag","undefined","value","Object","trimmedEndIndex","reTrimStart","string","slice","replace","freeGlobal","g","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","isOwn","call","tag","unmasked","e","result","freeSelf","self","Function","reWhitespace","index","length","test","charAt","isObject","now","toNumber","nativeMax","Math","max","nativeMin","min","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timeSinceLastInvoke","timerExpired","timeWaiting","trailingEdge","setTimeout","debounced","isInvoking","arguments","clearTimeout","cancel","flush","type","baseGetTag","isObjectLike","Date","baseTrim","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary","fetchCreateUserRecord","data","response","baseAPI","post","useCreateUserRecord","queryClient","useQueryClient","onClose","useModal","ModalsKey","SelfExclusion","NotificationsService","useNotificationService","isPending","mutate","useMutation","onSuccess","invalidateQueries","queryKey","UserRecordsQueryKey","Primary","success","message","mutationFn","createUserRecord","loadingCreateUserRecord","fetchUpdateUserRecord","param","id","patch","concat","useUpdateUserRecord","updateUserRecord","loadingUpdateUserRecord","fetchDeleteUserRecord","delete","useDeleteUserRecord","deleteUserRecord","loadingDeleteUserRecord","fetchUserRecordById","get","useUserRecordsById","externalOnSuccess","ById","error","refetch","fetchStatus","useQuery","queryFn","staleTime","enabled","useEffect","userRecord","isLoadingUserRecord","errorUserRecord","refetchUserRecord","fetchUserRecords","limit","page","params","useUserRecords","setPage","useState","isAuthorized","useUserAccount","isLoading","fetchNextPage","fetchPreviousPage","setCurrentPage","usePaginatedQuery","isPreviousData","useUserRecordForm","search","useSearchParams","isCreating","useUserRecordsByUserIdWithResolvedParamsQuery","useUserRecordsByIdQuery","UserIdentityTypeQueryKey","fetchUserIdentityTypesByTypeId","typeId","UserRecordModalContentTimePeriodPicker","t","lang","useTranslation","setValue","watch","useFormContext","periodId","userIdentityTypes","useUserIdentityTypesByTypeId","refetchOnMount","ByTypeId","jsx_runtime","jsx","Fragment","FormGroup","label","description","loading","secondary","SelectInput","getOptionLabel","option","name","getOptionValue","shouldDirty","fetchRecordTypes","UserRecordTypesQueryKey","UserRecordModalContentTypeSelector","userRecordTypes","hasNextPage","isFetchingNextPage","useRecordTypes","infiniteQueryCallbacks","useInfiniteQueryCallbacks","isSuccess","rest","useInfiniteQuery","initialPageParam","useMemo","pages","flatMap","ErrorChip","action","AutocompleteMenuSelector","filter","record","UserRecordTypeId","JudiciallyDeleted","filterBy","loadMore","hideSearch","loadingMore","title","UserRecordModalContent","locale","getDateFNSLocale","translation","getDatePickerTranslation","methods","useForm","handleSubmit","register","reason","FormProvider","LocalizationProvider","dateAdapter","AdapterDateFns","adapterLocale","localeText","components","MuiLocalizationProvider","defaultProps","jsxs","form","className","styles","onSubmit","div","Input","placeholder","p","Button","isloading","SelfExclusionModal","ModalWithVersion","modal","SelfExclusionModalContent","Paused","Deleted","TransWithDefault","props","state","useSettingsStore","Trans","settings","translationComponents","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","strong","br","ul","li","ptLocale","enLocale","frLocale","esLocale","deLocale","zhLocale","ruLocale","object","path","keys","split","key"],"sourceRoot":""}