openstack-uicore-foundation 5.0.17 → 5.0.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/auth-button.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,a,WCAzBJ,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,gGCJ9D,QAA2B,uBAA3B,EAA0D,uBAA1D,EAA0F,uBAA1F,EAA8H,uBCgE9H,EA/CmBC,EAAGC,eAAcC,UAASC,aAAYC,cACvD,MAAOC,EAAYC,IAAiBC,EAAAA,EAAAA,WAAS,GAEvCC,EAAeA,KACnBF,GAAeD,EAAW,EAG5B,OAAIJ,EAEAQ,IAAAA,cAAA,OAAKC,UAAWC,EAAiBC,QAASJ,GACxCC,IAAAA,cAAA,OACEC,UAAWC,EACXE,MAAO,CAAEC,gBAAiB,OAAOV,QAElCC,GACCI,IAAAA,cAACM,EAAAA,OAAM,CACLL,UAAWC,EACXK,QAAQ,YACRC,KAAK,QACLC,MAAM,YACNN,QAASA,KACPT,GAAY,GAGbgB,IAAAA,UAAY,sBAOnBV,IAAAA,cAACW,EAAAA,IAAG,CAACV,UAAWC,GACdF,IAAAA,cAACM,EAAAA,OAAM,CACLC,QAAQ,YACRC,KAAK,QACLC,MAAM,YACNN,QAASA,KACPV,GAAS,GAGViB,IAAAA,UAAY,mBAEX,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/AuthButton/styles.module.scss","webpack://openstack-uicore-foundation/./src/components/mui/AuthButton/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@mui/material\");","module.exports = require(\"i18n-react\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport default {\"userMenu\":\"UD7OIFgwF1LOfPJP234A\",\"login\":\"jWfqKg10xvcVZqMUgbLQ\",\"logout\":\"V05WfzCpIdOS1YlQd1Hq\",\"profilePic\":\"cNjqYzfITmntvsDuBdU8\"};","/**\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 } from \"react\";\nimport T from \"i18n-react\";\nimport {Button, Box} from '@mui/material';\nimport styles from \"./styles.module.scss\"\n\nconst AuthButton = ({ isLoggedUser, doLogin, initLogOut, picture }) => {\n const [showLogOut, setShowLogOut] = useState(false);\n\n const toggleLogOut = () => {\n setShowLogOut(!showLogOut);\n };\n\n if (isLoggedUser) {\n return (\n <div className={styles.userMenu} onClick={toggleLogOut}>\n <div\n className={styles.profilePic}\n style={{ backgroundImage: `url(${picture})` }}\n />\n {showLogOut && (\n <Button\n className={styles.logout}\n variant=\"contained\"\n size=\"small\"\n color=\"secondary\"\n onClick={() => {\n initLogOut();\n }}\n >\n {T.translate(\"buttons.sign_out\")}\n </Button>\n )}\n </div>\n );\n }\n return (\n <Box className={styles.login}>\n <Button\n variant=\"contained\"\n size=\"small\"\n color=\"secondary\"\n onClick={() => {\n doLogin();\n }}\n >\n {T.translate(\"buttons.log_in\")}\n </Button>\n </Box>\n );\n\n};\n\nexport default AuthButton;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","AuthButton","isLoggedUser","doLogin","initLogOut","picture","showLogOut","setShowLogOut","useState","toggleLogOut","React","className","styles","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/BU,IAAAA,cAAC4C,IAAY,CACXnC,QAASoC,IAAAA,UAAY,oBACrBC,uBAAwB,CACtBvC,GAAI,CACFjB,SAAUH,EACVqB,MAAO5B,EAAMe,QAAQC,KAAKa,aAKlCT,IAAAA,cAACwC,IAAQ,CAACnC,QAASN,EAAWQ,GAAI,CAAC2B,GAAI,IAAKC,GAAI,EAAGM,IAAK,MACtDzC,IAAAA,cAAC0C,IAAY,CAACnC,GAAI,CAACqB,SAAU,GAAIpB,MAAOf,IACtCO,IAAAA,cAAC+C,IAAU,CAACxC,GAAI,CAACjB,SAAU,OAE7BU,IAAAA,cAAC4C,IAAY,CACXnC,QAASoC,IAAAA,UAAY,mBACrBC,uBAAwB,CACtBvC,GAAI,CACFjB,SAAUH,EACVqB,MAAO5B,EAAMe,QAAQC,KAAKa,aAKlCT,IAAAA,cAACuC,IAAO,MACRvC,IAAAA,cAACwC,IAAQ,CACPnC,QAASA,KACPN,IACA5B,GAAY,EAEdoC,GAAI,CAAC2B,GAAI,IAAKC,GAAI,EAAGM,IAAK,MAE1BzC,IAAAA,cAAC0C,IAAY,CAACnC,GAAI,CAACqB,SAAU,GAAIpB,MAAOf,IACtCO,IAAAA,cAACgD,IAAU,CAACzC,GAAI,CAACjB,SAAU,OAE7BU,IAAAA,cAAC4C,IAAY,CACXnC,QAASoC,IAAAA,UAAY,oBACrBC,uBAAwB,CACtBvC,GAAI,CACFjB,SAAUH,EACVqB,MAAO5B,EAAMe,QAAQC,KAAKa,eAWxCT,IAAAA,cAACC,IAAG,CAACC,UAAWC,GACdH,IAAAA,cAACiD,IAAM,CACLZ,QAAQ,YACR/B,KAAK,QACLE,MAAM,YACNH,QAASA,KACPnC,GAAS,GAGV2E,IAAAA,UAAY,mBAEX,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Settings\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Divider\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/IconButton\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Typography\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/styles\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/ListItemIcon\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/ListItemText\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Menu\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/MenuItem\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/AccountCircle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Logout\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Person\"","webpack://openstack-uicore-foundation/./src/components/mui/AuthButton/styles.module.scss","webpack://openstack-uicore-foundation/./src/components/mui/AuthButton/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@mui/icons-material/Settings\");","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/material/Divider\");","module.exports = require(\"@mui/material/IconButton\");","module.exports = require(\"@mui/material/Typography\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/styles\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/ListItemIcon\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/ListItemText\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Menu\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/MenuItem\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/AccountCircle\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Logout\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Person\");","// extracted by mini-css-extract-plugin\nexport default {\"userMenu\":\"UD7OIFgwF1LOfPJP234A\",\"login\":\"jWfqKg10xvcVZqMUgbLQ\"};","/**\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, {useRef, useState} from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport {useTheme} from \"@mui/material/styles\";\nimport Box from \"@mui/material/Box\";\nimport Button from \"@mui/material/Button\";\nimport Divider from \"@mui/material/Divider\";\nimport IconButton from \"@mui/material/IconButton\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Menu from \"@mui/material/Menu\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Typography from \"@mui/material/Typography\";\nimport AccountCircleIcon from \"@mui/icons-material/AccountCircle\";\nimport LogoutIcon from \"@mui/icons-material/Logout\";\nimport PersonIcon from \"@mui/icons-material/Person\";\nimport SettingsIcon from \"@mui/icons-material/Settings\";\nimport styles from \"./styles.module.scss\";\n\nconst AuthButton = ({\n isLoggedUser,\n doLogin,\n initLogOut,\n profileEmail,\n profileName\n }) => {\n const theme = useTheme();\n const anchorRef = useRef(null);\n const [menuOpen, setMenuOpen] = useState(false);\n\n const menuFontSize = theme?.custom?.menu?.fontSize || \"1.4rem\";\n const menuLineHeight = theme?.custom?.menu?.lineHeight || \"2rem\";\n const menuIconColor = theme?.custom?.menu?.icon || theme.palette.text.secondary;\n\n const openMenu = () => {\n setMenuOpen(true);\n };\n\n const closeMenu = () => {\n setMenuOpen(false);\n };\n\n if (isLoggedUser) {\n return (\n <Box className={styles.userMenu}>\n <IconButton\n aria-controls={menuOpen ? \"user-menu\" : undefined}\n aria-expanded={menuOpen ? \"true\" : undefined}\n aria-haspopup=\"true\"\n onClick={openMenu}\n size=\"medium\"\n data-testid=\"user-menu-button\"\n sx={{\n color: theme.palette.text.primary,\n p: 0,\n width: 28,\n height: 28\n }}\n ref={anchorRef}\n >\n <AccountCircleIcon sx={{fontSize: 28}}/>\n </IconButton>\n <Menu\n id=\"user-menu\"\n anchorEl={anchorRef.current}\n open={menuOpen}\n onClose={closeMenu}\n anchorOrigin={{\n vertical: \"bottom\",\n horizontal: \"right\"\n }}\n transformOrigin={{\n vertical: \"top\",\n horizontal: \"right\"\n }}\n slotProps={{\n paper: {\n sx: {\n mt: 1.5,\n minWidth: 260,\n borderRadius: 2,\n overflow: \"hidden\",\n boxShadow: \"0 16px 40px rgba(0, 0, 0, 0.18)\"\n }\n },\n list: {\n disablePadding: true,\n sx: {py: 0}\n }\n }}\n >\n <Box sx={{px: 3, py: 2.5}}>\n <Typography\n variant=\"body1\"\n sx={{\n fontSize: menuFontSize,\n lineHeight: menuLineHeight,\n color: theme.palette.text.primary,\n mb: 0.5\n }}\n >\n {profileName || \"User\"}\n </Typography>\n <Typography\n variant=\"body2\"\n sx={{\n fontSize: menuFontSize,\n lineHeight: menuLineHeight,\n color: theme.palette.text.secondary\n }}\n >\n {profileEmail || \"\"}\n </Typography>\n </Box>\n <Divider/>\n <MenuItem onClick={closeMenu} sx={{py: 1.5, px: 3, gap: 1.5}}>\n <ListItemIcon sx={{minWidth: 32, color: menuIconColor}}>\n <SettingsIcon sx={{fontSize: 24}}/>\n </ListItemIcon>\n <ListItemText\n primary={T.translate(\"general.settings\")}\n primaryTypographyProps={{\n sx: {\n fontSize: menuFontSize,\n color: theme.palette.text.primary\n }\n }}\n />\n </MenuItem>\n <MenuItem onClick={closeMenu} sx={{py: 1.5, px: 3, gap: 1.5}}>\n <ListItemIcon sx={{minWidth: 32, color: menuIconColor}}>\n <PersonIcon sx={{fontSize: 24}}/>\n </ListItemIcon>\n <ListItemText\n primary={T.translate(\"general.profile\")}\n primaryTypographyProps={{\n sx: {\n fontSize: menuFontSize,\n color: theme.palette.text.primary\n }\n }}\n />\n </MenuItem>\n <Divider/>\n <MenuItem\n onClick={() => {\n closeMenu();\n initLogOut();\n }}\n sx={{py: 1.5, px: 3, gap: 1.5}}\n >\n <ListItemIcon sx={{minWidth: 32, color: menuIconColor}}>\n <LogoutIcon sx={{fontSize: 24}}/>\n </ListItemIcon>\n <ListItemText\n primary={T.translate(\"buttons.sign_out\")}\n primaryTypographyProps={{\n sx: {\n fontSize: menuFontSize,\n color: theme.palette.text.primary\n }\n }}\n />\n </MenuItem>\n </Menu>\n </Box>\n );\n }\n\n return (\n <Box className={styles.login}>\n <Button\n variant=\"contained\"\n size=\"small\"\n color=\"secondary\"\n onClick={() => {\n doLogin();\n }}\n >\n {T.translate(\"buttons.log_in\")}\n </Button>\n </Box>\n );\n};\n\nexport default AuthButton;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","AuthButton","isLoggedUser","doLogin","initLogOut","profileEmail","profileName","_theme$custom","_theme$custom$menu","_theme$custom2","_theme$custom2$menu","_theme$custom3","_theme$custom3$menu","theme","useTheme","anchorRef","useRef","menuOpen","setMenuOpen","useState","menuFontSize","custom","menu","fontSize","menuLineHeight","lineHeight","menuIconColor","icon","palette","text","secondary","openMenu","closeMenu","React","Box","className","styles","IconButton","onClick","size","sx","color","primary","p","width","height","ref","AccountCircleIcon","Menu","id","anchorEl","current","open","onClose","anchorOrigin","vertical","horizontal","transformOrigin","slotProps","paper","mt","minWidth","borderRadius","overflow","boxShadow","list","disablePadding","py","px","Typography","variant","mb","Divider","MenuItem","gap","ListItemIcon","SettingsIcon","ListItemText","T","primaryTypographyProps","PersonIcon","LogoutIcon","Button"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={6272:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(8619),o=r(2015),a=r.n(o);const i=({children:e})=>a().createElement(n.Typography,{variant:"subtitle2",component:"div",sx:{minWidth:120,alignSelf:"self-start"}},e)},8395:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(8619),o=r(2015),a=r.n(o);const i=({children:e})=>a().createElement(n.Typography,{variant:"body2",component:"div",sx:{textAlign:"left",minWidth:120,alignSelf:"self-start"}},e)},8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>p});var o=r(2015),a=r.n(o),i=r(8619),l=r(8395),c=r(6272);const p=({title:e,rows:t=[],columns:r=[]})=>a().createElement(i.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(i.CardContent,null,a().createElement(i.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(i.List,{sx:{marginTop:"20px"}},a().createElement(i.ListItem,{sx:{display:"flex",height:50}},r.map(((e,t)=>a().createElement(c.A,{key:`col-${e.key}-${t}`},e.label)))),a().createElement(i.Divider,{component:"li",role:"presentation"}),t.map(((e,n)=>a().createElement(a().Fragment,{key:`row-${n}`},a().createElement(i.ListItem,{sx:{display:"flex",minHeight:60}},r.map(((t,r)=>a().createElement(l.A,{key:`col-val-${t.key}-${r}`},e[t.key])))),n<t.length-1&&a().createElement(i.Divider,{component:"li",role:"presentation"})))))));return n})()));
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={6272:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(8619),o=r(2015),a=r.n(o);const i=({children:e})=>a().createElement(n.Typography,{variant:"subtitle2",component:"div",sx:{minWidth:120,alignSelf:"self-start"}},e)},8395:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(8619),o=r(2015),a=r.n(o);const i=({children:e})=>a().createElement(n.Typography,{variant:"body2",component:"div",sx:{textAlign:"left",minWidth:120,alignSelf:"self-start"}},e)},8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>c});var o=r(2015),a=r.n(o),i=r(8619),l=r(8395),p=r(6272);const c=({title:e,rows:t=[],columns:r=[]})=>a().createElement(i.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(i.CardContent,null,a().createElement(i.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(i.List,{sx:{marginTop:"20px"}},a().createElement(i.ListItem,{sx:{display:"flex",height:50,gap:2}},r.map(((e,t)=>a().createElement(p.A,{key:`col-${e.key}-${t}`},e.label)))),a().createElement(i.Divider,{component:"li",role:"presentation"}),t.map(((e,n)=>a().createElement(a().Fragment,{key:`row-${n}`},a().createElement(i.ListItem,{sx:{display:"flex",minHeight:60,gap:2}},r.map(((t,r)=>a().createElement(l.A,{key:`col-val-${t.key}-${r}`},e[t.key])))),n<t.length-1&&a().createElement(i.Divider,{component:"li",role:"presentation"})))))));return n})()));
2
2
  //# sourceMappingURL=table-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/cards/table-card.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,2FCNT,MAUA,EAVgBC,EAAGC,cACjBC,IAAAA,cAACC,EAAAA,WAAU,CACTC,QAAQ,YACRC,UAAU,MACVC,GAAI,CAAEC,SAAU,IAAKC,UAAW,eAE/BP,E,mECNL,MAUA,EAVcQ,EAAGR,cACfC,IAAAA,cAACC,EAAAA,WAAU,CACTC,QAAQ,QACRC,UAAU,MACVC,GAAI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AU,CAAC4C,cAAY,EAAC3C,QAAQ,MAC9BoC,GAEHtC,IAAAA,cAAC8C,EAAAA,KAAI,CAAC1C,GAAI,CAAE2C,UAAW,SACrB/C,IAAAA,cAACgD,EAAAA,SAAQ,CAAC5C,GAAI,CAAE6C,QAAS,OAAQN,OAAQ,KACtCH,EAAQU,KAAI,CAACC,EAAKC,IAEjBpD,IAAAA,cAACF,EAAAA,EAAO,CAACwB,IAAK,OAAO6B,EAAI7B,OAAO8B,KAAMD,EAAIE,UAG9CrD,IAAAA,cAACsD,EAAAA,QAAO,CAACnD,UAAU,KAAKoD,KAAK,iBAC5BhB,EAAKW,KAAI,CAACM,EAAKJ,IAEdpD,IAAAA,cAACA,IAAAA,SAAc,CAACsB,IAAK,OAAO8B,KAC1BpD,IAAAA,cAACgD,EAAAA,SAAQ,CAAC5C,GAAI,CAAE6C,QAAS,OAAQQ,UAAW,KACzCjB,EAAQU,KAAI,CAACC,EAAKO,IAEjB1D,IAAAA,cAACO,EAAAA,EAAK,CAACe,IAAK,WAAW6B,EAAI7B,OAAOoC,KAAMF,EAAIL,EAAI7B,SAGnD8B,EAAIb,EAAKoB,OAAS,GACjB3D,IAAAA,cAACsD,EAAAA,QAAO,CAACnD,UAAU,KAAKoD,KAAK,uB","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Heading.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Value.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/cards/TableCard/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Heading = ({ children }) => (\n <Typography\n variant=\"subtitle2\"\n component=\"div\"\n sx={{ minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Heading;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Value = ({ children }) => (\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ textAlign: \"left\", minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Value;\n","module.exports = require(\"@mui/material\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 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 {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Value from \"../components/Value\";\nimport Heading from \"../components/Heading\";\n\nconst TableCard = ({ title, rows = [], columns = [] }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n <ListItem sx={{ display: \"flex\", height: 50 }}>\n {columns.map((col, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <Heading key={`col-${col.key}-${i}`}>{col.label}</Heading>\n ))}\n </ListItem>\n <Divider component=\"li\" role=\"presentation\" />\n {rows.map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${i}`}>\n <ListItem sx={{ display: \"flex\", minHeight: 60 }}>\n {columns.map((col, j) => (\n // eslint-disable-next-line react/no-array-index-key\n <Value key={`col-val-${col.key}-${j}`}>{row[col.key]}</Value>\n ))}\n </ListItem>\n {i < rows.length - 1 && (\n <Divider component=\"li\" role=\"presentation\" />\n )}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default TableCard;\n"],"names":["root","factory","exports","module","define","amd","this","Heading","children","React","Typography","variant","component","sx","minWidth","alignSelf","Value","textAlign","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","TableCard","title","rows","columns","Card","borderRadius","height","CardContent","gutterBottom","List","marginTop","ListItem","display","map","col","i","label","Divider","role","row","minHeight","j","length"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/cards/table-card.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,2FCNT,MAUA,EAVgBC,EAAGC,cACjBC,IAAAA,cAACC,EAAAA,WAAU,CACTC,QAAQ,YACRC,UAAU,MACVC,GAAI,CAAEC,SAAU,IAAKC,UAAW,eAE/BP,E,mECNL,MAUA,EAVcQ,EAAGR,cACfC,IAAAA,cAACC,EAAAA,WAAU,CACTC,QAAQ,QACRC,UAAU,MACVC,GAAI,CAAEI,UAAW,OAAQH,SAAU,IAAKC,UAAW,eAElDP,E,WCTLL,EAAOD,QAAUgB,QAAQ,gB,WCAzBf,EAAOD,QAAUgB,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAapB,QAGrB,IAAIC,EAASgB,EAAyBE,GAAY,CAGjDnB,QAAS,CAAC,GAOX,OAHAsB,EAAoBH,GAAUlB,E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,UAG9CtD,IAAAA,cAACuD,EAAAA,QAAO,CAACpD,UAAU,KAAKqD,KAAK,iBAC5BjB,EAAKY,KAAI,CAACM,EAAKJ,IAEdrD,IAAAA,cAACA,IAAAA,SAAc,CAACsB,IAAK,OAAO+B,KAC1BrD,IAAAA,cAACgD,EAAAA,SAAQ,CAAC5C,GAAI,CAAE6C,QAAS,OAAQS,UAAW,GAAIR,IAAK,IAClDV,EAAQW,KAAI,CAACC,EAAKO,IAEjB3D,IAAAA,cAACO,EAAAA,EAAK,CAACe,IAAK,WAAW8B,EAAI9B,OAAOqC,KAAMF,EAAIL,EAAI9B,SAGnD+B,EAAId,EAAKqB,OAAS,GACjB5D,IAAAA,cAACuD,EAAAA,QAAO,CAACpD,UAAU,KAAKqD,KAAK,uB","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Heading.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Value.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/cards/TableCard/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Heading = ({ children }) => (\n <Typography\n variant=\"subtitle2\"\n component=\"div\"\n sx={{ minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Heading;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Value = ({ children }) => (\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ textAlign: \"left\", minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Value;\n","module.exports = require(\"@mui/material\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 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 {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Value from \"../components/Value\";\nimport Heading from \"../components/Heading\";\n\nconst TableCard = ({ title, rows = [], columns = [] }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n <ListItem sx={{ display: \"flex\", height: 50, gap: 2 }}>\n {columns.map((col, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <Heading key={`col-${col.key}-${i}`}>{col.label}</Heading>\n ))}\n </ListItem>\n <Divider component=\"li\" role=\"presentation\" />\n {rows.map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${i}`}>\n <ListItem sx={{ display: \"flex\", minHeight: 60, gap: 2 }}>\n {columns.map((col, j) => (\n // eslint-disable-next-line react/no-array-index-key\n <Value key={`col-val-${col.key}-${j}`}>{row[col.key]}</Value>\n ))}\n </ListItem>\n {i < rows.length - 1 && (\n <Divider component=\"li\" role=\"presentation\" />\n )}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default TableCard;\n"],"names":["root","factory","exports","module","define","amd","this","Heading","children","React","Typography","variant","component","sx","minWidth","alignSelf","Value","textAlign","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","TableCard","title","rows","columns","Card","borderRadius","height","CardContent","gutterBottom","List","marginTop","ListItem","display","gap","map","col","i","label","Divider","role","row","minHeight","j","length"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={1269:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(6272),i=r(8395);const d=({title:e,rows:t})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{display:"flex",marginTop:"20px"}},(t??[]).map(((e,r)=>a().createElement(a().Fragment,{key:`row-${e.label}-${r}`},a().createElement(l.ListItem,{sx:{display:"flex",flexDirection:"column",height:50}},a().createElement(o.A,null,e.label),a().createElement(i.A,null,e.value)),r<t.length-1&&a().createElement(l.Divider,{orientation:"vertical",flexItem:!0})))))))},1104:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(6272),i=r(8395);const d=({title:e,rows:t})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{marginTop:"20px"}},(t??[]).map(((e,r)=>a().createElement(l.ListItem,{key:e.id??e.label,divider:r<(t??[]).length-1,sx:{display:"flex",height:50}},a().createElement(o.A,null,e.label),a().createElement(i.A,null,e.value)))))))},7656:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(8395),i=r(6272);const d=({title:e,rows:t=[],columns:r=[]})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{marginTop:"20px"}},a().createElement(l.ListItem,{sx:{display:"flex",height:50}},r.map(((e,t)=>a().createElement(i.A,{key:`col-${e.key}-${t}`},e.label)))),a().createElement(l.Divider,{component:"li",role:"presentation"}),t.map(((e,n)=>a().createElement(a().Fragment,{key:`row-${n}`},a().createElement(l.ListItem,{sx:{display:"flex",minHeight:60}},r.map(((t,r)=>a().createElement(o.A,{key:`col-val-${t.key}-${r}`},e[t.key])))),n<t.length-1&&a().createElement(l.Divider,{component:"li",role:"presentation"})))))))},6272:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(8619),a=r(2015),l=r.n(a);const o=({children:e})=>l().createElement(n.Typography,{variant:"subtitle2",component:"div",sx:{minWidth:120,alignSelf:"self-start"}},e)},8395:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(8619),a=r(2015),l=r.n(a);const o=({children:e})=>l().createElement(n.Typography,{variant:"body2",component:"div",sx:{textAlign:"left",minWidth:120,alignSelf:"self-start"}},e)},8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{InlineCard:()=>a.default,ListCard:()=>l.default,TableCard:()=>o.default});var a=r(1269),l=r(1104),o=r(7656);return n})()));
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={1269:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(6272),i=r(8395);const d=({title:e,rows:t})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{display:"flex",marginTop:"20px"}},(t??[]).map(((e,r)=>a().createElement(a().Fragment,{key:`row-${e.label}-${r}`},a().createElement(l.ListItem,{sx:{display:"flex",flexDirection:"column",height:50}},a().createElement(o.A,null,e.label),a().createElement(i.A,null,e.value)),r<t.length-1&&a().createElement(l.Divider,{orientation:"vertical",flexItem:!0})))))))},1104:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(6272),i=r(8395);const d=({title:e,rows:t})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{marginTop:"20px"}},(t??[]).map(((e,r)=>a().createElement(l.ListItem,{key:e.id??e.label,divider:r<(t??[]).length-1,sx:{display:"flex",height:50}},a().createElement(o.A,null,e.label),a().createElement(i.A,null,e.value)))))))},7656:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(2015),a=r.n(n),l=r(8619),o=r(8395),i=r(6272);const d=({title:e,rows:t=[],columns:r=[]})=>a().createElement(l.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},a().createElement(l.CardContent,null,a().createElement(l.Typography,{gutterBottom:!0,variant:"h6"},e),a().createElement(l.List,{sx:{marginTop:"20px"}},a().createElement(l.ListItem,{sx:{display:"flex",height:50,gap:2}},r.map(((e,t)=>a().createElement(i.A,{key:`col-${e.key}-${t}`},e.label)))),a().createElement(l.Divider,{component:"li",role:"presentation"}),t.map(((e,n)=>a().createElement(a().Fragment,{key:`row-${n}`},a().createElement(l.ListItem,{sx:{display:"flex",minHeight:60,gap:2}},r.map(((t,r)=>a().createElement(o.A,{key:`col-val-${t.key}-${r}`},e[t.key])))),n<t.length-1&&a().createElement(l.Divider,{component:"li",role:"presentation"})))))))},6272:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(8619),a=r(2015),l=r.n(a);const o=({children:e})=>l().createElement(n.Typography,{variant:"subtitle2",component:"div",sx:{minWidth:120,alignSelf:"self-start"}},e)},8395:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(8619),a=r(2015),l=r.n(a);const o=({children:e})=>l().createElement(n.Typography,{variant:"body2",component:"div",sx:{textAlign:"left",minWidth:120,alignSelf:"self-start"}},e)},8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{InlineCard:()=>a.default,ListCard:()=>l.default,TableCard:()=>o.default});var a=r(1269),l=r(1104),o=r(7656);return n})()));
2
2
  //# sourceMappingURL=cards.js.map
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AXwE,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAe/D,EAASwE,OAAOC,YAAa,CAAE3C,MAAO,WAE7DgC,OAAOC,eAAe/D,EAAS,aAAc,CAAE8B,OAAO,GAAO,C","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/cards/InlineCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/ListCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/TableCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Heading.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Value.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Heading from \"../components/Heading\";\nimport Value from \"../components/Value\";\n\nconst InlineCard = ({ title, rows }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ display: \"flex\", marginTop: \"20px\" }}>\n {(rows ?? []).map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${row.label}-${i}`}>\n <ListItem\n sx={{ display: \"flex\", flexDirection: \"column\", height: 50 }}\n >\n <Heading>{row.label}</Heading>\n <Value>{row.value}</Value>\n </ListItem>\n {i < rows.length - 1 && <Divider orientation=\"vertical\" flexItem />}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default InlineCard;\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 from \"react\";\nimport { Card, CardContent, List, ListItem, Typography } from \"@mui/material\";\nimport Heading from \"../components/Heading\";\nimport Value from \"../components/Value\";\n\nconst ListCard = ({ title, rows }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n {(rows ?? []).map((row, i) => (\n <ListItem\n key={row.id ?? row.label}\n divider={i < (rows ?? []).length - 1}\n sx={{ display: \"flex\", height: 50 }}\n >\n <Heading>{row.label}</Heading>\n <Value>{row.value}</Value>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default ListCard;\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 from \"react\";\nimport {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Value from \"../components/Value\";\nimport Heading from \"../components/Heading\";\n\nconst TableCard = ({ title, rows = [], columns = [] }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n <ListItem sx={{ display: \"flex\", height: 50 }}>\n {columns.map((col, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <Heading key={`col-${col.key}-${i}`}>{col.label}</Heading>\n ))}\n </ListItem>\n <Divider component=\"li\" role=\"presentation\" />\n {rows.map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${i}`}>\n <ListItem sx={{ display: \"flex\", minHeight: 60 }}>\n {columns.map((col, j) => (\n // eslint-disable-next-line react/no-array-index-key\n <Value key={`col-val-${col.key}-${j}`}>{row[col.key]}</Value>\n ))}\n </ListItem>\n {i < rows.length - 1 && (\n <Divider component=\"li\" role=\"presentation\" />\n )}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default TableCard;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Heading = ({ children }) => (\n <Typography\n variant=\"subtitle2\"\n component=\"div\"\n sx={{ minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Heading;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Value = ({ children }) => (\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ textAlign: \"left\", minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Value;\n","module.exports = require(\"@mui/material\");","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};"],"names":["root","factory","exports","module","define","amd","this","InlineCard","title","rows","React","Card","sx","minWidth","borderRadius","height","variant","CardContent","Typography","gutterBottom","List","display","marginTop","map","row","i","key","label","ListItem","flexDirection","Heading","Value","value","length","Divider","orientation","flexItem","ListCard","id","divider","TableCard","columns","col","component","role","minHeight","j","children","alignSelf","textAlign","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/cards.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,qHCgBT,MA2BA,EA3BmBC,EAAGC,QAAOC,UAC3BC,IAAAA,cAACC,EAAAA,KAAI,CACHC,GAAI,CAAEC,SAAU,IAAKC,aAAc,OAAQC,OAAQ,QACnDC,QAAQ,YAERN,IAAAA,cAACO,EAAAA,YAAW,KACVP,IAAAA,cAACQ,EAAAA,WAAU,CAACC,cAAY,EAACH,QAAQ,MAC9BR,GAEHE,IAAAA,cAACU,EAAAA,KAAI,CAACR,GAAI,CAAES,QAAS,OAAQC,UAAW,UACpCb,GAAQ,IAAIc,KAAI,CAACC,EAAKC,IAEtBf,IAAAA,cAACA,IAAAA,SAAc,CAACgB,IAAK,OAAOF,EAAIG,SAASF,KACvCf,IAAAA,cAACkB,EAAAA,SAAQ,CACPhB,GAAI,CAAES,QAAS,OAAQQ,cAAe,SAAUd,OAAQ,KAExDL,IAAAA,cAACoB,EAAAA,EAAO,KAAEN,EAAIG,OACdjB,IAAAA,cAACqB,EAAAA,EAAK,KAAEP,EAAIQ,QAEbP,EAAIhB,EAAKwB,OAAS,GAAKvB,IAAAA,cAACwB,EAAAA,QAAO,CAACC,YAAY,WAAWC,UAAQ,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AAI,IAAIrC,KAAOqC,EACXV,EAAoBW,EAAED,EAAYrC,KAAS2B,EAAoBW,EAAE9D,EAASwB,IAC5EuC,OAAOC,eAAehE,EAASwB,EAAK,CAAEyC,YAAY,EAAMC,IAAKL,EAAWrC,IAE1E,C,WCND2B,EAAoBW,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFjB,EAAoBqB,EAAKxE,IACH,oBAAXyE,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAehE,EAASyE,OAAOC,YAAa,CAAE5C,MAAO,WAE7DiC,OAAOC,eAAehE,EAAS,aAAc,CAAE8B,OAAO,GAAO,C","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/cards/InlineCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/ListCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/TableCard/index.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Heading.js","webpack://openstack-uicore-foundation/./src/components/mui/cards/components/Value.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Heading from \"../components/Heading\";\nimport Value from \"../components/Value\";\n\nconst InlineCard = ({ title, rows }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ display: \"flex\", marginTop: \"20px\" }}>\n {(rows ?? []).map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${row.label}-${i}`}>\n <ListItem\n sx={{ display: \"flex\", flexDirection: \"column\", height: 50 }}\n >\n <Heading>{row.label}</Heading>\n <Value>{row.value}</Value>\n </ListItem>\n {i < rows.length - 1 && <Divider orientation=\"vertical\" flexItem />}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default InlineCard;\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 from \"react\";\nimport { Card, CardContent, List, ListItem, Typography } from \"@mui/material\";\nimport Heading from \"../components/Heading\";\nimport Value from \"../components/Value\";\n\nconst ListCard = ({ title, rows }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n {(rows ?? []).map((row, i) => (\n <ListItem\n key={row.id ?? row.label}\n divider={i < (rows ?? []).length - 1}\n sx={{ display: \"flex\", height: 50 }}\n >\n <Heading>{row.label}</Heading>\n <Value>{row.value}</Value>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default ListCard;\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 from \"react\";\nimport {\n Card,\n CardContent,\n Divider,\n List,\n ListItem,\n Typography\n} from \"@mui/material\";\nimport Value from \"../components/Value\";\nimport Heading from \"../components/Heading\";\n\nconst TableCard = ({ title, rows = [], columns = [] }) => (\n <Card\n sx={{ minWidth: 275, borderRadius: \"10px\", height: \"100%\" }}\n variant=\"outlined\"\n >\n <CardContent>\n <Typography gutterBottom variant=\"h6\">\n {title}\n </Typography>\n <List sx={{ marginTop: \"20px\" }}>\n <ListItem sx={{ display: \"flex\", height: 50, gap: 2 }}>\n {columns.map((col, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <Heading key={`col-${col.key}-${i}`}>{col.label}</Heading>\n ))}\n </ListItem>\n <Divider component=\"li\" role=\"presentation\" />\n {rows.map((row, i) => (\n // eslint-disable-next-line react/no-array-index-key\n <React.Fragment key={`row-${i}`}>\n <ListItem sx={{ display: \"flex\", minHeight: 60, gap: 2 }}>\n {columns.map((col, j) => (\n // eslint-disable-next-line react/no-array-index-key\n <Value key={`col-val-${col.key}-${j}`}>{row[col.key]}</Value>\n ))}\n </ListItem>\n {i < rows.length - 1 && (\n <Divider component=\"li\" role=\"presentation\" />\n )}\n </React.Fragment>\n ))}\n </List>\n </CardContent>\n </Card>\n);\n\nexport default TableCard;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Heading = ({ children }) => (\n <Typography\n variant=\"subtitle2\"\n component=\"div\"\n sx={{ minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Heading;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nconst Value = ({ children }) => (\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ textAlign: \"left\", minWidth: 120, alignSelf: \"self-start\" }}\n >\n {children}\n </Typography>\n);\n\nexport default Value;\n","module.exports = require(\"@mui/material\");","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};"],"names":["root","factory","exports","module","define","amd","this","InlineCard","title","rows","React","Card","sx","minWidth","borderRadius","height","variant","CardContent","Typography","gutterBottom","List","display","marginTop","map","row","i","key","label","ListItem","flexDirection","Heading","Value","value","length","Divider","orientation","flexItem","ListCard","id","divider","TableCard","columns","gap","col","component","role","minHeight","j","children","alignSelf","textAlign","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8619:e=>{e.exports=require("@mui/material")},9870:e=>{e.exports=require("i18n-react")},2015:e=>{e.exports=require("react")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};r.r(o),r.d(o,{default:()=>l});var n=r(1116),i=r.n(n),a=r(2015),c=r.n(a),p=r(8619),u=r(9870),s=r.n(u);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const l=({itemCount:e,onClick:t,sx:r,disabled:o})=>c().createElement(p.Button,{endIcon:!o&&c().createElement(p.Box,{component:"div",sx:{backgroundColor:"white",color:"primary.main",fontWeight:700,fontSize:"12px !important",minWidth:"20px",height:"20px",borderRadius:"10px",marginLeft:"4px",marginRight:"2px"}},e),onClick:t,color:"primary",variant:"contained",size:"large",sx:f({borderRadius:92},r),disabled:o},s().translate("buttons.my_cart"));return o})()));
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={1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},8619:e=>{e.exports=require("@mui/material")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},2015:e=>{e.exports=require("react")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};r.r(o),r.d(o,{default:()=>m});var n=r(1116),i=r.n(n),a=r(2015),c=r.n(a),p=r(8619);const u=require("@mui/icons-material/ShoppingCart");var s=r.n(u),l=r(6842),d=r.n(l);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const m=({itemCount:e,onClick:t,sx:r,disabled:o})=>c().createElement(p.Button,{startIcon:c().createElement(s(),null),endIcon:!o&&c().createElement(p.Box,{component:"div",sx:{backgroundColor:"white",color:"primary.main",fontWeight:700,fontSize:"12px !important",minWidth:"20px",height:"20px",borderRadius:"10px",marginLeft:"4px",marginRight:"2px"}},e),onClick:t,color:"primary",variant:"contained",size:"large",sx:b({borderRadius:92},r),disabled:o},d().translate("buttons.my_cart"));return o})()));
2
2
  //# sourceMappingURL=cart-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/cart-button.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA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AiB,QACjBC,MAAO,eACPC,WAAY,IACZC,SAAU,kBACVC,SAAU,OACVC,OAAQ,OACRC,aAAc,OACdC,WAAY,MACZC,YAAa,QAGdjB,GAIPC,QAASA,EACTS,MAAM,UACNQ,QAAQ,YACRC,KAAK,QACLjB,GAAEkB,EAAA,CAAIL,aAAc,IAAOb,GAC3BC,SAAUA,GAETkB,IAAAA,UAAY,oB","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/CartButton/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/material\");","module.exports = require(\"i18n-react\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 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 { Button, Box } from \"@mui/material\";\nimport T from \"i18n-react\";\n\nconst CartButton = ({ itemCount, onClick, sx, disabled }) => {\n return (\n <Button\n endIcon={\n !disabled && (\n <Box\n component=\"div\"\n sx={{\n backgroundColor: \"white\",\n color: \"primary.main\",\n fontWeight: 700,\n fontSize: \"12px !important\",\n minWidth: \"20px\",\n height: \"20px\",\n borderRadius: \"10px\",\n marginLeft: \"4px\",\n marginRight: \"2px\"\n }}\n >\n {itemCount}\n </Box>\n )\n }\n onClick={onClick}\n color=\"primary\"\n variant=\"contained\"\n size=\"large\"\n sx={{ borderRadius: 92, ...sx }}\n disabled={disabled}\n >\n {T.translate(\"buttons.my_cart\")}\n </Button>\n );\n};\n\nexport default CartButton;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","CartButton","itemCount","onClick","sx","disabled","React","Button","endIcon","Box","component","backgroundColor","color","fontWeight","fontSize","minWidth","height","borderRadius","marginLeft","marginRight","variant","size","_objectSpread","T"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/cart-button.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,wC,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,6B,WCAzBJ,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,gGCL9D,MAAM,EAA+B3B,QAAQ,oC,imBCkB7C,MAoCA,EApCmB4B,EAAGC,YAAWC,UAASC,KAAIC,cAE1CC,IAAAA,cAACC,EAAAA,OAAM,CACLC,UAAWF,IAAAA,cAACG,IAAgB,MAC5BC,SACGL,GACCC,IAAAA,cAACK,EAAAA,IAAG,CACFC,UAAU,MACVR,GAAI,CACFS,gBAAiB,QACjBC,MAAO,eACPC,WAAY,IACZC,SAAU,kBACVC,SAAU,OACVC,OAAQ,OACRC,aAAc,OACdC,WAAY,MACZC,YAAa,QAGdnB,GAIPC,QAASA,EACTW,MAAM,UACNQ,QAAQ,YACRC,KAAK,QACLnB,GAAEoB,EAAA,CAAIL,aAAc,IAAOf,GAC3BC,SAAUA,GAEToB,IAAAA,UAAY,oB","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/ShoppingCart\"","webpack://openstack-uicore-foundation/./src/components/mui/CartButton/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/material\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/ShoppingCart\");","/**\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 { Button, Box } from \"@mui/material\";\nimport ShoppingCartIcon from \"@mui/icons-material/ShoppingCart\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst CartButton = ({ itemCount, onClick, sx, disabled }) => {\n return (\n <Button\n startIcon={<ShoppingCartIcon />}\n endIcon={\n !disabled && (\n <Box\n component=\"div\"\n sx={{\n backgroundColor: \"white\",\n color: \"primary.main\",\n fontWeight: 700,\n fontSize: \"12px !important\",\n minWidth: \"20px\",\n height: \"20px\",\n borderRadius: \"10px\",\n marginLeft: \"4px\",\n marginRight: \"2px\"\n }}\n >\n {itemCount}\n </Box>\n )\n }\n onClick={onClick}\n color=\"primary\"\n variant=\"contained\"\n size=\"large\"\n sx={{ borderRadius: 92, ...sx }}\n disabled={disabled}\n >\n {T.translate(\"buttons.my_cart\")}\n </Button>\n );\n};\n\nexport default CartButton;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","CartButton","itemCount","onClick","sx","disabled","React","Button","startIcon","ShoppingCartIcon","endIcon","Box","component","backgroundColor","color","fontWeight","fontSize","minWidth","height","borderRadius","marginLeft","marginRight","variant","size","_objectSpread","T"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={8360:(e,t,r)=>{r.d(t,{A:()=>j});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),s=r.n(i),u=r(7994),c=r(2522),m=r(8672),d=r(6915),p=r(5480),b=r(9314),f=r(2462),y=r.n(f),v=r(9825),E=r.n(v),h=r(6842),g=r.n(h),_=r(8619),x=r(3294);const T=["name","label","placeholder","options"],O=e=>{let{name:t,label:r,placeholder:l,options:n}=e,a=y()(e,T);const[i,u]=(0,x.useField)(t),c=l||g().translate("general.select_an_option");return s().createElement(_.FormControl,{fullWidth:!0,error:u.touched&&Boolean(u.error)},r&&s().createElement(_.InputLabel,{id:`${t}-label`},r),s().createElement(_.Select,o()({name:t,label:r,labelId:`${t}-label`,displayEmpty:!0},i,a,{renderValue:e=>{if(null==e||""===e)return s().createElement("em",null,c);const t=n.find((({value:t})=>t===e));return t?t.label:""}}),n.map((e=>s().createElement(_.MenuItem,{key:`selectop-${e.value}`,value:e.value},e.label)))),u.touched&&u.error&&s().createElement(_.FormHelperText,null,u.error))};O.propTypes={name:E().string.isRequired,options:E().array.isRequired};const C=O;function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const j=({rowId:e,field:t,timeZone:r,label:l="",disabled:n=!1})=>{const a={name:`i-${e}-c-${t.class_field}-f-${t.type_id}`,label:l,disabled:n};switch(t.type){case"CheckBox":return s().createElement(u.default,o()({},a,{size:"small"}));case"CheckBoxList":return s().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return s().createElement(m.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return s().createElement(d.default,a);case"Time":return s().createElement(p.default,o()({},a,{timeZone:r}));case"Quantity":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:w({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return s().createElement(C,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"Text":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(e,t,r)=>{r.d(t,{default:()=>f});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619),d=r(3294);const p=["name","label"],b=e=>{let{name:t,label:r}=e,l=o()(e,p);const[a,i]=(0,d.useField)({name:t,type:"checkbox"});return s().createElement(m.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},s().createElement(m.FormControlLabel,{control:s().createElement(m.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&s().createElement(m.FormHelperText,null,i.error))};b.propTypes={name:c().string.isRequired,label:c().string.isRequired};const f=b},6915:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u);const m=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const f=["name","label","required","disabled"],y=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,f);const[u,c,y]=(0,b.useField)(t),v=`${r} *`;return s().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},s().createElement(m.DatePicker,n()({value:u.value,onChange:y.setValue,slotProps:{textField:{name:t,label:l?v:r,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,fullWidth:!0,disabled:a,size:"small"},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};y.propTypes={name:c().string.isRequired,label:c().string,required:c().bool,disabled:c().bool};const v=y},5654:(e,t,r)=>{r.d(t,{default:()=>x});var l=r(6031),n=r.n(l),a=r(1116),o=r.n(a),i=r(2462),s=r.n(i),u=r(2015),c=r.n(u),m=r(9825),d=r.n(m),p=r(8619),b=r(3294),f=r(9314),y=r(3209);const v=["name","label","discountType","inCents","disabled"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=["e","E","+","-"],_=e=>{let{name:t,label:r,discountType:l,inCents:a=!1,disabled:o=!1}=e,i=s()(e,v);const[m,d,E]=(0,b.useField)(t),[_,x]=(0,u.useState)(!1),T=null===d.initialValue?null:0,O=l===y.eM.RATE?{endAdornment:c().createElement(p.InputAdornment,{position:"end"},"%")}:{startAdornment:c().createElement(p.InputAdornment,{position:"start"},"$")},C=l===y.eM.RATE?{max:100,inputMode:"numeric",step:1}:{inputMode:"decimal",step:1};return c().createElement(f.default,n()({name:t,label:r,value:(()=>_?"":null==m.value||0===m.value?0===m.value?0:"":a?m.value/y.At:m.value)(),onChange:e=>{const t=e.target.value;if(""===t)return x(!0),void E.setValue(T);x(!1);const r=Number(t),l=a?r*y.At:r;E.setValue(l)},type:"number",disabled:o,slotProps:{input:h({},O),htmlInput:h({min:0},C)},onKeyDown:e=>{g.includes(e.key)&&(e.preventDefault(),e.stopPropagation())}},i))};_.propTypes={name:d().string.isRequired,label:d().string};const x=_},2522:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(8619),c=r(3294),m=r(6842),d=r.n(m);const p=["name","label","placeholder","options"],b=e=>{let{name:t,label:r,placeholder:l,options:a}=e,i=o()(e,p);const[m,b,f]=(0,c.useField)(t),y=l||d().translate("general.select_an_option"),v=a.every((({value:e})=>{var t;return null===(t=m.value)||void 0===t?void 0:t.includes(e)}));return s().createElement(u.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},r&&s().createElement(u.InputLabel,{shrink:!0,id:`${t}-label`},r),s().createElement(u.Select,n()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,multiple:!0,value:m.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?v?f.setValue([]):f.setValue(a.map((e=>e.value))):f.setValue(t)},onBlur:m.onBlur,displayEmpty:!0},i,{renderValue:e=>{if(null==e||!e.length)return s().createElement("em",null,y);if(v)return d().translate("general.all");const t=a.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e));return t.join(", ")}}),s().createElement(u.MenuItem,{key:"all",value:"all"},s().createElement(u.Checkbox,{checked:v}),s().createElement(u.ListItemText,{primary:d().translate("general.all")})),s().createElement(u.Divider,null),a.map((({label:e,value:t})=>{var r;return s().createElement(u.MenuItem,{key:`ckbx-ddl-${t}`,value:t},s().createElement(u.Checkbox,{checked:null===(r=m.value)||void 0===r?void 0:r.includes(t)}),s().createElement(u.ListItemText,{primary:e}))}))))}},8672:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(8619),c=r(3294),m=r(6842),d=r.n(m);const p=["name","label","options","placeholder"],b=e=>{let{name:t,label:r,options:l,placeholder:a}=e,i=o()(e,p);const m=a||d().translate("general.select_an_option"),[b,f,y]=(0,c.useField)(t);return s().createElement(u.FormControl,{fullWidth:!0,error:f.touched&&Boolean(f.error)},r&&s().createElement(u.InputLabel,{shrink:!0,id:`${t}-label`},r),s().createElement(u.Select,n()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,value:b.value||"",onChange:e=>{y.setValue(e.target.value)},displayEmpty:!0},i,{renderValue:e=>{if(!e)return s().createElement("em",null,m);const t=l.find((({value:t})=>t===e));return t?t.label:""}}),l.map((({label:e,value:t})=>s().createElement(u.MenuItem,{key:`radio-ddl-${t}`,value:t},s().createElement(u.Radio,{checked:b.value===t}),s().createElement(u.ListItemText,{primary:e}))))))}},3300:(e,t,r)=>{r.d(t,{default:()=>x});var l=r(6031),n=r.n(l),a=r(1116),o=r.n(a),i=r(2462),s=r.n(i),u=r(2015),c=r.n(u),m=r(9825),d=r.n(m),p=r(8619),b=r(3294),f=r(9314),y=r(3209);const v=["name","label","inCents","inputProps"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=["e","E","+","-"],_=e=>{let{name:t,label:r,inCents:l=!1,inputProps:a={step:.01}}=e,o=s()(e,v);const[i,m,d]=(0,b.useField)(t),[E,_]=(0,u.useState)(!1),[x,T]=(0,u.useState)(!1),[O,C]=(0,u.useState)(""),P=()=>{if(E||null==i.value)return"";if(0===i.value)return"0";const e=l?i.value/y.At:i.value;return String(Number(e.toFixed(y.tv)))};return c().createElement(f.default,n()({name:t,label:r,type:"number",value:(()=>{if(x)return O;if(E)return"";if(null==i.value||0===i.value)return 0===i.value?0:"";const e=P(),t=e.indexOf(".");return-1===t?`${e}.00`:e.length-t-1==1?`${e}0`:e})(),onChange:e=>{const t=e.target.value;if(C(t),""===t)return _(!0),void d.setValue(0);_(!1);const r=Number(t),n=l?Math.round(r*y.At):r;d.setValue(n)},onFocus:()=>{T(!0),C(P())},onBlur:e=>{T(!1),o.onBlur&&o.onBlur(e)},slotProps:{input:{startAdornment:c().createElement(p.InputAdornment,{position:"start"},"$")}},inputProps:h({min:0,inputMode:"decimal"},a),onKeyDown:e=>{g.includes(e.key)&&(e.preventDefault(),e.stopPropagation())}},o))};_.propTypes={name:d().string.isRequired,label:d().string};const x=_},4768:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619);const d=require("@mui/icons-material/Clear");var p=r.n(d),b=r(3294);const f=["name","label","placeholder","children","isClearable"],y=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,u=o()(e,f);const[c,d,y]=(0,b.useField)(t),v=(null==c?void 0:c.value)&&""!==c.value||Boolean(l);return s().createElement(m.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&s().createElement(m.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:v},r),s().createElement(m.Select,n()({name:t,id:t},c,{labelId:`${t}-label`,label:r,notched:v,displayEmpty:!0,renderValue:e=>e&&""!==e?e:s().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&c.value?s().createElement(m.InputAdornment,{position:"end",sx:{mr:2}},s().createElement(m.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),y.setValue("")}},s().createElement(p(),{fontSize:"small"}))):null},u),a),d.touched&&d.error&&s().createElement(m.FormHelperText,null,d.error))};y.propTypes={name:c().string.isRequired,children:c().node.isRequired,placeholder:c().string,isClearable:c().bool};const v=y},9314:(e,t,r)=>{r.d(t,{default:()=>f});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619),d=r(3294);const p=["name","label","maxLength","required"],b=e=>{var t;let{name:r,label:l,maxLength:a,required:i=!1}=e,u=o()(e,p);const[c,b]=(0,d.useField)(r),f=(null===(t=c.value)||void 0===t?void 0:t.length)||0;let y="";return l&&(y=i?`${l} *`:l),s().createElement(m.Box,null,s().createElement(m.TextField,n()({name:r,label:y},c,{onBlur:c.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},u)),a&&s().createElement(m.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-f+" characters left"))};b.propTypes={name:c().string.isRequired,label:c().string,maxLength:c().number,required:c().bool};const f=b},5480:(e,t,r)=>{r.d(t,{default:()=>d});var l=r(2015),n=r.n(l),a=r(9825),o=r.n(a),i=r(4),s=r(5643);const u=require("@mui/x-date-pickers/TimePicker");var c=r(3294);const m=({name:e,label:t,minTime:r,maxTime:l,timeZone:a,disabled:o=!1})=>{const[m,d,p]=(0,c.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:s.AdapterMoment},n().createElement(u.TimePicker,{value:m.value,onChange:p.setValue,minTime:r,maxTime:l,timezone:a,label:a,views:["hours","minutes"],slotProps:{textField:{name:e,label:t,error:d.touched&&Boolean(d.error),helperText:d.touched&&d.error,size:"small",fullWidth:!0,disabled:o,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};m.propTypes={name:o().string.isRequired};const d=m},3209:(e,t,r)=>{r.d(t,{At:()=>o,OP:()=>n,eM:()=>s,fJ:()=>a,iC:()=>i,q9:()=>l,tv:()=>u});const l=100n,n=2,a=0,o=100,i=1e3,s={AMOUNT:"Amount",RATE:"Rate"},u=2},9558:(e,t,r)=>{r.d(t,{epochToMomentTimeZone:()=>a});var l=r(5812),n=r.n(l);r(8041);const a=(e,t)=>e?(e*=1e3,n()(e).tz(t)):e},8400:(e,t,r)=>{r.d(t,{currencyAmountFromCents:()=>a});var l=r(3209);const n={USD:"$",EUR:"€",GBP:"£",CAD:"C$",AUD:"A$",NZD:"NZ$",CHF:"CHF",ARS:"AR$",BRL:"R$",MXN:"MX$"};function a(e,t="USD"){if("number"!=typeof e||!Number.isInteger(e))throw new Error("cents must be an integer number");const r=function(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e){if(!Number.isSafeInteger(e))throw new Error("cents must be a safe integer Number (or pass BigInt/string).");t=BigInt(e)}else{if("string"!=typeof e)throw new Error("cents must be a bigint, number, or numeric string.");{const r=e.trim();if(!/^\d+$/.test(r))throw new Error("cents string must contain digits only (e.g., '1234').");t=BigInt(r)}}if(t<l.fJ)throw new Error("cents must be non-negative.");const r=t/l.q9,n=t%l.q9;return`${r.toString()}.${n.toString().padStart(l.OP,"0")}`}(e);return`${n[t]??"$"}${r}`}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9247:e=>{e.exports=require("@mui/icons-material/Edit")},1519:e=>{e.exports=require("@mui/icons-material/Error")},8619:e=>{e.exports=require("@mui/material")},5643:e=>{e.exports=require("@mui/x-date-pickers/AdapterMoment")},4:e=>{e.exports=require("@mui/x-date-pickers/LocalizationProvider")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},8041:e=>{e.exports=require("urijs")}},t={};function r(l){var n=t[l];if(void 0!==n)return n.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var l={};r.r(l),r.d(l,{GlobalQuantityField:()=>_,ItemTableField:()=>x.A,UnderlyingAlertNote:()=>j,default:()=>A,getCurrentApplicableRate:()=>$,isItemAvailable:()=>q});var n=r(2015),a=r.n(n),o=r(8619),i=r(9247),s=r.n(i);const u=require("@mui/icons-material/Settings");var c=r.n(u),m=r(6842),d=r.n(m),p=r(8400),b=r(3209),f=r(1116),y=r.n(f),v=r(3294),E=r(9314);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const _=({row:e,extraColumns:t,value:r,disabled:l=!1})=>{const o=`i-${e.form_item_id}-c-global-f-quantity`,[i,s,u]=(0,v.useField)(o),c=t.filter((e=>"Quantity"===e.type)).length>0;return(0,n.useEffect)((()=>{u.setValue(r),u.setTouched(!0)}),[r]),a().createElement(E.default,{name:o,fullWidth:!0,size:"small",type:"number",disabled:l,slotProps:{htmlInput:g({readOnly:c,min:0},e.quantity_limit_per_sponsor?{max:e.quantity_limit_per_sponsor}:{})},sx:c?{"& .MuiInputBase-root":{backgroundColor:"action.disabledBackground",color:"text.disabled",pointerEvents:"none"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"action.disabled"}}:{}})};var x=r(8360),T=r(4768),O=r(3300),C=r(5654),P=r(1519),w=r.n(P);const j=({showAdditionalItems:e})=>e?a().createElement(o.Typography,{variant:"body2",component:"p",sx:{color:"error.warning",fontSize:"0.8rem"}},a().createElement(w(),{color:"error",sx:{fontSize:"1rem",top:"0.2rem",position:"relative"}})," ",d().translate("sponsor_edit_form.additional_info")):null;var k=r(9558);const $=(e,t)=>{var r,l,n;const a=(0,k.epochToMomentTimeZone)(Math.floor(new Date/b.iC),e),o=null===(r=(0,k.epochToMomentTimeZone)(t.early_bird_end_date,e))||void 0===r?void 0:r.endOf("day"),i=null===(l=(0,k.epochToMomentTimeZone)(t.onsite_price_start_date,e))||void 0===l?void 0:l.startOf("day"),s=null===(n=(0,k.epochToMomentTimeZone)(t.onsite_price_end_date,e))||void 0===n?void 0:n.endOf("day");return o&&a.isSameOrBefore(o)?"early_bird":i&&a.isSameOrBefore(i)?"standard":!s||a.isSameOrBefore(s)?"onsite":"expired"},q=(e,t)=>{var r;return null!=(null===(r=e.rates)||void 0===r?void 0:r[t])},A=({data:e,currentApplicableRate:t,timeZone:r,values:l,onNotesClick:i,onSettingsClick:u})=>{var m,f;const y=JSON.stringify(l),v=(null===(m=e[0])||void 0===m||null===(f=m.meta_fields)||void 0===f?void 0:f.filter((e=>"Form"===e.class_field)))||[],E=v.length+10,h=(0,n.useCallback)((e=>{const t=v.filter((e=>"Quantity"===e.type)),r=l[`i-${e.form_item_id}-c-global-f-quantity`],n=t.reduce(((t,r)=>(t>0?t:1)*((null==l?void 0:l[`i-${e.form_item_id}-c-${r.class_field}-f-${r.type_id}`])||0)),0);return t.length>0?n:r}),[y,v]),g=e=>{const r=l[`i-${e.form_item_id}-c-global-f-quantity`]||h(e);if("expired"===t)return 0;const n=l[`i-${e.form_item_id}-c-global-f-custom_rate`]||e.rates[t];return null==n||null==r?0:r*n},P=e=>e.meta_fields.filter((e=>"Item"===e.class_field)).length>0,w=e=>{const t=e.meta_fields.filter((e=>"Item"===e.class_field&&e.is_required)),r=t.some((t=>{const r=l[`i-${e.form_item_id}-c-item-f-${t.type_id}`];return null==r||""===r}));return t.length>0&&r},k=e=>null==e?d().translate("general.n_a"):(0,p.currencyAmountFromCents)(e),$=(0,n.useMemo)((()=>{const t=e.reduce(((e,t)=>e+g(t)),0),r=l.discount_type===b.eM.AMOUNT?l.discount_amount:t*(l.discount_amount/b.At/b.At);return t-Math.round(r)}),[e,y,t]);return a().createElement(o.TableContainer,{component:o.Paper},a().createElement(o.Table,null,a().createElement(o.TableHead,null,a().createElement(o.TableRow,{sx:{backgroundColor:"#EAEDF4"}},a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.code")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.description")),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.custom_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.early_bird_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.standard_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.onsite_rate")),v.map((e=>a().createElement(o.TableCell,{key:`colhead-${e.type_id}`},e.name))),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.qty")),a().createElement(o.TableCell,{sx:{minWidth:40}}),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.total")),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.notes")))),a().createElement(o.TableBody,null,e.map((e=>a().createElement(o.TableRow,{key:`datarow-${e.form_item_id}`},a().createElement(o.TableCell,null,e.code),a().createElement(o.TableCell,{sx:{position:"relative"}},a().createElement("div",null,e.name),a().createElement(j,{showAdditionalItems:P(e)&&w(e)})),a().createElement(o.TableCell,null,a().createElement(O.default,{name:`i-${e.form_item_id}-c-global-f-custom_rate`,fullWidth:!0,label:"",size:"small",inCents:!0,inputProps:{step:.01}})),a().createElement(o.TableCell,{sx:{opacity:"early_bird"===t?1:"38%"}},k(e.rates.early_bird)),a().createElement(o.TableCell,{sx:{opacity:"standard"===t?1:"38%"}},k(e.rates.standard)),a().createElement(o.TableCell,{sx:{opacity:"onsite"===t?1:"38%"}},k(e.rates.onsite)),v.map((t=>a().createElement(o.TableCell,{key:`datacell-${e.form_item_id}-${t.type_id}`,sx:{minWidth:200}},a().createElement(x.A,{field:t,rowId:e.form_item_id,timeZone:r})))),a().createElement(o.TableCell,null,a().createElement(_,{row:e,extraColumns:v,value:h(e)})),a().createElement(o.TableCell,{align:"center"},P(e)&&a().createElement(o.IconButton,{size:"small","aria-label":"settings",onClick:()=>(e=>{u(e)})(e)},a().createElement(c(),{fontSize:"large",color:"warning"}))),a().createElement(o.TableCell,null,(0,p.currencyAmountFromCents)(g(e))),a().createElement(o.TableCell,{align:"center"},a().createElement(o.IconButton,{size:"large","aria-label":"edit",onClick:()=>(e=>{i(e)})(e)},a().createElement(s(),{fontSize:"large"})))))),a().createElement(o.TableRow,null,a().createElement(o.TableCell,{sx:{fontWeight:500}},d().translate("sponsor_edit_form.discount")),new Array(E-5).fill(0).map(((e,t)=>a().createElement(o.TableCell,{key:`${t}-discountcell`}))),a().createElement(o.TableCell,null,a().createElement(T.default,{name:"discount_type",label:"",size:"small"},Object.values(b.eM).map((e=>a().createElement(o.MenuItem,{key:`ddopt-${e}`,value:e},e))))),a().createElement(o.TableCell,null),a().createElement(o.TableCell,null,a().createElement(C.default,{name:"discount_amount",discountType:l.discount_type,fullWidth:!0,label:"",size:"small",inCents:!0})),a().createElement(o.TableCell,null)),a().createElement(o.TableRow,null,a().createElement(o.TableCell,{sx:{fontWeight:500}},d().translate("sponsor_edit_form.total_on_caps")),new Array(E-3).fill(0).map(((e,t)=>a().createElement(o.TableCell,{key:`${t}-totalcell`}))),a().createElement(o.TableCell,{sx:{fontWeight:500}},(0,p.currencyAmountFromCents)($)),a().createElement(o.TableCell,null)))))};return l})()));
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={8360:(e,t,r)=>{r.d(t,{A:()=>j});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),s=r.n(i),u=r(7994),c=r(2522),m=r(8672),d=r(6915),p=r(5480),b=r(9314),f=r(2462),y=r.n(f),v=r(9825),E=r.n(v),h=r(6842),g=r.n(h),_=r(8619),x=r(3294);const T=["name","label","placeholder","options"],O=e=>{let{name:t,label:r,placeholder:l,options:n}=e,a=y()(e,T);const[i,u]=(0,x.useField)(t),c=l||g().translate("general.select_an_option");return s().createElement(_.FormControl,{fullWidth:!0,error:u.touched&&Boolean(u.error)},r&&s().createElement(_.InputLabel,{id:`${t}-label`},r),s().createElement(_.Select,o()({name:t,label:r,labelId:`${t}-label`,displayEmpty:!0},i,a,{renderValue:e=>{if(null==e||""===e)return s().createElement("em",null,c);const t=n.find((({value:t})=>t===e));return t?t.label:""}}),n.map((e=>s().createElement(_.MenuItem,{key:`selectop-${e.value}`,value:e.value},e.label)))),u.touched&&u.error&&s().createElement(_.FormHelperText,null,u.error))};O.propTypes={name:E().string.isRequired,options:E().array.isRequired};const C=O;function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const j=({rowId:e,field:t,timeZone:r,label:l="",disabled:n=!1})=>{const a={name:`i-${e}-c-${t.class_field}-f-${t.type_id}`,label:l,disabled:n};switch(t.type){case"CheckBox":return s().createElement(u.default,o()({},a,{size:"small"}));case"CheckBoxList":return s().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return s().createElement(m.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return s().createElement(d.default,a);case"Time":return s().createElement(p.default,o()({},a,{timeZone:r}));case"Quantity":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:w({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return s().createElement(C,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"Text":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return s().createElement(b.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(e,t,r)=>{r.d(t,{default:()=>f});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619),d=r(3294);const p=["name","label"],b=e=>{let{name:t,label:r}=e,l=o()(e,p);const[a,i]=(0,d.useField)({name:t,type:"checkbox"});return s().createElement(m.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},s().createElement(m.FormControlLabel,{control:s().createElement(m.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&s().createElement(m.FormHelperText,null,i.error))};b.propTypes={name:c().string.isRequired,label:c().string.isRequired};const f=b},6915:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u);const m=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const f=["name","label","required","disabled"],y=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,f);const[u,c,y]=(0,b.useField)(t),v=`${r} *`;return s().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},s().createElement(m.DatePicker,n()({value:u.value,onChange:y.setValue,slotProps:{textField:{name:t,label:l?v:r,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,fullWidth:!0,disabled:a,size:"small"},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};y.propTypes={name:c().string.isRequired,label:c().string,required:c().bool,disabled:c().bool};const v=y},5654:(e,t,r)=>{r.d(t,{default:()=>x});var l=r(6031),n=r.n(l),a=r(1116),o=r.n(a),i=r(2462),s=r.n(i),u=r(2015),c=r.n(u),m=r(9825),d=r.n(m),p=r(8619),b=r(3294),f=r(9314),y=r(3209);const v=["name","label","discountType","inCents","disabled"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=["e","E","+","-"],_=e=>{let{name:t,label:r,discountType:l,inCents:a=!1,disabled:o=!1}=e,i=s()(e,v);const[m,d,E]=(0,b.useField)(t),[_,x]=(0,u.useState)(!1),T=null===d.initialValue?null:0,O=l===y.eM.RATE?{endAdornment:c().createElement(p.InputAdornment,{position:"end"},"%")}:{startAdornment:c().createElement(p.InputAdornment,{position:"start"},"$")},C=l===y.eM.RATE?{max:100,inputMode:"numeric",step:1}:{inputMode:"decimal",step:1};return c().createElement(f.default,n()({name:t,label:r,value:(()=>_?"":null==m.value||0===m.value?0===m.value?0:"":a?m.value/y.At:m.value)(),onChange:e=>{const t=e.target.value;if(""===t)return x(!0),void E.setValue(T);x(!1);const r=Number(t),l=a?r*y.At:r;E.setValue(l)},type:"number",disabled:o,slotProps:{input:h({},O),htmlInput:h({min:0},C)},onKeyDown:e=>{g.includes(e.key)&&(e.preventDefault(),e.stopPropagation())}},i))};_.propTypes={name:d().string.isRequired,label:d().string};const x=_},2522:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(8619),c=r(3294),m=r(6842),d=r.n(m);const p=["name","label","placeholder","options"],b=e=>{let{name:t,label:r,placeholder:l,options:a}=e,i=o()(e,p);const[m,b,f]=(0,c.useField)(t),y=l||d().translate("general.select_an_option"),v=a.every((({value:e})=>{var t;return null===(t=m.value)||void 0===t?void 0:t.includes(e)}));return s().createElement(u.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},r&&s().createElement(u.InputLabel,{shrink:!0,id:`${t}-label`},r),s().createElement(u.Select,n()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,multiple:!0,value:m.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?v?f.setValue([]):f.setValue(a.map((e=>e.value))):f.setValue(t)},onBlur:m.onBlur,displayEmpty:!0},i,{renderValue:e=>{if(null==e||!e.length)return s().createElement("em",null,y);if(v)return d().translate("general.all");const t=a.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e));return t.join(", ")}}),s().createElement(u.MenuItem,{key:"all",value:"all"},s().createElement(u.Checkbox,{checked:v}),s().createElement(u.ListItemText,{primary:d().translate("general.all")})),s().createElement(u.Divider,{sx:{m:0}}),a.map((({label:e,value:t})=>{var r;return s().createElement(u.MenuItem,{key:`ckbx-ddl-${t}`,value:t},s().createElement(u.Checkbox,{checked:null===(r=m.value)||void 0===r?void 0:r.includes(t)}),s().createElement(u.ListItemText,{primary:e}))}))))}},8672:(e,t,r)=>{r.d(t,{default:()=>b});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(8619),c=r(3294),m=r(6842),d=r.n(m);const p=["name","label","options","placeholder"],b=e=>{let{name:t,label:r,options:l,placeholder:a}=e,i=o()(e,p);const m=a||d().translate("general.select_an_option"),[b,f,y]=(0,c.useField)(t);return s().createElement(u.FormControl,{fullWidth:!0,error:f.touched&&Boolean(f.error)},r&&s().createElement(u.InputLabel,{shrink:!0,id:`${t}-label`},r),s().createElement(u.Select,n()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,value:b.value||"",onChange:e=>{y.setValue(e.target.value)},displayEmpty:!0},i,{renderValue:e=>{if(!e)return s().createElement("em",null,m);const t=l.find((({value:t})=>t===e));return t?t.label:""}}),l.map((({label:e,value:t})=>s().createElement(u.MenuItem,{key:`radio-ddl-${t}`,value:t},s().createElement(u.Radio,{checked:b.value===t}),s().createElement(u.ListItemText,{primary:e}))))))}},3300:(e,t,r)=>{r.d(t,{default:()=>x});var l=r(6031),n=r.n(l),a=r(1116),o=r.n(a),i=r(2462),s=r.n(i),u=r(2015),c=r.n(u),m=r(9825),d=r.n(m),p=r(8619),b=r(3294),f=r(9314),y=r(3209);const v=["name","label","inCents","inputProps"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=["e","E","+","-"],_=e=>{let{name:t,label:r,inCents:l=!1,inputProps:a={step:.01}}=e,o=s()(e,v);const[i,m,d]=(0,b.useField)(t),[E,_]=(0,u.useState)(!1),[x,T]=(0,u.useState)(!1),[O,C]=(0,u.useState)(""),P=()=>{if(E||null==i.value)return"";if(0===i.value)return"0";const e=l?i.value/y.At:i.value;return String(Number(e.toFixed(y.tv)))};return c().createElement(f.default,n()({name:t,label:r,type:"number",value:(()=>{if(x)return O;if(E)return"";if(null==i.value||0===i.value)return 0===i.value?0:"";const e=P(),t=e.indexOf(".");return-1===t?`${e}.00`:e.length-t-1==1?`${e}0`:e})(),onChange:e=>{const t=e.target.value;if(C(t),""===t)return _(!0),void d.setValue(0);_(!1);const r=Number(t),n=l?Math.round(r*y.At):r;d.setValue(n)},onFocus:()=>{T(!0),C(P())},onBlur:e=>{T(!1),o.onBlur&&o.onBlur(e)},slotProps:{input:{startAdornment:c().createElement(p.InputAdornment,{position:"start"},"$")}},inputProps:h({min:0,inputMode:"decimal"},a),onKeyDown:e=>{g.includes(e.key)&&(e.preventDefault(),e.stopPropagation())}},o))};_.propTypes={name:d().string.isRequired,label:d().string};const x=_},4768:(e,t,r)=>{r.d(t,{default:()=>v});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619);const d=require("@mui/icons-material/Clear");var p=r.n(d),b=r(3294);const f=["name","label","placeholder","children","isClearable"],y=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,u=o()(e,f);const[c,d,y]=(0,b.useField)(t),v=(null==c?void 0:c.value)&&""!==c.value||Boolean(l);return s().createElement(m.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&s().createElement(m.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:v},r),s().createElement(m.Select,n()({name:t,id:t},c,{labelId:`${t}-label`,label:r,notched:v,displayEmpty:!0,renderValue:e=>e&&""!==e?e:s().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&c.value?s().createElement(m.InputAdornment,{position:"end",sx:{mr:2}},s().createElement(m.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),y.setValue("")}},s().createElement(p(),{fontSize:"small"}))):null},u),a),d.touched&&d.error&&s().createElement(m.FormHelperText,null,d.error))};y.propTypes={name:c().string.isRequired,children:c().node.isRequired,placeholder:c().string,isClearable:c().bool};const v=y},9314:(e,t,r)=>{r.d(t,{default:()=>f});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),s=r.n(i),u=r(9825),c=r.n(u),m=r(8619),d=r(3294);const p=["name","label","maxLength","required"],b=e=>{var t;let{name:r,label:l,maxLength:a,required:i=!1}=e,u=o()(e,p);const[c,b]=(0,d.useField)(r),f=(null===(t=c.value)||void 0===t?void 0:t.length)||0;let y="";return l&&(y=i?`${l} *`:l),s().createElement(m.Box,null,s().createElement(m.TextField,n()({name:r,label:y},c,{onBlur:c.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},u)),a&&s().createElement(m.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-f+" characters left"))};b.propTypes={name:c().string.isRequired,label:c().string,maxLength:c().number,required:c().bool};const f=b},5480:(e,t,r)=>{r.d(t,{default:()=>d});var l=r(2015),n=r.n(l),a=r(9825),o=r.n(a),i=r(4),s=r(5643);const u=require("@mui/x-date-pickers/TimePicker");var c=r(3294);const m=({name:e,label:t,minTime:r,maxTime:l,timeZone:a,disabled:o=!1})=>{const[m,d,p]=(0,c.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:s.AdapterMoment},n().createElement(u.TimePicker,{value:m.value,onChange:p.setValue,minTime:r,maxTime:l,timezone:a,label:a,views:["hours","minutes"],slotProps:{textField:{name:e,label:t,error:d.touched&&Boolean(d.error),helperText:d.touched&&d.error,size:"small",fullWidth:!0,disabled:o,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};m.propTypes={name:o().string.isRequired};const d=m},3209:(e,t,r)=>{r.d(t,{At:()=>o,OP:()=>n,eM:()=>s,fJ:()=>a,iC:()=>i,q9:()=>l,tv:()=>u});const l=100n,n=2,a=0,o=100,i=1e3,s={AMOUNT:"Amount",RATE:"Rate"},u=2},9558:(e,t,r)=>{r.d(t,{epochToMomentTimeZone:()=>a});var l=r(5812),n=r.n(l);r(8041);const a=(e,t)=>e?(e*=1e3,n()(e).tz(t)):e},8400:(e,t,r)=>{r.d(t,{currencyAmountFromCents:()=>a});var l=r(3209);const n={USD:"$",EUR:"€",GBP:"£",CAD:"C$",AUD:"A$",NZD:"NZ$",CHF:"CHF",ARS:"AR$",BRL:"R$",MXN:"MX$"};function a(e,t="USD"){if("number"!=typeof e||!Number.isInteger(e))throw new Error("cents must be an integer number");const r=function(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e){if(!Number.isSafeInteger(e))throw new Error("cents must be a safe integer Number (or pass BigInt/string).");t=BigInt(e)}else{if("string"!=typeof e)throw new Error("cents must be a bigint, number, or numeric string.");{const r=e.trim();if(!/^\d+$/.test(r))throw new Error("cents string must contain digits only (e.g., '1234').");t=BigInt(r)}}if(t<l.fJ)throw new Error("cents must be non-negative.");const r=t/l.q9,n=t%l.q9;return`${r.toString()}.${n.toString().padStart(l.OP,"0")}`}(e);return`${n[t]??"$"}${r}`}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},9247:e=>{e.exports=require("@mui/icons-material/Edit")},1519:e=>{e.exports=require("@mui/icons-material/Error")},3198:e=>{e.exports=require("@mui/icons-material/Settings")},8619:e=>{e.exports=require("@mui/material")},5643:e=>{e.exports=require("@mui/x-date-pickers/AdapterMoment")},4:e=>{e.exports=require("@mui/x-date-pickers/LocalizationProvider")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},8041:e=>{e.exports=require("urijs")}},t={};function r(l){var n=t[l];if(void 0!==n)return n.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,r),a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var l={};r.r(l),r.d(l,{GlobalQuantityField:()=>_,ItemTableField:()=>x.A,UnderlyingAlertNote:()=>j,default:()=>A,getCurrentApplicableRate:()=>$,isItemAvailable:()=>q});var n=r(2015),a=r.n(n),o=r(8619),i=r(9247),s=r.n(i),u=r(3198),c=r.n(u),m=r(6842),d=r.n(m),p=r(8400),b=r(3209),f=r(1116),y=r.n(f),v=r(3294),E=r(9314);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const _=({row:e,extraColumns:t,value:r,disabled:l=!1})=>{const o=`i-${e.form_item_id}-c-global-f-quantity`,[i,s,u]=(0,v.useField)(o),c=t.filter((e=>"Quantity"===e.type)).length>0;return(0,n.useEffect)((()=>{u.setValue(r),u.setTouched(!0)}),[r]),a().createElement(E.default,{name:o,fullWidth:!0,size:"small",type:"number",disabled:l,slotProps:{htmlInput:g({readOnly:c,min:0},e.quantity_limit_per_sponsor?{max:e.quantity_limit_per_sponsor}:{})},sx:c?{"& .MuiInputBase-root":{backgroundColor:"action.disabledBackground",color:"text.disabled",pointerEvents:"none"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"action.disabled"}}:{}})};var x=r(8360),T=r(4768),O=r(3300),C=r(5654),P=r(1519),w=r.n(P);const j=({showAdditionalItems:e})=>e?a().createElement(o.Typography,{variant:"body2",component:"p",sx:{color:"error.warning",fontSize:"0.8rem"}},a().createElement(w(),{color:"error",sx:{fontSize:"1rem",top:"0.2rem",position:"relative"}})," ",d().translate("sponsor_edit_form.additional_info")):null;var k=r(9558);const $=(e,t)=>{var r,l,n;const a=(0,k.epochToMomentTimeZone)(Math.floor(new Date/b.iC),e),o=null===(r=(0,k.epochToMomentTimeZone)(t.early_bird_end_date,e))||void 0===r?void 0:r.endOf("day"),i=null===(l=(0,k.epochToMomentTimeZone)(t.onsite_price_start_date,e))||void 0===l?void 0:l.startOf("day"),s=null===(n=(0,k.epochToMomentTimeZone)(t.onsite_price_end_date,e))||void 0===n?void 0:n.endOf("day");return o&&a.isSameOrBefore(o)?"early_bird":i&&a.isSameOrBefore(i)?"standard":!s||a.isSameOrBefore(s)?"onsite":"expired"},q=(e,t)=>{var r;return null!=(null===(r=e.rates)||void 0===r?void 0:r[t])},A=({data:e,currentApplicableRate:t,timeZone:r,values:l,onNotesClick:i,onSettingsClick:u})=>{var m,f;const y=JSON.stringify(l),v=(null===(m=e[0])||void 0===m||null===(f=m.meta_fields)||void 0===f?void 0:f.filter((e=>"Form"===e.class_field)))||[],E=v.length+10,h=(0,n.useCallback)((e=>{const t=v.filter((e=>"Quantity"===e.type)),r=l[`i-${e.form_item_id}-c-global-f-quantity`],n=t.reduce(((t,r)=>(t>0?t:1)*((null==l?void 0:l[`i-${e.form_item_id}-c-${r.class_field}-f-${r.type_id}`])||0)),0);return t.length>0?n:r}),[y,v]),g=e=>{const r=l[`i-${e.form_item_id}-c-global-f-quantity`]||h(e);if("expired"===t)return 0;const n=l[`i-${e.form_item_id}-c-global-f-custom_rate`]||e.rates[t];return null==n||null==r?0:r*n},P=e=>e.meta_fields.filter((e=>"Item"===e.class_field)).length>0,w=e=>{const t=e.meta_fields.filter((e=>"Item"===e.class_field&&e.is_required)),r=t.some((t=>{const r=l[`i-${e.form_item_id}-c-item-f-${t.type_id}`];return null==r||""===r}));return t.length>0&&r},k=e=>null==e?d().translate("general.n_a"):(0,p.currencyAmountFromCents)(e),$=(0,n.useMemo)((()=>{const t=e.reduce(((e,t)=>e+g(t)),0),r=l.discount_type===b.eM.AMOUNT?l.discount_amount:t*(l.discount_amount/b.At/b.At);return t-Math.round(r)}),[e,y,t]);return a().createElement(o.TableContainer,{component:o.Paper},a().createElement(o.Table,null,a().createElement(o.TableHead,null,a().createElement(o.TableRow,{sx:{backgroundColor:"#EAEDF4"}},a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.code")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.description")),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.custom_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.early_bird_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.standard_rate")),a().createElement(o.TableCell,null,d().translate("sponsor_edit_form.onsite_rate")),v.map((e=>a().createElement(o.TableCell,{key:`colhead-${e.type_id}`},e.name))),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.qty")),a().createElement(o.TableCell,{sx:{minWidth:40}}),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.total")),a().createElement(o.TableCell,{sx:{minWidth:120}},d().translate("sponsor_edit_form.notes")))),a().createElement(o.TableBody,null,e.map((e=>a().createElement(o.TableRow,{key:`datarow-${e.form_item_id}`},a().createElement(o.TableCell,null,e.code),a().createElement(o.TableCell,{sx:{position:"relative"}},a().createElement("div",null,e.name),a().createElement(j,{showAdditionalItems:P(e)&&w(e)})),a().createElement(o.TableCell,null,a().createElement(O.default,{name:`i-${e.form_item_id}-c-global-f-custom_rate`,fullWidth:!0,label:"",size:"small",inCents:!0,inputProps:{step:.01}})),a().createElement(o.TableCell,{sx:{opacity:"early_bird"===t?1:"38%"}},k(e.rates.early_bird)),a().createElement(o.TableCell,{sx:{opacity:"standard"===t?1:"38%"}},k(e.rates.standard)),a().createElement(o.TableCell,{sx:{opacity:"onsite"===t?1:"38%"}},k(e.rates.onsite)),v.map((t=>a().createElement(o.TableCell,{key:`datacell-${e.form_item_id}-${t.type_id}`,sx:{minWidth:200}},a().createElement(x.A,{field:t,rowId:e.form_item_id,timeZone:r})))),a().createElement(o.TableCell,null,a().createElement(_,{row:e,extraColumns:v,value:h(e)})),a().createElement(o.TableCell,{align:"center"},P(e)&&a().createElement(o.IconButton,{size:"small","aria-label":"settings",onClick:()=>(e=>{u(e)})(e)},a().createElement(c(),{fontSize:"large",color:"warning"}))),a().createElement(o.TableCell,null,(0,p.currencyAmountFromCents)(g(e))),a().createElement(o.TableCell,{align:"center"},a().createElement(o.IconButton,{size:"large","aria-label":"edit",onClick:()=>(e=>{i(e)})(e)},a().createElement(s(),{fontSize:"large"})))))),a().createElement(o.TableRow,null,a().createElement(o.TableCell,{sx:{fontWeight:500}},d().translate("sponsor_edit_form.discount")),new Array(E-5).fill(0).map(((e,t)=>a().createElement(o.TableCell,{key:`${t}-discountcell`}))),a().createElement(o.TableCell,null,a().createElement(T.default,{name:"discount_type",label:"",size:"small"},Object.values(b.eM).map((e=>a().createElement(o.MenuItem,{key:`ddopt-${e}`,value:e},e))))),a().createElement(o.TableCell,null),a().createElement(o.TableCell,null,a().createElement(C.default,{name:"discount_amount",discountType:l.discount_type,fullWidth:!0,label:"",size:"small",inCents:!0})),a().createElement(o.TableCell,null)),a().createElement(o.TableRow,null,a().createElement(o.TableCell,{sx:{fontWeight:500}},d().translate("sponsor_edit_form.total_on_caps")),new Array(E-3).fill(0).map(((e,t)=>a().createElement(o.TableCell,{key:`${t}-totalcell`}))),a().createElement(o.TableCell,{sx:{fontWeight:500}},(0,p.currencyAmountFromCents)($)),a().createElement(o.TableCell,null)))))};return l})()));
2
2
  //# sourceMappingURL=form-item-table.js.map