openstack-uicore-foundation 5.0.20-beta.4 → 5.0.20

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 (37) hide show
  1. package/.claude/rules/openstack-uicore-foundation-components.md +62 -0
  2. package/.claude/rules/openstack-uicore-foundation-project.md +64 -0
  3. package/.claude/rules/openstack-uicore-foundation-security.md +39 -0
  4. package/.codegraph/config.json +140 -0
  5. package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +83 -0
  6. package/docs/plans/2026-04-22-dropzone-pooling-ux.md +129 -0
  7. package/docs/plans/2026-04-23-uploadv3-duplicate-file-max-reached.md +109 -0
  8. package/docs/plans/2026-04-23-uploadv3-premature-complete-on-202.md +99 -0
  9. package/lib/components/index.js +1 -1
  10. package/lib/components/index.js.map +1 -1
  11. package/lib/components/inputs/company-input-v2.js +1 -1
  12. package/lib/components/inputs/company-input-v2.js.map +1 -1
  13. package/lib/components/mui/auth-button.js +1 -1
  14. package/lib/components/mui/auth-button.js.map +1 -1
  15. package/lib/components/mui/cards/table-card.js +1 -1
  16. package/lib/components/mui/cards/table-card.js.map +1 -1
  17. package/lib/components/mui/cards.js +1 -1
  18. package/lib/components/mui/cards.js.map +1 -1
  19. package/lib/components/mui/cart-button.js +1 -1
  20. package/lib/components/mui/cart-button.js.map +1 -1
  21. package/lib/components/mui/form-item-table.js +1 -1
  22. package/lib/components/mui/form-item-table.js.map +1 -1
  23. package/lib/components/mui/formik-inputs/dropdown-checkbox.js +1 -1
  24. package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
  25. package/lib/components/mui/item-settings-modal.js +1 -1
  26. package/lib/components/mui/item-settings-modal.js.map +1 -1
  27. package/lib/components/mui/nav-bar.js +1 -1
  28. package/lib/components/mui/nav-bar.js.map +1 -1
  29. package/lib/components/mui/table.js +1 -1
  30. package/lib/components/mui/table.js.map +1 -1
  31. package/lib/css/components/index.css +1 -1
  32. package/lib/css/components/mui/auth-button.css +1 -1
  33. package/lib/css/components/mui/nav-bar.css +1 -1
  34. package/lib/i18n.js +1 -1
  35. package/lib/i18n.js.map +1 -1
  36. package/package.json +1 -1
  37. package/.claude/settings.local.json +0 -13
@@ -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,mICTT,MAAM,EAA+BC,QAAQ,4B,aCA7C,MAAM,EAA+BA,QAAQ,+B,aC6B7C,MAAMC,EAAU,CACdC,QAASC,IAAAA,cAACC,IAAO,CAACC,MAAM,YACxBC,QAASH,IAAAA,cAACI,IAAW,CAACF,MAAM,YAC5BG,MAAOL,IAAAA,cAACM,IAAK,CAACJ,MAAM,UACpBK,KAAMP,IAAAA,cAACQ,IAAI,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,cAAC0B,EAAAA,WAAU,CAACC,QAAQ,MAAMhB,IAE5BX,IAAAA,cAAC4B,EAAAA,QAAO,MACR5B,IAAAA,cAAC6B,EAAAA,cAAa,CAACN,GAAI,CAAEC,EAAG,IACtBxB,IAAAA,cAAA,OAAK8B,MAAO,CAAEC,QAAS,OAAQC,WAAY,WACxClC,EAAQe,IACPb,IAAAA,cAAA,OAAK8B,MAAO,CAAEG,YAAa,KAAOnC,EAAQe,IAE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UAAW,UAEb,6BAA8B,CAC5BvJ,QAAS,QAEX,oCAAqC,CACnCwJ,WAAY,YAMlB,EAIVrG,EAASzC,UAAY,CACnB0C,QAASzC,IAAAA,MACT0C,KAAM1C,IAAAA,MACN2C,SAAU3C,IAAAA,KACV4C,UAAW5C,IAAAA,OACX6C,QAAS7C,IAAAA,OACT8C,YAAa9C,IAAAA,OACb+C,aAAc/C,IAAAA,KACdgD,gBAAiBhD,IAAAA,KACjBiD,OAAQjD,IAAAA,KACRkD,QAASlD,IAAAA,OACTsD,QAAStD,IAAAA,KACTyD,OAAQzD,IAAAA,KACR0D,UAAW1D,IAAAA,KACX2D,SAAU3D,IAAAA,KACV4D,SAAU5D,IAAAA,KACV6D,UAAW7D,IAAAA,KACX8D,kBAAmB9D,IAAAA,OACnB+D,iBAAkB/D,IAAAA,UAAoB,CAACA,IAAAA,KAAgBA,IAAAA,SACvDgE,wBAAyBhE,IAAAA,OACzBzB,mBAAoByB,IAAAA,QAGtB,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","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/CheckCircle\"","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/icons-material/Error\"","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 \"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 \"lodash/isBoolean\"","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 ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\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 from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\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\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\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 (!_global[BRIDGE_KEY]) {\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 _global[BRIDGE_KEY]({\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 _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = 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;\nexport const BPS = 100;\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};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","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/icons-material/Error\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","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(\"lodash/isBoolean\");","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/isBoolean\";\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 <span style={{ fontWeight: \"normal\" }}>{row[col.columnKey]}</span>;\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), fontWeight: \"normal\" }}\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\n size=\"large\"\n onClick={() => onEdit(row)}\n sx={{ padding: 0 }}\n data-testid=\"action-edit\"\n >\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={{ ...getCellSx(row, { 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: \"normal\",\n lineHeight: \"2.2rem\",\n padding: 0,\n color: \"rgba(0,0,0,0.56)\"\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 sx={{ padding: 0 }}\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.oneOfType([PropTypes.func, PropTypes.string]),\n deleteDialogConfirmText: PropTypes.string,\n confirmButtonColor: PropTypes.string\n};\n\nexport default MuiTable;\n"],"names":["root","factory","exports","module","define","amd","this","require","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","BRIDGE_KEY","_global","globalThis","window","showConfirmDialog","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__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","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","fontWeight","renderCell","render","isBoolean","CheckIcon","fontSize","CloseIcon","IconButton","size","padding","EditIcon","lineHeight","is_archived","async","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,mICTT,MAAM,EAA+BC,QAAQ,4B,aCA7C,MAAM,EAA+BA,QAAQ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BC,aAxPeuF,CAACC,EAAGC,KAC3BzF,EAAayF,EAAU,EAAE,EAwPjBC,oBArPuBC,IAC/B1F,EAAgB0F,EAAGC,OAAOzG,MAAM,EAqPxB0G,iBAAkBrC,IAAAA,UAAY,2BAC9B7H,GAAI,CACF,8BAA+B,CAC7BS,WAAY,WACZ0J,UAAW,UAEb,kCAAmC,CACjCxL,MAAO,qBACP6J,SAAU,OACVL,WAAY,UAEd,6BAA8B,CAC5BxJ,MAAO,qBACP6J,SAAU,OACVL,WAAY,UAEd,6BAA8B,CAC5B3H,QAAS,QAEX,oCAAqC,CACnC4J,WAAY,YAMlB,EAIVtG,EAAS5C,UAAY,CACnB6C,QAAS5C,IAAAA,MACT6C,KAAM7C,IAAAA,MACN8C,SAAU9C,IAAAA,KACV+C,UAAW/C,IAAAA,OACXgD,QAAShD,IAAAA,OACTiD,YAAajD,IAAAA,OACbkD,aAAclD,IAAAA,KACdmD,gBAAiBnD,IAAAA,KACjBoD,OAAQpD,IAAAA,KACRqD,QAASrD,IAAAA,OACTyD,QAASzD,IAAAA,KACT4D,OAAQ5D,IAAAA,KACR6D,UAAW7D,IAAAA,KACX8D,SAAU9D,IAAAA,KACV+D,SAAU/D,IAAAA,KACVgE,UAAWhE,IAAAA,KACXiE,kBAAmBjE,IAAAA,OACnBkE,iBAAkBlE,IAAAA,UAAoB,CAACA,IAAAA,KAAgBA,IAAAA,SACvDmE,wBAAyBnE,IAAAA,OACzBzB,mBAAoByB,IAAAA,QAGtB,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","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/CheckCircle\"","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/icons-material/Error\"","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 \"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 \"lodash/isBoolean\"","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 ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\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 from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\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\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\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 (!_global[BRIDGE_KEY]) {\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 _global[BRIDGE_KEY]({\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 _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = 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;\nexport const BPS = 100;\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};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","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/icons-material/Error\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","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(\"lodash/isBoolean\");","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/isBoolean\";\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 ACTION_CELL_SX = {\n p: 0,\n textAlign: \"center\",\n verticalAlign: \"middle\"\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 <span style={{ fontWeight: \"normal\" }}>{row[col.columnKey]}</span>;\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 sx={{tableLayout: \"fixed\"}}>\n {/* TABLE HEADER */}\n <TableHead sx={{backgroundColor: \"#EAEDF4\"}}>\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={{...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 40}}/>}\n {onArchive && <TableCell sx={{...ACTION_CELL_SX, width: 80, minWidth: 80, maxWidth: 80}}/>}\n {onDelete && <TableCell sx={{...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 40}}/>}\n {onSelect && <TableCell sx={{...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 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 width: col.width,\n minWidth: col.width,\n maxWidth: col.width,\n fontWeight: \"normal\"\n })}\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, {...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 40})}\n >\n <IconButton\n size=\"medium\"\n onClick={() => onEdit(row)}\n sx={{ padding: 0 }}\n data-testid=\"action-edit\"\n >\n <EditIcon fontSize=\"large\" />\n </IconButton>\n </TableCell>\n )}\n {/* Archive column */}\n {onArchive && (\n <TableCell\n align=\"center\"\n sx={getCellSx(row, {...ACTION_CELL_SX, width: 80, minWidth: 80, maxWidth: 80})}\n className={styles.dottedBorderLeft}\n >\n <Button\n variant=\"text\"\n color=\"inherit\"\n size=\"large\"\n onClick={() => onArchive(row)}\n data-testid=\"action-archive\"\n sx={{\n fontSize: \"1.3rem\",\n fontWeight: \"normal\",\n lineHeight: \"2.2rem\",\n minWidth: 0,\n padding: 0,\n color: \"rgba(0,0,0,0.56)\"\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, {...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 40})}\n >\n {canDelete(row) && (\n <IconButton\n size=\"medium\"\n onClick={() => handleDelete(row)}\n data-testid=\"action-delete\"\n sx={{ padding: 0 }}\n >\n <DeleteIcon fontSize=\"large\"/>\n </IconButton>\n )}\n </TableCell>\n )}\n {onSelect && (\n <TableCell\n align=\"center\"\n sx={getCellSx(row, {...ACTION_CELL_SX, width: 40, minWidth: 40, maxWidth: 40})}\n className={styles.dottedBorderLeft}\n >\n <IconButton\n size=\"medium\"\n onClick={() => onSelect(row)}\n data-testid=\"action-select\"\n sx={{ padding: 0 }}\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-selectLabel\": {\n color: \"rgba(0, 0, 0, 0.6)\",\n fontSize: \"12px\",\n fontWeight: \"normal\"\n },\n \".MuiTablePagination-select\": {\n color: \"rgba(0, 0, 0, 0.6)\",\n fontSize: \"12px\",\n fontWeight: \"normal\"\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.oneOfType([PropTypes.func, PropTypes.string]),\n deleteDialogConfirmText: PropTypes.string,\n confirmButtonColor: PropTypes.string\n};\n\nexport default MuiTable;\n"],"names":["root","factory","exports","module","define","amd","this","require","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","BRIDGE_KEY","_global","globalThis","window","showConfirmDialog","DEFAULT_PER_PAGE","TWENTY_PER_PAGE","FIFTY_PER_PAGE","__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","ACTION_CELL_SX","textAlign","verticalAlign","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","tableLayout","TableHead","TableRow","map","col","TableCell","columnKey","maxWidth","align","sortable","TableSortLabel","active","direction","header","visuallyHidden","T","TableBody","id","className","dottedBorder","styles","fontWeight","renderCell","render","isBoolean","CheckIcon","fontSize","CloseIcon","IconButton","size","padding","EditIcon","lineHeight","is_archived","async","type","showCancelButton","handleDelete","DeleteIcon","ArrowForwardIcon","colSpan","TablePagination","count","rowsPerPageOptions","rowsPerPage","page","handleChangePage","_","newPage","onRowsPerPageChange","ev","target","labelRowsPerPage","marginTop","marginLeft"],"sourceRoot":""}
@@ -2,5 +2,5 @@
2
2
 
3
3
  /*!
4
4
  * https://github.com/YouCanBookMe/react-datetime
5
- */.rdt{position:relative}.rdtPicker{background:#fff;border:1px solid #e4e3e3;box-shadow:0 1px 3px rgba(0,0,0,.1);display:none;margin-top:1px;padding:4px;position:absolute;width:auto;z-index:9999999!important}.rdtOpen .rdtPicker{display:block}.rdtStatic .rdtPicker{box-shadow:none;position:static}.rdtPicker .rdtTimeToggle{text-align:center}.rdtPicker table{margin:0;width:100%}.rdtPicker td,.rdtPicker th{height:28px;text-align:center}.rdtPicker td{cursor:pointer}.rdtPicker .rdtTimeToggle:hover,.rdtPicker td.rdtDay:hover,.rdtPicker td.rdtHour:hover,.rdtPicker td.rdtMinute:hover,.rdtPicker td.rdtSecond:hover{background:#eee;cursor:pointer}.rdtPicker td.rdtNew,.rdtPicker td.rdtOld{color:#999}.rdtPicker td.rdtToday{position:relative}.rdtPicker td.rdtToday:before{border-bottom:7px solid #428bca;border-left:7px solid transparent;border-top-color:rgba(0,0,0,.2);bottom:4px;content:"";display:inline-block;position:absolute;right:4px}.rdtPicker td.rdtActive,.rdtPicker td.rdtActive:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.rdtPicker td.rdtActive.rdtToday:before{border-bottom-color:#fff}.rdtPicker td.rdtDisabled,.rdtPicker td.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker td span.rdtOld{color:#999}.rdtPicker td span.rdtDisabled,.rdtPicker td span.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker th{border-bottom:1px solid #f9f9f9}.rdtPicker .dow{border-bottom:none;width:14.2857%}.rdtPicker th.rdtSwitch{width:100px}.rdtPicker th.rdtNext,.rdtPicker th.rdtPrev{font-size:21px;vertical-align:top}.rdtNext span,.rdtPrev span{-webkit-touch-callout:none;display:block;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtPicker th.rdtDisabled,.rdtPicker th.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker thead tr:first-child th{cursor:pointer}.rdtPicker thead tr:first-child th:hover{background:#eee}.rdtPicker tfoot{border-top:1px solid #f9f9f9}.rdtPicker button{background:none;border:none;cursor:pointer}.rdtPicker button:hover{background-color:#eee}.rdtPicker thead button{height:100%;width:100%}td.rdtMonth,td.rdtYear{cursor:pointer;height:50px;width:25%}td.rdtMonth:hover,td.rdtYear:hover{background:#eee}.rdtCounters{display:inline-block}.rdtCounters>div{float:left}.rdtCounter{height:100px;width:40px}.rdtCounterSeparator{line-height:100px}.rdtCounter .rdtBtn{-webkit-touch-callout:none;cursor:pointer;display:block;height:40%;line-height:40px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtCounter .rdtBtn:hover{background:#eee}.rdtCounter .rdtCount{font-size:1.2em;height:20%}.rdtMilli{padding-left:8px;vertical-align:middle;width:48px}.rdtMilli input{font-size:1.2em;margin-top:37px;width:100%}.option-group{font-style:italic;font-weight:700}.option-child{padding-left:15px}.dropzone{border:2px dashed gray;color:gray;height:150px;padding:20px;text-align:center}.file-box{max-height:50px;max-width:50px;position:relative;text-align:center}.file-box img{width:100%}.file-box .remove{color:red;cursor:pointer;height:20px;position:absolute;right:-10px;top:-5px;width:20px}.filepicker{font-family:sans-serif}div.filepicker{background-color:#e1e1e1;border:2px dashed #c7c7c7;border-radius:5px;height:100%;min-height:100px;padding:5px;text-align:center}div.filepicker.disabled{cursor:not-allowed;padding-top:30px}.filepicker-file-icon{color:#000;display:inline-block;margin:1.5em 0 2.5em;padding-left:45px;position:relative}.filepicker-file-icon:before{border:2px solid #7f7f7f;border-radius:2px;content:"";height:34px;left:0;position:absolute;top:-7px;width:29px}.filepicker-file-icon:after{background-color:#000;color:#fff;content:"file";content:attr(data-filetype);font-size:11px;left:-4px;letter-spacing:1px;line-height:1.3;padding:0 2px;position:absolute;text-align:right;text-transform:uppercase;top:9px}.filepicker-file-icon .fileCorner{border-color:#fff transparent transparent #920035;border-style:solid;border-width:11px 0 0 11px;height:0;left:22px;position:absolute;top:-7px;width:0}.upload-input-v2-preview-container{list-style:none}.upload-input-v2-preview-container li{align-items:center;border:1px solid #e1e1e1;display:grid;grid-template-columns:25% 70% 5%;margin:1em}.upload-input-v2-preview-container li .file-preview img{height:100px;max-height:100px;max-width:110px;object-fit:contain;padding:1em;width:auto}.upload-input-v2-preview-container li .file-name{margin-left:2em;text-align:left}.upload-input-v2-preview-container li .file-delete{text-align:center}.T1PEDYso224efj98hUw9{clip-path:inset(0);filter:blur(10px)}.HydBuzzegFMoqMkrptg7{filter:blur(0);transition:filter .1s linear}.Pq0tg32DAJ33TmIQMvMs{display:block;height:auto;max-width:100%}.upload-input-v3 .dropzone{align-items:center;background-color:#fff;border:1px dashed #d0d5dd;border-radius:8px;cursor:pointer;display:flex;justify-content:center;min-height:160px;padding:40px 20px;transition:background-color .2s ease,border-color .2s ease}.upload-input-v3 .dropzone.dz-drag-hover{background-color:#e8f0fe;border-color:#1976d2}.upload-input-v3 .dropzone .dz-message,.upload-input-v3 .dropzone .dz-preview{display:none}.upload-input-v3 .dropzone .dz-custom-content{align-items:center;display:flex;flex-direction:column;justify-content:center;pointer-events:none;text-align:center}.upload-input-v3 .dropzone .dz-custom-content .dz-custom-icon{color:#1976d2;font-size:40px!important;margin-bottom:8px}.upload-input-v3 .dropzone .dz-custom-content .dz-click-text{color:#1976d2;text-decoration:underline}.upload-input-v3 .dropzone .dz-custom-content .dz-custom-hint{color:#9e9e9e;margin-top:4px}.editor-input div a{color:#337ab7}.editor-input div a a:focus,.editor-input div a:hover{color:#23527c;text-decoration:underline}.simple-link-list{display:flex;flex-direction:column;margin-top:40px}.simple-link-list .link-select{width:200px}.simple-link-list .link-select .Select-control{border-radius:4px 0 0 4px;height:100%}.simple-link-list .link-select .Select-control .Select-input{height:32px}.simple-link-list .add-button{border-color:#afafaf;height:38px}.simple-link-list:not(.panel .simple-link-list){border:1px solid #ccc;border-radius:3px;margin:5px;padding:10px}.panel .simple-link-list .simple-link-list-title{display:none}.panel .simple-link-list .simple-link-list-buttons{display:flex;justify-content:flex-end}.summit-dropdown .summit-select{width:150px}.summit-dropdown .summit-select>div{border-bottom-right-radius:unset;border-top-right-radius:unset}.summit-dropdown .btn{border-left-color:#e7e7e7;height:38px}.summit-dropdown.big .summit-select input{height:32px}.summit-dropdown.big .btn{height:46px}.sortable-table-box{margin-top:20px}.checkbox-cell{text-align:center;vertical-align:middle}table.table{clear:both;margin-bottom:6px!important;margin-top:6px!important;max-width:none!important}table.table td,table.table th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}table.table td.tables_empty,table.table th.tables_empty{text-align:center}table.table thead tr td.sorting,table.table thead tr td.sorting_asc,table.table thead tr td.sorting_desc,table.table thead tr th.sorting,table.table thead tr th.sorting_asc,table.table thead tr th.sorting_desc{min-width:30px;padding-right:10px}table.table thead tr td.sorting,table.table thead tr td.sorting_asc,table.table thead tr td.sorting_asc_disabled,table.table thead tr td.sorting_desc,table.table thead tr td.sorting_desc_disabled,table.table thead tr th.sorting,table.table thead tr th.sorting_asc,table.table thead tr th.sorting_asc_disabled,table.table thead tr th.sorting_desc,table.table thead tr th.sorting_desc_disabled{cursor:pointer;position:relative}table.table thead tr td.sorting:after,table.table thead tr td.sorting_asc:after,table.table thead tr td.sorting_asc_disabled:after,table.table thead tr td.sorting_desc:after,table.table thead tr td.sorting_desc_disabled:after,table.table thead tr th.sorting:after,table.table thead tr th.sorting_asc:after,table.table thead tr th.sorting_asc_disabled:after,table.table thead tr th.sorting_desc:after,table.table thead tr th.sorting_desc_disabled:after{display:inline-block;font-family:Glyphicons Halflings,sans-serif;left:8px;opacity:.5;position:relative;top:2px}table.table thead tr td:active,table.table thead tr th:active{outline:none}table.table thead tr td.sorting:after,table.table thead tr th.sorting:after{content:"\e150";opacity:.2}table.table thead tr td.sorting_asc:after,table.table thead tr th.sorting_asc:after{content:"\e155"}table.table thead tr td.sorting_desc:after,table.table thead tr th.sorting_desc:after{content:"\e156"}table.table thead tr td.sorting_asc_disabled:after,table.table thead tr td.sorting_desc_disabled:after,table.table thead tr th.sorting_asc_disabled:after,table.table thead tr th.sorting_desc_disabled:after{color:#eee}table.table.nowrap td,table.table.nowrap th{white-space:nowrap}table.table tbody tr.child{padding:.5em 1em}table.table tbody tr.child:hover{background:transparent!important}table.table tbody tr.child ul{display:inline-block;list-style-type:none;margin:0;padding:0}table.table tbody tr.child ul li{border-bottom:1px solid #efefef;padding:.5em 0}table.table tbody tr.child ul li:first-child{padding-top:0}table.table tbody tr.child ul li:last-child{border-bottom:none}table.table tbody tr.can-edit{cursor:pointer}table.table .actions{width:70px}table.table .actions a{margin-left:10px}table.table .actions a .delete-icon:hover{color:#da0000!important}table.table .actions a .fa:hover{color:#024c85}table.table-bordered.table{border-collapse:separate!important}table.table-bordered.table td,table.table-bordered.table th{border-left-width:0}table.table-bordered.table td:last-child,table.table-bordered.table th:last-child{border-right-width:0}table.table-bordered.table tbody td,table.table-bordered.table tbody th{border-bottom-width:0}.action-dropdown .action-select{width:250px}.action-dropdown .action-select .Select-control{border-radius:4px 0 0 4px;height:100%}.action-dropdown .action-select .Select-control .Select-input{height:32px}.action-dropdown.small :global .Select-control{height:30px}.action-dropdown.small :global .Select-placeholder{line-height:20px}.action-dropdown.small :global .Select-value{line-height:26px!important}.action-dropdown.small :global .Select-value-label{line-height:26px}.action-dropdown.small :global .Select-input{height:26px}.action-dropdown.normal .btn{height:38px}.pTjbvR2PI3JIAfGGYR5C{border-color:transparent;border-radius:20px;bottom:0;color:#fff;font-size:20px;height:30px;padding:0;position:absolute;right:0;text-align:center;width:30px}.pTjbvR2PI3JIAfGGYR5C.BnU6_vcWc8sasL8roBPA{background-color:#e39900}.pTjbvR2PI3JIAfGGYR5C.yREg1belHCLDAYYfAg77{background-color:#7ed321}.pTjbvR2PI3JIAfGGYR5C.mFp_9X3SzjgPNXRSXiFR{background-color:#396bd0}.pTjbvR2PI3JIAfGGYR5C i{margin-top:4px}.tDZTa8dy9OMVyGAtxNOS .VoBl8JcsRZelj8EKGKtC{display:inline-block;margin-left:10px;margin-right:10px;text-align:center}.bulk-actions-selector-container{min-height:90px}.bulk-actions-selector-container div{padding:1em}.bulk-actions-selector-container div input[type=checkbox]{margin-right:1em}.bulk-actions-selector-container div select{height:30px;width:90%}.XZyB3zy09oNiJPYXzMaR{align-items:center;box-shadow:none!important;display:inline-flex;padding:.375rem .75rem;text-decoration:none}.XZyB3zy09oNiJPYXzMaR i{margin-right:5px}.XZyB3zy09oNiJPYXzMaR.V8lrMEK6XXJUFDwsrtSs{background-color:#fff;border:1px solid #999;border-radius:4px;color:#4a4a4a;font-size:15px;height:39px;line-height:18px;margin-right:8px}.schedule-view-wrapper .schedule-event{-webkit-touch-callout:none;background-color:#b3d6ed;margin:0!important;overflow:hidden;position:absolute;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:10}.schedule-view-wrapper .schedule-event .row{height:100%}.schedule-view-wrapper .schedule-event .row .col-md-12{height:100%;position:relative}.schedule-view-wrapper .schedule-event .event-container{float:left;height:calc(100% - 10px);margin:5px 10px;overflow:hidden;padding:0!important;width:85%}.schedule-view-wrapper .schedule-event .event-actions{display:flex;float:right;margin:0 5px 0 0}.schedule-view-wrapper .schedule-event .event-select-wrapper{float:left;margin:5px 0 0 5px}.schedule-view-wrapper .is-static{background:repeating-linear-gradient(-45deg,#e1e1e1,#e1e1e1 2px,#fff 0,#fff 20px);color:gray;cursor:not-allowed!important}.schedule-view-wrapper .is-resizable{overflow:hidden}.schedule-view-wrapper .is-resizable:after,.schedule-view-wrapper .is-resizable:before{background-color:#fff;border:1px solid #000;border-radius:5px;content:" ";cursor:ns-resize;display:block;height:5px;left:15%;position:absolute;right:15%;visibility:hidden;z-index:11}.schedule-view-wrapper .is-resizable:before{top:0}.schedule-view-wrapper .is-resizable:after{bottom:0}.schedule-view-wrapper .is-resizable:hover:after,.schedule-view-wrapper .is-resizable:hover:before{visibility:visible}.schedule-view-wrapper .schedule-events-container{position:relative}.schedule-view-wrapper .event-content{height:100%;width:100%}.schedule-view-wrapper .event-content-half{height:90%;width:50%}.schedule-view-wrapper .time-slot{background-color:gray;border-left:1px solid #000;color:#fff;font-weight:700}.schedule-view-wrapper .time-slot,.schedule-view-wrapper .time-slot-container{border-bottom:1px solid #000;border-right:1px solid #000;height:30px!important;margin:0;padding:0}.schedule-view-wrapper .time-slot-container{position:relative;width:100%}.schedule-view-wrapper .time-slot-container .col-md-12{margin:0!important;padding:0!important}.schedule-view-wrapper .time-slot-container .col-md-12 .minute-container{border-bottom:1px solid #000}.schedule-view-wrapper .time-slot-overlay{height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%;z-index:100}.schedule-view-wrapper .no-padding{padding:0!important}.schedule-view-wrapper .no-margin{margin:0!important}.schedule-view-wrapper .location-option-venue{font-weight:700}.schedule-view-wrapper .location-option-room{margin-left:15px}.schedule-view-wrapper .swal2-container{z-index:12}.schedule-view-wrapper .day-selector,.schedule-view-wrapper .event-type-selector,.schedule-view-wrapper .venues-selector{padding-bottom:10px;z-index:21}.schedule-view-wrapper .track-selector{z-index:22}.schedule-view-wrapper .outer-schedule-events-container{border-top:1px solid #000;max-height:800px;overflow-x:hidden;overflow-y:auto}.schedule-view-wrapper .empty-list-message{font-weight:700}.schedule-view-wrapper .fa-spinner{z-index:12}.schedule-view-wrapper .Select-menu-outer{z-index:12!important}.schedule-view-wrapper .swal2-container{z-index:23!important}.schedule-view-wrapper .select-event-btn{cursor:pointer;z-index:11}.schedule-view-wrapper .event-action-btn{cursor:pointer;margin-left:10px;padding-top:10px;z-index:11}.schedule-view-wrapper .popover{max-width:60%!important;z-index:14!important}.schedule-view-wrapper .event-title.withTooltip:hover{cursor:pointer}.schedule-view-wrapper .ajax-loader-container{z-index:25!important}.schedule-view-wrapper .bulk-actions-editor-container{background-color:#fff;margin:1em;padding:1em}.schedule-view-wrapper .bulk-actions-editor-container .col-title{font-weight:700;padding:1em}.schedule-view-wrapper .bulk-actions-editor-container .col-form-buttons button{margin-right:10px}.sYyWOBs7DxfIdU_ztAqL{border-left:none;position:relative}.sYyWOBs7DxfIdU_ztAqL:before{border-left:1px dashed #e0e0e0;bottom:0;content:"";height:3em;left:0;margin-top:2em;position:absolute;top:0}.Z35249KJgMpoE1f5td0j{border-left:none;position:relative}.Z35249KJgMpoE1f5td0j:before{border-left:1px dashed #e0e0e0;bottom:0;content:"";height:auto;left:0;margin:20px 0;position:absolute;top:0}.mx3fuojj3xuUbN9ch3eB{border-left:none;position:relative}.mx3fuojj3xuUbN9ch3eB:before{align-self:center;border-left:1px dashed #e0e0e0;bottom:0;content:"";height:60%;left:0;position:absolute;top:0}.UD7OIFgwF1LOfPJP234A{cursor:pointer;height:40px;position:absolute;right:34px;top:12px;width:140px}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}.V05WfzCpIdOS1YlQd1Hq{right:4px;top:4px}.cNjqYzfITmntvsDuBdU8{background-size:cover;border:1px solid #afafaf;border-radius:20px;float:right;height:40px;overflow:hidden;width:40px}.DlGPMKE5AoCGWcm7YIz8{background-color:#fff;border-bottom:1px solid #b3b3b3;height:64px}.Tgph56OyA6q8xx1m43xR{font-size:16px;height:100%;line-height:60px;text-align:center}
5
+ */.rdt{position:relative}.rdtPicker{background:#fff;border:1px solid #e4e3e3;box-shadow:0 1px 3px rgba(0,0,0,.1);display:none;margin-top:1px;padding:4px;position:absolute;width:auto;z-index:9999999!important}.rdtOpen .rdtPicker{display:block}.rdtStatic .rdtPicker{box-shadow:none;position:static}.rdtPicker .rdtTimeToggle{text-align:center}.rdtPicker table{margin:0;width:100%}.rdtPicker td,.rdtPicker th{height:28px;text-align:center}.rdtPicker td{cursor:pointer}.rdtPicker .rdtTimeToggle:hover,.rdtPicker td.rdtDay:hover,.rdtPicker td.rdtHour:hover,.rdtPicker td.rdtMinute:hover,.rdtPicker td.rdtSecond:hover{background:#eee;cursor:pointer}.rdtPicker td.rdtNew,.rdtPicker td.rdtOld{color:#999}.rdtPicker td.rdtToday{position:relative}.rdtPicker td.rdtToday:before{border-bottom:7px solid #428bca;border-left:7px solid transparent;border-top-color:rgba(0,0,0,.2);bottom:4px;content:"";display:inline-block;position:absolute;right:4px}.rdtPicker td.rdtActive,.rdtPicker td.rdtActive:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.rdtPicker td.rdtActive.rdtToday:before{border-bottom-color:#fff}.rdtPicker td.rdtDisabled,.rdtPicker td.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker td span.rdtOld{color:#999}.rdtPicker td span.rdtDisabled,.rdtPicker td span.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker th{border-bottom:1px solid #f9f9f9}.rdtPicker .dow{border-bottom:none;width:14.2857%}.rdtPicker th.rdtSwitch{width:100px}.rdtPicker th.rdtNext,.rdtPicker th.rdtPrev{font-size:21px;vertical-align:top}.rdtNext span,.rdtPrev span{-webkit-touch-callout:none;display:block;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtPicker th.rdtDisabled,.rdtPicker th.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker thead tr:first-child th{cursor:pointer}.rdtPicker thead tr:first-child th:hover{background:#eee}.rdtPicker tfoot{border-top:1px solid #f9f9f9}.rdtPicker button{background:none;border:none;cursor:pointer}.rdtPicker button:hover{background-color:#eee}.rdtPicker thead button{height:100%;width:100%}td.rdtMonth,td.rdtYear{cursor:pointer;height:50px;width:25%}td.rdtMonth:hover,td.rdtYear:hover{background:#eee}.rdtCounters{display:inline-block}.rdtCounters>div{float:left}.rdtCounter{height:100px;width:40px}.rdtCounterSeparator{line-height:100px}.rdtCounter .rdtBtn{-webkit-touch-callout:none;cursor:pointer;display:block;height:40%;line-height:40px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtCounter .rdtBtn:hover{background:#eee}.rdtCounter .rdtCount{font-size:1.2em;height:20%}.rdtMilli{padding-left:8px;vertical-align:middle;width:48px}.rdtMilli input{font-size:1.2em;margin-top:37px;width:100%}.option-group{font-style:italic;font-weight:700}.option-child{padding-left:15px}.dropzone{border:2px dashed gray;color:gray;height:150px;padding:20px;text-align:center}.file-box{max-height:50px;max-width:50px;position:relative;text-align:center}.file-box img{width:100%}.file-box .remove{color:red;cursor:pointer;height:20px;position:absolute;right:-10px;top:-5px;width:20px}.filepicker{font-family:sans-serif}div.filepicker{background-color:#e1e1e1;border:2px dashed #c7c7c7;border-radius:5px;height:100%;min-height:100px;padding:5px;text-align:center}div.filepicker.disabled{cursor:not-allowed;padding-top:30px}.filepicker-file-icon{color:#000;display:inline-block;margin:1.5em 0 2.5em;padding-left:45px;position:relative}.filepicker-file-icon:before{border:2px solid #7f7f7f;border-radius:2px;content:"";height:34px;left:0;position:absolute;top:-7px;width:29px}.filepicker-file-icon:after{background-color:#000;color:#fff;content:"file";content:attr(data-filetype);font-size:11px;left:-4px;letter-spacing:1px;line-height:1.3;padding:0 2px;position:absolute;text-align:right;text-transform:uppercase;top:9px}.filepicker-file-icon .fileCorner{border-color:#fff transparent transparent #920035;border-style:solid;border-width:11px 0 0 11px;height:0;left:22px;position:absolute;top:-7px;width:0}.upload-input-v2-preview-container{list-style:none}.upload-input-v2-preview-container li{align-items:center;border:1px solid #e1e1e1;display:grid;grid-template-columns:25% 70% 5%;margin:1em}.upload-input-v2-preview-container li .file-preview img{height:100px;max-height:100px;max-width:110px;object-fit:contain;padding:1em;width:auto}.upload-input-v2-preview-container li .file-name{margin-left:2em;text-align:left}.upload-input-v2-preview-container li .file-delete{text-align:center}.T1PEDYso224efj98hUw9{clip-path:inset(0);filter:blur(10px)}.HydBuzzegFMoqMkrptg7{filter:blur(0);transition:filter .1s linear}.Pq0tg32DAJ33TmIQMvMs{display:block;height:auto;max-width:100%}.upload-input-v3 .dropzone{align-items:center;background-color:#fff;border:1px dashed #d0d5dd;border-radius:8px;cursor:pointer;display:flex;justify-content:center;min-height:160px;padding:40px 20px;transition:background-color .2s ease,border-color .2s ease}.upload-input-v3 .dropzone.dz-drag-hover{background-color:#e8f0fe;border-color:#1976d2}.upload-input-v3 .dropzone .dz-message,.upload-input-v3 .dropzone .dz-preview{display:none}.upload-input-v3 .dropzone .dz-custom-content{align-items:center;display:flex;flex-direction:column;justify-content:center;pointer-events:none;text-align:center}.upload-input-v3 .dropzone .dz-custom-content .dz-custom-icon{color:#1976d2;font-size:40px!important;margin-bottom:8px}.upload-input-v3 .dropzone .dz-custom-content .dz-click-text{color:#1976d2;text-decoration:underline}.upload-input-v3 .dropzone .dz-custom-content .dz-custom-hint{color:#9e9e9e;margin-top:4px}.editor-input div a{color:#337ab7}.editor-input div a a:focus,.editor-input div a:hover{color:#23527c;text-decoration:underline}.simple-link-list{display:flex;flex-direction:column;margin-top:40px}.simple-link-list .link-select{width:200px}.simple-link-list .link-select .Select-control{border-radius:4px 0 0 4px;height:100%}.simple-link-list .link-select .Select-control .Select-input{height:32px}.simple-link-list .add-button{border-color:#afafaf;height:38px}.simple-link-list:not(.panel .simple-link-list){border:1px solid #ccc;border-radius:3px;margin:5px;padding:10px}.panel .simple-link-list .simple-link-list-title{display:none}.panel .simple-link-list .simple-link-list-buttons{display:flex;justify-content:flex-end}.summit-dropdown .summit-select{width:150px}.summit-dropdown .summit-select>div{border-bottom-right-radius:unset;border-top-right-radius:unset}.summit-dropdown .btn{border-left-color:#e7e7e7;height:38px}.summit-dropdown.big .summit-select input{height:32px}.summit-dropdown.big .btn{height:46px}.sortable-table-box{margin-top:20px}.checkbox-cell{text-align:center;vertical-align:middle}table.table{clear:both;margin-bottom:6px!important;margin-top:6px!important;max-width:none!important}table.table td,table.table th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}table.table td.tables_empty,table.table th.tables_empty{text-align:center}table.table thead tr td.sorting,table.table thead tr td.sorting_asc,table.table thead tr td.sorting_desc,table.table thead tr th.sorting,table.table thead tr th.sorting_asc,table.table thead tr th.sorting_desc{min-width:30px;padding-right:10px}table.table thead tr td.sorting,table.table thead tr td.sorting_asc,table.table thead tr td.sorting_asc_disabled,table.table thead tr td.sorting_desc,table.table thead tr td.sorting_desc_disabled,table.table thead tr th.sorting,table.table thead tr th.sorting_asc,table.table thead tr th.sorting_asc_disabled,table.table thead tr th.sorting_desc,table.table thead tr th.sorting_desc_disabled{cursor:pointer;position:relative}table.table thead tr td.sorting:after,table.table thead tr td.sorting_asc:after,table.table thead tr td.sorting_asc_disabled:after,table.table thead tr td.sorting_desc:after,table.table thead tr td.sorting_desc_disabled:after,table.table thead tr th.sorting:after,table.table thead tr th.sorting_asc:after,table.table thead tr th.sorting_asc_disabled:after,table.table thead tr th.sorting_desc:after,table.table thead tr th.sorting_desc_disabled:after{display:inline-block;font-family:Glyphicons Halflings,sans-serif;left:8px;opacity:.5;position:relative;top:2px}table.table thead tr td:active,table.table thead tr th:active{outline:none}table.table thead tr td.sorting:after,table.table thead tr th.sorting:after{content:"\e150";opacity:.2}table.table thead tr td.sorting_asc:after,table.table thead tr th.sorting_asc:after{content:"\e155"}table.table thead tr td.sorting_desc:after,table.table thead tr th.sorting_desc:after{content:"\e156"}table.table thead tr td.sorting_asc_disabled:after,table.table thead tr td.sorting_desc_disabled:after,table.table thead tr th.sorting_asc_disabled:after,table.table thead tr th.sorting_desc_disabled:after{color:#eee}table.table.nowrap td,table.table.nowrap th{white-space:nowrap}table.table tbody tr.child{padding:.5em 1em}table.table tbody tr.child:hover{background:transparent!important}table.table tbody tr.child ul{display:inline-block;list-style-type:none;margin:0;padding:0}table.table tbody tr.child ul li{border-bottom:1px solid #efefef;padding:.5em 0}table.table tbody tr.child ul li:first-child{padding-top:0}table.table tbody tr.child ul li:last-child{border-bottom:none}table.table tbody tr.can-edit{cursor:pointer}table.table .actions{width:70px}table.table .actions a{margin-left:10px}table.table .actions a .delete-icon:hover{color:#da0000!important}table.table .actions a .fa:hover{color:#024c85}table.table-bordered.table{border-collapse:separate!important}table.table-bordered.table td,table.table-bordered.table th{border-left-width:0}table.table-bordered.table td:last-child,table.table-bordered.table th:last-child{border-right-width:0}table.table-bordered.table tbody td,table.table-bordered.table tbody th{border-bottom-width:0}.action-dropdown .action-select{width:250px}.action-dropdown .action-select .Select-control{border-radius:4px 0 0 4px;height:100%}.action-dropdown .action-select .Select-control .Select-input{height:32px}.action-dropdown.small :global .Select-control{height:30px}.action-dropdown.small :global .Select-placeholder{line-height:20px}.action-dropdown.small :global .Select-value{line-height:26px!important}.action-dropdown.small :global .Select-value-label{line-height:26px}.action-dropdown.small :global .Select-input{height:26px}.action-dropdown.normal .btn{height:38px}.pTjbvR2PI3JIAfGGYR5C{border-color:transparent;border-radius:20px;bottom:0;color:#fff;font-size:20px;height:30px;padding:0;position:absolute;right:0;text-align:center;width:30px}.pTjbvR2PI3JIAfGGYR5C.BnU6_vcWc8sasL8roBPA{background-color:#e39900}.pTjbvR2PI3JIAfGGYR5C.yREg1belHCLDAYYfAg77{background-color:#7ed321}.pTjbvR2PI3JIAfGGYR5C.mFp_9X3SzjgPNXRSXiFR{background-color:#396bd0}.pTjbvR2PI3JIAfGGYR5C i{margin-top:4px}.tDZTa8dy9OMVyGAtxNOS .VoBl8JcsRZelj8EKGKtC{display:inline-block;margin-left:10px;margin-right:10px;text-align:center}.bulk-actions-selector-container{min-height:90px}.bulk-actions-selector-container div{padding:1em}.bulk-actions-selector-container div input[type=checkbox]{margin-right:1em}.bulk-actions-selector-container div select{height:30px;width:90%}.XZyB3zy09oNiJPYXzMaR{align-items:center;box-shadow:none!important;display:inline-flex;padding:.375rem .75rem;text-decoration:none}.XZyB3zy09oNiJPYXzMaR i{margin-right:5px}.XZyB3zy09oNiJPYXzMaR.V8lrMEK6XXJUFDwsrtSs{background-color:#fff;border:1px solid #999;border-radius:4px;color:#4a4a4a;font-size:15px;height:39px;line-height:18px;margin-right:8px}.schedule-view-wrapper .schedule-event{-webkit-touch-callout:none;background-color:#b3d6ed;margin:0!important;overflow:hidden;position:absolute;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:10}.schedule-view-wrapper .schedule-event .row{height:100%}.schedule-view-wrapper .schedule-event .row .col-md-12{height:100%;position:relative}.schedule-view-wrapper .schedule-event .event-container{float:left;height:calc(100% - 10px);margin:5px 10px;overflow:hidden;padding:0!important;width:85%}.schedule-view-wrapper .schedule-event .event-actions{display:flex;float:right;margin:0 5px 0 0}.schedule-view-wrapper .schedule-event .event-select-wrapper{float:left;margin:5px 0 0 5px}.schedule-view-wrapper .is-static{background:repeating-linear-gradient(-45deg,#e1e1e1,#e1e1e1 2px,#fff 0,#fff 20px);color:gray;cursor:not-allowed!important}.schedule-view-wrapper .is-resizable{overflow:hidden}.schedule-view-wrapper .is-resizable:after,.schedule-view-wrapper .is-resizable:before{background-color:#fff;border:1px solid #000;border-radius:5px;content:" ";cursor:ns-resize;display:block;height:5px;left:15%;position:absolute;right:15%;visibility:hidden;z-index:11}.schedule-view-wrapper .is-resizable:before{top:0}.schedule-view-wrapper .is-resizable:after{bottom:0}.schedule-view-wrapper .is-resizable:hover:after,.schedule-view-wrapper .is-resizable:hover:before{visibility:visible}.schedule-view-wrapper .schedule-events-container{position:relative}.schedule-view-wrapper .event-content{height:100%;width:100%}.schedule-view-wrapper .event-content-half{height:90%;width:50%}.schedule-view-wrapper .time-slot{background-color:gray;border-left:1px solid #000;color:#fff;font-weight:700}.schedule-view-wrapper .time-slot,.schedule-view-wrapper .time-slot-container{border-bottom:1px solid #000;border-right:1px solid #000;height:30px!important;margin:0;padding:0}.schedule-view-wrapper .time-slot-container{position:relative;width:100%}.schedule-view-wrapper .time-slot-container .col-md-12{margin:0!important;padding:0!important}.schedule-view-wrapper .time-slot-container .col-md-12 .minute-container{border-bottom:1px solid #000}.schedule-view-wrapper .time-slot-overlay{height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%;z-index:100}.schedule-view-wrapper .no-padding{padding:0!important}.schedule-view-wrapper .no-margin{margin:0!important}.schedule-view-wrapper .location-option-venue{font-weight:700}.schedule-view-wrapper .location-option-room{margin-left:15px}.schedule-view-wrapper .swal2-container{z-index:12}.schedule-view-wrapper .day-selector,.schedule-view-wrapper .event-type-selector,.schedule-view-wrapper .venues-selector{padding-bottom:10px;z-index:21}.schedule-view-wrapper .track-selector{z-index:22}.schedule-view-wrapper .outer-schedule-events-container{border-top:1px solid #000;max-height:800px;overflow-x:hidden;overflow-y:auto}.schedule-view-wrapper .empty-list-message{font-weight:700}.schedule-view-wrapper .fa-spinner{z-index:12}.schedule-view-wrapper .Select-menu-outer{z-index:12!important}.schedule-view-wrapper .swal2-container{z-index:23!important}.schedule-view-wrapper .select-event-btn{cursor:pointer;z-index:11}.schedule-view-wrapper .event-action-btn{cursor:pointer;margin-left:10px;padding-top:10px;z-index:11}.schedule-view-wrapper .popover{max-width:60%!important;z-index:14!important}.schedule-view-wrapper .event-title.withTooltip:hover{cursor:pointer}.schedule-view-wrapper .ajax-loader-container{z-index:25!important}.schedule-view-wrapper .bulk-actions-editor-container{background-color:#fff;margin:1em;padding:1em}.schedule-view-wrapper .bulk-actions-editor-container .col-title{font-weight:700;padding:1em}.schedule-view-wrapper .bulk-actions-editor-container .col-form-buttons button{margin-right:10px}.sYyWOBs7DxfIdU_ztAqL{border-left:none;position:relative}.sYyWOBs7DxfIdU_ztAqL:before{border-left:1px dashed #e0e0e0;bottom:0;content:"";height:3em;left:0;margin-top:2em;position:absolute;top:0}.Z35249KJgMpoE1f5td0j{border-left:none;position:relative}.Z35249KJgMpoE1f5td0j:before{border-left:1px dashed #e0e0e0;bottom:0;content:"";height:auto;left:0;margin:20px 0;position:absolute;top:0}.mx3fuojj3xuUbN9ch3eB{border-left:none;position:relative}.mx3fuojj3xuUbN9ch3eB:before{align-self:center;border-left:1px dashed #e0e0e0;bottom:0;content:"";height:60%;left:0;position:absolute;top:0}.UD7OIFgwF1LOfPJP234A{display:flex;justify-content:flex-end;position:absolute;right:24px;top:50%;transform:translateY(-50%)}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}.DlGPMKE5AoCGWcm7YIz8{background-color:#fff;border-bottom:1px solid #b3b3b3;height:64px}.Tgph56OyA6q8xx1m43xR{font-size:16px;height:100%;line-height:60px;text-align:center}
6
6
  /*# sourceMappingURL=index.css.map*/
@@ -1 +1 @@
1
- .UD7OIFgwF1LOfPJP234A{cursor:pointer;height:40px;position:absolute;right:34px;top:12px;width:140px}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}.V05WfzCpIdOS1YlQd1Hq{right:4px;top:4px}.cNjqYzfITmntvsDuBdU8{background-size:cover;border:1px solid #afafaf;border-radius:20px;float:right;height:40px;overflow:hidden;width:40px}
1
+ .UD7OIFgwF1LOfPJP234A{display:flex;justify-content:flex-end;position:absolute;right:24px;top:50%;transform:translateY(-50%)}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}
@@ -1 +1 @@
1
- .UD7OIFgwF1LOfPJP234A{cursor:pointer;height:40px;position:absolute;right:34px;top:12px;width:140px}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}.V05WfzCpIdOS1YlQd1Hq{right:4px;top:4px}.cNjqYzfITmntvsDuBdU8{background-size:cover;border:1px solid #afafaf;border-radius:20px;float:right;height:40px;overflow:hidden;width:40px}.DlGPMKE5AoCGWcm7YIz8{background-color:#fff;border-bottom:1px solid #b3b3b3;height:64px}.Tgph56OyA6q8xx1m43xR{font-size:16px;height:100%;line-height:60px;text-align:center}
1
+ .UD7OIFgwF1LOfPJP234A{display:flex;justify-content:flex-end;position:absolute;right:24px;top:50%;transform:translateY(-50%)}.jWfqKg10xvcVZqMUgbLQ{text-align:right;width:100%}.DlGPMKE5AoCGWcm7YIz8{background-color:#fff;border-bottom:1px solid #b3b3b3;height:64px}.Tgph56OyA6q8xx1m43xR{font-size:16px;height:100%;line-height:60px;text-align:center}
package/lib/i18n.js CHANGED
@@ -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={9558:(e,t,o)=>{o.d(t,{getCurrentUserLanguage:()=>r});o(5812),o(8041);const r=()=>{let e="en";return"undefined"!=typeof navigator&&(e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage),e}},5812:e=>{e.exports=require("moment-timezone")},8041:e=>{e.exports=require("urijs")}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{setAppTexts:()=>_});var a=o(9558);const n=require("i18n-react");var s=o.n(n);const i=require("lodash/merge");var d=o.n(i);const u={en:JSON.parse('{"errors":{"user_not_auth":"Hold on. Your user is not authenticated!.","user_not_authz":"Hold on. Your user is not authorized!.","session_expired":"Hold on. Your session expired!.","server_error":"There was a problem with our server, please contact admin.","maximum_files":"Maximum number of files has been reached"},"general":{"select_summit":"Select a Summit...","add":"Add","clear":"Clear","remove":"Remove","drop_files":"Drop images or click to select files to upload.","search":"Search","save":"Save","done":"Done!","ok":"ok","unarchive":"Unarchive","archive":"Archive","settings":"Settings","drag_and_drop":"Drag and Drop to sort items.","other":"Other","type_something":"Type something and press tab or enter.","are_you_sure":"Are you sure?","yes_delete":"Yes, delete.","remove_warning":"Are you sure you want to delete this?","select_an_option":"Select an option...","all":"All","row_remove_warning":"Are you sure you want to delete row ","edit":"Edit","delete":"Delete","cancel":"Cancel","n_a":"N/A","not_available":"N/A","notes":"Notes","due":"Due","to":"To","from":"From"},"buttons":{"log_in":"Log in","sign_out":"Sign Out","my_cart":"My Cart","upload_file":"Upload file","download":"Download"},"placeholders":{"notes":"Enter your notes here..."},"alerts":{"confirm_delete_title":"Confirm Deletion","confirm_delete":"Are you sure you want to delete this item? This action cannot be undone."},"mui_table":{"no_items":"No items found.","no_data":"No data found.","rows_per_page":"Rows per page","sorted_desc":"sorted descending","sorted_asc":"sorted ascending","total":"Total","pay":"PAY","payment":"Payment","paid_via":"Paid via","ref":"REF","refund":"Refund","payfee":"PAYFEE","dis":"DIS","discount":"Discount","amount_due":"AMOUNT DUE","note":"NOTE"},"meta_fields":{"delete_value_warning":"Please verify you want to delete the added value","is_default":"Is Default?","add_value":"Add a value","placeholders":{"name":"Name","value":"Value"}},"rates":{"early_bird":"Early bird","standard_rate":"Standard","onsite_rate":"Onsite"},"additional_inputs":{"title":"Field Title","type":"Field Type","required":"Required","delete_warning":"Are you sure you want to delete meta field ","minimum":"Minimum","maximum":"Maximum","placeholders":{"title":"Field Title","type":"Select...","minimum_quantity":"Minimum","maximum_quantity":"Maximum"}},"sponsor_edit_form":{"code":"Code","description":"Description","custom_rate":"Custom Rate","early_bird_rate":"Early Bird Rate","standard_rate":"Standard Rate","onsite_rate":"Onsite Rate","qty":"Quantity","total":"Total","notes":"Notes","notes_placeholder":"Enter your notes here...","additional_info":"Additional Info","discount":"Discount","total_on_caps":"TOTAL"},"upload_input":{"upload_file":"Upload file"},"stripe_form":{"processing":"Processing...","button_cta":"PAY {amount}","title":"Select a payment method","payment_confirmation_error":"Payment confirmation failed"},"sponsor_order_grid":{"code":"Code","contents":"Contents","addon":"Add-on","details":"Details","discount":"Discount","amount":"Amount","amount_due":"AMOUNT DUE","total":"Total","rate":"Rate","action":"Action"}}'),zh:JSON.parse('{"errors":{"user_not_auth":"坚持,稍等。您的用户没有经过身份验证!","user_not_authz":"坚持,稍等。您的用户未经授权!","session_expired":"坚持,稍等。你的会话已经过期了!","server_error":"我们的服务器出现问题,请联系管理员。"},"general":{"select_summit":"选择峰会...","add":"加","clear":"明确","remove":"去掉","drop_files":"删除图像或单击以选择要上载的文件。","search":"搜索","save":"保存","done":"完成!","drag_and_drop":"拖放以对项目进行排序。","other":"其他","type_something":"输入内容并按Tab键或输入。","are_you_sure":"你确定吗?","yes_delete":"是的,删除。","remove_warning":"你确定要删除这个吗?"}}'),es:JSON.parse('{"errors":{"user_not_auth":"Hold on. Your user is not authenticated!.","user_not_authz":"Hold on. Your user is not authorized!.","session_expired":"Hold on. Your session expired!.","server_error":"There was a problem with our server, please contact admin."},"general":{"select_summit":"Select a Summit...","add":"Add","clear":"Clear","remove":"Remove","drop_files":"Drop images or click to select files to upload.","search":"Search","save":"Save","done":"Done!","drag_and_drop":"Drag and Drop to sort items.","other":"Other","type_something":"Type something and press tab or enter.","are_you_sure":"Are you sure?","yes_delete":"Yes, delete.","remove_warning":"Are you sure you want to delete this?"}}')};let l=(0,a.getCurrentUserLanguage)();l.length>2&&(l=l.split("-")[0],l=l.split("_")[0]);try{s().setTexts(u[l])}catch(e){s().setTexts(u.en)}const _=(e={})=>{const t=u[l]||u.en;s().setTexts(d()({},t,e))};return r})()));
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={9558:(e,t,o)=>{o.d(t,{getCurrentUserLanguage:()=>r});o(5812),o(8041);const r=()=>{let e="en";return"undefined"!=typeof navigator&&(e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage),e}},5812:e=>{e.exports=require("moment-timezone")},8041:e=>{e.exports=require("urijs")}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{setAppTexts:()=>_});var a=o(9558);const n=require("i18n-react");var s=o.n(n);const i=require("lodash/merge");var d=o.n(i);const u={en:JSON.parse('{"errors":{"user_not_auth":"Hold on. Your user is not authenticated!.","user_not_authz":"Hold on. Your user is not authorized!.","session_expired":"Hold on. Your session expired!.","server_error":"There was a problem with our server, please contact admin.","maximum_files":"Maximum number of files has been reached"},"general":{"select_summit":"Select a Summit...","add":"Add","clear":"Clear","remove":"Remove","drop_files":"Drop images or click to select files to upload.","search":"Search","save":"Save","done":"Done!","ok":"ok","unarchive":"Unarchive","archive":"Archive","settings":"Settings","profile":"Profile","drag_and_drop":"Drag and Drop to sort items.","other":"Other","type_something":"Type something and press tab or enter.","are_you_sure":"Are you sure?","yes_delete":"Yes, delete.","remove_warning":"Are you sure you want to delete this?","select_an_option":"Select an option...","all":"All","row_remove_warning":"Are you sure you want to delete row ","edit":"Edit","delete":"Delete","cancel":"Cancel","n_a":"N/A","not_available":"N/A","notes":"Notes","due":"Due","to":"To","from":"From"},"buttons":{"log_in":"Log in","sign_out":"Sign Out","my_cart":"My Cart","upload_file":"Upload file","download":"Download"},"placeholders":{"notes":"Enter your notes here..."},"alerts":{"confirm_delete_title":"Confirm Deletion","confirm_delete":"Are you sure you want to delete this item? This action cannot be undone."},"mui_table":{"no_items":"No items found.","no_data":"No data found.","rows_per_page":"Rows per page","sorted_desc":"sorted descending","sorted_asc":"sorted ascending","total":"Total","pay":"PAY","payment":"Payment","paid_via":"Paid via","ref":"REF","refund":"Refund","payfee":"PAYFEE","dis":"DIS","discount":"Discount","amount_due":"AMOUNT DUE","note":"NOTE"},"meta_fields":{"delete_value_warning":"Please verify you want to delete the added value","is_default":"Is Default?","add_value":"Add a value","placeholders":{"name":"Name","value":"Value"}},"rates":{"early_bird":"Early bird","standard_rate":"Standard","onsite_rate":"Onsite"},"additional_inputs":{"title":"Field Title","type":"Field Type","required":"Required","delete_warning":"Are you sure you want to delete meta field ","minimum":"Minimum","maximum":"Maximum","placeholders":{"title":"Field Title","type":"Select...","minimum_quantity":"Minimum","maximum_quantity":"Maximum"}},"sponsor_edit_form":{"code":"Code","description":"Description","custom_rate":"Custom Rate","early_bird_rate":"Early Bird Rate","standard_rate":"Standard Rate","onsite_rate":"Onsite Rate","qty":"Quantity","total":"Total","notes":"Notes","notes_placeholder":"Enter your notes here...","additional_info":"Additional Info","discount":"Discount","total_on_caps":"TOTAL"},"upload_input":{"upload_file":"Upload file"},"request_modal":{"no_company_match":"No company matches","create_company_access_request":"Create a new company access request for {companyName}"},"stripe_form":{"processing":"Processing...","button_cta":"PAY {amount}","title":"Select a payment method","payment_confirmation_error":"Payment confirmation failed"},"sponsor_order_grid":{"code":"Code","contents":"Contents","addon":"Add-on","details":"Details","discount":"Discount","amount":"Amount","amount_due":"AMOUNT DUE","total":"Total","rate":"Rate","action":"Action"}}'),zh:JSON.parse('{"errors":{"user_not_auth":"坚持,稍等。您的用户没有经过身份验证!","user_not_authz":"坚持,稍等。您的用户未经授权!","session_expired":"坚持,稍等。你的会话已经过期了!","server_error":"我们的服务器出现问题,请联系管理员。"},"general":{"select_summit":"选择峰会...","add":"加","clear":"明确","remove":"去掉","drop_files":"删除图像或单击以选择要上载的文件。","search":"搜索","save":"保存","done":"完成!","drag_and_drop":"拖放以对项目进行排序。","other":"其他","type_something":"输入内容并按Tab键或输入。","are_you_sure":"你确定吗?","yes_delete":"是的,删除。","remove_warning":"你确定要删除这个吗?"}}'),es:JSON.parse('{"errors":{"user_not_auth":"Hold on. Your user is not authenticated!.","user_not_authz":"Hold on. Your user is not authorized!.","session_expired":"Hold on. Your session expired!.","server_error":"There was a problem with our server, please contact admin."},"general":{"select_summit":"Select a Summit...","add":"Add","clear":"Clear","remove":"Remove","drop_files":"Drop images or click to select files to upload.","search":"Search","save":"Save","done":"Done!","drag_and_drop":"Drag and Drop to sort items.","other":"Other","type_something":"Type something and press tab or enter.","are_you_sure":"Are you sure?","yes_delete":"Yes, delete.","remove_warning":"Are you sure you want to delete this?"}}')};let l=(0,a.getCurrentUserLanguage)();l.length>2&&(l=l.split("-")[0],l=l.split("_")[0]);try{s().setTexts(u[l])}catch(e){s().setTexts(u.en)}const _=(e={})=>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,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAKlC,IACH,oBAAXmC,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAe1B,EAASmC,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAe1B,EAAS,aAAc,CAAEqC,OAAO,GAAO,C,8DCL9D,MAAM,EAA+B3B,QAAQ,c,aCA7C,MAAM,EAA+BA,QAAQ,gB,mBCOvC4B,EAAY,CACd,G,0kGACA,G,wdACA,G,4sBAGJ,IAAIhC,GAAWD,EAAAA,EAAAA,0BAMXC,EAASiC,OAAS,IAClBjC,EAAWA,EAASkC,MAAM,KAAK,GAC/BlC,EAAWA,EAASkC,MAAM,KAAK,IAGnC,IACIC,IAAAA,SAAWH,EAAUhC,GACzB,CAAE,MAAOoC,GACLD,IAAAA,SAAWH,EAAc,GAC7B,CAUO,MAAMK,EAAcA,CAACC,EAAc,CAAC,KACvC,MAAMC,EAAWP,EAAUhC,IAAagC,EAAc,GACtDG,IAAAA,SAAWK,IAAM,CAAC,EAAGD,EAAUD,GAAa,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash/merge\"","webpack://openstack-uicore-foundation/./src/i18n/i18n.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 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const parseLocationHour = (hour) => {\n let parsedHour = hour.toString();\n if(parsedHour.length < 4) parsedHour = `0${parsedHour}`;\n parsedHour = parsedHour.match(/.{2}/g);\n parsedHour = parsedHour.join(':');\n return parsedHour;\n}\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(backUrl != null && fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n\nexport const getEventLocation = (event, summitVenueCount, summitShowLocDate = null, nowUtc = null) => {\n const shouldShowVenues = (summitShowLocDate && nowUtc) ? summitShowLocDate * 1000 < nowUtc : true;\n const locationName = [];\n const { location } = event;\n\n if (!shouldShowVenues) return 'TBA';\n\n if (!location) return 'TBA';\n\n if (summitVenueCount > 1 && location.venue?.name) locationName.push(location.venue.name);\n if (location.floor?.name) locationName.push(location.floor.name);\n if (location.name) locationName.push(location.name);\n\n return locationName.length > 0 ? locationName.join(' - ') : 'TBA';\n};\n\nexport const getEventHosts = (event) => {\n let hosts = [];\n if (event.speakers?.length > 0) {\n hosts = [...event.speakers];\n }\n if (event.moderator) hosts.push(event.moderator);\n\n return hosts;\n};\n\nconst loadImage = async url => {\n const img = document.createElement('img')\n img.src = url\n img.crossOrigin = 'anonymous'\n\n return new Promise((resolve, reject) => {\n img.onload = () => resolve(img)\n img.onerror = reject\n })\n}\n\nexport const convertSVGtoImg = async (svgUrl) => {\n const img = await loadImage(svgUrl)\n const newWidth = 100\n const newHeight = Math.floor(img.naturalHeight * 100 / img.naturalWidth)\n\n const canvas = document.createElement('canvas')\n canvas.width = newWidth\n canvas.height = newHeight\n canvas.getContext('2d').drawImage(img, 0, 0, newWidth, newHeight)\n\n const url = await canvas.toDataURL(`image/png`, 1.0)\n console.log(url, newWidth, newHeight);\n return {url, width: newWidth, height: newHeight}\n}\n\nexport const isRateEnabled = (value) =>\n value !== null && value !== undefined && value !== \"\";\n\n/**\n * Returns true if value is null, undefined, empty/whitespace string,\n * empty array, or empty object.\n */\nexport const empty = (value) => {\n if (value === null || value === undefined) return true;\n if (typeof value === \"string\") return value.trim().length === 0;\n if (Array.isArray(value)) return value.length === 0;\n if (typeof value === \"object\") return Object.keys(value).length === 0;\n return false;\n};\n\nexport const isSentryInitialized = () => typeof window !== \"undefined\" && !!window.SENTRY_DSN;\n","module.exports = require(\"moment-timezone\");","module.exports = require(\"urijs\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"i18n-react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"lodash/merge\");","import {getCurrentUserLanguage} from \"../utils/methods\";\nimport T from \"i18n-react\";\nimport merge from \"lodash/merge\";\nimport en from './en.json';\nimport zh from './zh.json';\nimport es from './es.json';\n\nconst resources = {\n 'en' : en,\n 'zh' : zh,\n 'es' : es,\n}\n\nlet language = getCurrentUserLanguage();\n\n// language would be something like es-ES or es_ES\n// However we store our files with format es.json or en.json\n// therefore retrieve only the first 2 digits\n\nif (language.length > 2) {\n language = language.split(\"-\")[0];\n language = language.split(\"_\")[0];\n}\n\ntry {\n T.setTexts(resources[language]);\n} catch (e) {\n T.setTexts(resources['en']);\n}\n\n/**\n * Call this instead of T.setTexts() in consumer apps.\n * Deep-merges the lib's base translations with your custom translations,\n * so new keys added to the lib are always available even if your\n * translation file doesn't include them yet. Consumer keys take precedence.\n *\n * @param {object} customTexts - your app's translation object\n */\nexport const setAppTexts = (customTexts = {}) => {\n const libTexts = resources[language] || resources['en'];\n T.setTexts(merge({}, libTexts, customTexts));\n};"],"names":["root","factory","exports","module","define","amd","this","getCurrentUserLanguage","language","navigator","languages","userLanguage","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","resources","length","split","T","e","setAppTexts","customTexts","libTexts","merge"],"sourceRoot":""}
1
+ {"version":3,"file":"i18n.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,+FCOF,MAyJMC,EAAyBA,KAClC,IAAIC,EAAW,KAIf,MAHwB,oBAAdC,YACND,EAAYC,UAAUC,WAAaD,UAAUC,UAAU,IAAOD,UAAUD,UAAYC,UAAUE,cAE3FH,CAAQ,C,WC9KnBL,EAAOD,QAAUU,QAAQ,kB,WCAzBT,EAAOD,QAAUU,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAad,QAGrB,IAAIC,EAASU,EAAyBE,GAAY,CAGjDb,QAAS,CAAC,GAOX,OAHAgB,EAAoBH,GAAUZ,EAAQA,EAAOD,QAASY,GAG/CX,EAAOD,OACf,C,MCrBAY,EAAoBK,EAAKhB,IACxB,IAAIiB,EAASjB,GAAUA,EAAOkB,WAC7B,IAAOlB,EAAiB,QACxB,IAAM,EAEP,OADAW,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACpB,EAASsB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAExB,EAASuB,IAC5EE,OAAOC,eAAe1B,EAASuB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAKlC,IACH,oBAAXmC,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAe1B,EAASmC,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAe1B,EAAS,aAAc,CAAEqC,OAAO,GAAO,C,8DCL9D,MAAM,EAA+B3B,QAAQ,c,aCA7C,MAAM,EAA+BA,QAAQ,gB,mBCOvC4B,EAAY,CACd,G,gvGACA,G,wdACA,G,4sBAGJ,IAAIhC,GAAWD,EAAAA,EAAAA,0BAMXC,EAASiC,OAAS,IAClBjC,EAAWA,EAASkC,MAAM,KAAK,GAC/BlC,EAAWA,EAASkC,MAAM,KAAK,IAGnC,IACIC,IAAAA,SAAWH,EAAUhC,GACzB,CAAE,MAAOoC,GACLD,IAAAA,SAAWH,EAAc,GAC7B,CAUO,MAAMK,EAAcA,CAACC,EAAc,CAAC,KACvC,MAAMC,EAAWP,EAAUhC,IAAagC,EAAc,GACtDG,IAAAA,SAAWK,IAAM,CAAC,EAAGD,EAAUD,GAAa,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/methods.js","webpack://openstack-uicore-foundation/external commonjs \"moment-timezone\"","webpack://openstack-uicore-foundation/external commonjs \"urijs\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"lodash/merge\"","webpack://openstack-uicore-foundation/./src/i18n/i18n.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 2018 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n **/\n\nimport moment from 'moment-timezone';\nimport URI from \"urijs\";\n\nexport const findElementPos = (obj) => {\n var curtop = -70;\n if (obj.offsetParent) {\n do {\n curtop += obj.offsetTop;\n } while (obj = obj.offsetParent);\n return [curtop];\n }\n};\n\nexport const epochToMoment = (atime) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime);\n};\n\nexport const epochToMomentTimeZone = (atime, time_zone) => {\n if(!atime) return atime;\n atime = atime * 1000;\n return moment(atime).tz(time_zone);\n};\n\nexport const formatEpoch = (atime, format = 'M/D/YYYY h:mm a') => {\n if(!atime) return atime;\n return epochToMoment(atime).format(format);\n};\n\nexport const parseLocationHour = (hour) => {\n let parsedHour = hour.toString();\n if(parsedHour.length < 4) parsedHour = `0${parsedHour}`;\n parsedHour = parsedHour.match(/.{2}/g);\n parsedHour = parsedHour.join(':');\n return parsedHour;\n}\n\nexport const objectToQueryString = (obj) => {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n\n return str;\n};\n\nexport const getBackURL = () => {\n let url = URI(window.location.href);\n let query = url.search(true);\n let fragment = url.fragment();\n let backUrl = query.hasOwnProperty('BackUrl') ? query['BackUrl'] : null;\n if(backUrl != null && fragment != null && fragment != ''){\n backUrl += `#${fragment}`;\n }\n return backUrl;\n};\n\nexport const toSlug = (text) =>{\n text = text.toLowerCase();\n return text.replace(/[^a-zA-Z0-9]+/g,'_');\n}\n\nexport const getAuthCallback = () => {\n if(typeof window !== 'undefined') {\n return `${window.location.origin}/auth/callback`;\n }\n return null;\n};\n\nexport const getCurrentLocation = () => {\n let location = '';\n if(typeof window !== 'undefined') {\n location = window.location;\n // check if we are on iframe\n if (window.top)\n location = window.top.location;\n }\n return location;\n};\n\nexport const getOrigin = () => {\n if(typeof window !== 'undefined') {\n return window.location.origin;\n }\n return null;\n};\n\nexport const getCurrentPathName = () => {\n if(typeof window !== 'undefined') {\n return window.location.pathname;\n }\n return null;\n};\n\nexport const getCurrentHref = () => {\n if(typeof window !== 'undefined') {\n return window.location.href;\n }\n return null;\n};\n\nexport const getAllowedUserGroups = () => {\n if(typeof window !== 'undefined') {\n return window.ALLOWED_USER_GROUPS || '';\n }\n return null;\n};\n\nexport const buildAPIBaseUrl = (relativeUrl) => {\n if(typeof window !== 'undefined'){\n return `${window.API_BASE_URL}${relativeUrl}`;\n }\n return null``;\n};\n\nexport const putOnLocalStorage = (key, value) => {\n if(typeof window !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\nexport const getFromLocalStorage = (key, removeIt) => {\n if(typeof window !== 'undefined') {\n let val = window.localStorage.getItem(key);\n if(removeIt){\n console.log(`getFromLocalStorage removing key ${key}`);\n removeFromLocalStorage(key);\n }\n return val;\n }\n return null;\n};\n\nexport const removeFromLocalStorage = (key) => {\n if(typeof window !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n}\n\nexport const isClearingSessionState = () => {\n if(typeof window !== 'undefined') {\n return window.clearing_session_state;\n }\n return false;\n};\n\nexport const setSessionClearingState = (val) => {\n if(typeof window !== 'undefined') {\n window.clearing_session_state = val;\n }\n};\n\nexport const getCurrentUserLanguage = () => {\n let language = 'en';\n if(typeof navigator !== 'undefined') {\n language = (navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage;\n }\n return language;\n};\n\nexport const scrollToError = (errors) => {\n if(Object.keys(errors).length > 0) {\n const firstError = Object.keys(errors)[0];\n const firstNode = document.getElementById(firstError);\n if (firstNode) window.scrollTo(0, findElementPos(firstNode));\n }\n};\n\nexport const hasErrors = (field, errors) => {\n if(field in errors) {\n return errors[field];\n }\n return '';\n};\n\nexport const shallowEqual = (object1, object2) => {\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (let key of keys1) {\n if (object1[key] !== object2[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const arraysEqual = (a1, a2) =>\n a1.length === a2.length && a1.every((o, idx) => shallowEqual(o, a2[idx]));\n\nexport const isEmpty = (obj) => {\n return Object.keys(obj).length === 0;\n};\n\n\nexport const base64URLEncode = (str) => {\n return str\n .toString('base64')\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '')\n}\n\nexport const retryPromise = async (\n cb,\n maxNumberOfRetries = 3\n) => {\n for (let i = 0; i < maxNumberOfRetries; i++) {\n if (await cb()) {\n return true;\n }\n }\n\n return false;\n}\n\nexport const getTimeServiceUrl = () => {\n if(typeof window !== 'undefined') {\n return window.TIMEINTERVALSINCE1970_API_URL || process.env.TIMEINTERVALSINCE1970_API_URL;\n }\n return null;\n};\n\nexport const getEventLocation = (event, summitVenueCount, summitShowLocDate = null, nowUtc = null) => {\n const shouldShowVenues = (summitShowLocDate && nowUtc) ? summitShowLocDate * 1000 < nowUtc : true;\n const locationName = [];\n const { location } = event;\n\n if (!shouldShowVenues) return 'TBA';\n\n if (!location) return 'TBA';\n\n if (summitVenueCount > 1 && location.venue?.name) locationName.push(location.venue.name);\n if (location.floor?.name) locationName.push(location.floor.name);\n if (location.name) locationName.push(location.name);\n\n return locationName.length > 0 ? locationName.join(' - ') : 'TBA';\n};\n\nexport const getEventHosts = (event) => {\n let hosts = [];\n if (event.speakers?.length > 0) {\n hosts = [...event.speakers];\n }\n if (event.moderator) hosts.push(event.moderator);\n\n return hosts;\n};\n\nconst loadImage = async url => {\n const img = document.createElement('img')\n img.src = url\n img.crossOrigin = 'anonymous'\n\n return new Promise((resolve, reject) => {\n img.onload = () => resolve(img)\n img.onerror = reject\n })\n}\n\nexport const convertSVGtoImg = async (svgUrl) => {\n const img = await loadImage(svgUrl)\n const newWidth = 100\n const newHeight = Math.floor(img.naturalHeight * 100 / img.naturalWidth)\n\n const canvas = document.createElement('canvas')\n canvas.width = newWidth\n canvas.height = newHeight\n canvas.getContext('2d').drawImage(img, 0, 0, newWidth, newHeight)\n\n const url = await canvas.toDataURL(`image/png`, 1.0)\n console.log(url, newWidth, newHeight);\n return {url, width: newWidth, height: newHeight}\n}\n\nexport const isRateEnabled = (value) =>\n value !== null && value !== undefined && value !== \"\";\n\n/**\n * Returns true if value is null, undefined, empty/whitespace string,\n * empty array, or empty object.\n */\nexport const empty = (value) => {\n if (value === null || value === undefined) return true;\n if (typeof value === \"string\") return value.trim().length === 0;\n if (Array.isArray(value)) return value.length === 0;\n if (typeof value === \"object\") return Object.keys(value).length === 0;\n return false;\n};\n\nexport const isSentryInitialized = () => typeof window !== \"undefined\" && !!window.SENTRY_DSN;\n","module.exports = require(\"moment-timezone\");","module.exports = require(\"urijs\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"i18n-react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"lodash/merge\");","import {getCurrentUserLanguage} from \"../utils/methods\";\nimport T from \"i18n-react\";\nimport merge from \"lodash/merge\";\nimport en from './en.json';\nimport zh from './zh.json';\nimport es from './es.json';\n\nconst resources = {\n 'en' : en,\n 'zh' : zh,\n 'es' : es,\n}\n\nlet language = getCurrentUserLanguage();\n\n// language would be something like es-ES or es_ES\n// However we store our files with format es.json or en.json\n// therefore retrieve only the first 2 digits\n\nif (language.length > 2) {\n language = language.split(\"-\")[0];\n language = language.split(\"_\")[0];\n}\n\ntry {\n T.setTexts(resources[language]);\n} catch (e) {\n T.setTexts(resources['en']);\n}\n\n/**\n * Call this instead of T.setTexts() in consumer apps.\n * Deep-merges the lib's base translations with your custom translations,\n * so new keys added to the lib are always available even if your\n * translation file doesn't include them yet. Consumer keys take precedence.\n *\n * @param {object} customTexts - your app's translation object\n */\nexport const setAppTexts = (customTexts = {}) => {\n const libTexts = resources[language] || resources['en'];\n T.setTexts(merge({}, libTexts, customTexts));\n};"],"names":["root","factory","exports","module","define","amd","this","getCurrentUserLanguage","language","navigator","languages","userLanguage","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","resources","length","split","T","e","setAppTexts","customTexts","libTexts","merge"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openstack-uicore-foundation",
3
- "version": "5.0.20-beta.4",
3
+ "version": "5.0.20",
4
4
  "description": "ui reactjs components for openstack marketing site",
5
5
  "main": "lib/openstack-uicore-foundation.js",
6
6
  "scripts": {
@@ -1,13 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(sed -i 's|from \"\"openstack-uicore-foundation/lib/components\"\"|from \"\"../../inputs/upload-input-v2\"\"|' /home/santi/dev/openstack-uicore-foundation/src/components/mui/formik-inputs/mui-formik-upload.js)",
5
- "Bash(sed -i 's|from \"\"openstack-uicore-foundation/lib/utils/money\"\"|from \"\"../../../utils/money\"\"|' /home/santi/dev/openstack-uicore-foundation/src/components/mui/FormItemTable/index.js)",
6
- "Bash(sed -i 's|from \"\"openstack-uicore-foundation/lib/utils/methods\"\"|from \"\"../../../utils/methods\"\"|' /home/santi/dev/openstack-uicore-foundation/src/components/mui/FormItemTable/helpers.js)",
7
- "Bash(python3 -c \"import json,sys; p=json.load\\(sys.stdin\\); print\\(''''scripts:'''', json.dumps\\(p.get\\(''''scripts'''',{}\\), indent=2\\)\\); print\\(''''jest:'''', json.dumps\\(p.get\\(''''jest'''',{}\\), indent=2\\)\\)\")",
8
- "Bash(npx jest:*)",
9
- "Bash(yarn test:*)",
10
- "Bash(npm test *)"
11
- ]
12
- }
13
- }