openstack-uicore-foundation 5.0.36-beta.2 → 5.0.37-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/components/index.js +1 -1
  2. package/lib/components/index.js.map +1 -1
  3. package/lib/components/inputs/upload-input-v2.js +1 -1
  4. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  5. package/lib/components/inputs/upload-input-v3.js +1 -1
  6. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  7. package/lib/components/mui/bulk-edit-table.js +1 -1
  8. package/lib/components/mui/bulk-edit-table.js.map +1 -1
  9. package/lib/components/mui/dropdown.js +1 -1
  10. package/lib/components/mui/dropdown.js.map +1 -1
  11. package/lib/components/mui/editable-table.js +1 -1
  12. package/lib/components/mui/editable-table.js.map +1 -1
  13. package/lib/components/mui/form-item-table.js +1 -1
  14. package/lib/components/mui/form-item-table.js.map +1 -1
  15. package/lib/components/mui/formik-inputs/async-select.js +1 -1
  16. package/lib/components/mui/formik-inputs/async-select.js.map +1 -1
  17. package/lib/components/mui/formik-inputs/dropdown-checkbox.js +1 -1
  18. package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
  19. package/lib/components/mui/formik-inputs/dropdown-radio.js +1 -1
  20. package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
  21. package/lib/components/mui/formik-inputs/select-v2.js +1 -1
  22. package/lib/components/mui/formik-inputs/select-v2.js.map +1 -1
  23. package/lib/components/mui/formik-inputs/upload.js +1 -1
  24. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  25. package/lib/components/mui/grid-filter.js +1 -1
  26. package/lib/components/mui/grid-filter.js.map +1 -1
  27. package/lib/components/mui/item-settings-modal.js +1 -1
  28. package/lib/components/mui/item-settings-modal.js.map +1 -1
  29. package/lib/components/mui/search-input.js +1 -1
  30. package/lib/components/mui/search-input.js.map +1 -1
  31. package/lib/components/mui/sortable-table.js +1 -1
  32. package/lib/components/mui/sortable-table.js.map +1 -1
  33. package/lib/components/mui/table/custom-table-pagination.js +1 -1
  34. package/lib/components/mui/table/custom-table-pagination.js.map +1 -1
  35. package/lib/components/mui/table.js +1 -1
  36. package/lib/components/mui/table.js.map +1 -1
  37. package/lib/components/mui/upload-dialog.js +1 -1
  38. package/lib/components/mui/upload-dialog.js.map +1 -1
  39. package/lib/components/progressive-img.js +1 -1
  40. package/lib/components/progressive-img.js.map +1 -1
  41. package/lib/css/components/index.css.map +1 -1
  42. package/lib/css/components/mui/bulk-edit-table.css.map +1 -1
  43. package/lib/i18n.js +1 -1
  44. package/lib/i18n.js.map +1 -1
  45. package/lib/utils/theme.js +2 -0
  46. package/lib/utils/theme.js.map +1 -0
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/async-select.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,2DCTF,MASMC,EAAoB,G,WCTjCJ,EAAOD,QAAUM,QAAQ,wC,WCAzBL,EAAOD,QAAUM,QAAQ,iC,WCAzBL,EAAOD,QAAUM,QAAQ,gB,WCAzBL,EAAOD,QAAUM,QAAQ,S,WCAzBL,EAAOD,QAAUM,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaV,QAGrB,IAAIC,EAASM,EAAyBE,GAAY,CAGjDT,QAAS,CAAC,GAOX,OAHAY,EAAoBH,GAAUR,EAAQA,EAAOD,QAASQ,GAG/CP,EAAOD,OACf,C,MCrBAQ,EAAoBK,EAAKZ,IACxB,IAAIa,EA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,KAClC,QADwCZ,EACzDD,EAAOS,kBAAU,IAAAR,OAAA,EAAjBA,EAAmBS,gBAI1BI,WAAY,CAAEC,QAAQ,IAExBC,GAAI,CACF,uBAAwB,CACtBJ,MAAO,YACPK,QAAS,MAGb,EAEJC,aAAcA,CAACC,EAAOzB,GAAUR,cAC9BL,IAAAA,cAAA,KAAQsC,EACL7E,GAAYuC,IAAAA,cAACuC,EAAAA,SAAQ,CAACC,QAASnC,EAAU8B,GAAI,CAAEM,GAAI,KACnD5B,EAAO5C,QAGZ,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/formik-inputs/mui-formik-async-select.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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, { useState, useEffect } from \"react\";\nimport {\n Autocomplete,\n TextField,\n Checkbox,\n CircularProgress\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { DEBOUNCE_WAIT_250 } from \"../../../utils/constants\";\n\nconst MuiFormikAsyncAutocomplete = ({\n name,\n queryFunction,\n multiple = false,\n placeholder = \"Select...\",\n plainValue = false,\n hiddenOptions = [],\n formatOption = (item) => ({ value: item.id.toString(), label: item.name }),\n formatSelectedValue = null,\n queryParams = [],\n isMulti = false\n}) => {\n const [field, meta, helpers] = useField(name);\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n const [searchTerm, setSearchTerm] = useState(\"\");\n\n const value = field.value || (multiple ? [] : null);\n const error = meta.touched && meta.error;\n\n const fetchOptions = async (input = \"\") => {\n setLoading(true);\n try {\n await queryFunction(input, ...queryParams, (results) => {\n const normalized = results\n .filter((r) => !hiddenOptions.includes(r.id))\n .map(formatOption);\n setOptions(normalized);\n setLoading(false);\n });\n } catch (err) {\n console.error(\"Error fetching options:\", err);\n setLoading(false);\n }\n };\n\n useEffect(() => {\n if (searchTerm) {\n const delayDebounce = setTimeout(() => {\n fetchOptions(searchTerm);\n }, DEBOUNCE_WAIT_250);\n return () => clearTimeout(delayDebounce);\n }\n }, [searchTerm]);\n\n // preload empty\n useEffect(() => {\n fetchOptions(\"\");\n }, []);\n\n const handleChange = (event, selected) => {\n if (!multiple) {\n const selectedValue = plainValue ? selected?.value || \"\" : selected;\n helpers.setValue(selectedValue);\n return;\n }\n\n const selectedItems = plainValue\n ? selected.map((s) => s.value)\n : selected.map((s) =>\n formatSelectedValue\n ? formatSelectedValue(s)\n : { id: parseInt(s.value), name: s.label }\n );\n\n helpers.setValue(selectedItems);\n };\n\n return (\n <Autocomplete\n options={options}\n value={value}\n onChange={handleChange}\n loading={loading}\n multiple={isMulti}\n fullWidth\n getOptionLabel={(option) => option.label || \"\"}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onInputChange={(e, newInput) => setSearchTerm(newInput)}\n renderInput={(params) => (\n <TextField\n {...params}\n placeholder={placeholder}\n variant=\"outlined\"\n error={Boolean(error)}\n helperText={error || \"\"}\n slotProps={{\n input: {\n ...params.InputProps,\n endAdornment: (\n <>\n {loading && <CircularProgress color=\"inherit\" size={20} />}\n {params.InputProps?.endAdornment}\n </>\n )\n },\n inputLabel: { shrink: false }\n }}\n sx={{\n \"& input::placeholder\": {\n color: \"#00000061\",\n opacity: 1\n }\n }}\n />\n )}\n renderOption={(props, option, { selected }) => (\n <li {...props}>\n {multiple && <Checkbox checked={selected} sx={{ mr: 1 }} />}\n {option.label}\n </li>\n )}\n />\n );\n};\n\nexport default MuiFormikAsyncAutocomplete;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT_250","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","MuiFormikAsyncAutocomplete","name","queryFunction","multiple","placeholder","plainValue","hiddenOptions","formatOption","item","id","toString","label","formatSelectedValue","queryParams","isMulti","field","meta","helpers","useField","options","setOptions","useState","loading","setLoading","searchTerm","setSearchTerm","error","touched","fetchOptions","async","input","results","normalized","filter","includes","map","err","console","useEffect","delayDebounce","setTimeout","clearTimeout","React","Autocomplete","onChange","handleChange","event","selected","selectedValue","setValue","selectedItems","s","parseInt","fullWidth","getOptionLabel","option","isOptionEqualToValue","onInputChange","e","newInput","renderInput","params","_params$InputProps","TextField","_extends","variant","Boolean","helperText","slotProps","_objectSpread","InputProps","endAdornment","CircularProgress","color","size","inputLabel","shrink","sx","opacity","renderOption","props","Checkbox","checked","mr"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/async-select.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,2DCTF,MASMC,EAAoB,G,WCTjCJ,EAAOD,QAAUM,QAAQ,wC,WCAzBL,EAAOD,QAAUM,QAAQ,iC,WCAzBL,EAAOD,QAAUM,QAAQ,iD,WCAzBL,EAAOD,QAAUM,QAAQ,gB,WCAzBL,EAAOD,QAAUM,QAAQ,S,WCAzBL,EAAOD,QAAUM,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaV,QAGrB,IAAIC,EAASM,EAAyBE,GAAY,CAGjDT,QAAS,CAAC,GAOX,OAHAY,EAAoBH,GAAUR,EAAQA,EAAOD,QAASQ,GAG/CP,EAAOD,OACf,C,MCrBA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CACTtC,MAAKuC,EAAAA,EAAA,GACAP,EAAOQ,YAAU,IACpBC,aACE7B,IAAAA,cAAAA,IAAAA,SAAA,KACGpB,GAAWoB,IAAAA,cAAC8B,EAAAA,iBAAgB,CAACC,MAAM,UAAUC,KAAM,KAClC,QADwCX,EACzDD,EAAOQ,kBAAU,IAAAP,OAAA,EAAjBA,EAAmBQ,gBAI1BI,WAAY,CAAEC,QAAQ,IAExBC,GAAI,CACF,uBAAwB,CACtBJ,MAAO,YACPK,QAAS,MAGb,EAEJC,aAAcA,CAACC,EAAOxB,GAAUR,cAC9BN,IAAAA,cAAA,KAAQsC,EACLhF,GAAY0C,IAAAA,cAACuC,EAAAA,SAAQ,CAACC,QAASlC,EAAU6B,GAAI,CAAEM,GAAI,KACnD3B,EAAOhD,QAGRI,GACJ,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/formik-inputs/mui-formik-async-select.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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, { useState, useEffect } from \"react\";\nimport {\n Autocomplete,\n TextField,\n Checkbox,\n CircularProgress\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { DEBOUNCE_WAIT_250 } from \"../../../utils/constants\";\n\nconst MuiFormikAsyncAutocomplete = ({\n name,\n queryFunction,\n multiple = false,\n placeholder = \"Select...\",\n plainValue = false,\n hiddenOptions = [],\n formatOption = (item) => ({ value: item.id.toString(), label: item.name }),\n formatSelectedValue = null,\n queryParams = [],\n isMulti = false,\n ...rest\n}) => {\n const [field, meta, helpers] = useField(name);\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n const [searchTerm, setSearchTerm] = useState(\"\");\n\n const value = field.value || (multiple ? [] : null);\n const error = meta.touched && meta.error;\n\n const fetchOptions = async (input = \"\") => {\n setLoading(true);\n try {\n await queryFunction(input, ...queryParams, (results) => {\n const normalized = results\n .filter((r) => !hiddenOptions.includes(r.id))\n .map(formatOption);\n setOptions(normalized);\n setLoading(false);\n });\n } catch (err) {\n console.error(\"Error fetching options:\", err);\n setLoading(false);\n }\n };\n\n useEffect(() => {\n if (searchTerm) {\n const delayDebounce = setTimeout(() => {\n fetchOptions(searchTerm);\n }, DEBOUNCE_WAIT_250);\n return () => clearTimeout(delayDebounce);\n }\n }, [searchTerm]);\n\n // preload empty\n useEffect(() => {\n fetchOptions(\"\");\n }, []);\n\n const handleChange = (event, selected) => {\n if (!multiple) {\n const selectedValue = plainValue ? selected?.value || \"\" : selected;\n helpers.setValue(selectedValue);\n return;\n }\n\n const selectedItems = plainValue\n ? selected.map((s) => s.value)\n : selected.map((s) =>\n formatSelectedValue\n ? formatSelectedValue(s)\n : { id: parseInt(s.value), name: s.label }\n );\n\n helpers.setValue(selectedItems);\n };\n\n return (\n <Autocomplete\n options={options}\n value={value}\n onChange={handleChange}\n loading={loading}\n multiple={isMulti}\n fullWidth\n getOptionLabel={(option) => option.label || \"\"}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onInputChange={(e, newInput) => setSearchTerm(newInput)}\n renderInput={(params) => (\n <TextField\n {...params}\n placeholder={placeholder}\n variant=\"outlined\"\n error={Boolean(error)}\n helperText={error || \"\"}\n slotProps={{\n input: {\n ...params.InputProps,\n endAdornment: (\n <>\n {loading && <CircularProgress color=\"inherit\" size={20} />}\n {params.InputProps?.endAdornment}\n </>\n )\n },\n inputLabel: { shrink: false }\n }}\n sx={{\n \"& input::placeholder\": {\n color: \"#00000061\",\n opacity: 1\n }\n }}\n />\n )}\n renderOption={(props, option, { selected }) => (\n <li {...props}>\n {multiple && <Checkbox checked={selected} sx={{ mr: 1 }} />}\n {option.label}\n </li>\n )}\n {...rest}\n />\n );\n};\n\nexport default MuiFormikAsyncAutocomplete;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT_250","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","_ref","name","queryFunction","multiple","placeholder","plainValue","hiddenOptions","formatOption","item","id","toString","label","formatSelectedValue","queryParams","isMulti","rest","_objectWithoutProperties","_excluded","field","meta","helpers","useField","options","setOptions","useState","loading","setLoading","searchTerm","setSearchTerm","error","touched","fetchOptions","async","input","results","normalized","filter","includes","map","err","console","useEffect","delayDebounce","setTimeout","clearTimeout","React","Autocomplete","_extends","onChange","handleChange","event","selected","selectedValue","setValue","selectedItems","s","parseInt","fullWidth","getOptionLabel","option","isOptionEqualToValue","onInputChange","e","newInput","renderInput","params","_params$InputProps","TextField","variant","Boolean","helperText","slotProps","_objectSpread","InputProps","endAdornment","CircularProgress","color","size","inputLabel","shrink","sx","opacity","renderOption","props","Checkbox","checked","mr"],"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={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},2015:e=>{e.exports=require("react")}},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,{default:()=>b});var n=r(6031),a=r.n(n),o=r(2462),u=r.n(o),i=r(2015),c=r.n(i),s=r(8619),d=r(3294),p=r(6842),m=r.n(p);const v=["name","label","placeholder","options"],b=e=>{let{name:t,label:r,placeholder:l,options:n}=e,o=u()(e,v);const[i,p,b]=(0,d.useField)(t),f=l||m().translate("general.select_an_option"),x=n.every((({value:e})=>{var t;return null===(t=i.value)||void 0===t?void 0:t.includes(e)}));return c().createElement(s.FormControl,{fullWidth:!0,error:p.touched&&Boolean(p.error)},r&&c().createElement(s.InputLabel,{shrink:!0,id:`${t}-label`},r),c().createElement(s.Select,a()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,multiple:!0,value:i.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?x?b.setValue([]):b.setValue(n.map((e=>e.value))):b.setValue(t)},onBlur:i.onBlur,displayEmpty:!0},o,{renderValue:e=>{if(null==e||!e.length)return c().createElement("em",null,f);if(x)return m().translate("general.all");const t=n.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e));return t.join(", ")}}),c().createElement(s.MenuItem,{key:"all",value:"all"},c().createElement(s.Checkbox,{checked:x}),c().createElement(s.ListItemText,{primary:m().translate("general.all")})),c().createElement(s.Divider,{sx:{m:0}}),n.map((({label:e,value:t})=>{var r;return c().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},c().createElement(s.Checkbox,{checked:null===(r=i.value)||void 0===r?void 0:r.includes(t)}),c().createElement(s.ListItemText,{primary:e}))}))))};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={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},2015:e=>{e.exports=require("react")}},t={};function r(l){var a=t[l];if(void 0!==a)return a.exports;var n=t[l]={exports:{}};return e[l](n,n.exports,r),n.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,{default:()=>b});var a=r(6031),n=r.n(a),o=r(2462),u=r.n(o),i=r(2015),c=r.n(i),s=r(8619),d=r(3294),p=r(6842),m=r.n(p);const v=["name","label","placeholder","options"],b=e=>{let{name:t,label:r,placeholder:l,options:a}=e,o=u()(e,v);const[i,p,b]=(0,d.useField)(t),f=l||m().translate("placeholders.select"),x=a.every((({value:e})=>{var t;return null===(t=i.value)||void 0===t?void 0:t.includes(e)}));return c().createElement(s.FormControl,{fullWidth:!0,error:p.touched&&Boolean(p.error)},r&&c().createElement(s.InputLabel,{shrink:!0,id:`${t}-label`},r),c().createElement(s.Select,n()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,multiple:!0,value:i.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?x?b.setValue([]):b.setValue(a.map((e=>e.value))):b.setValue(t)},onBlur:i.onBlur,displayEmpty:!0},o,{renderValue:e=>{if(null==e||!e.length)return c().createElement("em",null,f);if(x)return m().translate("general.all");const t=a.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e));return t.join(", ")}}),c().createElement(s.MenuItem,{key:"all",value:"all"},c().createElement(s.Checkbox,{checked:x}),c().createElement(s.ListItemText,{primary:m().translate("general.all")})),c().createElement(s.Divider,{sx:{m:0}}),a.map((({label:e,value:t})=>{var r;return c().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},c().createElement(s.Checkbox,{checked:null===(r=i.value)||void 0===r?void 0:r.includes(t)}),c().createElement(s.ListItemText,{primary:e}))}))))};return l})()));
2
2
  //# sourceMappingURL=dropdown-checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/dropdown-checkbox.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,S,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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leDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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};","/**\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 Checkbox,\n Divider,\n FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownCheckbox = ({ name, label, placeholder, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\n const finalPlaceholder = placeholder || T.translate(\"general.select_an_option\");\n const allSelected = options.every(({ value }) =>\n field.value?.includes(value)\n );\n\n const handleChange = (event) => {\n const { value } = event.target;\n\n // If \"all\" was clicked\n if (value.includes(\"all\")) {\n if (allSelected) {\n helpers.setValue([]);\n } else {\n helpers.setValue(options.map((opt) => opt.value));\n }\n } else {\n helpers.setValue(value);\n }\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\n multiple\n value={field.value || []}\n onChange={handleChange}\n onBlur={field.onBlur}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected?.length) {\n return <em>{finalPlaceholder}</em>;\n }\n if (allSelected) {\n return T.translate(\"general.all\");\n }\n const selectedNames = options\n .filter(({ value }) => selected?.includes(value))\n .map(({ label }) => label);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={allSelected} />\n <ListItemText primary={T.translate(\"general.all\")} />\n </MenuItem>\n <Divider sx={{ m: 0 }} />\n {options.map(({ label, value }) => (\n <MenuItem key={`ckbx-ddl-${value}`} value={value}>\n <Checkbox checked={field.value?.includes(value)} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownCheckbox;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","_ref","name","label","placeholder","options","rest","_objectWithoutProperties","_excluded","field","meta","helpers","useField","finalPlaceholder","T","allSelected","every","_field$value","includes","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","shrink","id","Select","_extends","variant","labelId","multiple","onChange","event","target","setValue","map","opt","onBlur","displayEmpty","renderValue","selected","length","selectedNames","filter","join","MenuItem","Checkbox","checked","ListItemText","primary","Divider","sx","m","_field$value2"],"sourceRoot":""}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zCqC,KAAI,EAAGlC,WAAYA,IACtB,OAAOyC,EAAcE,KAAK,KAAK,IAGjC3B,IAAAA,cAAC4B,EAAAA,SAAQ,CAAC7D,IAAI,MAAMc,MAAM,OACxBmB,IAAAA,cAAC6B,EAAAA,SAAQ,CAACC,QAASlC,IACnBI,IAAAA,cAAC+B,EAAAA,aAAY,CAACC,QAASrC,IAAAA,UAAY,kBAErCK,IAAAA,cAACiC,EAAAA,QAAO,CAACC,GAAI,CAAEC,EAAG,KACjBjD,EAAQgC,KAAI,EAAGlC,QAAOH,YAAO,IAAAuD,EAAA,OAC5BpC,IAAAA,cAAC4B,EAAAA,SAAQ,CAAC7D,IAAK,YAAYc,IAASA,MAAOA,GACzCmB,IAAAA,cAAC6B,EAAAA,SAAQ,CAACC,QAAoB,QAAbM,EAAE9C,EAAMT,aAAK,IAAAuD,OAAA,EAAXA,EAAarC,SAASlB,KACzCmB,IAAAA,cAAC+B,EAAAA,aAAY,CAACC,QAAShD,IACd,KAGH,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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};","/**\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 Checkbox,\n Divider,\n FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownCheckbox = ({ name, label, placeholder, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\n const finalPlaceholder = placeholder || T.translate(\"placeholders.select\");\n const allSelected = options.every(({ value }) =>\n field.value?.includes(value)\n );\n\n const handleChange = (event) => {\n const { value } = event.target;\n\n // If \"all\" was clicked\n if (value.includes(\"all\")) {\n if (allSelected) {\n helpers.setValue([]);\n } else {\n helpers.setValue(options.map((opt) => opt.value));\n }\n } else {\n helpers.setValue(value);\n }\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\n multiple\n value={field.value || []}\n onChange={handleChange}\n onBlur={field.onBlur}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected?.length) {\n return <em>{finalPlaceholder}</em>;\n }\n if (allSelected) {\n return T.translate(\"general.all\");\n }\n const selectedNames = options\n .filter(({ value }) => selected?.includes(value))\n .map(({ label }) => label);\n return selectedNames.join(\", \");\n }}\n >\n <MenuItem key=\"all\" value=\"all\">\n <Checkbox checked={allSelected} />\n <ListItemText primary={T.translate(\"general.all\")} />\n </MenuItem>\n <Divider sx={{ m: 0 }} />\n {options.map(({ label, value }) => (\n <MenuItem key={`ckbx-ddl-${value}`} value={value}>\n <Checkbox checked={field.value?.includes(value)} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownCheckbox;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","_ref","name","label","placeholder","options","rest","_objectWithoutProperties","_excluded","field","meta","helpers","useField","finalPlaceholder","T","allSelected","every","_field$value","includes","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","shrink","id","Select","_extends","variant","labelId","multiple","onChange","event","target","setValue","map","opt","onBlur","displayEmpty","renderValue","selected","length","selectedNames","filter","join","MenuItem","Checkbox","checked","ListItemText","primary","Divider","sx","m","_field$value2"],"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={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},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 a=t[o]={exports:{}};return e[o](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 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:()=>b});var n=r(6031),a=r.n(n),l=r(2462),i=r.n(l),u=r(2015),d=r.n(u),p=r(8619),s=r(3294),c=r(6842),m=r.n(c);const f=["name","label","options","placeholder"],b=e=>{let{name:t,label:r,options:o,placeholder:n}=e,l=i()(e,f);const u=n||m().translate("general.select_an_option"),[c,b,v]=(0,s.useField)(t);return d().createElement(p.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},r&&d().createElement(p.InputLabel,{shrink:!0,id:`${t}-label`},r),d().createElement(p.Select,a()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},l,{renderValue:e=>{if(!e)return d().createElement("em",null,u);const t=o.find((({value:t})=>t===e));return t?t.label:""}}),o.map((({label:e,value:t})=>d().createElement(p.MenuItem,{key:`radio-ddl-${t}`,value:t},d().createElement(p.Radio,{checked:c.value===t}),d().createElement(p.ListItemText,{primary:e}))))))};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={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},2015:e=>{e.exports=require("react")}},t={};function r(o){var a=t[o];if(void 0!==a)return a.exports;var l=t[o]={exports:{}};return e[o](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 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:()=>b});var a=r(6031),l=r.n(a),n=r(2462),i=r.n(n),u=r(2015),d=r.n(u),p=r(8619),s=r(3294),c=r(6842),m=r.n(c);const f=["name","label","options","placeholder"],b=e=>{let{name:t,label:r,options:o,placeholder:a}=e,n=i()(e,f);const u=a||m().translate("placeholders.select"),[c,b,v]=(0,s.useField)(t);return d().createElement(p.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},r&&d().createElement(p.InputLabel,{shrink:!0,id:`${t}-label`},r),d().createElement(p.Select,l()({variant:"outlined",name:t,label:r,labelId:`${t}-label`,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},n,{renderValue:e=>{if(!e)return d().createElement("em",null,u);const t=o.find((({value:t})=>t===e));return t?t.label:""}}),o.map((({label:e,value:t})=>d().createElement(p.MenuItem,{key:`radio-ddl-${t}`,value:t},d().createElement(p.Radio,{checked:c.value===t}),d().createElement(p.ListItemText,{primary:e}))))))};return o})()));
2
2
  //# sourceMappingURL=dropdown-radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/dropdown-radio.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,EA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MAAMC,EACJJ,GAAeK,IAAAA,UAAY,6BACtBC,EAAOC,EAAMC,IAAWC,EAAAA,EAAAA,UAASZ,GAMxC,OACEa,IAAAA,cAACC,EAAAA,YAAW,CAACC,WAAS,EAACC,MAAON,EAAKO,SAAWC,QAAQR,EAAKM,QACxDf,GACCY,IAAAA,cAACM,EAAAA,WAAU,CAACC,QAAM,EAACC,GAAI,GAAGrB,WACvBC,GAGLY,IAAAA,cAACS,EAAAA,OAAMC,IAAA,CACLC,QAAQ,WACRxB,KAAMA,EACNC,MAAOA,EACPwB,QAAS,GAAGzB,UACZF,MAAOW,EAAMX,OAAS,GACtB4B,SAjBgBC,IACpBhB,EAAQiB,SAASD,EAAME,OAAO/B,MAAM,EAiBhCgC,cAAY,GAER1B,EAAI,CACR2B,YAAcC,IACZ,IAAKA,EACH,OAAOnB,IAAAA,cAAA,UAAKN,GAEd,MAAM0B,EAAiB/B,EAAQgC,MAC7B,EAAGpC,WAAYA,IAAUkC,IAE3B,OAAOC,EAAiBA,EAAehC,MAAQ,EAAE,IAGlDC,EAAQiC,KAAI,EAAGlC,QAAOH,WACrBe,IAAAA,cAACuB,EAAAA,SAAQ,CAACpD,IAAK,aAAac,IAASA,MAAOA,GAC1Ce,IAAAA,cAACwB,EAAAA,MAAK,CAACC,QAAS7B,EAAMX,QAAUA,IAChCe,IAAAA,cAAC0B,EAAAA,aAAY,CAACC,QAASvC,QAIjB,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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};","/**\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 FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownRadio = ({ name, label, options, placeholder, ...rest }) => {\n const finalPlaceholder =\n placeholder || T.translate(\"general.select_an_option\");\n const [field, meta, helpers] = useField(name);\n\n const handleChange = (event) => {\n helpers.setValue(event.target.value);\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\n value={field.value || \"\"}\n onChange={handleChange}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected) {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map(({ label, value }) => (\n <MenuItem key={`radio-ddl-${value}`} value={value}>\n <Radio checked={field.value === value} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownRadio;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","_ref","name","label","options","placeholder","rest","_objectWithoutProperties","_excluded","finalPlaceholder","T","field","meta","helpers","useField","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","shrink","id","Select","_extends","variant","labelId","onChange","event","setValue","target","displayEmpty","renderValue","selected","selectedOption","find","map","MenuItem","Radio","checked","ListItemText","primary"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/dropdown-radio.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,S,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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A,EACH,OAAOnB,IAAAA,cAAA,UAAKN,GAEd,MAAM0B,EAAiB/B,EAAQgC,MAC7B,EAAGpC,WAAYA,IAAUkC,IAE3B,OAAOC,EAAiBA,EAAehC,MAAQ,EAAE,IAGlDC,EAAQiC,KAAI,EAAGlC,QAAOH,WACrBe,IAAAA,cAACuB,EAAAA,SAAQ,CAACpD,IAAK,aAAac,IAASA,MAAOA,GAC1Ce,IAAAA,cAACwB,EAAAA,MAAK,CAACC,QAAS7B,EAAMX,QAAUA,IAChCe,IAAAA,cAAC0B,EAAAA,aAAY,CAACC,QAASvC,QAIjB,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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};","/**\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 FormControl,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n Select\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\n\nconst MuiFormikDropdownRadio = ({ name, label, options, placeholder, ...rest }) => {\n const finalPlaceholder =\n placeholder || T.translate(\"placeholders.select\");\n const [field, meta, helpers] = useField(name);\n\n const handleChange = (event) => {\n helpers.setValue(event.target.value);\n };\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel shrink id={`${name}-label`}>\n {label}\n </InputLabel>\n )}\n <Select\n variant=\"outlined\"\n name={name}\n label={label}\n labelId={`${name}-label`}\n value={field.value || \"\"}\n onChange={handleChange}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (!selected) {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map(({ label, value }) => (\n <MenuItem key={`radio-ddl-${value}`} value={value}>\n <Radio checked={field.value === value} />\n <ListItemText primary={label} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport default MuiFormikDropdownRadio;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","_ref","name","label","options","placeholder","rest","_objectWithoutProperties","_excluded","finalPlaceholder","T","field","meta","helpers","useField","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","shrink","id","Select","_extends","variant","labelId","onChange","event","setValue","target","displayEmpty","renderValue","selected","selectedOption","find","map","MenuItem","Radio","checked","ListItemText","primary"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var l=r[o]={exports:{}};return e[o](l,l.exports,t),l.exports}(()=>{t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r}})(),(()=>{t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})}})(),(()=>{t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};t.r(o),t.d(o,{default:()=>v});var n=t(6031),l=t.n(n),a=t(2462),i=t.n(a),u=t(2015),p=t.n(u),s=t(9825),c=t.n(s),d=t(6842),m=t.n(d),f=t(8619),b=t(3294);const y=["name","label","placeholder","options"],x=e=>{let{name:r,label:t,placeholder:o,options:n}=e,a=i()(e,y);const[u,s]=(0,b.useField)(r),c=o||m().translate("general.select_an_option");return p().createElement(f.FormControl,{fullWidth:!0,error:s.touched&&Boolean(s.error)},t&&p().createElement(f.InputLabel,{id:`${r}-label`},t),p().createElement(f.Select,l()({name:r,label:t,labelId:`${r}-label`,displayEmpty:!0},u,a,{renderValue:e=>{if(null==e||""===e)return p().createElement("em",null,c);const r=n.find((({value:r})=>r===e));return r?r.label:""}}),n.map((e=>p().createElement(f.MenuItem,{key:`selectop-${e.value}`,value:e.value},e.label)))),s.touched&&s.error&&p().createElement(f.FormHelperText,null,s.error))};x.propTypes={name:c().string.isRequired,options:c().array.isRequired};const v=x;return o})()));
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var l=r[o]={exports:{}};return e[o](l,l.exports,t),l.exports}(()=>{t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r}})(),(()=>{t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})}})(),(()=>{t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};t.r(o),t.d(o,{default:()=>v});var n=t(6031),l=t.n(n),a=t(2462),u=t.n(a),i=t(2015),p=t.n(i),s=t(9825),c=t.n(s),d=t(6842),m=t.n(d),f=t(8619),b=t(3294);const y=["name","label","placeholder","options"],x=e=>{let{name:r,label:t,placeholder:o,options:n}=e,a=u()(e,y);const[i,s]=(0,b.useField)(r),c=o||m().translate("placeholders.select");return p().createElement(f.FormControl,{fullWidth:!0,error:s.touched&&Boolean(s.error)},t&&p().createElement(f.InputLabel,{id:`${r}-label`},t),p().createElement(f.Select,l()({name:r,label:t,labelId:`${r}-label`,displayEmpty:!0},i,a,{renderValue:e=>{if(null==e||""===e)return p().createElement("em",null,c);const r=n.find((({value:r})=>r===e));return r?r.label:""}}),n.map((e=>p().createElement(f.MenuItem,{key:`selectop-${e.value}`,value:e.value},e.label)))),s.touched&&s.error&&p().createElement(f.FormHelperText,null,s.error))};x.propTypes={name:c().string.isRequired,options:c().array.isRequired};const v=x;return o})()));
2
2
  //# sourceMappingURL=select-v2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/select-v2.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,S,WCAzBJ,EAAOD,QAAUK,QAAQ,6B,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,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A,SAAQ,CAAC/C,IAAK,YAAY8C,EAAGhC,QAASA,MAAOgC,EAAGhC,OAC9CgC,EAAG5B,UAITO,EAAKQ,SAAWR,EAAKO,OACpBH,IAAAA,cAACmB,EAAAA,eAAc,KAAEvB,EAAKO,OAEZ,EAIlBjB,EAAkBkC,UAAY,CAC5BhC,KAAMiC,IAAAA,OAAiBC,WACvB/B,QAAS8B,IAAAA,MAAgBC,YAG3B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select-v2.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n MenuItem,\n InputLabel\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelectV2 = ({ name, label, placeholder, options, ...rest }) => {\n const [field, meta] = useField(name);\n const finalPlaceholder =\n placeholder || T.translate(\"general.select_an_option\");\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && <InputLabel id={`${name}-label`}>{label}</InputLabel>}\n <Select\n name={name}\n label={label}\n labelId={`${name}-label`}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (selected == null || selected === \"\") {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map((op) => (\n <MenuItem key={`selectop-${op.value}`} value={op.value}>\n {op.label}\n </MenuItem>\n ))}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelectV2.propTypes = {\n name: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired\n};\n\nexport default MuiFormikSelectV2;\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","MuiFormikSelectV2","_ref","name","label","placeholder","options","rest","_objectWithoutProperties","_excluded","field","meta","useField","finalPlaceholder","T","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","id","Select","_extends","labelId","displayEmpty","renderValue","selected","selectedOption","find","map","op","MenuItem","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/select-v2.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,iC,WCA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zBU,EACJR,GAAeS,IAAAA,UAAY,uBAE7B,OACEC,IAAAA,cAACC,EAAAA,YAAW,CAACC,WAAS,EAACC,MAAOP,EAAKQ,SAAWC,QAAQT,EAAKO,QACxDd,GAASW,IAAAA,cAACM,EAAAA,WAAU,CAACC,GAAI,GAAGnB,WAAeC,GAC5CW,IAAAA,cAACQ,EAAAA,OAAMC,IAAA,CACLrB,KAAMA,EACNC,MAAOA,EACPqB,QAAS,GAAGtB,UACZuB,cAAY,GAERhB,EAEAH,EAAI,CACRoB,YAAcC,IACZ,GAAgB,MAAZA,GAAiC,KAAbA,EACtB,OAAOb,IAAAA,cAAA,UAAKF,GAEd,MAAMgB,EAAiBvB,EAAQwB,MAC7B,EAAG9B,WAAYA,IAAU4B,IAE3B,OAAOC,EAAiBA,EAAezB,MAAQ,EAAE,IAGlDE,EAAQyB,KAAKC,GACZjB,IAAAA,cAACkB,EAAAA,SAAQ,CAAC/C,IAAK,YAAY8C,EAAGhC,QAASA,MAAOgC,EAAGhC,OAC9CgC,EAAG5B,UAITO,EAAKQ,SAAWR,EAAKO,OACpBH,IAAAA,cAACmB,EAAAA,eAAc,KAAEvB,EAAKO,OAEZ,EAIlBjB,EAAkBkC,UAAY,CAC5BhC,KAAMiC,IAAAA,OAAiBC,WACvB/B,QAAS8B,IAAAA,MAAgBC,YAG3B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select-v2.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n MenuItem,\n InputLabel\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelectV2 = ({ name, label, placeholder, options, ...rest }) => {\n const [field, meta] = useField(name);\n const finalPlaceholder =\n placeholder || T.translate(\"placeholders.select\");\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && <InputLabel id={`${name}-label`}>{label}</InputLabel>}\n <Select\n name={name}\n label={label}\n labelId={`${name}-label`}\n displayEmpty\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n renderValue={(selected) => {\n if (selected == null || selected === \"\") {\n return <em>{finalPlaceholder}</em>;\n }\n const selectedOption = options.find(\n ({ value }) => value === selected\n );\n return selectedOption ? selectedOption.label : \"\";\n }}\n >\n {options.map((op) => (\n <MenuItem key={`selectop-${op.value}`} value={op.value}>\n {op.label}\n </MenuItem>\n ))}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelectV2.propTypes = {\n name: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired\n};\n\nexport default MuiFormikSelectV2;\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","MuiFormikSelectV2","_ref","name","label","placeholder","options","rest","_objectWithoutProperties","_excluded","field","meta","useField","finalPlaceholder","T","React","FormControl","fullWidth","error","touched","Boolean","InputLabel","id","Select","_extends","labelId","displayEmpty","renderValue","selected","selectedOption","find","map","op","MenuItem","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}