openstack-uicore-foundation 5.0.49-beta.1 → 5.0.49

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 (103) hide show
  1. package/.claude/rules/openstack-uicore-foundation-components.md +67 -0
  2. package/.claude/rules/openstack-uicore-foundation-project.md +69 -0
  3. package/.claude/rules/openstack-uicore-foundation-security.md +39 -0
  4. package/.claude/settings.local.json +7 -0
  5. package/.codegraph/.gitignore +5 -0
  6. package/docs/plans/2026-04-09-showconfirmdialog-react16-compat.md +83 -0
  7. package/docs/plans/2026-04-22-dropzone-pooling-ux.md +129 -0
  8. package/docs/plans/2026-04-23-uploadv3-duplicate-file-max-reached.md +109 -0
  9. package/docs/plans/2026-04-23-uploadv3-premature-complete-on-202.md +99 -0
  10. package/docs/plans/2026-07-06-file-size-field-unit-prop.md +20 -0
  11. package/docs/plans/2026-07-30-node-22-migration.md +139 -0
  12. package/docs/plans/clickup-barrel-mui-dragalong.md +43 -0
  13. package/docs/plans/clickup-order-ledger-extraction.md +44 -0
  14. package/docs/plans/clickup-uploadv3-progress-bar-large-files.md +42 -0
  15. package/lib/components/index.js +1 -1
  16. package/lib/components/index.js.map +1 -1
  17. package/lib/components/inputs/access-levels-input.js.map +1 -1
  18. package/lib/components/inputs/attendee-input.js.map +1 -1
  19. package/lib/components/inputs/company-input-v2.js.map +1 -1
  20. package/lib/components/inputs/company-input.js.map +1 -1
  21. package/lib/components/inputs/country-dropdown.js.map +1 -1
  22. package/lib/components/inputs/country-input.js.map +1 -1
  23. package/lib/components/inputs/event-input.js.map +1 -1
  24. package/lib/components/inputs/group-input.js.map +1 -1
  25. package/lib/components/inputs/language-input.js.map +1 -1
  26. package/lib/components/inputs/member-input.js.map +1 -1
  27. package/lib/components/inputs/organization-input.js.map +1 -1
  28. package/lib/components/inputs/promocode-input.js.map +1 -1
  29. package/lib/components/inputs/registration-company-input.js.map +1 -1
  30. package/lib/components/inputs/speaker-input.js.map +1 -1
  31. package/lib/components/inputs/sponsor-input.js.map +1 -1
  32. package/lib/components/inputs/summit-input.js.map +1 -1
  33. package/lib/components/inputs/tag-input.js.map +1 -1
  34. package/lib/components/inputs/ticket-types-input.js.map +1 -1
  35. package/lib/components/inputs/upload-input-v2.js +1 -1
  36. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  37. package/lib/components/inputs/upload-input-v3.js +1 -1
  38. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  39. package/lib/components/mui/addon-type-select.js +2 -0
  40. package/lib/components/mui/addon-type-select.js.map +1 -0
  41. package/lib/components/mui/auth-button.js +1 -1
  42. package/lib/components/mui/auth-button.js.map +1 -1
  43. package/lib/components/mui/bulk-edit-table.js +1 -1
  44. package/lib/components/mui/bulk-edit-table.js.map +1 -1
  45. package/lib/components/mui/drag-n-drop-list.js +1 -1
  46. package/lib/components/mui/drag-n-drop-list.js.map +1 -1
  47. package/lib/components/mui/editable-table.js +1 -1
  48. package/lib/components/mui/editable-table.js.map +1 -1
  49. package/lib/components/mui/formik-inputs/additional-input-list-v2.js +2 -0
  50. package/lib/components/mui/formik-inputs/additional-input-list-v2.js.map +1 -0
  51. package/lib/components/mui/formik-inputs/additional-input-list.js +1 -1
  52. package/lib/components/mui/formik-inputs/additional-input-list.js.map +1 -1
  53. package/lib/components/mui/formik-inputs/additional-input-v2.js +2 -0
  54. package/lib/components/mui/formik-inputs/additional-input-v2.js.map +1 -0
  55. package/lib/components/mui/formik-inputs/additional-input.js +1 -1
  56. package/lib/components/mui/formik-inputs/additional-input.js.map +1 -1
  57. package/lib/components/mui/formik-inputs/addon-type-select.js +2 -0
  58. package/lib/components/mui/formik-inputs/addon-type-select.js.map +1 -0
  59. package/lib/components/mui/formik-inputs/company-input.js.map +1 -1
  60. package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
  61. package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
  62. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
  63. package/lib/components/mui/formik-inputs/upload.js +1 -1
  64. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  65. package/lib/components/mui/grid-filter.js.map +1 -1
  66. package/lib/components/mui/nav-bar.js +1 -1
  67. package/lib/components/mui/nav-bar.js.map +1 -1
  68. package/lib/components/mui/sortable-table-v2.js +2 -0
  69. package/lib/components/mui/sortable-table-v2.js.map +1 -0
  70. package/lib/components/mui/sortable-table.js +1 -1
  71. package/lib/components/mui/sortable-table.js.map +1 -1
  72. package/lib/components/mui/sponsor-addon-select.js.map +1 -1
  73. package/lib/components/mui/sponsor-order-grid.js +1 -1
  74. package/lib/components/mui/sponsor-order-grid.js.map +1 -1
  75. package/lib/components/mui/summits-dropdown.js +1 -1
  76. package/lib/components/mui/summits-dropdown.js.map +1 -1
  77. package/lib/components/mui/table/custom-table-pagination.js.map +1 -1
  78. package/lib/components/mui/table/extra-rows.js.map +1 -1
  79. package/lib/components/mui/table.js +1 -1
  80. package/lib/components/mui/table.js.map +1 -1
  81. package/lib/components/mui/upload-dialog.js +1 -1
  82. package/lib/components/mui/upload-dialog.js.map +1 -1
  83. package/lib/components/sponsored-project-input.js.map +1 -1
  84. package/lib/css/components/index.css +1 -1
  85. package/lib/css/components/index.css.map +1 -1
  86. package/lib/css/components/mui/editable-table.css +1 -1
  87. package/lib/css/components/mui/editable-table.css.map +1 -1
  88. package/lib/css/components/mui/sortable-table-v2.css +2 -0
  89. package/lib/css/components/mui/sortable-table-v2.css.map +1 -0
  90. package/lib/css/components/mui/sortable-table.css +1 -1
  91. package/lib/css/components/mui/sortable-table.css.map +1 -1
  92. package/lib/css/components/mui/table.css +1 -1
  93. package/lib/css/components/mui/table.css.map +1 -1
  94. package/lib/utils/query-actions.js +1 -1
  95. package/lib/utils/query-actions.js.map +1 -1
  96. package/lib/utils/theme.js +1 -1
  97. package/lib/utils/theme.js.map +1 -1
  98. package/package.json +1 -1
  99. package/lib/components/mui/formik-inputs/summit-addon-select.js +0 -2
  100. package/lib/components/mui/formik-inputs/summit-addon-select.js.map +0 -1
  101. package/lib/components/mui/summit-addon-select.js +0 -2
  102. package/lib/components/mui/summit-addon-select.js.map +0 -1
  103. package/package-lock.json +0 -22291
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components/mui/formik-inputs/additional-input-v2.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,0GCTT,MAAM,EAA+BC,QAAQ,iBCAvC,EAA+BA,QAAQ,qB,iCCA7C,MAAM,EAA+BA,QAAQ,sB,ikBCqB7C,MAAMC,EAAeA,EAAGC,KAAIC,OAAMC,QAAOC,iBACvC,MAAM,WACJC,EAAU,UACVC,EAAS,WACTC,EAAU,UACVC,EAAS,WACTC,EAAU,WACVC,IACEC,EAAAA,EAAAA,aAAY,CAAEV,OAElB,OACEW,IAAAA,cAACC,EAAAA,IAAG,CACFC,IAAKP,EACLQ,MAAO,CACLP,UAAWQ,EAAAA,IAAIC,UAAUC,SAASV,GAClCC,WAAY,CAACA,EAAY,wBAAwBU,OAAOC,SAASC,KAAK,MACtEC,OAAQZ,EAAa,EAAI,OACzBa,SAAU,YAEZC,GAAI,CAAEC,WAAYf,EAAa,UAAY,YAE1CN,EAAWF,EAAMC,EAAO,CACvBO,aACAgB,gBAAeC,EAAAA,EAAA,GAAOrB,GAAcD,KAElC,EAIVL,EAAa4B,UAAY,CACvB3B,GAAI4B,IAAAA,OAAiBC,WACrB5B,KAAM2B,IAAAA,OAAiBC,WACvB3B,MAAO0B,IAAAA,OACPzB,WAAYyB,IAAAA,KAAeC,YAG7B,U,ikBC/BA,MAgCA,EAhCyBC,EACvBC,QACAC,YACAC,YACAC,iBAAiB,QACjBC,cAAc,MAwBP,CAAEC,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KACrB,MAAMhB,EAAYxB,EAAW9L,KAAI,CAACwM,EAAG5M,KACnC,GAAIA,IAAMwL,EAAY,OAAOoB,EAC7B,MAAM+B,EAAgB/B,EAAE9C,QAAU,GAC5B8E,EACJC,KAAKC,IAAI,KAAMH,EAAcvO,KAAK6M,GAAMA,EAAEX,OAAS,KAAM,EAC3D,OAAA9N,EAAAA,EAAA,GACKoO,GAAC,IACJ9C,OAAQ,IACH6E,EACH,CAAE/J,MAAO,GAAIhB,KAAM,GAAIsK,YAAY,EAAO5B,MAAOsC,KAClD,IAGL7E,EAAcT,EAAUoE,EAAU,EA+I5B9K,QAAQ,QAEPkI,IAAAA,UAAY,2BAGb,EC5LV,EAJ2BhH,GACzBrG,IAAAA,cAAC2L,EAAmB1E,IAAA,GAAKZ,EAAK,CAAE8F,yBAA0BqC,K","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@dnd-kit/core\"","webpack://openstack-uicore-foundation/external commonjs \"@dnd-kit/sortable\"","webpack://openstack-uicore-foundation/external commonjs \"@dnd-kit/utilities\"","webpack://openstack-uicore-foundation/./src/components/mui/DragNDropList/sortable-item.js","webpack://openstack-uicore-foundation/./src/components/mui/DragNDropList/hooks/useDndKitReorder.js","webpack://openstack-uicore-foundation/./src/components/mui/DragNDropList/index.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","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/./src/components/mui/showConfirmDialog.js","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/CheckCircle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Error\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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 \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Add\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/additional-input-core.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/DragIndicator\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/meta-field-values-v2.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/additional-input-v2.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@dnd-kit/core\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@dnd-kit/sortable\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@dnd-kit/utilities\");","/**\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 useSortable,\n} from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\nimport { Box } from \"@mui/material\";\n\nconst SortableItem = ({ id, item, index, renderItem }) => {\n const {\n attributes,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging\n } = useSortable({ id });\n\n return (\n <Box\n ref={setNodeRef}\n style={{\n transform: CSS.Transform.toString(transform),\n transition: [transition, \"background 0.2s ease\"].filter(Boolean).join(\", \"),\n zIndex: isDragging ? 1 : \"auto\",\n position: \"relative\"\n }}\n sx={{ background: isDragging ? \"#f0f0f0\" : \"inherit\" }}\n >\n {renderItem(item, index, {\n isDragging,\n dragHandleProps: { ...listeners, ...attributes }\n })}\n </Box>\n );\n};\n\nSortableItem.propTypes = {\n id: PropTypes.string.isRequired,\n item: PropTypes.object.isRequired,\n index: PropTypes.number,\n renderItem: PropTypes.func.isRequired\n};\n\nexport default SortableItem;\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 {\n closestCenter,\n KeyboardSensor,\n PointerSensor,\n useSensor,\n useSensors\n} from \"@dnd-kit/core\";\nimport { sortableKeyboardCoordinates, arrayMove } from \"@dnd-kit/sortable\";\n\n// Shared dnd-kit wiring for reorderable lists/tables: sensors, collision\n// detection, and the base order computation (orderOffset + idx + 1).\n// orderOffset lets a paginated consumer add its page offset on top without\n// duplicating the sensor/collision setup or the id-matching logic.\nconst useDndKitReorder = ({\n items,\n getItemId,\n onReorder,\n updateOrderKey = \"order\",\n orderOffset = 0\n}) => {\n const sensors = useSensors(\n useSensor(PointerSensor),\n useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates })\n );\n\n const handleDragEnd = ({ active, over }) => {\n if (!over || active.id === over.id) return;\n\n const oldIndex = items.findIndex((item, i) => getItemId(item, i) === active.id);\n const newIndex = items.findIndex((item, i) => getItemId(item, i) === over.id);\n\n if (oldIndex === -1 || newIndex === -1) return;\n\n const reordered = arrayMove(items, oldIndex, newIndex).map((item, idx) =>\n updateOrderKey\n ? { ...item, [updateOrderKey]: orderOffset + idx + 1 }\n : item\n );\n\n onReorder(reordered, { active, over, oldIndex, newIndex });\n };\n\n return { sensors, collisionDetection: closestCenter, handleDragEnd };\n};\n\nexport default useDndKitReorder;\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 { DndContext } from \"@dnd-kit/core\";\nimport { SortableContext, verticalListSortingStrategy } from \"@dnd-kit/sortable\";\nimport { Box } from \"@mui/material\";\n\nimport SortableItem from \"./sortable-item\";\nimport useDndKitReorder from \"./hooks/useDndKitReorder\";\n\n// Items without an idKey value fall back to a positional id (new-${index}).\n// Because that id is recomputed from the current index every render, after a\n// reorder it identifies whatever item now occupies that slot, not the item it\n// originally pointed to - React will reuse that item's fiber instead of\n// remounting it. Harmless if renderItem is stateless/positional (e.g. Formik\n// fields bound by values[index]), but consumers relying on local/uncontrolled\n// state inside renderItem should assign a stable id (e.g. crypto.randomUUID())\n// to new items instead of leaving idKey undefined.\nconst getItemId = (item, index, idKey) =>\n item[idKey] !== undefined && item[idKey] !== null\n ? String(item[idKey])\n : `new-${index}`;\n\nconst DragNDropList = ({\n items,\n onReorder,\n renderItem,\n idKey = \"id\",\n updateOrderKey = \"order\"\n}) => {\n const { sensors, collisionDetection, handleDragEnd } = useDndKitReorder({\n items,\n getItemId: (item, i) => getItemId(item, i, idKey),\n updateOrderKey,\n onReorder: (reordered, { active, over }) => onReorder(reordered, { active, over })\n });\n\n return (\n <DndContext\n sensors={sensors}\n collisionDetection={collisionDetection}\n onDragEnd={handleDragEnd}\n >\n <SortableContext\n items={items.map((item, i) => getItemId(item, i, idKey))}\n strategy={verticalListSortingStrategy}\n >\n <Box sx={{ width: \"100%\" }}>\n {items.map((item, index) => (\n <SortableItem\n key={getItemId(item, index, idKey)}\n id={getItemId(item, index, idKey)}\n item={item}\n index={index}\n renderItem={renderItem}\n />\n ))}\n </Box>\n </SortableContext>\n </DndContext>\n );\n};\n\nDragNDropList.propTypes = {\n items: PropTypes.array.isRequired,\n onReorder: PropTypes.func.isRequired,\n renderItem: PropTypes.func.isRequired,\n idKey: PropTypes.string,\n updateOrderKey: PropTypes.string\n};\n\nexport default DragNDropList;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport CheckCircle from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React 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, margin = \"normal\", ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin={margin}\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/icons-material/Clear\");","/**\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","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!_global[BRIDGE_KEY]) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return _global[BRIDGE_KEY]({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const ASYNC_SELECT_SAFETY_TIMEOUT = 15000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","module.exports = require(\"@mui/icons-material/Error\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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(\"i18n-react/dist/i18n-react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Delete\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Add\");","/**\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 Box,\n Button,\n Divider,\n FormHelperText,\n Grid2,\n InputLabel,\n MenuItem\n} from \"@mui/material\";\nimport { useFormikContext, getIn } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikSelect from \"../mui-formik-select\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\nimport {\n METAFIELD_TYPES,\n METAFIELD_TYPES_WITH_OPTIONS\n} from \"../../../../utils/constants\";\n\nconst AdditionalInputCore = ({\n item,\n itemIdx,\n baseName,\n onAdd,\n onDelete,\n onDeleteValue,\n entityId,\n isAddDisabled,\n MetaFieldValuesComponent\n}) => {\n const { errors, touched, values, setFieldValue } = useFormikContext();\n\n const buildFieldName = (fieldName) => `${baseName}[${itemIdx}].${fieldName}`;\n const currentType = getIn(values, buildFieldName(\"type\"));\n\n const handleTypeChange = (e) => {\n const newType = e.target.value;\n setFieldValue(buildFieldName(\"type\"), newType);\n if (!METAFIELD_TYPES_WITH_OPTIONS.includes(newType)) {\n setFieldValue(buildFieldName(\"values\"), []);\n }\n };\n\n const fieldErrors = getIn(errors, `${baseName}[${itemIdx}]`);\n const fieldTouched = getIn(touched, `${baseName}[${itemIdx}]`);\n\n const showValuesError =\n fieldTouched?.values &&\n fieldErrors?.values &&\n typeof fieldErrors.values === \"string\";\n\n return (\n <Grid2 container spacing={2} sx={{ alignItems: \"center\" }}>\n <Grid2 size={11}>\n <Box\n sx={{\n border: \"1px solid #0000001F\",\n borderRadius: \"4px\",\n p: 2,\n my: 2\n }}\n >\n <Grid2 container spacing={2} sx={{ alignItems: \"start\" }}>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"name\")}>\n {T.translate(\"additional_inputs.title\")}\n </InputLabel>\n <MuiFormikTextField\n name={buildFieldName(\"name\")}\n margin=\"none\"\n placeholder={T.translate(\n \"additional_inputs.placeholders.title\"\n )}\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"type\")}>\n {T.translate(\"additional_inputs.type\")}\n </InputLabel>\n <MuiFormikSelect\n name={buildFieldName(\"type\")}\n placeholder={T.translate(\n \"additional_inputs.placeholders.type\"\n )}\n onChange={handleTypeChange}\n >\n {METAFIELD_TYPES.map((fieldType) => (\n <MenuItem key={fieldType} value={fieldType}>\n {fieldType}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n </Grid2>\n <Grid2 size={4} sx={{ alignSelf: \"end\" }}>\n <MuiFormikCheckbox\n name={buildFieldName(\"is_required\")}\n label={T.translate(\"additional_inputs.required\")}\n />\n </Grid2>\n </Grid2>\n {METAFIELD_TYPES_WITH_OPTIONS.includes(currentType) && (\n <>\n <Divider sx={{ mt: 2 }} />\n <MetaFieldValuesComponent\n field={item}\n fieldIndex={itemIdx}\n baseName={baseName}\n onMetaFieldTypeValueDeleted={onDeleteValue}\n entityId={entityId}\n />\n {showValuesError && (\n <FormHelperText error sx={{ mt: 1 }}>\n {fieldErrors.values}\n </FormHelperText>\n )}\n </>\n )}\n {currentType === \"Quantity\" && (\n <Grid2 container spacing={2} sx={{ alignItems: \"start\", mt: 2 }}>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"minimum_quantity\")}\n name={buildFieldName(\"minimum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.minimum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.minimum_quantity\")}\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"maximum_quantity\")}\n name={buildFieldName(\"maximum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.maximum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.maximum_quantity\")}\n />\n </Grid2>\n </Grid2>\n )}\n </Box>\n </Grid2>\n <Grid2 size={1}>\n <Box\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 1\n }}\n >\n <Button\n variant=\"outlined\"\n aria-label=\"delete\"\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={() => onDelete(item, itemIdx)}\n >\n <DeleteIcon />\n </Button>\n <Button\n variant=\"contained\"\n aria-label=\"add\"\n disabled={isAddDisabled}\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={onAdd}\n >\n <AddIcon />\n </Button>\n </Box>\n </Grid2>\n </Grid2>\n );\n};\n\nexport default AdditionalInputCore;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Close\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/DragIndicator\");","/**\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 T from \"i18n-react/dist/i18n-react\";\nimport { useFormikContext } from \"formik\";\nimport { Box, Button, Grid2, Divider, IconButton } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DragIndicatorIcon from \"@mui/icons-material/DragIndicator\";\nimport DragAndDropList from \"../../DragNDropList\";\nimport showConfirmDialog from \"../../showConfirmDialog\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\n\nconst MetaFieldValuesV2 = ({\n field,\n fieldIndex,\n baseName = \"meta_fields\",\n onMetaFieldTypeValueDeleted,\n entityId\n}) => {\n const { values, setFieldValue } = useFormikContext();\n\n const metaFields = values[baseName] || [];\n const sortedValues = [...field.values].sort((a, b) => a.order - b.order);\n\n const buildValueFieldName = (valueIndex, fieldName) =>\n `${baseName}[${fieldIndex}].values[${valueIndex}].${fieldName}`;\n\n const onReorder = (newValues) => {\n const newMetaFields = metaFields.map((f, i) =>\n i === fieldIndex ? { ...f, values: newValues } : f\n );\n setFieldValue(baseName, newMetaFields);\n };\n\n const handleAddValue = () => {\n const newFields = metaFields.map((f, i) => {\n if (i !== fieldIndex) return f;\n const currentValues = f.values ?? [];\n const nextOrder =\n Math.max(0, ...currentValues.map((v) => v.order ?? 0)) + 1;\n return {\n ...f,\n values: [\n ...currentValues,\n { value: \"\", name: \"\", is_default: false, order: nextOrder }\n ]\n };\n });\n setFieldValue(baseName, newFields);\n };\n\n const handleDefaultChange = (valueIndex, checked) => {\n const newFields = metaFields.map((f, i) => {\n if (i !== fieldIndex) return f;\n return {\n ...f,\n values: f.values.map((v, vi) => {\n if (checked) return { ...v, is_default: vi === valueIndex };\n return vi === valueIndex ? { ...v, is_default: false } : v;\n })\n };\n });\n setFieldValue(baseName, newFields);\n };\n\n const isMetafieldValueIncomplete = () => {\n if (field.values.length > 0) {\n return field.values.some((v) => !v.name?.trim() || !v.value?.trim());\n }\n return false;\n };\n\n const handleRemoveValue = async (metaFieldValue, valueIndex) => {\n const isConfirmed = await showConfirmDialog({\n title: T.translate(\"general.are_you_sure\"),\n text: T.translate(\"meta_fields.delete_value_warning\"),\n iconType: \"warning\",\n confirmButtonColor: \"#DD6B55\",\n confirmButtonText: T.translate(\"general.yes_delete\")\n });\n\n if (!isConfirmed) return;\n\n const removeValueFromFields = () => {\n const newFields = metaFields.map((f, i) =>\n i === fieldIndex\n ? { ...f, values: f.values.filter((_, index) => index !== valueIndex) }\n : f\n );\n setFieldValue(baseName, newFields);\n };\n\n if (field.id && metaFieldValue.id && onMetaFieldTypeValueDeleted) {\n onMetaFieldTypeValueDeleted(entityId, field.id, metaFieldValue.id)\n .then(() => removeValueFromFields())\n .catch(() => {});\n } else {\n removeValueFromFields();\n }\n };\n\n const renderMetaFieldValue = (val, sortedIndex, { isDragging, dragHandleProps } = {}) => {\n const originalIndex = field.values.findIndex(\n (v) => (v.id && v.id === val.id) || v === val\n );\n const valueIndex = originalIndex !== -1 ? originalIndex : sortedIndex;\n\n return (\n <Box key={val.id || `value-${valueIndex}`}>\n <Grid2\n container\n spacing={2}\n sx={{\n alignItems: \"start\",\n background: isDragging ? \"#ebebeb\" : \"inherit\",\n boxShadow: isDragging\n ? \"0px 5px 15px rgba(0,0,0,0.3)\"\n : \"none\",\n transition: \"transform 0.2s ease, box-shadow 0.2s ease\",\n transform: isDragging ? \"scale(1.02)\" : \"none\",\n py: 2\n }}\n >\n <Grid2 size={1} sx={{ display: \"flex\", alignItems: \"center\" }}>\n <IconButton\n {...dragHandleProps}\n aria-label=\"drag to reorder\"\n sx={{ cursor: \"grab\" }}\n >\n <DragIndicatorIcon />\n </IconButton>\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"name\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.name\"\n )}\n margin=\"none\"\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"value\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.value\"\n )}\n margin=\"none\"\n fullWidth\n InputProps={{\n endAdornment: (\n <IconButton\n onClick={() => handleRemoveValue(val, valueIndex)}\n aria-label=\"remove value\"\n >\n <CloseIcon />\n </IconButton>\n )\n }}\n />\n </Grid2>\n <Grid2 size={3}>\n <MuiFormikCheckbox\n name={buildValueFieldName(valueIndex, \"is_default\")}\n label={T.translate(\"meta_fields.is_default\")}\n onChange={(e) =>\n handleDefaultChange(valueIndex, e.target.checked)\n }\n />\n </Grid2>\n </Grid2>\n <Divider />\n </Box>\n );\n };\n\n return (\n <Box>\n <DragAndDropList\n items={sortedValues}\n onReorder={onReorder}\n renderItem={renderMetaFieldValue}\n idKey=\"id\"\n updateOrderKey=\"order\"\n />\n <Grid2 container spacing={2} sx={{ mt: 2 }} offset={4}>\n <Button\n startIcon={<AddIcon />}\n disabled={isMetafieldValueIncomplete()}\n onClick={handleAddValue}\n variant=\"text\"\n >\n {T.translate(\"meta_fields.add_value\")}\n </Button>\n </Grid2>\n </Box>\n );\n};\n\nexport default MetaFieldValuesV2;\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 AdditionalInputCore from \"./additional-input-core\";\nimport MetaFieldValuesV2 from \"./meta-field-values-v2\";\n\nconst AdditionalInputV2 = (props) => (\n <AdditionalInputCore {...props} MetaFieldValuesComponent={MetaFieldValuesV2} />\n);\n\nexport default AdditionalInputV2;\n"],"names":["root","factory","exports","module","define","amd","this","require","SortableItem","id","item","index","renderItem","attributes","listeners","setNodeRef","transform","transition","isDragging","useSortable","React","Box","ref","style","CSS","Transform","toString","filter","Boolean","join","zIndex","position","sx","background","dragHandleProps","_objectSpread","propTypes","PropTypes","isRequired","useDndKitReorder","items","getItemId","onReorder","updateOrderKey","orderOffset","sensors","useSensors","useSensor","PointerSensor","KeyboardSensor","coordinateGetter","sortableKeyboardCoordinates","collisionDetection","closestCenter","handleDragEnd","active","over","oldIndex","findIndex","i","newIndex","reordered","arrayMove","map","idx","idKey","undefined","String","DragNDropList","DndContext","onDragEnd","SortableContext","strategy","verticalListSortingStrategy","width","key","iconMap","warning","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","p","component","Typography","variant","Divider","DialogContent","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","defaultProps","MuiFormikCheckbox","_ref","name","label","props","_objectWithoutProperties","_excluded","field","meta","useField","type","FormControl","touched","FormControlLabel","control","Checkbox","_extends","checked","value","FormHelperText","MuiFormikSelect","placeholder","children","isClearable","rest","helpers","shouldShrink","InputLabel","htmlFor","shrink","Select","labelId","notched","displayEmpty","renderValue","selected","endAdornment","InputAdornment","mr","IconButton","size","ev","stopPropagation","setValue","ClearIcon","fontSize","MuiFormikTextField","_field$value","maxLength","required","currentLength","length","finalLabel","TextField","onBlur","helperText","slotProps","htmlInput","pl","BRIDGE_KEY","_global","globalThis","window","showConfirmDialog","METAFIELD_TYPES_WITH_OPTIONS","METAFIELD_TYPES","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","AdditionalInputCore","itemIdx","baseName","onAdd","onDelete","onDeleteValue","entityId","isAddDisabled","MetaFieldValuesComponent","errors","values","setFieldValue","useFormikContext","buildFieldName","fieldName","currentType","getIn","fieldErrors","fieldTouched","showValuesError","Grid2","container","spacing","border","borderRadius","my","T","onChange","e","newType","target","includes","fieldType","MenuItem","alignSelf","mt","fieldIndex","onMetaFieldTypeValueDeleted","flexDirection","gap","height","padding","DeleteIcon","disabled","AddIcon","MetaFieldValuesV2","metaFields","sortedValues","sort","b","order","buildValueFieldName","valueIndex","DragAndDropList","newValues","newMetaFields","f","renderMetaFieldValue","val","sortedIndex","originalIndex","v","boxShadow","py","cursor","DragIndicatorIcon","InputProps","async","metaFieldValue","removeValueFromFields","newFields","_","then","catch","handleRemoveValue","CloseIcon","handleDefaultChange","vi","is_default","offset","startIcon","isMetafieldValueIncomplete","some","_v$name","_v$value","trim","handleAddValue","currentValues","nextOrder","Math","max"],"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={9299:(e,t,r)=>{var n=r(2015),a=r.n(n),l=r(9825),o=r.n(l),i=r(8619),c=r(8177),s=r.n(c),d=r(1519),u=r.n(d);const m=require("@mui/icons-material/Info");var p=r.n(m);const f=require("@mui/icons-material/Warning");var g=r.n(f);const b={warning:a().createElement(g(),{color:"warning"}),success:a().createElement(s(),{color:"success"}),error:a().createElement(u(),{color:"error"}),info:a().createElement(p(),{color:"info"})},y=({open:e,title:t,text:r,iconType:n="",onConfirm:l,onCancel:o,confirmButtonText:c="Confirm",confirmButtonColor:s="primary",cancelButtonText:d="Cancel",cancelButtonColor:u="primary"})=>a().createElement(i.Dialog,{open:e,onClose:o},a().createElement(i.DialogTitle,{sx:{p:2},component:"div"},a().createElement(i.Typography,{variant:"h5"},t)),a().createElement(i.Divider,null),a().createElement(i.DialogContent,{sx:{p:2}},a().createElement("div",{style:{display:"flex",alignItems:"center"}},b[n]&&a().createElement("div",{style:{marginRight:10}},b[n]),a().createElement(i.Typography,{variant:"body1"},r))),a().createElement(i.Divider,{sx:{margin:"10px 0px 10px 0px"}}),a().createElement(i.DialogActions,null,a().createElement(i.Button,{fullWidth:!0,onClick:o,color:u,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},d),a().createElement(i.Button,{fullWidth:!0,onClick:l,color:s,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},c)));y.propTypes={open:o().bool,title:o().string.isRequired,text:o().string.isRequired,iconType:o().string,onConfirm:o().func.isRequired,onCancel:o().func.isRequired,confirmButtonText:o().string,confirmButtonColor:o().string,cancelButtonText:o().string,cancelButtonColor:o().string},y.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"}},829:(e,t,r)=>{r.d(t,{default:()=>b});var n=r(6031),a=r.n(n),l=r(1116),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s);const u=require("react-beautiful-dnd");var m=r(8619);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=({items:e,onReorder:t,renderItem:r,idKey:n,updateOrderKey:l,droppableId:o})=>c().createElement(u.DragDropContext,{onDragEnd:r=>{if(!r.destination)return;const n=((e,t,r,n)=>{const a=Array.from(e),[l]=a.splice(t,1);return a.splice(r,0,l),a.map(((e,t)=>f(f({},e),{},{[n]:t+1})))})(e,r.source.index,r.destination.index,l);t(n,r)}},c().createElement(u.Droppable,{droppableId:o},(t=>c().createElement(m.Box,a()({ref:t.innerRef},t.droppableProps,{sx:{width:"100%"}}),e.map(((e,t)=>c().createElement(u.Draggable,{key:String(e[n]||`new-${t}`),draggableId:String(e[n]||`new-${t}`),index:t},((n,l)=>c().createElement(m.Box,a()({ref:n.innerRef},n.draggableProps,n.dragHandleProps,{sx:{background:l.isDragging?"#f0f0f0":"inherit",transition:"background 0.2s ease"}}),r(e,t,n,l)))))),t.placeholder))));g.propTypes={items:d().array.isRequired,onReorder:d().func.isRequired,renderItem:d().func.isRequired,idKey:d().string,updateOrderKey:d().string,droppableId:d().string},g.defaultProps={idKey:"id",updateOrderKey:"order",droppableId:"droppable"};const b=g},7994:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619),m=r(3294);const p=["name","label","margin"],f=e=>{let{name:t,label:r,margin:n="normal"}=e,l=o()(e,p);const[i,s]=(0,m.useField)({name:t,type:"checkbox"});return c().createElement(u.FormControl,{fullWidth:!0,margin:n,error:s.touched&&Boolean(s.error)},c().createElement(u.FormControlLabel,{control:c().createElement(u.Checkbox,a()({name:t},i,{checked:i.value},l)),label:r}),s.touched&&s.error&&c().createElement(u.FormHelperText,null,s.error))};f.propTypes={name:d().string.isRequired,label:d().string.isRequired};const g=f},4768:(e,t,r)=>{r.d(t,{default:()=>y});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619);const m=require("@mui/icons-material/Clear");var p=r.n(m),f=r(3294);const g=["name","label","placeholder","children","isClearable"],b=e=>{let{name:t,label:r,placeholder:n,children:l,isClearable:i}=e,s=o()(e,g);const[d,m,b]=(0,f.useField)(t),y=(null==d?void 0:d.value)&&""!==d.value||Boolean(n);return c().createElement(u.FormControl,{fullWidth:!0,error:m.touched&&Boolean(m.error)},r&&c().createElement(u.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:y},r),c().createElement(u.Select,a()({name:t,id:t},d,{labelId:`${t}-label`,label:r,notched:y,displayEmpty:!0,renderValue:e=>e&&""!==e?e:c().createElement("span",{style:{color:"#aaa"}},n),endAdornment:i&&d.value?c().createElement(u.InputAdornment,{position:"end",sx:{mr:2}},c().createElement(u.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),b.setValue("")}},c().createElement(p(),{fontSize:"small"}))):null},s),l),m.touched&&m.error&&c().createElement(u.FormHelperText,null,m.error))};b.propTypes={name:d().string.isRequired,children:d().node.isRequired,placeholder:d().string,isClearable:d().bool};const y=b},9314:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619),m=r(3294);const p=["name","label","maxLength","required"],f=e=>{var t;let{name:r,label:n,maxLength:l,required:i=!1}=e,s=o()(e,p);const[d,f]=(0,m.useField)(r),g=(null===(t=d.value)||void 0===t?void 0:t.length)||0;let b="";return n&&(b=i?`${n} *`:n),c().createElement(u.Box,null,c().createElement(u.TextField,a()({name:r,label:b},d,{onBlur:d.onBlur,margin:"normal",error:f.touched&&Boolean(f.error),helperText:f.touched&&f.error,slotProps:{htmlInput:{maxLength:l}}},s)),l&&c().createElement(u.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},l-g+" characters left"))};f.propTypes={name:d().string.isRequired,label:d().string,maxLength:d().number,required:d().bool};const g=f},6130:(e,t,r)=>{r.d(t,{default:()=>l});r(1116),r(2015),r(9299);const n="__oif_confirm_dialog_bridge__",a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},l=({title:e,text:t,iconType:r="",confirmButtonText:l="Confirm",cancelButtonText:o="Cancel",confirmButtonColor:i="primary",cancelButtonColor:c="primary"})=>{if(!a[n])throw new Error("[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. Add <GlobalConfirmDialog /> to the root of your app.");return a[n]({title:e,text:t,iconType:r,confirmButtonText:l,cancelButtonText:o,confirmButtonColor:i,cancelButtonColor:c})}},3209:(e,t,r)=>{r.d(t,{GV:()=>a,in:()=>n});const n=["CheckBoxList","ComboBox","RadioButtonList"],a=["CheckBox",...n,"Text","TextArea","Quantity","DateTime","Time"]},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")},8177:e=>{e.exports=require("@mui/icons-material/CheckCircle")},1519:e=>{e.exports=require("@mui/icons-material/Error")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>T});var a=r(2015),l=r.n(a),o=r(8619),i=r(3294);const c=require("i18n-react/dist/i18n-react");var s=r.n(c);const d=require("@mui/icons-material/Delete");var u=r.n(d);const m=require("@mui/icons-material/Add");var p=r.n(m),f=r(1116),g=r.n(f);const b=require("@mui/icons-material/Close");var y=r.n(b),x=r(829),h=r(6130),v=r(9314),E=r(7994);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){g()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const _=({field:e,fieldIndex:t,baseName:r="meta_fields",onMetaFieldTypeValueDeleted:n,entityId:a})=>{const{values:c,setFieldValue:d}=(0,i.useFormikContext)(),u=c[r]||[],m=[...e.values].sort(((e,t)=>e.order-t.order)),f=(e,n)=>`${r}[${t}].values[${e}].${n}`;return l().createElement(o.Box,null,l().createElement(x.default,{items:m,onReorder:e=>{const n=[...u];n[t].values=e,d(r,n)},renderItem:(i,c,m,p)=>{const g=e.values.findIndex((e=>e.id&&e.id===i.id||e===i)),b=-1!==g?g:c;return l().createElement(o.Box,{key:i.id||`value-${b}`},l().createElement(o.Grid2,{container:!0,spacing:2,sx:{alignItems:"start",background:null!=p&&p.isDragging?"#ebebeb":"inherit",boxShadow:null!=p&&p.isDragging?"0px 5px 15px rgba(0,0,0,0.3)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease",transform:null!=p&&p.isDragging?"scale(1.02)":"none",py:2}},l().createElement(o.Grid2,{size:4},l().createElement(v.default,{name:f(b,"name"),placeholder:s().translate("meta_fields.placeholders.name"),margin:"none",fullWidth:!0})),l().createElement(o.Grid2,{size:4},l().createElement(v.default,{name:f(b,"value"),placeholder:s().translate("meta_fields.placeholders.value"),margin:"none",fullWidth:!0,InputProps:{endAdornment:l().createElement(o.IconButton,{onClick:()=>(async(l,o)=>{if(!await(0,h.default)({title:s().translate("general.are_you_sure"),text:s().translate("meta_fields.delete_value_warning"),type:"warning",confirmButtonColor:"#DD6B55",confirmButtonText:s().translate("general.yes_delete")}))return;const i=()=>{const e=[...u];e[t].values=e[t].values.filter(((e,t)=>t!==o)),d(r,e)};e.id&&l.id&&n?n(a,e.id,l.id).then((()=>i())):i()})(i,b),"aria-label":"remove value"},l().createElement(y(),null))}})),l().createElement(o.Grid2,{size:4},l().createElement(E.default,{name:f(b,"is_default"),label:s().translate("meta_fields.is_default"),onChange:e=>((e,n)=>{const a=[...u];n&&a[t].values.forEach((e=>{e.is_default=!1})),a[t].values[e].is_default=n,d(r,a)})(b,e.target.checked)}))),l().createElement(o.Divider,null))},idKey:"id",updateOrderKey:"order",droppableId:`droppable-values-${t}`}),l().createElement(o.Grid2,{container:!0,spacing:2,sx:{mt:2},offset:4},l().createElement(o.Button,{startIcon:l().createElement(p(),null),disabled:(()=>e.values.length>0&&e.values.some((e=>{var t,r;return!(null!==(t=e.name)&&void 0!==t&&t.trim()&&null!==(r=e.value)&&void 0!==r&&r.trim())})))(),onClick:()=>{const e=u.map(((e,r)=>r===t?B(B({},e),{},{values:[...e.values,{value:"",name:"",is_default:!1}]}):e));d(r,e)},variant:"text"},s().translate("meta_fields.add_value"))))};var O=r(4768),q=r(3209);const T=({item:e,itemIdx:t,baseName:r,onAdd:n,onDelete:a,onDeleteValue:c,entityId:d,isAddDisabled:m})=>{const{errors:f,touched:g,values:b,setFieldValue:y}=(0,i.useFormikContext)(),x=e=>`${r}[${t}].${e}`,h=(0,i.getIn)(b,x("type")),C=(0,i.getIn)(f,`${r}[${t}]`),B=(0,i.getIn)(g,`${r}[${t}]`),T=(null==B?void 0:B.values)&&(null==C?void 0:C.values)&&"string"==typeof C.values;return l().createElement(o.Grid2,{container:!0,spacing:2,sx:{alignItems:"center"}},l().createElement(o.Grid2,{size:11},l().createElement(o.Box,{sx:{border:"1px solid #0000001F",borderRadius:"4px",p:2,my:2}},l().createElement(o.Grid2,{container:!0,spacing:2,sx:{alignItems:"start"}},l().createElement(o.Grid2,{size:4},l().createElement(o.InputLabel,{htmlFor:x("name")},s().translate("additional_inputs.title")),l().createElement(v.default,{name:x("name"),margin:"none",placeholder:s().translate("additional_inputs.placeholders.title"),fullWidth:!0})),l().createElement(o.Grid2,{size:4},l().createElement(o.InputLabel,{htmlFor:x("type")},s().translate("additional_inputs.type")),l().createElement(O.default,{name:x("type"),placeholder:s().translate("additional_inputs.placeholders.type"),onChange:e=>{const t=e.target.value;y(x("type"),t),q.in.includes(t)||y(x("values"),[])}},q.GV.map((e=>l().createElement(o.MenuItem,{key:e,value:e},e))))),l().createElement(o.Grid2,{size:4,sx:{alignSelf:"end"}},l().createElement(E.default,{name:x("is_required"),label:s().translate("additional_inputs.required")}))),q.in.includes(h)&&l().createElement(l().Fragment,null,l().createElement(o.Divider,{sx:{mt:2}}),l().createElement(_,{field:e,fieldIndex:t,baseName:r,onMetaFieldTypeValueDeleted:c,entityId:d}),T&&l().createElement(o.FormHelperText,{error:!0,sx:{mt:1}},C.values)),"Quantity"===h&&l().createElement(o.Grid2,{container:!0,spacing:2,sx:{alignItems:"start",mt:2}},l().createElement(o.Grid2,{size:4},l().createElement(v.default,{id:x("minimum_quantity"),name:x("minimum_quantity"),type:"number",margin:"none",fullWidth:!0,label:s().translate("additional_inputs.minimum"),placeholder:s().translate("additional_inputs.placeholders.minimum_quantity")})),l().createElement(o.Grid2,{size:4},l().createElement(v.default,{id:x("maximum_quantity"),name:x("maximum_quantity"),type:"number",margin:"none",fullWidth:!0,label:s().translate("additional_inputs.maximum"),placeholder:s().translate("additional_inputs.placeholders.maximum_quantity")}))))),l().createElement(o.Grid2,{size:1},l().createElement(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1}},l().createElement(o.Button,{variant:"outlined","aria-label":"delete",sx:{width:40,height:40,minWidth:"auto",borderRadius:"50%",padding:0},onClick:()=>a(e,t)},l().createElement(u(),null)),l().createElement(o.Button,{variant:"contained","aria-label":"add",disabled:m,sx:{width:40,height:40,minWidth:"auto",borderRadius:"50%",padding:0},onClick:n},l().createElement(p(),null)))))};return n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={9299:(e,t,r)=>{var n=r(2015),a=r.n(n),l=r(9825),o=r.n(l),i=r(8619),c=r(8177),s=r.n(c),d=r(1519),u=r.n(d);const m=require("@mui/icons-material/Info");var p=r.n(m);const f=require("@mui/icons-material/Warning");var g=r.n(f);const b={warning:a().createElement(g(),{color:"warning"}),success:a().createElement(s(),{color:"success"}),error:a().createElement(u(),{color:"error"}),info:a().createElement(p(),{color:"info"})},y=({open:e,title:t,text:r,iconType:n="",onConfirm:l,onCancel:o,confirmButtonText:c="Confirm",confirmButtonColor:s="primary",cancelButtonText:d="Cancel",cancelButtonColor:u="primary"})=>a().createElement(i.Dialog,{open:e,onClose:o},a().createElement(i.DialogTitle,{sx:{p:2},component:"div"},a().createElement(i.Typography,{variant:"h5"},t)),a().createElement(i.Divider,null),a().createElement(i.DialogContent,{sx:{p:2}},a().createElement("div",{style:{display:"flex",alignItems:"center"}},b[n]&&a().createElement("div",{style:{marginRight:10}},b[n]),a().createElement(i.Typography,{variant:"body1"},r))),a().createElement(i.Divider,{sx:{margin:"10px 0px 10px 0px"}}),a().createElement(i.DialogActions,null,a().createElement(i.Button,{fullWidth:!0,onClick:o,color:u,variant:"outlined",sx:{whiteSpace:"nowrap",minWidth:100}},d),a().createElement(i.Button,{fullWidth:!0,onClick:l,color:s,variant:"contained",sx:{whiteSpace:"nowrap",minWidth:100}},c)));y.propTypes={open:o().bool,title:o().string.isRequired,text:o().string.isRequired,iconType:o().string,onConfirm:o().func.isRequired,onCancel:o().func.isRequired,confirmButtonText:o().string,confirmButtonColor:o().string,cancelButtonText:o().string,cancelButtonColor:o().string},y.defaultProps={open:!1,iconType:"warning",confirmButtonText:"Confirm",confirmButtonColor:"primary",cancelButtonText:"Cancel",cancelButtonColor:"default"}},829:(e,t,r)=>{r.d(t,{default:()=>b});var n=r(6031),a=r.n(n),l=r(1116),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s);const u=require("react-beautiful-dnd");var m=r(8619);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const g=({items:e,onReorder:t,renderItem:r,idKey:n,updateOrderKey:l,droppableId:o})=>c().createElement(u.DragDropContext,{onDragEnd:r=>{if(!r.destination)return;const n=((e,t,r,n)=>{const a=Array.from(e),[l]=a.splice(t,1);return a.splice(r,0,l),a.map(((e,t)=>f(f({},e),{},{[n]:t+1})))})(e,r.source.index,r.destination.index,l);t(n,r)}},c().createElement(u.Droppable,{droppableId:o},(t=>c().createElement(m.Box,a()({ref:t.innerRef},t.droppableProps,{sx:{width:"100%"}}),e.map(((e,t)=>c().createElement(u.Draggable,{key:String(e[n]||`new-${t}`),draggableId:String(e[n]||`new-${t}`),index:t},((n,l)=>c().createElement(m.Box,a()({ref:n.innerRef},n.draggableProps,n.dragHandleProps,{sx:{background:l.isDragging?"#f0f0f0":"inherit",transition:"background 0.2s ease"}}),r(e,t,n,l)))))),t.placeholder))));g.propTypes={items:d().array.isRequired,onReorder:d().func.isRequired,renderItem:d().func.isRequired,idKey:d().string,updateOrderKey:d().string,droppableId:d().string},g.defaultProps={idKey:"id",updateOrderKey:"order",droppableId:"droppable"};const b=g},7994:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619),m=r(3294);const p=["name","label","margin"],f=e=>{let{name:t,label:r,margin:n="normal"}=e,l=o()(e,p);const[i,s]=(0,m.useField)({name:t,type:"checkbox"});return c().createElement(u.FormControl,{fullWidth:!0,margin:n,error:s.touched&&Boolean(s.error)},c().createElement(u.FormControlLabel,{control:c().createElement(u.Checkbox,a()({name:t},i,{checked:i.value},l)),label:r}),s.touched&&s.error&&c().createElement(u.FormHelperText,null,s.error))};f.propTypes={name:d().string.isRequired,label:d().string.isRequired};const g=f},4768:(e,t,r)=>{r.d(t,{default:()=>y});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619);const m=require("@mui/icons-material/Clear");var p=r.n(m),f=r(3294);const g=["name","label","placeholder","children","isClearable"],b=e=>{let{name:t,label:r,placeholder:n,children:l,isClearable:i}=e,s=o()(e,g);const[d,m,b]=(0,f.useField)(t),y=(null==d?void 0:d.value)&&""!==d.value||Boolean(n);return c().createElement(u.FormControl,{fullWidth:!0,error:m.touched&&Boolean(m.error)},r&&c().createElement(u.InputLabel,{htmlFor:t,id:`${t}-label`,shrink:y},r),c().createElement(u.Select,a()({name:t,id:t},d,{labelId:`${t}-label`,label:r,notched:y,displayEmpty:!0,renderValue:e=>e&&""!==e?e:c().createElement("span",{style:{color:"#aaa"}},n),endAdornment:i&&d.value?c().createElement(u.InputAdornment,{position:"end",sx:{mr:2}},c().createElement(u.IconButton,{size:"small",onClick:e=>{e.stopPropagation(),b.setValue("")}},c().createElement(p(),{fontSize:"small"}))):null},s),l),m.touched&&m.error&&c().createElement(u.FormHelperText,null,m.error))};b.propTypes={name:d().string.isRequired,children:d().node.isRequired,placeholder:d().string,isClearable:d().bool};const y=b},9314:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(6031),a=r.n(n),l=r(2462),o=r.n(l),i=r(2015),c=r.n(i),s=r(9825),d=r.n(s),u=r(8619),m=r(3294);const p=["name","label","maxLength","required"],f=e=>{var t;let{name:r,label:n,maxLength:l,required:i=!1}=e,s=o()(e,p);const[d,f]=(0,m.useField)(r),g=(null===(t=d.value)||void 0===t?void 0:t.length)||0;let b="";return n&&(b=i?`${n} *`:n),c().createElement(u.Box,null,c().createElement(u.TextField,a()({name:r,label:b},d,{onBlur:d.onBlur,margin:"normal",error:f.touched&&Boolean(f.error),helperText:f.touched&&f.error,slotProps:{htmlInput:{maxLength:l}}},s)),l&&c().createElement(u.Typography,{sx:{fontSize:"1.2rem",color:"#00000099",pl:2}},l-g+" characters left"))};f.propTypes={name:d().string.isRequired,label:d().string,maxLength:d().number,required:d().bool};const g=f},6130:(e,t,r)=>{r.d(t,{default:()=>l});r(1116),r(2015),r(9299);const n="__oif_confirm_dialog_bridge__",a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},l=({title:e,text:t,iconType:r="",confirmButtonText:l="Confirm",cancelButtonText:o="Cancel",confirmButtonColor:i="primary",cancelButtonColor:c="primary"})=>{if(!a[n])throw new Error("[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. Add <GlobalConfirmDialog /> to the root of your app.");return a[n]({title:e,text:t,iconType:r,confirmButtonText:l,cancelButtonText:o,confirmButtonColor:i,cancelButtonColor:c})}},3209:(e,t,r)=>{r.d(t,{GV:()=>a,in:()=>n});const n=["CheckBoxList","ComboBox","RadioButtonList"],a=["CheckBox",...n,"Text","TextArea","Quantity","DateTime","Time"]},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")},8177:e=>{e.exports=require("@mui/icons-material/CheckCircle")},1519:e=>{e.exports=require("@mui/icons-material/Error")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>I});var a=r(6031),l=r.n(a),o=r(2015),i=r.n(o),c=r(8619),s=r(3294);const d=require("i18n-react/dist/i18n-react");var u=r.n(d);const m=require("@mui/icons-material/Delete");var p=r.n(m);const f=require("@mui/icons-material/Add");var g=r.n(f),b=r(9314),y=r(4768),x=r(7994),h=r(3209);const v=({item:e,itemIdx:t,baseName:r,onAdd:n,onDelete:a,onDeleteValue:l,entityId:o,isAddDisabled:d,MetaFieldValuesComponent:m})=>{const{errors:f,touched:v,values:E,setFieldValue:C}=(0,s.useFormikContext)(),B=e=>`${r}[${t}].${e}`,_=(0,s.getIn)(E,B("type")),O=(0,s.getIn)(f,`${r}[${t}]`),T=(0,s.getIn)(v,`${r}[${t}]`),q=(null==T?void 0:T.values)&&(null==O?void 0:O.values)&&"string"==typeof O.values;return i().createElement(c.Grid2,{container:!0,spacing:2,sx:{alignItems:"center"}},i().createElement(c.Grid2,{size:11},i().createElement(c.Box,{sx:{border:"1px solid #0000001F",borderRadius:"4px",p:2,my:2}},i().createElement(c.Grid2,{container:!0,spacing:2,sx:{alignItems:"start"}},i().createElement(c.Grid2,{size:4},i().createElement(c.InputLabel,{htmlFor:B("name")},u().translate("additional_inputs.title")),i().createElement(b.default,{name:B("name"),margin:"none",placeholder:u().translate("additional_inputs.placeholders.title"),fullWidth:!0})),i().createElement(c.Grid2,{size:4},i().createElement(c.InputLabel,{htmlFor:B("type")},u().translate("additional_inputs.type")),i().createElement(y.default,{name:B("type"),placeholder:u().translate("additional_inputs.placeholders.type"),onChange:e=>{const t=e.target.value;C(B("type"),t),h.in.includes(t)||C(B("values"),[])}},h.GV.map((e=>i().createElement(c.MenuItem,{key:e,value:e},e))))),i().createElement(c.Grid2,{size:4,sx:{alignSelf:"end"}},i().createElement(x.default,{name:B("is_required"),label:u().translate("additional_inputs.required")}))),h.in.includes(_)&&i().createElement(i().Fragment,null,i().createElement(c.Divider,{sx:{mt:2}}),i().createElement(m,{field:e,fieldIndex:t,baseName:r,onMetaFieldTypeValueDeleted:l,entityId:o}),q&&i().createElement(c.FormHelperText,{error:!0,sx:{mt:1}},O.values)),"Quantity"===_&&i().createElement(c.Grid2,{container:!0,spacing:2,sx:{alignItems:"start",mt:2}},i().createElement(c.Grid2,{size:4},i().createElement(b.default,{id:B("minimum_quantity"),name:B("minimum_quantity"),type:"number",margin:"none",fullWidth:!0,label:u().translate("additional_inputs.minimum"),placeholder:u().translate("additional_inputs.placeholders.minimum_quantity")})),i().createElement(c.Grid2,{size:4},i().createElement(b.default,{id:B("maximum_quantity"),name:B("maximum_quantity"),type:"number",margin:"none",fullWidth:!0,label:u().translate("additional_inputs.maximum"),placeholder:u().translate("additional_inputs.placeholders.maximum_quantity")}))))),i().createElement(c.Grid2,{size:1},i().createElement(c.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1}},i().createElement(c.Button,{variant:"outlined","aria-label":"delete",sx:{width:40,height:40,minWidth:"auto",borderRadius:"50%",padding:0},onClick:()=>a(e,t)},i().createElement(p(),null)),i().createElement(c.Button,{variant:"contained","aria-label":"add",disabled:d,sx:{width:40,height:40,minWidth:"auto",borderRadius:"50%",padding:0},onClick:n},i().createElement(g(),null)))))};var E=r(1116),C=r.n(E);const B=require("@mui/icons-material/Close");var _=r.n(B),O=r(829),T=r(6130);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){C()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const w=({field:e,fieldIndex:t,baseName:r="meta_fields",onMetaFieldTypeValueDeleted:n,entityId:a})=>{const{values:l,setFieldValue:o}=(0,s.useFormikContext)(),d=l[r]||[],m=[...e.values].sort(((e,t)=>e.order-t.order)),p=(e,n)=>`${r}[${t}].values[${e}].${n}`;return i().createElement(c.Box,null,i().createElement(O.default,{items:m,onReorder:e=>{const n=[...d];n[t].values=e,o(r,n)},renderItem:(l,s,m,f)=>{const g=e.values.findIndex((e=>e.id&&e.id===l.id||e===l)),y=-1!==g?g:s;return i().createElement(c.Box,{key:l.id||`value-${y}`},i().createElement(c.Grid2,{container:!0,spacing:2,sx:{alignItems:"start",background:null!=f&&f.isDragging?"#ebebeb":"inherit",boxShadow:null!=f&&f.isDragging?"0px 5px 15px rgba(0,0,0,0.3)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease",transform:null!=f&&f.isDragging?"scale(1.02)":"none",py:2}},i().createElement(c.Grid2,{size:4},i().createElement(b.default,{name:p(y,"name"),placeholder:u().translate("meta_fields.placeholders.name"),margin:"none",fullWidth:!0})),i().createElement(c.Grid2,{size:4},i().createElement(b.default,{name:p(y,"value"),placeholder:u().translate("meta_fields.placeholders.value"),margin:"none",fullWidth:!0,InputProps:{endAdornment:i().createElement(c.IconButton,{onClick:()=>(async(l,i)=>{if(!await(0,T.default)({title:u().translate("general.are_you_sure"),text:u().translate("meta_fields.delete_value_warning"),iconType:"warning",confirmButtonColor:"#DD6B55",confirmButtonText:u().translate("general.yes_delete")}))return;const c=()=>{const e=[...d];e[t].values=e[t].values.filter(((e,t)=>t!==i)),o(r,e)};e.id&&l.id&&n?n(a,e.id,l.id).then((()=>c())).catch((()=>{})):c()})(l,y),"aria-label":"remove value"},i().createElement(_(),null))}})),i().createElement(c.Grid2,{size:4},i().createElement(x.default,{name:p(y,"is_default"),label:u().translate("meta_fields.is_default"),onChange:e=>((e,n)=>{const a=[...d];n&&a[t].values.forEach((e=>{e.is_default=!1})),a[t].values[e].is_default=n,o(r,a)})(y,e.target.checked)}))),i().createElement(c.Divider,null))},idKey:"id",updateOrderKey:"order",droppableId:`droppable-values-${t}`}),i().createElement(c.Grid2,{container:!0,spacing:2,sx:{mt:2},offset:4},i().createElement(c.Button,{startIcon:i().createElement(g(),null),disabled:(()=>e.values.length>0&&e.values.some((e=>{var t,r;return!(null!==(t=e.name)&&void 0!==t&&t.trim()&&null!==(r=e.value)&&void 0!==r&&r.trim())})))(),onClick:()=>{const e=d.map(((e,r)=>r===t?D(D({},e),{},{values:[...e.values,{value:"",name:"",is_default:!1}]}):e));o(r,e)},variant:"text"},u().translate("meta_fields.add_value"))))},I=e=>i().createElement(v,l()({},e,{MetaFieldValuesComponent:w}));return n})()));
2
2
  //# sourceMappingURL=additional-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/additional-input.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyB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oBACrBrJ,KAAK,SACLjE,OAAO,OACPG,WAAS,EACTuD,MAAOuH,IAAAA,UAAY,6BACnB3H,YAAa2H,IAAAA,UAAY,yDAOrCnN,IAAAA,cAAC6M,EAAAA,MAAK,CAAC3E,KAAM,GACXlI,IAAAA,cAACwE,EAAAA,IAAG,CACFjD,GAAI,CACFQ,QAAS,OACTuO,cAAe,SACftO,WAAY,SACZuO,IAAK,IAGPvQ,IAAAA,cAACoC,EAAAA,OAAM,CACLT,QAAQ,WACR,aAAW,SACXJ,GAAI,CACFsD,MAAO,GACP2L,OAAQ,GACRhO,SAAU,OACVuN,aAAc,MACdU,QAAS,GAEXnO,QAASA,IAAM8M,EAASlL,EAAMgL,IAE9BlP,IAAAA,cAAC0Q,IAAU,OAEb1Q,IAAAA,cAACoC,EAAAA,OAAM,CACLT,QAAQ,YACR,aAAW,MACX6M,SAAUc,EACV/N,GAAI,CACFsD,MAAO,GACP2L,OAAQ,GACRhO,SAAU,OACVuN,aAAc,MACdU,QAAS,GAEXnO,QAAS6M,GAETnP,IAAAA,cAACuO,IAAO,SAIR,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"react-beautiful-dnd\"","webpack://openstack-uicore-foundation/./src/components/mui/dnd-list.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","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/./src/components/mui/showConfirmDialog.js","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/CheckCircle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Error\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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 \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Add\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/meta-field-values.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/additional-input.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport CheckCircle from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react-beautiful-dnd\");","/**\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 { DragDropContext, Droppable, Draggable } from \"react-beautiful-dnd\";\nimport { Box } from \"@mui/material\";\n\nconst reorder = (list, startIndex, endIndex, updateOrderKey) => {\n const result = Array.from(list);\n const [removed] = result.splice(startIndex, 1);\n result.splice(endIndex, 0, removed);\n return result.map((item, index) => ({\n ...item,\n [updateOrderKey]: index + 1\n }));\n};\n\nconst DragAndDropList = ({\n items,\n onReorder,\n renderItem,\n idKey,\n updateOrderKey,\n droppableId\n}) => {\n const handleDragEnd = (result) => {\n if (!result.destination) return;\n\n const newItems = reorder(\n items,\n result.source.index,\n result.destination.index,\n updateOrderKey\n );\n onReorder(newItems, result);\n };\n\n return (\n <DragDropContext onDragEnd={handleDragEnd}>\n <Droppable droppableId={droppableId}>\n {(provided) => (\n <Box\n ref={provided.innerRef}\n {...provided.droppableProps}\n sx={{ width: \"100%\" }}\n >\n {items.map((item, index) => (\n <Draggable\n key={String(item[idKey] || `new-${index}`)}\n draggableId={String(item[idKey] || `new-${index}`)}\n index={index}\n >\n {(provided, snapshot) => (\n <Box\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n sx={{\n background: snapshot.isDragging ? \"#f0f0f0\" : \"inherit\",\n transition: \"background 0.2s ease\"\n }}\n >\n {renderItem(item, index, provided, snapshot)}\n </Box>\n )}\n </Draggable>\n ))}\n {provided.placeholder}\n </Box>\n )}\n </Droppable>\n </DragDropContext>\n );\n};\n\nDragAndDropList.propTypes = {\n items: PropTypes.array.isRequired,\n onReorder: PropTypes.func.isRequired,\n renderItem: PropTypes.func.isRequired,\n idKey: PropTypes.string,\n updateOrderKey: PropTypes.string,\n droppableId: PropTypes.string\n};\n\nDragAndDropList.defaultProps = {\n idKey: \"id\",\n updateOrderKey: \"order\",\n droppableId: \"droppable\"\n};\n\nexport default DragAndDropList;\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, margin = \"normal\", ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin={margin}\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/icons-material/Clear\");","/**\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","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!_global[BRIDGE_KEY]) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return _global[BRIDGE_KEY]({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const ASYNC_SELECT_SAFETY_TIMEOUT = 15000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","module.exports = require(\"@mui/icons-material/Error\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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(\"i18n-react/dist/i18n-react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Delete\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Add\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Close\");","/**\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 T from \"i18n-react/dist/i18n-react\";\nimport { useFormikContext } from \"formik\";\nimport { Box, Button, Grid2, Divider, IconButton } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DragAndDropList from \"../../dnd-list\";\nimport showConfirmDialog from \"../../showConfirmDialog\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\n\nconst MetaFieldValues = ({\n field,\n fieldIndex,\n baseName = \"meta_fields\",\n onMetaFieldTypeValueDeleted,\n entityId\n}) => {\n const { values, setFieldValue } = useFormikContext();\n\n const metaFields = values[baseName] || [];\n const sortedValues = [...field.values].sort((a, b) => a.order - b.order);\n\n const buildValueFieldName = (valueIndex, fieldName) =>\n `${baseName}[${fieldIndex}].values[${valueIndex}].${fieldName}`;\n\n const onReorder = (newValues) => {\n const newMetaFields = [...metaFields];\n newMetaFields[fieldIndex].values = newValues;\n setFieldValue(baseName, newMetaFields);\n };\n\n const handleAddValue = () => {\n const newFields = metaFields.map((f, i) =>\n i === fieldIndex\n ? { ...f, values: [...f.values, { value: \"\", name: \"\", is_default: false }] }\n : f\n );\n setFieldValue(baseName, newFields);\n };\n\n const handleDefaultChange = (valueIndex, checked) => {\n const newFields = [...metaFields];\n if (checked) {\n newFields[fieldIndex].values.forEach((v) => {\n v.is_default = false;\n });\n }\n newFields[fieldIndex].values[valueIndex].is_default = checked;\n setFieldValue(baseName, newFields);\n };\n\n const isMetafieldValueIncomplete = () => {\n if (field.values.length > 0) {\n return field.values.some((v) => !v.name?.trim() || !v.value?.trim());\n }\n return false;\n };\n\n const handleRemoveValue = async (metaFieldValue, valueIndex) => {\n const isConfirmed = await showConfirmDialog({\n title: T.translate(\"general.are_you_sure\"),\n text: T.translate(\"meta_fields.delete_value_warning\"),\n type: \"warning\",\n confirmButtonColor: \"#DD6B55\",\n confirmButtonText: T.translate(\"general.yes_delete\")\n });\n\n if (!isConfirmed) return;\n\n const removeValueFromFields = () => {\n const newFields = [...metaFields];\n newFields[fieldIndex].values = newFields[fieldIndex].values.filter(\n (_, index) => index !== valueIndex\n );\n setFieldValue(baseName, newFields);\n };\n\n if (field.id && metaFieldValue.id && onMetaFieldTypeValueDeleted) {\n onMetaFieldTypeValueDeleted(entityId, field.id, metaFieldValue.id).then(\n () => removeValueFromFields()\n );\n } else {\n removeValueFromFields();\n }\n };\n\n const renderMetaFieldValue = (val, sortedIndex, provided, snapshot) => {\n const originalIndex = field.values.findIndex(\n (v) => (v.id && v.id === val.id) || v === val\n );\n const valueIndex = originalIndex !== -1 ? originalIndex : sortedIndex;\n\n return (\n <Box key={val.id || `value-${valueIndex}`}>\n <Grid2\n container\n spacing={2}\n sx={{\n alignItems: \"start\",\n background: snapshot?.isDragging ? \"#ebebeb\" : \"inherit\",\n boxShadow: snapshot?.isDragging\n ? \"0px 5px 15px rgba(0,0,0,0.3)\"\n : \"none\",\n transition: \"transform 0.2s ease, box-shadow 0.2s ease\",\n transform: snapshot?.isDragging ? \"scale(1.02)\" : \"none\",\n py: 2\n }}\n >\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"name\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.name\"\n )}\n margin=\"none\"\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"value\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.value\"\n )}\n margin=\"none\"\n fullWidth\n InputProps={{\n endAdornment: (\n <IconButton\n onClick={() => handleRemoveValue(val, valueIndex)}\n aria-label=\"remove value\"\n >\n <CloseIcon />\n </IconButton>\n )\n }}\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikCheckbox\n name={buildValueFieldName(valueIndex, \"is_default\")}\n label={T.translate(\"meta_fields.is_default\")}\n onChange={(e) =>\n handleDefaultChange(valueIndex, e.target.checked)\n }\n />\n </Grid2>\n </Grid2>\n <Divider />\n </Box>\n );\n };\n\n return (\n <Box>\n <DragAndDropList\n items={sortedValues}\n onReorder={onReorder}\n renderItem={renderMetaFieldValue}\n idKey=\"id\"\n updateOrderKey=\"order\"\n droppableId={`droppable-values-${fieldIndex}`}\n />\n <Grid2 container spacing={2} sx={{ mt: 2 }} offset={4}>\n <Button\n startIcon={<AddIcon />}\n disabled={isMetafieldValueIncomplete()}\n onClick={handleAddValue}\n variant=\"text\"\n >\n {T.translate(\"meta_fields.add_value\")}\n </Button>\n </Grid2>\n </Box>\n );\n};\n\nexport default MetaFieldValues;\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 Box,\n Button,\n Divider,\n FormHelperText,\n Grid2,\n InputLabel,\n MenuItem\n} from \"@mui/material\";\nimport { useFormikContext, getIn } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport MetaFieldValues from \"./meta-field-values\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikSelect from \"../mui-formik-select\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\nimport {\n METAFIELD_TYPES,\n METAFIELD_TYPES_WITH_OPTIONS\n} from \"../../../../utils/constants\";\n\nconst AdditionalInput = ({\n item,\n itemIdx,\n baseName,\n onAdd,\n onDelete,\n onDeleteValue,\n entityId,\n isAddDisabled\n}) => {\n const { errors, touched, values, setFieldValue } = useFormikContext();\n\n const buildFieldName = (fieldName) => `${baseName}[${itemIdx}].${fieldName}`;\n const currentType = getIn(values, buildFieldName(\"type\"));\n\n const handleTypeChange = (e) => {\n const newType = e.target.value;\n setFieldValue(buildFieldName(\"type\"), newType);\n if (!METAFIELD_TYPES_WITH_OPTIONS.includes(newType)) {\n setFieldValue(buildFieldName(\"values\"), []);\n }\n };\n\n const fieldErrors = getIn(errors, `${baseName}[${itemIdx}]`);\n const fieldTouched = getIn(touched, `${baseName}[${itemIdx}]`);\n\n const showValuesError =\n fieldTouched?.values &&\n fieldErrors?.values &&\n typeof fieldErrors.values === \"string\";\n\n return (\n <Grid2 container spacing={2} sx={{ alignItems: \"center\" }}>\n <Grid2 size={11}>\n <Box\n sx={{\n border: \"1px solid #0000001F\",\n borderRadius: \"4px\",\n p: 2,\n my: 2\n }}\n >\n <Grid2 container spacing={2} sx={{ alignItems: \"start\" }}>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"name\")}>\n {T.translate(\"additional_inputs.title\")}\n </InputLabel>\n <MuiFormikTextField\n name={buildFieldName(\"name\")}\n margin=\"none\"\n placeholder={T.translate(\n \"additional_inputs.placeholders.title\"\n )}\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"type\")}>\n {T.translate(\"additional_inputs.type\")}\n </InputLabel>\n <MuiFormikSelect\n name={buildFieldName(\"type\")}\n placeholder={T.translate(\n \"additional_inputs.placeholders.type\"\n )}\n onChange={handleTypeChange}\n >\n {METAFIELD_TYPES.map((fieldType) => (\n <MenuItem key={fieldType} value={fieldType}>\n {fieldType}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n </Grid2>\n <Grid2 size={4} sx={{ alignSelf: \"end\" }}>\n <MuiFormikCheckbox\n name={buildFieldName(\"is_required\")}\n label={T.translate(\"additional_inputs.required\")}\n />\n </Grid2>\n </Grid2>\n {METAFIELD_TYPES_WITH_OPTIONS.includes(currentType) && (\n <>\n <Divider sx={{ mt: 2 }} />\n <MetaFieldValues\n field={item}\n fieldIndex={itemIdx}\n baseName={baseName}\n onMetaFieldTypeValueDeleted={onDeleteValue}\n entityId={entityId}\n />\n {showValuesError && (\n <FormHelperText error sx={{ mt: 1 }}>\n {fieldErrors.values}\n </FormHelperText>\n )}\n </>\n )}\n {currentType === \"Quantity\" && (\n <Grid2 container spacing={2} sx={{ alignItems: \"start\", mt: 2 }}>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"minimum_quantity\")}\n name={buildFieldName(\"minimum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.minimum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.minimum_quantity\")}\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"maximum_quantity\")}\n name={buildFieldName(\"maximum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.maximum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.maximum_quantity\")}\n />\n </Grid2>\n </Grid2>\n )}\n </Box>\n </Grid2>\n <Grid2 size={1}>\n <Box\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 1\n }}\n >\n <Button\n variant=\"outlined\"\n aria-label=\"delete\"\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={() => onDelete(item, itemIdx)}\n >\n <DeleteIcon />\n </Button>\n <Button\n variant=\"contained\"\n aria-label=\"add\"\n disabled={isAddDisabled}\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={onAdd}\n >\n <AddIcon />\n </Button>\n </Box>\n </Grid2>\n </Grid2>\n );\n};\n\nexport default AdditionalInput;\n"],"names":["root","factory","exports","module","define","amd","this","require","iconMap","warning","React","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","DragAndDropList","items","onReorder","renderItem","idKey","updateOrderKey","droppableId","DragDropContext","onDragEnd","result","destination","newItems","reorder","list","startIndex","endIndex","Array","from","removed","splice","map","item","index","_objectSpread","source","Droppable","provided","Box","_extends","ref","innerRef","droppableProps","width","Draggable","key","String","draggableId","snapshot","draggableProps","dragHandleProps","background","isDragging","transition","placeholder","MuiFormikCheckbox","_ref","name","label","props","_objectWithoutProperties","_excluded","field","meta","useField","type","FormControl","touched","Boolean","FormControlLabel","control","Checkbox","checked","value","FormHelperText","MuiFormikSelect","children","isClearable","rest","helpers","shouldShrink","InputLabel","htmlFor","id","shrink","Select","labelId","notched","displayEmpty","renderValue","selected","endAdornment","InputAdornment","position","mr","IconButton","size","ev","stopPropagation","setValue","ClearIcon","fontSize","MuiFormikTextField","_field$value","maxLength","required","currentLength","length","finalLabel","TextField","onBlur","helperText","slotProps","htmlInput","pl","BRIDGE_KEY","_global","globalThis","window","showConfirmDialog","METAFIELD_TYPES_WITH_OPTIONS","METAFIELD_TYPES","__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","MetaFieldValues","fieldIndex","baseName","onMetaFieldTypeValueDeleted","entityId","values","setFieldValue","useFormikContext","metaFields","sortedValues","sort","b","order","buildValueFieldName","valueIndex","fieldName","newValues","newMetaFields","renderMetaFieldValue","val","sortedIndex","originalIndex","findIndex","v","Grid2","container","spacing","boxShadow","transform","py","T","InputProps","async","metaFieldValue","removeValueFromFields","newFields","filter","_","then","handleRemoveValue","CloseIcon","onChange","e","handleDefaultChange","forEach","is_default","target","mt","offset","startIcon","AddIcon","disabled","isMetafieldValueIncomplete","some","_v$name","_v$value","trim","handleAddValue","f","i","AdditionalInput","itemIdx","onAdd","onDelete","onDeleteValue","isAddDisabled","errors","buildFieldName","currentType","getIn","fieldErrors","fieldTouched","showValuesError","border","borderRadius","my","newType","includes","fieldType","MenuItem","alignSelf","flexDirection","gap","height","padding","DeleteIcon"],"sourceRoot":""}
1
+ {"version":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,IAAAA,cAAC4B,EAAAA,QAAO,MACJ,EAUJqB,MAAM,KACNC,eAAe,QACfC,YAAa,oBAAoBsK,MAEnCzN,IAAAA,cAACyM,EAAAA,MAAK,CAACC,WAAS,EAACC,QAAS,EAAGpL,GAAI,CAAEiM,GAAI,GAAK2C,OAAQ,GAClDnQ,IAAAA,cAACoC,EAAAA,OAAM,CACLgO,UAAWpQ,IAAAA,cAACiO,IAAO,MACnBD,SAnH2BqC,KAC7BrK,EAAM+F,OAAOlD,OAAS,GACjB7C,EAAM+F,OAAOuE,MAAMrB,IAAC,IAAAsB,EAAAC,EAAA,QAAY,QAAPD,EAACtB,EAAEtJ,YAAI,IAAA4K,GAANA,EAAQE,QAAkB,QAARD,EAACvB,EAAEtI,aAAK,IAAA6J,GAAPA,EAASC,OAAO,IAiHtDJ,GACV/N,QAxIeoO,KACrB,MAAMjB,EAAYtB,EAAWlK,KAAI,CAAC0M,EAAGC,IACnCA,IAAMnD,EAAUrJ,EAAAA,EAAA,GACPuM,GAAC,IAAE5E,OAAQ,IAAI4E,EAAE5E,OAAQ,CAAEpF,MAAO,GAAIhB,KAAM,GAAIuK,YAAY,MACjES,IAEN3E,EAAcT,EAAUkE,EAAU,EAmI5B9N,QAAQ,QAEPoL,IAAAA,UAAY,2BAGb,ECtKV,EAJyBlH,GACvB7F,IAAAA,cAACqL,EAAmB5G,IAAA,GAAKoB,EAAK,CAAEgG,yBAA0BqC,K","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Info\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Warning\"","webpack://openstack-uicore-foundation/./src/components/mui/confirm-dialog.js","webpack://openstack-uicore-foundation/external commonjs \"react-beautiful-dnd\"","webpack://openstack-uicore-foundation/./src/components/mui/dnd-list.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Clear\"","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/./src/components/mui/showConfirmDialog.js","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/CheckCircle\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Error\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","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 \"i18n-react/dist/i18n-react\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Delete\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Add\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/additional-input-core.js","webpack://openstack-uicore-foundation/external commonjs \"@mui/icons-material/Close\"","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/meta-field-values.js","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/additional-input/additional-input.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Info\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Warning\");","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n Typography\n} from \"@mui/material\";\nimport CheckCircle from \"@mui/icons-material/CheckCircle\";\nimport Error from \"@mui/icons-material/Error\";\nimport Info from \"@mui/icons-material/Info\";\nimport Warning from \"@mui/icons-material/Warning\";\n\nconst iconMap = {\n warning: <Warning color=\"warning\" />,\n success: <CheckCircle color=\"success\" />,\n error: <Error color=\"error\" />,\n info: <Info color=\"info\" />\n};\n\nconst ConfirmDialog = ({\n open,\n title,\n text,\n iconType = \"\",\n onConfirm,\n onCancel,\n confirmButtonText = \"Confirm\",\n confirmButtonColor = \"primary\",\n cancelButtonText = \"Cancel\",\n cancelButtonColor = \"primary\"\n}) => (\n <Dialog open={open} onClose={onCancel}>\n <DialogTitle sx={{ p: 2 }} component=\"div\">\n <Typography variant=\"h5\">{title}</Typography>\n </DialogTitle>\n <Divider />\n <DialogContent sx={{ p: 2 }}>\n <div style={{ display: \"flex\", alignItems: \"center\" }}>\n {iconMap[iconType] && (\n <div style={{ marginRight: 10 }}>{iconMap[iconType]}</div>\n )}\n <Typography variant=\"body1\">{text}</Typography>\n </div>\n </DialogContent>\n <Divider sx={{ margin: \"10px 0px 10px 0px\" }} />\n <DialogActions>\n <Button\n fullWidth\n onClick={onCancel}\n color={cancelButtonColor}\n variant=\"outlined\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {cancelButtonText}\n </Button>\n <Button\n fullWidth\n onClick={onConfirm}\n color={confirmButtonColor}\n variant=\"contained\"\n sx={{ whiteSpace: \"nowrap\", minWidth: 100 }}\n >\n {confirmButtonText}\n </Button>\n </DialogActions>\n </Dialog>\n);\n\nConfirmDialog.propTypes = {\n open: PropTypes.bool,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n iconType: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n confirmButtonText: PropTypes.string,\n confirmButtonColor: PropTypes.string,\n cancelButtonText: PropTypes.string,\n cancelButtonColor: PropTypes.string\n};\n\nConfirmDialog.defaultProps = {\n open: false,\n iconType: \"warning\",\n confirmButtonText: \"Confirm\",\n confirmButtonColor: \"primary\",\n cancelButtonText: \"Cancel\",\n cancelButtonColor: \"default\"\n};\n\nexport default ConfirmDialog;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"react-beautiful-dnd\");","/**\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 { DragDropContext, Droppable, Draggable } from \"react-beautiful-dnd\";\nimport { Box } from \"@mui/material\";\n\nconst reorder = (list, startIndex, endIndex, updateOrderKey) => {\n const result = Array.from(list);\n const [removed] = result.splice(startIndex, 1);\n result.splice(endIndex, 0, removed);\n return result.map((item, index) => ({\n ...item,\n [updateOrderKey]: index + 1\n }));\n};\n\nconst DragAndDropList = ({\n items,\n onReorder,\n renderItem,\n idKey,\n updateOrderKey,\n droppableId\n}) => {\n const handleDragEnd = (result) => {\n if (!result.destination) return;\n\n const newItems = reorder(\n items,\n result.source.index,\n result.destination.index,\n updateOrderKey\n );\n onReorder(newItems, result);\n };\n\n return (\n <DragDropContext onDragEnd={handleDragEnd}>\n <Droppable droppableId={droppableId}>\n {(provided) => (\n <Box\n ref={provided.innerRef}\n {...provided.droppableProps}\n sx={{ width: \"100%\" }}\n >\n {items.map((item, index) => (\n <Draggable\n key={String(item[idKey] || `new-${index}`)}\n draggableId={String(item[idKey] || `new-${index}`)}\n index={index}\n >\n {(provided, snapshot) => (\n <Box\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n sx={{\n background: snapshot.isDragging ? \"#f0f0f0\" : \"inherit\",\n transition: \"background 0.2s ease\"\n }}\n >\n {renderItem(item, index, provided, snapshot)}\n </Box>\n )}\n </Draggable>\n ))}\n {provided.placeholder}\n </Box>\n )}\n </Droppable>\n </DragDropContext>\n );\n};\n\nDragAndDropList.propTypes = {\n items: PropTypes.array.isRequired,\n onReorder: PropTypes.func.isRequired,\n renderItem: PropTypes.func.isRequired,\n idKey: PropTypes.string,\n updateOrderKey: PropTypes.string,\n droppableId: PropTypes.string\n};\n\nDragAndDropList.defaultProps = {\n idKey: \"id\",\n updateOrderKey: \"order\",\n droppableId: \"droppable\"\n};\n\nexport default DragAndDropList;\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, margin = \"normal\", ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin={margin}\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/icons-material/Clear\");","/**\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","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport ConfirmDialog from \"./confirm-dialog\";\n\n/**\n * Imperative confirm dialog API.\n *\n * SETUP (required):\n * Place <GlobalConfirmDialog /> at the root of your app:\n *\n * import { GlobalConfirmDialog } from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * function App() {\n * return (\n * <>\n * <YourApp />\n * <GlobalConfirmDialog />\n * </>\n * );\n * }\n *\n * USAGE (works from any file — the bridge is shared via globalThis):\n * import showConfirmDialog from\n * 'openstack-uicore-foundation/lib/components/mui/show-confirm-dialog';\n *\n * const confirmed = await showConfirmDialog({\n * title: 'Delete Item?',\n * text: 'This cannot be undone'\n * });\n */\n\n// Shared bridge reference stored on globalThis so that all webpack bundles\n// (table, sortable-table, show-confirm-dialog, index, etc.) read/write the\n// same callback. A module-level variable would be duplicated per bundle.\nconst BRIDGE_KEY = \"__oif_confirm_dialog_bridge__\";\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : {};\n\n/**\n * @param param0\n * @param param0.title\n * @param param0.text\n * @param param0.iconType\n * @param param0.confirmButtonText\n * @param param0.cancelButtonText\n * @param param0.confirmButtonColor\n * @param param0.cancelButtonColor\n * @returns {Promise<boolean>}\n */\nconst showConfirmDialog = ({\n title,\n text,\n iconType = \"\",\n confirmButtonText = \"Confirm\",\n cancelButtonText = \"Cancel\",\n confirmButtonColor = \"primary\",\n cancelButtonColor = \"primary\"\n}) => {\n if (!_global[BRIDGE_KEY]) {\n throw new Error(\n \"[openstack-uicore-foundation] showConfirmDialog: <GlobalConfirmDialog /> is not mounted. \" +\n \"Add <GlobalConfirmDialog /> to the root of your app.\"\n );\n }\n\n return _global[BRIDGE_KEY]({\n title,\n text,\n iconType,\n confirmButtonText,\n cancelButtonText,\n confirmButtonColor,\n cancelButtonColor\n });\n};\n\n/**\n * Global confirm dialog component. Place at the root of your app:\n *\n * <App>\n * ...\n * <GlobalConfirmDialog />\n * </App>\n *\n * Then call showConfirmDialog() anywhere.\n */\nexport const GlobalConfirmDialog = () => {\n const [dialogState, setDialogState] = useState(null);\n\n useEffect(() => {\n _global[BRIDGE_KEY] = (options) => {\n return new Promise((resolve) => {\n setDialogState({ ...options, open: true, onResolve: resolve });\n });\n };\n return () => { _global[BRIDGE_KEY] = null; };\n }, []);\n\n const handleConfirm = () => {\n if (dialogState?.onResolve) dialogState.onResolve(true);\n setDialogState(null);\n };\n\n const handleCancel = () => {\n if (dialogState?.onResolve) dialogState.onResolve(false);\n setDialogState(null);\n };\n\n if (!dialogState) return null;\n\n return (\n <ConfirmDialog\n open={dialogState.open}\n title={dialogState.title}\n text={dialogState.text}\n iconType={dialogState.iconType}\n confirmButtonText={dialogState.confirmButtonText}\n cancelButtonText={dialogState.cancelButtonText}\n confirmButtonColor={dialogState.confirmButtonColor}\n cancelButtonColor={dialogState.cancelButtonColor}\n onConfirm={handleConfirm}\n onCancel={handleCancel}\n />\n );\n};\n\nexport default showConfirmDialog;\n","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\nexport const BPS = 100;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const ASYNC_SELECT_SAFETY_TIMEOUT = 15000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};\n\nexport const DATE_FORMAT = \"MM/DD/YYYY\";\nexport const DATETIME_FORMAT = \"MM/DD/YYYY hh:mm a\";\n\nexport const SPONSOR_FORMS_METAFIELD_CLASS = {\n FORM: \"Form\",\n ITEM: \"Item\"\n};\n\nexport const SPONSOR_ORDER_GRID_ITEM_TYPES = {\n CHARGE: \"Charge\",\n PAYMENT: \"Payment\",\n REFUND: \"Refund\",\n DISCOUNT: \"Discount\",\n CANCELLED: \"Cancelled\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/icons-material/CheckCircle\");","module.exports = require(\"@mui/icons-material/Error\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","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(\"i18n-react/dist/i18n-react\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Delete\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Add\");","/**\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 Box,\n Button,\n Divider,\n FormHelperText,\n Grid2,\n InputLabel,\n MenuItem\n} from \"@mui/material\";\nimport { useFormikContext, getIn } from \"formik\";\nimport T from \"i18n-react/dist/i18n-react\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikSelect from \"../mui-formik-select\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\nimport {\n METAFIELD_TYPES,\n METAFIELD_TYPES_WITH_OPTIONS\n} from \"../../../../utils/constants\";\n\nconst AdditionalInputCore = ({\n item,\n itemIdx,\n baseName,\n onAdd,\n onDelete,\n onDeleteValue,\n entityId,\n isAddDisabled,\n MetaFieldValuesComponent\n}) => {\n const { errors, touched, values, setFieldValue } = useFormikContext();\n\n const buildFieldName = (fieldName) => `${baseName}[${itemIdx}].${fieldName}`;\n const currentType = getIn(values, buildFieldName(\"type\"));\n\n const handleTypeChange = (e) => {\n const newType = e.target.value;\n setFieldValue(buildFieldName(\"type\"), newType);\n if (!METAFIELD_TYPES_WITH_OPTIONS.includes(newType)) {\n setFieldValue(buildFieldName(\"values\"), []);\n }\n };\n\n const fieldErrors = getIn(errors, `${baseName}[${itemIdx}]`);\n const fieldTouched = getIn(touched, `${baseName}[${itemIdx}]`);\n\n const showValuesError =\n fieldTouched?.values &&\n fieldErrors?.values &&\n typeof fieldErrors.values === \"string\";\n\n return (\n <Grid2 container spacing={2} sx={{ alignItems: \"center\" }}>\n <Grid2 size={11}>\n <Box\n sx={{\n border: \"1px solid #0000001F\",\n borderRadius: \"4px\",\n p: 2,\n my: 2\n }}\n >\n <Grid2 container spacing={2} sx={{ alignItems: \"start\" }}>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"name\")}>\n {T.translate(\"additional_inputs.title\")}\n </InputLabel>\n <MuiFormikTextField\n name={buildFieldName(\"name\")}\n margin=\"none\"\n placeholder={T.translate(\n \"additional_inputs.placeholders.title\"\n )}\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <InputLabel htmlFor={buildFieldName(\"type\")}>\n {T.translate(\"additional_inputs.type\")}\n </InputLabel>\n <MuiFormikSelect\n name={buildFieldName(\"type\")}\n placeholder={T.translate(\n \"additional_inputs.placeholders.type\"\n )}\n onChange={handleTypeChange}\n >\n {METAFIELD_TYPES.map((fieldType) => (\n <MenuItem key={fieldType} value={fieldType}>\n {fieldType}\n </MenuItem>\n ))}\n </MuiFormikSelect>\n </Grid2>\n <Grid2 size={4} sx={{ alignSelf: \"end\" }}>\n <MuiFormikCheckbox\n name={buildFieldName(\"is_required\")}\n label={T.translate(\"additional_inputs.required\")}\n />\n </Grid2>\n </Grid2>\n {METAFIELD_TYPES_WITH_OPTIONS.includes(currentType) && (\n <>\n <Divider sx={{ mt: 2 }} />\n <MetaFieldValuesComponent\n field={item}\n fieldIndex={itemIdx}\n baseName={baseName}\n onMetaFieldTypeValueDeleted={onDeleteValue}\n entityId={entityId}\n />\n {showValuesError && (\n <FormHelperText error sx={{ mt: 1 }}>\n {fieldErrors.values}\n </FormHelperText>\n )}\n </>\n )}\n {currentType === \"Quantity\" && (\n <Grid2 container spacing={2} sx={{ alignItems: \"start\", mt: 2 }}>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"minimum_quantity\")}\n name={buildFieldName(\"minimum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.minimum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.minimum_quantity\")}\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n id={buildFieldName(\"maximum_quantity\")}\n name={buildFieldName(\"maximum_quantity\")}\n type=\"number\"\n margin=\"none\"\n fullWidth\n label={T.translate(\"additional_inputs.maximum\")}\n placeholder={T.translate(\"additional_inputs.placeholders.maximum_quantity\")}\n />\n </Grid2>\n </Grid2>\n )}\n </Box>\n </Grid2>\n <Grid2 size={1}>\n <Box\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 1\n }}\n >\n <Button\n variant=\"outlined\"\n aria-label=\"delete\"\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={() => onDelete(item, itemIdx)}\n >\n <DeleteIcon />\n </Button>\n <Button\n variant=\"contained\"\n aria-label=\"add\"\n disabled={isAddDisabled}\n sx={{\n width: 40,\n height: 40,\n minWidth: \"auto\",\n borderRadius: \"50%\",\n padding: 0\n }}\n onClick={onAdd}\n >\n <AddIcon />\n </Button>\n </Box>\n </Grid2>\n </Grid2>\n );\n};\n\nexport default AdditionalInputCore;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@mui/icons-material/Close\");","/**\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 T from \"i18n-react/dist/i18n-react\";\nimport { useFormikContext } from \"formik\";\nimport { Box, Button, Grid2, Divider, IconButton } from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DragAndDropList from \"../../dnd-list\";\nimport showConfirmDialog from \"../../showConfirmDialog\";\nimport MuiFormikTextField from \"../mui-formik-textfield\";\nimport MuiFormikCheckbox from \"../mui-formik-checkbox\";\n\nconst MetaFieldValues = ({\n field,\n fieldIndex,\n baseName = \"meta_fields\",\n onMetaFieldTypeValueDeleted,\n entityId\n}) => {\n const { values, setFieldValue } = useFormikContext();\n\n const metaFields = values[baseName] || [];\n const sortedValues = [...field.values].sort((a, b) => a.order - b.order);\n\n const buildValueFieldName = (valueIndex, fieldName) =>\n `${baseName}[${fieldIndex}].values[${valueIndex}].${fieldName}`;\n\n const onReorder = (newValues) => {\n const newMetaFields = [...metaFields];\n newMetaFields[fieldIndex].values = newValues;\n setFieldValue(baseName, newMetaFields);\n };\n\n const handleAddValue = () => {\n const newFields = metaFields.map((f, i) =>\n i === fieldIndex\n ? { ...f, values: [...f.values, { value: \"\", name: \"\", is_default: false }] }\n : f\n );\n setFieldValue(baseName, newFields);\n };\n\n const handleDefaultChange = (valueIndex, checked) => {\n const newFields = [...metaFields];\n if (checked) {\n newFields[fieldIndex].values.forEach((v) => {\n v.is_default = false;\n });\n }\n newFields[fieldIndex].values[valueIndex].is_default = checked;\n setFieldValue(baseName, newFields);\n };\n\n const isMetafieldValueIncomplete = () => {\n if (field.values.length > 0) {\n return field.values.some((v) => !v.name?.trim() || !v.value?.trim());\n }\n return false;\n };\n\n const handleRemoveValue = async (metaFieldValue, valueIndex) => {\n const isConfirmed = await showConfirmDialog({\n title: T.translate(\"general.are_you_sure\"),\n text: T.translate(\"meta_fields.delete_value_warning\"),\n iconType: \"warning\",\n confirmButtonColor: \"#DD6B55\",\n confirmButtonText: T.translate(\"general.yes_delete\")\n });\n\n if (!isConfirmed) return;\n\n const removeValueFromFields = () => {\n const newFields = [...metaFields];\n newFields[fieldIndex].values = newFields[fieldIndex].values.filter(\n (_, index) => index !== valueIndex\n );\n setFieldValue(baseName, newFields);\n };\n\n if (field.id && metaFieldValue.id && onMetaFieldTypeValueDeleted) {\n onMetaFieldTypeValueDeleted(entityId, field.id, metaFieldValue.id)\n .then(() => removeValueFromFields())\n .catch(() => {});\n } else {\n removeValueFromFields();\n }\n };\n\n const renderMetaFieldValue = (val, sortedIndex, provided, snapshot) => {\n const originalIndex = field.values.findIndex(\n (v) => (v.id && v.id === val.id) || v === val\n );\n const valueIndex = originalIndex !== -1 ? originalIndex : sortedIndex;\n\n return (\n <Box key={val.id || `value-${valueIndex}`}>\n <Grid2\n container\n spacing={2}\n sx={{\n alignItems: \"start\",\n background: snapshot?.isDragging ? \"#ebebeb\" : \"inherit\",\n boxShadow: snapshot?.isDragging\n ? \"0px 5px 15px rgba(0,0,0,0.3)\"\n : \"none\",\n transition: \"transform 0.2s ease, box-shadow 0.2s ease\",\n transform: snapshot?.isDragging ? \"scale(1.02)\" : \"none\",\n py: 2\n }}\n >\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"name\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.name\"\n )}\n margin=\"none\"\n fullWidth\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikTextField\n name={buildValueFieldName(valueIndex, \"value\")}\n placeholder={T.translate(\n \"meta_fields.placeholders.value\"\n )}\n margin=\"none\"\n fullWidth\n InputProps={{\n endAdornment: (\n <IconButton\n onClick={() => handleRemoveValue(val, valueIndex)}\n aria-label=\"remove value\"\n >\n <CloseIcon />\n </IconButton>\n )\n }}\n />\n </Grid2>\n <Grid2 size={4}>\n <MuiFormikCheckbox\n name={buildValueFieldName(valueIndex, \"is_default\")}\n label={T.translate(\"meta_fields.is_default\")}\n onChange={(e) =>\n handleDefaultChange(valueIndex, e.target.checked)\n }\n />\n </Grid2>\n </Grid2>\n <Divider />\n </Box>\n );\n };\n\n return (\n <Box>\n <DragAndDropList\n items={sortedValues}\n onReorder={onReorder}\n renderItem={renderMetaFieldValue}\n idKey=\"id\"\n updateOrderKey=\"order\"\n droppableId={`droppable-values-${fieldIndex}`}\n />\n <Grid2 container spacing={2} sx={{ mt: 2 }} offset={4}>\n <Button\n startIcon={<AddIcon />}\n disabled={isMetafieldValueIncomplete()}\n onClick={handleAddValue}\n variant=\"text\"\n >\n {T.translate(\"meta_fields.add_value\")}\n </Button>\n </Grid2>\n </Box>\n );\n};\n\nexport default MetaFieldValues;\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 AdditionalInputCore from \"./additional-input-core\";\nimport MetaFieldValues from \"./meta-field-values\";\n\nconst AdditionalInput = (props) => (\n <AdditionalInputCore {...props} MetaFieldValuesComponent={MetaFieldValues} />\n);\n\nexport default AdditionalInput;\n"],"names":["root","factory","exports","module","define","amd","this","require","iconMap","warning","React","Warning","color","success","CheckCircle","error","Error","info","Info","ConfirmDialog","open","title","text","iconType","onConfirm","onCancel","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","Dialog","onClose","DialogTitle","sx","p","component","Typography","variant","Divider","DialogContent","style","display","alignItems","marginRight","margin","DialogActions","Button","fullWidth","onClick","whiteSpace","minWidth","propTypes","PropTypes","isRequired","defaultProps","DragAndDropList","items","onReorder","renderItem","idKey","updateOrderKey","droppableId","DragDropContext","onDragEnd","result","destination","newItems","reorder","list","startIndex","endIndex","Array","from","removed","splice","map","item","index","_objectSpread","source","Droppable","provided","Box","_extends","ref","innerRef","droppableProps","width","Draggable","key","String","draggableId","snapshot","draggableProps","dragHandleProps","background","isDragging","transition","placeholder","MuiFormikCheckbox","_ref","name","label","props","_objectWithoutProperties","_excluded","field","meta","useField","type","FormControl","touched","Boolean","FormControlLabel","control","Checkbox","checked","value","FormHelperText","MuiFormikSelect","children","isClearable","rest","helpers","shouldShrink","InputLabel","htmlFor","id","shrink","Select","labelId","notched","displayEmpty","renderValue","selected","endAdornment","InputAdornment","position","mr","IconButton","size","ev","stopPropagation","setValue","ClearIcon","fontSize","MuiFormikTextField","_field$value","maxLength","required","currentLength","length","finalLabel","TextField","onBlur","helperText","slotProps","htmlInput","pl","BRIDGE_KEY","_global","globalThis","window","showConfirmDialog","METAFIELD_TYPES_WITH_OPTIONS","METAFIELD_TYPES","__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","AdditionalInputCore","itemIdx","baseName","onAdd","onDelete","onDeleteValue","entityId","isAddDisabled","MetaFieldValuesComponent","errors","values","setFieldValue","useFormikContext","buildFieldName","fieldName","currentType","getIn","fieldErrors","fieldTouched","showValuesError","Grid2","container","spacing","border","borderRadius","my","T","onChange","e","newType","target","includes","fieldType","MenuItem","alignSelf","mt","fieldIndex","onMetaFieldTypeValueDeleted","flexDirection","gap","height","padding","DeleteIcon","disabled","AddIcon","MetaFieldValues","metaFields","sortedValues","sort","b","order","buildValueFieldName","valueIndex","newValues","newMetaFields","renderMetaFieldValue","val","sortedIndex","originalIndex","findIndex","v","boxShadow","transform","py","InputProps","async","metaFieldValue","removeValueFromFields","newFields","filter","_","then","catch","handleRemoveValue","CloseIcon","handleDefaultChange","forEach","is_default","offset","startIcon","isMetafieldValueIncomplete","some","_v$name","_v$value","trim","handleAddValue","f","i"],"sourceRoot":""}