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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/.codegraph/config.json +140 -0
  2. package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +83 -0
  3. package/lib/components/ajaxloader.js.map +1 -1
  4. package/lib/components/attendance-tracker.js +1 -1
  5. package/lib/components/attendance-tracker.js.map +1 -1
  6. package/lib/components/bulk-actions-selector.js.map +1 -1
  7. package/lib/components/circle-button.js.map +1 -1
  8. package/lib/components/clock.js +1 -1
  9. package/lib/components/clock.js.map +1 -1
  10. package/lib/components/exclusive-wrapper.js.map +1 -1
  11. package/lib/components/extra-questions-mui.js.map +1 -1
  12. package/lib/components/extra-questions.js +1 -1
  13. package/lib/components/extra-questions.js.map +1 -1
  14. package/lib/components/form-validation.js.map +1 -1
  15. package/lib/components/forms/rsvp-form.js.map +1 -1
  16. package/lib/components/forms/simple-form.js +1 -1
  17. package/lib/components/forms/simple-form.js.map +1 -1
  18. package/lib/components/free-text-search.js +1 -1
  19. package/lib/components/free-text-search.js.map +1 -1
  20. package/lib/components/google-map.js +1 -1
  21. package/lib/components/google-map.js.map +1 -1
  22. package/lib/components/index.js +1 -1
  23. package/lib/components/index.js.map +1 -1
  24. package/lib/components/inputs/access-levels-input.js +1 -1
  25. package/lib/components/inputs/access-levels-input.js.map +1 -1
  26. package/lib/components/inputs/action-dropdown.js.map +1 -1
  27. package/lib/components/inputs/attendee-input.js +1 -1
  28. package/lib/components/inputs/attendee-input.js.map +1 -1
  29. package/lib/components/inputs/checkbox-list.js.map +1 -1
  30. package/lib/components/inputs/company-input-v2.js +1 -1
  31. package/lib/components/inputs/company-input-v2.js.map +1 -1
  32. package/lib/components/inputs/company-input.js +1 -1
  33. package/lib/components/inputs/company-input.js.map +1 -1
  34. package/lib/components/inputs/country-dropdown.js +1 -1
  35. package/lib/components/inputs/country-dropdown.js.map +1 -1
  36. package/lib/components/inputs/country-input.js +1 -1
  37. package/lib/components/inputs/country-input.js.map +1 -1
  38. package/lib/components/inputs/datetimepicker.js.map +1 -1
  39. package/lib/components/inputs/dropdown.js.map +1 -1
  40. package/lib/components/inputs/editor-input-v2.js.map +1 -1
  41. package/lib/components/inputs/editor-input-v3.js.map +1 -1
  42. package/lib/components/inputs/editor-input.js.map +1 -1
  43. package/lib/components/inputs/event-input.js +1 -1
  44. package/lib/components/inputs/event-input.js.map +1 -1
  45. package/lib/components/inputs/free-multi-text-input.js.map +1 -1
  46. package/lib/components/inputs/group-input.js +1 -1
  47. package/lib/components/inputs/group-input.js.map +1 -1
  48. package/lib/components/inputs/grouped-dropdown.js.map +1 -1
  49. package/lib/components/inputs/language-input.js +1 -1
  50. package/lib/components/inputs/language-input.js.map +1 -1
  51. package/lib/components/inputs/member-input.js +1 -1
  52. package/lib/components/inputs/member-input.js.map +1 -1
  53. package/lib/components/inputs/operator-input.js.map +1 -1
  54. package/lib/components/inputs/organization-input.js +1 -1
  55. package/lib/components/inputs/organization-input.js.map +1 -1
  56. package/lib/components/inputs/promocode-input.js +1 -1
  57. package/lib/components/inputs/promocode-input.js.map +1 -1
  58. package/lib/components/inputs/radio-list.js.map +1 -1
  59. package/lib/components/inputs/registration-company-input.js +1 -1
  60. package/lib/components/inputs/registration-company-input.js.map +1 -1
  61. package/lib/components/inputs/speaker-input.js +1 -1
  62. package/lib/components/inputs/speaker-input.js.map +1 -1
  63. package/lib/components/inputs/sponsor-input.js +1 -1
  64. package/lib/components/inputs/sponsor-input.js.map +1 -1
  65. package/lib/components/inputs/stepped-select.js.map +1 -1
  66. package/lib/components/inputs/summit-days-select.js.map +1 -1
  67. package/lib/components/inputs/summit-input.js +1 -1
  68. package/lib/components/inputs/summit-input.js.map +1 -1
  69. package/lib/components/inputs/summit-venues-select.js.map +1 -1
  70. package/lib/components/inputs/tag-input.js +1 -1
  71. package/lib/components/inputs/tag-input.js.map +1 -1
  72. package/lib/components/inputs/text-input.js.map +1 -1
  73. package/lib/components/inputs/textarea-input.js.map +1 -1
  74. package/lib/components/inputs/ticket-types-input.js +1 -1
  75. package/lib/components/inputs/ticket-types-input.js.map +1 -1
  76. package/lib/components/inputs/upload-input-v2.js +1 -1
  77. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  78. package/lib/components/inputs/upload-input-v3.js +1 -1
  79. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  80. package/lib/components/inputs/upload-input.js.map +1 -1
  81. package/lib/components/mui/checkbox-list.js.map +1 -1
  82. package/lib/components/mui/chip-list.js.map +1 -1
  83. package/lib/components/mui/chip-notify.js +1 -1
  84. package/lib/components/mui/chip-notify.js.map +1 -1
  85. package/lib/components/mui/chip-select-input.js.map +1 -1
  86. package/lib/components/mui/confirm-dialog.js.map +1 -1
  87. package/lib/components/mui/custom-alert.js.map +1 -1
  88. package/lib/components/mui/dnd-list.js.map +1 -1
  89. package/lib/components/mui/dropdown-checkbox.js.map +1 -1
  90. package/lib/components/mui/editable-table.js +1 -1
  91. package/lib/components/mui/editable-table.js.map +1 -1
  92. package/lib/components/mui/form-item-table.js +1 -1
  93. package/lib/components/mui/form-item-table.js.map +1 -1
  94. package/lib/components/mui/formik-inputs/additional-input-list.js +1 -1
  95. package/lib/components/mui/formik-inputs/additional-input-list.js.map +1 -1
  96. package/lib/components/mui/formik-inputs/additional-input.js +1 -1
  97. package/lib/components/mui/formik-inputs/additional-input.js.map +1 -1
  98. package/lib/components/mui/formik-inputs/async-select.js.map +1 -1
  99. package/lib/components/mui/formik-inputs/checkbox-group.js.map +1 -1
  100. package/lib/components/mui/formik-inputs/checkbox.js.map +1 -1
  101. package/lib/components/mui/formik-inputs/company-input.js +1 -1
  102. package/lib/components/mui/formik-inputs/company-input.js.map +1 -1
  103. package/lib/components/mui/formik-inputs/datepicker.js.map +1 -1
  104. package/lib/components/mui/formik-inputs/discount-field.js.map +1 -1
  105. package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
  106. package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
  107. package/lib/components/mui/formik-inputs/file-size-field.js.map +1 -1
  108. package/lib/components/mui/formik-inputs/item-price-tiers.js +1 -1
  109. package/lib/components/mui/formik-inputs/item-price-tiers.js.map +1 -1
  110. package/lib/components/mui/formik-inputs/price-field.js.map +1 -1
  111. package/lib/components/mui/formik-inputs/quantity-field.js.map +1 -1
  112. package/lib/components/mui/formik-inputs/radio-group.js.map +1 -1
  113. package/lib/components/mui/formik-inputs/select-group.js.map +1 -1
  114. package/lib/components/mui/formik-inputs/select.js.map +1 -1
  115. package/lib/components/mui/formik-inputs/sponsor-input.js +1 -1
  116. package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
  117. package/lib/components/mui/formik-inputs/sponsorship-input.js +1 -1
  118. package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
  119. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js +1 -1
  120. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
  121. package/lib/components/mui/formik-inputs/summit-addon-select.js +1 -1
  122. package/lib/components/mui/formik-inputs/summit-addon-select.js.map +1 -1
  123. package/lib/components/mui/formik-inputs/switch.js.map +1 -1
  124. package/lib/components/mui/formik-inputs/textfield.js.map +1 -1
  125. package/lib/components/mui/formik-inputs/timepicker.js.map +1 -1
  126. package/lib/components/mui/formik-inputs/upload.js +1 -1
  127. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  128. package/lib/components/mui/global-confirm-dialog.js +2 -0
  129. package/lib/components/mui/global-confirm-dialog.js.map +1 -0
  130. package/lib/components/mui/infinite-table.js.map +1 -1
  131. package/lib/components/mui/item-settings-modal.js +1 -1
  132. package/lib/components/mui/item-settings-modal.js.map +1 -1
  133. package/lib/components/mui/menu-button.js.map +1 -1
  134. package/lib/components/mui/notes-modal.js +1 -1
  135. package/lib/components/mui/notes-modal.js.map +1 -1
  136. package/lib/components/mui/search-input.js.map +1 -1
  137. package/lib/components/mui/show-confirm-dialog.js +1 -1
  138. package/lib/components/mui/show-confirm-dialog.js.map +1 -1
  139. package/lib/components/mui/snackbar-notification.js +1 -1
  140. package/lib/components/mui/snackbar-notification.js.map +1 -1
  141. package/lib/components/mui/sortable-table.js +1 -1
  142. package/lib/components/mui/sortable-table.js.map +1 -1
  143. package/lib/components/mui/sponsor-addon-select.js +1 -1
  144. package/lib/components/mui/sponsor-addon-select.js.map +1 -1
  145. package/lib/components/mui/summit-addon-select.js +1 -1
  146. package/lib/components/mui/summit-addon-select.js.map +1 -1
  147. package/lib/components/mui/summits-dropdown.js +1 -1
  148. package/lib/components/mui/summits-dropdown.js.map +1 -1
  149. package/lib/components/mui/table.js +1 -1
  150. package/lib/components/mui/table.js.map +1 -1
  151. package/lib/components/progressive-img.js.map +1 -1
  152. package/lib/components/raw-html.js.map +1 -1
  153. package/lib/components/schedule-builder-view.js +1 -1
  154. package/lib/components/schedule-builder-view.js.map +1 -1
  155. package/lib/components/sections/panel.js.map +1 -1
  156. package/lib/components/simple-link-list.js.map +1 -1
  157. package/lib/components/sponsored-project-input.js +1 -1
  158. package/lib/components/sponsored-project-input.js.map +1 -1
  159. package/lib/components/summit-dropdown.js.map +1 -1
  160. package/lib/components/table-editable.js +1 -1
  161. package/lib/components/table-editable.js.map +1 -1
  162. package/lib/components/table-selectable.js.map +1 -1
  163. package/lib/components/table-sortable.js.map +1 -1
  164. package/lib/components/table.js.map +1 -1
  165. package/lib/components/video-stream.js.map +1 -1
  166. package/lib/css/components/index.css +1 -1
  167. package/lib/css/components/index.css.map +1 -1
  168. package/lib/i18n.js +1 -1
  169. package/lib/i18n.js.map +1 -1
  170. package/lib/models/index.js.map +1 -1
  171. package/lib/models/summit-event.js.map +1 -1
  172. package/lib/security/abstract-auth-callback-route-v2.js +1 -1
  173. package/lib/security/abstract-auth-callback-route-v2.js.map +1 -1
  174. package/lib/security/abstract-auth-callback-route.js +1 -1
  175. package/lib/security/abstract-auth-callback-route.js.map +1 -1
  176. package/lib/security/actions.js +1 -1
  177. package/lib/security/actions.js.map +1 -1
  178. package/lib/security/methods.js +1 -1
  179. package/lib/security/methods.js.map +1 -1
  180. package/lib/security/reducers.js +1 -1
  181. package/lib/security/reducers.js.map +1 -1
  182. package/lib/security/session-checker.js +1 -1
  183. package/lib/security/session-checker.js.map +1 -1
  184. package/lib/utils/actions.js +1 -1
  185. package/lib/utils/actions.js.map +1 -1
  186. package/lib/utils/fragment-parser.js.map +1 -1
  187. package/lib/utils/methods.js +1 -1
  188. package/lib/utils/methods.js.map +1 -1
  189. package/lib/utils/money.js.map +1 -1
  190. package/lib/utils/query-actions.js +1 -1
  191. package/lib/utils/query-actions.js.map +1 -1
  192. package/lib/utils/questions-set.js +1 -1
  193. package/lib/utils/questions-set.js.map +1 -1
  194. package/lib/utils/reducers.js +1 -1
  195. package/lib/utils/reducers.js.map +1 -1
  196. package/lib/utils/use-fit-text.js.map +1 -1
  197. package/package.json +1 -9
  198. package/.claude/settings.local.json +0 -12
  199. package/lib/components/mui/alert-button.js +0 -2
  200. package/lib/components/mui/alert-button.js.map +0 -1
  201. package/lib/components/mui/alert-modal.js +0 -2
  202. package/lib/components/mui/alert-modal.js.map +0 -1
  203. package/lib/components/mui/auth-button.js +0 -2
  204. package/lib/components/mui/auth-button.js.map +0 -1
  205. package/lib/components/mui/cart-button.js +0 -2
  206. package/lib/components/mui/cart-button.js.map +0 -1
  207. package/lib/components/mui/confirm-delete-dialog.js +0 -2
  208. package/lib/components/mui/confirm-delete-dialog.js.map +0 -1
  209. package/lib/components/mui/dashboard-card.js +0 -2
  210. package/lib/components/mui/dashboard-card.js.map +0 -1
  211. package/lib/components/mui/download-btn.js +0 -2
  212. package/lib/components/mui/download-btn.js.map +0 -1
  213. package/lib/components/mui/loading-overlay.js +0 -2
  214. package/lib/components/mui/loading-overlay.js.map +0 -1
  215. package/lib/components/mui/nav-bar.js +0 -2
  216. package/lib/components/mui/nav-bar.js.map +0 -1
  217. package/lib/components/mui/order-summary.js +0 -2
  218. package/lib/components/mui/order-summary.js.map +0 -1
  219. package/lib/components/mui/status-chip.js +0 -2
  220. package/lib/components/mui/status-chip.js.map +0 -1
  221. package/lib/components/mui/stripe-payment.js +0 -2
  222. package/lib/components/mui/stripe-payment.js.map +0 -1
  223. package/lib/components/mui/upload-btn.js +0 -2
  224. package/lib/components/mui/upload-btn.js.map +0 -1
  225. package/lib/components/mui/upload-dialog.js +0 -2
  226. package/lib/components/mui/upload-dialog.js.map +0 -1
  227. package/lib/css/components/mui/auth-button.css +0 -1
  228. package/lib/css/components/mui/nav-bar.css +0 -1
  229. package/lib/css/components/mui/upload-dialog.css +0 -2
  230. package/lib/css/components/mui/upload-dialog.css.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components/mui/global-confirm-dialog.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,8HCiBT,MAAMC,EAAU,CACdC,QAAS,kBAAC,EAAAC,QAAD,CAASC,MAAM,YACxBC,QAAS,kBAAC,EAAAC,YAAD,CAAaF,MAAM,YAC5BG,MAAO,kBAAC,EAAAC,MAAD,CAAOJ,MAAM,UACpBK,KAAM,kBAAC,EAAAC,KAAD,CAAMN,MAAM,UAGdO,EAAgB,EACpBC,OACAC,QACAC,OACAC,WAAW,GACXC,YACAC,WACAC,oBAAoB,UACpBC,qBAAqB,UACrBC,mBAAmB,SACnBC,oBAAoB,aAEpB,kBAAC,EAAAC,OAAD,CAAQV,KAAMA,EAAMW,QAASN,GAC3B,kBAAC,EAAAO,YAAD,CAAaC,GAAI,CAAEC,EAAG,GAAKC,UAAU,OACnC,kBAAC,EAAAC,WAAD,CAAYC,QAAQ,MAAMhB,I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EAAY3D,kBAC/BE,iBAAkByD,EAAYzD,iBAC9BD,mBAAoB0D,EAAY1D,mBAChCE,kBAAmBwD,EAAYxD,kBAC/BL,UAtBkB,KAChB6D,SAAAA,EAAaO,WAAWP,EAAYO,WAAU,GAClDN,EAAe,KAAf,EAqBE7D,SAlBiB,KACf4D,SAAAA,EAAaO,WAAWP,EAAYO,WAAU,GAClDN,EAAe,KAAf,IAGuB,IAEzB,EAgBF,EA7E0B,EACxBjE,QACAC,OACAC,WAAW,GACXG,oBAAoB,UACpBE,mBAAmB,SACnBD,qBAAqB,UACrBE,oBAAoB,cAEpB,IAAKsD,EACH,MAAM,IAAInE,MACR,iJAKJ,OAAOmE,EAAS,CACd9D,QACAC,OACAC,WACAG,oBACAE,mBACAD,qBACAE,qBAPF,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","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/showConfirmDialog.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport { CheckCircle, Error, Info, Warning } from \"@mui/icons-material\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@mui/icons-material\");","module.exports = require(\"@mui/material\");","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};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from 'openstack-uicore-foundation';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE:\n * import { MuiShowConfirmDialog } from 'openstack-uicore-foundation';\n *\n * const confirmed = await MuiShowConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Module-level bridge: holds the callback registered by GlobalConfirmDialog\nlet bridgeFn = null;\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!bridgeFn) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return bridgeFn({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n bridgeFn = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { bridgeFn = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n"],"names":["root","factory","exports","module","define","amd","this","iconMap","warning","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","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","bridgeFn","GlobalConfirmDialog","dialogState","setDialogState","useState","useEffect","options","Promise","resolve","onResolve"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/infinite-table.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,2DCTF,MAsBMC,EAA0B,G,WCtBvCJ,EAAOD,QAAUM,QAAQ,oB,UCAzBL,EAAOD,QAAUM,QAAQ,sB,WCAzBL,EAAOD,QAAUM,QAAQ,sB,WCAzBL,EAAOD,QAAUM,QAAQ,0B,WCAzBL,EAAOD,QAAUM,QAAQ,0B,WCAzBL,EAAOD,QAAUM,QAAQ,+B,WCAzBL,EAAOD,QAAUM,QAAQ,0B,UCAzBL,EAAOD,QAAUM,QAAQ,yB,SCAzBL,EAAOD,QAAUM,QAAQ,+B,WCAzBL,EAAOD,QAAUM,QAAQ,a,WCAzBL,EAAOD,QAAUM,QAAQ,6B,WCAzBL,EAAOD,QAAUM,QAAQ,a,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,EAASb,GAAUA,EAAOc,WAC7B,IAAOd,EAAiB,QACxB,IAAM,EAEP,OADAO,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EAAiB8D,UAAY,CAC3B7D,UAAW8D,IAAAA,OACX7D,QAAS6D,IAAAA,MACT5D,KAAM4D,IAAAA,MACN3D,aAAc2D,IAAAA,KACd1D,UAAW0D,IAAAA,KACXzD,OAAQyD,IAAAA,KACRxD,QAASwD,IAAAA,QAGX,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Paper\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Table\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableBody\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableCell\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableContainer\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableHead\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableRow\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableSortLabel\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/infinite-table/styles.module.less?f766","webpack://openstack-uicore-foundation/./src/components/mui/infinite-table/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 ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Paper\");","module.exports = require(\"@mui/material/Table\");","module.exports = require(\"@mui/material/TableBody\");","module.exports = require(\"@mui/material/TableCell\");","module.exports = require(\"@mui/material/TableContainer\");","module.exports = require(\"@mui/material/TableHead\");","module.exports = require(\"@mui/material/TableRow\");","module.exports = require(\"@mui/material/TableSortLabel\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"sYyWOBs7DxfIdU_ztAqL\"};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport * as React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport { visuallyHidden } from \"@mui/utils\";\nimport Box from \"@mui/material/Box\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableContainer from \"@mui/material/TableContainer\";\nimport TableHead from \"@mui/material/TableHead\";\nimport TableSortLabel from \"@mui/material/TableSortLabel\";\nimport Paper from \"@mui/material/Paper\";\nimport TableRow from \"@mui/material/TableRow\";\nimport styles from \"./styles.module.less\";\nimport { MILLISECONDS_TO_SECONDS } from \"../../../utils/constants\";\n\nconst MuiInfiniteTable = ({\n boxHeight = \"400px\",\n columns = [],\n data = [],\n loadMoreData,\n onRowEdit,\n onSort,\n options = { sortCol: \"\", sortDir: \"\" }\n}) => {\n const { sortCol, sortDir } = options;\n\n const isLoadingRef = React.useRef(false);\n\n const handleScroll = (event) => {\n if (isLoadingRef.current) return;\n\n const { scrollTop, scrollHeight, clientHeight } = event.target;\n // eslint-disable-next-line no-magic-numbers\n if (scrollTop + clientHeight >= scrollHeight - 20) {\n isLoadingRef.current = true;\n loadMoreData();\n\n setTimeout(() => {\n isLoadingRef.current = false;\n }, MILLISECONDS_TO_SECONDS);\n }\n };\n\n return (\n <Box\n sx={{ width: \"100%\", height: boxHeight, overflow: \"auto\" }}\n onScroll={handleScroll}\n >\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === 1\n ? \"asc\"\n : \"desc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === \"-1\"\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row, rowIndex) => (\n <TableRow key={row.id || rowIndex}>\n {columns.map((col) => {\n const cellContent = col.render\n ? col.render(row, { onRowEdit })\n : row[col.columnKey];\n\n const cellClassName = col.className\n ? styles[col.className] || col.className\n : \"\";\n\n return (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={cellClassName}\n >\n {cellContent}\n </TableCell>\n );\n })}\n </TableRow>\n ))}\n\n {/* No items */}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_data\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n </Paper>\n </Box>\n );\n};\n\nMuiInfiniteTable.propTypes = {\n boxHeight: PropTypes.string,\n columns: PropTypes.array,\n data: PropTypes.array,\n loadMoreData: PropTypes.func,\n onRowEdit: PropTypes.func,\n onSort: PropTypes.func,\n options: PropTypes.object\n};\n\nexport default MuiInfiniteTable;\n"],"names":["root","factory","exports","module","define","amd","this","MILLISECONDS_TO_SECONDS","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","MuiInfiniteTable","boxHeight","columns","data","loadMoreData","onRowEdit","onSort","options","sortCol","sortDir","isLoadingRef","React","Box","sx","width","height","overflow","onScroll","event","current","scrollTop","scrollHeight","clientHeight","target","setTimeout","Paper","elevation","mb","TableContainer","component","borderRadius","boxShadow","Table","TableHead","backgroundColor","TableRow","map","col","TableCell","columnKey","minWidth","maxWidth","align","sortable","TableSortLabel","active","direction","onClick","header","visuallyHidden","T","TableBody","row","rowIndex","id","cellContent","render","cellClassName","className","styles","length","colSpan","propTypes","PropTypes"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/infinite-table.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,Q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S,IAAMlC,EAAO0B,EAAIC,WAAsB,EAAXxB,IAEpCuB,EAAIS,OACJjC,IAAYwB,EAAIC,UACf,gBAAC,IAAD,CAAKP,UAAU,OAAOd,GAAI8B,EAAAA,gBACX,OAAZjC,EACGkC,IAAAA,UAAY,yBACZA,IAAAA,UAAY,yBAEhB,MAGNX,EAAIS,YAQd,gBAAC,IAAD,KACGtC,EAAK4B,KAAI,CAACa,EAAKC,IACd,gBAAC,IAAD,CAAU5D,IAAK2D,EAAIE,IAAMD,GACtB3C,EAAQ6B,KAAKC,IACZ,MAAMe,EAAcf,EAAIgB,OACpBhB,EAAIgB,OAAOJ,EAAK,CAAEvC,cAClBuC,EAAIZ,EAAIC,WAENgB,EAAgBjB,EAAIkB,UACtBC,EAAOnB,EAAIkB,YAAclB,EAAIkB,UAC7B,GAEJ,OACE,gBAAC,IAAD,CACEjE,IAAK+C,EAAIC,UACTG,MAAOJ,EAAII,OAAS,OACpBc,UAAWD,GAEVF,EANL,OAcW,IAAhB5C,EAAKiD,QACJ,gBAAC,IAAD,KACE,gBAAC,IAAD,CAAWC,QAASnD,EAAQkD,OAAQhB,MAAM,UACvCO,IAAAA,UAAY,2BAjF/B,EA6FF3C,EAAiBsD,UAAY,CAC3BrD,UAAWsD,IAAAA,OACXrD,QAASqD,IAAAA,MACTpD,KAAMoD,IAAAA,MACNnD,aAAcmD,IAAAA,KACdlD,UAAWkD,IAAAA,KACXjD,OAAQiD,IAAAA,KACRhD,QAASgD,IAAAA,QAGX,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Box\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Paper\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Table\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableBody\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableCell\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableContainer\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableHead\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableRow\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/TableSortLabel\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/utils\"","webpack://openstack-uicore-foundation/external commonjs \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/infinite-table/styles.module.less?f766","webpack://openstack-uicore-foundation/./src/components/mui/infinite-table/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 ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@mui/material/Box\");","module.exports = require(\"@mui/material/Paper\");","module.exports = require(\"@mui/material/Table\");","module.exports = require(\"@mui/material/TableBody\");","module.exports = require(\"@mui/material/TableCell\");","module.exports = require(\"@mui/material/TableContainer\");","module.exports = require(\"@mui/material/TableHead\");","module.exports = require(\"@mui/material/TableRow\");","module.exports = require(\"@mui/material/TableSortLabel\");","module.exports = require(\"@mui/utils\");","module.exports = require(\"i18n-react/dist/i18n-react\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport default {\"dottedBorderLeft\":\"sYyWOBs7DxfIdU_ztAqL\"};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport * as React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport { visuallyHidden } from \"@mui/utils\";\nimport Box from \"@mui/material/Box\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableContainer from \"@mui/material/TableContainer\";\nimport TableHead from \"@mui/material/TableHead\";\nimport TableSortLabel from \"@mui/material/TableSortLabel\";\nimport Paper from \"@mui/material/Paper\";\nimport TableRow from \"@mui/material/TableRow\";\nimport styles from \"./styles.module.less\";\nimport { MILLISECONDS_TO_SECONDS } from \"../../../utils/constants\";\n\nconst MuiInfiniteTable = ({\n boxHeight = \"400px\",\n columns = [],\n data = [],\n loadMoreData,\n onRowEdit,\n onSort,\n options = { sortCol: \"\", sortDir: \"\" }\n}) => {\n const { sortCol, sortDir } = options;\n\n const isLoadingRef = React.useRef(false);\n\n const handleScroll = (event) => {\n if (isLoadingRef.current) return;\n\n const { scrollTop, scrollHeight, clientHeight } = event.target;\n // eslint-disable-next-line no-magic-numbers\n if (scrollTop + clientHeight >= scrollHeight - 20) {\n isLoadingRef.current = true;\n loadMoreData();\n\n setTimeout(() => {\n isLoadingRef.current = false;\n }, MILLISECONDS_TO_SECONDS);\n }\n };\n\n return (\n <Box\n sx={{ width: \"100%\", height: boxHeight, overflow: \"auto\" }}\n onScroll={handleScroll}\n >\n <Paper elevation={0} sx={{ width: \"100%\", mb: 2 }}>\n <TableContainer\n component={Paper}\n sx={{ borderRadius: 0, boxShadow: \"none\" }}\n >\n <Table>\n {/* TABLE HEADER */}\n <TableHead sx={{ backgroundColor: \"#EAEAEA\" }}>\n <TableRow>\n {columns.map((col) => (\n <TableCell\n key={col.columnKey}\n sx={{\n width: col.width,\n minWidth: col.width,\n maxWidth: col.width\n }}\n align={col.align ?? \"left\"}\n >\n {col.sortable ? (\n <TableSortLabel\n active={sortCol === col.columnKey}\n direction={\n sortCol === col.columnKey && sortDir === 1\n ? \"asc\"\n : \"desc\"\n }\n onClick={() => onSort(col.columnKey, sortDir * -1)}\n >\n {col.header}\n {sortCol === col.columnKey ? (\n <Box component=\"span\" sx={visuallyHidden}>\n {sortDir === \"-1\"\n ? T.translate(\"mui_table.sorted_desc\")\n : T.translate(\"mui_table.sorted_asc\")}\n </Box>\n ) : null}\n </TableSortLabel>\n ) : (\n col.header\n )}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n\n {/* TABLE BODY */}\n <TableBody>\n {data.map((row, rowIndex) => (\n <TableRow key={row.id || rowIndex}>\n {columns.map((col) => {\n const cellContent = col.render\n ? col.render(row, { onRowEdit })\n : row[col.columnKey];\n\n const cellClassName = col.className\n ? styles[col.className] || col.className\n : \"\";\n\n return (\n <TableCell\n key={col.columnKey}\n align={col.align ?? \"left\"}\n className={cellClassName}\n >\n {cellContent}\n </TableCell>\n );\n })}\n </TableRow>\n ))}\n\n {/* No items */}\n {data.length === 0 && (\n <TableRow>\n <TableCell colSpan={columns.length} align=\"center\">\n {T.translate(\"mui_table.no_data\")}\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n </Paper>\n </Box>\n );\n};\n\nMuiInfiniteTable.propTypes = {\n boxHeight: PropTypes.string,\n columns: PropTypes.array,\n data: PropTypes.array,\n loadMoreData: PropTypes.func,\n onRowEdit: PropTypes.func,\n onSort: PropTypes.func,\n options: PropTypes.object\n};\n\nexport default MuiInfiniteTable;\n"],"names":["root","factory","exports","module","define","amd","this","MILLISECONDS_TO_SECONDS","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","MuiInfiniteTable","boxHeight","columns","data","loadMoreData","onRowEdit","onSort","options","sortCol","sortDir","isLoadingRef","React","sx","width","height","overflow","onScroll","event","current","scrollTop","scrollHeight","clientHeight","target","setTimeout","elevation","mb","component","Paper","borderRadius","boxShadow","backgroundColor","map","col","columnKey","minWidth","maxWidth","align","sortable","active","direction","onClick","header","visuallyHidden","T","row","rowIndex","id","cellContent","render","cellClassName","className","styles","length","colSpan","propTypes","PropTypes"],"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={6611:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(7994),c=r(2522),d=r(8672),p=r(6915),b=r(5480),v=r(9314),f=r(2359);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 x(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){n()(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 y=({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 u().createElement(m.default,a);case"CheckBoxList":return u().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return u().createElement(d.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return u().createElement(p.default,a);case"Time":return u().createElement(b.default,o()({},a,{timeZone:r}));case"Quantity":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:x({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return u().createElement(f.default,o()({},a,{size:"small"}),t.values.map((e=>u().createElement(s.MenuItem,{key:`ddopt-${e.id}`,value:e.id},e.value))));case"Text":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(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),u=r.n(i),s=r(9825),m=r.n(s),c=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 u().createElement(c.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},u().createElement(c.FormControlLabel,{control:u().createElement(c.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&u().createElement(c.FormHelperText,null,i.error))};b.propTypes={name:m().string.isRequired,label:m().string.isRequired};const v=b},6915:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s);const c=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const v=["name","label","required","disabled"],f=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,v);const[s,m,f]=(0,b.useField)(t),h=`${r} *`;return u().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},u().createElement(c.DatePicker,n()({value:s.value,onChange:f.setValue,slotProps:{textField:{name:t,label:l?h:r,error:m.touched&&Boolean(m.error),helperText:m.touched&&m.error,fullWidth:!0,disabled:a},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};f.propTypes={name:m().string.isRequired,label:m().string,required:m().bool,disabled:m().bool};const h=f},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),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options"],b=e=>{let{name:t,options:r}=e,l=o()(e,p);const[a,i,c]=(0,m.useField)(t),b=r.every((({value:e})=>{var t;return null===(t=a.value)||void 0===t?void 0:t.includes(e)}));return u().createElement(s.FormControl,{fullWidth:!0,error:i.touched&&Boolean(i.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,multiple:!0,value:a.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?b?c.setValue([]):c.setValue(r.map((e=>e.value))):c.setValue(t)},onBlur:a.onBlur,displayEmpty:!0},l,{renderValue:e=>{if(null==e||!e.length)return l.placeholder||"";if(b)return d().translate("general.all");return r.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e)).join(", ")}}),u().createElement(s.MenuItem,{key:"all",value:"all"},u().createElement(s.Checkbox,{checked:b}),u().createElement(s.ListItemText,{primary:d().translate("general.all")})),u().createElement(s.Divider,null),r.map((({label:e,value:t})=>{var r;return u().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},u().createElement(s.Checkbox,{checked:null===(r=a.value)||void 0===r?void 0:r.includes(t)}),u().createElement(s.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),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options","placeholder"],b=e=>{let{name:t,options:r,placeholder:l}=e,a=o()(e,p);const i=l||d().translate("general.select_an_option"),[c,b,v]=(0,m.useField)(t);return u().createElement(s.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},a,{renderValue:e=>{if(!e)return u().createElement("em",null,i);const t=r.find((({value:t})=>t===e));return t?t.label:""}}),r.map((({label:e,value:t})=>u().createElement(s.MenuItem,{key:`radio-ddl-${t}`,value:t},u().createElement(s.Radio,{checked:c.value===t}),u().createElement(s.ListItemText,{primary:e}))))))}},2359:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(692),p=r.n(d),b=r(3294);const v=["name","label","placeholder","children","isClearable"],f=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,s=o()(e,v);const[m,d,f]=(0,b.useField)(t),h=(null==m?void 0:m.value)&&""!==m.value||Boolean(l);return u().createElement(c.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&u().createElement(c.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:h},r),u().createElement(c.Select,n()({name:t,id:t},m,{labelId:`${t}-label`,label:r,notched:h,displayEmpty:!0,renderValue:e=>e&&""!==e?e:u().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&m.value?u().createElement(c.InputAdornment,{position:"end",sx:{mr:2}},u().createElement(c.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),f.setValue("")}},u().createElement(p(),{fontSize:"small"}))):null},s),a),d.touched&&d.error&&u().createElement(c.FormHelperText,null,d.error))};f.propTypes={name:m().string.isRequired,children:m().node.isRequired,placeholder:m().string,isClearable:m().bool};const h=f},9314:(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),u=r.n(i),s=r(9825),m=r.n(s),c=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,s=o()(e,p);const[m,b]=(0,d.useField)(r),v=(null===(t=m.value)||void 0===t?void 0:t.length)||0;let f="";return l&&(f=i?`${l} *`:l),u().createElement(c.Box,null,u().createElement(c.TextField,n()({name:r,label:f},m,{onBlur:m.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},s)),a&&u().createElement(c.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-v+" characters left"))};b.propTypes={name:m().string.isRequired,label:m().string,maxLength:m().number,required:m().bool};const v=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),u=r(5643);const s=require("@mui/x-date-pickers/TimePicker");var m=r(3294);const c=({name:e,minTime:t,maxTime:r,timeZone:l,disabled:a=!1})=>{const[o,c,d]=(0,m.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:u.AdapterMoment},n().createElement(s.TimePicker,{value:o.value,onChange:d.setValue,minTime:t,maxTime:r,timezone:l,label:l,views:["hours","minutes"],slotProps:{textField:{name:e,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,size:"small",fullWidth:!0,disabled:a,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};c.propTypes={name:o().string.isRequired};const d=c},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")},692:e=>{e.exports=require("@mui/icons-material/Clear")},4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6368:e=>{e.exports=require("@mui/material/Button")},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")},9825:e=>{e.exports=require("prop-types")},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:()=>C});var n=r(2015),a=r.n(n),o=r(9825),i=r.n(o),u=r(6842),s=r.n(u),m=r(6368),c=r.n(m);const d=require("@mui/material/Dialog");var p=r.n(d);const b=require("@mui/material/DialogActions");var v=r.n(b);const f=require("@mui/material/DialogContent");var h=r.n(f);const x=require("@mui/material/DialogTitle");var y=r.n(x),g=r(8619),E=r(4325),q=r.n(E),k=r(6611);const T=({item:e,timeZone:t,open:r,onClose:l})=>{const n=(null==e?void 0:e.meta_fields.filter((e=>"Item"===e.class_field)))||[];return a().createElement(p(),{open:r,onClose:l,maxWidth:"sm",fullWidth:!0},a().createElement(y(),null,s().translate("general.settings")),a().createElement(g.IconButton,{"aria-label":"close",onClick:l,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},a().createElement(q(),null)),a().createElement(g.Divider,null),a().createElement(h(),null,a().createElement(g.Typography,{variant:"body2",component:"div",sx:{marginBottom:"20px"}},null==e?void 0:e.name),a().createElement(g.Divider,{sx:{marginBottom:"20px",marginLeft:"-24px",marginRight:"-24px"}}),n.map((r=>a().createElement(a().Fragment,{key:`item-field-${r.type_id}`},a().createElement(k.A,{field:r,rowId:e.form_item_id,timeZone:t,label:r.name}))))),a().createElement(v(),null,a().createElement(c(),{onClick:()=>{l()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};T.propTypes={item:i().object.isRequired,open:i().bool.isRequired,onClose:i().func.isRequired};const C=T;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={6611:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(1116),n=r.n(l),a=r(6031),o=r.n(a),i=r(2015),u=r.n(i),s=r(8619),m=r(7994),c=r(2522),d=r(8672),p=r(6915),b=r(3099),v=r(9314),f=r(2359);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 x(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){n()(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 y=({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 u().createElement(m.default,a);case"CheckBoxList":return u().createElement(c.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"RadioButtonList":return u().createElement(d.default,o()({},a,{size:"small",options:t.values.map((e=>({value:e.id,label:e.value})))}));case"DateTime":return u().createElement(p.default,a);case"Time":return u().createElement(b.default,o()({},a,{timeZone:r}));case"Quantity":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",type:"number",slotProps:{htmlInput:x({min:t.minimum_quantity},t.maximum_quantity>0?{max:t.maximum_quantity}:{})}}));case"ComboBox":return u().createElement(f.default,o()({},a,{size:"small"}),t.values.map((e=>u().createElement(s.MenuItem,{key:`ddopt-${e.id}`,value:e.id},e.value))));case"Text":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small"}));case"TextArea":return u().createElement(v.default,o()({},a,{fullWidth:!0,size:"small",multiline:!0,rows:3}))}}},7994:(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),u=r.n(i),s=r(9825),m=r.n(s),c=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 u().createElement(c.FormControl,{fullWidth:!0,margin:"normal",error:i.touched&&Boolean(i.error)},u().createElement(c.FormControlLabel,{control:u().createElement(c.Checkbox,n()({name:t},a,{checked:a.value},l)),label:r}),i.touched&&i.error&&u().createElement(c.FormHelperText,null,i.error))};b.propTypes={name:m().string.isRequired,label:m().string.isRequired};const v=b},6915:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s);const c=require("@mui/x-date-pickers/DatePicker");var d=r(4),p=r(5643),b=r(3294);const v=["name","label","required","disabled"],f=e=>{let{name:t,label:r,required:l,disabled:a=!1}=e,i=o()(e,v);const[s,m,f]=(0,b.useField)(t),h=`${r} *`;return u().createElement(d.LocalizationProvider,{dateAdapter:p.AdapterMoment},u().createElement(c.DatePicker,n()({value:s.value,onChange:f.setValue,slotProps:{textField:{name:t,label:l?h:r,error:m.touched&&Boolean(m.error),helperText:m.touched&&m.error,fullWidth:!0,disabled:a},day:{sx:{fontSize:"1.2rem",fontWeight:600}},layout:{sx:{"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"}}}},margin:"normal"},i)))};f.propTypes={name:m().string.isRequired,label:m().string,required:m().bool,disabled:m().bool};const h=f},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),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options"],b=e=>{let{name:t,options:r}=e,l=o()(e,p);const[a,i,c]=(0,m.useField)(t),b=r.every((({value:e})=>{var t;return null===(t=a.value)||void 0===t?void 0:t.includes(e)}));return u().createElement(s.FormControl,{fullWidth:!0,error:i.touched&&Boolean(i.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,multiple:!0,value:a.value||[],onChange:e=>{const{value:t}=e.target;t.includes("all")?b?c.setValue([]):c.setValue(r.map((e=>e.value))):c.setValue(t)},onBlur:a.onBlur,displayEmpty:!0},l,{renderValue:e=>{if(null==e||!e.length)return l.placeholder||"";if(b)return d().translate("general.all");return r.filter((({value:t})=>null==e?void 0:e.includes(t))).map((({label:e})=>e)).join(", ")}}),u().createElement(s.MenuItem,{key:"all",value:"all"},u().createElement(s.Checkbox,{checked:b}),u().createElement(s.ListItemText,{primary:d().translate("general.all")})),u().createElement(s.Divider,null),r.map((({label:e,value:t})=>{var r;return u().createElement(s.MenuItem,{key:`ckbx-ddl-${t}`,value:t},u().createElement(s.Checkbox,{checked:null===(r=a.value)||void 0===r?void 0:r.includes(t)}),u().createElement(s.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),u=r.n(i),s=r(8619),m=r(3294),c=r(6842),d=r.n(c);const p=["name","options","placeholder"],b=e=>{let{name:t,options:r,placeholder:l}=e,a=o()(e,p);const i=l||d().translate("general.select_an_option"),[c,b,v]=(0,m.useField)(t);return u().createElement(s.FormControl,{fullWidth:!0,error:b.touched&&Boolean(b.error)},u().createElement(s.Select,n()({variant:"outlined",name:t,value:c.value||"",onChange:e=>{v.setValue(e.target.value)},displayEmpty:!0},a,{renderValue:e=>{if(!e)return u().createElement("em",null,i);const t=r.find((({value:t})=>t===e));return t?t.label:""}}),r.map((({label:e,value:t})=>u().createElement(s.MenuItem,{key:`radio-ddl-${t}`,value:t},u().createElement(s.Radio,{checked:c.value===t}),u().createElement(s.ListItemText,{primary:e}))))))}},2359:(e,t,r)=>{r.d(t,{default:()=>h});var l=r(6031),n=r.n(l),a=r(2462),o=r.n(a),i=r(2015),u=r.n(i),s=r(9825),m=r.n(s),c=r(8619),d=r(692),p=r.n(d),b=r(3294);const v=["name","label","placeholder","children","isClearable"],f=e=>{let{name:t,label:r,placeholder:l,children:a,isClearable:i}=e,s=o()(e,v);const[m,d,f]=(0,b.useField)(t),h=(null==m?void 0:m.value)&&""!==m.value||Boolean(l);return u().createElement(c.FormControl,{fullWidth:!0,error:d.touched&&Boolean(d.error)},r&&u().createElement(c.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:h},r),u().createElement(c.Select,n()({name:t,id:t},m,{labelId:`${t}-label`,label:r,notched:h,displayEmpty:!0,renderValue:e=>e&&""!==e?e:u().createElement("span",{style:{color:"#aaa"}},l),endAdornment:i&&m.value?u().createElement(c.InputAdornment,{position:"end",sx:{mr:2}},u().createElement(c.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),f.setValue("")}},u().createElement(p(),{fontSize:"small"}))):null},s),a),d.touched&&d.error&&u().createElement(c.FormHelperText,null,d.error))};f.propTypes={name:m().string.isRequired,children:m().node.isRequired,placeholder:m().string,isClearable:m().bool};const h=f},9314:(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),u=r.n(i),s=r(9825),m=r.n(s),c=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,s=o()(e,p);const[m,b]=(0,d.useField)(r),v=(null===(t=m.value)||void 0===t?void 0:t.length)||0;let f="";return l&&(f=i?`${l} *`:l),u().createElement(c.Box,null,u().createElement(c.TextField,n()({name:r,label:f},m,{onBlur:m.onBlur,margin:"normal",error:b.touched&&Boolean(b.error),helperText:b.touched&&b.error,slotProps:{htmlInput:{maxLength:a}}},s)),a&&u().createElement(c.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},a-v+" characters left"))};b.propTypes={name:m().string.isRequired,label:m().string,maxLength:m().number,required:m().bool};const v=b},3099:(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),u=r(5643);const s=require("@mui/x-date-pickers/TimePicker");var m=r(3294);const c=({name:e,minTime:t,maxTime:r,timeZone:l,disabled:a=!1})=>{const[o,c,d]=(0,m.useField)(e);return n().createElement(i.LocalizationProvider,{dateAdapter:u.AdapterMoment},n().createElement(s.TimePicker,{value:o.value,onChange:d.setValue,minTime:t,maxTime:r,timezone:l,label:l,views:["hours","minutes"],slotProps:{textField:{name:e,error:c.touched&&Boolean(c.error),helperText:c.touched&&c.error,size:"small",fullWidth:!0,disabled:a,sx:{"& .MuiPickersSectionList-root":{width:"100%"},"& .MuiFormHelperText-root":{marginLeft:"4px",marginRight:"4px"}}}}}))};c.propTypes={name:o().string.isRequired};const d=c},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")},692:e=>{e.exports=require("@mui/icons-material/Clear")},4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6368:e=>{e.exports=require("@mui/material/Button")},1624:e=>{e.exports=require("@mui/material/Dialog")},8843:e=>{e.exports=require("@mui/material/DialogActions")},6809:e=>{e.exports=require("@mui/material/DialogContent")},8926:e=>{e.exports=require("@mui/material/DialogTitle")},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")},9825:e=>{e.exports=require("prop-types")},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:()=>C});var n=r(2015),a=r.n(n),o=r(9825),i=r.n(o),u=r(6842),s=r.n(u),m=r(6368),c=r.n(m),d=r(1624),p=r.n(d),b=r(8843),v=r.n(b),f=r(6809),h=r.n(f),x=r(8926),y=r.n(x),g=r(8619),E=r(4325),q=r.n(E),k=r(6611);const T=({item:e,timeZone:t,open:r,onClose:l})=>{const n=(null==e?void 0:e.meta_fields.filter((e=>"Item"===e.class_field)))||[];return a().createElement(p(),{open:r,onClose:l,maxWidth:"sm",fullWidth:!0},a().createElement(y(),null,s().translate("general.settings")),a().createElement(g.IconButton,{"aria-label":"close",onClick:l,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},a().createElement(q(),null)),a().createElement(g.Divider,null),a().createElement(h(),null,a().createElement(g.Typography,{variant:"body2",component:"div",sx:{marginBottom:"20px"}},null==e?void 0:e.name),a().createElement(g.Divider,{sx:{marginBottom:"20px",marginLeft:"-24px",marginRight:"-24px"}}),n.map((r=>a().createElement(a().Fragment,{key:`item-field-${r.type_id}`},a().createElement(k.A,{field:r,rowId:e.form_item_id,timeZone:t,label:r.name}))))),a().createElement(v(),null,a().createElement(c(),{onClick:()=>{l()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};T.propTypes={item:i().object.isRequired,open:i().bool.isRequired,onClose:i().func.isRequired};const C=T;return l})()));
2
2
  //# sourceMappingURL=item-settings-modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/item-settings-modal.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,IAEzC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gK,IAAW,KAAE/E,IAAAA,UAAY,qBAC1BjF,IAAAA,cAAC0G,EAAAA,WAAU,CACT,aAAW,QACXC,QAAS+C,EACT9F,GAAKqG,IAAK,CACRzD,SAAU,WACV0D,MAAO,EACPC,IAAK,EACL9D,MAAO4D,EAAMG,QAAQC,KAAK,QAG5BrK,IAAAA,cAACsK,IAAS,OAEZtK,IAAAA,cAACsF,EAAAA,QAAO,MACRtF,IAAAA,cAACuK,IAAa,KACZvK,IAAAA,cAACoH,EAAAA,WAAU,CACT9C,QAAQ,QACRkG,UAAU,MACV5G,GAAI,CAAE6G,aAAc,SAEnBjB,aAAI,EAAJA,EAAM5J,MAETI,IAAAA,cAACsF,EAAAA,QAAO,CACN1B,GAAI,CACF6G,aAAc,OACd7C,WAAY,QACZC,YAAa,WAGhB8B,EAAWpJ,KAAKmK,GACf1K,IAAAA,cAACA,IAAAA,SAAc,CAACyB,IAAK,cAAciJ,EAAI5K,WACrCE,IAAAA,cAACX,EAAAA,EAAc,CACbE,MAAOmL,EACPpL,MAAOkK,EAAKmB,aACZnL,SAAUA,EACVC,MAAOiL,EAAI9K,WAKnBI,IAAAA,cAAC4K,IAAa,KACZ5K,IAAAA,cAAC6K,IAAM,CAAClE,QA/CKmE,KACjBpB,GAAS,EA8CwBpF,QAAQ,YAAYvD,WAAS,GACvDkE,IAAAA,UAAY,kBAGV,EAIbsE,EAAkB3G,UAAY,CAC5B4G,KAAM3G,IAAAA,OAAiBC,WACvB2G,KAAM5G,IAAAA,KAAeC,WACrB4G,QAAS7G,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/FormItemTable/components/ItemTableField.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/DatePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-datepicker.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-textfield.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/TimePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-timepicker.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/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/AdapterMoment\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/LocalizationProvider\"","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/external commonjs \"@mui/material/Dialog\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogActions\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogContent\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogTitle\"","webpack://openstack-uicore-foundation/./src/components/mui/ItemSettingsModal/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 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 { MenuItem } from \"@mui/material\";\nimport MuiFormikCheckbox from \"../../formik-inputs/mui-formik-checkbox\";\nimport MuiFormikDropdownCheckbox from \"../../formik-inputs/mui-formik-dropdown-checkbox\";\nimport MuiFormikDropdownRadio from \"../../formik-inputs/mui-formik-dropdown-radio\";\nimport MuiFormikDatepicker from \"../../formik-inputs/mui-formik-datepicker\";\nimport MuiFormikTimepicker from \"../../formik-inputs/mui-formik-timepicker\";\nimport MuiFormikTextField from \"../../formik-inputs/mui-formik-textfield\";\nimport MuiFormikSelect from \"../../formik-inputs/mui-formik-select\";\n\nconst ItemTableField = ({\n rowId,\n field,\n timeZone,\n label = \"\",\n disabled = false\n}) => {\n const name = `i-${rowId}-c-${field.class_field}-f-${field.type_id}`;\n const commonProps = { name, label, disabled };\n\n switch (field.type) {\n case \"CheckBox\":\n return <MuiFormikCheckbox {...commonProps} />;\n case \"CheckBoxList\":\n return (\n <MuiFormikDropdownCheckbox\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"RadioButtonList\":\n return (\n <MuiFormikDropdownRadio\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"DateTime\":\n return <MuiFormikDatepicker {...commonProps} />;\n case \"Time\":\n return <MuiFormikTimepicker {...commonProps} timeZone={timeZone} />;\n case \"Quantity\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n type=\"number\"\n slotProps={{\n htmlInput: {\n min: field.minimum_quantity,\n ...(field.maximum_quantity > 0\n ? { max: field.maximum_quantity }\n : {})\n }\n }}\n />\n );\n case \"ComboBox\":\n return (\n <MuiFormikSelect {...commonProps} size=\"small\">\n {field.values.map((v) => (\n <MenuItem key={`ddopt-${v.id}`} value={v.id}>\n {v.value}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n );\n case \"Text\":\n return <MuiFormikTextField {...commonProps} fullWidth size=\"small\" />;\n case \"TextArea\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n multiline\n rows={3}\n />\n );\n }\n};\n\nexport default ItemTableField;\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 PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/DatePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { DatePicker } from \"@mui/x-date-pickers/DatePicker\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { useField } from \"formik\";\n\nconst MuiFormikDatepicker = ({\n name,\n label,\n required,\n disabled = false,\n ...props\n}) => {\n const [field, meta, helpers] = useField(name);\n const requiredLabel = `${label} *`;\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <DatePicker\n value={field.value}\n onChange={helpers.setValue}\n slotProps={{\n textField: {\n name,\n label: required ? requiredLabel : label,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n fullWidth: true,\n disabled\n },\n day: {\n sx: {\n fontSize: \"1.2rem\",\n fontWeight: 600\n }\n },\n layout: {\n sx: {\n \"& .MuiDayCalendar-weekDayLabel\": {\n fontSize: \"1rem\"\n }\n }\n }\n }}\n margin=\"normal\"\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikDatepicker.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n required: PropTypes.bool,\n disabled: PropTypes.bool\n};\n\nexport default MuiFormikDatepicker;","/**\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 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, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\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 <Select\n variant=\"outlined\"\n name={name}\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 rest.placeholder || \"\";\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 />\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","/**\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 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, 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 <Select\n variant=\"outlined\"\n name={name}\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","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n InputAdornment,\n IconButton,\n InputLabel\n} from \"@mui/material\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelect = ({\n name,\n label,\n placeholder,\n children,\n isClearable,\n ...rest\n}) => {\n const [field, meta, helpers] = useField(name);\n\n const handleClear = (ev) => {\n ev.stopPropagation();\n helpers.setValue(\"\");\n };\n\n const hasValue = field?.value && field.value !== \"\";\n const shouldShrink = hasValue || Boolean(placeholder);\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel htmlFor={name} id={`${name}-label`} shrink={shouldShrink}>\n {label}\n </InputLabel>\n )}\n <Select\n name={name}\n id={name}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n labelId={`${name}-label`}\n label={label}\n notched={shouldShrink}\n displayEmpty\n renderValue={(selected) => {\n if (!selected || selected === \"\") {\n return <span style={{ color: \"#aaa\" }}>{placeholder}</span>;\n }\n return selected;\n }}\n endAdornment={\n isClearable && field.value ? (\n <InputAdornment position=\"end\" sx={{ mr: 2 }}>\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" />\n </IconButton>\n </InputAdornment>\n ) : null\n }\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n >\n {children}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelect.propTypes = {\n name: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n placeholder: PropTypes.string,\n isClearable: PropTypes.bool\n};\n\nexport default MuiFormikSelect;\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 PropTypes from \"prop-types\";\nimport { Box, TextField, Typography } from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikTextField = ({\n name,\n label,\n maxLength,\n required = false,\n ...props\n}) => {\n const [field, meta] = useField(name);\n const currentLength = field.value?.length || 0;\n\n let finalLabel = \"\";\n\n if (label) {\n finalLabel = required ? `${label} *` : label;\n }\n\n return (\n <Box>\n <TextField\n name={name}\n label={finalLabel}\n {...field}\n onBlur={field.onBlur}\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n slotProps={{\n htmlInput: {\n maxLength\n }\n }}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n {maxLength && (\n <Typography sx={{ fontSize: \"1.2rem\", color: \"#00000099\", pl: 2 }}>\n {`${maxLength - currentLength} characters left`}\n </Typography>\n )}\n </Box>\n );\n};\n\nMuiFormikTextField.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n maxLength: PropTypes.number,\n required: PropTypes.bool\n};\n\nexport default MuiFormikTextField;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/TimePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { TimePicker } from \"@mui/x-date-pickers/TimePicker\";\n\nimport { useField } from \"formik\";\n\nconst MuiFormikTimepicker = ({\n name,\n minTime,\n maxTime,\n timeZone,\n disabled = false\n}) => {\n const [field, meta, helpers] = useField(name);\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <TimePicker\n value={field.value}\n onChange={helpers.setValue}\n minTime={minTime}\n maxTime={maxTime}\n timezone={timeZone}\n label={timeZone}\n views={[\"hours\", \"minutes\"]}\n slotProps={{\n textField: {\n name,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n size: \"small\",\n fullWidth: true,\n disabled,\n sx: {\n \"& .MuiPickersSectionList-root\": {\n width: \"100%\"\n },\n \"& .MuiFormHelperText-root\": {\n marginLeft: \"4px\",\n marginRight: \"4px\"\n }\n }\n }\n }}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikTimepicker.propTypes = {\n name: PropTypes.string.isRequired\n};\n\nexport default MuiFormikTimepicker;\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/icons-material/Clear\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/x-date-pickers/AdapterMoment\");","module.exports = require(\"@mui/x-date-pickers/LocalizationProvider\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/Dialog\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogActions\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogContent\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogTitle\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Button from \"@mui/material/Button\";\nimport Dialog from \"@mui/material/Dialog\";\nimport DialogActions from \"@mui/material/DialogActions\";\nimport DialogContent from \"@mui/material/DialogContent\";\nimport DialogTitle from \"@mui/material/DialogTitle\";\nimport { Divider, IconButton, Typography } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ItemTableField from \"../FormItemTable/components/ItemTableField\";\n\nconst ItemSettingsModal = ({ item, timeZone, open, onClose }) => {\n const itemFields =\n item?.meta_fields.filter((f) => f.class_field === \"Item\") || [];\n\n const handleSave = () => {\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>{T.translate(\"general.settings\")}</DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ marginBottom: \"20px\" }}\n >\n {item?.name}\n </Typography>\n <Divider\n sx={{\n marginBottom: \"20px\",\n marginLeft: \"-24px\",\n marginRight: \"-24px\"\n }}\n />\n {itemFields.map((exc) => (\n <React.Fragment key={`item-field-${exc.type_id}`}>\n <ItemTableField\n field={exc}\n rowId={item.form_item_id}\n timeZone={timeZone}\n label={exc.name}\n />\n </React.Fragment>\n ))}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nItemSettingsModal.propTypes = {\n item: PropTypes.object.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default ItemSettingsModal;\n"],"names":["root","factory","exports","module","define","amd","this","ItemTableField","rowId","field","timeZone","label","disabled","commonProps","name","class_field","type_id","type","React","MuiFormikCheckbox","MuiFormikDropdownCheckbox","_extends","size","options","values","map","v","value","id","MuiFormikDropdownRadio","MuiFormikDatepicker","MuiFormikTimepicker","MuiFormikTextField","fullWidth","slotProps","htmlInput","_objectSpread","min","minimum_quantity","maximum_quantity","max","MuiFormikSelect","MenuItem","key","multiline","rows","_ref","props","_objectWithoutProperties","_excluded","meta","useField","FormControl","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired","require","required","helpers","requiredLabel","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","textField","helperText","day","sx","fontSize","fontWeight","layout","rest","allSelected","every","_field$value","includes","Select","variant","multiple","event","target","opt","onBlur","displayEmpty","renderValue","selected","length","placeholder","T","filter","join","ListItemText","primary","Divider","_field$value2","finalPlaceholder","selectedOption","find","Radio","children","isClearable","shouldShrink","InputLabel","htmlFor","shrink","labelId","notched","style","color","endAdornment","InputAdornment","position","mr","IconButton","onClick","ev","stopPropagation","ClearIcon","maxLength","currentLength","finalLabel","Box","TextField","Typography","pl","minTime","maxTime","TimePicker","timezone","views","width","marginLeft","marginRight","__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","ItemSettingsModal","item","open","onClose","itemFields","meta_fields","f","Dialog","maxWidth","DialogTitle","theme","right","top","palette","grey","CloseIcon","DialogContent","component","marginBottom","exc","form_item_id","DialogActions","Button","handleSave"],"sourceRoot":""}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OuJ,EAAKe,aACZpK,SAAUA,EACVC,MAAOkK,EAAI/J,WAKnB,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAQmG,QA/CK,KACjBgD,GAAS,EA8CwBrF,QAAQ,YAAYnD,WAAS,GACvD8D,IAAAA,UAAY,kBA5CrB,EAmDFuE,EAAkB5G,UAAY,CAC5B6G,KAAM5G,IAAAA,OAAiBC,WACvB4G,KAAM7G,IAAAA,KAAeC,WACrB6G,QAAS9G,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/components/mui/FormItemTable/components/ItemTableField.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/DatePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-datepicker.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-checkbox.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-dropdown-radio.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-select.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-textfield.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/TimePicker\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-timepicker.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/icons-material/Clear\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Dialog\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogActions\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogContent\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogTitle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/AdapterMoment\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/x-date-pickers/LocalizationProvider\"","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/ItemSettingsModal/index.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","/**\n * Copyright 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 { MenuItem } from \"@mui/material\";\nimport MuiFormikCheckbox from \"../../formik-inputs/mui-formik-checkbox\";\nimport MuiFormikDropdownCheckbox from \"../../formik-inputs/mui-formik-dropdown-checkbox\";\nimport MuiFormikDropdownRadio from \"../../formik-inputs/mui-formik-dropdown-radio\";\nimport MuiFormikDatepicker from \"../../formik-inputs/mui-formik-datepicker\";\nimport MuiFormikTimepicker from \"../../formik-inputs/mui-formik-timepicker\";\nimport MuiFormikTextField from \"../../formik-inputs/mui-formik-textfield\";\nimport MuiFormikSelect from \"../../formik-inputs/mui-formik-select\";\n\nconst ItemTableField = ({\n rowId,\n field,\n timeZone,\n label = \"\",\n disabled = false\n}) => {\n const name = `i-${rowId}-c-${field.class_field}-f-${field.type_id}`;\n const commonProps = { name, label, disabled };\n\n switch (field.type) {\n case \"CheckBox\":\n return <MuiFormikCheckbox {...commonProps} />;\n case \"CheckBoxList\":\n return (\n <MuiFormikDropdownCheckbox\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"RadioButtonList\":\n return (\n <MuiFormikDropdownRadio\n {...commonProps}\n size=\"small\"\n options={field.values.map((v) => ({ value: v.id, label: v.value }))}\n />\n );\n case \"DateTime\":\n return <MuiFormikDatepicker {...commonProps} />;\n case \"Time\":\n return <MuiFormikTimepicker {...commonProps} timeZone={timeZone} />;\n case \"Quantity\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n type=\"number\"\n slotProps={{\n htmlInput: {\n min: field.minimum_quantity,\n ...(field.maximum_quantity > 0\n ? { max: field.maximum_quantity }\n : {})\n }\n }}\n />\n );\n case \"ComboBox\":\n return (\n <MuiFormikSelect {...commonProps} size=\"small\">\n {field.values.map((v) => (\n <MenuItem key={`ddopt-${v.id}`} value={v.id}>\n {v.value}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n );\n case \"Text\":\n return <MuiFormikTextField {...commonProps} fullWidth size=\"small\" />;\n case \"TextArea\":\n return (\n <MuiFormikTextField\n {...commonProps}\n fullWidth\n size=\"small\"\n multiline\n rows={3}\n />\n );\n }\n};\n\nexport default ItemTableField;\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 PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/DatePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { DatePicker } from \"@mui/x-date-pickers/DatePicker\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { useField } from \"formik\";\n\nconst MuiFormikDatepicker = ({\n name,\n label,\n required,\n disabled = false,\n ...props\n}) => {\n const [field, meta, helpers] = useField(name);\n const requiredLabel = `${label} *`;\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <DatePicker\n value={field.value}\n onChange={helpers.setValue}\n slotProps={{\n textField: {\n name,\n label: required ? requiredLabel : label,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n fullWidth: true,\n disabled\n },\n day: {\n sx: {\n fontSize: \"1.2rem\",\n fontWeight: 600\n }\n },\n layout: {\n sx: {\n \"& .MuiDayCalendar-weekDayLabel\": {\n fontSize: \"1rem\"\n }\n }\n }\n }}\n margin=\"normal\"\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikDatepicker.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n required: PropTypes.bool,\n disabled: PropTypes.bool\n};\n\nexport default MuiFormikDatepicker;","/**\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 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, options, ...rest }) => {\n const [field, meta, helpers] = useField(name);\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 <Select\n variant=\"outlined\"\n name={name}\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 rest.placeholder || \"\";\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 />\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","/**\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 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, 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 <Select\n variant=\"outlined\"\n name={name}\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","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Select,\n FormHelperText,\n FormControl,\n InputAdornment,\n IconButton,\n InputLabel\n} from \"@mui/material\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport { useField } from \"formik\";\n\nconst MuiFormikSelect = ({\n name,\n label,\n placeholder,\n children,\n isClearable,\n ...rest\n}) => {\n const [field, meta, helpers] = useField(name);\n\n const handleClear = (ev) => {\n ev.stopPropagation();\n helpers.setValue(\"\");\n };\n\n const hasValue = field?.value && field.value !== \"\";\n const shouldShrink = hasValue || Boolean(placeholder);\n\n return (\n <FormControl fullWidth error={meta.touched && Boolean(meta.error)}>\n {label && (\n <InputLabel htmlFor={name} id={`${name}-label`} shrink={shouldShrink}>\n {label}\n </InputLabel>\n )}\n <Select\n name={name}\n id={name}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...field}\n labelId={`${name}-label`}\n label={label}\n notched={shouldShrink}\n displayEmpty\n renderValue={(selected) => {\n if (!selected || selected === \"\") {\n return <span style={{ color: \"#aaa\" }}>{placeholder}</span>;\n }\n return selected;\n }}\n endAdornment={\n isClearable && field.value ? (\n <InputAdornment position=\"end\" sx={{ mr: 2 }}>\n <IconButton size=\"small\" onClick={handleClear}>\n <ClearIcon fontSize=\"small\" />\n </IconButton>\n </InputAdornment>\n ) : null\n }\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...rest}\n >\n {children}\n </Select>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikSelect.propTypes = {\n name: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n placeholder: PropTypes.string,\n isClearable: PropTypes.bool\n};\n\nexport default MuiFormikSelect;\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 PropTypes from \"prop-types\";\nimport { Box, TextField, Typography } from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikTextField = ({\n name,\n label,\n maxLength,\n required = false,\n ...props\n}) => {\n const [field, meta] = useField(name);\n const currentLength = field.value?.length || 0;\n\n let finalLabel = \"\";\n\n if (label) {\n finalLabel = required ? `${label} *` : label;\n }\n\n return (\n <Box>\n <TextField\n name={name}\n label={finalLabel}\n {...field}\n onBlur={field.onBlur}\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n slotProps={{\n htmlInput: {\n maxLength\n }\n }}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n {maxLength && (\n <Typography sx={{ fontSize: \"1.2rem\", color: \"#00000099\", pl: 2 }}>\n {`${maxLength - currentLength} characters left`}\n </Typography>\n )}\n </Box>\n );\n};\n\nMuiFormikTextField.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n maxLength: PropTypes.number,\n required: PropTypes.bool\n};\n\nexport default MuiFormikTextField;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/x-date-pickers/TimePicker\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\nimport { TimePicker } from \"@mui/x-date-pickers/TimePicker\";\n\nimport { useField } from \"formik\";\n\nconst MuiFormikTimepicker = ({\n name,\n minTime,\n maxTime,\n timeZone,\n disabled = false\n}) => {\n const [field, meta, helpers] = useField(name);\n\n return (\n <LocalizationProvider dateAdapter={AdapterMoment}>\n <TimePicker\n value={field.value}\n onChange={helpers.setValue}\n minTime={minTime}\n maxTime={maxTime}\n timezone={timeZone}\n label={timeZone}\n views={[\"hours\", \"minutes\"]}\n slotProps={{\n textField: {\n name,\n error: meta.touched && Boolean(meta.error),\n helperText: meta.touched && meta.error,\n size: \"small\",\n fullWidth: true,\n disabled,\n sx: {\n \"& .MuiPickersSectionList-root\": {\n width: \"100%\"\n },\n \"& .MuiFormHelperText-root\": {\n marginLeft: \"4px\",\n marginRight: \"4px\"\n }\n }\n }\n }}\n />\n </LocalizationProvider>\n );\n};\n\nMuiFormikTimepicker.propTypes = {\n name: PropTypes.string.isRequired\n};\n\nexport default MuiFormikTimepicker;\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/icons-material/Clear\");","module.exports = require(\"@mui/icons-material/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/material/Dialog\");","module.exports = require(\"@mui/material/DialogActions\");","module.exports = require(\"@mui/material/DialogContent\");","module.exports = require(\"@mui/material/DialogTitle\");","module.exports = require(\"@mui/x-date-pickers/AdapterMoment\");","module.exports = require(\"@mui/x-date-pickers/LocalizationProvider\");","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};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport Button from \"@mui/material/Button\";\nimport Dialog from \"@mui/material/Dialog\";\nimport DialogActions from \"@mui/material/DialogActions\";\nimport DialogContent from \"@mui/material/DialogContent\";\nimport DialogTitle from \"@mui/material/DialogTitle\";\nimport { Divider, IconButton, Typography } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ItemTableField from \"../FormItemTable/components/ItemTableField\";\n\nconst ItemSettingsModal = ({ item, timeZone, open, onClose }) => {\n const itemFields =\n item?.meta_fields.filter((f) => f.class_field === \"Item\") || [];\n\n const handleSave = () => {\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>{T.translate(\"general.settings\")}</DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <Typography\n variant=\"body2\"\n component=\"div\"\n sx={{ marginBottom: \"20px\" }}\n >\n {item?.name}\n </Typography>\n <Divider\n sx={{\n marginBottom: \"20px\",\n marginLeft: \"-24px\",\n marginRight: \"-24px\"\n }}\n />\n {itemFields.map((exc) => (\n <React.Fragment key={`item-field-${exc.type_id}`}>\n <ItemTableField\n field={exc}\n rowId={item.form_item_id}\n timeZone={timeZone}\n label={exc.name}\n />\n </React.Fragment>\n ))}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nItemSettingsModal.propTypes = {\n item: PropTypes.object.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default ItemSettingsModal;\n"],"names":["root","factory","exports","module","define","amd","this","rowId","field","timeZone","label","disabled","commonProps","name","class_field","type_id","type","size","options","values","map","v","value","id","fullWidth","slotProps","htmlInput","min","minimum_quantity","maximum_quantity","max","MenuItem","key","multiline","rows","MuiFormikCheckbox","props","meta","useField","FormControl","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired","require","MuiFormikDatepicker","required","helpers","requiredLabel","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","onChange","setValue","textField","helperText","day","sx","fontSize","fontWeight","layout","rest","allSelected","every","includes","Select","variant","multiple","event","target","opt","onBlur","displayEmpty","renderValue","selected","length","placeholder","T","filter","join","ListItemText","primary","Divider","finalPlaceholder","selectedOption","find","Radio","MuiFormikSelect","children","isClearable","shouldShrink","InputLabel","htmlFor","shrink","labelId","notched","style","color","endAdornment","InputAdornment","position","mr","IconButton","onClick","ev","stopPropagation","MuiFormikTextField","maxLength","currentLength","finalLabel","Box","TextField","Typography","pl","MuiFormikTimepicker","minTime","maxTime","TimePicker","timezone","views","width","marginLeft","marginRight","__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","ItemSettingsModal","item","open","onClose","itemFields","meta_fields","f","maxWidth","theme","right","top","palette","grey","component","marginBottom","exc","form_item_id"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/menu-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,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,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,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AAO,CACLZ,GAAI,CAAEa,SAAU,QAInBlC,EAAUmC,KAAKC,IACd,MAAMC,EAAapC,GAAYQ,EAAc6B,SAASF,EAAKG,OAC3D,OACEzB,IAAAA,cAAC0B,EAAAA,SAAQ,CACP3D,IAAK,GAAGuD,EAAKG,QACbrB,QAASA,IA7DMkB,KACzB,GAAInC,EAAU,CACZ,MAAMwC,EAAahC,EAAc6B,SAASF,EAAKG,OAC3C9B,EAAciC,QAAQ7D,GAAQA,IAAQuD,EAAKG,QAC3C,IAAI9B,EAAe2B,EAAKG,OAC5BH,EAAKlB,UACLR,EAAiB+B,EACnB,CACAL,EAAKlB,UACLP,GAAa,EAoDYgC,CAAkBP,GACjCf,GAAI,CACFuB,aAAc,EACdC,YAAa,UACb,iBAAkB,CAAED,aAAc,GAClCtB,MAAOe,EAAa,sBAAwB,SAG7CD,EAAKG,MACG,KAIhB,EAIP3C,EAAWkD,UAAY,CACrBhD,SAAUiD,IAAAA,OACVhD,OAAQgD,IAAAA,OACR/C,UAAW+C,IAAAA,MAAgBC,WAC3B/C,SAAU8C,IAAAA,MAGZ,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 \"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/menu-button.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(\"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};","/**\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 PropTypes from \"prop-types\";\nimport { Badge, Button, Menu, MenuItem } from \"@mui/material\";\n\nconst MenuButton = ({\n buttonId,\n menuId,\n menuItems,\n hasBadge,\n children,\n ...rest\n}) => {\n const [anchorEl, setAnchorEl] = useState(null);\n const [selectedItems, setSelectedItems] = useState([]);\n\n const handleButtonClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleOptionClick = (item) => {\n if (hasBadge) {\n const newOptions = selectedItems.includes(item.label)\n ? selectedItems.filter((key) => key !== item.label)\n : [...selectedItems, item.label];\n item.onClick();\n setSelectedItems(newOptions);\n }\n item.onClick();\n handleClose();\n };\n\n const badgeCount = hasBadge ? selectedItems.length : undefined;\n\n return (\n <>\n <Button\n id={buttonId}\n aria-controls={anchorEl ? menuId : undefined}\n aria-haspopup=\"true\"\n aria-expanded={anchorEl ? \"true\" : undefined}\n onClick={handleButtonClick}\n sx={{ color: anchorEl ? \"--variant-textColor\" : \"#000\" }}\n {...rest}\n >\n {hasBadge ? (\n <Badge\n badgeContent={badgeCount}\n sx={{\n \"& .MuiBadge-badge\": {\n backgroundColor: \"black\",\n color: \"white\",\n right: \"65%\"\n }\n }}\n >\n {children}\n </Badge>\n ) : (\n children\n )}\n </Button>\n <Menu\n id={menuId}\n anchorEl={anchorEl}\n open={Boolean(anchorEl)}\n onClose={handleClose}\n MenuListProps={{\n \"aria-labelledby\": buttonId\n }}\n slotProps={{\n paper: {\n sx: { minWidth: 220 }\n }\n }}\n >\n {menuItems.map((item) => {\n const isSelected = hasBadge && selectedItems.includes(item.label);\n return (\n <MenuItem\n key={`${item.label}`}\n onClick={() => handleOptionClick(item)}\n sx={{\n borderBottom: 1,\n borderColor: \"divider\",\n \"&:last-of-type\": { borderBottom: 0 },\n color: isSelected ? \"--variant-textColor\" : \"#000\"\n }}\n >\n {item.label}\n </MenuItem>\n );\n })}\n </Menu>\n </>\n );\n};\n\nMenuButton.propTypes = {\n buttonId: PropTypes.string,\n menuId: PropTypes.string,\n menuItems: PropTypes.array.isRequired,\n hasBadge: PropTypes.bool\n};\n\nexport default MenuButton;\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","MenuButton","_ref","buttonId","menuId","menuItems","hasBadge","children","rest","_objectWithoutProperties","_excluded","anchorEl","setAnchorEl","useState","selectedItems","setSelectedItems","handleClose","badgeCount","length","React","Button","_extends","id","onClick","event","currentTarget","sx","color","Badge","badgeContent","backgroundColor","right","Menu","open","Boolean","onClose","MenuListProps","slotProps","paper","minWidth","map","item","isSelected","includes","label","MenuItem","newOptions","filter","handleOptionClick","borderBottom","borderColor","propTypes","PropTypes","isRequired"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/menu-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,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,a,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AAeM,EAAWL,OAASzB,EACnC,gBAAc,OACd,gBAAe8B,EAAW,YAAS9B,EACnCwC,QA7BqBC,IACzBV,EAAYU,EAAMC,cAAlB,EA6BIC,GAAI,CAAEC,MAAOd,EAAW,sBAAwB,SAC5CD,GAEHF,EACC,kBAAC,EAAAkB,MAAD,CACEC,aAAcV,EACdO,GAAI,CACF,oBAAqB,CACnBI,gBAAiB,QACjBH,MAAO,QACPI,MAAO,SAIVpB,GAGHA,GAGJ,kBAAC,EAAAqB,KAAD,CACEV,GAAId,EACJK,SAAUA,EACVoB,KAAMC,QAAQrB,GACdsB,QAASjB,EACTkB,cAAe,CACb,kBAAmB7B,GAErB8B,UAAW,CACTC,MAAO,CACLZ,GAAI,CAAEa,SAAU,QAInB9B,EAAU+B,KAAKC,IACd,MAAMC,EAAahC,GAAYM,EAAc2B,SAASF,EAAKG,OAC3D,OACE,kBAAC,EAAAC,SAAD,CACEtD,IAAM,GAAEkD,EAAKG,QACbrB,QAAS,IA7DMkB,KACzB,GAAI/B,EAAU,CACZ,MAAMoC,EAAa9B,EAAc2B,SAASF,EAAKG,OAC3C5B,EAAc+B,QAAQxD,GAAQA,IAAQkD,EAAKG,QAC3C,IAAI5B,EAAeyB,EAAKG,OAC5BH,EAAKlB,UACLN,EAAiB6B,EAClB,CACDL,EAAKlB,UACLL,GAAa,EAoDY8B,CAAkBP,GACjCf,GAAI,CACFuB,aAAc,EACdC,YAAa,UACb,iBAAkB,CAAED,aAAc,GAClCtB,MAAOe,EAAa,sBAAwB,SAG7CD,EAAKG,MAXV,KA5CR,EAgEFtC,EAAW6C,UAAY,CACrB5C,SAAU6C,IAAAA,OACV5C,OAAQ4C,IAAAA,OACR3C,UAAW2C,IAAAA,MAAgBC,WAC3B3C,SAAU0C,IAAAA,MAGZ,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 \"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/menu-button.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(\"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};","/**\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 PropTypes from \"prop-types\";\nimport { Badge, Button, Menu, MenuItem } from \"@mui/material\";\n\nconst MenuButton = ({\n buttonId,\n menuId,\n menuItems,\n hasBadge,\n children,\n ...rest\n}) => {\n const [anchorEl, setAnchorEl] = useState(null);\n const [selectedItems, setSelectedItems] = useState([]);\n\n const handleButtonClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleOptionClick = (item) => {\n if (hasBadge) {\n const newOptions = selectedItems.includes(item.label)\n ? selectedItems.filter((key) => key !== item.label)\n : [...selectedItems, item.label];\n item.onClick();\n setSelectedItems(newOptions);\n }\n item.onClick();\n handleClose();\n };\n\n const badgeCount = hasBadge ? selectedItems.length : undefined;\n\n return (\n <>\n <Button\n id={buttonId}\n aria-controls={anchorEl ? menuId : undefined}\n aria-haspopup=\"true\"\n aria-expanded={anchorEl ? \"true\" : undefined}\n onClick={handleButtonClick}\n sx={{ color: anchorEl ? \"--variant-textColor\" : \"#000\" }}\n {...rest}\n >\n {hasBadge ? (\n <Badge\n badgeContent={badgeCount}\n sx={{\n \"& .MuiBadge-badge\": {\n backgroundColor: \"black\",\n color: \"white\",\n right: \"65%\"\n }\n }}\n >\n {children}\n </Badge>\n ) : (\n children\n )}\n </Button>\n <Menu\n id={menuId}\n anchorEl={anchorEl}\n open={Boolean(anchorEl)}\n onClose={handleClose}\n MenuListProps={{\n \"aria-labelledby\": buttonId\n }}\n slotProps={{\n paper: {\n sx: { minWidth: 220 }\n }\n }}\n >\n {menuItems.map((item) => {\n const isSelected = hasBadge && selectedItems.includes(item.label);\n return (\n <MenuItem\n key={`${item.label}`}\n onClick={() => handleOptionClick(item)}\n sx={{\n borderBottom: 1,\n borderColor: \"divider\",\n \"&:last-of-type\": { borderBottom: 0 },\n color: isSelected ? \"--variant-textColor\" : \"#000\"\n }}\n >\n {item.label}\n </MenuItem>\n );\n })}\n </Menu>\n </>\n );\n};\n\nMenuButton.propTypes = {\n buttonId: PropTypes.string,\n menuId: PropTypes.string,\n menuItems: PropTypes.array.isRequired,\n hasBadge: PropTypes.bool\n};\n\nexport default MenuButton;\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","MenuButton","buttonId","menuId","menuItems","hasBadge","children","rest","anchorEl","setAnchorEl","useState","selectedItems","setSelectedItems","handleClose","badgeCount","length","Button","id","onClick","event","currentTarget","sx","color","Badge","badgeContent","backgroundColor","right","Menu","open","Boolean","onClose","MenuListProps","slotProps","paper","minWidth","map","item","isSelected","includes","label","MenuItem","newOptions","filter","handleOptionClick","borderBottom","borderColor","propTypes","PropTypes","isRequired"],"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={4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},9870:e=>{e.exports=require("i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function o(r){var l=t[r];if(void 0!==l)return l.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{default:()=>g});var l=o(2015),n=o.n(l),a=o(9825),i=o.n(a),u=o(9870),s=o.n(u),c=o(3294),p=o(8619),d=o(4325),f=o.n(d);const m=({id:e,label:t,open:o,title:r,placeholder:a,onClose:i})=>{const u=`i-${e}-c-global-f-notes`,[d,m,g]=(0,c.useField)(u),[v,x]=(0,l.useState)((null==d?void 0:d.value)||"");(0,l.useEffect)((()=>{x((null==d?void 0:d.value)||"")}),[e,null==d?void 0:d.value]);return n().createElement(p.Dialog,{open:o,onClose:i,maxWidth:"sm",fullWidth:!0},n().createElement(p.DialogTitle,null,r||s().translate("general.notes")),n().createElement(p.IconButton,{"aria-label":"close",onClick:i,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},n().createElement(f(),null)),n().createElement(p.Divider,null),n().createElement(p.DialogContent,null,n().createElement(p.DialogContentText,null,t),n().createElement(p.TextField,{name:u,onChange:e=>x(e.target.value),value:v,margin:"normal",multiline:!0,fullWidth:!0,rows:4,placeholder:a||s().translate("placeholders.notes")})),n().createElement(p.DialogActions,null,n().createElement(p.Button,{onClick:()=>{g.setValue(v),i()},variant:"contained",fullWidth:!0},s().translate("general.save"))))};m.propTypes={id:i().any,label:i().string,title:i().string,placeholder:i().string,open:i().bool.isRequired,onClose:i().func.isRequired};const g=m;return r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={4325:e=>{e.exports=require("@mui/icons-material/Close")},8619:e=>{e.exports=require("@mui/material")},6368:e=>{e.exports=require("@mui/material/Button")},1624:e=>{e.exports=require("@mui/material/Dialog")},8843:e=>{e.exports=require("@mui/material/DialogActions")},6809:e=>{e.exports=require("@mui/material/DialogContent")},8926:e=>{e.exports=require("@mui/material/DialogTitle")},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")}},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:()=>D});var n=r(2015),i=r.n(n),l=r(6842),a=r.n(l),u=r(9825),s=r.n(u),c=r(6368),p=r.n(c),m=r(1624),d=r.n(m),f=r(8843),x=r.n(f),v=r(6809),g=r.n(v);const b=require("@mui/material/DialogContentText");var y=r.n(b),q=r(8926),E=r.n(q),_=r(3294),h=r(8619),C=r(4325),j=r.n(C);const k=({item:e,open:t,onClose:r})=>{const o=`i-${null==e?void 0:e.form_item_id}-c-global-f-notes`,[l,u,s]=(0,_.useField)(o),[c,m]=(0,n.useState)("");(0,n.useEffect)((()=>{m(l.value||"")}),[null==l?void 0:l.value]);return i().createElement(d(),{open:t,onClose:r,maxWidth:"sm",fullWidth:!0},i().createElement(E(),null,a().translate("sponsor_edit_form.notes")),i().createElement(h.IconButton,{"aria-label":"close",onClick:r,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]})},i().createElement(j(),null)),i().createElement(h.Divider,null),i().createElement(g(),null,i().createElement(y(),null,null==e?void 0:e.name),i().createElement(h.TextField,{name:o,onChange:e=>m(e.target.value),value:c,margin:"normal",multiline:!0,fullWidth:!0,rows:4,placeholder:a().translate("sponsor_edit_form.notes_placeholder")})),i().createElement(x(),null,i().createElement(p(),{onClick:()=>{s.setValue(c),r()},variant:"contained",fullWidth:!0},a().translate("general.save"))))};k.propTypes={item:s().object,open:s().bool.isRequired,onClose:s().func.isRequired};const D=k;return o})()));
2
2
  //# sourceMappingURL=notes-modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/notes-modal.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,4B,WCAzBJ,EAAOD,QA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B,EAAAA,EAAAA,YAAU,KACRF,GAASL,aAAK,EAALA,EAAOT,QAAS,GAAG,GAC3B,CAACE,EAAIO,aAAK,EAALA,EAAOT,QAOf,OACEiB,IAAAA,cAACC,EAAAA,OAAM,CAACd,KAAMA,EAAMG,QAASA,EAASY,SAAS,KAAKC,WAAS,GAC3DH,IAAAA,cAACI,EAAAA,YAAW,KAAEhB,GAASiB,IAAAA,UAAY,kBACnCL,IAAAA,cAACM,EAAAA,WAAU,CACT,aAAW,QACXC,QAASjB,EACTkB,GAAKC,IAAK,CACRC,SAAU,WACVC,MAAO,EACPC,IAAK,EACLC,MAAOJ,EAAMK,QAAQC,KAAK,QAG5Bf,IAAAA,cAACgB,IAAS,OAEZhB,IAAAA,cAACiB,EAAAA,QAAO,MACRjB,IAAAA,cAACkB,EAAAA,cAAa,KACZlB,IAAAA,cAACmB,EAAAA,kBAAiB,KAAEjC,GACpBc,IAAAA,cAACoB,EAAAA,UAAS,CACR7B,KAAMA,EACN8B,SAAWC,GAAOzB,EAASyB,EAAGC,OAAOxC,OACrCA,MAAOa,EACP4B,OAAO,SACPC,WAAS,EACTtB,WAAS,EACTuB,KAAM,EACNrC,YAAaA,GAAegB,IAAAA,UAAY,yBAG5CL,IAAAA,cAAC2B,EAAAA,cAAa,KACZ3B,IAAAA,cAAC4B,EAAAA,OAAM,CAACrB,QAnCKsB,KACjBnC,EAAQoC,SAASlC,GACjBN,GAAS,EAiCwByC,QAAQ,YAAY5B,WAAS,GACvDE,IAAAA,UAAY,kBAGV,EAIbrB,EAAWgD,UAAY,CACrB/C,GAAIgD,IAAAA,IACJ/C,MAAO+C,IAAAA,OACP7C,MAAO6C,IAAAA,OACP5C,YAAa4C,IAAAA,OACb9C,KAAM8C,IAAAA,KAAeC,WACrB5C,QAAS2C,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"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/NotesModal/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/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"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};","/**\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 PropTypes from \"prop-types\";\nimport T from \"i18n-react\";\nimport { useField } from \"formik\";\nimport { Button, Dialog, DialogActions, DialogContent, Divider, DialogContentText, DialogTitle, IconButton, TextField } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\n\nconst NotesModal = ({ id, label, open, title, placeholder, onClose }) => {\n const name = `i-${id}-c-global-f-notes`;\n // eslint-disable-next-line\n const [field, meta, helpers] = useField(name);\n const [notes, setNotes] = useState(field?.value || \"\");\n\n useEffect(() => {\n setNotes(field?.value || \"\");\n }, [id, field?.value]);\n\n const handleSave = () => {\n helpers.setValue(notes);\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>{title || T.translate(\"general.notes\")}</DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <DialogContentText>{label}</DialogContentText>\n <TextField\n name={name}\n onChange={(ev) => setNotes(ev.target.value)}\n value={notes}\n margin=\"normal\"\n multiline\n fullWidth\n rows={4}\n placeholder={placeholder || T.translate(\"placeholders.notes\")}\n />\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nNotesModal.propTypes = {\n id: PropTypes.any,\n label: PropTypes.string,\n title: PropTypes.string,\n placeholder: PropTypes.string,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default NotesModal;\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","NotesModal","id","label","open","title","placeholder","onClose","name","field","meta","helpers","useField","notes","setNotes","useState","useEffect","React","Dialog","maxWidth","fullWidth","DialogTitle","T","IconButton","onClick","sx","theme","position","right","top","color","palette","grey","CloseIcon","Divider","DialogContent","DialogContentText","TextField","onChange","ev","target","margin","multiline","rows","DialogActions","Button","handleSave","setValue","variant","propTypes","PropTypes","isRequired"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/notes-modal.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,EAA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CL9D,MAAM,EAA+B3B,QAAQ,mC,uEC0B7C,MAAM4B,EAAa,EAAGC,OAAMC,OAAMC,cAChC,MAAMC,EAAQ,KAAIH,aAAL,EAAKA,EAAMI,iCAEjBC,EAAOC,EAAMC,IAAWC,EAAAA,EAAAA,UAASL,IACjCM,EAAOC,IAAYC,EAAAA,EAAAA,UAAS,KAEnCC,EAAAA,EAAAA,YAAU,KACRF,EAASL,EAAMP,OAAS,GAAxB,GACC,CAACO,aAAD,EAACA,EAAOP,QAOX,OACE,kBAAC,IAAD,CAAQG,KAAMA,EAAMC,QAASA,EAASW,SAAS,KAAKC,WAAS,GAC3D,kBAAC,IAAD,KACGC,IAAAA,UAAY,4BAEf,kBAAC,EAAAC,WAAD,CACE,aAAW,QACXC,QAASf,EACTgB,GAAKC,IAAD,CACFC,SAAU,WACVC,MAAO,EACPC,IAAK,EACLC,MAAOJ,EAAMK,QAAQC,KAAK,QAG5B,kBAAC,IAAD,OAEF,kBAAC,EAAAC,QAAD,MACA,kBAAC,IAAD,KACE,kBAAC,IAAD,KAAoB1B,aAApB,EAAoBA,EAAMG,MAC1B,kBAAC,EAAAwB,UAAD,CACExB,KAAMA,EACNyB,SAAWC,GAAOnB,EAASmB,EAAGC,OAAOhC,OACrCA,MAAOW,EACPsB,OAAO,SACPC,WAAS,EACTlB,WAAS,EACTmB,KAAM,EACNC,YAAanB,IAAAA,UACX,0CAIN,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAQE,QAvCK,KACjBV,EAAQ4B,SAAS1B,GACjBP,GAAS,EAqCwBkC,QAAQ,YAAYtB,WAAS,GACvDC,IAAAA,UAAY,kBAnCrB,EA0CFhB,EAAWsC,UAAY,CACrBrC,KAAMsC,IAAAA,OACNrC,KAAMqC,IAAAA,KAAeC,WACrBrC,QAASoC,IAAAA,KAAeC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Button\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/Dialog\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogActions\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogContent\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material/DialogTitle\"","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/external commonjs \"@mui/material/DialogContentText\"","webpack://openstack-uicore-foundation/./src/components/mui/NotesModal/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/Close\");","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/Button\");","module.exports = require(\"@mui/material/Dialog\");","module.exports = require(\"@mui/material/DialogActions\");","module.exports = require(\"@mui/material/DialogContent\");","module.exports = require(\"@mui/material/DialogTitle\");","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};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/material/DialogContentText\");","/**\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, { useEffect, useState } from \"react\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport PropTypes from \"prop-types\";\nimport Button from \"@mui/material/Button\";\nimport Dialog from \"@mui/material/Dialog\";\nimport DialogActions from \"@mui/material/DialogActions\";\nimport DialogContent from \"@mui/material/DialogContent\";\nimport DialogContentText from \"@mui/material/DialogContentText\";\nimport DialogTitle from \"@mui/material/DialogTitle\";\nimport { useField } from \"formik\";\nimport { Divider, IconButton, TextField } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\n\nconst NotesModal = ({ item, open, onClose }) => {\n const name = `i-${item?.form_item_id}-c-global-f-notes`;\n // eslint-disable-next-line\n const [field, meta, helpers] = useField(name);\n const [notes, setNotes] = useState(\"\");\n\n useEffect(() => {\n setNotes(field.value || \"\");\n }, [field?.value]);\n\n const handleSave = () => {\n helpers.setValue(notes);\n onClose();\n };\n\n return (\n <Dialog open={open} onClose={onClose} maxWidth=\"sm\" fullWidth>\n <DialogTitle>\n {T.translate(\"sponsor_edit_form.notes\")}\n </DialogTitle>\n <IconButton\n aria-label=\"close\"\n onClick={onClose}\n sx={(theme) => ({\n position: \"absolute\",\n right: 8,\n top: 8,\n color: theme.palette.grey[500]\n })}\n >\n <CloseIcon />\n </IconButton>\n <Divider />\n <DialogContent>\n <DialogContentText>{item?.name}</DialogContentText>\n <TextField\n name={name}\n onChange={(ev) => setNotes(ev.target.value)}\n value={notes}\n margin=\"normal\"\n multiline\n fullWidth\n rows={4}\n placeholder={T.translate(\n \"sponsor_edit_form.notes_placeholder\"\n )}\n />\n </DialogContent>\n <DialogActions>\n <Button onClick={handleSave} variant=\"contained\" fullWidth>\n {T.translate(\"general.save\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n\nNotesModal.propTypes = {\n item: PropTypes.object,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired\n};\n\nexport default NotesModal;\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","NotesModal","item","open","onClose","name","form_item_id","field","meta","helpers","useField","notes","setNotes","useState","useEffect","maxWidth","fullWidth","T","IconButton","onClick","sx","theme","position","right","top","color","palette","grey","Divider","TextField","onChange","ev","target","margin","multiline","rows","placeholder","setValue","variant","propTypes","PropTypes","isRequired"],"sourceRoot":""}