openstack-uicore-foundation 5.0.7-beta.1 → 5.0.8-beta.2

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 (230) hide show
  1. package/.codegraph/config.json +140 -0
  2. package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +83 -0
  3. package/lib/components/ajaxloader.js.map +1 -1
  4. package/lib/components/attendance-tracker.js +1 -1
  5. package/lib/components/attendance-tracker.js.map +1 -1
  6. package/lib/components/bulk-actions-selector.js.map +1 -1
  7. package/lib/components/circle-button.js.map +1 -1
  8. package/lib/components/clock.js +1 -1
  9. package/lib/components/clock.js.map +1 -1
  10. package/lib/components/exclusive-wrapper.js.map +1 -1
  11. package/lib/components/extra-questions-mui.js.map +1 -1
  12. package/lib/components/extra-questions.js +1 -1
  13. package/lib/components/extra-questions.js.map +1 -1
  14. package/lib/components/form-validation.js.map +1 -1
  15. package/lib/components/forms/rsvp-form.js.map +1 -1
  16. package/lib/components/forms/simple-form.js +1 -1
  17. package/lib/components/forms/simple-form.js.map +1 -1
  18. package/lib/components/free-text-search.js +1 -1
  19. package/lib/components/free-text-search.js.map +1 -1
  20. package/lib/components/google-map.js +1 -1
  21. package/lib/components/google-map.js.map +1 -1
  22. package/lib/components/index.js +1 -1
  23. package/lib/components/index.js.map +1 -1
  24. package/lib/components/inputs/access-levels-input.js +1 -1
  25. package/lib/components/inputs/access-levels-input.js.map +1 -1
  26. package/lib/components/inputs/action-dropdown.js.map +1 -1
  27. package/lib/components/inputs/attendee-input.js +1 -1
  28. package/lib/components/inputs/attendee-input.js.map +1 -1
  29. package/lib/components/inputs/checkbox-list.js.map +1 -1
  30. package/lib/components/inputs/company-input-v2.js +1 -1
  31. package/lib/components/inputs/company-input-v2.js.map +1 -1
  32. package/lib/components/inputs/company-input.js +1 -1
  33. package/lib/components/inputs/company-input.js.map +1 -1
  34. package/lib/components/inputs/country-dropdown.js +1 -1
  35. package/lib/components/inputs/country-dropdown.js.map +1 -1
  36. package/lib/components/inputs/country-input.js +1 -1
  37. package/lib/components/inputs/country-input.js.map +1 -1
  38. package/lib/components/inputs/datetimepicker.js.map +1 -1
  39. package/lib/components/inputs/dropdown.js.map +1 -1
  40. package/lib/components/inputs/editor-input-v2.js.map +1 -1
  41. package/lib/components/inputs/editor-input-v3.js.map +1 -1
  42. package/lib/components/inputs/editor-input.js.map +1 -1
  43. package/lib/components/inputs/event-input.js +1 -1
  44. package/lib/components/inputs/event-input.js.map +1 -1
  45. package/lib/components/inputs/free-multi-text-input.js.map +1 -1
  46. package/lib/components/inputs/group-input.js +1 -1
  47. package/lib/components/inputs/group-input.js.map +1 -1
  48. package/lib/components/inputs/grouped-dropdown.js.map +1 -1
  49. package/lib/components/inputs/language-input.js +1 -1
  50. package/lib/components/inputs/language-input.js.map +1 -1
  51. package/lib/components/inputs/member-input.js +1 -1
  52. package/lib/components/inputs/member-input.js.map +1 -1
  53. package/lib/components/inputs/operator-input.js.map +1 -1
  54. package/lib/components/inputs/organization-input.js +1 -1
  55. package/lib/components/inputs/organization-input.js.map +1 -1
  56. package/lib/components/inputs/promocode-input.js +1 -1
  57. package/lib/components/inputs/promocode-input.js.map +1 -1
  58. package/lib/components/inputs/radio-list.js.map +1 -1
  59. package/lib/components/inputs/registration-company-input.js +1 -1
  60. package/lib/components/inputs/registration-company-input.js.map +1 -1
  61. package/lib/components/inputs/speaker-input.js +1 -1
  62. package/lib/components/inputs/speaker-input.js.map +1 -1
  63. package/lib/components/inputs/sponsor-input.js +1 -1
  64. package/lib/components/inputs/sponsor-input.js.map +1 -1
  65. package/lib/components/inputs/stepped-select.js.map +1 -1
  66. package/lib/components/inputs/summit-days-select.js.map +1 -1
  67. package/lib/components/inputs/summit-input.js +1 -1
  68. package/lib/components/inputs/summit-input.js.map +1 -1
  69. package/lib/components/inputs/summit-venues-select.js.map +1 -1
  70. package/lib/components/inputs/tag-input.js +1 -1
  71. package/lib/components/inputs/tag-input.js.map +1 -1
  72. package/lib/components/inputs/text-input.js.map +1 -1
  73. package/lib/components/inputs/textarea-input.js.map +1 -1
  74. package/lib/components/inputs/ticket-types-input.js +1 -1
  75. package/lib/components/inputs/ticket-types-input.js.map +1 -1
  76. package/lib/components/inputs/upload-input-v2.js +1 -1
  77. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  78. package/lib/components/inputs/upload-input-v3.js +1 -1
  79. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  80. package/lib/components/inputs/upload-input.js.map +1 -1
  81. package/lib/components/mui/checkbox-list.js.map +1 -1
  82. package/lib/components/mui/chip-list.js.map +1 -1
  83. package/lib/components/mui/chip-notify.js +1 -1
  84. package/lib/components/mui/chip-notify.js.map +1 -1
  85. package/lib/components/mui/chip-select-input.js.map +1 -1
  86. package/lib/components/mui/confirm-dialog.js.map +1 -1
  87. package/lib/components/mui/custom-alert.js.map +1 -1
  88. package/lib/components/mui/dnd-list.js.map +1 -1
  89. package/lib/components/mui/dropdown-checkbox.js.map +1 -1
  90. package/lib/components/mui/editable-table.js +1 -1
  91. package/lib/components/mui/editable-table.js.map +1 -1
  92. package/lib/components/mui/form-item-table.js +1 -1
  93. package/lib/components/mui/form-item-table.js.map +1 -1
  94. package/lib/components/mui/formik-inputs/additional-input-list.js +1 -1
  95. package/lib/components/mui/formik-inputs/additional-input-list.js.map +1 -1
  96. package/lib/components/mui/formik-inputs/additional-input.js +1 -1
  97. package/lib/components/mui/formik-inputs/additional-input.js.map +1 -1
  98. package/lib/components/mui/formik-inputs/async-select.js.map +1 -1
  99. package/lib/components/mui/formik-inputs/checkbox-group.js.map +1 -1
  100. package/lib/components/mui/formik-inputs/checkbox.js.map +1 -1
  101. package/lib/components/mui/formik-inputs/company-input.js +1 -1
  102. package/lib/components/mui/formik-inputs/company-input.js.map +1 -1
  103. package/lib/components/mui/formik-inputs/datepicker.js.map +1 -1
  104. package/lib/components/mui/formik-inputs/discount-field.js.map +1 -1
  105. package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
  106. package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
  107. package/lib/components/mui/formik-inputs/file-size-field.js.map +1 -1
  108. package/lib/components/mui/formik-inputs/item-price-tiers.js +1 -1
  109. package/lib/components/mui/formik-inputs/item-price-tiers.js.map +1 -1
  110. package/lib/components/mui/formik-inputs/price-field.js.map +1 -1
  111. package/lib/components/mui/formik-inputs/quantity-field.js.map +1 -1
  112. package/lib/components/mui/formik-inputs/radio-group.js.map +1 -1
  113. package/lib/components/mui/formik-inputs/select-group.js.map +1 -1
  114. package/lib/components/mui/formik-inputs/select.js.map +1 -1
  115. package/lib/components/mui/formik-inputs/sponsor-input.js +1 -1
  116. package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
  117. package/lib/components/mui/formik-inputs/sponsorship-input.js +1 -1
  118. package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
  119. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js +1 -1
  120. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
  121. package/lib/components/mui/formik-inputs/summit-addon-select.js +1 -1
  122. package/lib/components/mui/formik-inputs/summit-addon-select.js.map +1 -1
  123. package/lib/components/mui/formik-inputs/switch.js.map +1 -1
  124. package/lib/components/mui/formik-inputs/textfield.js.map +1 -1
  125. package/lib/components/mui/formik-inputs/timepicker.js.map +1 -1
  126. package/lib/components/mui/formik-inputs/upload.js +1 -1
  127. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  128. package/lib/components/mui/global-confirm-dialog.js +2 -0
  129. package/lib/components/mui/global-confirm-dialog.js.map +1 -0
  130. package/lib/components/mui/infinite-table.js.map +1 -1
  131. package/lib/components/mui/item-settings-modal.js +1 -1
  132. package/lib/components/mui/item-settings-modal.js.map +1 -1
  133. package/lib/components/mui/menu-button.js.map +1 -1
  134. package/lib/components/mui/notes-modal.js +1 -1
  135. package/lib/components/mui/notes-modal.js.map +1 -1
  136. package/lib/components/mui/search-input.js.map +1 -1
  137. package/lib/components/mui/show-confirm-dialog.js +1 -1
  138. package/lib/components/mui/show-confirm-dialog.js.map +1 -1
  139. package/lib/components/mui/snackbar-notification.js +1 -1
  140. package/lib/components/mui/snackbar-notification.js.map +1 -1
  141. package/lib/components/mui/sortable-table.js +1 -1
  142. package/lib/components/mui/sortable-table.js.map +1 -1
  143. package/lib/components/mui/sponsor-addon-select.js +1 -1
  144. package/lib/components/mui/sponsor-addon-select.js.map +1 -1
  145. package/lib/components/mui/summit-addon-select.js +1 -1
  146. package/lib/components/mui/summit-addon-select.js.map +1 -1
  147. package/lib/components/mui/summits-dropdown.js +1 -1
  148. package/lib/components/mui/summits-dropdown.js.map +1 -1
  149. package/lib/components/mui/table.js +1 -1
  150. package/lib/components/mui/table.js.map +1 -1
  151. package/lib/components/progressive-img.js.map +1 -1
  152. package/lib/components/raw-html.js.map +1 -1
  153. package/lib/components/schedule-builder-view.js +1 -1
  154. package/lib/components/schedule-builder-view.js.map +1 -1
  155. package/lib/components/sections/panel.js.map +1 -1
  156. package/lib/components/simple-link-list.js.map +1 -1
  157. package/lib/components/sponsored-project-input.js +1 -1
  158. package/lib/components/sponsored-project-input.js.map +1 -1
  159. package/lib/components/summit-dropdown.js.map +1 -1
  160. package/lib/components/table-editable.js +1 -1
  161. package/lib/components/table-editable.js.map +1 -1
  162. package/lib/components/table-selectable.js.map +1 -1
  163. package/lib/components/table-sortable.js.map +1 -1
  164. package/lib/components/table.js.map +1 -1
  165. package/lib/components/video-stream.js.map +1 -1
  166. package/lib/css/components/index.css +1 -1
  167. package/lib/css/components/index.css.map +1 -1
  168. package/lib/i18n.js +1 -1
  169. package/lib/i18n.js.map +1 -1
  170. package/lib/models/index.js.map +1 -1
  171. package/lib/models/summit-event.js.map +1 -1
  172. package/lib/security/abstract-auth-callback-route-v2.js +1 -1
  173. package/lib/security/abstract-auth-callback-route-v2.js.map +1 -1
  174. package/lib/security/abstract-auth-callback-route.js +1 -1
  175. package/lib/security/abstract-auth-callback-route.js.map +1 -1
  176. package/lib/security/actions.js +1 -1
  177. package/lib/security/actions.js.map +1 -1
  178. package/lib/security/methods.js +1 -1
  179. package/lib/security/methods.js.map +1 -1
  180. package/lib/security/reducers.js +1 -1
  181. package/lib/security/reducers.js.map +1 -1
  182. package/lib/security/session-checker.js +1 -1
  183. package/lib/security/session-checker.js.map +1 -1
  184. package/lib/utils/actions.js +1 -1
  185. package/lib/utils/actions.js.map +1 -1
  186. package/lib/utils/fragment-parser.js.map +1 -1
  187. package/lib/utils/methods.js +1 -1
  188. package/lib/utils/methods.js.map +1 -1
  189. package/lib/utils/money.js.map +1 -1
  190. package/lib/utils/query-actions.js +1 -1
  191. package/lib/utils/query-actions.js.map +1 -1
  192. package/lib/utils/questions-set.js +1 -1
  193. package/lib/utils/questions-set.js.map +1 -1
  194. package/lib/utils/reducers.js +1 -1
  195. package/lib/utils/reducers.js.map +1 -1
  196. package/lib/utils/use-fit-text.js.map +1 -1
  197. package/package.json +1 -9
  198. package/.claude/settings.local.json +0 -12
  199. package/lib/components/mui/alert-button.js +0 -2
  200. package/lib/components/mui/alert-button.js.map +0 -1
  201. package/lib/components/mui/alert-modal.js +0 -2
  202. package/lib/components/mui/alert-modal.js.map +0 -1
  203. package/lib/components/mui/auth-button.js +0 -2
  204. package/lib/components/mui/auth-button.js.map +0 -1
  205. package/lib/components/mui/cart-button.js +0 -2
  206. package/lib/components/mui/cart-button.js.map +0 -1
  207. package/lib/components/mui/confirm-delete-dialog.js +0 -2
  208. package/lib/components/mui/confirm-delete-dialog.js.map +0 -1
  209. package/lib/components/mui/dashboard-card.js +0 -2
  210. package/lib/components/mui/dashboard-card.js.map +0 -1
  211. package/lib/components/mui/download-btn.js +0 -2
  212. package/lib/components/mui/download-btn.js.map +0 -1
  213. package/lib/components/mui/loading-overlay.js +0 -2
  214. package/lib/components/mui/loading-overlay.js.map +0 -1
  215. package/lib/components/mui/nav-bar.js +0 -2
  216. package/lib/components/mui/nav-bar.js.map +0 -1
  217. package/lib/components/mui/order-summary.js +0 -2
  218. package/lib/components/mui/order-summary.js.map +0 -1
  219. package/lib/components/mui/status-chip.js +0 -2
  220. package/lib/components/mui/status-chip.js.map +0 -1
  221. package/lib/components/mui/stripe-payment.js +0 -2
  222. package/lib/components/mui/stripe-payment.js.map +0 -1
  223. package/lib/components/mui/upload-btn.js +0 -2
  224. package/lib/components/mui/upload-btn.js.map +0 -1
  225. package/lib/components/mui/upload-dialog.js +0 -2
  226. package/lib/components/mui/upload-dialog.js.map +0 -1
  227. package/lib/css/components/mui/auth-button.css +0 -1
  228. package/lib/css/components/mui/nav-bar.css +0 -1
  229. package/lib/css/components/mui/upload-dialog.css +0 -2
  230. package/lib/css/components/mui/upload-dialog.css.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/table.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,8HCiBT,MAAMC,EAAU,CACdC,QAASC,IAAAA,cAACC,EAAAA,QAAO,CAACC,MAAM,YACxBC,QAASH,IAAAA,cAACI,EAAAA,YAAW,CAACF,MAAM,YAC5BG,MAAOL,IAAAA,cAACM,EAAAA,MAAK,CAACJ,MAAM,UACpBK,KAAMP,IAAAA,cAACQ,EAAAA,KAAI,CAACN,MAAM,UAGdO,EAAgBA,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB,UACrBC,mBAAmB,SACnBC,oBAAoB,aAEpBnB,IAAAA,cAACoB,EAAAA,OAAM,CAACV,KAAMA,EAAMW,QAASN,GAC3Bf,IAAAA,cAACsB,EAAAA,YAAW,CAACC,GAAI,CAAEC,EAAG,GAAKC,UAAU,OACnCzB,IAAAA,cAAC0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QAGtB,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"react-dom\"","webpack://openstack-uicore-foundation/./src/components/mui/showConfirmDialog.js","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","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/external commonjs \"@mui/icons-material/Check\"","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.module.less?e9a1","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/ArrowForward\"","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.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 2026 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 {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport { CheckCircle, Error, Info, Warning } from \"@mui/icons-material\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react-dom\");","/**\n * Copyright 2026 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 ReactDOM from \"react-dom\";\nimport React from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n// Lazy-loaded createRoot for React 18+.\n// Cached after first call so the dynamic import only runs once.\nlet createRootFn = undefined; // undefined = not yet checked\n\nasync function getCreateRoot() {\n if (createRootFn !== undefined) return createRootFn;\n try {\n // webpackIgnore prevents webpack from resolving this at build time,\n // so consuming projects on React 16/17 won't get a \"Module not found\" error.\n const mod = await import(/* webpackIgnore: true */ \"react-dom/client\");\n createRootFn = mod.createRoot || null;\n } catch (_) {\n createRootFn = null;\n }\n return createRootFn;\n}\n\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) =>\n new Promise((resolve) => {\n const container = document.createElement(\"div\");\n document.body.appendChild(container);\n\n let root = null;\n\n const close = (answer) => {\n if (root) {\n root.unmount();\n } else {\n ReactDOM.unmountComponentAtNode(container);\n }\n container.remove();\n resolve(answer);\n };\n\n const handleConfirm = () => close(true);\n const handleCancel = () => close(false);\n\n const element = (\n <ConfirmDialog\n open\n title={title}\n text={text}\n iconType={iconType}\n confirmButtonText={confirmButtonText}\n cancelButtonText={cancelButtonText}\n confirmButtonColor={confirmButtonColor}\n cancelButtonColor={cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n\n getCreateRoot().then((createRoot) => {\n if (createRoot) {\n root = createRoot(container);\n root.render(element);\n } else {\n ReactDOM.render(element, container);\n }\n });\n });\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"lodash\");","module.exports = require(\"prop-types\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Check\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"mx3fuojj3xuUbN9ch3eB\"};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/ArrowForward\");","/**\n * Copyright 2026 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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport {isBoolean} from \"lodash\";\nimport {\n Box,\n Button,\n IconButton,\n Paper,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TableSortLabel\n} from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport {visuallyHidden} from \"@mui/utils\";\nimport {DEFAULT_PER_PAGE, FIFTY_PER_PAGE, TWENTY_PER_PAGE} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\nimport styles from \"./mui-table.module.less\";\nimport ArrowForwardIcon from \"@mui/icons-material/ArrowForward\";\nimport PropTypes from \"prop-types\";\n\nconst ARCHIVED_CELL_SX = {\n backgroundColor: \"background.light\",\n color: \"text.disabled\"\n};\n\nconst MuiTable = ({\n columns = [],\n data = [],\n children,\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = {sortCol: \"\", sortDir: 1, disableProp: null}, // disableProp is the prop that will disable the row\n getName = (item) => item.name,\n onEdit,\n onArchive,\n onDelete,\n onSelect,\n canDelete = () => true,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n deleteDialogConfirmText = null,\n confirmButtonColor = null\n }) => {\n const totalColumnsCount =\n columns.length + (onEdit ? 1 : 0) + (onDelete ? 1 : 0) + (onArchive ? 1 : 0) + (onSelect ? 1 : 0);\n\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const initialPerPage = React.useRef(perPage);\n\n let customPerPageOptions = basePerPageOptions.includes(initialPerPage.current)\n ? basePerPageOptions\n : [...basePerPageOptions, initialPerPage.current].sort((a, b) => a - b);\n\n // remove per page selection if no action passed\n if (!onPerPageChange) {\n customPerPageOptions = [initialPerPage.current];\n }\n\n const {sortCol, sortDir} = options;\n\n const getArchivedCellSx = (row) =>\n options.disableProp && row[options.disableProp] ? ARCHIVED_CELL_SX : null;\n\n const getCellSx = (row, baseSx = {}) => ({\n ...baseSx,\n ...(getArchivedCellSx(row) || {})\n });\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: confirmButtonColor || \"#DD6B55\",\n confirmButtonText:\n deleteDialogConfirmText || T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n const renderCell = (row, col) => {\n if (col.render) {\n return col.render(row);\n }\n\n if (isBoolean(row[col.columnKey])) {\n return row[col.columnKey] ? (\n <CheckIcon fontSize=\"large\"/>\n ) : (\n <CloseIcon fontSize=\"large\"/>\n );\n }\n\n return row[col.columnKey];\n };\n\n return (\n <Box sx={{width: \"100%\"}}>\n <Paper elevation={0} sx={{width: \"100%\", mb: 2}}>\n <TableContainer\n component={Paper}\n sx={{borderRadius: 0, boxShadow: \"none\"}}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{backgroundColor: \"#EAEAEA\"}}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{width: 40}}/>}\n {onArchive && <TableCell sx={{width: 80}}/>}\n {onDelete && <TableCell sx={{width: 40}}/>}\n {onSelect && <TableCell sx={{width: 40}}/>}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row) => (\n <TableRow key={row.id}>\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n sx={getCellSx(row)}\n >\n {renderCell(row, col)}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, {width: 40})}\n >\n <IconButton size=\"large\" onClick={() => onEdit(row)} data-testid=\"action-edit\">\n <EditIcon fontSize=\"large\"/>\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={{width: 80}}\n className={styles.dottedBorderLeft}\n >\n <Button\n variant=\"text\"\n color=\"inherit\"\n size=\"small\"\n onClick={() => onArchive(row)}\n data-testid=\"action-archive\"\n sx={{\n fontSize: \"1.3rem\",\n fontWeight: 500,\n lineHeight: \"2.2rem\",\n padding: \"4px 5px\"\n }}\n >\n {row.is_archived\n ? T.translate(\"general.unarchive\")\n : T.translate(\"general.archive\")}\n </Button>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, {width: 40})}\n >\n {canDelete(row) && (\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n data-testid=\"action-delete\"\n >\n <DeleteIcon fontSize=\"large\"/>\n </IconButton>\n )}\n </TableCell>\n )}\n {onSelect && (\n <TableCell\n align=\"center\"\n sx={{width: 40}}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"large\"\n onClick={() => onSelect(row)}\n data-testid=\"action-select\"\n >\n <ArrowForwardIcon/>\n </IconButton>\n </TableCell>\n )}\n </TableRow>\n ))}\n {/* Here we inject extra rows passed as children */}\n {children}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={totalColumnsCount} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {perPage && currentPage && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nMuiTable.propTypes = {\n columns: PropTypes.array,\n data: PropTypes.array,\n children: PropTypes.node,\n totalRows: PropTypes.number,\n perPage: PropTypes.number,\n currentPage: PropTypes.number,\n onPageChange: PropTypes.func,\n onPerPageChange: PropTypes.func,\n onSort: PropTypes.func,\n options: PropTypes.object,\n getName: PropTypes.func,\n onEdit: PropTypes.func,\n onArchive: PropTypes.func,\n onDelete: PropTypes.func,\n onSelect: PropTypes.func,\n canDelete: PropTypes.func,\n deleteDialogTitle: PropTypes.string,\n deleteDialogBody: PropTypes.string,\n deleteDialogConfirmText: PropTypes.string,\n confirmButtonColor: PropTypes.string\n};\n\nexport default MuiTable;\n"],"names":["root","factory","exports","module","define","amd","this","iconMap","warning","React","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","require","createRootFn","showConfirmDialog","Promise","resolve","container","document","createElement","body","appendChild","close","answer","unmount","ReactDOM","remove","element","handleConfirm","handleCancel","async","undefined","mod","import","createRoot","_","getCreateRoot","then","render","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ARCHIVED_CELL_SX","backgroundColor","MuiTable","columns","data","children","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","disableProp","getName","item","name","onEdit","onArchive","onDelete","onSelect","canDelete","deleteDialogTitle","deleteDialogBody","deleteDialogConfirmText","totalColumnsCount","length","basePerPageOptions","initialPerPage","customPerPageOptions","includes","current","sort","b","getCellSx","row","baseSx","_objectSpread","getArchivedCellSx","Box","width","Paper","elevation","mb","TableContainer","borderRadius","boxShadow","Table","TableHead","TableRow","map","col","TableCell","columnKey","maxWidth","align","sortable","TableSortLabel","active","direction","header","visuallyHidden","T","TableBody","id","className","dottedBorder","styles","renderCell","isBoolean","CheckIcon","fontSize","CloseIcon","IconButton","size","EditIcon","fontWeight","lineHeight","padding","is_archived","type","showCancelButton","handleDelete","DeleteIcon","ArrowForwardIcon","colSpan","TablePagination","count","rowsPerPageOptions","rowsPerPage","page","handleChangePage","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/table.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,uGCiBT,MAAMC,EAAU,CACdC,QAAS,kBAAC,EAAAC,QAAD,CAASC,MAAM,YACxBC,QAAS,kBAAC,EAAAC,YAAD,CAAaF,MAAM,YAC5BG,MAAO,kBAAC,EAAAC,MAAD,CAAOJ,MAAM,UACpBK,KAAM,kBAAC,EAAAC,KAAD,CAAMN,MAAM,UAGdO,EAAgB,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB,UACrBC,mBAAmB,SACnBC,oBAAoB,aAEpB,kBAAC,EAAAC,OAAD,CAAQV,KAAMA,EAAMW,QAASN,GAC3B,kBAAC,EAAAO,YAAD,CAAaC,GAAI,CAAEC,EAAG,GAAKC,UAAU,OACnC,kBAAC,EAAAC,WAAD,CAAYC,QAAQ,MAAMhB,IAE5B,kBAAC,EAAAiB,QAAD,MACA,kBAAC,EAAAC,cAAD,CAAeN,GAAI,CAAEC,EAAG,IACtB,yBAAKM,MAAO,CAAEC,QAAS,OAAQC,WAAY,WACxCjC,EAAQc,IACP,yBAAKiB,MAAO,CAAEG,YAAa,KAAOlC,EAAQc,IAE5C,kBAAC,EAAAa,WAAD,CAAYC,QAAQ,SAASf,KAGjC,kBAAC,EAAAgB,QAAD,CAASL,GAAI,CAAEW,OAAQ,uBACvB,kBAAC,EAAAC,cAAD,KACE,kBAAC,EAAAC,OAAD,CACEC,WAA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+B,CAC7BS,WAAY,WACZ2I,UAAW,UAEb,6BAA8B,CAC5B5I,QAAS,QAEX,oCAAqC,CACnC6I,WAAY,YA7J1B,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/./src/components/mui/showConfirmDialog.js","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Edit\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","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/external commonjs \"@mui/icons-material/Check\"","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.module.less?e9a1","webpack://openstack-uicore-foundation/./src/components/mui/table/mui-table.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 2026 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 {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport { CheckCircle, Error, Info, Warning } from \"@mui/icons-material\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","/**\n * Copyright 2026 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 ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from 'openstack-uicore-foundation';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE:\n * import { MuiShowConfirmDialog } from 'openstack-uicore-foundation';\n *\n * const confirmed = await MuiShowConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Module-level bridge: holds the callback registered by GlobalConfirmDialog\nlet bridgeFn = null;\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!bridgeFn) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return bridgeFn({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n bridgeFn = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { bridgeFn = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/icons-material/Delete\");","module.exports = require(\"@mui/icons-material/Edit\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"lodash\");","module.exports = require(\"prop-types\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Check\");","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"mx3fuojj3xuUbN9ch3eB\"};","/**\n * Copyright 2026 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 * as React from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport { isBoolean } from \"lodash\";\nimport {\n Box,\n Button,\n IconButton,\n Paper,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TableSortLabel\n} from \"@mui/material\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport { visuallyHidden } from \"@mui/utils\";\nimport {\n DEFAULT_PER_PAGE,\n FIFTY_PER_PAGE,\n TWENTY_PER_PAGE\n} from \"../../../utils/constants\";\nimport showConfirmDialog from \"../showConfirmDialog\";\nimport styles from \"./mui-table.module.less\";\n\nconst ARCHIVED_CELL_SX = {\n backgroundColor: \"background.light\",\n color: \"text.disabled\"\n};\n\nconst MuiTable = ({\n columns = [],\n data = [],\n children,\n totalRows,\n perPage,\n currentPage,\n onPageChange,\n onPerPageChange,\n onSort,\n options = { sortCol: \"\", sortDir: 1, disableProp: null }, // disableProp is the prop that will disable the row\n getName = (item) => item.name,\n onEdit,\n onArchive,\n onDelete,\n canDelete = () => true,\n deleteDialogTitle = null,\n deleteDialogBody = null,\n deleteDialogConfirmText = null,\n confirmButtonColor = null\n}) => {\n const handleChangePage = (_, newPage) => {\n onPageChange(newPage + 1);\n };\n\n const handleChangeRowsPerPage = (ev) => {\n onPerPageChange(ev.target.value);\n };\n\n const basePerPageOptions = [\n DEFAULT_PER_PAGE,\n TWENTY_PER_PAGE,\n FIFTY_PER_PAGE\n ];\n\n const initialPerPage = React.useRef(perPage);\n\n let customPerPageOptions = basePerPageOptions.includes(initialPerPage.current)\n ? basePerPageOptions\n : [...basePerPageOptions, initialPerPage.current].sort((a, b) => a - b);\n\n // remove per page selection if no action passed\n if (!onPerPageChange) {\n customPerPageOptions = [initialPerPage.current];\n }\n\n const { sortCol, sortDir } = options;\n\n const getArchivedCellSx = (row) =>\n options.disableProp && row[options.disableProp] ? ARCHIVED_CELL_SX : null;\n\n const getCellSx = (row, baseSx = {}) => ({\n ...baseSx,\n ...(getArchivedCellSx(row) || {})\n });\n\n const handleDelete = async (item) => {\n const isConfirmed = await showConfirmDialog({\n title: deleteDialogTitle || T.translate(\"general.are_you_sure\"),\n text:\n typeof deleteDialogBody === \"function\"\n ? deleteDialogBody(getName(item))\n : deleteDialogBody ||\n `${T.translate(\"general.row_remove_warning\")} ${getName(item)}`,\n type: \"warning\",\n showCancelButton: true,\n confirmButtonColor: confirmButtonColor || \"#DD6B55\",\n confirmButtonText:\n deleteDialogConfirmText || T.translate(\"general.yes_delete\")\n });\n\n if (isConfirmed) {\n onDelete(item.id);\n }\n };\n\n const renderCell = (row, col) => {\n if (col.render) {\n return col.render(row);\n }\n\n if (isBoolean(row[col.columnKey])) {\n return row[col.columnKey] ? (\n <CheckIcon fontSize=\"large\" />\n ) : (\n <CloseIcon fontSize=\"large\" />\n );\n }\n\n return row[col.columnKey];\n };\n\n return (\n <Box sx={{ width: \"100%\" }}>\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === -1\n ? \"desc\"\n : \"asc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === -1\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n {onEdit && <TableCell sx={{ width: 40 }} />}\n {onArchive && <TableCell sx={{ width: 80 }} />}\n {onDelete && <TableCell sx={{ width: 40 }} />}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row) => (\n <TableRow key={row.id}>\n {/* Main content columns */}\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={`${\n col.dottedBorder && styles.dottedBorderLeft\n } ${col.className}`}\n sx={getCellSx(row)}\n >\n {renderCell(row, col)}\n </TableCell>\n ))}\n {/* Edit column */}\n {onEdit && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n <IconButton size=\"large\" onClick={() => onEdit(row)}>\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={{ width: 80 }}\n className={styles.dottedBorderLeft}\n >\n <Button\n variant=\"text\"\n color=\"inherit\"\n size=\"small\"\n onClick={() => onArchive(row)}\n sx={{\n fontSize: \"1.3rem\",\n fontWeight: 500,\n lineHeight: \"2.2rem\",\n padding: \"4px 5px\"\n }}\n >\n {row.is_archived\n ? T.translate(\"general.unarchive\")\n : T.translate(\"general.archive\")}\n </Button>\n </TableCell>\n )}\n {/* Delete column */}\n {onDelete && (\n <TableCell\n align=\"center\"\n className={styles.dottedBorderLeft}\n sx={getCellSx(row, { width: 40 })}\n >\n {canDelete(row) && (\n <IconButton\n size=\"large\"\n onClick={() => handleDelete(row)}\n >\n <DeleteIcon fontSize=\"large\" />\n </IconButton>\n )}\n </TableCell>\n )}\n </TableRow>\n ))}\n {/* Here we inject extra rows passed as children */}\n {children}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_items\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n\n {/* PAGINATION */}\n {perPage && currentPage && (\n <TablePagination\n component=\"div\"\n count={totalRows}\n rowsPerPageOptions={customPerPageOptions}\n rowsPerPage={perPage}\n page={currentPage - 1}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n labelRowsPerPage={T.translate(\"mui_table.rows_per_page\")}\n sx={{\n \".MuiTablePagination-toolbar\": {\n alignItems: \"baseline\",\n marginTop: \"1.6rem\"\n },\n \".MuiTablePagination-spacer\": {\n display: \"none\"\n },\n \".MuiTablePagination-displayedRows\": {\n marginLeft: \"auto\"\n }\n }}\n />\n )}\n </Paper>\n </Box>\n );\n};\n\nexport default MuiTable;\n"],"names":["root","factory","exports","module","define","amd","this","iconMap","warning","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","bridgeFn","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","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","ARCHIVED_CELL_SX","backgroundColor","columns","data","children","totalRows","perPage","currentPage","onPageChange","onPerPageChange","onSort","options","sortCol","sortDir","disableProp","getName","item","name","onEdit","onArchive","onDelete","canDelete","deleteDialogTitle","deleteDialogBody","deleteDialogConfirmText","basePerPageOptions","initialPerPage","React","customPerPageOptions","includes","current","sort","b","getCellSx","row","baseSx","getArchivedCellSx","Box","width","Paper","elevation","mb","TableContainer","borderRadius","boxShadow","Table","TableHead","TableRow","map","col","TableCell","columnKey","maxWidth","align","sortable","TableSortLabel","active","direction","header","visuallyHidden","T","TableBody","id","className","dottedBorder","styles","render","isBoolean","fontSize","renderCell","IconButton","size","fontWeight","lineHeight","padding","is_archived","async","showConfirmDialog","type","showCancelButton","handleDelete","length","colSpan","TablePagination","count","rowsPerPageOptions","rowsPerPage","page","_","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
@@ -1 +1 @@
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,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,gjsDCTTH,EAAOD,QAAUK,QAAQ,wC,WCAzBJ,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,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,EA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,IAAAA,cAAA,MAAAC,IAAA,G,iWAAAC,CAAA,CACU/B,IAAKM,GAAWL,GAAK,CAC3B+B,IAAK/B,EAAM+B,KAAO,GAClBC,UAAW,GAAGtB,KAAgBF,MAChC,E","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, useRef } 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 isCancelled = useRef(false);\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 ? src.split('.').pop() : null;\n img.src = src;\n\n img.onload = () => {\n if (isCancelled.current) return\n setImgSrc(src)\n setCustomClass(styles.loaded)\n };\n\n img.onerror = () => {\n if (isCancelled.current) return\n img.onerror = null;\n if(ext && ext.toString().toLowerCase().includes('pdf'))\n setImgSrc(pdf_icon)\n else if(ext && ext.toString().toLowerCase().includes('mov'))\n setImgSrc(mov_icon);\n else if(ext && ext.toString().toLowerCase().includes('mp4'))\n setImgSrc(mp4_icon);\n else if(ext && ext.toString().toLowerCase().includes('csv'))\n setImgSrc(csv_icon);\n else\n setImgSrc(file_icon);\n setCustomClass(styles.loaded)\n };\n\n return () => {\n isCancelled.current = true;\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","_ref","placeholderSrc","src","props","_objectWithoutProperties","_excluded","isCancelled","useRef","imgSrc","setImgSrc","useState","customClass","setCustomClass","styles","useEffect","img","Image","ext","split","pop","onload","current","onerror","toString","toLowerCase","includes","pdf_icon","mov_icon","mp4_icon","csv_icon","file_icon","React","_extends","_objectSpread","alt","className"],"sourceRoot":""}
1
+ {"version":3,"file":"components/progressive-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C,4HCJ9D,QAA0B,uBAA1B,EAA0D,uBAA1D,EAAyF,uB,qTC0BzF,MA6CA,EA7CuB,IAAuC,IAAtC,eAAEC,EAAF,IAAkBC,GAAoB,EAAZC,EAAY,SAC1D,MAAMC,GAAcC,EAAAA,EAAAA,SAAO,IACpBC,EAAQC,IAAaC,EAAAA,EAAAA,UAASP,GAAkBC,IAChDO,EAAaC,IAAkBF,EAAAA,EAAAA,UAASG,GAkC/C,OAhCAC,EAAAA,EAAAA,YAAU,KACN,MAAMC,EAAM,IAAIC,MACVC,EAAOb,EAAMA,EAAIc,MAAM,KAAKC,MAAQ,KAyB1C,OAxBAJ,EAAIX,IAAMA,EAEVW,EAAIK,OAAS,KACLd,EAAYe,UAChBZ,EAAUL,GACVQ,EAAeC,GAAf,EAGJE,EAAIO,QAAU,KACNhB,EAAYe,UAChBN,EAAIO,QAAU,KACXL,GAAOA,EAAIM,WAAWC,cAAcC,SAAS,OAC5ChB,EAAUiB,GACNT,GAAOA,EAAIM,WAAWC,cAAcC,SAAS,OACjDhB,EAAUkB,GACNV,GAAOA,EAAIM,WAAWC,cAAcC,SAAS,OACjDhB,EAAUmB,GACNX,GAAOA,EAAIM,WAAWC,cAAcC,SAAS,OACjDhB,EAAUoB,GAEVpB,EAAUqB,GACdlB,EAAeC,GAAf,EAGG,KACHP,EAAYe,SAAU,CAAtB,CADJ,GAGD,CAACjB,IAGA,+B,iWAAA,EACUA,IAAKI,GAAWH,GAD1B,CAEI0B,IAAK1B,EAAM0B,KAAO,GAClBC,UAAY,GAAEnB,KAAgBF,MAJtC,E","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, useRef } 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 isCancelled = useRef(false);\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 ? src.split('.').pop() : null;\n img.src = src;\n\n img.onload = () => {\n if (isCancelled.current) return\n setImgSrc(src)\n setCustomClass(styles.loaded)\n };\n\n img.onerror = () => {\n if (isCancelled.current) return\n img.onerror = null;\n if(ext && ext.toString().toLowerCase().includes('pdf'))\n setImgSrc(pdf_icon)\n else if(ext && ext.toString().toLowerCase().includes('mov'))\n setImgSrc(mov_icon);\n else if(ext && ext.toString().toLowerCase().includes('mp4'))\n setImgSrc(mp4_icon);\n else if(ext && ext.toString().toLowerCase().includes('csv'))\n setImgSrc(csv_icon);\n else\n setImgSrc(file_icon);\n setCustomClass(styles.loaded)\n };\n\n return () => {\n isCancelled.current = true;\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","isCancelled","useRef","imgSrc","setImgSrc","useState","customClass","setCustomClass","styles","useEffect","img","Image","ext","split","pop","onload","current","onerror","toString","toLowerCase","includes","pdf_icon","mov_icon","mp4_icon","csv_icon","file_icon","alt","className"],"sourceRoot":""}
@@ -1 +1 @@
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,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,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,2JCC9D,EAJgBC,IAAA,IAAC,SAACC,EAAQ,eAAEC,GAAiB,EAAK,UAAEC,EAAY,IAAYH,EAALI,EAAIC,IAAAL,EAAAM,GAAA,OACvEC,IAAAA,cAAA,OAAAC,IAAA,CAAML,UAAWA,EACXM,wBAAyB,CAAEC,OAAQR,EAAiBD,aAAQ,EAARA,EAAUU,QAAQ,MAAO,UAAYV,IAAeG,GAAO,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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/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(\"@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};","import React from 'react';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\", ...rest}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} {...rest}/>\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","_ref","children","replaceNewLine","className","rest","_objectWithoutProperties","_excluded","React","_extends","dangerouslySetInnerHTML","__html","replace"],"sourceRoot":""}
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,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,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,2JCC9D,EAJgB,QAAC,SAACC,EAAD,eAAWC,GAAiB,EAA5B,UAAmCC,EAAY,IAAhD,EAAuDC,EAAvD,gBACZ,8BAAMD,UAAWA,EACXE,wBAAyB,CAAEC,OAAQJ,EAAiBD,aAAH,EAAGA,EAAUM,QAAQ,MAAO,UAAYN,IAAeG,GAFlG,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","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/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(\"@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};","import React from 'react';\n\nconst RawHTML = ({children, replaceNewLine = false, className = \"\", ...rest}) =>\n <span className={className}\n dangerouslySetInnerHTML={{ __html: replaceNewLine ? children?.replace(/\\n/g, '<br />') : children}} {...rest}/>\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","rest","dangerouslySetInnerHTML","__html","replace"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6440:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(2015),r=n.n(a),i=n(6842),o=n.n(i);class l extends r().Component{onPerformBulkAction(){let e=this.actionTypeSelect.value;""!==e&&this.props.onSelectedBulkAction(e)}render(){let{onSelectAll:e,bulkOptions:t,show:n}=this.props;return r().createElement("div",{className:"bulk-actions-selector-container"},n&&r().createElement("div",{className:"row"},r().createElement("div",{className:"col-md-8"},r().createElement("input",{type:"checkbox",onClick:e}),r().createElement("select",{ref:e=>{this.actionTypeSelect=e}},r().createElement("option",{value:""},o().translate("published_bulk_actions_selector.options.default")),t.map(((e,t)=>r().createElement("option",{key:t,value:e.value},e.label))))),r().createElement("div",{className:"col-md-4"},r().createElement("button",{onClick:this.onPerformBulkAction.bind(this),title:o().translate("published_bulk_actions_selector.titles.go"),className:"btn btn-default btn-sm"},r().createElement("i",{className:"fa fa-play"}," ",o().translate("published_bulk_actions_selector.buttons.go"))))))}}const s=l},4573:(e,t,n)=>{n.d(t,{default:()=>d});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l);const c="tDZTa8dy9OMVyGAtxNOS",m="VoBl8JcsRZelj8EKGKtC",u=["value","options","onChange"],d=e=>{let{value:t,options:n,onChange:a}=e,i=o()(e,u);const l=n.findIndex((e=>e.value===t)),d=n.find((e=>e.value===t)).label;return s().createElement("div",r()({className:c},i),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{l>0&&a(n[l-1].value)})(),disabled:0===l,title:"Decrement"},s().createElement("i",{className:"fa fa-minus"})),s().createElement("span",{className:m},d),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{l<n.length-1&&a(n[l+1].value)})(),disabled:l+1===n.length,title:"Increment"},s().createElement("i",{className:"fa fa-plus"})))}},1:(e,t,n)=>{n.d(t,{default:()=>l});var a=n(2015),r=n.n(a),i=n(8466),o=n.n(i);const l=({days:e,currentValue:t,placeholder:n,onDayChanged:a})=>{const i=e.find((e=>e.value===t))||null;return r().createElement(o(),{placeholder:n,className:"day-selector",name:"form-field-name",value:i,onChange:e=>{a((null==e?void 0:e.value)||null)},options:e})}},864:(e,t,n)=>{n.d(t,{default:()=>d});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l),c=n(8466),m=n.n(c);const u=["venues","currentValue","placeholder","onVenueChanged"],d=e=>{let{venues:t,currentValue:n,placeholder:a,onVenueChanged:i}=e,l=o()(e,u);const c=t.find((e=>e.value.id===(null==n?void 0:n.id)))||null;return s().createElement(m(),r()({placeholder:a,className:"venues-selector",name:"form-field-name",value:c,onChange:e=>{i((null==e?void 0:e.value)||null)},options:t,optionRenderer:e=>{let t=e.value;return"SummitVenue"===t.class_name?s().createElement("span",{className:"location-option-venue"},t.name):s().createElement("span",{className:"location-option-room"},"- ",t.name)}},l))}},5028:(e,t,n)=>{n.d(t,{default:()=>m});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l);const c=["children","replaceNewLine","className"],m=e=>{let{children:t,replaceNewLine:n=!1,className:a=""}=e,i=o()(e,c);return s().createElement("span",r()({className:a,dangerouslySetInnerHTML:{__html:n?null==t?void 0:t.replace(/\n/g,"<br />"):t}},i))}},6422:(e,t,n)=>{n.d(t,{DraggableItemTypes:()=>a,PixelsPerMinute:()=>o,SlotSizeOptions:()=>i,TBALocation:()=>r,bulkOptions:()=>l});const a={UNSCHEDULEEVENT:"UnScheduleEvent",SCHEDULEEVENT:"ScheduleEvent"},r={id:0,name:"TBD",class_name:"SummitVenue"},i=[1,5,10,15,30,60],o=3,l=[{value:"BULK_ACTION_EDIT",label:"Edit"},{value:"BULK_ACTION_UNPUBLISH",label:"Unpublish"}]},103:(e,t,n)=>{n.d(t,{default:()=>i});var a=n(5812),r=n.n(a);const i=class{constructor(e,t=null){this._event=e,this._summit=t}set summit(e){this._summit=e}get summit(){return this._summit}getId(){return this._event.id}isPublished(){return this._event.hasOwnProperty("is_published")&&this._event.is_published}getMinutesDuration(e){if(this._event.hasOwnProperty("start_date")&&this._event.hasOwnProperty("end_date")&&null!=this._event.start_date&&null!=this._event.end_date){let e=r()(1e3*this._event.start_date).tz(this._summit.time_zone.name);return r()(1e3*this._event.end_date).tz(this._summit.time_zone.name).diff(e,"minutes")}return this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):e}canMove(e,t,n,a){let i=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):a;this.isPublished()&&(i=this.getMinutesDuration());let o=r().tz(t+" "+n.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name),l=r().tz(t+" "+n.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name);l=l.add(i,"minutes");for(let t of e.filter((e=>e.id!==this.getId()))){let e=r()(1e3*t.start_date).tz(this._summit.time_zone.name),n=r()(1e3*t.end_date).tz(this._summit.time_zone.name);if(e.isBefore(l)&&n.isAfter(o))return!1}return!0}calculateNewDates(e,t,n){return n=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):n,[r().tz(e+" "+t.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name),r().tz(e+" "+t.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name).add(n,"minutes")]}isValidEndDate(e){if(!e)return!0;const t=r().tz(1e3*e,this._summit.time_zone.name),n=r().tz(1e3*this._summit.end_date,this._summit.time_zone.name),a=r().tz(1e3*this._event.start_date,this._summit.time_zone.name);return t.isSameOrBefore(n)&&t.isAfter(a)}isValidStartDate(e){if(!e)return!0;const t=r().tz(1e3*e,this._summit.time_zone.name),n=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):0,a=r().tz(1e3*this._summit.start_date,this._summit.time_zone.name),i=this._event.end_date?r().tz(1e3*this._event.end_date,this._summit.time_zone.name):n>0?r().tz(1e3*e,this._summit.time_zone.name).add(n,"minutes"):null;return t.isSameOrAfter(a)&&r().isMoment(i)&&t.isBefore(i)}isValidTitle(e){return""!==e.trim()}isValid(){return this.isValidTitle(this._event.title)&&this.isValidStartDate(this._event.start_date)&&this.isValidEndDate(this._event.end_date)}}},9128:(e,t,n)=>{n.d(t,{convertSVGtoImg:()=>c,epochToMomentTimeZone:()=>i,getEventHosts:()=>s,getEventLocation:()=>l,parseLocationHour:()=>o});require("@sentry/react");var a=n(5812),r=n.n(a);n(8041);const i=(e,t)=>e?(e*=1e3,r()(e).tz(t)):e,o=e=>{let t=e.toString();return t.length<4&&(t=`0${t}`),t=t.match(/.{2}/g),t=t.join(":"),t},l=(e,t,n=null,a=null)=>{var r,i;const o=!n||!a||1e3*n<a,l=[],{location:s}=e;return o&&s?(t>1&&null!==(r=s.venue)&&void 0!==r&&r.name&&l.push(s.venue.name),null!==(i=s.floor)&&void 0!==i&&i.name&&l.push(s.floor.name),s.name&&l.push(s.name),l.length>0?l.join(" - "):"TBA"):"TBA"},s=e=>{var t;let n=[];return(null===(t=e.speakers)||void 0===t?void 0:t.length)>0&&(n=[...e.speakers]),e.moderator&&n.push(e.moderator),n},c=async e=>{const t=await(async e=>{const t=document.createElement("img");return t.src=e,t.crossOrigin="anonymous",new Promise(((e,n)=>{t.onload=()=>e(t),t.onerror=n}))})(e),n=100,a=Math.floor(100*t.naturalHeight/t.naturalWidth),r=document.createElement("canvas");r.width=n,r.height=a,r.getContext("2d").drawImage(t,0,0,n,a);const i=await r.toDataURL("image/png",1);return console.log(i,n,a),{url:i,width:n,height:a}}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},6924:e=>{e.exports=require("react-dnd")},8466:e=>{e.exports=require("react-select")},8041:e=>{e.exports=require("urijs")}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var a={};n.r(a),n.d(a,{default:()=>$});var r=n(2462),i=n.n(r),o=n(2015),l=n.n(o),s=n(1),c=n(864),m=n(4573),u=n(5812),d=n.n(u),p=n(6924),h=n(6422),v=n(1116),f=n.n(v);const g=require("react-bootstrap");var E=n(5028);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=({event:e,step:t,initialTop:n,initialHeight:a,minHeight:r,maxHeight:i,canResize:s,allowResize:c,allowDrag:m,onResized:u,onUnPublishEvent:d,onEditEvent:v,onClickSelected:f,selectedPublishedEvents:_,onMoveEvent:b})=>{const[D,z]=(0,p.useDrag)((()=>({type:h.DraggableItemTypes.SCHEDULEEVENT,item:{id:e.id,title:e.title,is_published:e.is_published,start_date:e.start_date,end_date:e.end_date,duration:e.duration},collect:e=>({isDragging:e.isDragging()}),canDrag:m&&!e.static})),[e.id,e.duration,e.start_date,e.end_date]),[w,S]=(0,o.useState)({resizing:!1,type:null,lastYPos:null}),[M,x]=(0,o.useState)({top:n,height:a}),T=(null==_?void 0:_.includes(e.id))||!1,P=!e.static,N=c&&P&&M.height>15,Y=()=>l().createElement(g.Popover,{id:"popover-trigger-focus",title:e.title},l().createElement(E.default,null,e.description)),O=n=>{if(!w.resizing)return;let a=w.lastYPos,o=n.pageY,l=o-a;if(t&&t>0){let e=parseInt(Math.round(Math.abs(l)/t));if(l=Math.sign(l)*e*t,!l)return n.preventDefault(),!1}let c=M.height,m=M.top;"S"===w.type&&(c=M.height+l),"N"===w.type&&(l<0?(m=M.top-Math.abs(l),c=M.height+Math.abs(l)):(m=M.top+Math.abs(l),c=M.height-Math.abs(l))),c<r&&(c=r,o=a,m=M.top);let u="function"==typeof i?i():i;c>u&&(c=u,o=a,m=M.top),m<0&&(m=0,c=M.height,o=a),s(e.id,m,c)&&(S(y(y({},w),{},{resizing:!0,lastYPos:o})),x({top:m,height:c})),n.preventDefault()},k=e=>{e.preventDefault(),S({type:null,lastYPos:null,resizing:!1})};return(0,o.useEffect)((()=>(w.resizing?(document.addEventListener("mousemove",O,!1),document.addEventListener("mouseup",k,!1)):(document.removeEventListener("mousemove",O,!1),document.removeEventListener("mouseup",k,!1),M.top===n&&M.height===a||u(e.id,M.top,M.height)),()=>{document.removeEventListener("mousemove",O,!1),document.removeEventListener("mouseup",k,!1)})),[w.resizing]),l().createElement("div",{className:`row schedule-event ${N?"is-resizable":""} ${P?"":"is-static"}`,"data-resizable":!0,id:`event_${e.id}`,onMouseDown:e=>{if(!e.target.getAttribute("data-resizable"))return;const t=e.target.getBoundingClientRect();let n;if(e.clientY-t.top<10)n="N";else{if(!(t.bottom-e.clientY<10))return;n="S"}S({resizing:!0,type:n,lastYPos:e.pageY}),e.preventDefault()},ref:z,style:{top:M.top,height:M.height,display:D.isDragging?"none":"block",cursor:"move"}},f&&l().createElement("div",{className:"event-select-wrapper"},l().createElement("input",{className:"select-event-btn",id:`selected_event_${e.id}`,type:"checkbox",checked:T,onChange:()=>f(e)})),l().createElement("div",{className:"col-md-12 event-container"},(()=>{let t=null;return t=e.description?l().createElement(g.OverlayTrigger,{trigger:["hover"],placement:"bottom",overlay:Y()},l().createElement("div",{className:"event-content"},l().createElement("span",{className:"event-title withTooltip"},`${e.id} - ${e.title}${e.duration?` - ${e.duration/60} minutes`:""}`))):l().createElement("div",{className:"event-content"},l().createElement("span",{className:"event-title"},`${e.id} - ${e.title}${e.duration?` - ${e.duration/60} minutes`:""}`)),t})()),l().createElement("div",{className:"event-actions"},!e.static&&d&&l().createElement("i",{className:"fa fa-minus-circle event-action-btn","aria-hidden":"true",title:"unpublish event",onClick:()=>d(e)}),v&&l().createElement("i",{className:"fa fa-pencil-square-o event-action-btn",title:"edit event","aria-hidden":"true",onClick:()=>v(e)}),!e.static&&b&&l().createElement("i",{className:"fa fa-arrow-circle-right event-action-btn",title:"move event","aria-hidden":"true",onClick:()=>b(e)})))};var D=n(103);const z=({timeLabel:e,id:t})=>l().createElement("div",{id:t,className:"row time-slot"},l().createElement("div",{className:"col-md-12"},l().createElement("span",null,e))),w=e=>{const{currentDay:t,currentSummit:n,events:a,timeSlot:r,pixelsPerMinute:i,interval:o,canDropEvent:s,onDroppedEvent:c}=e,m=`time_slot_container_${r.format("HH_mm")}`,[u,d]=(0,p.useDrop)((()=>({accept:[h.DraggableItemTypes.UNSCHEDULEEVENT,h.DraggableItemTypes.SCHEDULEEVENT],collect:e=>({isOver:e.isOver(),canDrop:e.canDrop()}),canDrop:(e,i)=>{if(s)return s(e,i);return new D.default(e,n).canMove(a,t,r,o)},drop:(e,t,n)=>{c(e,r)}})),[o,r,t]),{isOver:v,canDrop:f}=u;return l().createElement("div",{id:m,ref:d,className:"row time-slot-container",style:(()=>{const e={};return v?(e.backgroundColor=f?"green":"red",e.opacity=.5):f&&(e.backgroundColor="yellow",e.opacity=.5),e})()},l().createElement("div",{className:"col-md-12"},((e,t)=>{let n=[],a=5*t;for(var r=0;r<2;r++)n[r]=l().createElement("div",{key:r,className:"minute-container",style:{position:"relative",width:"100%",height:`${a}px`}});return n})(0,i)))},S=e=>{const t=(0,o.useRef)(),n=(0,o.useRef)(),[a,r]=(0,o.useState)([]),[i,s]=(0,o.useState)(null),c=(0,o.useRef)(null);(0,o.useEffect)((()=>{i&&(t.current.scrollTop=i,s(null))}),[i]),(0,o.useEffect)((()=>{const a=n.current/e.interval;s(t.current.scrollTop*a),E(),n.current=e.interval}),[e.interval,e.startTime,e.endTime]);const m=(t,n)=>{e.onScheduleEvent(t,e.currentDay,n)},u=(t,n,a)=>{const{events:r,currentDay:i,startTime:o,pixelsPerMinute:l,currentSummit:s}=e,{height:c}=v();if(c<n+a)return!1;const m=r.filter((e=>e.id!==t)),u=Math.floor(n/(l*(10/S))),p=Math.floor(a/(l*(10/S)));let h=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);h=h.add(u,"minutes");let f=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);f=f.add(u+p,"minutes");for(const e of m){const t=d()(1e3*e.start_date).tz(s.time_zone.name),n=d()(1e3*e.end_date).tz(s.time_zone.name);if(t.isBefore(f)&&n.isAfter(h))return!1}return!0},p=(t,n,a)=>{const{events:r,currentDay:i,startTime:o,pixelsPerMinute:l,currentSummit:s}=e,c=r.filter((e=>e.id===t)).shift(),m=Math.floor(n/(l*(10/S))),u=Math.floor(a/(l*(10/S)));let p=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);p=p.add(m,"minutes"),e.onScheduleEvent(c,i,d()(p.format("HH:mm"),"HH:mm"),u)},h=()=>v().height,v=()=>c.current.getBoundingClientRect(),f=t=>{const{currentDay:n,startTime:a,pixelsPerMinute:r,currentSummit:i}=e,o=d()(1e3*t.start_date).utc().tz(i.time_zone.name),l=d().tz(n+" "+a,"YYYY-MM-DD HH:mm",i.time_zone.name);return o.diff(l,"minutes")*r*(10/S)},g=t=>{const{pixelsPerMinute:n,currentSummit:a,interval:r}=e,i=d()(1e3*t.start_date).tz(a.time_zone.name);return d()(1e3*t.end_date).tz(a.time_zone.name).diff(i,"minutes")*n*(10/r)},E=()=>{const e=[];let t=!1;const n=d().tz(y,"HH:mm",T.time_zone.name),a=d().tz(D,"HH:mm",T.time_zone.name);let i=n;do{e.push(i),i=i.clone(),i.add(S,"m"),t=i.isAfter(a)}while(!t);r(e)},{events:_,startTime:y,endTime:D,interval:S,pixelsPerMinute:M,currentDay:x,currentSummit:T,canDropEvent:P,onEditEvent:N,onUnPublishEvent:Y,onClickSelected:O,selectedPublishedEvents:k}=e;return l().createElement("div",{className:"row outer-schedule-events-container",ref:t},l().createElement("div",{className:"col-md-2 no-margin no-padding"},a.map(((e,t)=>l().createElement(z,{timeLabel:e.format("HH:mm"),key:t,id:e.format("HH_mm")})))),l().createElement("div",{className:"schedule-events-container col-md-10 no-margin no-padding",ref:c},a.map(((e,t)=>l().createElement(w,{timeSlot:e,canDropEvent:P,onDroppedEvent:m,key:`timeslot-${t}`,events:_,currentSummit:T,interval:S,pixelsPerMinute:M,currentDay:x}))),_.map(((t,n)=>l().createElement(b,{event:t,selectedPublishedEvents:k,key:`event-${t.id}-${t.last_edited}-${S}`,type:"MAIN",step:5*M,minHeight:10*M,initialTop:f(t),initialHeight:g(t),canResize:u,allowResize:e.allowResize,allowDrag:e.allowDrag,onResized:p,maxHeight:h,onUnPublishEvent:Y,onEditEvent:N,onClickSelected:O,currentDay:x,onMoveEvent:e.onMoveEvent})))))};var M=n(9128),x=n(6440);const T=require("@react-pdf/renderer");var P=n(9825),N=n.n(P);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k=T.StyleSheet.create({header:{fontSize:"18px",textAlign:"center"},headlineWrapper:{margin:"0 10px 20px",display:"flex",flexDirection:"row"},headline:{margin:"auto"},logo:{marginRight:"20px",backgroundColor:"lightgray"},subtitle:{padding:"10px",fontSize:"12px",display:"flex",flexDirection:"row",justifyContent:"space-between"},label:{fontSize:"8px",textTransform:"uppercase"},eventList:{flexDirection:"column",display:"flex",overflow:"hidden",padding:"20px"},eventWrapper:{margin:5,padding:5,border:"1px solid black"},locationWrapper:{marginBottom:8,fontSize:"10px",color:"#4A4A4A",fontWeight:600},title:{marginBottom:10,display:"inline-flex",fontSize:"12px",color:"#4A4A4A",fontWeight:600},footer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},leftCol:{display:"flex",flex:1,flexDirection:"column",maxWidth:"65%"},speakers:{fontSize:"10px",color:"#4A4A4A"},trackWrapper:{fontWeight:"bold",fontSize:"10px",position:"relative",marginTop:"auto"},rightCol:{maxWidth:"35%"},tagsWrapper:{display:"flex",flexWrap:"wrap",justifyContent:"right"},tag:{backgroundColor:"#F6F6F6",borderRadius:"8px",height:"10px",margin:"4px 4px 0 0",padding:"1px 2px",textTransform:"uppercase",fontSize:"6px",color:"#4A4A4A"}}),H=({events:e,summit:t,nowUtc:n})=>{const[a,r]=(0,o.useState)(null),i=e.sort(((e,t)=>e.start_date-t.start_date)),s=t.locations.find((e=>"SummitVenue"===e.class_name)),c=(0,M.epochToMomentTimeZone)(t.start_date,t.time_zone_id).format("MMMM Do YYYY"),m=(0,M.epochToMomentTimeZone)(t.end_date,t.time_zone_id).format("MMMM Do YYYY");return(0,o.useEffect)((()=>{if(t.logo){(async()=>{const e=await(0,M.convertSVGtoImg)(t.logo);r(e)})()}}),[t.logo]),a?l().createElement(T.Document,null,l().createElement(T.Page,{size:"A4",style:k.eventList},l().createElement(T.View,{style:k.header},l().createElement(T.View,{style:k.headlineWrapper},l().createElement(T.Image,{src:a.url,style:O(O({},k.logo),{},{width:a.width,height:a.height})}),l().createElement(T.Text,{style:k.headline},"Schedule for ",t.name)),l().createElement(T.View,{style:k.subtitle},l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"Venue:"),l().createElement(T.Text,null,null==s?void 0:s.name)),l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"Start:"),l().createElement(T.Text,null,c)),l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"End:"),l().createElement(T.Text,null,m)))),i.map((e=>{var a,r,i;const o=(0,M.epochToMomentTimeZone)(e.start_date,t.time_zone_id).format("ddd, MMMM D"),s=(0,M.epochToMomentTimeZone)(e.start_date,t.time_zone_id).format("h:mma"),c=(0,M.epochToMomentTimeZone)(e.end_date,t.time_zone_id).format("h:mma"),m=t.locations.filter((e=>"SummitVenue"===e.class_name)),u=(0,M.getEventLocation)(e,m,t.start_showing_venues_date,n),d=e.eventColor?{borderLeft:`4px solid ${e.eventColor}`}:{};return l().createElement(T.View,{style:O(O({},k.eventWrapper),d),key:`event-${e.id}`,wrap:!1},l().createElement(T.View,{style:k.locationWrapper},l().createElement(T.Text,null,`${o}, ${s} - ${c} | ${u}`)),l().createElement(T.View,{style:k.title},l().createElement(T.Text,null,e.title)),l().createElement(T.View,{style:k.footer},l().createElement(T.View,{style:k.leftCol},e.track&&l().createElement(T.View,{style:k.trackWrapper},l().createElement(T.Text,null,null===(a=e.track)||void 0===a?void 0:a.name)),((null===(r=e.speakers)||void 0===r?void 0:r.length)>0||e.moderator)&&l().createElement(T.View,null,(e=>{const t=(0,M.getEventHosts)(e).map((e=>`${e.first_name} ${e.last_name}`));return t.length>0?l().createElement(T.View,{style:k.speakers},l().createElement(T.Text,null,"By ",t.join(", "))):null})(e))),l().createElement(T.View,{style:k.rightCol},l().createElement(T.View,{style:k.tagsWrapper},null===(i=e.tags)||void 0===i?void 0:i.map((t=>l().createElement(T.View,{key:`tag-${t.id}-${e.id}`,style:k.tag},l().createElement(T.Text,null,t.tag))))))))})))):null};H.propTypes={events:N().array.isRequired,summit:N().object.isRequired};const C=H,V="XZyB3zy09oNiJPYXzMaR",j="V8lrMEK6XXJUFDwsrtSs",A=({events:e,summit:t,nowUtc:n=null})=>{const[a,r]=(0,o.useState)(!1);return l().createElement(l().Fragment,null,!a&&l().createElement("button",{className:`${V} ${j}`,onClick:()=>r(!0)},l().createElement("i",{className:"fa fa-print","aria-hidden":"true"}),"Print"),a&&l().createElement(T.PDFDownloadLink,{className:`${V} ${j}`,document:l().createElement(C,{events:e,summit:t,nowUtc:n}),fileName:"schedule.pdf"},(({blob:e,url:t,loading:n,error:a})=>!e||n?"Creating document...":"Download PDF")))},L=["summit","trackSpaceTime","scheduleEvents","selectedEvents","currentDay","currentVenue","slotSize","hideBulkSelect"],$=e=>{let{summit:t,trackSpaceTime:n,scheduleEvents:a,selectedEvents:r,currentDay:u,currentVenue:d,slotSize:p,hideBulkSelect:v}=e,f=i()(e,L);const g=(0,o.useMemo)((()=>((e,t,n)=>{var a,r;const i=[],o=(0,M.epochToMomentTimeZone)(e.start_date,e.time_zone_id),l=(0,M.epochToMomentTimeZone)(e.end_date,e.time_zone_id);let s=o.clone();const c=(null==t||null===(a=t.find((e=>e.location_id===(null==n?void 0:n.id))))||void 0===a||null===(r=a.allowed_timeframes)||void 0===r?void 0:r.map((t=>(0,M.epochToMomentTimeZone)(t.day,e.time_zone_id).format("YYYY-MM-DD"))))||null;do{const e={value:s.format("YYYY-MM-DD"),label:s.format("dddd Do , MMMM YYYY")};c&&0!==c.length&&!c.includes(e.value)||i.push(e),s=s.clone(),s.add(1,"day")}while(!s.isAfter(l));return i})(t,n,d)),[t.start_date,t.end_date,n,d]),E=(0,o.useMemo)((()=>((e,t)=>{const n=[{value:h.TBALocation,label:h.TBALocation.name}],a=(null==t?void 0:t.map((e=>e.location_id)))||null;return e.locations.filter((e=>{const t="SummitVenue"!==e.class_name,n=!a||a.includes(e.id);return t&&n})).forEach((e=>{const t={value:e,label:e.name};n.push(t),e.hasOwnProperty("rooms")&&e.rooms.forEach((e=>{const t={value:e,label:e.name};n.push(t)}))})),n})(t,n)),[t.locations,n]),_=h.SlotSizeOptions.map((e=>({value:e,label:`${e} min.`}))),{allowResize:y=!0,allowDrag:b=!0}=f,{open:D,close:z}=(0,o.useMemo)((()=>((e,t,n,a)=>{if(e&&t&&n){var r;const i=null===(r=n.find((e=>e.location_id===t.id)))||void 0===r?void 0:r.allowed_timeframes;if((null==i?void 0:i.length)>0){const t=null==i?void 0:i.find((t=>(0,M.epochToMomentTimeZone)(t.day,a).format("YYYY-MM-DD")===e));if(t)return{open:(0,M.parseLocationHour)(t.opening_hour),close:(0,M.parseLocationHour)(t.closing_hour)}}}return null!=t&&t.opening_hour&&null!=t&&t.closing_hour?{open:(0,M.parseLocationHour)(t.opening_hour),close:(0,M.parseLocationHour)(t.closing_hour)}:{open:"00:00",close:"23:50"}})(u,d,n,t.time_zone_id)),[u,d,n]);return(0,o.useEffect)((()=>{u&&!g.find((e=>e.value===u))&&f.onDayChanged(null)}),[d]),l().createElement("div",{className:"schedule-view-wrapper"},(f.onSlotSizeChange||f.showPrint)&&l().createElement("div",{className:"row",style:{marginBottom:12,marginTop:2}},f.onSlotSizeChange&&l().createElement("div",{className:"col-md-6"},l().createElement("span",null,"Slot size: "),l().createElement(m.default,{value:p,onChange:f.onSlotSizeChange,options:_,style:{display:"inline-block",marginLeft:10}})),f.showPrint&&l().createElement("div",{className:"col-md-6 pull-right"},l().createElement(A,{summit:t,events:a}))),l().createElement("div",{className:"row"},l().createElement("div",{className:"col-md-6"},l().createElement(c.default,{onVenueChanged:f.onVenueChanged,venues:E,currentValue:d,placeholder:"Select Room"})),l().createElement("div",{className:"col-md-6"},l().createElement(s.default,{onDayChanged:f.onDayChanged,days:g,currentValue:u,placeholder:"Select Day"}))),l().createElement(x.default,{bulkOptions:f.customBulkOptions||h.bulkOptions,onSelectAll:f.onSelectAll,onSelectedBulkAction:f.onSelectedBulkAction,show:!v&&a.length>0}),u&&d&&l().createElement(S,{startTime:D,endTime:z,currentSummit:t,interval:p,currentDay:u,pixelsPerMinute:h.PixelsPerMinute,canDropEvent:f.canDropEvent,allowResize:y,allowDrag:b,onScheduleEvent:f.onScheduleEvent,events:a,onUnPublishEvent:f.onUnPublishEvent,onEditEvent:f.onEditEvent,onClickSelected:f.onClickSelected,selectedPublishedEvents:r,onMoveEvent:f.onMoveSingleEvent}))};return a})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6440:(e,t,n)=>{n.d(t,{default:()=>s});var a=n(2015),r=n.n(a),i=n(6842),o=n.n(i);class l extends r().Component{onPerformBulkAction(){let e=this.actionTypeSelect.value;""!==e&&this.props.onSelectedBulkAction(e)}render(){let{onSelectAll:e,bulkOptions:t,show:n}=this.props;return r().createElement("div",{className:"bulk-actions-selector-container"},n&&r().createElement("div",{className:"row"},r().createElement("div",{className:"col-md-8"},r().createElement("input",{type:"checkbox",onClick:e}),r().createElement("select",{ref:e=>{this.actionTypeSelect=e}},r().createElement("option",{value:""},o().translate("published_bulk_actions_selector.options.default")),t.map(((e,t)=>r().createElement("option",{key:t,value:e.value},e.label))))),r().createElement("div",{className:"col-md-4"},r().createElement("button",{onClick:this.onPerformBulkAction.bind(this),title:o().translate("published_bulk_actions_selector.titles.go"),className:"btn btn-default btn-sm"},r().createElement("i",{className:"fa fa-play"}," ",o().translate("published_bulk_actions_selector.buttons.go"))))))}}const s=l},4573:(e,t,n)=>{n.d(t,{default:()=>d});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l);const c="tDZTa8dy9OMVyGAtxNOS",m="VoBl8JcsRZelj8EKGKtC",u=["value","options","onChange"],d=e=>{let{value:t,options:n,onChange:a}=e,i=o()(e,u);const l=n.findIndex((e=>e.value===t)),d=n.find((e=>e.value===t)).label;return s().createElement("div",r()({className:c},i),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{l>0&&a(n[l-1].value)})(),disabled:0===l,title:"Decrement"},s().createElement("i",{className:"fa fa-minus"})),s().createElement("span",{className:m},d),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{l<n.length-1&&a(n[l+1].value)})(),disabled:l+1===n.length,title:"Increment"},s().createElement("i",{className:"fa fa-plus"})))}},1:(e,t,n)=>{n.d(t,{default:()=>l});var a=n(2015),r=n.n(a),i=n(8466),o=n.n(i);const l=({days:e,currentValue:t,placeholder:n,onDayChanged:a})=>{const i=e.find((e=>e.value===t))||null;return r().createElement(o(),{placeholder:n,className:"day-selector",name:"form-field-name",value:i,onChange:e=>{a((null==e?void 0:e.value)||null)},options:e})}},864:(e,t,n)=>{n.d(t,{default:()=>d});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l),c=n(8466),m=n.n(c);const u=["venues","currentValue","placeholder","onVenueChanged"],d=e=>{let{venues:t,currentValue:n,placeholder:a,onVenueChanged:i}=e,l=o()(e,u);const c=t.find((e=>e.value.id===(null==n?void 0:n.id)))||null;return s().createElement(m(),r()({placeholder:a,className:"venues-selector",name:"form-field-name",value:c,onChange:e=>{i((null==e?void 0:e.value)||null)},options:t,optionRenderer:e=>{let t=e.value;return"SummitVenue"===t.class_name?s().createElement("span",{className:"location-option-venue"},t.name):s().createElement("span",{className:"location-option-room"},"- ",t.name)}},l))}},5028:(e,t,n)=>{n.d(t,{default:()=>m});var a=n(6031),r=n.n(a),i=n(2462),o=n.n(i),l=n(2015),s=n.n(l);const c=["children","replaceNewLine","className"],m=e=>{let{children:t,replaceNewLine:n=!1,className:a=""}=e,i=o()(e,c);return s().createElement("span",r()({className:a,dangerouslySetInnerHTML:{__html:n?null==t?void 0:t.replace(/\n/g,"<br />"):t}},i))}},6422:(e,t,n)=>{n.d(t,{DraggableItemTypes:()=>a,PixelsPerMinute:()=>o,SlotSizeOptions:()=>i,TBALocation:()=>r,bulkOptions:()=>l});const a={UNSCHEDULEEVENT:"UnScheduleEvent",SCHEDULEEVENT:"ScheduleEvent"},r={id:0,name:"TBD",class_name:"SummitVenue"},i=[1,5,10,15,30,60],o=3,l=[{value:"BULK_ACTION_EDIT",label:"Edit"},{value:"BULK_ACTION_UNPUBLISH",label:"Unpublish"}]},103:(e,t,n)=>{n.d(t,{default:()=>i});var a=n(5812),r=n.n(a);const i=class{constructor(e,t=null){this._event=e,this._summit=t}set summit(e){this._summit=e}get summit(){return this._summit}getId(){return this._event.id}isPublished(){return this._event.hasOwnProperty("is_published")&&this._event.is_published}getMinutesDuration(e){if(this._event.hasOwnProperty("start_date")&&this._event.hasOwnProperty("end_date")&&null!=this._event.start_date&&null!=this._event.end_date){let e=r()(1e3*this._event.start_date).tz(this._summit.time_zone.name);return r()(1e3*this._event.end_date).tz(this._summit.time_zone.name).diff(e,"minutes")}return this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):e}canMove(e,t,n,a){let i=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):a;this.isPublished()&&(i=this.getMinutesDuration());let o=r().tz(t+" "+n.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name),l=r().tz(t+" "+n.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name);l=l.add(i,"minutes");for(let t of e.filter((e=>e.id!==this.getId()))){let e=r()(1e3*t.start_date).tz(this._summit.time_zone.name),n=r()(1e3*t.end_date).tz(this._summit.time_zone.name);if(e.isBefore(l)&&n.isAfter(o))return!1}return!0}calculateNewDates(e,t,n){return n=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):n,[r().tz(e+" "+t.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name),r().tz(e+" "+t.format("HH:mm"),"YYYY-MM-DD HH:mm",this._summit.time_zone.name).add(n,"minutes")]}isValidEndDate(e){if(!e)return!0;const t=r().tz(1e3*e,this._summit.time_zone.name),n=r().tz(1e3*this._summit.end_date,this._summit.time_zone.name),a=r().tz(1e3*this._event.start_date,this._summit.time_zone.name);return t.isSameOrBefore(n)&&t.isAfter(a)}isValidStartDate(e){if(!e)return!0;const t=r().tz(1e3*e,this._summit.time_zone.name),n=this._event.hasOwnProperty("duration")&&this._event.duration>0?parseInt(this._event.duration/60):0,a=r().tz(1e3*this._summit.start_date,this._summit.time_zone.name),i=this._event.end_date?r().tz(1e3*this._event.end_date,this._summit.time_zone.name):n>0?r().tz(1e3*e,this._summit.time_zone.name).add(n,"minutes"):null;return t.isSameOrAfter(a)&&r().isMoment(i)&&t.isBefore(i)}isValidTitle(e){return""!==e.trim()}isValid(){return this.isValidTitle(this._event.title)&&this.isValidStartDate(this._event.start_date)&&this.isValidEndDate(this._event.end_date)}}},9558:(e,t,n)=>{n.d(t,{convertSVGtoImg:()=>c,epochToMomentTimeZone:()=>i,getEventHosts:()=>s,getEventLocation:()=>l,parseLocationHour:()=>o});var a=n(5812),r=n.n(a);n(8041);const i=(e,t)=>e?(e*=1e3,r()(e).tz(t)):e,o=e=>{let t=e.toString();return t.length<4&&(t=`0${t}`),t=t.match(/.{2}/g),t=t.join(":"),t},l=(e,t,n=null,a=null)=>{var r,i;const o=!n||!a||1e3*n<a,l=[],{location:s}=e;return o&&s?(t>1&&null!==(r=s.venue)&&void 0!==r&&r.name&&l.push(s.venue.name),null!==(i=s.floor)&&void 0!==i&&i.name&&l.push(s.floor.name),s.name&&l.push(s.name),l.length>0?l.join(" - "):"TBA"):"TBA"},s=e=>{var t;let n=[];return(null===(t=e.speakers)||void 0===t?void 0:t.length)>0&&(n=[...e.speakers]),e.moderator&&n.push(e.moderator),n},c=async e=>{const t=await(async e=>{const t=document.createElement("img");return t.src=e,t.crossOrigin="anonymous",new Promise(((e,n)=>{t.onload=()=>e(t),t.onerror=n}))})(e),n=100,a=Math.floor(100*t.naturalHeight/t.naturalWidth),r=document.createElement("canvas");r.width=n,r.height=a,r.getContext("2d").drawImage(t,0,0,n,a);const i=await r.toDataURL("image/png",1);return console.log(i,n,a),{url:i,width:n,height:a}}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},6924:e=>{e.exports=require("react-dnd")},8466:e=>{e.exports=require("react-select")},8041:e=>{e.exports=require("urijs")}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var a={};n.r(a),n.d(a,{default:()=>$});var r=n(2462),i=n.n(r),o=n(2015),l=n.n(o),s=n(1),c=n(864),m=n(4573),u=n(5812),d=n.n(u),p=n(6924),h=n(6422),v=n(1116),f=n.n(v);const g=require("react-bootstrap");var E=n(5028);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=({event:e,step:t,initialTop:n,initialHeight:a,minHeight:r,maxHeight:i,canResize:s,allowResize:c,allowDrag:m,onResized:u,onUnPublishEvent:d,onEditEvent:v,onClickSelected:f,selectedPublishedEvents:_,onMoveEvent:b})=>{const[D,z]=(0,p.useDrag)((()=>({type:h.DraggableItemTypes.SCHEDULEEVENT,item:{id:e.id,title:e.title,is_published:e.is_published,start_date:e.start_date,end_date:e.end_date,duration:e.duration},collect:e=>({isDragging:e.isDragging()}),canDrag:m&&!e.static})),[e.id,e.duration,e.start_date,e.end_date]),[w,S]=(0,o.useState)({resizing:!1,type:null,lastYPos:null}),[M,x]=(0,o.useState)({top:n,height:a}),T=(null==_?void 0:_.includes(e.id))||!1,P=!e.static,N=c&&P&&M.height>15,Y=()=>l().createElement(g.Popover,{id:"popover-trigger-focus",title:e.title},l().createElement(E.default,null,e.description)),O=n=>{if(!w.resizing)return;let a=w.lastYPos,o=n.pageY,l=o-a;if(t&&t>0){let e=parseInt(Math.round(Math.abs(l)/t));if(l=Math.sign(l)*e*t,!l)return n.preventDefault(),!1}let c=M.height,m=M.top;"S"===w.type&&(c=M.height+l),"N"===w.type&&(l<0?(m=M.top-Math.abs(l),c=M.height+Math.abs(l)):(m=M.top+Math.abs(l),c=M.height-Math.abs(l))),c<r&&(c=r,o=a,m=M.top);let u="function"==typeof i?i():i;c>u&&(c=u,o=a,m=M.top),m<0&&(m=0,c=M.height,o=a),s(e.id,m,c)&&(S(y(y({},w),{},{resizing:!0,lastYPos:o})),x({top:m,height:c})),n.preventDefault()},k=e=>{e.preventDefault(),S({type:null,lastYPos:null,resizing:!1})};return(0,o.useEffect)((()=>(w.resizing?(document.addEventListener("mousemove",O,!1),document.addEventListener("mouseup",k,!1)):(document.removeEventListener("mousemove",O,!1),document.removeEventListener("mouseup",k,!1),M.top===n&&M.height===a||u(e.id,M.top,M.height)),()=>{document.removeEventListener("mousemove",O,!1),document.removeEventListener("mouseup",k,!1)})),[w.resizing]),l().createElement("div",{className:`row schedule-event ${N?"is-resizable":""} ${P?"":"is-static"}`,"data-resizable":!0,id:`event_${e.id}`,onMouseDown:e=>{if(!e.target.getAttribute("data-resizable"))return;const t=e.target.getBoundingClientRect();let n;if(e.clientY-t.top<10)n="N";else{if(!(t.bottom-e.clientY<10))return;n="S"}S({resizing:!0,type:n,lastYPos:e.pageY}),e.preventDefault()},ref:z,style:{top:M.top,height:M.height,display:D.isDragging?"none":"block",cursor:"move"}},f&&l().createElement("div",{className:"event-select-wrapper"},l().createElement("input",{className:"select-event-btn",id:`selected_event_${e.id}`,type:"checkbox",checked:T,onChange:()=>f(e)})),l().createElement("div",{className:"col-md-12 event-container"},(()=>{let t=null;return t=e.description?l().createElement(g.OverlayTrigger,{trigger:["hover"],placement:"bottom",overlay:Y()},l().createElement("div",{className:"event-content"},l().createElement("span",{className:"event-title withTooltip"},`${e.id} - ${e.title}${e.duration?` - ${e.duration/60} minutes`:""}`))):l().createElement("div",{className:"event-content"},l().createElement("span",{className:"event-title"},`${e.id} - ${e.title}${e.duration?` - ${e.duration/60} minutes`:""}`)),t})()),l().createElement("div",{className:"event-actions"},!e.static&&d&&l().createElement("i",{className:"fa fa-minus-circle event-action-btn","aria-hidden":"true",title:"unpublish event",onClick:()=>d(e)}),v&&l().createElement("i",{className:"fa fa-pencil-square-o event-action-btn",title:"edit event","aria-hidden":"true",onClick:()=>v(e)}),!e.static&&b&&l().createElement("i",{className:"fa fa-arrow-circle-right event-action-btn",title:"move event","aria-hidden":"true",onClick:()=>b(e)})))};var D=n(103);const z=({timeLabel:e,id:t})=>l().createElement("div",{id:t,className:"row time-slot"},l().createElement("div",{className:"col-md-12"},l().createElement("span",null,e))),w=e=>{const{currentDay:t,currentSummit:n,events:a,timeSlot:r,pixelsPerMinute:i,interval:o,canDropEvent:s,onDroppedEvent:c}=e,m=`time_slot_container_${r.format("HH_mm")}`,[u,d]=(0,p.useDrop)((()=>({accept:[h.DraggableItemTypes.UNSCHEDULEEVENT,h.DraggableItemTypes.SCHEDULEEVENT],collect:e=>({isOver:e.isOver(),canDrop:e.canDrop()}),canDrop:(e,i)=>{if(s)return s(e,i);return new D.default(e,n).canMove(a,t,r,o)},drop:(e,t,n)=>{c(e,r)}})),[o,r,t]),{isOver:v,canDrop:f}=u;return l().createElement("div",{id:m,ref:d,className:"row time-slot-container",style:(()=>{const e={};return v?(e.backgroundColor=f?"green":"red",e.opacity=.5):f&&(e.backgroundColor="yellow",e.opacity=.5),e})()},l().createElement("div",{className:"col-md-12"},((e,t)=>{let n=[],a=5*t;for(var r=0;r<2;r++)n[r]=l().createElement("div",{key:r,className:"minute-container",style:{position:"relative",width:"100%",height:`${a}px`}});return n})(0,i)))},S=e=>{const t=(0,o.useRef)(),n=(0,o.useRef)(),[a,r]=(0,o.useState)([]),[i,s]=(0,o.useState)(null),c=(0,o.useRef)(null);(0,o.useEffect)((()=>{i&&(t.current.scrollTop=i,s(null))}),[i]),(0,o.useEffect)((()=>{const a=n.current/e.interval;s(t.current.scrollTop*a),E(),n.current=e.interval}),[e.interval,e.startTime,e.endTime]);const m=(t,n)=>{e.onScheduleEvent(t,e.currentDay,n)},u=(t,n,a)=>{const{events:r,currentDay:i,startTime:o,pixelsPerMinute:l,currentSummit:s}=e,{height:c}=v();if(c<n+a)return!1;const m=r.filter((e=>e.id!==t)),u=Math.floor(n/(l*(10/S))),p=Math.floor(a/(l*(10/S)));let h=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);h=h.add(u,"minutes");let f=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);f=f.add(u+p,"minutes");for(const e of m){const t=d()(1e3*e.start_date).tz(s.time_zone.name),n=d()(1e3*e.end_date).tz(s.time_zone.name);if(t.isBefore(f)&&n.isAfter(h))return!1}return!0},p=(t,n,a)=>{const{events:r,currentDay:i,startTime:o,pixelsPerMinute:l,currentSummit:s}=e,c=r.filter((e=>e.id===t)).shift(),m=Math.floor(n/(l*(10/S))),u=Math.floor(a/(l*(10/S)));let p=d().tz(i+" "+o,"YYYY-MM-DD HH:mm",s.time_zone.name);p=p.add(m,"minutes"),e.onScheduleEvent(c,i,d()(p.format("HH:mm"),"HH:mm"),u)},h=()=>v().height,v=()=>c.current.getBoundingClientRect(),f=t=>{const{currentDay:n,startTime:a,pixelsPerMinute:r,currentSummit:i}=e,o=d()(1e3*t.start_date).utc().tz(i.time_zone.name),l=d().tz(n+" "+a,"YYYY-MM-DD HH:mm",i.time_zone.name);return o.diff(l,"minutes")*r*(10/S)},g=t=>{const{pixelsPerMinute:n,currentSummit:a,interval:r}=e,i=d()(1e3*t.start_date).tz(a.time_zone.name);return d()(1e3*t.end_date).tz(a.time_zone.name).diff(i,"minutes")*n*(10/r)},E=()=>{const e=[];let t=!1;const n=d().tz(y,"HH:mm",T.time_zone.name),a=d().tz(D,"HH:mm",T.time_zone.name);let i=n;do{e.push(i),i=i.clone(),i.add(S,"m"),t=i.isAfter(a)}while(!t);r(e)},{events:_,startTime:y,endTime:D,interval:S,pixelsPerMinute:M,currentDay:x,currentSummit:T,canDropEvent:P,onEditEvent:N,onUnPublishEvent:Y,onClickSelected:O,selectedPublishedEvents:k}=e;return l().createElement("div",{className:"row outer-schedule-events-container",ref:t},l().createElement("div",{className:"col-md-2 no-margin no-padding"},a.map(((e,t)=>l().createElement(z,{timeLabel:e.format("HH:mm"),key:t,id:e.format("HH_mm")})))),l().createElement("div",{className:"schedule-events-container col-md-10 no-margin no-padding",ref:c},a.map(((e,t)=>l().createElement(w,{timeSlot:e,canDropEvent:P,onDroppedEvent:m,key:`timeslot-${t}`,events:_,currentSummit:T,interval:S,pixelsPerMinute:M,currentDay:x}))),_.map(((t,n)=>l().createElement(b,{event:t,selectedPublishedEvents:k,key:`event-${t.id}-${t.last_edited}-${S}`,type:"MAIN",step:5*M,minHeight:10*M,initialTop:f(t),initialHeight:g(t),canResize:u,allowResize:e.allowResize,allowDrag:e.allowDrag,onResized:p,maxHeight:h,onUnPublishEvent:Y,onEditEvent:N,onClickSelected:O,currentDay:x,onMoveEvent:e.onMoveEvent})))))};var M=n(9558),x=n(6440);const T=require("@react-pdf/renderer");var P=n(9825),N=n.n(P);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k=T.StyleSheet.create({header:{fontSize:"18px",textAlign:"center"},headlineWrapper:{margin:"0 10px 20px",display:"flex",flexDirection:"row"},headline:{margin:"auto"},logo:{marginRight:"20px",backgroundColor:"lightgray"},subtitle:{padding:"10px",fontSize:"12px",display:"flex",flexDirection:"row",justifyContent:"space-between"},label:{fontSize:"8px",textTransform:"uppercase"},eventList:{flexDirection:"column",display:"flex",overflow:"hidden",padding:"20px"},eventWrapper:{margin:5,padding:5,border:"1px solid black"},locationWrapper:{marginBottom:8,fontSize:"10px",color:"#4A4A4A",fontWeight:600},title:{marginBottom:10,display:"inline-flex",fontSize:"12px",color:"#4A4A4A",fontWeight:600},footer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},leftCol:{display:"flex",flex:1,flexDirection:"column",maxWidth:"65%"},speakers:{fontSize:"10px",color:"#4A4A4A"},trackWrapper:{fontWeight:"bold",fontSize:"10px",position:"relative",marginTop:"auto"},rightCol:{maxWidth:"35%"},tagsWrapper:{display:"flex",flexWrap:"wrap",justifyContent:"right"},tag:{backgroundColor:"#F6F6F6",borderRadius:"8px",height:"10px",margin:"4px 4px 0 0",padding:"1px 2px",textTransform:"uppercase",fontSize:"6px",color:"#4A4A4A"}}),H=({events:e,summit:t,nowUtc:n})=>{const[a,r]=(0,o.useState)(null),i=e.sort(((e,t)=>e.start_date-t.start_date)),s=t.locations.find((e=>"SummitVenue"===e.class_name)),c=(0,M.epochToMomentTimeZone)(t.start_date,t.time_zone_id).format("MMMM Do YYYY"),m=(0,M.epochToMomentTimeZone)(t.end_date,t.time_zone_id).format("MMMM Do YYYY");return(0,o.useEffect)((()=>{if(t.logo){(async()=>{const e=await(0,M.convertSVGtoImg)(t.logo);r(e)})()}}),[t.logo]),a?l().createElement(T.Document,null,l().createElement(T.Page,{size:"A4",style:k.eventList},l().createElement(T.View,{style:k.header},l().createElement(T.View,{style:k.headlineWrapper},l().createElement(T.Image,{src:a.url,style:O(O({},k.logo),{},{width:a.width,height:a.height})}),l().createElement(T.Text,{style:k.headline},"Schedule for ",t.name)),l().createElement(T.View,{style:k.subtitle},l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"Venue:"),l().createElement(T.Text,null,null==s?void 0:s.name)),l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"Start:"),l().createElement(T.Text,null,c)),l().createElement(T.View,null,l().createElement(T.Text,{style:k.label},"End:"),l().createElement(T.Text,null,m)))),i.map((e=>{var a,r,i;const o=(0,M.epochToMomentTimeZone)(e.start_date,t.time_zone_id).format("ddd, MMMM D"),s=(0,M.epochToMomentTimeZone)(e.start_date,t.time_zone_id).format("h:mma"),c=(0,M.epochToMomentTimeZone)(e.end_date,t.time_zone_id).format("h:mma"),m=t.locations.filter((e=>"SummitVenue"===e.class_name)),u=(0,M.getEventLocation)(e,m,t.start_showing_venues_date,n),d=e.eventColor?{borderLeft:`4px solid ${e.eventColor}`}:{};return l().createElement(T.View,{style:O(O({},k.eventWrapper),d),key:`event-${e.id}`,wrap:!1},l().createElement(T.View,{style:k.locationWrapper},l().createElement(T.Text,null,`${o}, ${s} - ${c} | ${u}`)),l().createElement(T.View,{style:k.title},l().createElement(T.Text,null,e.title)),l().createElement(T.View,{style:k.footer},l().createElement(T.View,{style:k.leftCol},e.track&&l().createElement(T.View,{style:k.trackWrapper},l().createElement(T.Text,null,null===(a=e.track)||void 0===a?void 0:a.name)),((null===(r=e.speakers)||void 0===r?void 0:r.length)>0||e.moderator)&&l().createElement(T.View,null,(e=>{const t=(0,M.getEventHosts)(e).map((e=>`${e.first_name} ${e.last_name}`));return t.length>0?l().createElement(T.View,{style:k.speakers},l().createElement(T.Text,null,"By ",t.join(", "))):null})(e))),l().createElement(T.View,{style:k.rightCol},l().createElement(T.View,{style:k.tagsWrapper},null===(i=e.tags)||void 0===i?void 0:i.map((t=>l().createElement(T.View,{key:`tag-${t.id}-${e.id}`,style:k.tag},l().createElement(T.Text,null,t.tag))))))))})))):null};H.propTypes={events:N().array.isRequired,summit:N().object.isRequired};const C=H,V="XZyB3zy09oNiJPYXzMaR",j="V8lrMEK6XXJUFDwsrtSs",A=({events:e,summit:t,nowUtc:n=null})=>{const[a,r]=(0,o.useState)(!1);return l().createElement(l().Fragment,null,!a&&l().createElement("button",{className:`${V} ${j}`,onClick:()=>r(!0)},l().createElement("i",{className:"fa fa-print","aria-hidden":"true"}),"Print"),a&&l().createElement(T.PDFDownloadLink,{className:`${V} ${j}`,document:l().createElement(C,{events:e,summit:t,nowUtc:n}),fileName:"schedule.pdf"},(({blob:e,url:t,loading:n,error:a})=>!e||n?"Creating document...":"Download PDF")))},L=["summit","trackSpaceTime","scheduleEvents","selectedEvents","currentDay","currentVenue","slotSize","hideBulkSelect"],$=e=>{let{summit:t,trackSpaceTime:n,scheduleEvents:a,selectedEvents:r,currentDay:u,currentVenue:d,slotSize:p,hideBulkSelect:v}=e,f=i()(e,L);const g=(0,o.useMemo)((()=>((e,t,n)=>{var a,r;const i=[],o=(0,M.epochToMomentTimeZone)(e.start_date,e.time_zone_id),l=(0,M.epochToMomentTimeZone)(e.end_date,e.time_zone_id);let s=o.clone();const c=(null==t||null===(a=t.find((e=>e.location_id===(null==n?void 0:n.id))))||void 0===a||null===(r=a.allowed_timeframes)||void 0===r?void 0:r.map((t=>(0,M.epochToMomentTimeZone)(t.day,e.time_zone_id).format("YYYY-MM-DD"))))||null;do{const e={value:s.format("YYYY-MM-DD"),label:s.format("dddd Do , MMMM YYYY")};c&&0!==c.length&&!c.includes(e.value)||i.push(e),s=s.clone(),s.add(1,"day")}while(!s.isAfter(l));return i})(t,n,d)),[t.start_date,t.end_date,n,d]),E=(0,o.useMemo)((()=>((e,t)=>{const n=[{value:h.TBALocation,label:h.TBALocation.name}],a=(null==t?void 0:t.map((e=>e.location_id)))||null;return e.locations.filter((e=>{const t="SummitVenue"!==e.class_name,n=!a||a.includes(e.id);return t&&n})).forEach((e=>{const t={value:e,label:e.name};n.push(t),e.hasOwnProperty("rooms")&&e.rooms.forEach((e=>{const t={value:e,label:e.name};n.push(t)}))})),n})(t,n)),[t.locations,n]),_=h.SlotSizeOptions.map((e=>({value:e,label:`${e} min.`}))),{allowResize:y=!0,allowDrag:b=!0}=f,{open:D,close:z}=(0,o.useMemo)((()=>((e,t,n,a)=>{if(e&&t&&n){var r;const i=null===(r=n.find((e=>e.location_id===t.id)))||void 0===r?void 0:r.allowed_timeframes;if((null==i?void 0:i.length)>0){const t=null==i?void 0:i.find((t=>(0,M.epochToMomentTimeZone)(t.day,a).format("YYYY-MM-DD")===e));if(t)return{open:(0,M.parseLocationHour)(t.opening_hour),close:(0,M.parseLocationHour)(t.closing_hour)}}}return null!=t&&t.opening_hour&&null!=t&&t.closing_hour?{open:(0,M.parseLocationHour)(t.opening_hour),close:(0,M.parseLocationHour)(t.closing_hour)}:{open:"00:00",close:"23:50"}})(u,d,n,t.time_zone_id)),[u,d,n]);return(0,o.useEffect)((()=>{u&&!g.find((e=>e.value===u))&&f.onDayChanged(null)}),[d]),l().createElement("div",{className:"schedule-view-wrapper"},(f.onSlotSizeChange||f.showPrint)&&l().createElement("div",{className:"row",style:{marginBottom:12,marginTop:2}},f.onSlotSizeChange&&l().createElement("div",{className:"col-md-6"},l().createElement("span",null,"Slot size: "),l().createElement(m.default,{value:p,onChange:f.onSlotSizeChange,options:_,style:{display:"inline-block",marginLeft:10}})),f.showPrint&&l().createElement("div",{className:"col-md-6 pull-right"},l().createElement(A,{summit:t,events:a}))),l().createElement("div",{className:"row"},l().createElement("div",{className:"col-md-6"},l().createElement(c.default,{onVenueChanged:f.onVenueChanged,venues:E,currentValue:d,placeholder:"Select Room"})),l().createElement("div",{className:"col-md-6"},l().createElement(s.default,{onDayChanged:f.onDayChanged,days:g,currentValue:u,placeholder:"Select Day"}))),l().createElement(x.default,{bulkOptions:f.customBulkOptions||h.bulkOptions,onSelectAll:f.onSelectAll,onSelectedBulkAction:f.onSelectedBulkAction,show:!v&&a.length>0}),u&&d&&l().createElement(S,{startTime:D,endTime:z,currentSummit:t,interval:p,currentDay:u,pixelsPerMinute:h.PixelsPerMinute,canDropEvent:f.canDropEvent,allowResize:y,allowDrag:b,onScheduleEvent:f.onScheduleEvent,events:a,onUnPublishEvent:f.onUnPublishEvent,onEditEvent:f.onEditEvent,onClickSelected:f.onClickSelected,selectedPublishedEvents:r,onMoveEvent:f.onMoveSingleEvent}))};return a})()));
2
2
  //# sourceMappingURL=schedule-builder-view.js.map