a||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + \"f00225f7\" + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"leben-raffle:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkleben_raffle\"] = self[\"webpackChunkleben_raffle\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}","import * as React from \"react\";\nimport type { History, Location } from \"history\";\nimport { Action as NavigationType } from \"history\";\n\nimport type { RouteMatch } from \"./router\";\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level {text} {text} Ficheros de máximo 200MB {selectedFile.name} \r\n Todavía no se ha realizado el sorteo\r\n \r\n {moment(raffle.CreationDatetime).format(\r\n \"[Sorteo realizado el ] DD/MM/YYYY [ a las ] HH:mm\"\r\n )}\r\n \r\n No se ha creado un formulario de confirmación para este\r\n sorteo. Puedes configurar uno a continuación.\r\n {raffleForm.Description} \r\n Para compartir el formulario con los\r\n participantes, copia el siguiente enlace.\r\n Recuerda que este enlace es válido durante{\" \"}\r\n {raffleForm.ExpiresIn === 0\r\n ? \"(no caduca)\"\r\n : `${raffleForm.ExpiresIn} días`}{\" \"}\r\n desde hoy.\r\n Inicio de sesión ¡Te esperamos en el siguiente! \r\n En breve nos pondremos en contacto contigo para enviarte tu\r\n premio.\r\n \r\n Inténtalo de nuevo más tarde. Si el error persiste, ponte en\r\n contacto con el organizador del sorteo\r\n {raffleForm.Description}{value}
\r\n\r\n LebenRaffle
\r\n \r\n
\r\n Todos los Sorteos
\r\n \r\n
\r\n Lista de sorteos
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {raffles.map((item, i) => (\r\n Nombre \r\n # Premio(s) \r\n # Participantes \r\n Procesado \r\n Acciones \r\n \r\n \r\n ))}\r\n \r\n {item.Name} \r\n {item.WinnerNumber} + {item.BenchNumber} \r\n {item.ParticipantNumber} \r\n \r\n {item.RaffleDatetime == null ? (\r\n No\r\n ) : (\r\n Sí\r\n ) }\r\n \r\n \r\n Ver\r\n \r\n {value}
\r\n\r\n \r\n {random.join(', ')}\r\n
\r\n );\r\n\r\n}","export default function ActionBox({text, value, bgColorClass, icon, action, actionText}){\r\n\r\n\r\n\r\n return (\r\n\r\n \r\n );\r\n\r\n\r\n}","import { useEffect, useState } from \"react\";\r\nimport { API, getApiKey, urlBase } from \"../APICalls\";\r\n\r\nexport default function FileUploader({onFileUploadDone}){\r\n\r\n\r\n const [isSelectedFile, setIsSelectedFile] = useState(false);\r\n const [selectedFile, setSelectedFile] = useState(null);\r\n const [uploadedPercentage, setUploadedPercentage] = useState(0);\r\n \r\n\r\n const onSelectedFile = (evt) => {\r\n var file = evt.target.files[0];\r\n \r\n setSelectedFile(null);\r\n setIsSelectedFile(false);\r\n setUploadedPercentage(0);\r\n\r\n if(file != null)\r\n {\r\n setSelectedFile(file);\r\n setIsSelectedFile(true);\r\n\r\n // MANAGE UPLOAD\r\n\r\n var formdata = new FormData();\r\n formdata.append(file.name, file);\r\n\r\n var xhr = new XMLHttpRequest();\r\n xhr.open(\"POST\", urlBase + '/api/File');\r\n\r\n xhr.setRequestHeader(\"Authorization\", getApiKey());\r\n\r\n xhr.upload.addEventListener('progress', function(evt) {\r\n\r\n // Update percentage\r\n var percentageLoaded = Math.floor((evt.loaded/evt.total) * 100);\r\n setUploadedPercentage(percentageLoaded);\r\n\r\n });\r\n\r\n xhr.onreadystatechange = function() {\r\n if (xhr.readyState == XMLHttpRequest.DONE) {\r\n onFileUploadDone(JSON.parse(xhr.response));\r\n }\r\n }\r\n\r\n\r\n\r\n xhr.send(formdata);\r\n }\r\n };\r\n\r\n return (\r\n\r\n <>\r\n
\r\n
\r\n \r\n {isSelectedFile ? (\r\n <>\r\n \r\n
Sorteo: {raffle.Name}
\r\n \r\n
\r\n Detalles
\r\n Resultado
\r\n
\r\n \r\n Iniciar Sorteo\r\n \r\n >\r\n ) : (\r\n <>\r\n {processingRaffle ? (\r\n \r\n Ganadores:{\" \"}\r\n {raffle.RaffleResult.split(\", \")\r\n .slice(0, raffle.WinnerNumber)\r\n .join(\", \")}\r\n
\r\n \r\n Suplentes:{\" \"}\r\n {raffle.RaffleResult.split(\", \")\r\n .slice(raffle.WinnerNumber)\r\n .join(\", \")}\r\n
\r\n >\r\n ) : (\r\n
\r\n
\r\n {processingRaffle ? (\r\n \r\n Procesando Sorteo...\r\n \r\n ) : (\r\n <>>\r\n // Reiniciar Sorteo\r\n )}\r\n >\r\n )}\r\n Formulario de confirmación
\r\n {raffleForm.Title}
\r\n \r\n {raffleForm.ExpiresIn === 0\r\n ? \"El formulario no caduca\"\r\n : `Caduca después de ${raffleForm.ExpiresIn} días`}\r\n \r\n {raffleFormImageFile && (\r\n \r\n )}\r\n
\r\n Enlace\r\n
\r\n \r\n )}\r\n
Crear sorteo
\r\n \r\n
\r\n Detalles
\r\n Todos los Usuarios
\r\n \r\n
\r\n Lista de usuarios
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {users.map((item, i) => (\r\n Nombre \r\n Apellido \r\n Acciones \r\n \r\n \r\n ))}\r\n \r\n {item.Name} \r\n {item.Surname} \r\n \r\n \r\n \r\n Crear Usuario
\r\n \r\n
\r\n \r\n
Crear Usuario
\r\n \r\n
\r\n \r\n
400
\r\n \r\n {\" \"}\r\n Oops! Lo sentimos, ha pasado el plazo que tenías para enviarnos\r\n tus datos desde que se notifica el premio.\r\n
\r\n \r\n
{\":)\"}
\r\n \r\n {\" \"}\r\n ¡Enhorabuena! Hemos recibido tus datos correctamente\r\n
\r\n \r\n
500
\r\n \r\n {\" \"}\r\n Oops! Ha ocurrido un error al guardar tus datos\r\n
\r\n \r\n
\r\n {raffleForm.Title}\r\n
\r\n \r\n