openstack-uicore-foundation 4.0.95 → 4.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/lib/components/ajaxloader.js +1 -2
  2. package/lib/components/attendance-tracker.js +1 -2
  3. package/lib/components/bulk-actions-selector.js +1 -2
  4. package/lib/components/circle-button.js +1 -2
  5. package/lib/components/clock.js +1 -2
  6. package/lib/components/exclusive-wrapper.js +1 -2
  7. package/lib/components/extra-questions.js +1 -2
  8. package/lib/components/form-validation.js +1 -2
  9. package/lib/components/forms/rsvp-form.js +1 -2
  10. package/lib/components/forms/simple-form.js +1 -2
  11. package/lib/components/free-text-search.js +1 -2
  12. package/lib/components/google-map.js +1 -2
  13. package/lib/components/index.js +1 -2
  14. package/lib/components/inputs/access-levels-input.js +1 -2
  15. package/lib/components/inputs/action-dropdown.js +1 -2
  16. package/lib/components/inputs/checkbox-list.js +1 -2
  17. package/lib/components/inputs/company-input.js +1 -2
  18. package/lib/components/inputs/country-dropdown.js +1 -2
  19. package/lib/components/inputs/country-input.js +1 -2
  20. package/lib/components/inputs/datetimepicker.js +1 -2
  21. package/lib/components/inputs/dropdown.js +1 -2
  22. package/lib/components/inputs/editor-input.js +1 -2
  23. package/lib/components/inputs/event-input.js +1 -2
  24. package/lib/components/inputs/free-multi-text-input.js +1 -2
  25. package/lib/components/inputs/group-input.js +1 -2
  26. package/lib/components/inputs/grouped-dropdown.js +1 -2
  27. package/lib/components/inputs/language-input.js +1 -2
  28. package/lib/components/inputs/member-input.js +1 -2
  29. package/lib/components/inputs/operator-input.js +1 -2
  30. package/lib/components/inputs/organization-input.js +1 -2
  31. package/lib/components/inputs/promocode-input.js +1 -2
  32. package/lib/components/inputs/radio-list.js +1 -2
  33. package/lib/components/inputs/registration-company-input.js +1 -2
  34. package/lib/components/inputs/speaker-input.js +1 -2
  35. package/lib/components/inputs/sponsor-input.js +1 -2
  36. package/lib/components/inputs/stepped-select.js +1 -2
  37. package/lib/components/inputs/summit-days-select.js +1 -2
  38. package/lib/components/inputs/summit-input.js +1 -2
  39. package/lib/components/inputs/summit-venues-select.js +1 -2
  40. package/lib/components/inputs/tag-input.js +1 -2
  41. package/lib/components/inputs/text-input.js +1 -2
  42. package/lib/components/inputs/textarea-input.js +1 -2
  43. package/lib/components/inputs/ticket-types-input.js +1 -2
  44. package/lib/components/inputs/upload-input-v2.js +1 -2
  45. package/lib/components/inputs/upload-input.js +1 -2
  46. package/lib/components/progressive-img.js +1 -2
  47. package/lib/components/raw-html.js +1 -2
  48. package/lib/components/schedule-builder-constants.js +1 -2
  49. package/lib/components/schedule-builder-view.js +1 -2
  50. package/lib/components/sections/panel.js +1 -2
  51. package/lib/components/simple-link-list.js +1 -2
  52. package/lib/components/sponsored-project-input.js +1 -2
  53. package/lib/components/summit-dropdown.js +1 -2
  54. package/lib/components/table-editable.js +1 -2
  55. package/lib/components/table-selectable.js +1 -2
  56. package/lib/components/table-sortable.js +1 -2
  57. package/lib/components/table.js +1 -2
  58. package/lib/components/video-stream.js +1 -2
  59. package/lib/i18n.js +1 -2
  60. package/lib/models/index.js +1 -2
  61. package/lib/models/summit-event.js +1 -2
  62. package/lib/security/abstract-auth-callback-route.js +1 -2
  63. package/lib/security/actions.js +1 -2
  64. package/lib/security/constants.js +1 -2
  65. package/lib/security/methods.js +1 -2
  66. package/lib/security/reducers.js +1 -2
  67. package/lib/security/session-checker.js +1 -2
  68. package/lib/utils/actions.js +1 -2
  69. package/lib/utils/fragment-parser.js +1 -2
  70. package/lib/utils/methods.js +1 -2
  71. package/lib/utils/query-actions.js +1 -2
  72. package/lib/utils/questions-set.js +1 -2
  73. package/lib/utils/reducers.js +1 -2
  74. package/lib/utils/use-fit-text.js +1 -2
  75. package/package.json +1 -1
  76. package/lib/components/ajaxloader.js.map +0 -1
  77. package/lib/components/attendance-tracker.js.map +0 -1
  78. package/lib/components/bulk-actions-selector.js.map +0 -1
  79. package/lib/components/circle-button.js.map +0 -1
  80. package/lib/components/clock.js.map +0 -1
  81. package/lib/components/exclusive-wrapper.js.map +0 -1
  82. package/lib/components/extra-questions.js.map +0 -1
  83. package/lib/components/form-validation.js.map +0 -1
  84. package/lib/components/forms/rsvp-form.js.map +0 -1
  85. package/lib/components/forms/simple-form.js.map +0 -1
  86. package/lib/components/free-text-search.js.map +0 -1
  87. package/lib/components/google-map.js.map +0 -1
  88. package/lib/components/index.js.map +0 -1
  89. package/lib/components/inputs/access-levels-input.js.map +0 -1
  90. package/lib/components/inputs/action-dropdown.js.map +0 -1
  91. package/lib/components/inputs/checkbox-list.js.map +0 -1
  92. package/lib/components/inputs/company-input.js.map +0 -1
  93. package/lib/components/inputs/country-dropdown.js.map +0 -1
  94. package/lib/components/inputs/country-input.js.map +0 -1
  95. package/lib/components/inputs/datetimepicker.js.map +0 -1
  96. package/lib/components/inputs/dropdown.js.map +0 -1
  97. package/lib/components/inputs/editor-input.js.map +0 -1
  98. package/lib/components/inputs/event-input.js.map +0 -1
  99. package/lib/components/inputs/free-multi-text-input.js.map +0 -1
  100. package/lib/components/inputs/group-input.js.map +0 -1
  101. package/lib/components/inputs/grouped-dropdown.js.map +0 -1
  102. package/lib/components/inputs/language-input.js.map +0 -1
  103. package/lib/components/inputs/member-input.js.map +0 -1
  104. package/lib/components/inputs/operator-input.js.map +0 -1
  105. package/lib/components/inputs/organization-input.js.map +0 -1
  106. package/lib/components/inputs/promocode-input.js.map +0 -1
  107. package/lib/components/inputs/radio-list.js.map +0 -1
  108. package/lib/components/inputs/registration-company-input.js.map +0 -1
  109. package/lib/components/inputs/speaker-input.js.map +0 -1
  110. package/lib/components/inputs/sponsor-input.js.map +0 -1
  111. package/lib/components/inputs/stepped-select.js.map +0 -1
  112. package/lib/components/inputs/summit-days-select.js.map +0 -1
  113. package/lib/components/inputs/summit-input.js.map +0 -1
  114. package/lib/components/inputs/summit-venues-select.js.map +0 -1
  115. package/lib/components/inputs/tag-input.js.map +0 -1
  116. package/lib/components/inputs/text-input.js.map +0 -1
  117. package/lib/components/inputs/textarea-input.js.map +0 -1
  118. package/lib/components/inputs/ticket-types-input.js.map +0 -1
  119. package/lib/components/inputs/upload-input-v2.js.map +0 -1
  120. package/lib/components/inputs/upload-input.js.map +0 -1
  121. package/lib/components/progressive-img.js.map +0 -1
  122. package/lib/components/raw-html.js.map +0 -1
  123. package/lib/components/schedule-builder-constants.js.map +0 -1
  124. package/lib/components/schedule-builder-view.js.map +0 -1
  125. package/lib/components/sections/panel.js.map +0 -1
  126. package/lib/components/simple-link-list.js.map +0 -1
  127. package/lib/components/sponsored-project-input.js.map +0 -1
  128. package/lib/components/summit-dropdown.js.map +0 -1
  129. package/lib/components/table-editable.js.map +0 -1
  130. package/lib/components/table-selectable.js.map +0 -1
  131. package/lib/components/table-sortable.js.map +0 -1
  132. package/lib/components/table.js.map +0 -1
  133. package/lib/components/video-stream.js.map +0 -1
  134. package/lib/i18n.js.map +0 -1
  135. package/lib/models/index.js.map +0 -1
  136. package/lib/models/summit-event.js.map +0 -1
  137. package/lib/security/abstract-auth-callback-route.js.map +0 -1
  138. package/lib/security/actions.js.map +0 -1
  139. package/lib/security/constants.js.map +0 -1
  140. package/lib/security/methods.js.map +0 -1
  141. package/lib/security/reducers.js.map +0 -1
  142. package/lib/security/session-checker.js.map +0 -1
  143. package/lib/utils/actions.js.map +0 -1
  144. package/lib/utils/fragment-parser.js.map +0 -1
  145. package/lib/utils/methods.js.map +0 -1
  146. package/lib/utils/query-actions.js.map +0 -1
  147. package/lib/utils/questions-set.js.map +0 -1
  148. package/lib/utils/reducers.js.map +0 -1
  149. package/lib/utils/use-fit-text.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/progressive-img.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BA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AASL,GAAkBC,IAChDK,EAAaC,IAAkBF,EAAAA,EAAAA,UAASG,GA0B/C,OAxBAC,EAAAA,EAAAA,YAAU,KACN,MAAMC,EAAM,IAAIC,MACVC,EAAOX,EAAIY,MAAM,KAAKC,MAC5BJ,EAAIT,IAAMA,EACVS,EAAIK,OAAS,KACTX,EAAUH,GACVM,EAAeC,EAAf,EAEJE,EAAIM,QAAU,KACVN,EAAIM,QAAU,KACXJ,EAAIK,SAAS,OACZb,EAAUc,GACNN,EAAIK,SAAS,OACjBb,EAAUe,GACNP,EAAIK,SAAS,OACjBb,EAAUgB,GACNR,EAAIK,SAAS,OACjBb,EAAUiB,GAEVjB,EAAUkB,GACdf,EAAeC,EAAf,CAZJ,GAcD,CAACP,IAGA,+B,iWAAA,EACUA,IAAKE,GAAWD,GAD1B,CAEIqB,IAAKrB,EAAMqB,KAAO,GAClBC,UAAY,GAAEhB,KAAgBF,MAJtC,C","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/progressive-img/index.module.scss","webpack://openstack-uicore-foundation/./src/components/progressive-img/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"react\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","// extracted by mini-css-extract-plugin\nexport default {\"loading\":\"T1PEDYso224efj98hUw9\",\"loaded\":\"HydBuzzegFMoqMkrptg7\",\"image\":\"Pq0tg32DAJ33TmIQMvMs\"};","/**\n * Copyright 2023 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\nimport React,{ useState, useEffect } from \"react\";\nimport styles from './index.module.scss';\nimport pdf_icon from \"../inputs/upload-input/pdf.png\";\nimport mov_icon from \"../inputs/upload-input/mov.png\";\nimport mp4_icon from \"../inputs/upload-input/mp4.png\";\nimport csv_icon from \"../inputs/upload-input/csv.png\";\nimport file_icon from \"../inputs/upload-input/file.png\";\n/**\n *\n * @param placeholderSrc\n * @param src\n * @param props\n * @returns {JSX.Element}\n * @constructor\n */\nconst ProgressiveImg = ({ placeholderSrc, src, ...props }) => {\n const [imgSrc, setImgSrc] = useState(placeholderSrc || src);\n const [customClass, setCustomClass] = useState(styles.loading);\n\n useEffect(() => {\n const img = new Image();\n const ext = src.split('.').pop();\n img.src = src;\n img.onload = () => {\n setImgSrc(src)\n setCustomClass(styles.loaded)\n };\n img.onerror = () => {\n img.onerror = null;\n if(ext.includes('pdf'))\n setImgSrc(pdf_icon)\n else if(ext.includes('mov'))\n setImgSrc(mov_icon);\n else if(ext.includes('mp4'))\n setImgSrc(mp4_icon);\n else if(ext.includes('csv'))\n setImgSrc(csv_icon);\n else\n setImgSrc(file_icon);\n setCustomClass(styles.loaded)\n };\n }, [src]);\n\n return (\n <img\n {...{ src: imgSrc, ...props }}\n alt={props.alt || \"\"}\n className={`${styles.image} ${customClass}`}\n />\n );\n};\nexport default ProgressiveImg;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","placeholderSrc","src","props","imgSrc","setImgSrc","useState","customClass","setCustomClass","styles","useEffect","img","Image","ext","split","pop","onload","onerror","includes","pdf_icon","mov_icon","mp4_icon","csv_icon","file_icon","alt","className"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/raw-html.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,+ECH9D,MAIA,EAJgB,EAAEC,WAAUC,kBAAiB,EAAOC,YAAY,MAC5D,0BAAMA,UAAWA,EACXC,wBAAyB,CAAEC,OAAQH,EAAiBD,aAAH,EAAGA,EAAUK,QAAQ,MAAO,UAAYL,I","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/raw-html/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"react\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","import React from 'react';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\"}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} />\n\nexport default RawHTML;"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","children","replaceNewLine","className","dangerouslySetInnerHTML","__html","replace"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/schedule-builder-constants.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mBCRT,IAAIC,EAAsB,CAAC,E,MCA3BA,EAAoBC,EAAI,CAACN,EAASO,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAET,EAASQ,IAC5EE,OAAOC,eAAeX,EAASQ,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDH,EAAoBI,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFV,EAAoBc,EAAKnB,IACH,oBAAXoB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeX,EAASoB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeX,EAAS,aAAc,CAAEsB,OAAO,GAAO,C,uICLvD,MAAMC,EAAqB,CAC9BC,gBAAiB,kBACjBC,cAAe,iBAGNC,EAAc,CAACC,GAAK,EAAGC,KAAO,MAAOC,WAAY,eACjDC,EAAkB,CAAC,EAAE,GAAG,GAAG,GAAG,IAC9BC,EAAkB,EAClBC,EAAc,CACvB,CAACV,MAAO,mBAAoBW,MAAO,QACnC,CAACX,MAAO,sBAAuBW,MAAO,c","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/schedule-builder-view/constants.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","export const DraggableItemTypes = {\n UNSCHEDULEEVENT: 'UnScheduleEvent',\n SCHEDULEEVENT: 'ScheduleEvent',\n};\n\nexport const TBALocation = {id : 0, name : 'TBD', class_name: 'SummitVenue'};\nexport const SlotSizeOptions = [5,10,15,30,60]; // 12 - 6 - 4 - 2 - 1\nexport const PixelsPerMinute = 3;\nexport const bulkOptions = [\n {value: 'BULK_ACTION_EDIT', label: 'Edit'},\n {value: 'BULK_ACTION_PUBLISH', label: 'Unpublish'},\n];\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_require__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","DraggableItemTypes","UNSCHEDULEEVENT","SCHEDULEEVENT","TBALocation","id","name","class_name","SlotSizeOptions","PixelsPerMinute","bulkOptions","label"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/schedule-builder-view.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,0GCOT,MAAMC,UAA0CC,IAAAA,UAE5CC,sBACI,IAAIC,EAAqBJ,KAAKK,iBAAiBC,MACrB,KAAvBF,GAC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kBAAC,UAAD,CACItB,YAAaA,EAAAA,YACbD,YAAaH,EAAMG,YACnBF,qBAAsBD,EAAMC,uBAGnC4M,GAAcqD,GACX,kBAAC,EAAD,CACInL,UAAU,QACV6K,QAAQ,QACR9C,cAAepJ,EACfsB,SAAUd,EACV2I,WAAYA,EACZI,gBAAiB1J,EAAAA,gBACjB2J,aAAclN,EAAMkN,aACpByB,gBAAiB3O,EAAM2O,gBACvB5B,OAAQiD,EACRtH,iBAAkB1I,EAAM0I,iBACxBC,YAAa3I,EAAM2I,YACnBC,gBAAiB5I,EAAM4I,gBACvBC,wBAAyBoH,IAhDzC,C","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/bulk-actions-selector/index.js","webpack://openstack-uicore-foundation/./src/components/inputs/stepped-select/index.module.less","webpack://openstack-uicore-foundation/./src/components/inputs/stepped-select/index.jsx","webpack://openstack-uicore-foundation/./src/components/inputs/summit-days-select.js","webpack://openstack-uicore-foundation/./src/components/inputs/summit-venues-select.js","webpack://openstack-uicore-foundation/./src/components/raw-html/index.js","webpack://openstack-uicore-foundation/./src/components/schedule-builder-view/constants.js","webpack://openstack-uicore-foundation/./src/models/summit-event.js","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-dnd\"","webpack://openstack-uicore-foundation/external commonjs \"react-dom\"","webpack://openstack-uicore-foundation/external commonjs \"react-select\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"react-bootstrap\"","webpack://openstack-uicore-foundation/./src/components/schedule-builder-view/schedule-event.js","webpack://openstack-uicore-foundation/./src/components/schedule-builder-view/schedule-event-list.js","webpack://openstack-uicore-foundation/./src/components/schedule-builder-view/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport T from \"i18n-react/dist/i18n-react\";\nimport './styles.less';\nclass ScheduleAdminsBulkActionsSelector extends React.Component {\n\n onPerformBulkAction(){\n let selectedBulkAction = this.actionTypeSelect.value;\n if(selectedBulkAction === '') return;\n this.props.onSelectedBulkAction(selectedBulkAction);\n }\n\n render(){\n let { onSelectAll, bulkOptions } = this.props;\n return (\n <div className=\"row bulk-actions-selector-container\">\n <div className=\"col-md-8\">\n <input type=\"checkbox\" onClick={onSelectAll}/>\n <select ref={(select) => { this.actionTypeSelect = select; }}>\n <option value=\"\">{T.translate(\"published_bulk_actions_selector.options.default\")}</option>\n {\n bulkOptions.map((option, idx) => (\n <option key={idx} value={option.value}>{option.label}</option>\n ))\n }\n </select>\n </div>\n <div className=\"col-md-4\">\n <button onClick={this.onPerformBulkAction.bind(this)} title={ T.translate(\"published_bulk_actions_selector.titles.go\")} className=\"btn btn-default btn-sm\">\n <i className=\"fa fa-play\">&nbsp;{T.translate(\"published_bulk_actions_selector.buttons.go\")}</i>\n </button>\n </div>\n </div>\n )\n }\n}\n\nexport default ScheduleAdminsBulkActionsSelector;\n","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"tDZTa8dy9OMVyGAtxNOS\",\"valueBox\":\"VoBl8JcsRZelj8EKGKtC\"};","import React from 'react';\nimport styles from './index.module.less';\n\nexport default ({value, options, onChange, ...rest}) => {\n\n const handleChange = (increment) => {\n const currentOptionKey = options.findIndex(op => op.value === value);\n if (currentOptionKey >= 0) {\n if (increment) {\n if (currentOptionKey < options.length -1) {\n onChange(options[currentOptionKey + 1].value);\n }\n } else {\n if (currentOptionKey > 0) {\n onChange(options[currentOptionKey - 1].value);\n }\n }\n }\n };\n\n const valueLabel = options.find(op => op.value === value).label;\n\n return (\n <div className={styles.wrapper} {...rest}>\n <button className=\"btn btn-default\" onClick={() => handleChange(false)}>\n <i className=\"fa fa-minus\"/>\n </button>\n <span className={styles.valueBox}>{valueLabel}</span>\n <button className=\"btn btn-default\" onClick={() => handleChange(true)}>\n <i className=\"fa fa-plus\"/>\n </button>\n </div>\n );\n};\n","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport Select from 'react-select';\n\nconst SummitDaysSelect = ({ days, currentValue, placeholder, onDayChanged }) => {\n const theValue = days.find(op => op.value === currentValue);\n\n const onChange = (selectedOption) => {\n onDayChanged(selectedOption?.value || null);\n };\n\n return (\n <Select\n placeholder={placeholder} //T.translate(\"schedule.placeholders.select_day\")\n className=\"day-selector\"\n name=\"form-field-name\"\n value={theValue}\n onChange={onChange}\n options={days}\n />\n );\n}\n\nexport default SummitDaysSelect;\n","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport Select from 'react-select';\n\nconst SummitVenuesSelect = ({venues, currentValue, placeholder, onVenueChanged}) => {\n const parsedValue = venues.find(v => v.value.id === currentValue?.id) || null;\n const renderOption = (option) => {\n let location = option.value;\n if (location.class_name === 'SummitVenue')\n return (<span className=\"location-option-venue\">{location.name}</span>);\n return (<span className=\"location-option-room\">-&nbsp;{location.name}</span>);\n }\n\n const onChange = (selectedOption) => {\n onVenueChanged(selectedOption?.value || null);\n }\n\n return (\n <Select\n placeholder={placeholder}\n className=\"venues-selector\"\n name=\"form-field-name\"\n value={parsedValue}\n onChange={onChange}\n options={venues}\n optionRenderer={renderOption}\n />\n );\n}\n\nexport default SummitVenuesSelect;\n","import React from 'react';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\"}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} />\n\nexport default RawHTML;","export const DraggableItemTypes = {\n UNSCHEDULEEVENT: 'UnScheduleEvent',\n SCHEDULEEVENT: 'ScheduleEvent',\n};\n\nexport const TBALocation = {id : 0, name : 'TBD', class_name: 'SummitVenue'};\nexport const SlotSizeOptions = [5,10,15,30,60]; // 12 - 6 - 4 - 2 - 1\nexport const PixelsPerMinute = 3;\nexport const bulkOptions = [\n {value: 'BULK_ACTION_EDIT', label: 'Edit'},\n {value: 'BULK_ACTION_PUBLISH', label: 'Unpublish'},\n];\n","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone'\n\nclass SummitEvent {\n\n constructor(event, summit = null){\n this._event = event;\n this._summit = summit;\n }\n\n set summit(summit){\n this._summit = summit;\n }\n\n get summit(){\n return this._summit;\n }\n\n getId(){\n return this._event.id;\n }\n\n isPublished(){\n return this._event.hasOwnProperty('is_published') && this._event.is_published;\n }\n\n getMinutesDuration(slotSize){\n\n if(this._event.hasOwnProperty('start_date') && this._event.hasOwnProperty('end_date') && this._event.start_date != null && this._event.end_date != null ) {\n let eventStartDateTime = moment(this._event.start_date * 1000).tz(this._summit.time_zone.name);\n let eventEndDateTime = moment(this._event.end_date * 1000).tz(this._summit.time_zone.name);\n return eventEndDateTime.diff(eventStartDateTime, 'minutes');\n }\n // default\n\n return this._event.hasOwnProperty('duration') && this._event.duration > 0 ? parseInt( this._event.duration / 60 ) : slotSize;\n }\n\n canMove(siblings, day, startTime, interval){\n\n let duration = this._event.hasOwnProperty('duration') && this._event.duration > 0 ? parseInt( this._event.duration / 60 ) : interval;\n // check if published to get real duration ...\n if(this.isPublished())\n duration = this.getMinutesDuration();\n\n let startDateTime = moment.tz(day+' '+ startTime.format('HH:mm'), 'YYYY-MM-DD HH:mm', this._summit.time_zone.name);\n let endDateTime = moment.tz(day+' '+ startTime.format('HH:mm'), 'YYYY-MM-DD HH:mm', this._summit.time_zone.name);\n endDateTime = endDateTime.add(duration, 'minutes');\n\n // check siblings overlap\n for (let auxEvent of siblings.filter(item => item.id !== this.getId())) {\n let auxEventStartDateTime = moment(auxEvent.start_date * 1000).tz(this._summit.time_zone.name);\n let auxEventEndDateTime = moment(auxEvent.end_date * 1000).tz(this._summit.time_zone.name);\n\n // if time segments overlap\n if(auxEventStartDateTime.isBefore(endDateTime) && auxEventEndDateTime.isAfter(startDateTime))\n return false;\n }\n\n return true;\n }\n\n calculateNewDates(day, startTime, minutes){\n\n minutes = this._event.hasOwnProperty('duration') && this._event.duration > 0 ?\n parseInt( this._event.duration / 60 ) : minutes;\n\n let newStarDateTime = moment.tz(day+' '+startTime.format('HH:mm'), 'YYYY-MM-DD HH:mm', this._summit.time_zone.name);\n let newEndDateTime = moment.tz(day+' '+startTime.format('HH:mm'), 'YYYY-MM-DD HH:mm', this._summit.time_zone.name).add(minutes, 'minutes');\n return [newStarDateTime, newEndDateTime];\n }\n\n isValidEndDate(endDate){\n if(endDate == null) return true;\n let startDate = moment.tz(this._event.start_date * 1000, this._summit.time_zone.name);\n endDate = moment.tz(endDate * 1000, this._summit.time_zone.name);\n let summitEndDate = moment.tz(this._summit.end_date * 1000, this._summit.time_zone.name);\n return endDate.isAfter(startDate) && (endDate.isBefore(summitEndDate) || endDate.isSame(summitEndDate));\n }\n\n isValidStartDate(startDate){\n if(startDate == null) return true;\n startDate = moment.tz(startDate* 1000, this._summit.time_zone.name);\n let endDate = moment.tz(this._event.end_date * 1000, this._summit.time_zone.name);\n let summitStartDate = moment.tz(this._summit.start_date * 1000, this._summit.time_zone.name);\n return moment.isMoment(startDate) && startDate.isAfter(summitStartDate) && startDate.isBefore(endDate);\n }\n\n isValidTitle(title){\n return title.trim() !== '';\n }\n\n isValid(){\n return this.isValidTitle(this._event.title)\n && this.isValidStartDate(this._event.start_date)\n && this.isValidEndDate(this._event.end_date);\n }\n\n}\n\nexport default SummitEvent;\n","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"i18n-react\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"moment-timezone\");","module.exports = require(\"react\");","module.exports = require(\"react-dnd\");","module.exports = require(\"react-dom\");","module.exports = require(\"react-select\");","module.exports = require(\"urijs\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react-bootstrap\");","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React, {useState, useEffect} from 'react';\nimport {DraggableItemTypes} from './constants';\nimport {useDrag} from 'react-dnd';\nimport {Popover, OverlayTrigger} from 'react-bootstrap';\nimport RawHTML from '../raw-html';\n\nconst RESIZING_DIR_NORTH = 'N';\nconst RESIZING_DIR_SOUTH = 'S';\n\nconst ScheduleEvent = ({\n event,\n step,\n initialTop,\n initialHeight,\n minHeight,\n maxHeight,\n canResize,\n onResized,\n onUnPublishEvent,\n onEditEvent,\n onClickSelected,\n selectedPublishedEvents\n }) => {\n const [collected, drag] = useDrag(() => ({\n type: DraggableItemTypes.SCHEDULEEVENT,\n item: {id: event.id, title: event.title, is_published: event.is_published, start_date: event.start_date, end_date: event.end_date, duration: event.duration},\n collect: (monitor) => ({\n isDragging: monitor.isDragging(),\n }),\n canDrag: !event.static\n }), [event.id, event.duration, event.start_date, event.end_date]);\n const [resizeInfo, setResizeInfo] = useState({resizing: false, type: null, lastYPos: null});\n const [size, setSize] = useState({top: initialTop, height: initialHeight});\n const isSelected = selectedPublishedEvents?.includes(event.id) || false;\n const canEdit = !event.static;\n const allowResize = canEdit && size.height > 15;\n\n const popoverHoverFocus = () =>\n <Popover id=\"popover-trigger-focus\" title={event.title}>\n <RawHTML>{event.description}</RawHTML>\n </Popover>\n\n // resize behavior\n\n const onMouseDown = (evt) => {\n if (!evt.target.getAttribute('data-resizable')) return;\n\n const box = evt.target.getBoundingClientRect();\n\n let type;\n if (evt.clientY - box.top < 10) {\n type = RESIZING_DIR_NORTH;\n } else if (box.bottom - evt.clientY < 10) {\n type = RESIZING_DIR_SOUTH;\n } else {\n return;\n }\n\n setResizeInfo({resizing: true, type, lastYPos: evt.pageY});\n\n evt.preventDefault();\n }\n\n const onMouseMove = (evt) => {\n if (!resizeInfo.resizing) return;\n\n let lastYPos = resizeInfo.lastYPos;\n let newYPos = evt.pageY;\n let deltaY = newYPos - lastYPos;\n\n if (step && step > 0) {\n let steps = parseInt(Math.round(Math.abs(deltaY) / step));\n deltaY = Math.sign(deltaY) * steps * step;\n if (!deltaY) {\n evt.preventDefault();\n return false;\n }\n }\n\n let newHeight = size.height;\n let newTop = size.top;\n\n if (resizeInfo.type === RESIZING_DIR_SOUTH) {\n newHeight = size.height + deltaY;\n }\n\n if (resizeInfo.type === RESIZING_DIR_NORTH) {\n if (deltaY < 0) {\n newTop = size.top - Math.abs(deltaY);\n newHeight = size.height + Math.abs(deltaY);\n } else {\n newTop = size.top + Math.abs(deltaY);\n newHeight = size.height - Math.abs(deltaY);\n }\n }\n\n // check constraints\n if (newHeight < minHeight) {\n newHeight = minHeight;\n newYPos = lastYPos;\n newTop = size.top;\n }\n\n let maxHeightTmp = (typeof maxHeight === \"function\") ? maxHeight() : maxHeight;\n\n if (newHeight > maxHeightTmp) {\n newHeight = maxHeightTmp;\n newYPos = lastYPos;\n newTop = size.top;\n }\n\n if (newTop < 0) {\n newTop = 0;\n newHeight = size.height;\n newYPos = lastYPos;\n }\n\n if (canResize(event.id, newTop, newHeight)) {\n setResizeInfo({\n ...resizeInfo,\n resizing: true,\n lastYPos: newYPos\n });\n\n setSize({\n top: newTop,\n height: newHeight,\n });\n }\n\n evt.preventDefault();\n };\n\n const onMouseUp = (evt) => {\n evt.preventDefault();\n setResizeInfo({type: null, lastYPos: null, resizing: false});\n };\n \n const eventTitleBlock = () => {\n let block = null;\n \n if (event.description) {\n block = (<OverlayTrigger trigger={['hover']} placement=\"bottom\" overlay={popoverHoverFocus()}>\n <div className=\"event-content\">\n <span className=\"event-title withTooltip\">{event.title}</span>\n </div>\n </OverlayTrigger>);\n } else {\n block = (<div className=\"event-content\">\n <span className=\"event-title\">{event.title}</span>\n </div>);\n }\n \n return block;\n }\n\n // end resize behavior\n\n useEffect(() => {\n if (resizeInfo.resizing) {\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n } else {\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n\n if (size.top !== initialTop || size.height !== initialHeight) {\n onResized(event.id, size.top, size.height);\n }\n }\n\n return () => {\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n }\n }, [resizeInfo.resizing])\n\n return (\n <div\n className={`row schedule-event ${allowResize ? 'is-resizable' : ''} ${canEdit ? '' : 'is-static'}`}\n data-resizable={true}\n id={`event_${event.id}`}\n onMouseDown={onMouseDown}\n ref={drag}\n style={{\n top: size.top,\n height: size.height,\n display: collected.isDragging ? 'none' : 'block',\n cursor: 'move',\n }}\n >\n {onClickSelected &&\n <div className=\"event-select-wrapper\">\n <input\n className=\"select-event-btn\"\n id={`selected_event_${event.id}`}\n type=\"checkbox\"\n checked={isSelected}\n onChange={() => onClickSelected(event)}\n />\n </div>\n }\n <div className=\"col-md-12 event-container\">\n {eventTitleBlock()}\n </div>\n <div className=\"event-actions\">\n {!event.static &&\n <i\n className=\"fa fa-minus-circle unpublish-event-btn\"\n aria-hidden=\"true\"\n title=\"unpublish event\"\n onClick={() => onUnPublishEvent(event)}\n />\n }\n {onEditEvent &&\n <i\n className=\"fa fa-pencil-square-o edit-published-event-btn\"\n title=\"edit event\"\n aria-hidden=\"true\"\n onClick={() => onEditEvent(event)}\n />\n }\n </div>\n </div>\n );\n}\n\nexport default ScheduleEvent;\n","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributschedule-event-list'ed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React, {useEffect, useRef, useState} from 'react';\nimport moment from 'moment-timezone'\nimport {useDrop} from 'react-dnd'\nimport {DraggableItemTypes} from './constants';\nimport ScheduleEvent from './schedule-event';\nimport ReactDOM from 'react-dom';\nimport SummitEvent from '../../models/summit-event';\n\nconst TimeSlot = ({timeLabel, id}) => {\n return (\n <div id={id} className=\"row time-slot\">\n <div className=\"col-md-12\">\n <span>{timeLabel}</span>\n </div>\n </div>\n )\n}\n\nconst TimeSlotContainer = ( props ) => {\n const {currentDay, currentSummit, events, timeSlot, pixelsPerMinute, interval, canDropEvent, onDroppedEvent} = props;\n const divId = `time_slot_container_${timeSlot.format('HH_mm')}`;\n const [collectedProps, drop] = useDrop(() => ({\n accept: [DraggableItemTypes.UNSCHEDULEEVENT, DraggableItemTypes.SCHEDULEEVENT],\n collect: (monitor) => ({\n isOver: monitor.isOver(),\n canDrop: monitor.canDrop()\n }),\n canDrop: (item, monitor) => {\n if (canDropEvent) return canDropEvent(item, monitor);\n const eventModel = new SummitEvent(item, currentSummit);\n return eventModel.canMove(events, currentDay, timeSlot, interval);\n },\n drop: (item, monitor, component) => {\n onDroppedEvent(item, timeSlot);\n }\n }), [interval, timeSlot]);\n const {isOver, canDrop} = collectedProps;\n\n const renderMinutesContainer = (interval, pixelsPerMinute) => {\n let minutesContainers = [];\n let container_count = 2;\n let container_height = pixelsPerMinute * 5;\n\n for (var i = 0; i < container_count; i++) {\n\n minutesContainers[i] = <div key={i} className=\"minute-container\" style={{\n position: 'relative',\n width: '100%',\n height: `${container_height}px`\n }}/>;\n }\n\n return minutesContainers;\n };\n\n const placeHolderStyle = () => {\n const style = {};\n\n if (isOver) {\n style.backgroundColor = canDrop ? 'green' : 'red';\n style.opacity = 0.5;\n } else if (canDrop) {\n style.backgroundColor = 'yellow';\n style.opacity = 0.5;\n }\n\n return style;\n }\n\n return (\n <div id={divId} ref={drop} className=\"row time-slot-container\" style={placeHolderStyle()}>\n <div className=\"col-md-12\">\n {renderMinutesContainer(interval, pixelsPerMinute)}\n </div>\n </div>\n );\n};\n\n\n\nconst ScheduleEventList = (props) => {\n const [timeSlotsList, setTimeSlotsList] = useState([]);\n const scheduleEventContainer = useRef(null);\n\n useEffect(() => {\n createSlots();\n }, [props.interval]);\n\n const onDroppedEvent = (event, startTime) => {\n props.onScheduleEvent(event, props.currentDay, startTime);\n }\n\n const canResize = (eventId, newTop, newHeight) => {\n const {events, currentDay, startTime, pixelsPerMinute, currentSummit} = props;\n const {height} = getBoundingBox();\n\n if (height < (newTop + newHeight)) {\n return false;\n }\n\n const filteredEvents = events.filter(evt => {\n return evt.id !== eventId;\n });\n // calculate new event start date, end date\n const minutes = Math.floor(newTop / (pixelsPerMinute * (10 / interval)));\n const duration = Math.floor(newHeight / (pixelsPerMinute * (10 / interval)));\n\n let startDateTime = moment.tz(currentDay + ' ' + startTime, 'YYYY-MM-DD HH:mm', currentSummit.time_zone.name);\n startDateTime = startDateTime.add(minutes, 'minutes');\n let endDateTime = moment.tz(currentDay + ' ' + startTime, 'YYYY-MM-DD HH:mm', currentSummit.time_zone.name);\n endDateTime = endDateTime.add(minutes + duration, 'minutes');\n\n for (const auxEvent of filteredEvents) {\n const auxEventStartDateTime = moment(auxEvent.start_date * 1000).tz(currentSummit.time_zone.name);\n const auxEventEndDateTime = moment(auxEvent.end_date * 1000).tz(currentSummit.time_zone.name);\n // if time segments overlap\n if (auxEventStartDateTime.isBefore(endDateTime) && auxEventEndDateTime.isAfter(startDateTime))\n return false;\n }\n\n return true;\n }\n\n const onResized = (eventId, newTop, newHeight) => {\n const {events, currentDay, startTime, pixelsPerMinute, currentSummit} = props;\n const event = events.filter(evt => {\n return evt.id === eventId;\n }).shift();\n const minutes = Math.floor(newTop / (pixelsPerMinute * (10 / interval)));\n const duration = Math.floor(newHeight / (pixelsPerMinute * (10 / interval)));\n let startDateTime = moment.tz(currentDay + ' ' + startTime, 'YYYY-MM-DD HH:mm', currentSummit.time_zone.name);\n startDateTime = startDateTime.add(minutes, 'minutes');\n\n props.onScheduleEvent(event, currentDay, moment(startDateTime.format('HH:mm'), 'HH:mm'), duration);\n }\n\n const getMaxHeight = () => {\n return getBoundingBox().height;\n }\n\n const getBoundingBox = () => {\n return ReactDOM.findDOMNode(scheduleEventContainer.current).getBoundingClientRect();\n }\n\n const calculateInitialTop = (event) => {\n const {currentDay, startTime, pixelsPerMinute, currentSummit} = props;\n const eventStartDateTime = moment(event.start_date * 1000).utc().tz(currentSummit.time_zone.name);\n const dayStartDateTime = moment.tz(currentDay + ' ' + startTime, 'YYYY-MM-DD HH:mm', currentSummit.time_zone.name);\n const minutes = eventStartDateTime.diff(dayStartDateTime, 'minutes');\n return minutes * pixelsPerMinute * (10 / interval);\n }\n\n const calculateInitialHeight = (event) => {\n const {pixelsPerMinute, currentSummit, interval} = props;\n const eventStartDateTime = moment(event.start_date * 1000).tz(currentSummit.time_zone.name);\n const eventEndDateTime = moment(event.end_date * 1000).tz(currentSummit.time_zone.name);\n const minutes = eventEndDateTime.diff(eventStartDateTime, 'minutes');\n return minutes * pixelsPerMinute * (10 / interval);\n }\n\n const createSlots = () => {\n const tmpList = [];\n let done = false;\n const startTimeTZ = moment.tz(startTime, 'HH:mm', currentSummit.time_zone.name);\n const endTimeTZ = moment.tz(endTime, 'HH:mm', currentSummit.time_zone.name);\n // create UI\n let slot = startTimeTZ;\n do {\n tmpList.push(slot);\n slot = slot.clone();\n slot.add(interval, 'm');\n done = slot.isAfter(endTimeTZ);\n } while (!done);\n\n setTimeSlotsList(tmpList);\n };\n\n const {\n events,\n startTime,\n endTime,\n interval,\n pixelsPerMinute,\n currentDay,\n currentSummit,\n canDropEvent,\n onEditEvent,\n onUnPublishEvent,\n onClickSelected,\n selectedPublishedEvents\n } = props;\n\n return (\n <div className=\"row outer-schedule-events-container\">\n <div className=\"col-md-2 no-margin no-padding\">\n {\n timeSlotsList.map((slot, idx) => (\n <TimeSlot timeLabel={slot.format(\"HH:mm\")} key={idx} id={slot.format(\"HH_mm\")}/>\n ))\n }\n </div>\n <div\n className=\"schedule-events-container col-md-10 no-margin no-padding\"\n ref={scheduleEventContainer}\n >\n {\n timeSlotsList.map((slot, idx) => (\n <TimeSlotContainer\n timeSlot={slot}\n canDropEvent={canDropEvent}\n onDroppedEvent={onDroppedEvent}\n key={`timeslot-${idx}`}\n events={events}\n currentSummit={currentSummit}\n interval={interval}\n pixelsPerMinute={pixelsPerMinute}\n currentDay={currentDay}>\n </TimeSlotContainer>\n ))\n }\n {\n events.map((event, idx) => {\n return (\n <ScheduleEvent\n event={event}\n selectedPublishedEvents={selectedPublishedEvents}\n key={`event-${event.id}-${event.start_date}-${event.end_date}-${interval}`}\n type={\"MAIN\"}\n step={pixelsPerMinute * 5}\n minHeight={(pixelsPerMinute * 10)}\n initialTop={calculateInitialTop(event)}\n initialHeight={calculateInitialHeight(event)}\n canResize={canResize}\n onResized={onResized}\n maxHeight={getMaxHeight}\n onUnPublishEvent={onUnPublishEvent}\n onEditEvent={onEditEvent}\n onClickSelected={onClickSelected}\n currentDay={currentDay}>\n </ScheduleEvent>)\n })\n }\n </div>\n </div>\n );\n}\n\nexport default ScheduleEventList;\n","import React, {useMemo} from 'react';\nimport SummitDaysSelect from \"../inputs/summit-days-select\";\nimport SummitVenuesSelect from \"../inputs/summit-venues-select\";\nimport SteppedSelect from \"../inputs/stepped-select/index.jsx\";\nimport ScheduleEventList from \"./schedule-event-list\";\nimport {epochToMomentTimeZone} from \"../../utils/methods\";\nimport BulkActionsSelector from \"../bulk-actions-selector/index.js\";\nimport {TBALocation, SlotSizeOptions, PixelsPerMinute, bulkOptions} from \"./constants\";\nimport T from 'i18n-react';\n\nimport './schedule-builder-view.less';\n\nconst getDaysOptions = (summit) => {\n const days = [];\n const summitLocalStartDate = epochToMomentTimeZone(summit.start_date, summit.time_zone_id);\n const summitLocalEndDate = epochToMomentTimeZone(summit.end_date, summit.time_zone_id);\n let currentAuxDay = summitLocalStartDate.clone();\n\n do {\n const option = {value: currentAuxDay.format(\"YYYY-MM-DD\"), label: currentAuxDay.format('dddd Do , MMMM YYYY')};\n days.push(option);\n currentAuxDay = currentAuxDay.clone();\n currentAuxDay.add(1, 'day');\n } while (!currentAuxDay.isAfter(summitLocalEndDate));\n\n return days;\n};\n\nconst getVenuesOptions = (summit) => {\n const venues = [\n { value: TBALocation, label: TBALocation.name}\n ];\n\n for (let i = 0; i < summit.locations.length; i++) {\n const location = summit.locations[i];\n if (location.class_name !== \"SummitVenue\") continue;\n const option = {value: location, label: location.name};\n\n venues.push(option);\n\n if (!location.hasOwnProperty('rooms')) continue;\n for (let j = 0; j < location.rooms.length; j++) {\n let subOption = {value: location.rooms[j], label: location.rooms[j].name};\n venues.push(subOption);\n }\n }\n\n return venues;\n};\n\nconst ScheduleBuilderView = ({summit, scheduleEvents, selectedEvents, currentDay, currentVenue, slotSize, hideBulkSelect, ...props}) => {\n const days = useMemo(() => getDaysOptions(summit), [summit.start_date, summit.end_date]);\n const venues = useMemo(() => getVenuesOptions(summit), [summit.locations]);\n const slotSizeOptions = SlotSizeOptions.map(op => ({value: op, label: `${op} min.`}));\n\n return (\n <>\n <SummitDaysSelect\n onDayChanged={props.onDayChanged}\n days={days}\n currentValue={currentDay}\n placeholder=\"Select Day\"\n />\n <div className=\"row\">\n <div className=\"col-md-8\">\n <SummitVenuesSelect\n onVenueChanged={props.onVenueChanged}\n venues={venues}\n currentValue={currentVenue}\n placeholder=\"Select Room\"\n />\n </div>\n <div className=\"col-md-4\">\n <span>Slot size: </span>\n <SteppedSelect\n value={slotSize}\n onChange={props.onSlotSizeChange}\n options={slotSizeOptions}\n style={{display: 'inline-block', marginLeft: 10}}\n />\n </div>\n </div>\n {!hideBulkSelect && scheduleEvents.length > 0 &&\n <BulkActionsSelector\n bulkOptions={bulkOptions}\n onSelectAll={props.onSelectAll}\n onSelectedBulkAction={props.onSelectedBulkAction}\n />\n }\n {currentDay && currentVenue &&\n <ScheduleEventList\n startTime=\"00:00\"\n endTime=\"23:50\"\n currentSummit={summit}\n interval={slotSize}\n currentDay={currentDay}\n pixelsPerMinute={PixelsPerMinute}\n canDropEvent={props.canDropEvent}\n onScheduleEvent={props.onScheduleEvent}\n events={scheduleEvents}\n onUnPublishEvent={props.onUnPublishEvent}\n onEditEvent={props.onEditEvent}\n onClickSelected={props.onClickSelected}\n selectedPublishedEvents={selectedEvents}\n />\n }\n </>\n );\n}\n\nexport default ScheduleBuilderView;\n"],"names":["root","factory","exports","module","define","amd","this","ScheduleAdminsBulkActionsSelector","React","onPerformBulkAction","selectedBulkAction","actionTypeSelect","value","props","onSelectedBulkAction","render","onSelectAll","bulkOptions","className","type","onClick","ref","select","T","map","option","idx","key","label","bind","title","options","onChange","rest","handleChange","increment","currentOptionKey","findIndex","op","length","valueLabel","find","styles","days","currentValue","placeholder","onDayChanged","theValue","name","selectedOption","venues","onVenueChanged","parsedValue","v","id","optionRenderer","location","class_name","children","replaceNewLine","dangerouslySetInnerHTML","__html","replace","DraggableItemTypes","UNSCHEDULEEVENT","SCHEDULEEVENT","TBALocation","SlotSizeOptions","PixelsPerMinute","constructor","event","summit","_event","_summit","getId","isPublished","hasOwnProperty","is_published","getMinutesDuration","slotSize","start_date","end_date","eventStartDateTime","moment","tz","time_zone","diff","duration","parseInt","canMove","siblings","day","startTime","interval","startDateTime","format","endDateTime","add","auxEvent","filter","item","auxEventStartDateTime","auxEventEndDateTime","isBefore","isAfter","calculateNewDates","minutes","isValidEndDate","endDate","startDate","summitEndDate","isSame","isValidStartDate","summitStartDate","isValidTitle","trim","isValid","epochToMomentTimeZone","atime","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","call","r","Symbol","toStringTag","step","initialTop","initialHeight","minHeight","maxHeight","canResize","onResized","onUnPublishEvent","onEditEvent","onClickSelected","selectedPublishedEvents","collected","drag","useDrag","collect","monitor","isDragging","canDrag","static","resizeInfo","setResizeInfo","useState","resizing","lastYPos","size","setSize","top","height","isSelected","includes","canEdit","allowResize","popoverHoverFocus","Popover","description","onMouseMove","evt","newYPos","pageY","deltaY","steps","Math","round","abs","sign","preventDefault","newHeight","newTop","maxHeightTmp","onMouseUp","useEffect","document","addEventListener","removeEventListener","onMouseDown","target","getAttribute","box","getBoundingClientRect","clientY","bottom","style","display","cursor","checked","block","OverlayTrigger","trigger","placement","overlay","eventTitleBlock","TimeSlot","timeLabel","TimeSlotContainer","currentDay","currentSummit","events","timeSlot","pixelsPerMinute","canDropEvent","onDroppedEvent","divId","collectedProps","drop","useDrop","accept","isOver","canDrop","SummitEvent","component","backgroundColor","opacity","placeHolderStyle","minutesContainers","container_height","i","position","width","renderMinutesContainer","timeSlotsList","setTimeSlotsList","scheduleEventContainer","useRef","createSlots","onScheduleEvent","eventId","getBoundingBox","filteredEvents","floor","shift","getMaxHeight","ReactDOM","current","calculateInitialTop","utc","dayStartDateTime","calculateInitialHeight","tmpList","done","startTimeTZ","endTimeTZ","endTime","slot","push","clone","scheduleEvents","selectedEvents","currentVenue","hideBulkSelect","useMemo","summitLocalStartDate","time_zone_id","summitLocalEndDate","currentAuxDay","getDaysOptions","locations","j","rooms","subOption","getVenuesOptions","slotSizeOptions","onSlotSizeChange","marginLeft"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/sections/panel.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,+ECW/C,MAAMC,UAAcC,IAAAA,UAE/BC,SAEI,IAAI,SAACC,EAAD,KAAWC,EAAX,MAAiBC,EAAjB,YAAwBC,EAAxB,UAAqCC,EAArC,GAAgDC,GAAMrC,KAAKsC,MAC3DC,EAAQvC,KAAKsC,MAAMf,eAAe,MAAQc,EAAM,MAAKH,IACrDM,EAAWxC,KAAKsC,MAAMf,eAAe,aAAea,EAAY,GAEpE,OACI,yBAAKA,UAAW,eAAiBI,EAAUH,GAAIE,GAC3C,yBAAKH,UAAU,uBACX,uBAAGA,UAAWH,EAAO,YAAc,GAAIQ,QAASN,GAC5C,yBAAKC,UAAU,iBACX,wBAAIA,UAAU,eACTF,KAIb,yBAAKE,UAAU,8BACVH,GACD,yBAAKG,UAAU,cACVJ,KAQxB,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/sections/panel.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"react\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\n\n\nexport default class Panel extends React.Component {\n\n render() {\n\n let {children, show, title, handleClick, className, id} = this.props;\n let theId = this.props.hasOwnProperty('id') ? id : `id_${title}`;\n let theClass = this.props.hasOwnProperty('className') ? className : '';\n\n return (\n <div className={\"panel-group \" + theClass} id={theId} >\n <div className=\"panel panel-default\">\n <a className={show ? 'collapsed' : ''} onClick={handleClick}>\n <div className=\"panel-heading\">\n <h4 className=\"panel-title\">\n {title}\n </h4>\n </div>\n </a>\n <div className=\"panel-collapse collapse in\">\n {show &&\n <div className=\"panel-body\">\n {children}\n </div>\n }\n </div>\n </div>\n </div>\n );\n\n }\n}"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","Panel","React","render","children","show","title","handleClick","className","id","props","theId","theClass","onClick"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/simple-link-list.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,sFCPT,MAIA,EAJgB,EAAEC,WAAUC,kBAAiB,EAAOC,YAAY,MAC5D,0BAAMA,UAAWA,EACXC,wBAAyB,CAAEC,OAAQH,EAAiBD,aAAH,EAAGA,EAAUK,QAAQ,MAAO,UAAYL,I,iFCDnG,MAAMM,UAAqBC,IAAAA,UAE1BC,YAAaC,GACZC,MAAMD,GACNV,KAAKY,WAAaZ,KAAKY,WAAWC,KAAKb,KACvC,CAEDc,eAEC,IAAKd,KAAKU,MAAMK,SAAU,OAAO,KAEjC,OAAOf,KAAKU,MAAMM,SACj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AAK2G,WAAY+C,SAAUnB,GAC5FoB,IAAAA,UAAY,iBAGrB,yBAAKxJ,UAAU,aACX,kBAAC,UAAD,CACIA,UAAU,YACVuD,QAASgF,EACTxE,KAAMiE,EACNxE,QAASA,KAM5B,EAGL4C,EAAe5E,UAAY,CACvBwG,OAAQvG,IAAAA,MAAAA,WACR8B,QAAS9B,IAAAA,MAAgB,CACrB8C,MAAO9C,IAAAA,OACP2B,QAAS3B,IAAAA,OACT4G,SAAU5G,IAAAA,OAAAA,WACViG,SAAUjG,IAAAA,OAAAA,WACVzB,UAAWyB,IAAAA,OACXS,QAAST,IAAAA,MAAgB,CACrByF,OAAQzF,IAAAA,KAAAA,WACRiB,OAAQjB,IAAAA,MAAgB,CAACH,QAAQG,IAAAA,KAAAA,aACjC2F,IAAK3F,IAAAA,MAAgB,CAACH,QAAQG,IAAAA,KAAAA,aAC9BU,KAAMV,IAAAA,MAAgB,CAACH,QAAQG,IAAAA,KAAAA,aAC/BmB,OAAQnB,IAAAA,QACTgI,aACJA,WACHjG,QAAS/B,IAAAA,MAAAA,YAGb,S","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/raw-html/index.js","webpack://openstack-uicore-foundation/./src/components/table/TableHeading.js","webpack://openstack-uicore-foundation/./src/components/table/TableRow.js","webpack://openstack-uicore-foundation/./src/components/table/ActionsTableCell.js","webpack://openstack-uicore-foundation/./src/components/table/Table.js","webpack://openstack-uicore-foundation/./src/components/table/TableCell.js","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-select/lib/Async\"","webpack://openstack-uicore-foundation/external commonjs \"react-select/lib/AsyncCreatable\"","webpack://openstack-uicore-foundation/external commonjs \"react-tooltip\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/simple-link-list/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","import React from 'react';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\"}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} />\n\nexport default RawHTML;","import React from 'react';\nimport PropTypes from 'prop-types';\n\nclass TableHeading extends React.Component {\n\n\tconstructor (props) {\n\t\tsuper(props);\n\t\tthis.handleSort = this.handleSort.bind(this);\n\t}\n\n\tgetSortClass() {\n\n\t\tif (!this.props.sortable) return null;\n\n\t\tswitch(this.props.sortDir) {\n\t\t\tcase 1:\n\t\t\t\treturn 'sorting_asc';\n\t\t\tcase -1:\n\t\t\t\treturn 'sorting_desc';\n\t\t\tdefault:\n\t\t\t\treturn this.props.sortable ? 'sorting' : null\n\t\t}\n\t}\n\n\thandleSort(e) {\n\t\te.preventDefault();\n\t\tif(!this.props.hasOwnProperty('onSort') || !this.props.sortable) return;\n\n\t\tthis.props.onSort(\n\t\t\tthis.props.columnIndex,\n\t\t\tthis.props.columnKey,\n\t\t\tthis.props.sortDir ? this.props.sortDir*-1 : 1,\n\t\t\tthis.props.sortFunc\n\t\t);\n\t}\n\n\trender () {\n\t\treturn (\n\t\t\t<th onClick={this.handleSort}\n\t\t\t\tclassName={this.getSortClass()}\n\t\t\t\twidth={this.props.width}\n\t\t\t\t>\n\t\t\t\t{this.props.children}\n\t\t\t</th>\n\t\t);\t\n\t}\n\t\n}\n\nTableHeading.propTypes = {\n\tonSort: PropTypes.func,\n\tsortDir: PropTypes.number,\n\tcolumnIndex: PropTypes.number,\n\tcolumnKey: PropTypes.any,\n\tsortable: PropTypes.bool,\n\tsortFunc: PropTypes.func\n};\n\nexport default TableHeading;","import React from 'react';\n\nexport default class TableRow extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.handleEdit = this.handleEdit.bind(this);\n }\n\n shouldDisplayAction(action) {\n let {id} = this.props;\n\n if (!action.hasOwnProperty('display')) {\n return true;\n } else {\n return action.display(id);\n }\n }\n\n handleEdit(id, ev) {\n ev.stopPropagation();\n ev.preventDefault();\n\n this.props.actions.edit.onClick(id);\n }\n\n render() {\n let {even, actions, id, children} = this.props;\n let canEdit = (actions.hasOwnProperty('edit') && this.shouldDisplayAction(actions.edit));\n let rowClass = even ? 'even' : 'odd';\n\n if (canEdit) {\n return (\n <tr role=\"row\" className={rowClass + \" can-edit\"} onClick={this.handleEdit.bind(this, id)}>\n {children}\n </tr>\n );\n } else {\n return (\n <tr role=\"row\" className={rowClass}>\n {children}\n </tr>\n );\n }\n }\n};\n\n","import React from 'react';\n\nexport default class ActionsTableCell extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.handleAction = this.handleAction.bind(this);\n this.shouldDisplayAction = this.shouldDisplayAction.bind(this);\n\n }\n\n shouldDisplayAction(action) {\n let {id} = this.props;\n\n if (!action.hasOwnProperty('display')) {\n return true;\n } else {\n return action.display(id);\n }\n }\n\n handleAction(action, id, ev) {\n ev.stopPropagation();\n ev.preventDefault();\n\n action(id);\n }\n\n render() {\n let {actions, id} = this.props;\n return (\n <td className=\"actions\" key=\"actions\">\n {actions.hasOwnProperty('delete') && this.shouldDisplayAction(actions.delete) &&\n <a href=\"\" data-tip=\"delete\" onClick={this.handleAction.bind(this, actions.delete.onClick, id)} >\n <i className=\"fa fa-trash-o delete-icon\"></i>\n </a>\n }\n {actions.hasOwnProperty('custom') && actions.custom.map(a =>\n this.shouldDisplayAction(a) &&\n <a href=\"\" data-tip={a.tooltip} key={'custom_' + a.name} onClick={this.handleAction.bind(this, a.onClick, id)}>\n {a.icon}\n </a>\n )}\n </td>\n );\n }\n};\n","import React from 'react';\nimport TableHeading from './TableHeading';\nimport TableCell from './TableCell';\nimport TableRow from './TableRow';\nimport ActionsTableCell from './ActionsTableCell';\nimport ReactTooltip from 'react-tooltip'\n\nimport './table.css';\n\nconst defaults = {\n sortFunc: (a,b) => (a < b ? -1 : (a > b ? 1 : 0)),\n sortable: false,\n sortCol: 0,\n sortDir: 1,\n colWidth: ''\n}\n\nconst createRow = (row, columns, actions) => {\n\n var action_buttons = '';\n var cells = columns.map((col,i) => {\n if(col.hasOwnProperty(\"render\"))\n return (\n <TableCell key={'cell_'+i} >\n {col.render(row, row[col.columnKey])}\n </TableCell>\n );\n\n return (\n <TableCell key={'cell_'+i} title={col.hasOwnProperty(\"title\") ? row[col.columnKey] : null}>\n {row[col.columnKey]}\n </TableCell>\n );\n });\n\n if (actions) {\n cells.push(<ActionsTableCell key='actions_cell' id={row['id']} actions={actions} />);\n }\n\n return cells;\n};\n\nconst getSortDir = (columnKey, columnIndex, sortCol, sortDir) => {\n if(columnKey && (columnKey === sortCol)) {\n return sortDir;\n }\n if(sortCol === columnIndex) {\n return sortDir;\n }\n return null\n};\n\nconst Table = (props) => {\n let {options, columns} = props;\n let tableClass = options.hasOwnProperty('className') ? options.className : '';\n tableClass += (options.actions.hasOwnProperty('edit')) ? ' table-hover' : '';\n\n return (\n <div>\n <table className={\"table table-striped dataTable \" + tableClass}>\n <thead>\n <tr>\n {columns.map((col,i) => {\n\n let sortCol = (typeof options.sortCol != 'undefined') ? options.sortCol : defaults.sortCol;\n let sortDir = (typeof options.sortDir != 'undefined') ? options.sortDir : defaults.sortDir;\n let sortFunc = (typeof options.sortFunc != 'undefined') ? options.sortFunc : defaults.sortFunc;\n let sortable = (typeof col.sortable != 'undefined') ? col.sortable : defaults.sortable;\n let colWidth = (typeof col.width != 'undefined') ? col.width : defaults.colWidth;\n\n return (\n <TableHeading\n onSort={props.onSort}\n sortDir={getSortDir(col.columnKey, i, sortCol, sortDir)}\n sortable={sortable}\n sortFunc={sortFunc}\n columnIndex={i}\n columnKey={col.columnKey}\n width={colWidth}\n key={'heading_'+i}\n >\n {col.value}\n </TableHeading>\n );\n })}\n {options.actions &&\n <TableHeading key='actions_heading' >\n {options.actionsHeader || ' '}\n </TableHeading>\n }\n </tr>\n </thead>\n <tbody>\n {columns.length > 0 && props.data.map((row,i) => {\n if(Array.isArray(row) && row.length !== columns.length) {\n console.warn(`Data at row ${i} is ${row.length}. It should be ${columns.length}.`);\n return <tr key={'row_'+i} />\n }\n\n return (\n <TableRow even={i%2 === 0} key={'row_'+i} id={row['id']} actions={options.actions}>\n {createRow(row, columns, options.actions)}\n </TableRow>\n );\n })}\n </tbody>\n </table>\n <ReactTooltip delayShow={10} />\n </div>\n );\n};\n\nexport default Table;\n","import React from 'react';\nimport RawHTML from '../raw-html';\n\nconst TableCell = (props) => {\n let {children} = props;\n\tlet value = '';\n\tif(children) {\n\t if (React.isValidElement(children)) {\n\t value = children;\n } else {\n\t value = <RawHTML>{children.toString()}</RawHTML>\n }\n }\n\n\treturn (\n\t\t<td {...props}>\n {value}\n\t\t</td>\n\t);\n};\n\nexport default TableCell;\n","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"react-select/lib/Async\");","module.exports = require(\"react-select/lib/AsyncCreatable\");","module.exports = require(\"react-tooltip\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport './simple-link-list.less';\nimport AsyncSelect from 'react-select/lib/Async';\nimport Table from \"../table/Table\";\nimport T from 'i18n-react/dist/i18n-react';\nimport AsyncCreatableSelect from \"react-select/lib/AsyncCreatable\";\n\n\nclass SimpleLinkList extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n value: ''\n };\n\n this.handleChange = this.handleChange.bind(this);\n this.getOptions = this.getOptions.bind(this);\n this.handleLink = this.handleLink.bind(this);\n this.filterOption = this.filterOption.bind(this);\n this.handleNew = this.handleNew.bind(this);\n this.getNewOptionData = this.getNewOptionData.bind(this);\n this.isValidNewOption = this.isValidNewOption.bind(this);\n }\n\n getOptions(input, callback) {\n let {options} = this.props;\n let defaultOptions = options.hasOwnProperty('defaultOptions') ? options.defaultOptions : undefined;\n\n if (!input && !defaultOptions) {\n return Promise.resolve({ options: [] });\n }\n\n this.props.options.actions.search(input, callback);\n }\n\n handleChange(value) {\n this.setState({value});\n }\n\n handleLink(ev) {\n ev.preventDefault();\n this.props.options.actions.add.onClick(this.state.value);\n this.setState({value: ''});\n }\n\n getNewOptionData(inputValue, optionLabel) {\n return {tag: optionLabel, id:inputValue};\n }\n\n isValidNewOption(inputValue, selectValue, selectOptions) {\n let {options} = this.props;\n let labelKey = options.hasOwnProperty('labelKey') ? options.labelKey : 'label';\n let optionFound = selectOptions.find(op => op[labelKey] == inputValue);\n return (!inputValue || optionFound) ? false : true;\n }\n\n handleNew(value) {\n this.props.options.onCreateTag(value, this.handleChange);\n }\n\n filterOption(candidate, inputValue) {\n let {options, values} = this.props;\n let allowDuplicates = this.props.hasOwnProperty('allowDuplicates');\n let labelKey = options.hasOwnProperty('labelKey') ? options.labelKey : 'label';\n\n if (allowDuplicates) return true;\n\n let optionFound = values.find(val => val[labelKey] === candidate.label);\n\n return !optionFound;\n }\n\n\n render() {\n\n let {options, values, columns} = this.props;\n let disabledAdd = (!this.state.value);\n\n let title = options.hasOwnProperty('title') ? options.title : 'Table';\n let valueKey = options.hasOwnProperty('valueKey') ? options.valueKey : 'value';\n let labelKey = options.hasOwnProperty('labelKey') ? options.labelKey : 'label';\n let allowCreate = options.hasOwnProperty('onCreateTag');\n let defaultOptions = options.hasOwnProperty('defaultOptions') ? options.defaultOptions : undefined;\n\n let tableOptions = {\n className: 'dataTable',\n actions: {\n delete: options.actions.delete\n }\n };\n\n if (options.hasOwnProperty('className')) {\n tableOptions.className = options.className;\n }\n\n if (options.actions.hasOwnProperty('edit')) {\n tableOptions.actions.edit = options.actions.edit;\n }\n\n if (options.actions.hasOwnProperty('custom')) {\n tableOptions.actions.custom = options.actions.custom;\n }\n\n if (options.hasOwnProperty('sortCol')) {\n values = values.sort(\n (a, b) => {\n const itemA = isNaN(a[options.sortCol]) ? a[options.sortCol].toLowerCase() : a[options.sortCol];\n const itemB = isNaN(b[options.sortCol]) ? b[options.sortCol].toLowerCase() : b[options.sortCol];\n return (itemA > itemB ? 1 : (itemA < itemB ? -1 : 0))\n }\n );\n }\n\n\n let AsyncComponent = null;\n\n if (allowCreate) {\n AsyncComponent =\n <AsyncCreatableSelect\n className=\"link-select btn-group text-left\"\n value={this.state.value}\n key={JSON.stringify(values)}\n getOptionValue={option => option[valueKey]}\n getOptionLabel={option => option[labelKey]}\n onChange={this.handleChange}\n loadOptions={this.getOptions}\n filterOption={this.filterOption}\n onCreateOption={this.handleNew}\n getNewOptionData={this.getNewOptionData}\n isValidNewOption={this.isValidNewOption}\n />;\n } else {\n AsyncComponent =\n <AsyncSelect\n className=\"link-select btn-group text-left\"\n value={this.state.value}\n key={JSON.stringify(values)}\n getOptionValue={option => option[valueKey]}\n getOptionLabel={option => option[labelKey]}\n onChange={this.handleChange}\n loadOptions={this.getOptions}\n filterOption={this.filterOption}\n defaultOptions={defaultOptions}\n />;\n }\n\n return (\n <div className=\"row simple-link-list\">\n <div className=\"col-md-4 simple-link-list-title\">\n <h4>{title}</h4>\n </div>\n <div className=\"col-md pull-right btn-group\">\n {AsyncComponent}\n <button type=\"button\" className=\"btn btn-default add-button\" onClick={this.handleLink} disabled={disabledAdd}>\n {T.translate(\"general.add\")}\n </button>\n </div>\n <div className=\"col-md-12\">\n <Table\n className=\"dataTable\"\n options={tableOptions}\n data={values}\n columns={columns}\n />\n </div>\n </div>\n );\n\n }\n}\n\nSimpleLinkList.propTypes = {\n values: PropTypes.array.isRequired,\n options: PropTypes.shape({\n title: PropTypes.string,\n sortCol: PropTypes.string,\n valueKey: PropTypes.string.isRequired,\n labelKey: PropTypes.string.isRequired,\n className: PropTypes.string,\n actions: PropTypes.shape({\n search: PropTypes.func.isRequired,\n delete: PropTypes.shape({onClick:PropTypes.func.isRequired}),\n add: PropTypes.shape({onClick:PropTypes.func.isRequired}),\n edit: PropTypes.shape({onClick:PropTypes.func.isRequired}),\n custom: PropTypes.array,\n }).isRequired\n }).isRequired,\n columns: PropTypes.array.isRequired\n}\n\nexport default SimpleLinkList;\n"],"names":["root","factory","exports","module","define","amd","this","children","replaceNewLine","className","dangerouslySetInnerHTML","__html","replace","TableHeading","React","constructor","props","super","handleSort","bind","getSortClass","sortable","sortDir","e","preventDefault","hasOwnProperty","onSort","columnIndex","columnKey","sortFunc","render","onClick","width","propTypes","PropTypes","TableRow","handleEdit","shouldDisplayAction","action","id","display","ev","stopPropagation","actions","edit","even","rowClass","role","ActionsTableCell","handleAction","key","delete","href","custom","map","a","tooltip","name","icon","defaults","b","sortCol","colWidth","getSortDir","options","columns","tableClass","col","i","value","actionsHeader","length","data","row","Array","isArray","console","warn","cells","TableCell","title","push","createRow","delayShow","toString","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","call","r","Symbol","toStringTag","SimpleLinkList","state","handleChange","getOptions","handleLink","filterOption","handleNew","getNewOptionData","isValidNewOption","input","callback","defaultOptions","Promise","resolve","search","setState","add","inputValue","optionLabel","tag","selectValue","selectOptions","labelKey","optionFound","find","op","onCreateTag","candidate","values","allowDuplicates","val","label","disabledAdd","valueKey","allowCreate","tableOptions","sort","itemA","isNaN","toLowerCase","itemB","AsyncComponent","JSON","stringify","getOptionValue","option","getOptionLabel","onChange","loadOptions","onCreateOption","type","disabled","T","isRequired"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/sponsored-project-input.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,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,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/security/constants.js","webpack://openstack-uicore-foundation/external commonjs \"browser-tabs-lock\"","webpack://openstack-uicore-foundation/external commonjs \"crypto-js/sha256\"","webpack://openstack-uicore-foundation/external commonjs \"crypto-js/enc-base64url\"","webpack://openstack-uicore-foundation/external commonjs \"crypto-js/enc-hex\"","webpack://openstack-uicore-foundation/./src/utils/crypto.js","webpack://openstack-uicore-foundation/./src/components/security/methods.js","webpack://openstack-uicore-foundation/./src/utils/actions.js","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","webpack://openstack-uicore-foundation/./src/utils/query-actions.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"idtoken-verifier\"","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-select/lib/Async\"","webpack://openstack-uicore-foundation/external commonjs \"superagent/lib/client\"","webpack://openstack-uicore-foundation/external commonjs \"sweetalert2\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/inputs/sponsored-project-input.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const AUTH_ERROR_MISSING_AUTH_INFO = 'AUTH_ERROR_MISSING_AUTH_INFO';\nexport const AUTH_ERROR_MISSING_REFRESH_TOKEN = 'AUTH_ERROR_MISSING_REFRESH_TOKEN';\nexport const AUTH_ERROR_ACCESS_TOKEN_EXPIRED = 'AUTH_ERROR_ACCESS_TOKEN_EXPIRED';\nexport const AUTH_ERROR_LOCK_ACQUIRE_ERROR = 'AUTH_ERROR_LOCK_ACQUIRE_ERROR'\nexport const AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR = 'AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR';\nexport const AUTH_ERROR_ID_TOKEN_INVALID = 'AUTH_ERROR_ID_TOKEN_INVALID';\nexport const AUTH_ERROR_MISSING_OTP_PARAM = 'AUTH_ERROR_MISSING_OTP_PARAM';\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"browser-tabs-lock\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"crypto-js/sha256\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"crypto-js/enc-base64url\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"crypto-js/enc-hex\");","// limit of Crypto.getRandomValues()\n// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues\nconst MAX_BYTES = 65536\n// Node supports requesting up to this number of bytes\n// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48\nconst MAX_UINT32 = 4294967295\nconst crypto = typeof window !== 'undefined' ? (window.crypto || window.msCrypto) : null;\nimport sha256 from 'crypto-js/sha256';\nimport Base64url from 'crypto-js/enc-base64url'\nimport Hex from 'crypto-js/enc-hex'\nexport const getRandomBytes = (size) => {\n // phantomjs needs to throw\n if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')\n const bytes = Buffer.allocUnsafe(size)\n if(!crypto) return a;\n if (size > 0) { // getRandomValues fails on IE if size == 0\n if (size > MAX_BYTES) { // this is the max bytes crypto.getRandomValues\n // can do at once see https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n for (let generated = 0; generated < size; generated += MAX_BYTES) {\n // buffer.slice automatically checks if the end is past the end of\n // the buffer so we don't have to here\n crypto.getRandomValues(bytes.slice(generated, generated + MAX_BYTES))\n }\n } else {\n crypto.getRandomValues(bytes)\n }\n }\n return bytes\n}\n\nexport const getSHA256 = (message, format = 'hex') => {\n\n let f = Hex;\n if(format === 'Base64url')\n f = Base64url;\n\n return sha256(message).toString(f);\n}","import {\n base64URLEncode,\n getAuthCallback,\n getCurrentLocation,\n getCurrentPathName,\n getFromLocalStorage,\n removeFromLocalStorage,\n getOrigin,\n putOnLocalStorage,\n retryPromise,\n setSessionClearingState,\n} from \"../../utils/methods\";\nimport request from 'superagent/lib/client';\nimport Lock from 'browser-tabs-lock';\n\nlet http = request;\n\n/**\n * @ignore\n */\nconst lock = new Lock();\n\nconst GET_TOKEN_SILENTLY_LOCK_KEY = 'openstackuicore.lock.getTokenSilently';\nconst NONCE_LEN = 16;\nexport const ACCESS_TOKEN_SKEW_TIME = 20;\nexport const RESPONSE_TYPE_IMPLICIT = \"token id_token\";\nexport const RESPONSE_TYPE_CODE = 'code';\nconst AUTH_INFO = 'authInfo';\nconst NONCE = 'nonce';\nconst PKCE = 'pkce';\n\nimport URI from \"urijs\";\nimport IdTokenVerifier from \"idtoken-verifier\";\nimport {SET_LOGGED_USER} from \"./actions\";\nimport {getRandomBytes, getSHA256} from \"../../utils/crypto\";\n\nimport {\n AUTH_ERROR_ACCESS_TOKEN_EXPIRED,\n AUTH_ERROR_MISSING_AUTH_INFO,\n AUTH_ERROR_MISSING_REFRESH_TOKEN,\n AUTH_ERROR_LOCK_ACQUIRE_ERROR,\n AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR, AUTH_ERROR_ID_TOKEN_INVALID, AUTH_ERROR_MISSING_OTP_PARAM,\n} from \"./constants\";\n\n/**\n *\n * @param backUrl\n * @param prompt\n * @param tokenIdHint\n * @param provider\n * @param loginHint\n * @param otpLoginHint\n * @returns {*}\n */\nexport const getAuthUrl = (\n backUrl = null,\n prompt = null,\n tokenIdHint = null,\n provider = null,\n loginHint = null,\n otpLoginHint = null) => {\n\n let oauth2ClientId = getOAuth2ClientId();\n let redirectUri = getAuthCallback();\n let baseUrl = getOAuth2IDPBaseUrl();\n let scopes = getOAuth2Scopes();\n let flow = getOAuth2Flow();\n\n if (backUrl != null)\n redirectUri += `?BackUrl=${encodeURI(backUrl)}`;\n\n let nonce = createNonce(NONCE_LEN);\n\n // store nonce to check it later\n putOnLocalStorage(NONCE, nonce);\n let url = URI(`${baseUrl}/oauth2/auth`);\n\n let query = {\n \"response_type\": encodeURI(flow),\n \"scope\": encodeURI(scopes),\n \"nonce\": nonce,\n \"response_mode\": 'fragment',\n \"client_id\": encodeURI(oauth2ClientId),\n \"redirect_uri\": encodeURI(redirectUri)\n };\n\n if (flow === RESPONSE_TYPE_CODE) {\n const pkce = createPKCECodes()\n putOnLocalStorage(PKCE, JSON.stringify(pkce));\n query['code_challenge'] = pkce.codeChallenge;\n query['code_challenge_method'] = 'S256';\n query['approval_prompt'] = 'force';\n }\n\n if (prompt) {\n query['prompt'] = prompt;\n }\n\n if (scopes && scopes.includes('offline_access')) {\n // then we need to force prompt=consent bc we are requesting an offline access\n // and we need to let the user know\n query['prompt'] = 'consent';\n }\n\n if (tokenIdHint) {\n query['id_token_hint'] = tokenIdHint;\n }\n\n if (provider) {\n query['provider'] = provider;\n }\n\n if (otpLoginHint) {\n query['otp_login_hint'] = otpLoginHint;\n }\n\n if (loginHint) {\n query['login_hint'] = encodeURI(loginHint);\n }\n\n url = url.query(query);\n //console.log(`getAuthUrl ${url.toString()}`);\n return url;\n}\n\nexport const getLogoutUrl = (idToken) => {\n let baseUrl = getOAuth2IDPBaseUrl();\n let oauth2ClientId = getOAuth2ClientId();\n let url = URI(`${baseUrl}/oauth2/end-session`);\n let state = createNonce(NONCE_LEN);\n let postLogOutUri = getOrigin() + '/auth/logout';\n // store nonce to check it later\n putOnLocalStorage('post_logout_state', state);\n /**\n * post_logout_redirect_uri should be listed on oauth2 client settings\n * on IDP\n * \"Security Settings\" Tab -> Logout Options -> Post Logout Uris\n */\n return url.query({\n \"id_token_hint\": idToken,\n \"post_logout_redirect_uri\": encodeURI(postLogOutUri),\n \"client_id\": encodeURI(oauth2ClientId),\n \"state\": state,\n });\n}\n\nconst createNonce = (len) => {\n let possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n let nonce = '';\n for (let i = 0; i < len; i++) {\n nonce += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n return nonce;\n}\n\n/**\n *\n * @param backUrl\n * @param provider\n * @param prompt\n * @param loginHint\n * @param otpLoginHint\n */\nexport const doLogin = (\n backUrl = null,\n provider = null,\n prompt = null,\n loginHint = null,\n otpLoginHint = null\n) => {\n let url = getAuthUrl(backUrl, prompt, null, provider, loginHint, otpLoginHint);\n let location = getCurrentLocation()\n location.replace(url.toString());\n}\n\n/**\n *\n * @param backUrl\n * @param loginHint\n * @param otpLoginHint\n */\nexport const doLoginBasicLogin = (backUrl = null, loginHint = null, otpLoginHint = null) => {\n doLogin(backUrl, null, null, loginHint, otpLoginHint);\n}\n\nconst createPKCECodes = () => {\n const codeVerifier = base64URLEncode(getRandomBytes(64))\n const codeChallenge = getSHA256(codeVerifier, 'Base64url')\n const createdAt = new Date()\n const codePair = {\n codeVerifier,\n codeChallenge,\n createdAt\n }\n return codePair\n}\n\nexport const emitAccessToken = async (code, backUrl = null) => {\n\n let baseUrl = getOAuth2IDPBaseUrl();\n let oauth2ClientId = getOAuth2ClientId();\n let redirectUri = getAuthCallback();\n let pkce = JSON.parse(getFromLocalStorage(PKCE, true));\n\n if (backUrl != null)\n redirectUri += `?BackUrl=${encodeURI(backUrl)}`;\n\n const payload = {\n 'code': code,\n 'grant_type': 'authorization_code',\n 'code_verifier': pkce.codeVerifier,\n \"client_id\": encodeURI(oauth2ClientId),\n \"redirect_uri\": encodeURI(redirectUri)\n };\n\n try {\n //const response = await http.post(`${baseUrl}/oauth2/token`, payload);\n //const {body: {access_token, refresh_token, id_token, expires_in}} = response;\n const response = await fetch(`${baseUrl}/oauth2/token`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n }).catch(function (error) {\n console.log('Request failed:', error.message);\n });\n const json = await response.json();\n let {access_token, refresh_token, id_token, expires_in, error, error_description} = json;\n return {access_token, refresh_token, id_token, expires_in, error, error_description}\n } catch (err) {\n console.log(err);\n }\n};\n\nexport const clearAccessToken = async () => {\n if (\n await retryPromise(\n () => lock.acquireLock(GET_TOKEN_SILENTLY_LOCK_KEY, 5000),\n 10\n )\n ) {\n try {\n\n let authInfo = getAuthInfo();\n\n if (!authInfo) {\n throw Error(AUTH_ERROR_MISSING_AUTH_INFO);\n }\n\n let {accessToken, expiresIn, accessTokenUpdatedAt, refreshToken} = authInfo;\n\n storeAuthInfo(null, 0, refreshToken)\n\n } finally {\n await lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY);\n }\n }\n}\n\nexport const getAccessToken = async () => {\n\n if (\n await retryPromise(\n () => lock.acquireLock(GET_TOKEN_SILENTLY_LOCK_KEY, 5000),\n 10\n )\n ) {\n try {\n\n let authInfo = getAuthInfo();\n\n if (!authInfo) {\n throw Error(AUTH_ERROR_MISSING_AUTH_INFO);\n }\n\n let {accessToken, expiresIn, accessTokenUpdatedAt, refreshToken} = authInfo;\n let flow = getOAuth2Flow();\n // check life time\n let now = Math.floor(Date.now() / 1000);\n let timeElapsedSecs = (now - accessTokenUpdatedAt);\n expiresIn = (expiresIn - ACCESS_TOKEN_SKEW_TIME);\n //console.log(`getAccessToken now ${now} accessTokenUpdatedAt ${accessTokenUpdatedAt} timeElapsedSecs ${timeElapsedSecs} expiresIn ${expiresIn}.`);\n\n if (timeElapsedSecs > expiresIn || accessToken == null) {\n console.log(`getAccessToken access token expired`)\n if (flow === RESPONSE_TYPE_CODE && useOAuth2RefreshToken()) {\n //console.log('getAccessToken getting new access token, access token got void');\n if (!refreshToken) {\n clearAuthInfo();\n throw Error(AUTH_ERROR_MISSING_REFRESH_TOKEN);\n }\n let response = await refreshAccessToken(refreshToken);\n let {access_token, expires_in, refresh_token} = response;\n //console.log(`getAccessToken access_token ${access_token} expires_in ${expires_in} refresh_token ${refresh_token}`);\n if (typeof refresh_token === 'undefined') {\n refresh_token = null; // not using rotate policy\n }\n storeAuthInfo(access_token, expires_in, refresh_token);\n //console.log(`getAccessToken access_token ${access_token} [NEW]`);\n return access_token;\n }\n clearAuthInfo();\n throw Error(AUTH_ERROR_ACCESS_TOKEN_EXPIRED);\n }\n //console.log(`getAccessToken access_token ${accessToken} [CACHED]`);\n return accessToken;\n } finally {\n await lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY);\n }\n }\n throw Error(AUTH_ERROR_LOCK_ACQUIRE_ERROR);\n}\n\nexport const refreshAccessToken = async (refresh_token) => {\n\n let baseUrl = getOAuth2IDPBaseUrl();\n let oauth2ClientId = getOAuth2ClientId();\n\n const payload = {\n 'grant_type': 'refresh_token',\n \"client_id\": encodeURI(oauth2ClientId),\n \"refresh_token\": refresh_token\n };\n\n try {\n const response = await fetch(`${baseUrl}/oauth2/token`, {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n }).then((response) => {\n if (response.status === 400) {\n let currentLocation = getCurrentPathName();\n setSessionClearingState(true);\n throw Error(`${AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: ${response.status} - ${response.statusText}`);\n }\n return response;\n\n }).catch(function (error) {\n throw Error(`${AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: ${error.message}`);\n });\n\n const json = await response.json();\n let {access_token, refresh_token, expires_in} = json;\n return {access_token, refresh_token, expires_in}\n } catch (err) {\n console.log(err);\n throw err;\n }\n}\n\nexport const storeAuthInfo = (accessToken, expiresIn, refreshToken = null, idToken = null) => {\n\n let formerAuthInfo = getAuthInfo();\n\n let authInfo = {\n accessToken: accessToken,\n expiresIn: expiresIn,\n accessTokenUpdatedAt: Math.floor(Date.now() / 1000),\n };\n\n if (refreshToken === null && formerAuthInfo) {\n refreshToken = formerAuthInfo.refreshToken;\n }\n\n if (idToken === null && formerAuthInfo) {\n idToken = formerAuthInfo.idToken;\n }\n\n if (refreshToken) {\n authInfo['refreshToken'] = refreshToken;\n }\n\n if (idToken) {\n authInfo['idToken'] = idToken;\n }\n\n putOnLocalStorage(AUTH_INFO, JSON.stringify(authInfo));\n}\n\nexport const getAuthInfo = () => {\n try {\n let res = getFromLocalStorage(AUTH_INFO, false)\n if (!res) return null;\n return JSON.parse(res);\n } catch (err) {\n return null;\n }\n}\n\nexport const clearAuthInfo = () => {\n if (typeof window !== 'undefined') {\n removeFromLocalStorage(AUTH_INFO);\n removeFromLocalStorage(NONCE);\n removeFromLocalStorage(PKCE);\n return;\n }\n};\n\nexport const getIdToken = () => {\n if (typeof window !== 'undefined') {\n const authInfo = getAuthInfo();\n if (authInfo) {\n return authInfo.idToken;\n }\n return null;\n }\n return null;\n};\n\nexport const getOAuth2ClientId = () => {\n if (typeof window !== 'undefined') {\n return window.OAUTH2_CLIENT_ID;\n }\n return null;\n};\n\nexport const getOAuth2Flow = () => {\n if (typeof window !== 'undefined') {\n return window.OAUTH2_FLOW || \"token id_token\";\n }\n return \"token id_token\";\n}\n\nexport const useOAuth2RefreshToken = () => {\n if (typeof window !== 'undefined') {\n return new Boolean(window.OAUTH2_USE_REFRESH_TOKEN || true);\n }\n return true;\n}\n\nexport const getOAuth2IDPBaseUrl = () => {\n if (typeof window !== 'undefined') {\n return window.IDP_BASE_URL;\n }\n return null;\n};\n\nexport const getOAuth2Scopes = () => {\n if (typeof window !== 'undefined') {\n return window.SCOPES;\n }\n return null;\n};\n\nexport const initLogOut = () => {\n let location = getCurrentLocation();\n location.replace(getLogoutUrl(getIdToken()).toString());\n}\n\nexport const validateIdToken = (idToken, issuer, audience) => {\n\n let verifier = new IdTokenVerifier({\n issuer: issuer,\n audience: audience\n });\n\n let storedNonce = getFromLocalStorage(NONCE, true);\n let jwt = verifier.decode(idToken);\n let alg = jwt.header.alg;\n let kid = jwt.header.kid;\n let aud = jwt.payload.aud;\n let iss = jwt.payload.iss;\n let exp = jwt.payload.exp;\n let nbf = jwt.payload.nbf;\n let tnonce = jwt.payload.nonce || null;\n\n return tnonce == storedNonce && aud == audience && iss == issuer;\n}\n\nexport const passwordlessStart = (params) => {\n\n let oauth2ClientId = getOAuth2ClientId();\n let scopes = getOAuth2Scopes();\n let nonce = createNonce(NONCE_LEN);\n // store nonce to check it later\n putOnLocalStorage(NONCE, nonce);\n let baseUrl = getOAuth2IDPBaseUrl();\n let url = URI(`${baseUrl}/oauth2/auth`);\n\n let payload = {\n \"response_type\": \"otp\",\n \"scope\": encodeURI(scopes),\n \"nonce\": nonce,\n \"client_id\": encodeURI(oauth2ClientId),\n \"connection\": params.connection || \"email\",\n \"send\": params.send || \"code\",\n };\n\n if (params.hasOwnProperty('email')) {\n payload[\"email\"] = encodeURIComponent(params.email);\n }\n\n if (params.hasOwnProperty('phone_number')) {\n payload[\"phone_number\"] = encodeURIComponent(params.phone_number);\n }\n\n if (params.hasOwnProperty('redirect_uri')) {\n payload[\"redirect_uri\"] = encodeURIComponent(params.redirect_uri);\n }\n\n let req = http.post(url.toString());\n\n return req.send(payload).then((res) => {\n let json = res.body;\n return Promise.resolve({response: json});\n }).catch((err) => {\n return Promise.reject(err);\n });\n\n}\n\nexport const passwordlessLogin = (params) => (dispatch) => {\n\n let oauth2ClientId = getOAuth2ClientId();\n let scopes = getOAuth2Scopes();\n let baseUrl = getOAuth2IDPBaseUrl();\n let url = URI(`${baseUrl}/oauth2/token`);\n\n if (!params.hasOwnProperty(\"otp\")) {\n throw Error(AUTH_ERROR_MISSING_OTP_PARAM);\n }\n\n let payload = {\n \"grant_type\": \"passwordless\",\n \"connection\": params.connection || \"email\",\n \"scope\": encodeURI(scopes),\n \"client_id\": encodeURI(oauth2ClientId),\n \"otp\": params.otp\n };\n\n if (params.hasOwnProperty('email')) {\n payload[\"email\"] = encodeURIComponent(params.email);\n }\n\n if (params.hasOwnProperty('phone_number')) {\n payload[\"phone_number\"] = encodeURIComponent(params.phone_number);\n }\n\n let req = http.post(url.toString());\n\n return req.send(payload).then((res) => {\n try {\n // now we got token\n let json = res.body;\n let {access_token, expires_in, refresh_token, id_token} = json;\n\n if (typeof refresh_token === 'undefined') {\n refresh_token = null; // not using rotate policy\n }\n\n if (typeof id_token === 'undefined') {\n id_token = null; // not using rotate policy\n }\n\n // verify id token\n\n if (id_token) {\n if (!validateIdToken(id_token, baseUrl, oauth2ClientId)) {\n throw Error(AUTH_ERROR_ID_TOKEN_INVALID);\n }\n }\n\n storeAuthInfo(access_token, expires_in, refresh_token, id_token);\n\n if (dispatch) {\n dispatch({\n type: SET_LOGGED_USER,\n payload: {sessionState: null}\n });\n }\n\n return Promise.resolve({response: json});\n } catch (e) {\n console.log(e);\n return Promise.reject(e);\n }\n }).catch((err) => {\n return Promise.reject(err);\n });\n}\n\nexport const isIdTokenAlive = (nowEpoch = null) => () => {\n\n if (!nowEpoch) {\n nowEpoch = Math.floor(Date.now() / 1000);\n }\n\n const idToken = getIdToken();\n if (!idToken)\n throw Error('Id Token not set.');\n\n const issuer = getOAuth2IDPBaseUrl();\n const audience = getOAuth2ClientId();\n\n let verifier = new IdTokenVerifier({\n issuer: issuer,\n audience: audience\n });\n\n const jwt = verifier.decode(idToken);\n const exp = jwt.payload.exp;\n\n // check life time\n return exp - (nowEpoch + ACCESS_TOKEN_SKEW_TIME) > 0;\n}\n","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific flanguage governing permissions and\n * limitations under the License.\n **/\n\nimport request from 'superagent/lib/client';\nimport URI from \"urijs\";\nlet http = request;\nimport Swal from 'sweetalert2';\nimport T from \"i18n-react/dist/i18n-react\";\nimport { isClearingSessionState, setSessionClearingState, getCurrentPathName } from './methods';\nimport { CLEAR_SESSION_STATE } from '../components/security/actions';\nimport { doLogin, initLogOut } from '../components/security/methods';\n\nexport const GENERIC_ERROR = \"Yikes. Something seems to be broken. Our web team has been notified, and we apologize for the inconvenience.\";\nexport const RESET_LOADING = 'RESET_LOADING';\nexport const START_LOADING = 'START_LOADING';\nexport const STOP_LOADING = 'STOP_LOADING';\nexport const VALIDATE = 'VALIDATE';\nexport const CLEAR_MESSAGE = 'CLEAR_MESSAGE';\nexport const SHOW_MESSAGE = 'SHOW_MESSAGE';\n\nexport const createAction = type => payload => ({\n type,\n payload\n});\n\nexport const resetLoading = createAction(RESET_LOADING);\nexport const startLoading = createAction(START_LOADING);\nexport const stopLoading = createAction(STOP_LOADING);\n\nconst xhrs = {};\nconst etagCache = {};\n\nconst cancel = (key) => {\n if(xhrs[key]) {\n xhrs[key].abort();\n console.log(`aborted request ${key}`);\n delete xhrs[key];\n }\n}\n\nconst schedule = (key, req) => {\n // console.log(`scheduling ${key}`);\n xhrs[key] = req;\n};\n\nconst isObjectEmpty = (obj) => {\n return Object.keys(obj).length === 0 && obj.constructor === Object ;\n}\n\nexport const authErrorHandler = (err, res) => (dispatch, state) => {\n let code = err.status;\n let msg = '';\n\n dispatch(stopLoading());\n\n switch (code) {\n case 403:\n let error_message = {\n title: 'ERROR',\n html: T.translate(\"errors.user_not_authz\"),\n type: 'error'\n };\n\n dispatch(showMessage( error_message, initLogOut ));\n break;\n case 401:\n let currentLocation = getCurrentPathName();\n let clearing_session_state = isClearingSessionState();\n\n dispatch({\n type: CLEAR_SESSION_STATE,\n payload: {}\n });\n\n if(!clearing_session_state) {\n setSessionClearingState(true);\n console.log('authErrorHandler 401 - re login');\n doLogin(currentLocation);\n }\n break;\n case 404:\n msg = \"\";\n\n if (err.response.body && err.response.body.message) msg = err.response.body.message;\n else if (err.response.error && err.response.error.message) msg = err.response.error.message;\n else msg = err.message;\n\n Swal.fire(\"Not Found\", msg, \"warning\");\n\n break;\n case 412:\n for (var [key, value] of Object.entries(err.response.body.errors)) {\n if (isNaN(key)) {\n msg += key + ': ';\n }\n\n msg += value + '<br>';\n }\n Swal.fire(\"Validation error\", msg, \"warning\");\n dispatch({\n type: VALIDATE,\n payload: {errors: err.response.body.errors}\n });\n break;\n default:\n Swal.fire(\"ERROR\", T.translate(\"errors.server_error\"), \"error\");\n }\n}\n\nexport const getRequest =(\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n errorHandler = defaultErrorHandler,\n requestActionPayload = {},\n useEtag = false\n) => (params = {}) => (dispatch, state) => {\n\n let url = URI(endpoint);\n let key = url.toString();\n\n if(!isObjectEmpty(params)) {\n // remove the access token\n const { access_token: _, ...newParams} = params;\n // and generate new key\n key = url.query(newParams).toString();\n url = url.query(params);\n }\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n cancel(key);\n\n return new Promise((resolve, reject) => {\n let req = http.get(url.toString());\n if(useEtag && etagCache.hasOwnProperty(key)){\n const { etag } = etagCache[key];\n if(etag){\n req.set('If-None-Match', etag)\n }\n }\n\n req.timeout({\n response: 60000,\n deadline: 60000,\n })\n .end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject, key, useEtag))\n\n schedule(key, req);\n });\n};\n\nexport const putRequest = (\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n payload,\n errorHandler = defaultErrorHandler,\n requestActionPayload = {}\n) => (params = {}) => ( dispatch, state) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n return new Promise((resolve, reject) => {\n if(payload == null)\n payload = {};\n http.put(url.toString())\n .send(payload)\n .end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject))\n });\n};\n\nexport const deleteRequest = (\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n payload,\n errorHandler = defaultErrorHandler,\n requestActionPayload = {}\n) => (params) => (dispatch, state) => {\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n return new Promise((resolve, reject) => {\n if(payload == null)\n payload = {};\n\n http.delete(url)\n .send(payload)\n .end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject));\n });\n};\n\nexport const postRequest = (\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n payload,\n errorHandler = defaultErrorHandler,\n requestActionPayload = {}\n) => (params = {}) => (dispatch, state) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n return new Promise((resolve, reject) => {\n\n let request = http.post(url);\n\n if(payload != null)\n request.send(payload);\n else // to be a simple CORS request\n request.set('Content-Type', 'text/plain');\n\n request.end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject));\n });\n};\n\nexport const postFile = (\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n file,\n fileMetadata = {},\n errorHandler = defaultErrorHandler,\n requestActionPayload = {}\n) => (params = {}) => (dispatch, state) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n return new Promise((resolve, reject) => {\n\n const req = http.post(url)\n .attach('file', file);\n\n if(!isObjectEmpty(fileMetadata)) {\n Object.keys(fileMetadata).forEach(function (key) {\n let value = fileMetadata[key];\n req.field(key, value);\n });\n }\n\n req.end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject));\n });\n};\n\nexport const putFile = (\n requestActionCreator,\n receiveActionCreator,\n endpoint,\n file = null,\n fileMetadata = {},\n errorHandler = defaultErrorHandler,\n requestActionPayload = {}\n) => (params = {}) => (dispatch, state) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n if(requestActionCreator && typeof requestActionCreator === 'function')\n dispatch(requestActionCreator(requestActionPayload));\n\n return new Promise((resolve, reject) => {\n\n const req = http.put(url);\n\n if(file != null){\n req.attach('file', file);\n }\n\n if(!isObjectEmpty(fileMetadata)) {\n Object.keys(fileMetadata).forEach(function (key) {\n let value = fileMetadata[key];\n req.field(key, value);\n });\n }\n\n req.end(responseHandler(dispatch, state, receiveActionCreator, errorHandler, resolve, reject));\n });\n};\n\nexport const defaultErrorHandler = (err, res) => (dispatch) => {\n let body = res.body;\n let text = '';\n if(body instanceof Object){\n if(body.hasOwnProperty('message'))\n text = body.message;\n }\n Swal.fire(res.statusText, text, \"error\");\n}\n\nconst byLowerCase = toFind => value => toLowerCase(value) === toFind;\nconst toLowerCase = value => value.toLowerCase();\nconst getKeys = headers => Object.keys(headers);\n\nexport const getHeaderCaseInsensitive = (headerName, headers = {}) => {\n const key = getKeys(headers).find(byLowerCase(headerName));\n return key ? headers[key] : undefined;\n};\n\nexport const responseHandler = ( dispatch, state, receiveActionCreator, errorHandler, resolve, reject, key = null, useEtag= false ) =>\n\n (err, res) => {\n\n if (err || !res.ok) {\n let code = err.status;\n\n if(code === 304 && etagCache.hasOwnProperty(key) && useEtag){\n const { body } = etagCache[key];\n\n if(typeof receiveActionCreator === 'function') {\n dispatch(receiveActionCreator({response: body}));\n return resolve({response: body});\n }\n\n dispatch(receiveActionCreator);\n return resolve({response: body});\n }\n if(errorHandler) {\n errorHandler(err, res)(dispatch, state);\n }\n return reject({ err, res, dispatch, state })\n }\n\n let json = res.body;\n\n if(useEtag) {\n const responseETAG = getHeaderCaseInsensitive('etag', res.headers);\n if (responseETAG) {\n etagCache[key] = { etag: responseETAG, body: json};\n }\n }\n\n if(typeof receiveActionCreator === 'function') {\n dispatch(receiveActionCreator({response: json}));\n return resolve({response: json});\n }\n dispatch(receiveActionCreator);\n return resolve({response: json});\n}\n\n\nexport const fetchErrorHandler = (response) => {\n let code = response.status;\n let msg = response.statusText;\n\n switch (code) {\n case 403:\n Swal.fire(\"ERROR\", T.translate(\"errors.user_not_authz\"), \"warning\");\n break;\n case 401:\n Swal.fire(\"ERROR\", T.translate(\"errors.session_expired\"), \"error\");\n break;\n case 412:\n Swal.fire(\"ERROR\", msg, \"warning\");\n case 500:\n Swal.fire(\"ERROR\", T.translate(\"errors.server_error\"), \"error\");\n }\n}\n\nexport const fetchResponseHandler = (response) => {\n if (!response.ok) {\n throw response;\n } else {\n return response.json();\n }\n}\n\nexport const showMessage = (settings, callback = {}) => (dispatch) => {\n dispatch(stopLoading());\n\n Swal.fire(settings).then((result) => {\n if (result.value && typeof callback === 'function') {\n callback();\n }\n });\n}\n\nexport const showSuccessMessage = (html) => (dispatch) => {\n dispatch(stopLoading());\n Swal.fire({\n title: T.translate(\"general.done\"),\n html: html,\n type: 'success'\n });\n}\n\nexport const downloadFileByContent = (filename, content, mime) => {\n let link = document.createElement('a');\n link.textContent = 'download';\n link.download = filename;\n link.href = `data:${mime},${encodeURIComponent(content)}`\n document.body.appendChild(link); // Required for FF\n link.click();\n document.body.removeChild(link);\n}\n\nexport const getCSV = (endpoint, params, filename, header = null) => (dispatch) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n dispatch(startLoading());\n\n return fetch(url.toString())\n .then((response) => {\n if (!response.ok) {\n throw response;\n } else {\n return response.text();\n }\n })\n .then((csv) => {\n dispatch(stopLoading());\n\n if (header) {\n csv = header + '\\r\\r' + csv;\n }\n downloadFileByContent(filename, csv, 'text/csv;charset=utf-8');\n })\n .catch(fetchErrorHandler);\n};\n\nexport const getRawCSV = (endpoint, params, header = null) => {\n\n let url = URI(endpoint);\n\n if(!isObjectEmpty(params))\n url = url.query(params);\n\n return fetch(url.toString())\n .then((response) => {\n if (!response.ok) {\n throw response;\n } else {\n return response.text();\n }\n })\n .then((csv) => {\n if (header) {\n csv = header + '\\r\\r' + csv;\n }\n\n return csv;\n })\n .catch(fetchErrorHandler);\n};\n\nexport const escapeFilterValue = (value) => {\n value = value.replace(/,/g, \"\\\\,\");\n value = value.replace(/;/g, \"\\\\;\");\n return value;\n};\n","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"lodash\");","/**\n * Copyright 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport { fetchErrorHandler, fetchResponseHandler, escapeFilterValue } from \"./actions\";\nimport { getAccessToken } from '../components/security/methods';\nimport { buildAPIBaseUrl } from \"./methods\";\nimport _ from 'lodash';\nexport const RECEIVE_COUNTRIES = 'RECEIVE_COUNTRIES';\nconst callDelay = 500; //miliseconds\nimport URI from \"urijs\";\n\nexport const queryMembers = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`full_name=@${input},first_name=@${input},last_name=@${input},email=@${input}`);\n let expand = `tickets,rsvp,schedule_summit_events,all_affiliations`\n\n fetch(buildAPIBaseUrl(`/api/v1/members?filter=${filters}&expand=${expand}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const querySummits = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/all?filter=${filters}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const querySpeakers = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`full_name=@${input},first_name=@${input},last_name=@${input},email=@${input}`);\n let apiUrl = `/api/v1`;\n\n if (summitId) {\n apiUrl += `/summits/${summitId}`;\n }\n\n apiUrl += `/speakers?filter=${filters}&access_token=${accessToken}&expand=member,registration_request`;\n\n fetch(buildAPIBaseUrl(apiUrl))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\n\nexport const queryTags = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let apiUrl = `/api/v1`;\n let filter = encodeURIComponent(`tag=@${input}`);\n\n if (summitId) {\n apiUrl += `/summits/${summitId}/track-tag-groups/all/allowed-tags?filter=${filter}&expand=tag,track_tag_group`;\n } else {\n apiUrl += `/tags?filter=${filter}`;\n }\n\n apiUrl += `&order=tag&page=1&per_page=50&access_token=${accessToken}`;\n\n fetch(buildAPIBaseUrl(apiUrl))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n if (summitId) {\n options = options.map(t => t.tag);\n }\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\n\nexport const queryTracks = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filter = encodeURIComponent(`name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/${summitId}/tracks?filter=${filter}&order=name&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\n\nexport const queryTrackGroups = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filter = input ? encodeURIComponent(`filter=name=@${input}`) : '';\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/${summitId}/track-groups?order=name&access_token=${accessToken}&${filter}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\n\nexport const queryEvents = _.debounce(async (summitId, input, onlyPublished = false, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let baseUrl = `/api/v1/summits/${summitId}/events` + (onlyPublished ? '/published' : '');\n let filter = encodeURIComponent(`title=@${input}`);\n\n fetch(buildAPIBaseUrl(`${baseUrl}?filter=${filter}&order=title&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\nexport const queryEventTypes = _.debounce(async (summitId, input, callback, eventTypeClassName = null) => {\n const accessToken = await getAccessToken();\n\n input = escapeFilterValue(input);\n\n let url = `/api/v1/summits/${summitId}/event-types?order=name&access_token=${accessToken}`;\n\n if (input) {\n const filter = encodeURIComponent(`name=@${input}`);\n url += `&filter[]=${filter}`\n }\n\n if (eventTypeClassName) {\n const filter = encodeURIComponent(`class_name==${eventTypeClassName}`);\n url += `&filter[]=${filter}`\n }\n\n fetch(buildAPIBaseUrl(url))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const queryGroups = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n let filters = encodeURIComponent(`title=@${input},code=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/groups?filter=${filters}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\n\nexport const queryCompanies = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/companies?filter=${filters}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\nexport const queryRegistrationCompanies = _.debounce(async (summitId, input, callback) => {\n\n let accessToken;\n\n try {\n accessToken = await getAccessToken();\n } catch (e) {\n callback(e);\n return;\n }\n\n let apiUrl = URI(`/api/v1/summits/${summitId}/registration-companies`);\n apiUrl.addQuery('access_token', accessToken);\n apiUrl.addQuery('order','name')\n\n if(input) {\n input = escapeFilterValue(input);\n apiUrl.addQuery('filter[]', `name@@${input}`);\n }\n\n fetch(buildAPIBaseUrl(apiUrl.toString()))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const querySponsors = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`company_name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/${summitId}/sponsors?filter=${filters}&expand=company,sponsorship&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\nexport const queryAccessLevels = _.debounce(async (summitId, input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/${summitId}/access-level-types?filter=${filters}&&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\nexport const queryOrganizations = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`name=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/organizations?filter=${filters}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const getLanguageList = (callback, signal) => {\n return fetch(buildAPIBaseUrl(`/api/public/v1/languages`), {signal})\n .then(fetchResponseHandler)\n .then((response) => {\n callback(response.data);\n })\n .catch(fetchErrorHandler);\n};\n\n\nexport const getCountryList = (callback, signal) => {\n\n return fetch(buildAPIBaseUrl(`/api/public/v1/countries`), {signal})\n .then(fetchResponseHandler)\n .then((response) => {\n callback(response.data);\n })\n .catch(fetchErrorHandler);\n};\n\nvar geocoder;\n\nexport const geoCodeAddress = (address) => {\n\n if (!geocoder) geocoder = new google.maps.Geocoder();\n\n // return a Promise\n return new Promise(function(resolve,reject) {\n geocoder.geocode( { 'address': address}, function(results, status) {\n if (status == google.maps.GeocoderStatus.OK) {\n // resolve results upon a successful status\n resolve(results);\n } else {\n // reject status upon un-successful status\n reject(status);\n }\n });\n });\n};\n\nexport const geoCodeLatLng = (lat, lng) => {\n\n if (!geocoder) geocoder = new google.maps.Geocoder();\n\n var latlng = {lat: parseFloat(lat), lng: parseFloat(lng)};\n // return a Promise\n return new Promise(function(resolve,reject) {\n geocoder.geocode( { 'location': latlng}, function(results, status) {\n if (status == google.maps.GeocoderStatus.OK) {\n // resolve results upon a successful status\n resolve(results);\n } else {\n // reject status upon un-successful status\n reject(status);\n }\n });\n });\n};\n\n\nexport const queryTicketTypes = _.debounce(async (summitId, filters = {}, callback, version = 'v1') => {\n\n const accessToken = await getAccessToken();\n\n let apiUrl = URI(`/api/${version}/summits/${summitId}/ticket-types`);\n apiUrl.addQuery('access_token', accessToken);\n apiUrl.addQuery('order','name')\n\n if(filters.hasOwnProperty('name')) {\n const name = escapeFilterValue(filters.name);\n apiUrl.addQuery('filter[]', `name@@${name}`);\n }\n\n if(filters.hasOwnProperty('audience')){\n const audience = escapeFilterValue(filters.audience);\n apiUrl.addQuery('filter[]', `audience==${audience}`);\n }\n\n fetch(buildAPIBaseUrl(apiUrl.toString()))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const querySponsoredProjects = _.debounce(async (input, callback) => {\n\n const accessToken = await getAccessToken();\n const apiUrl = URI(`/api/v1/sponsored-projects`);\n apiUrl.addQuery('access_token', accessToken);\n if(input) {\n input = escapeFilterValue(input);\n apiUrl.addQuery('filter[]', `name=@${input}`);\n }\n\n fetch(buildAPIBaseUrl(apiUrl.toString()))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n\n\nexport const queryPromocodes = _.debounce(async (summitId, input, callback) => {\n const accessToken = await getAccessToken();\n input = escapeFilterValue(input);\n let filters = encodeURIComponent(`code=@${input}`);\n\n fetch(buildAPIBaseUrl(`/api/v1/summits/${summitId}/promo-codes?filter=${filters}&access_token=${accessToken}`))\n .then(fetchResponseHandler)\n .then((json) => {\n let options = [...json.data];\n\n callback(options);\n })\n .catch(fetchErrorHandler);\n}, callDelay);\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"idtoken-verifier\");","module.exports = require(\"moment-timezone\");","module.exports = require(\"react\");","module.exports = require(\"react-select/lib/Async\");","module.exports = require(\"superagent/lib/client\");","module.exports = require(\"sweetalert2\");","module.exports = require(\"urijs\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","/**\n * Copyright 2022 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport AsyncSelect from 'react-select/lib/Async';\nimport { querySponsoredProjects } from '../../utils/query-actions';\n\nexport default class SponsoredProjectInput extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.handleChange = this.handleChange.bind(this);\n this.getSponsoredProjects = this.getSponsoredProjects.bind(this);\n }\n\n handleChange(value) {\n let ev = {target: {\n id: this.props.id,\n value: value,\n type: 'sponsoredprojectinput'\n }};\n\n this.props.onChange(ev);\n }\n\n getSponsoredProjects (input, callback) {\n if (!input) {\n return Promise.resolve({ options: [] });\n }\n\n querySponsoredProjects(input, callback);\n }\n\n render() {\n let {value, error, onChange, id, multi, ...rest} = this.props;\n let isMulti = (this.props.hasOwnProperty('multi'));\n let isClearable = (this.props.hasOwnProperty('clearable'));\n let has_error = ( this.props.hasOwnProperty('error') && error != '' );\n\n return (\n <div>\n <AsyncSelect\n value={value}\n onChange={this.handleChange}\n loadOptions={this.getSponsoredProjects}\n getOptionValue={op => op.id}\n getOptionLabel={op => (`${op.name} (${op.id})`)}\n isMulti={isMulti}\n isClearable={isClearable}\n {...rest}\n />\n {has_error &&\n <p className=\"error-label\">{error}</p>\n }\n\n </div>\n );\n\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","AUTH_ERROR_MISSING_AUTH_INFO","AUTH_ERROR_MISSING_REFRESH_TOKEN","AUTH_ERROR_ACCESS_TOKEN_EXPIRED","AUTH_ERROR_LOCK_ACQUIRE_ERROR","AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR","require","window","crypto","msCrypto","lock","Lock","GET_TOKEN_SILENTLY_LOCK_KEY","RESPONSE_TYPE_CODE","AUTH_INFO","NONCE","PKCE","getAccessToken","async","retryPromise","acquireLock","authInfo","getAuthInfo","Error","accessToken","expiresIn","accessTokenUpdatedAt","refreshToken","flow","getOAuth2Flow","now","Math","floor","Date","console","log","useOAuth2RefreshToken","clearAuthInfo","response","refreshAccessToken","access_token","expires_in","refresh_token","storeAuthInfo","releaseLock","baseUrl","getOAuth2IDPBaseUrl","oauth2ClientId","getOAuth2ClientId","payload","encodeURI","fetch","method","headers","body","JSON","stringify","then","status","getCurrentPathName","setSessionClearingState","statusText","catch","error","message","json","err","idToken","formerAuthInfo","putOnLocalStorage","res","getFromLocalStorage","parse","removeFromLocalStorage","OAUTH2_CLIENT_ID","OAUTH2_FLOW","Boolean","OAUTH2_USE_REFRESH_TOKEN","IDP_BASE_URL","createAction","type","fetchErrorHandler","code","msg","Swal","T","fetchResponseHandler","ok","escapeFilterValue","value","replace","location","pathname","buildAPIBaseUrl","relativeUrl","API_BASE_URL","key","localStorage","setItem","removeIt","val","getItem","removeItem","clearing_session_state","cb","maxNumberOfRetries","i","callDelay","_","input","callback","filters","encodeURIComponent","options","data","summitId","apiUrl","filter","map","t","tag","onlyPublished","eventTypeClassName","url","e","URI","addQuery","toString","version","hasOwnProperty","name","audience","querySponsoredProjects","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","call","r","Symbol","toStringTag","SponsoredProjectInput","React","constructor","props","super","handleChange","bind","getSponsoredProjects","ev","target","id","onChange","Promise","resolve","render","multi","rest","isMulti","isClearable","has_error","loadOptions","getOptionValue","op","getOptionLabel","className"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components/summit-dropdown.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,6B,WCAzBJ,EAAOD,QAAUK,QAAQ,Q,WCAzBJ,EAAOD,QAAUK,QAAQ,e,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,E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pack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/external commonjs \"react-select\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/summit-dropdown/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"react\");","module.exports = require(\"react-select\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","/**\n * Copyright 2017 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport React from 'react';\nimport './summit-dropdown.less';\nimport Select from 'react-select';\nimport T from 'i18n-react/dist/i18n-react';\n\nexport default class SummitDropdown extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n summitValue: null,\n };\n\n this.handleChange = this.handleChange.bind(this);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleChange(summit) {\n this.setState({summitValue: summit});\n }\n\n handleClick(ev) {\n ev.preventDefault();\n this.props.onClick(this.state.summitValue.value);\n }\n\n render() {\n\n let {summits, actionLabel, actionClass} = this.props;\n let summitOptions = summits\n .sort(\n (a, b) => (a.start_date < b.start_date ? 1 : (a.start_date > b.start_date ? -1 : 0))\n ).map(s => ({label: s.name, value: s.id}));\n\n let bigClass = this.props.hasOwnProperty('big') ? 'big' : '';\n\n return (\n <div className={\"summit-dropdown btn-group \" + bigClass}>\n <Select\n id=\"summit-select\"\n value={this.state.summitValue}\n onChange={this.handleChange}\n options={summitOptions}\n placeholder={T.translate(\"general.select_summit\")}\n className=\"btn-group summit-select text-left\"\n isClearable={false}\n />\n <button type=\"button\" className={`btn btn-default ${actionClass}`} onClick={this.handleClick}>\n {actionLabel}\n </button>\n </div>\n );\n\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","SummitDropdown","React","constructor","props","super","state","summitValue","handleChange","bind","handleClick","summit","setState","ev","preventDefault","onClick","render","summits","actionLabel","actionClass","summitOptions","sort","b","start_date","map","s","label","name","id","bigClass","className","onChange","options","placeholder","T","isClearable","type"],"sourceRoot":""}