openstack-uicore-foundation 5.0.2 → 5.0.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/lib/components/ajaxloader.js.map +1 -1
  3. package/lib/components/attendance-tracker.js +1 -1
  4. package/lib/components/attendance-tracker.js.map +1 -1
  5. package/lib/components/bulk-actions-selector.js.map +1 -1
  6. package/lib/components/circle-button.js.map +1 -1
  7. package/lib/components/clock.js +1 -1
  8. package/lib/components/clock.js.map +1 -1
  9. package/lib/components/exclusive-wrapper.js.map +1 -1
  10. package/lib/components/extra-questions-mui.js.map +1 -1
  11. package/lib/components/extra-questions.js +1 -1
  12. package/lib/components/extra-questions.js.map +1 -1
  13. package/lib/components/form-validation.js.map +1 -1
  14. package/lib/components/forms/rsvp-form.js.map +1 -1
  15. package/lib/components/forms/simple-form.js +1 -1
  16. package/lib/components/forms/simple-form.js.map +1 -1
  17. package/lib/components/free-text-search.js +1 -1
  18. package/lib/components/free-text-search.js.map +1 -1
  19. package/lib/components/google-map.js +1 -1
  20. package/lib/components/google-map.js.map +1 -1
  21. package/lib/components/index.js +1 -1
  22. package/lib/components/index.js.map +1 -1
  23. package/lib/components/inputs/access-levels-input.js +1 -1
  24. package/lib/components/inputs/access-levels-input.js.map +1 -1
  25. package/lib/components/inputs/action-dropdown.js.map +1 -1
  26. package/lib/components/inputs/attendee-input.js +1 -1
  27. package/lib/components/inputs/attendee-input.js.map +1 -1
  28. package/lib/components/inputs/checkbox-list.js.map +1 -1
  29. package/lib/components/inputs/company-input-v2.js +1 -1
  30. package/lib/components/inputs/company-input-v2.js.map +1 -1
  31. package/lib/components/inputs/company-input.js +1 -1
  32. package/lib/components/inputs/company-input.js.map +1 -1
  33. package/lib/components/inputs/country-dropdown.js +1 -1
  34. package/lib/components/inputs/country-dropdown.js.map +1 -1
  35. package/lib/components/inputs/country-input.js +1 -1
  36. package/lib/components/inputs/country-input.js.map +1 -1
  37. package/lib/components/inputs/datetimepicker.js.map +1 -1
  38. package/lib/components/inputs/dropdown.js.map +1 -1
  39. package/lib/components/inputs/editor-input-v2.js.map +1 -1
  40. package/lib/components/inputs/editor-input-v3.js.map +1 -1
  41. package/lib/components/inputs/editor-input.js.map +1 -1
  42. package/lib/components/inputs/event-input.js +1 -1
  43. package/lib/components/inputs/event-input.js.map +1 -1
  44. package/lib/components/inputs/free-multi-text-input.js.map +1 -1
  45. package/lib/components/inputs/group-input.js +1 -1
  46. package/lib/components/inputs/group-input.js.map +1 -1
  47. package/lib/components/inputs/grouped-dropdown.js.map +1 -1
  48. package/lib/components/inputs/language-input.js +1 -1
  49. package/lib/components/inputs/language-input.js.map +1 -1
  50. package/lib/components/inputs/member-input.js +1 -1
  51. package/lib/components/inputs/member-input.js.map +1 -1
  52. package/lib/components/inputs/operator-input.js.map +1 -1
  53. package/lib/components/inputs/organization-input.js +1 -1
  54. package/lib/components/inputs/organization-input.js.map +1 -1
  55. package/lib/components/inputs/promocode-input.js +1 -1
  56. package/lib/components/inputs/promocode-input.js.map +1 -1
  57. package/lib/components/inputs/radio-list.js.map +1 -1
  58. package/lib/components/inputs/registration-company-input.js +1 -1
  59. package/lib/components/inputs/registration-company-input.js.map +1 -1
  60. package/lib/components/inputs/speaker-input.js +1 -1
  61. package/lib/components/inputs/speaker-input.js.map +1 -1
  62. package/lib/components/inputs/sponsor-input.js +1 -1
  63. package/lib/components/inputs/sponsor-input.js.map +1 -1
  64. package/lib/components/inputs/stepped-select.js.map +1 -1
  65. package/lib/components/inputs/summit-days-select.js.map +1 -1
  66. package/lib/components/inputs/summit-input.js +1 -1
  67. package/lib/components/inputs/summit-input.js.map +1 -1
  68. package/lib/components/inputs/summit-venues-select.js.map +1 -1
  69. package/lib/components/inputs/tag-input.js +1 -1
  70. package/lib/components/inputs/tag-input.js.map +1 -1
  71. package/lib/components/inputs/text-input.js.map +1 -1
  72. package/lib/components/inputs/textarea-input.js.map +1 -1
  73. package/lib/components/inputs/ticket-types-input.js +1 -1
  74. package/lib/components/inputs/ticket-types-input.js.map +1 -1
  75. package/lib/components/inputs/upload-input-v2.js +1 -1
  76. package/lib/components/inputs/upload-input-v2.js.map +1 -1
  77. package/lib/components/inputs/upload-input-v3.js +1 -1
  78. package/lib/components/inputs/upload-input-v3.js.map +1 -1
  79. package/lib/components/inputs/upload-input.js.map +1 -1
  80. package/lib/components/mui/alert-button.js +2 -0
  81. package/lib/components/mui/alert-button.js.map +1 -0
  82. package/lib/components/mui/alert-modal.js +2 -0
  83. package/lib/components/mui/alert-modal.js.map +1 -0
  84. package/lib/components/mui/auth-button.js +2 -0
  85. package/lib/components/mui/auth-button.js.map +1 -0
  86. package/lib/components/mui/cart-button.js +2 -0
  87. package/lib/components/mui/cart-button.js.map +1 -0
  88. package/lib/components/mui/checkbox-list.js.map +1 -1
  89. package/lib/components/mui/chip-list.js.map +1 -1
  90. package/lib/components/mui/chip-notify.js +1 -1
  91. package/lib/components/mui/chip-notify.js.map +1 -1
  92. package/lib/components/mui/chip-select-input.js.map +1 -1
  93. package/lib/components/mui/confirm-delete-dialog.js +2 -0
  94. package/lib/components/mui/confirm-delete-dialog.js.map +1 -0
  95. package/lib/components/mui/confirm-dialog.js.map +1 -1
  96. package/lib/components/mui/custom-alert.js.map +1 -1
  97. package/lib/components/mui/dashboard-card.js +2 -0
  98. package/lib/components/mui/dashboard-card.js.map +1 -0
  99. package/lib/components/mui/dnd-list.js.map +1 -1
  100. package/lib/components/mui/download-btn.js +2 -0
  101. package/lib/components/mui/download-btn.js.map +1 -0
  102. package/lib/components/mui/dropdown-checkbox.js.map +1 -1
  103. package/lib/components/mui/editable-table.js.map +1 -1
  104. package/lib/components/mui/form-item-table.js +1 -1
  105. package/lib/components/mui/form-item-table.js.map +1 -1
  106. package/lib/components/mui/formik-inputs/additional-input-list.js.map +1 -1
  107. package/lib/components/mui/formik-inputs/additional-input.js.map +1 -1
  108. package/lib/components/mui/formik-inputs/async-select.js.map +1 -1
  109. package/lib/components/mui/formik-inputs/checkbox-group.js.map +1 -1
  110. package/lib/components/mui/formik-inputs/checkbox.js.map +1 -1
  111. package/lib/components/mui/formik-inputs/company-input.js +1 -1
  112. package/lib/components/mui/formik-inputs/company-input.js.map +1 -1
  113. package/lib/components/mui/formik-inputs/datepicker.js.map +1 -1
  114. package/lib/components/mui/formik-inputs/discount-field.js.map +1 -1
  115. package/lib/components/mui/formik-inputs/dropdown-checkbox.js.map +1 -1
  116. package/lib/components/mui/formik-inputs/dropdown-radio.js.map +1 -1
  117. package/lib/components/mui/formik-inputs/file-size-field.js.map +1 -1
  118. package/lib/components/mui/formik-inputs/item-price-tiers.js +1 -1
  119. package/lib/components/mui/formik-inputs/item-price-tiers.js.map +1 -1
  120. package/lib/components/mui/formik-inputs/price-field.js.map +1 -1
  121. package/lib/components/mui/formik-inputs/quantity-field.js.map +1 -1
  122. package/lib/components/mui/formik-inputs/radio-group.js.map +1 -1
  123. package/lib/components/mui/formik-inputs/select-group.js.map +1 -1
  124. package/lib/components/mui/formik-inputs/select.js.map +1 -1
  125. package/lib/components/mui/formik-inputs/sponsor-input.js +1 -1
  126. package/lib/components/mui/formik-inputs/sponsor-input.js.map +1 -1
  127. package/lib/components/mui/formik-inputs/sponsorship-input.js +1 -1
  128. package/lib/components/mui/formik-inputs/sponsorship-input.js.map +1 -1
  129. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js +1 -1
  130. package/lib/components/mui/formik-inputs/sponsorship-summit-select.js.map +1 -1
  131. package/lib/components/mui/formik-inputs/summit-addon-select.js +1 -1
  132. package/lib/components/mui/formik-inputs/summit-addon-select.js.map +1 -1
  133. package/lib/components/mui/formik-inputs/switch.js.map +1 -1
  134. package/lib/components/mui/formik-inputs/textfield.js.map +1 -1
  135. package/lib/components/mui/formik-inputs/timepicker.js.map +1 -1
  136. package/lib/components/mui/formik-inputs/upload.js +1 -1
  137. package/lib/components/mui/formik-inputs/upload.js.map +1 -1
  138. package/lib/components/mui/infinite-table.js.map +1 -1
  139. package/lib/components/mui/item-settings-modal.js +1 -1
  140. package/lib/components/mui/item-settings-modal.js.map +1 -1
  141. package/lib/components/mui/loading-overlay.js +2 -0
  142. package/lib/components/mui/loading-overlay.js.map +1 -0
  143. package/lib/components/mui/menu-button.js.map +1 -1
  144. package/lib/components/mui/nav-bar.js +2 -0
  145. package/lib/components/mui/nav-bar.js.map +1 -0
  146. package/lib/components/mui/notes-modal.js +1 -1
  147. package/lib/components/mui/notes-modal.js.map +1 -1
  148. package/lib/components/mui/order-summary.js +2 -0
  149. package/lib/components/mui/order-summary.js.map +1 -0
  150. package/lib/components/mui/search-input.js +1 -1
  151. package/lib/components/mui/search-input.js.map +1 -1
  152. package/lib/components/mui/show-confirm-dialog.js.map +1 -1
  153. package/lib/components/mui/snackbar-notification.js +1 -1
  154. package/lib/components/mui/snackbar-notification.js.map +1 -1
  155. package/lib/components/mui/sortable-table.js.map +1 -1
  156. package/lib/components/mui/sponsor-addon-select.js +1 -1
  157. package/lib/components/mui/sponsor-addon-select.js.map +1 -1
  158. package/lib/components/mui/status-chip.js +2 -0
  159. package/lib/components/mui/status-chip.js.map +1 -0
  160. package/lib/components/mui/stripe-payment.js +2 -0
  161. package/lib/components/mui/stripe-payment.js.map +1 -0
  162. package/lib/components/mui/summit-addon-select.js +1 -1
  163. package/lib/components/mui/summit-addon-select.js.map +1 -1
  164. package/lib/components/mui/summits-dropdown.js +1 -1
  165. package/lib/components/mui/summits-dropdown.js.map +1 -1
  166. package/lib/components/mui/table.js +1 -1
  167. package/lib/components/mui/table.js.map +1 -1
  168. package/lib/components/mui/upload-btn.js +2 -0
  169. package/lib/components/mui/upload-btn.js.map +1 -0
  170. package/lib/components/mui/upload-dialog.js +2 -0
  171. package/lib/components/mui/upload-dialog.js.map +1 -0
  172. package/lib/components/progressive-img.js.map +1 -1
  173. package/lib/components/raw-html.js.map +1 -1
  174. package/lib/components/schedule-builder-view.js +1 -1
  175. package/lib/components/schedule-builder-view.js.map +1 -1
  176. package/lib/components/sections/panel.js.map +1 -1
  177. package/lib/components/simple-link-list.js.map +1 -1
  178. package/lib/components/sponsored-project-input.js +1 -1
  179. package/lib/components/sponsored-project-input.js.map +1 -1
  180. package/lib/components/summit-dropdown.js.map +1 -1
  181. package/lib/components/table-editable.js +1 -1
  182. package/lib/components/table-editable.js.map +1 -1
  183. package/lib/components/table-selectable.js.map +1 -1
  184. package/lib/components/table-sortable.js.map +1 -1
  185. package/lib/components/table.js.map +1 -1
  186. package/lib/components/video-stream.js.map +1 -1
  187. package/lib/css/components/index.css +1 -1
  188. package/lib/css/components/index.css.map +1 -1
  189. package/lib/css/components/mui/auth-button.css +1 -0
  190. package/lib/css/components/mui/nav-bar.css +1 -0
  191. package/lib/css/components/mui/upload-dialog.css +2 -0
  192. package/lib/css/components/mui/upload-dialog.css.map +1 -0
  193. package/lib/i18n.js +1 -1
  194. package/lib/i18n.js.map +1 -1
  195. package/lib/models/index.js.map +1 -1
  196. package/lib/models/summit-event.js.map +1 -1
  197. package/lib/security/abstract-auth-callback-route-v2.js +1 -1
  198. package/lib/security/abstract-auth-callback-route-v2.js.map +1 -1
  199. package/lib/security/abstract-auth-callback-route.js +1 -1
  200. package/lib/security/abstract-auth-callback-route.js.map +1 -1
  201. package/lib/security/actions.js +1 -1
  202. package/lib/security/actions.js.map +1 -1
  203. package/lib/security/methods.js +1 -1
  204. package/lib/security/methods.js.map +1 -1
  205. package/lib/security/reducers.js +1 -1
  206. package/lib/security/reducers.js.map +1 -1
  207. package/lib/security/session-checker.js +1 -1
  208. package/lib/security/session-checker.js.map +1 -1
  209. package/lib/utils/actions.js +1 -1
  210. package/lib/utils/actions.js.map +1 -1
  211. package/lib/utils/fragment-parser.js.map +1 -1
  212. package/lib/utils/methods.js +1 -1
  213. package/lib/utils/methods.js.map +1 -1
  214. package/lib/utils/money.js.map +1 -1
  215. package/lib/utils/query-actions.js +1 -1
  216. package/lib/utils/query-actions.js.map +1 -1
  217. package/lib/utils/questions-set.js +1 -1
  218. package/lib/utils/questions-set.js.map +1 -1
  219. package/lib/utils/reducers.js +1 -1
  220. package/lib/utils/reducers.js.map +1 -1
  221. package/lib/utils/use-fit-text.js.map +1 -1
  222. package/package.json +9 -1
  223. package/.codegraph/config.json +0 -140
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/async-select.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,2DCTF,MAQMC,EAAoB,G,WCRjCJ,EAAOD,QAAUM,QAAQ,wC,WCAzBL,EAAOD,QAAUM,QAAQ,iC,WCAzBL,EAAOD,QAAUM,QAAQ,gB,WCAzBL,EAAOD,QAAUM,QAAQ,S,WCAzBL,EAAOD,QAAUM,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaV,QAGrB,IAAIC,EAASM,EAAyBE,GAAY,CAGjDT,QAAS,CAAC,GAOX,OAHAY,EAAoBH,GAAUR,EAAQA,EAAOD,QAASQ,GAG/CP,EAAOD,OACf,C,MCrBAQ,EAAoBK,EAAKZ,IACxB,IAAIa,EAASb,GAAUA,EAAOc,WAC7B,IAAOd,EAAiB,QACxB,IAAM,EAEP,OADAO,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAAChB,EAASkB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEpB,EAASmB,IAC5EE,OAAOC,eAAetB,EAASmB,EAAK,CAAEI,YAAY,EAAMC,IA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EAAAc,aAAD,CACEvB,QAASA,EACTnB,MAAOA,EACP2C,SAtBiB,CAACC,EAAOC,KAC3B,IAAK1C,EAAU,CACb,MAAM2C,EAAgBzC,GAAawC,aAAA,EAAAA,EAAU7C,QAAS,GAAK6C,EAE3D,YADA5B,EAAQ8B,SAASD,EAElB,CAED,MAAME,EAAgB3C,EAClBwC,EAASV,KAAKc,GAAMA,EAAEjD,QACtB6C,EAASV,KAAKc,GACZrC,EACIA,EAAoBqC,GACpB,CAAExC,GAAIyC,SAASD,EAAEjD,OAAQC,KAAMgD,EAAEtC,SAG3CM,EAAQ8B,SAASC,EAAjB,EAQE1B,QAASA,EACTnB,SAAUW,EACVqC,WAAS,EACTC,eAAiBC,GAAWA,EAAO1C,OAAS,GAC5C2C,qBAAsB,CAACD,EAAQrD,IAAUqD,EAAOrD,QAAUA,EAAMA,MAChEuD,cAAe,CAACC,EAAGC,IAAahC,EAAcgC,GAC9CC,YAAcC,IAAD,aACX,kBAAC,EAAAC,UAAD,OACMD,EADN,CAEEvD,YAAaA,EACbyD,QAAQ,WACRnC,MAAOoC,QAAQpC,GACfqC,WAAYrC,GAAS,GACrBsC,UAAW,CACTlC,MAAO,EAAF,KACA6B,EAAOM,YADP,IAEHC,aACE,oCACG5C,GAAW,kBAAC,EAAA6C,iBAAD,CAAkBC,MAAM,UAAUC,KAAM,KADtD,UAEGV,EAAOM,kBAFV,aAEG,EAAmBC,gBAI1BI,WAAY,CAAEC,QAAQ,IAExBC,GAAI,CACF,uBAAwB,CACtBJ,MAAO,YACPK,QAAS,MAtBJ,EA2BbC,aAAc,CAACC,EAAOtB,GAAUR,cAC9B,uBAAQ8B,EACLxE,GAAY,kBAAC,EAAAyE,SAAD,CAAUC,QAAShC,EAAU2B,GAAI,CAAEM,GAAI,KACnDzB,EAAO1C,QAzChB,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-async-select.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport {\n Autocomplete,\n TextField,\n Checkbox,\n CircularProgress\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { DEBOUNCE_WAIT_250 } from \"../../../utils/constants\";\n\nconst MuiFormikAsyncAutocomplete = ({\n name,\n queryFunction,\n multiple = false,\n placeholder = \"Select...\",\n plainValue = false,\n hiddenOptions = [],\n formatOption = (item) => ({ value: item.id.toString(), label: item.name }),\n formatSelectedValue = null,\n queryParams = [],\n isMulti = false\n}) => {\n const [field, meta, helpers] = useField(name);\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n const [searchTerm, setSearchTerm] = useState(\"\");\n\n const value = field.value || (multiple ? [] : null);\n const error = meta.touched && meta.error;\n\n const fetchOptions = async (input = \"\") => {\n setLoading(true);\n try {\n await queryFunction(input, ...queryParams, (results) => {\n const normalized = results\n .filter((r) => !hiddenOptions.includes(r.id))\n .map(formatOption);\n setOptions(normalized);\n setLoading(false);\n });\n } catch (err) {\n console.error(\"Error fetching options:\", err);\n setLoading(false);\n }\n };\n\n useEffect(() => {\n if (searchTerm) {\n const delayDebounce = setTimeout(() => {\n fetchOptions(searchTerm);\n }, DEBOUNCE_WAIT_250);\n return () => clearTimeout(delayDebounce);\n }\n }, [searchTerm]);\n\n // preload empty\n useEffect(() => {\n fetchOptions(\"\");\n }, []);\n\n const handleChange = (event, selected) => {\n if (!multiple) {\n const selectedValue = plainValue ? selected?.value || \"\" : selected;\n helpers.setValue(selectedValue);\n return;\n }\n\n const selectedItems = plainValue\n ? selected.map((s) => s.value)\n : selected.map((s) =>\n formatSelectedValue\n ? formatSelectedValue(s)\n : { id: parseInt(s.value), name: s.label }\n );\n\n helpers.setValue(selectedItems);\n };\n\n return (\n <Autocomplete\n options={options}\n value={value}\n onChange={handleChange}\n loading={loading}\n multiple={isMulti}\n fullWidth\n getOptionLabel={(option) => option.label || \"\"}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onInputChange={(e, newInput) => setSearchTerm(newInput)}\n renderInput={(params) => (\n <TextField\n {...params}\n placeholder={placeholder}\n variant=\"outlined\"\n error={Boolean(error)}\n helperText={error || \"\"}\n slotProps={{\n input: {\n ...params.InputProps,\n endAdornment: (\n <>\n {loading && <CircularProgress color=\"inherit\" size={20} />}\n {params.InputProps?.endAdornment}\n </>\n )\n },\n inputLabel: { shrink: false }\n }}\n sx={{\n \"& input::placeholder\": {\n color: \"#00000061\",\n opacity: 1\n }\n }}\n />\n )}\n renderOption={(props, option, { selected }) => (\n <li {...props}>\n {multiple && <Checkbox checked={selected} sx={{ mr: 1 }} />}\n {option.label}\n </li>\n )}\n />\n );\n};\n\nexport default MuiFormikAsyncAutocomplete;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT_250","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","name","queryFunction","multiple","placeholder","plainValue","hiddenOptions","formatOption","item","id","toString","label","formatSelectedValue","queryParams","isMulti","field","meta","helpers","useField","options","setOptions","useState","loading","setLoading","searchTerm","setSearchTerm","error","touched","fetchOptions","async","input","results","normalized","filter","includes","map","err","console","useEffect","delayDebounce","setTimeout","clearTimeout","Autocomplete","onChange","event","selected","selectedValue","setValue","selectedItems","s","parseInt","fullWidth","getOptionLabel","option","isOptionEqualToValue","onInputChange","e","newInput","renderInput","params","TextField","variant","Boolean","helperText","slotProps","InputProps","endAdornment","CircularProgress","color","size","inputLabel","shrink","sx","opacity","renderOption","props","Checkbox","checked","mr"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/async-select.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,2DCTF,MAQMC,EAAoB,G,WCRjCJ,EAAOD,QAAUM,QAAQ,wC,WCAzBL,EAAOD,QAAUM,QAAQ,iC,WCAzBL,EAAOD,QAAUM,QAAQ,gB,WCAzBL,EAAOD,QAAUM,QAAQ,S,WCAzBL,EAAOD,QAAUM,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaV,QAGrB,IAAIC,EAASM,EAAyBE,GAAY,CAGjDT,QAAS,CAAC,GAOX,OAHAY,EAAoBH,GAAUR,EAAQA,EAAOD,QAASQ,GAG/CP,EAAOD,OACf,C,MCrBAQ,EAAoBK,EAAKZ,IACxB,IAAIa,EAASb,GAAUA,EAAOc,WAC7B,IAAOd,EAAiB,QACxB,IAAM,EAEP,OADAO,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ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AO,YACPK,QAAS,MAGb,EAEJC,aAAcA,CAACC,EAAOzB,GAAUR,cAC9BL,IAAAA,cAAA,KAAQsC,EACL7E,GAAYuC,IAAAA,cAACuC,EAAAA,SAAQ,CAACC,QAASnC,EAAU8B,GAAI,CAAEM,GAAI,KACnD5B,EAAO5C,QAGZ,E","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/defineProperty\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-async-select.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React, { useState, useEffect } from \"react\";\nimport {\n Autocomplete,\n TextField,\n Checkbox,\n CircularProgress\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { DEBOUNCE_WAIT_250 } from \"../../../utils/constants\";\n\nconst MuiFormikAsyncAutocomplete = ({\n name,\n queryFunction,\n multiple = false,\n placeholder = \"Select...\",\n plainValue = false,\n hiddenOptions = [],\n formatOption = (item) => ({ value: item.id.toString(), label: item.name }),\n formatSelectedValue = null,\n queryParams = [],\n isMulti = false\n}) => {\n const [field, meta, helpers] = useField(name);\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n const [searchTerm, setSearchTerm] = useState(\"\");\n\n const value = field.value || (multiple ? [] : null);\n const error = meta.touched && meta.error;\n\n const fetchOptions = async (input = \"\") => {\n setLoading(true);\n try {\n await queryFunction(input, ...queryParams, (results) => {\n const normalized = results\n .filter((r) => !hiddenOptions.includes(r.id))\n .map(formatOption);\n setOptions(normalized);\n setLoading(false);\n });\n } catch (err) {\n console.error(\"Error fetching options:\", err);\n setLoading(false);\n }\n };\n\n useEffect(() => {\n if (searchTerm) {\n const delayDebounce = setTimeout(() => {\n fetchOptions(searchTerm);\n }, DEBOUNCE_WAIT_250);\n return () => clearTimeout(delayDebounce);\n }\n }, [searchTerm]);\n\n // preload empty\n useEffect(() => {\n fetchOptions(\"\");\n }, []);\n\n const handleChange = (event, selected) => {\n if (!multiple) {\n const selectedValue = plainValue ? selected?.value || \"\" : selected;\n helpers.setValue(selectedValue);\n return;\n }\n\n const selectedItems = plainValue\n ? selected.map((s) => s.value)\n : selected.map((s) =>\n formatSelectedValue\n ? formatSelectedValue(s)\n : { id: parseInt(s.value), name: s.label }\n );\n\n helpers.setValue(selectedItems);\n };\n\n return (\n <Autocomplete\n options={options}\n value={value}\n onChange={handleChange}\n loading={loading}\n multiple={isMulti}\n fullWidth\n getOptionLabel={(option) => option.label || \"\"}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onInputChange={(e, newInput) => setSearchTerm(newInput)}\n renderInput={(params) => (\n <TextField\n {...params}\n placeholder={placeholder}\n variant=\"outlined\"\n error={Boolean(error)}\n helperText={error || \"\"}\n slotProps={{\n input: {\n ...params.InputProps,\n endAdornment: (\n <>\n {loading && <CircularProgress color=\"inherit\" size={20} />}\n {params.InputProps?.endAdornment}\n </>\n )\n },\n inputLabel: { shrink: false }\n }}\n sx={{\n \"& input::placeholder\": {\n color: \"#00000061\",\n opacity: 1\n }\n }}\n />\n )}\n renderOption={(props, option, { selected }) => (\n <li {...props}>\n {multiple && <Checkbox checked={selected} sx={{ mr: 1 }} />}\n {option.label}\n </li>\n )}\n />\n );\n};\n\nexport default MuiFormikAsyncAutocomplete;\n"],"names":["root","factory","exports","module","define","amd","this","DEBOUNCE_WAIT_250","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikAsyncAutocomplete","name","queryFunction","multiple","placeholder","plainValue","hiddenOptions","formatOption","item","id","toString","label","formatSelectedValue","queryParams","isMulti","field","meta","helpers","useField","options","setOptions","useState","loading","setLoading","searchTerm","setSearchTerm","error","touched","fetchOptions","async","input","results","normalized","filter","includes","map","err","console","useEffect","delayDebounce","setTimeout","clearTimeout","React","Autocomplete","onChange","handleChange","event","selected","selectedValue","setValue","selectedItems","s","parseInt","fullWidth","getOptionLabel","option","isOptionEqualToValue","onInputChange","e","newInput","renderInput","params","_params$InputProps","TextField","_extends","variant","Boolean","helperText","slotProps","_objectSpread","InputProps","endAdornment","CircularProgress","color","size","inputLabel","shrink","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wC,IAAAA,OAAiBC,WACvBxC,MAAOuC,IAAAA,OACPtC,QAASsC,IAAAA,MAAgBC,YAG3B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox-group.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","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};","/**\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 FormGroup,\n FormHelperText,\n FormLabel\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { INT_BASE } from \"../../../utils/constants\";\n\nconst MuiFormikCheckboxGroup = ({ name, label, options, ...props }) => {\n const [field, meta, helpers] = useField({ name });\n\n // Ensure field.value is an array\n const values = Array.isArray(field.value) ? field.value : [];\n\n const handleChange = (ev) => {\n const { value, checked } = ev.target;\n\n if (checked) {\n // Add the value to the array if it's checked\n helpers.setValue([...values, parseInt(value, INT_BASE)]);\n } else {\n // Remove the value from the array if it's unchecked\n helpers.setValue(\n values.filter((val) => val !== parseInt(value, INT_BASE))\n );\n }\n };\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n {label && <FormLabel id=\"checkbox-group-label\">{label}</FormLabel>}\n <FormGroup\n aria-labelledby=\"checkbox-group-label\"\n row\n name={name}\n {...props}\n >\n {options.map((op) => (\n <FormControlLabel\n key={`chk-box-${op.value}`}\n control={\n <Checkbox\n checked={values.includes(op.value)}\n onChange={handleChange}\n value={op.value}\n sx={{ \"& .MuiSvgIcon-root\": { fontSize: 24 } }}\n />\n }\n label={op.label}\n />\n ))}\n </FormGroup>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckboxGroup.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n options: PropTypes.array.isRequired\n};\n\nexport default MuiFormikCheckboxGroup;\n"],"names":["root","factory","exports","module","define","amd","this","INT_BASE","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikCheckboxGroup","name","label","options","props","field","meta","helpers","useField","values","Array","isArray","handleChange","ev","checked","target","setValue","parseInt","filter","val","FormControl","fullWidth","margin","error","touched","Boolean","FormLabel","id","FormGroup","row","map","op","FormControlLabel","control","Checkbox","includes","onChange","sx","fontSize","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/checkbox-group.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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,EAAAA,EAAAA,UAAS,CAAET,SAGpCU,EAASC,MAAMC,QAAQN,EAAMT,OAASS,EAAMT,MAAQ,GAEpDgB,EAAgBC,IACpB,MAAM,MAAEjB,EAAK,QAAEkB,GAAYD,EAAGE,OAE1BD,EAEFP,EAAQS,SAAS,IAAIP,EAAQQ,SAASrB,EAAO5B,EAAAA,MAG7CuC,EAAQS,SACNP,EAAOS,QAAQC,GAAQA,IAAQF,SAASrB,EAAO5B,EAAAA,MAEnD,EAGF,OACEoD,IAAAA,cAACC,EAAAA,YAAW,CACVC,WAAS,EACTC,OAAO,SACPC,MAAOlB,EAAKmB,SAAWC,QAAQpB,EAAKkB,QAEnCxB,GAASoB,IAAAA,cAACO,EAAAA,UAAS,CAACC,GAAG,wBAAwB5B,GAChDoB,IAAAA,cAACS,EAAAA,UAASC,IAAA,CACR,kBAAgB,uBAChBC,KAAG,EACHhC,KAAMA,GACFG,GAEHD,EAAQ+B,KAAKC,GACZb,IAAAA,cAACc,EAAAA,iBAAgB,CACfpD,IAAK,WAAWmD,EAAGrC,QACnBuC,QACEf,IAAAA,cAACgB,EAAAA,SAAQ,CACPtB,QAASL,EAAO4B,SAASJ,EAAGrC,OAC5B0C,SAAU1B,EACVhB,MAAOqC,EAAGrC,MACV2C,GAAI,CAAE,qBAAsB,CAAEC,SAAU,OAG5CxC,MAAOiC,EAAGjC,WAIfM,EAAKmB,SAAWnB,EAAKkB,OACpBJ,IAAAA,cAACqB,EAAAA,eAAc,KAAEnC,EAAKkB,OAEZ,EAIlB3B,EAAuB6C,UAAY,CACjC3C,KAAM4C,IAAAA,OAAiBC,WACvB5C,MAAO2C,IAAAA,OACP1C,QAAS0C,IAAAA,MAAgBC,YAG3B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/./src/utils/constants.js","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox-group.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","export const CENTS_FACTOR = 100n;\nexport const TWO_DECIMAL_PLACES = 2;\nexport const THREE_DECIMAL_PLACES = 3;\nexport const ONE_CENT = 1n;\nexport const ZERO_INT = 0;\n\nexport const CODE_200 = 200;\n\nexport const DEBOUNCE_WAIT_250 = 250;\nexport const DEBOUNCE_WAIT = 500;\n\nexport const NOTIFICATION_TIMEOUT = 2000;\nexport const DEFAULT_PER_PAGE = 10;\nexport const TWENTY_PER_PAGE = 20;\nexport const FIFTY_PER_PAGE = 50;\nexport const MAX_PER_PAGE = 100;\n\nexport const INT_BASE = 10;\n\nexport const ONE_HUNDRED = 100;\nexport const MILLISECONDS_IN_SECOND = 1000;\n\nexport const MILLISECONDS_TO_SECONDS = 1000;\n\nexport const BYTES_PER_MB = 1_048_576; // 1024 * 1024\n\nexport const MAX_INVENTORY_IMAGE_UPLOAD_SIZE = 512000;\nexport const MAX_INVENTORY_IMAGES_UPLOAD_QTY = 5;\nexport const ALLOWED_INVENTORY_IMAGE_FORMATS = [\"jpg\", \"jpeg\", \"png\"];\n\nexport const METAFIELD_TYPES_WITH_OPTIONS = [\n \"CheckBoxList\",\n \"ComboBox\",\n \"RadioButtonList\"\n];\n\nexport const METAFIELD_TYPES = [\n \"CheckBox\",\n ...METAFIELD_TYPES_WITH_OPTIONS,\n \"Text\",\n \"TextArea\",\n \"Quantity\",\n \"DateTime\",\n \"Time\"\n];\n\nexport const DISCOUNT_TYPES = {\n AMOUNT: \"Amount\",\n RATE: \"Rate\"\n};\n\nexport const RATE_FIELDS = {\n EARLY_BIRD: \"early_bird_rate\",\n STANDARD: \"standard_rate\",\n ONSITE: \"onsite_rate\"\n};\n\nexport const DECIMAL_DIGITS = 2;\n\nexport const FILE_UPLOAD_STATUS = {\n PENDING: \"PENDING\",\n DEADLINE_ALERT: \"DEADLINE ALERT\",\n DEADLINE_MISSED: \"DEADLINE MISSED\",\n COMPLETE: \"COMPLETE\"\n};\n\nexport const FILE_UPLOAD_STATUS_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"success.light\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"error\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"warning.light\",\n [FILE_UPLOAD_STATUS.PENDING]: \"default\"\n};\n\nexport const FILE_UPLOAD_STATUS_BKGR_COLOR = {\n [FILE_UPLOAD_STATUS.COMPLETE]: \"white\",\n [FILE_UPLOAD_STATUS.DEADLINE_MISSED]: \"#D32F2F0A\",\n [FILE_UPLOAD_STATUS.DEADLINE_ALERT]: \"#EF6C000A\",\n [FILE_UPLOAD_STATUS.PENDING]: \"white\"\n};","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","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};","/**\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 FormGroup,\n FormHelperText,\n FormLabel\n} from \"@mui/material\";\nimport { useField } from \"formik\";\nimport { INT_BASE } from \"../../../utils/constants\";\n\nconst MuiFormikCheckboxGroup = ({ name, label, options, ...props }) => {\n const [field, meta, helpers] = useField({ name });\n\n // Ensure field.value is an array\n const values = Array.isArray(field.value) ? field.value : [];\n\n const handleChange = (ev) => {\n const { value, checked } = ev.target;\n\n if (checked) {\n // Add the value to the array if it's checked\n helpers.setValue([...values, parseInt(value, INT_BASE)]);\n } else {\n // Remove the value from the array if it's unchecked\n helpers.setValue(\n values.filter((val) => val !== parseInt(value, INT_BASE))\n );\n }\n };\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n {label && <FormLabel id=\"checkbox-group-label\">{label}</FormLabel>}\n <FormGroup\n aria-labelledby=\"checkbox-group-label\"\n row\n name={name}\n {...props}\n >\n {options.map((op) => (\n <FormControlLabel\n key={`chk-box-${op.value}`}\n control={\n <Checkbox\n checked={values.includes(op.value)}\n onChange={handleChange}\n value={op.value}\n sx={{ \"& .MuiSvgIcon-root\": { fontSize: 24 } }}\n />\n }\n label={op.label}\n />\n ))}\n </FormGroup>\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckboxGroup.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n options: PropTypes.array.isRequired\n};\n\nexport default MuiFormikCheckboxGroup;\n"],"names":["root","factory","exports","module","define","amd","this","INT_BASE","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikCheckboxGroup","_ref","name","label","options","props","_objectWithoutProperties","_excluded","field","meta","helpers","useField","values","Array","isArray","handleChange","ev","checked","target","setValue","parseInt","filter","val","React","FormControl","fullWidth","margin","error","touched","Boolean","FormLabel","id","FormGroup","_extends","row","map","op","FormControlLabel","control","Checkbox","includes","onChange","sx","fontSize","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"components/mui/formik-inputs/checkbox.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,8BAA+B,GAAIH,GAChB,iBAAZC,QACdA,QAAQ,+BAAiCD,IAEzCD,EAAK,+BAAiCC,GACvC,CATD,CASGK,MAAM,I,mCCTTH,EAAOD,QAAUK,QAAQ,iC,WCAzBJ,EAAOD,QAAUK,QAAQ,iD,WCAzBJ,EAAOD,QAAUK,QAAQ,gB,WCAzBJ,EAAOD,QAAUK,QAAQ,S,WCAzBJ,EAAOD,QAAUK,QAAQ,a,WCAzBJ,EAAOD,QAAUK,QAAQ,Q,GCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaT,QAGrB,IAAIC,EAASK,EAAyBE,GAAY,CAGjDR,QAAS,CAAC,GAOX,OAHAW,EAAoBH,GAAUP,EAAQA,EAAOD,QAASO,GAG/CN,EAAOD,OACf,C,MCrBAO,EAAoBK,EAAKX,IACxB,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,IAAOb,EAAiB,QACxB,IAAM,EAEP,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,C,WCLdN,EAAoBQ,EAAI,CAACf,EAASiB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEnB,EAASkB,IAC5EE,OAAOC,eAAerB,EAASkB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFlB,EAAoBsB,EAAK7B,IACH,oBAAX8B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAerB,EAAS8B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,yKCkBxDC,EAAoB,IAA+B,IAA9B,KAAEC,EAAF,MAAQC,GAAsB,EAAZC,EAAY,SACvD,MAAOC,EAAOC,IAAQC,EAAAA,EAAAA,UAAS,CAAEL,OAAMM,KAAM,aAE7C,OACE,kBAAC,EAAAC,YAAD,CACEC,WAAS,EACTC,OAAO,SACPC,MAAON,EAAKO,SAAWC,QAAQR,EAAKM,QAEpC,kBAAC,EAAAG,iBAAD,CACEC,QACE,kBAAC,EAAAC,SAAD,KACEf,KAAMA,GACFG,EAFN,CAGEa,QAASb,EAAML,OAEXI,IAGRD,MAAOA,IAERG,EAAKO,SAAWP,EAAKM,OACpB,kBAAC,EAAAO,eAAD,KAAiBb,EAAKM,OAnB5B,EAyBFX,EAAkBmB,UAAY,CAC5BlB,KAAMmB,IAAAA,OAAiBC,WACvBnB,MAAOkB,IAAAA,OAAiBC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikCheckbox","name","label","props","field","meta","useField","type","FormControl","fullWidth","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","checked","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}
1
+ {"version":3,"file":"components/mui/formik-inputs/checkbox.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MAAO,WAE7DZ,OAAOC,eAAerB,EAAS,aAAc,CAAEgC,OAAO,GAAO,C,yKCkBxDC,EAAoBC,IAA+B,IAA9B,KAAEC,EAAI,MAAEC,GAAiBF,EAAPG,EAAKC,IAAAJ,EAAAK,GAChD,MAAOC,EAAOC,IAAQC,EAAAA,EAAAA,UAAS,CAAEP,OAAMQ,KAAM,aAE7C,OACEC,IAAAA,cAACC,EAAAA,YAAW,CACVC,WAAS,EACTC,OAAO,SACPC,MAAOP,EAAKQ,SAAWC,QAAQT,EAAKO,QAEpCJ,IAAAA,cAACO,EAAAA,iBAAgB,CACfC,QACER,IAAAA,cAACS,EAAAA,SAAQC,IAAA,CACPnB,KAAMA,GACFK,EAAK,CACTe,QAASf,EAAMR,OAEXK,IAGRD,MAAOA,IAERK,EAAKQ,SAAWR,EAAKO,OACpBJ,IAAAA,cAACY,EAAAA,eAAc,KAAEf,EAAKO,OAEZ,EAIlBf,EAAkBwB,UAAY,CAC5BtB,KAAMuB,IAAAA,OAAiBC,WACvBvB,MAAOsB,IAAAA,OAAiBC,YAG1B,U","sources":["webpack://openstack-uicore-foundation/webpack/universalModuleDefinition","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/extends\"","webpack://openstack-uicore-foundation/external commonjs \"@babel/runtime/helpers/objectWithoutProperties\"","webpack://openstack-uicore-foundation/external commonjs \"@mui/material\"","webpack://openstack-uicore-foundation/external commonjs \"formik\"","webpack://openstack-uicore-foundation/external commonjs \"prop-types\"","webpack://openstack-uicore-foundation/external commonjs \"react\"","webpack://openstack-uicore-foundation/webpack/bootstrap","webpack://openstack-uicore-foundation/webpack/runtime/compat get default export","webpack://openstack-uicore-foundation/webpack/runtime/define property getters","webpack://openstack-uicore-foundation/webpack/runtime/hasOwnProperty shorthand","webpack://openstack-uicore-foundation/webpack/runtime/make namespace object","webpack://openstack-uicore-foundation/./src/components/mui/formik-inputs/mui-formik-checkbox.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"openstack-uicore-foundation\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"openstack-uicore-foundation\"] = factory();\n\telse\n\t\troot[\"openstack-uicore-foundation\"] = factory();\n})(this, () => {\nreturn ","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/objectWithoutProperties\");","module.exports = require(\"@mui/material\");","module.exports = require(\"formik\");","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Copyright 2026 OpenStack Foundation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Checkbox,\n FormControl,\n FormControlLabel,\n FormHelperText\n} from \"@mui/material\";\nimport { useField } from \"formik\";\n\nconst MuiFormikCheckbox = ({ name, label, ...props }) => {\n const [field, meta] = useField({ name, type: \"checkbox\" });\n\n return (\n <FormControl\n fullWidth\n margin=\"normal\"\n error={meta.touched && Boolean(meta.error)}\n >\n <FormControlLabel\n control={\n <Checkbox\n name={name}\n {...field}\n checked={field.value}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n />\n }\n label={label}\n />\n {meta.touched && meta.error && (\n <FormHelperText>{meta.error}</FormHelperText>\n )}\n </FormControl>\n );\n};\n\nMuiFormikCheckbox.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n};\n\nexport default MuiFormikCheckbox;\n"],"names":["root","factory","exports","module","define","amd","this","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiFormikCheckbox","_ref","name","label","props","_objectWithoutProperties","_excluded","field","meta","useField","type","React","FormControl","fullWidth","margin","error","touched","Boolean","FormControlLabel","control","Checkbox","_extends","checked","FormHelperText","propTypes","PropTypes","isRequired"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={5097:(e,r,a)=>{a(1116),a(6842),a(9087),a(9558),a(2183)},3195:(e,r,a)=>{a.d(r,{AUTH_ERROR_ACCESS_TOKEN_EXPIRED:()=>o,AUTH_ERROR_LOCK_ACQUIRE_ERROR:()=>s,AUTH_ERROR_MISSING_AUTH_INFO:()=>t,AUTH_ERROR_MISSING_REFRESH_TOKEN:()=>n,AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR:()=>d,AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR:()=>i});const t="AUTH_ERROR_MISSING_AUTH_INFO",n="AUTH_ERROR_MISSING_REFRESH_TOKEN",o="AUTH_ERROR_ACCESS_TOKEN_EXPIRED",s="AUTH_ERROR_LOCK_ACQUIRE_ERROR",i="AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR",d="AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR"},2183:(e,r,a)=>{a.d(r,{getAccessToken:()=>R});var t=a(9558),n=a(5812),o=a.n(n);a(806);const s=require("browser-tabs-lock");var i=a.n(s);const d=require("js-cookie");var u=a.n(d),l=(a(8041),a(9891),a(5097),a(8853),a(3195));const Lock=new(i()),GET_TOKEN_SILENTLY_LOCK_KEY="openstackuicore.lock.getTokenSilently",c="code",p="authInfo",y="idToken",m=async(e,r)=>{if(e===c&&h()){if(!r)throw w(),Error(l.AUTH_ERROR_MISSING_REFRESH_TOKEN);let e=await(async(e,r=5,a=1e3)=>{for(let t=0;t<r;t++)try{return await e()}catch(e){if(!e.message||!e.message.startsWith(l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR)||t===r-1)throw e;const n=a*Math.pow(2,t);console.log(`retryWithBackoff retry ${t+1}/${r} in ${n}ms`),await new Promise((e=>setTimeout(e,n)))}})((()=>f(r))),{access_token:a,expires_in:t,refresh_token:n,id_token:o}=e;return void 0===n&&(n=null),g(a,t,n,o),a}throw w(),Error(l.AUTH_ERROR_ACCESS_TOKEN_EXPIRED)},_=async()=>{console.log("openstack-uicore-foundation::Security::methods::_getAccessToken");let e=E();if(!e)throw console.log("openstack-uicore-foundation::Security::methods::_getAccessToken AUTH_ERROR_MISSING_AUTH_INFO"),Error(l.AUTH_ERROR_MISSING_AUTH_INFO);let{accessToken:r,expiresIn:a,accessTokenUpdatedAt:t,refreshToken:n}=e,s=Q();const i=o()().unix();let d=i-t;return a-=60,console.log(`openstack-uicore-foundation::Security::methods::_getAccessToken now ${i} accessTokenUpdatedAt ${t} expiresIn ${a} timeElapsedSecs ${d}`),(d>=a||null==r)&&(console.log("openstack-uicore-foundation::Security::methods::_getAccessToken access token expired, refreshing it ..."),r=await m(s,n)),r},R=async()=>{if("undefined"!=typeof navigator&&navigator.locks)return await navigator.locks.request(GET_TOKEN_SILENTLY_LOCK_KEY,(async e=>(console.log("openstack-uicore-foundation::Security::methods::getAccessToken web lock api",e),await _())));if(!await(0,t.retryPromise)((()=>Lock.acquireLock(GET_TOKEN_SILENTLY_LOCK_KEY,6e3)),10))throw Error(l.AUTH_ERROR_LOCK_ACQUIRE_ERROR);try{return await _()}finally{await Lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY)}},f=async e=>{let r=T(),a=O();const n={grant_type:"refresh_token",client_id:encodeURI(a),refresh_token:e},o=new AbortController,s=setTimeout((()=>o.abort()),1e4);let i,d;try{i=await fetch(`${r}/oauth2/token`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n),signal:o.signal})}catch(e){throw console.log("refreshAccessToken network error:",e.message),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: ${e.message}`)}finally{clearTimeout(s)}if(!i.ok){if(console.log(`refreshAccessToken server error: ${i.status} - ${i.statusText}`),i.status>=500||408===i.status||429===i.status)throw Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: ${i.status} - ${i.statusText}`);throw(0,t.setSessionClearingState)(!0),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: ${i.status} - ${i.statusText}`)}try{d=await i.json()}catch(e){throw Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: invalid JSON response from IDP`)}let{access_token:u,refresh_token:c,expires_in:p,id_token:y}=d;if(!u)throw(0,t.setSessionClearingState)(!0),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: missing access_token in refresh response`);return{access_token:u,refresh_token:c,expires_in:p,id_token:y}},g=(e,r,a=null,n=null)=>{let o=E(),s={accessToken:e,expiresIn:r,accessTokenUpdatedAt:Math.floor(Date.now()/1e3)};null==a&&o&&(a=o.refreshToken),null==n&&o&&(n=o.idToken),a&&(s.refreshToken=a),n?(s[y]=n,u().set(y,n,{secure:!0,sameSite:"Lax"})):u().remove(y),(0,t.putOnLocalStorage)(p,JSON.stringify(s))},E=()=>{try{let e=(0,t.getFromLocalStorage)(p,!1);return e?JSON.parse(e):null}catch(e){return null}},w=()=>{"undefined"!=typeof window&&((0,t.removeFromLocalStorage)(p),u().remove(y))},O=()=>"undefined"!=typeof window?window.OAUTH2_CLIENT_ID:null,Q=()=>"undefined"!=typeof window&&window.OAUTH2_FLOW||"token id_token",h=()=>"undefined"==typeof window||new Boolean(window.OAUTH2_USE_REFRESH_TOKEN||!0),T=()=>"undefined"!=typeof window?window.IDP_BASE_URL:null},9087:(e,r,a)=>{a.d(r,{escapeFilterValue:()=>p,fetchErrorHandler:()=>l,fetchResponseHandler:()=>c});a(2462),a(1116),a(806);var t=a(8041),n=a.n(t),o=a(9236),s=a.n(o),i=a(6842),d=a.n(i);a(9558),a(5097),a(2183),a(3209);n().escapeQuerySpace=!1;const u=e=>r=>({type:e,payload:r}),l=(u("RESET_LOADING"),u("START_LOADING"),u("STOP_LOADING"),e=>{let r=e.status,a=e.statusText;switch(r){case 403:s().fire("ERROR",d().translate("errors.user_not_authz"),"warning");break;case 401:s().fire("ERROR",d().translate("errors.session_expired"),"error");break;case 412:s().fire("ERROR",a,"warning");case 500:s().fire("ERROR",d().translate("errors.server_error"),"error")}}),c=e=>{if(e.ok)return e.json();throw e},p=e=>e=(e=(e=(e=(e=String(e)).replace(/\\/g,"\\\\")).replace(/,/g,"\\,")).replace(/;/g,"\\;")).replace(/\+/g,"%2B")},3209:(e,r,a)=>{a.d(r,{Vg:()=>s,WU:()=>o,mH:()=>t,wU:()=>n});const t=250,n=500,o=10,s=100},8853:()=>{require("spark-md5"),require("crypto-js/sha256"),require("crypto-js/enc-base64url"),require("crypto-js/enc-hex"),"undefined"!=typeof window&&(window.crypto||window.msCrypto)},9558:(e,r,a)=>{a.d(r,{buildAPIBaseUrl:()=>t,getFromLocalStorage:()=>o,putOnLocalStorage:()=>n,removeFromLocalStorage:()=>s,retryPromise:()=>d,setSessionClearingState:()=>i});a(5812),a(8041);const t=e=>"undefined"!=typeof window?`${window.API_BASE_URL}${e}`:null``,n=(e,r)=>{"undefined"!=typeof window&&window.localStorage.setItem(e,r)},o=(e,r)=>{if("undefined"!=typeof window){let a=window.localStorage.getItem(e);return r&&(console.log(`getFromLocalStorage removing key ${e}`),s(e)),a}return null},s=e=>{"undefined"!=typeof window&&window.localStorage.removeItem(e)},i=e=>{"undefined"!=typeof window&&(window.clearing_session_state=e)},d=async(e,r=3)=>{for(let a=0;a<r;a++)if(await e())return!0;return!1}},3582:(e,r,a)=>{a.d(r,{queryCompanies:()=>m});var t=a(9087),n=a(2183),o=a(9558),s=a(7825),i=a.n(s),d=(a(5812),a(8041)),u=a.n(d),l=a(3209);u().escapeQuerySpace=!1;const c=async(e,r,a={})=>fetch((0,o.buildAPIBaseUrl)(e.toString()),a).then(t.fetchResponseHandler).then((e=>{"function"==typeof r&&r(e.data)})).catch((e=>(404===e.status&&r([]),e))).catch(t.fetchErrorHandler),p=async(e,r={})=>{let a;try{a=await(0,n.getAccessToken)()}catch(e){return Promise.reject(e)}return e.addQuery("access_token",a),fetch((0,o.buildAPIBaseUrl)(e.toString()),r).then(t.fetchResponseHandler).catch(t.fetchErrorHandler)},y=async(e,r,a={})=>{let t;try{t=await(0,n.getAccessToken)()}catch(e){return"function"==typeof r&&r(e),Promise.reject()}return e.addQuery("access_token",t),c(e,r,a)},m=(i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/members");n.addQuery("expand","tickets,rsvp,schedule_summit_events,all_affiliations"),n.addQuery("order","first_name,last_name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`full_name@@${e},first_name@@${e},last_name@@${e},email@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/attendees`);o.addQuery("order","first_name,last_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`full_name=@${r},email=@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/summits/all");n.addQuery("expand","tickets,rsvp,schedule_summit_events,all_affiliations"),n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()("/api/v1/"+(e?`summits/${e}/speakers`:"speakers"));o.addQuery("expand","member,registration_request"),o.addQuery("order","first_name,last_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`full_name@@${r},first_name@@${r},last_name@@${r},email@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=50)=>{let o=u()("/api/v1/"+(e?`summits/${e}/track-tag-groups/all/allowed-tags`:"tags"));e&&o.addQuery("expand","tag,track_tag_group"),o.addQuery("order","tag"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`tag@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=[],o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/tracks`);s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),(null==n?void 0:n.length)>0&&s.addQuery("filter[]",`not_id==${n.join("||")}`),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`name@@${r}`)),y(s,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/track-groups`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=!1,n,o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/events`+(a?"/published":""));s.addQuery("order","title"),s.addQuery("page",1),s.addQuery("per_page",o),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`title@@${r}`)),y(s,n)}),l.wU),i().debounce((async(e,r,a,n=null,o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/event-types`);s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`name@@${r}`)),n&&(n=(0,t.escapeFilterValue)(n),s.addQuery("filter[]",`class_name==${n}`)),y(s,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/groups");n.addQuery("order","title,code"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`title@@${e},code@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/companies");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU));i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/registration-companies`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/sponsors`);o.addQuery("expand","company,sponsorship,sponsorship.type"),o.addQuery("order","id"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`company_name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a)=>{const n=u()(`/api/v2/summits/${r}/sponsors`),o=(0,t.escapeFilterValue)(e);n.addQuery("fields","id,company.name,company.id"),n.addQuery("relations","company"),n.addQuery("expand","company"),o&&n.addQuery("filter",`company_name=@${o}`),p(n).then((e=>{const r=[...e.data].map((e=>({id:e.id,name:e.company.name})));a(r)})).catch(t.fetchErrorHandler)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/sponsors`);o.addQuery("expand","company,sponsorship,sponsorship.type"),o.addQuery("fields","id,company.name,sponsorship.type.name"),o.addQuery("relations","none,company.none,sponsorship.type.none"),o.addQuery("filter[]","badge_scans_count>0"),o.addQuery("order","+company_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`company_name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/access-level-types`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/organizations");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU);i().debounce((async(e,r={},a,n="v1",o=l.WU)=>{let s=u()(`/api/${n}/summits/${e}/ticket-types`);if(s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),r.hasOwnProperty("name")){const e=(0,t.escapeFilterValue)(r.name);e&&""!=e&&s.addQuery("filter[]",`name@@${e}`)}if(r.hasOwnProperty("audience")){const e=(0,t.escapeFilterValue)(r.audience);e&&""!=e&&s.addQuery("filter[]",`audience==${e}`)}y(s,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{const n=u()("/api/v1/sponsored-projects");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU,o=[])=>{let s=u()(`/api/v1/summits/${e}/promo-codes`);s.addQuery("order","code"),s.addQuery("page",1),s.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`code@@${r}`));for(const e of o)s.addQuery("filter[]",e);y(s,a)}),l.wU),i().debounce((async(e,r)=>{const a=u()("/api/v1/sponsorship-types");(e=(0,t.escapeFilterValue)(e))&&a.addQuery("filter",`name=@${e}`),y(a,r)}),l.wU),i().debounce((async(e,r,a)=>{const n=u()(`/api/v1/summits/${r}/sponsorships-types`);e=(0,t.escapeFilterValue)(e),n.addQuery("page",1),n.addQuery("per_page",l.Vg),n.addQuery("expand","type"),n.addQuery("order","+name"),e&&n.addQuery("filter",`name=@${e}`),y(n,a)}),l.wU)},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")},1858:e=>{e.exports=require("@mui/icons-material/ExpandMore")},1616:e=>{e.exports=require("@mui/material/Autocomplete")},6658:e=>{e.exports=require("@mui/material/CircularProgress")},7633:e=>{e.exports=require("@mui/material/TextField")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9891:e=>{e.exports=require("idtoken-verifier")},7825:e=>{e.exports=require("lodash")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},806:e=>{e.exports=require("superagent/lib/client")},9236:e=>{e.exports=require("sweetalert2")},8041:e=>{e.exports=require("urijs")}},r={};function a(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,a),o.exports}(()=>{a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r}})(),(()=>{a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}})(),(()=>{a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};a.r(t),a.d(t,{default:()=>$});var n=a(1116),o=a.n(n),s=a(6031),i=a.n(s),d=a(2462),u=a.n(d),l=a(2015),c=a.n(l),p=a(9825),y=a.n(p),m=a(7633),_=a.n(m),R=a(1616),f=a.n(R),g=a(6658),E=a.n(g),w=a(1858),O=a.n(w),Q=a(3294),h=a(3582),T=a(3209);const S=["id","name","placeholder","plainValue","isMulti","allowCreate"];function b(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function U(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?b(Object(a),!0).forEach((function(r){o()(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}const v=(0,R.createFilterOptions)(),k=e=>{let{id:r,name:a,placeholder:t,plainValue:n,isMulti:o=!1,allowCreate:s=!1}=e,d=u()(e,S);const[p,y,m]=(0,Q.useField)(a),[R,g]=(0,l.useState)([]),[w,b]=(0,l.useState)(!1),[k,$]=(0,l.useState)(""),[A,x]=(0,l.useState)(!1),[F,H]=(0,l.useState)(!1),{value:I}=p,N=y.touched&&y.error;(0,l.useEffect)((()=>{if(k){H(!0);const e=setTimeout((()=>{(async e=>{if(!e)return void g([]);H(!1),x(!0),await(0,h.queryCompanies)(e,(e=>{g((e=>e.map((e=>({value:e.id.toString(),label:e.name}))))(e)),x(!1)}))})(k)}),T.mH);return()=>clearTimeout(e)}H(!1)}),[k]);const V=(0,l.useMemo)((()=>{var e;return I?o?I.map((e=>{var r;return n?{value:e,label:e}:{value:null===(r=e.id)||void 0===r?void 0:r.toString(),label:e.name}})):n?{value:I,label:I}:{value:null===(e=I.id)||void 0===e?void 0:e.toString(),label:I.name}:o?[]:null}),[I,n,o]);return c().createElement(f(),i()({open:w,onOpen:()=>b(!0),onClose:()=>b(!1),options:R,value:V,getOptionLabel:e=>e.inputValue?e.inputValue:e.label||"",isOptionEqualToValue:(e,r)=>e.value===r.value,onInputChange:(e,r)=>{$(r)},filterOptions:(e,r)=>{const a=v(e,r);if(!s||A||F)return a;const{inputValue:t}=r,n=e.some((e=>t.toLowerCase()===e.label.toLowerCase()));return""===t||n||a.push({inputValue:t,value:null,label:`Create "${t}"`}),a},multiple:o,onChange:(e,r)=>{let a;a=!r||Array.isArray(r)&&0===r.length?o?[]:n?"":{id:"",name:""}:o?n?r.map((e=>e.label)):r.map((e=>({id:parseInt(e.value),name:e.label}))):n?r.inputValue||r.label:{id:r.inputValue?0:parseInt(r.value),name:r.inputValue||r.label},m.setValue(a)},loading:A,fullWidth:!0,popupIcon:c().createElement(O(),null),renderOption:(e,r)=>c().createElement("li",i()({},e,{key:r.value??`create-${r.inputValue}`}),r.label),renderInput:e=>{var r;return c().createElement(_(),i()({},e,{name:p.name,placeholder:t,variant:"outlined",error:Boolean(N),helperText:N||"",slotProps:U(U({},e.InputProps),{},{inputLabel:{shrink:!1},sx:{"& input::placeholder":{color:"#00000061",opacity:1}},endAdornment:c().createElement(c().Fragment,null,A&&c().createElement(E(),{color:"inherit",size:20}),null===(r=e.InputProps)||void 0===r?void 0:r.endAdornment)})}))}},d))};k.propTypes={id:y().string,name:y().string.isRequired,placeholder:y().string,plainValue:y().bool,isMulti:y().bool,allowCreate:y().bool};const $=k;return t})()));
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={5097:(e,r,a)=>{a(1116),a(6842),a(9087),a(9128),a(2183)},3195:(e,r,a)=>{a.d(r,{AUTH_ERROR_ACCESS_TOKEN_EXPIRED:()=>o,AUTH_ERROR_LOCK_ACQUIRE_ERROR:()=>s,AUTH_ERROR_MISSING_AUTH_INFO:()=>t,AUTH_ERROR_MISSING_REFRESH_TOKEN:()=>n,AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR:()=>d,AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR:()=>i});const t="AUTH_ERROR_MISSING_AUTH_INFO",n="AUTH_ERROR_MISSING_REFRESH_TOKEN",o="AUTH_ERROR_ACCESS_TOKEN_EXPIRED",s="AUTH_ERROR_LOCK_ACQUIRE_ERROR",i="AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR",d="AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR"},2183:(e,r,a)=>{a.d(r,{getAccessToken:()=>R});var t=a(9128),n=a(5812),o=a.n(n);a(806);const s=require("browser-tabs-lock");var i=a.n(s);const d=require("js-cookie");var u=a.n(d),l=(a(8041),a(9891),a(5097),a(8853),a(3195));const Lock=new(i()),GET_TOKEN_SILENTLY_LOCK_KEY="openstackuicore.lock.getTokenSilently",c="code",p="authInfo",y="idToken",m=async(e,r)=>{if(e===c&&h()){if(!r)throw w(),Error(l.AUTH_ERROR_MISSING_REFRESH_TOKEN);let e=await(async(e,r=5,a=1e3)=>{for(let t=0;t<r;t++)try{return await e()}catch(e){if(!e.message||!e.message.startsWith(l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR)||t===r-1)throw e;const n=a*Math.pow(2,t);console.log(`retryWithBackoff retry ${t+1}/${r} in ${n}ms`),await new Promise((e=>setTimeout(e,n)))}})((()=>f(r))),{access_token:a,expires_in:t,refresh_token:n,id_token:o}=e;return void 0===n&&(n=null),g(a,t,n,o),a}throw w(),Error(l.AUTH_ERROR_ACCESS_TOKEN_EXPIRED)},_=async()=>{console.log("openstack-uicore-foundation::Security::methods::_getAccessToken");let e=E();if(!e)throw console.log("openstack-uicore-foundation::Security::methods::_getAccessToken AUTH_ERROR_MISSING_AUTH_INFO"),Error(l.AUTH_ERROR_MISSING_AUTH_INFO);let{accessToken:r,expiresIn:a,accessTokenUpdatedAt:t,refreshToken:n}=e,s=Q();const i=o()().unix();let d=i-t;return a-=60,console.log(`openstack-uicore-foundation::Security::methods::_getAccessToken now ${i} accessTokenUpdatedAt ${t} expiresIn ${a} timeElapsedSecs ${d}`),(d>=a||null==r)&&(console.log("openstack-uicore-foundation::Security::methods::_getAccessToken access token expired, refreshing it ..."),r=await m(s,n)),r},R=async()=>{if("undefined"!=typeof navigator&&navigator.locks)return await navigator.locks.request(GET_TOKEN_SILENTLY_LOCK_KEY,(async e=>(console.log("openstack-uicore-foundation::Security::methods::getAccessToken web lock api",e),await _())));if(!await(0,t.retryPromise)((()=>Lock.acquireLock(GET_TOKEN_SILENTLY_LOCK_KEY,6e3)),10))throw Error(l.AUTH_ERROR_LOCK_ACQUIRE_ERROR);try{return await _()}finally{await Lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY)}},f=async e=>{let r=T(),a=O();const n={grant_type:"refresh_token",client_id:encodeURI(a),refresh_token:e},o=new AbortController,s=setTimeout((()=>o.abort()),1e4);let i,d;try{i=await fetch(`${r}/oauth2/token`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n),signal:o.signal})}catch(e){throw console.log("refreshAccessToken network error:",e.message),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: ${e.message}`)}finally{clearTimeout(s)}if(!i.ok){if(console.log(`refreshAccessToken server error: ${i.status} - ${i.statusText}`),i.status>=500||408===i.status||429===i.status)throw Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: ${i.status} - ${i.statusText}`);throw(0,t.setSessionClearingState)(!0),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: ${i.status} - ${i.statusText}`)}try{d=await i.json()}catch(e){throw Error(`${l.AUTH_ERROR_REFRESH_TOKEN_NETWORK_ERROR}: invalid JSON response from IDP`)}let{access_token:u,refresh_token:c,expires_in:p,id_token:y}=d;if(!u)throw(0,t.setSessionClearingState)(!0),Error(`${l.AUTH_ERROR_REFRESH_TOKEN_REQUEST_ERROR}: missing access_token in refresh response`);return{access_token:u,refresh_token:c,expires_in:p,id_token:y}},g=(e,r,a=null,n=null)=>{let o=E(),s={accessToken:e,expiresIn:r,accessTokenUpdatedAt:Math.floor(Date.now()/1e3)};null==a&&o&&(a=o.refreshToken),null==n&&o&&(n=o.idToken),a&&(s.refreshToken=a),n?(s[y]=n,u().set(y,n,{secure:!0,sameSite:"Lax"})):u().remove(y),(0,t.putOnLocalStorage)(p,JSON.stringify(s))},E=()=>{try{let e=(0,t.getFromLocalStorage)(p,!1);return e?JSON.parse(e):null}catch(e){return null}},w=()=>{"undefined"!=typeof window&&((0,t.removeFromLocalStorage)(p),u().remove(y))},O=()=>"undefined"!=typeof window?window.OAUTH2_CLIENT_ID:null,Q=()=>"undefined"!=typeof window&&window.OAUTH2_FLOW||"token id_token",h=()=>"undefined"==typeof window||new Boolean(window.OAUTH2_USE_REFRESH_TOKEN||!0),T=()=>"undefined"!=typeof window?window.IDP_BASE_URL:null},9087:(e,r,a)=>{a.d(r,{escapeFilterValue:()=>p,fetchErrorHandler:()=>l,fetchResponseHandler:()=>c});a(2462),a(1116),a(806);var t=a(8041),n=a.n(t),o=a(9236),s=a.n(o),i=a(6842),d=a.n(i);a(9128),a(5097),a(2183),a(3209);n().escapeQuerySpace=!1;const u=e=>r=>({type:e,payload:r}),l=(u("RESET_LOADING"),u("START_LOADING"),u("STOP_LOADING"),e=>{let r=e.status,a=e.statusText;switch(r){case 403:s().fire("ERROR",d().translate("errors.user_not_authz"),"warning");break;case 401:s().fire("ERROR",d().translate("errors.session_expired"),"error");break;case 412:s().fire("ERROR",a,"warning");case 500:s().fire("ERROR",d().translate("errors.server_error"),"error")}}),c=e=>{if(e.ok)return e.json();throw e},p=e=>e=(e=(e=(e=(e=String(e)).replace(/\\/g,"\\\\")).replace(/,/g,"\\,")).replace(/;/g,"\\;")).replace(/\+/g,"%2B")},3209:(e,r,a)=>{a.d(r,{Vg:()=>s,WU:()=>o,mH:()=>t,wU:()=>n});const t=250,n=500,o=10,s=100},8853:()=>{require("spark-md5"),require("crypto-js/sha256"),require("crypto-js/enc-base64url"),require("crypto-js/enc-hex"),"undefined"!=typeof window&&(window.crypto||window.msCrypto)},9128:(e,r,a)=>{a.d(r,{buildAPIBaseUrl:()=>t,getFromLocalStorage:()=>o,putOnLocalStorage:()=>n,removeFromLocalStorage:()=>s,retryPromise:()=>d,setSessionClearingState:()=>i});require("@sentry/react");a(5812),a(8041);const t=e=>"undefined"!=typeof window?`${window.API_BASE_URL}${e}`:null``,n=(e,r)=>{"undefined"!=typeof window&&window.localStorage.setItem(e,r)},o=(e,r)=>{if("undefined"!=typeof window){let a=window.localStorage.getItem(e);return r&&(console.log(`getFromLocalStorage removing key ${e}`),s(e)),a}return null},s=e=>{"undefined"!=typeof window&&window.localStorage.removeItem(e)},i=e=>{"undefined"!=typeof window&&(window.clearing_session_state=e)},d=async(e,r=3)=>{for(let a=0;a<r;a++)if(await e())return!0;return!1}},3582:(e,r,a)=>{a.d(r,{queryCompanies:()=>m});var t=a(9087),n=a(2183),o=a(9128),s=a(7825),i=a.n(s),d=(a(5812),a(8041)),u=a.n(d),l=a(3209);u().escapeQuerySpace=!1;const c=async(e,r,a={})=>fetch((0,o.buildAPIBaseUrl)(e.toString()),a).then(t.fetchResponseHandler).then((e=>{"function"==typeof r&&r(e.data)})).catch((e=>(404===e.status&&r([]),e))).catch(t.fetchErrorHandler),p=async(e,r={})=>{let a;try{a=await(0,n.getAccessToken)()}catch(e){return Promise.reject(e)}return e.addQuery("access_token",a),fetch((0,o.buildAPIBaseUrl)(e.toString()),r).then(t.fetchResponseHandler).catch(t.fetchErrorHandler)},y=async(e,r,a={})=>{let t;try{t=await(0,n.getAccessToken)()}catch(e){return"function"==typeof r&&r(e),Promise.reject()}return e.addQuery("access_token",t),c(e,r,a)},m=(i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/members");n.addQuery("expand","tickets,rsvp,schedule_summit_events,all_affiliations"),n.addQuery("order","first_name,last_name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`full_name@@${e},first_name@@${e},last_name@@${e},email@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/attendees`);o.addQuery("order","first_name,last_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`full_name=@${r},email=@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/summits/all");n.addQuery("expand","tickets,rsvp,schedule_summit_events,all_affiliations"),n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()("/api/v1/"+(e?`summits/${e}/speakers`:"speakers"));o.addQuery("expand","member,registration_request"),o.addQuery("order","first_name,last_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`full_name@@${r},first_name@@${r},last_name@@${r},email@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=50)=>{let o=u()("/api/v1/"+(e?`summits/${e}/track-tag-groups/all/allowed-tags`:"tags"));e&&o.addQuery("expand","tag,track_tag_group"),o.addQuery("order","tag"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`tag@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=[],o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/tracks`);s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),(null==n?void 0:n.length)>0&&s.addQuery("filter[]",`not_id==${n.join("||")}`),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`name@@${r}`)),y(s,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/track-groups`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=!1,n,o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/events`+(a?"/published":""));s.addQuery("order","title"),s.addQuery("page",1),s.addQuery("per_page",o),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`title@@${r}`)),y(s,n)}),l.wU),i().debounce((async(e,r,a,n=null,o=l.WU)=>{let s=u()(`/api/v1/summits/${e}/event-types`);s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`name@@${r}`)),n&&(n=(0,t.escapeFilterValue)(n),s.addQuery("filter[]",`class_name==${n}`)),y(s,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/groups");n.addQuery("order","title,code"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`title@@${e},code@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/companies");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU));i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/registration-companies`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/sponsors`);o.addQuery("expand","company,sponsorship,sponsorship.type"),o.addQuery("order","id"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`company_name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a)=>{const n=u()(`/api/v2/summits/${r}/sponsors`),o=(0,t.escapeFilterValue)(e);n.addQuery("fields","id,company.name,company.id"),n.addQuery("relations","company"),n.addQuery("expand","company"),o&&n.addQuery("filter",`company_name=@${o}`),p(n).then((e=>{const r=[...e.data].map((e=>({id:e.id,name:e.company.name})));a(r)})).catch(t.fetchErrorHandler)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/sponsors`);o.addQuery("expand","company,sponsorship,sponsorship.type"),o.addQuery("fields","id,company.name,sponsorship.type.name"),o.addQuery("relations","none,company.none,sponsorship.type.none"),o.addQuery("filter[]","badge_scans_count>0"),o.addQuery("order","+company_name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`company_name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a,n=l.WU)=>{let o=u()(`/api/v1/summits/${e}/access-level-types`);o.addQuery("order","name"),o.addQuery("page",1),o.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),o.addQuery("filter[]",`name@@${r}`)),y(o,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{let n=u()("/api/v1/organizations");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU);i().debounce((async(e,r={},a,n="v1",o=l.WU)=>{let s=u()(`/api/${n}/summits/${e}/ticket-types`);if(s.addQuery("order","name"),s.addQuery("page",1),s.addQuery("per_page",o),r.hasOwnProperty("name")){const e=(0,t.escapeFilterValue)(r.name);e&&""!=e&&s.addQuery("filter[]",`name@@${e}`)}if(r.hasOwnProperty("audience")){const e=(0,t.escapeFilterValue)(r.audience);e&&""!=e&&s.addQuery("filter[]",`audience==${e}`)}y(s,a)}),l.wU),i().debounce((async(e,r,a=l.WU)=>{const n=u()("/api/v1/sponsored-projects");n.addQuery("order","name"),n.addQuery("page",1),n.addQuery("per_page",a),e&&(e=(0,t.escapeFilterValue)(e),n.addQuery("filter[]",`name@@${e}`)),y(n,r)}),l.wU),i().debounce((async(e,r,a,n=l.WU,o=[])=>{let s=u()(`/api/v1/summits/${e}/promo-codes`);s.addQuery("order","code"),s.addQuery("page",1),s.addQuery("per_page",n),r&&(r=(0,t.escapeFilterValue)(r),s.addQuery("filter[]",`code@@${r}`));for(const e of o)s.addQuery("filter[]",e);y(s,a)}),l.wU),i().debounce((async(e,r)=>{const a=u()("/api/v1/sponsorship-types");(e=(0,t.escapeFilterValue)(e))&&a.addQuery("filter",`name=@${e}`),y(a,r)}),l.wU),i().debounce((async(e,r,a)=>{const n=u()(`/api/v1/summits/${r}/sponsorships-types`);e=(0,t.escapeFilterValue)(e),n.addQuery("page",1),n.addQuery("per_page",l.Vg),n.addQuery("expand","type"),n.addQuery("order","+name"),e&&n.addQuery("filter",`name=@${e}`),y(n,a)}),l.wU)},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")},1858:e=>{e.exports=require("@mui/icons-material/ExpandMore")},1616:e=>{e.exports=require("@mui/material/Autocomplete")},6658:e=>{e.exports=require("@mui/material/CircularProgress")},7633:e=>{e.exports=require("@mui/material/TextField")},3294:e=>{e.exports=require("formik")},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9891:e=>{e.exports=require("idtoken-verifier")},7825:e=>{e.exports=require("lodash")},5812:e=>{e.exports=require("moment-timezone")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},806:e=>{e.exports=require("superagent/lib/client")},9236:e=>{e.exports=require("sweetalert2")},8041:e=>{e.exports=require("urijs")}},r={};function a(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,a),o.exports}(()=>{a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r}})(),(()=>{a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}})(),(()=>{a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};a.r(t),a.d(t,{default:()=>$});var n=a(1116),o=a.n(n),s=a(6031),i=a.n(s),d=a(2462),u=a.n(d),l=a(2015),c=a.n(l),p=a(9825),y=a.n(p),m=a(7633),_=a.n(m),R=a(1616),f=a.n(R),g=a(6658),E=a.n(g),w=a(1858),O=a.n(w),Q=a(3294),h=a(3582),T=a(3209);const S=["id","name","placeholder","plainValue","isMulti","allowCreate"];function b(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function U(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?b(Object(a),!0).forEach((function(r){o()(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}const v=(0,R.createFilterOptions)(),k=e=>{let{id:r,name:a,placeholder:t,plainValue:n,isMulti:o=!1,allowCreate:s=!1}=e,d=u()(e,S);const[p,y,m]=(0,Q.useField)(a),[R,g]=(0,l.useState)([]),[w,b]=(0,l.useState)(!1),[k,$]=(0,l.useState)(""),[A,x]=(0,l.useState)(!1),[F,H]=(0,l.useState)(!1),{value:I}=p,N=y.touched&&y.error;(0,l.useEffect)((()=>{if(k){H(!0);const e=setTimeout((()=>{(async e=>{if(!e)return void g([]);H(!1),x(!0),await(0,h.queryCompanies)(e,(e=>{g((e=>e.map((e=>({value:e.id.toString(),label:e.name}))))(e)),x(!1)}))})(k)}),T.mH);return()=>clearTimeout(e)}H(!1)}),[k]);const V=(0,l.useMemo)((()=>{var e;return I?o?I.map((e=>{var r;return n?{value:e,label:e}:{value:null===(r=e.id)||void 0===r?void 0:r.toString(),label:e.name}})):n?{value:I,label:I}:{value:null===(e=I.id)||void 0===e?void 0:e.toString(),label:I.name}:o?[]:null}),[I,n,o]);return c().createElement(f(),i()({open:w,onOpen:()=>b(!0),onClose:()=>b(!1),options:R,value:V,getOptionLabel:e=>e.inputValue?e.inputValue:e.label||"",isOptionEqualToValue:(e,r)=>e.value===r.value,onInputChange:(e,r)=>{$(r)},filterOptions:(e,r)=>{const a=v(e,r);if(!s||A||F)return a;const{inputValue:t}=r,n=e.some((e=>t.toLowerCase()===e.label.toLowerCase()));return""===t||n||a.push({inputValue:t,value:null,label:`Create "${t}"`}),a},multiple:o,onChange:(e,r)=>{let a;a=!r||Array.isArray(r)&&0===r.length?o?[]:n?"":{id:"",name:""}:o?n?r.map((e=>e.label)):r.map((e=>({id:parseInt(e.value),name:e.label}))):n?r.inputValue||r.label:{id:r.inputValue?0:parseInt(r.value),name:r.inputValue||r.label},m.setValue(a)},loading:A,fullWidth:!0,popupIcon:c().createElement(O(),null),renderOption:(e,r)=>c().createElement("li",i()({},e,{key:r.value??`create-${r.inputValue}`}),r.label),renderInput:e=>{var r;return c().createElement(_(),i()({},e,{name:p.name,placeholder:t,variant:"outlined",error:Boolean(N),helperText:N||"",slotProps:U(U({},e.InputProps),{},{inputLabel:{shrink:!1},sx:{"& input::placeholder":{color:"#00000061",opacity:1}},endAdornment:c().createElement(c().Fragment,null,A&&c().createElement(E(),{color:"inherit",size:20}),null===(r=e.InputProps)||void 0===r?void 0:r.endAdornment)})}))}},d))};k.propTypes={id:y().string,name:y().string.isRequired,placeholder:y().string,plainValue:y().bool,isMulti:y().bool,allowCreate:y().bool};const $=k;return t})()));
2
2
  //# sourceMappingURL=company-input.js.map