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ACLjB,KAAAA,CAAI,CACJkB,QAAAA,CAAO,CACPC,MAAAA,CAAK,CACN,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAIF,CACAC,WAAYqC,EACZpC,UAxBF,SACEsC,CAAoC,CACpCrC,CAA2C,MAGzCA,EACAU,EADAV,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,OAAAA,CAAAA,EAAAA,EAAWiB,YAAY,GAAvBjB,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAyB5F,QAAQ,cACjCsG,CAAAA,EAAAA,EAAAA,CAAkBA,CAACQ,SAAS,GAA5BR,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA8BtG,QAAQ,KAEtC8E,EAASiC,CAAAA,EAAAA,EAAAA,EAAAA,EAAkB,IAE/B,CAeA,GAEA,MAAO,CACLmB,yBAA0BhD,EAC1BM,MAAAA,EACAH,UAAAA,EACAC,MAAAA,EACAC,QAAAA,EACAlB,KAAAA,CACF,CACF","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/betting-sessions/mutations/useBettingSessionTimePlayed/service.ts","webpack://_N_E/./src/api/betting-sessions/mutations/useBettingSessionTimePlayed/index.tsx","webpack://_N_E/./src/api/betting-sessions/mutations/useCreateBettingSession/service.ts","webpack://_N_E/./src/api/betting-sessions/mutations/useCreateBettingSession/index.tsx","webpack://_N_E/./src/api/betting-sessions/mutations/useCreateBettingSessionDemo/service.ts","webpack://_N_E/./src/api/betting-sessions/mutations/useCreateBettingSessionDemo/index.tsx","webpack://_N_E/./src/api/betting-sessions/mutations/index.ts","webpack://_N_E/./src/api/betting-sessions/index.ts"],"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 { BettingSessionTimePlayedInputDto } from '@/services/dto/betiing-session/betting-session-time-played-input.dto';\n\nexport async function fetchBettingSessionTimePlayed(\n data: BettingSessionTimePlayedInputDto,\n): Promise {\n await baseAPI.patch(`/betting-sessions/${data.sessionId}/time-played`);\n}\n","import { LocalStorageKey } from '@/enums/localStorageKey';\nimport { GenericError } from '@/models/generic-error';\nimport { BettingSessionTimePlayedInputDto } from '@/services/dto/betiing-session/betting-session-time-played-input.dto';\nimport { useMutation } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { fetchBettingSessionTimePlayed } from './service';\n\nexport function useBettingSessionTimePlayed() {\n function onSuccess(data: void, variables: BettingSessionTimePlayedInputDto) {\n sessionStorage.removeItem(LocalStorageKey.BettingSessionId);\n }\n\n const {\n mutate,\n mutateAsync,\n isPending: isLoading,\n error,\n data,\n isError,\n reset,\n } = useMutation<\n void,\n AxiosError,\n BettingSessionTimePlayedInputDto\n >({\n mutationFn: fetchBettingSessionTimePlayed,\n onSuccess,\n });\n\n return {\n bettingSessionTimePlayed: mutate,\n bettingSessionTimePlayedAsync: mutateAsync,\n isLoading,\n reset,\n error,\n isError,\n data,\n };\n}\n","import baseAPI from '@/api';\nimport { CreateBettingSessionInputDto } from '@/services/dto/betiing-session/create-betting-session-input.dto';\nimport { DetailedBettingSession } from '@/models/betting-session/detailed';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchCreateBettingSession(\n data: CreateBettingSessionInputDto,\n): Promise {\n const response: AxiosResponse =\n await baseAPI.post('betting-sessions', data);\n\n return response.data;\n}\n","import { LocalStorageKey } from '@/enums/localStorageKey';\nimport { setHasSlotSession } from '@/lib/store/casino/actions';\nimport { DetailedBettingSession } from '@/models/betting-session/detailed';\nimport { GamingAggregatorId } from '@/models/gaming-aggregator/id';\nimport { GenericError } from '@/models/generic-error';\nimport { CreateBettingSessionInputDto } from '@/services/dto/betiing-session/create-betting-session-input.dto';\nimport { usePathname } from '@starsoft/common/hooks';\nimport { Nullable } from '@starsoft/common/interfaces';\nimport { AuthService } from '@starsoft/common/services';\nimport { useMutation } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { AnyAction, Dispatch } from 'redux';\nimport { useBettingSessionTimePlayed } from '../useBettingSessionTimePlayed';\nimport { fetchCreateBettingSession } from './service';\n\nexport function useCreateBettingSession() {\n const dispatch: Dispatch = useDispatch();\n const { bettingSessionTimePlayed } = useBettingSessionTimePlayed();\n const pathname = usePathname();\n const [sessionId, setSessionId] = useState>(null);\n\n console.log('sessionId', sessionId);\n\n function onSuccess(\n data: DetailedBettingSession,\n variables: CreateBettingSessionInputDto,\n ) {\n sessionStorage.setItem(\n LocalStorageKey.BettingSessionId,\n data?.id?.toString() ?? '',\n );\n setSessionId(data?.id?.toString());\n\n const unloadEvent = (event: BeforeUnloadEvent) => {\n event.returnValue = false;\n\n bettingSessionTimePlayed({\n sessionId: data?.id?.toString(),\n });\n sessionStorage.removeItem(LocalStorageKey.BettingSessionId);\n };\n\n window.addEventListener('beforeunload', unloadEvent);\n\n if (\n variables?.aggregatorId?.toString() ===\n GamingAggregatorId.Softswiss?.toString()\n ) {\n dispatch(setHasSlotSession(true));\n }\n\n if (\n variables?.aggregatorId?.toString() ===\n GamingAggregatorId.Betby?.toString()\n ) {\n AuthService.setBetbyToken(data?.gateway?.token);\n }\n }\n\n const {\n mutate,\n mutateAsync,\n variables,\n isPending: isLoading,\n error,\n data,\n isError,\n reset,\n } = useMutation<\n DetailedBettingSession,\n AxiosError,\n CreateBettingSessionInputDto\n >({\n mutationFn: fetchCreateBettingSession,\n onSuccess,\n });\n\n function handleBettingSessionTimePlayed() {\n console.log('sessionId first', sessionId);\n if (!sessionId) {\n return;\n }\n\n console.log('sessionId', sessionId);\n\n const handleUnloadEvent = () => {\n bettingSessionTimePlayed({\n sessionId,\n });\n setSessionId(null);\n console.log('chamou');\n };\n\n return () => handleUnloadEvent();\n }\n\n useEffect(handleBettingSessionTimePlayed, [sessionId, pathname]);\n\n const onTokenExpired = useCallback(async () => {\n try {\n const response = await mutateAsync(variables);\n onSuccess(response, variables);\n return response?.gateway?.token;\n } catch (e: unknown) {\n throw e;\n }\n }, [mutateAsync, variables]);\n\n return {\n createBettingSession: mutate,\n createBettingSessionAsync: mutateAsync,\n onTokenExpired,\n isLoading,\n reset,\n error,\n isError,\n data,\n onUnmount: handleBettingSessionTimePlayed,\n };\n}\n","import baseAPI from '@/api';\nimport { CreateBettingSessionDemoInputDto } from '@/services/dto/betiing-session/create-betting-session-demo-input.dto';\nimport { CreateBettingSessionDemoOutputDto } from '@/services/dto/betiing-session/create-betting-session-demo-output.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchCreateBettingSessionDemo(\n data: CreateBettingSessionDemoInputDto,\n): Promise {\n const response: AxiosResponse =\n await baseAPI.post(\n '/betting-sessions/demo',\n data,\n );\n\n return response.data;\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { fetchCreateBettingSessionDemo } from './service';\nimport { GenericError } from '@/models/generic-error';\nimport { AxiosError } from 'axios';\nimport { AnyAction, Dispatch } from 'redux';\nimport { useDispatch } from 'react-redux';\nimport { setHasSlotSession } from '@/lib/store/casino/actions';\nimport { CreateBettingSessionDemoInputDto } from '@/services/dto/betiing-session/create-betting-session-demo-input.dto';\nimport { CreateBettingSessionDemoOutputDto } from '@/services/dto/betiing-session/create-betting-session-demo-output.dto';\nimport { GamingAggregatorId } from '@/models/gaming-aggregator/id';\n\nexport function useCreateBettingSessionDemo() {\n const dispatch: Dispatch = useDispatch();\n\n function onSuccess(\n _: CreateBettingSessionDemoOutputDto,\n variables: CreateBettingSessionDemoInputDto,\n ) {\n if (\n variables?.aggregatorId?.toString() ===\n GamingAggregatorId.Softswiss?.toString()\n ) {\n dispatch(setHasSlotSession(true));\n }\n }\n const {\n mutate,\n isPending: isLoading,\n error,\n data,\n isError,\n reset,\n } = useMutation<\n CreateBettingSessionDemoOutputDto,\n AxiosError,\n CreateBettingSessionDemoInputDto\n >({\n mutationFn: fetchCreateBettingSessionDemo,\n onSuccess,\n });\n\n return {\n createBettingSessionDemo: mutate,\n reset,\n isLoading,\n error,\n isError,\n data,\n };\n}\n","export { useBettingSessionTimePlayed } from './useBettingSessionTimePlayed';\nexport { useCreateBettingSession } from './useCreateBettingSession';\nexport { useCreateBettingSessionDemo } from './useCreateBettingSessionDemo';\n","export * from './mutations';\n"],"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","fetchBettingSessionTimePlayed","data","baseAPI","patch","concat","sessionId","fetchCreateBettingSession","response","post","useCreateBettingSession","dispatch","useDispatch","bettingSessionTimePlayed","useBettingSessionTimePlayed","mutate","mutateAsync","isPending","isLoading","error","isError","reset","useMutation","mutationFn","onSuccess","variables","sessionStorage","removeItem","LocalStorageKey","BettingSessionId","bettingSessionTimePlayedAsync","pathname","usePathname","setSessionId","useState","GamingAggregatorId","setItem","id","window","addEventListener","event","returnValue","aggregatorId","Softswiss","setHasSlotSession","Betby","AuthService","setBetbyToken","gateway","token","console","log","handleBettingSessionTimePlayed","handleUnloadEvent","useEffect","onTokenExpired","useCallback","createBettingSession","createBettingSessionAsync","onUnmount","fetchCreateBettingSessionDemo","useCreateBettingSessionDemo","_","createBettingSessionDemo"],"sourceRoot":""}