@madie/madie-design-system 1.2.97 → 1.2.98
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.
- package/components/RichTextEditor/test.html +1 -0
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/madie-madie-design-system-1.2.96.tgz +0 -0
- package/madie-madie-design-system-1.2.98.tgz +0 -0
- package/package.json +1 -1
- package/storybook-static/1005.b918c97b.iframe.bundle.js +3 -0
- package/storybook-static/1005.b918c97b.iframe.bundle.js.LICENSE.txt +1 -0
- package/storybook-static/1005.b918c97b.iframe.bundle.js.map +1 -0
- package/storybook-static/1236.098e1cb2.iframe.bundle.js +2 -0
- package/storybook-static/1236.098e1cb2.iframe.bundle.js.map +1 -0
- package/storybook-static/139.ac2799e4.iframe.bundle.js +3 -0
- package/storybook-static/139.ac2799e4.iframe.bundle.js.LICENSE.txt +26 -0
- package/storybook-static/139.ac2799e4.iframe.bundle.js.map +1 -0
- package/storybook-static/1984.6b4e50ae.iframe.bundle.js +2 -0
- package/storybook-static/1984.6b4e50ae.iframe.bundle.js.map +1 -0
- package/storybook-static/2543.31cbf114.iframe.bundle.js +3 -0
- package/storybook-static/2543.31cbf114.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/2543.31cbf114.iframe.bundle.js.map +1 -0
- package/storybook-static/2862.571661b6.iframe.bundle.js +2 -0
- package/storybook-static/2862.571661b6.iframe.bundle.js.map +1 -0
- package/storybook-static/2902.1a427f9a.iframe.bundle.js +2 -0
- package/storybook-static/2902.1a427f9a.iframe.bundle.js.map +1 -0
- package/storybook-static/2984.7fe13753.iframe.bundle.js +2 -0
- package/storybook-static/2984.7fe13753.iframe.bundle.js.map +1 -0
- package/storybook-static/312.c4693e73.iframe.bundle.js +3 -0
- package/storybook-static/312.c4693e73.iframe.bundle.js.LICENSE.txt +17 -0
- package/storybook-static/312.c4693e73.iframe.bundle.js.map +1 -0
- package/storybook-static/3666.a04121c4.iframe.bundle.js +2 -0
- package/storybook-static/3666.a04121c4.iframe.bundle.js.map +1 -0
- package/storybook-static/4197.408fcd63.iframe.bundle.js +2 -0
- package/storybook-static/4197.408fcd63.iframe.bundle.js.map +1 -0
- package/storybook-static/442.81ce93b1.iframe.bundle.js +2 -0
- package/storybook-static/442.81ce93b1.iframe.bundle.js.map +1 -0
- package/storybook-static/5161.8a31ff0b.iframe.bundle.js +3 -0
- package/storybook-static/5161.8a31ff0b.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/5161.8a31ff0b.iframe.bundle.js.map +1 -0
- package/storybook-static/5238.c4a8e283.iframe.bundle.js +2 -0
- package/storybook-static/5238.c4a8e283.iframe.bundle.js.map +1 -0
- package/storybook-static/6294.8381ed88.iframe.bundle.js +2 -0
- package/storybook-static/6294.8381ed88.iframe.bundle.js.map +1 -0
- package/storybook-static/6728.48097498.iframe.bundle.js +185 -0
- package/storybook-static/6728.48097498.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/6728.48097498.iframe.bundle.js.map +1 -0
- package/storybook-static/7148.1912a15a.iframe.bundle.js +3 -0
- package/storybook-static/7148.1912a15a.iframe.bundle.js.LICENSE.txt +27 -0
- package/storybook-static/7148.1912a15a.iframe.bundle.js.map +1 -0
- package/storybook-static/7364.0bbb17e6.iframe.bundle.js +1 -0
- package/storybook-static/7368.edc8102e.iframe.bundle.js +3 -0
- package/storybook-static/7368.edc8102e.iframe.bundle.js.LICENSE.txt +7 -0
- package/storybook-static/7368.edc8102e.iframe.bundle.js.map +1 -0
- package/storybook-static/7608.5925882a.iframe.bundle.js +2 -0
- package/storybook-static/7608.5925882a.iframe.bundle.js.map +1 -0
- package/storybook-static/7648.5ac43950.iframe.bundle.js +2 -0
- package/storybook-static/7648.5ac43950.iframe.bundle.js.map +1 -0
- package/storybook-static/7674.58735d56.iframe.bundle.js +3 -0
- package/storybook-static/7674.58735d56.iframe.bundle.js.LICENSE.txt +21 -0
- package/storybook-static/7674.58735d56.iframe.bundle.js.map +1 -0
- package/storybook-static/8552.33b568fb.iframe.bundle.js +10 -0
- package/storybook-static/8552.33b568fb.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/8552.33b568fb.iframe.bundle.js.map +1 -0
- package/storybook-static/8609.28d04d51.iframe.bundle.js +3 -0
- package/storybook-static/8609.28d04d51.iframe.bundle.js.LICENSE.txt +11 -0
- package/storybook-static/8609.28d04d51.iframe.bundle.js.map +1 -0
- package/storybook-static/8936.ecc13c90.iframe.bundle.js +2 -0
- package/storybook-static/8936.ecc13c90.iframe.bundle.js.map +1 -0
- package/storybook-static/8980.64c0d3f1.iframe.bundle.js +2 -0
- package/storybook-static/8980.64c0d3f1.iframe.bundle.js.map +1 -0
- package/storybook-static/9269.8bb04a59.iframe.bundle.js +2 -0
- package/storybook-static/9269.8bb04a59.iframe.bundle.js.map +1 -0
- package/storybook-static/9425.89de0c76.iframe.bundle.js +2 -0
- package/storybook-static/9425.89de0c76.iframe.bundle.js.map +1 -0
- package/storybook-static/961.3d25a584.iframe.bundle.js +3 -0
- package/storybook-static/961.3d25a584.iframe.bundle.js.LICENSE.txt +17 -0
- package/storybook-static/961.3d25a584.iframe.bundle.js.map +1 -0
- package/storybook-static/9646.75583d09.iframe.bundle.js +2 -0
- package/storybook-static/9646.75583d09.iframe.bundle.js.map +1 -0
- package/storybook-static/9822.ff44564b.iframe.bundle.js +2 -0
- package/storybook-static/9822.ff44564b.iframe.bundle.js.map +1 -0
- package/storybook-static/9878.85fd7dab.iframe.bundle.js +95 -0
- package/storybook-static/9878.85fd7dab.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/9878.85fd7dab.iframe.bundle.js.map +1 -0
- package/storybook-static/Accordion-Accordion-stories.0c0bc5e9.iframe.bundle.js +2 -0
- package/storybook-static/Accordion-Accordion-stories.0c0bc5e9.iframe.bundle.js.map +1 -0
- package/storybook-static/Alert-Alert-stories.b50ecf37.iframe.bundle.js +2 -0
- package/storybook-static/Alert-Alert-stories.b50ecf37.iframe.bundle.js.map +1 -0
- package/storybook-static/AutoComplete-AutoComplete-stories.c19f10c7.iframe.bundle.js +2 -0
- package/storybook-static/AutoComplete-AutoComplete-stories.c19f10c7.iframe.bundle.js.map +1 -0
- package/storybook-static/Breadcrumb-Breadcrumb-stories.dc6d7542.iframe.bundle.js +2 -0
- package/storybook-static/Breadcrumb-Breadcrumb-stories.dc6d7542.iframe.bundle.js.map +1 -0
- package/storybook-static/Button-Button-stories.d72e6d80.iframe.bundle.js +2 -0
- package/storybook-static/Button-Button-stories.d72e6d80.iframe.bundle.js.map +1 -0
- package/storybook-static/CalloutBox-CalloutBox-stories.ba542174.iframe.bundle.js +2 -0
- package/storybook-static/CalloutBox-CalloutBox-stories.ba542174.iframe.bundle.js.map +1 -0
- package/storybook-static/Card-Card-stories.91f76acb.iframe.bundle.js +2 -0
- package/storybook-static/Card-Card-stories.91f76acb.iframe.bundle.js.map +1 -0
- package/storybook-static/DateField-DateField-stories.bbe464e1.iframe.bundle.js +2 -0
- package/storybook-static/DateField-DateField-stories.bbe464e1.iframe.bundle.js.map +1 -0
- package/storybook-static/DateTimeField-DateTimeField-stories.d00a350a.iframe.bundle.js +2 -0
- package/storybook-static/DateTimeField-DateTimeField-stories.d00a350a.iframe.bundle.js.map +1 -0
- package/storybook-static/Dropdown-Dropdown-stories.2c72dbc5.iframe.bundle.js +2 -0
- package/storybook-static/Dropdown-Dropdown-stories.2c72dbc5.iframe.bundle.js.map +1 -0
- package/storybook-static/Footer-Footer-stories.ec274928.iframe.bundle.js +2 -0
- package/storybook-static/Footer-Footer-stories.ec274928.iframe.bundle.js.map +1 -0
- package/storybook-static/Infotip-Infotip-stories.3a2e9151.iframe.bundle.js +2 -0
- package/storybook-static/Infotip-Infotip-stories.3a2e9151.iframe.bundle.js.map +1 -0
- package/storybook-static/Instant-Instant-stories.d4d3b917.iframe.bundle.js +2 -0
- package/storybook-static/Instant-Instant-stories.d4d3b917.iframe.bundle.js.map +1 -0
- package/storybook-static/Link-Link-stories.e4a40f96.iframe.bundle.js +2 -0
- package/storybook-static/Link-Link-stories.e4a40f96.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js +3 -0
- package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieConfirmDialog-MadieConfirmDialog-stories.1bec5e61.iframe.bundle.js +2 -0
- package/storybook-static/MadieConfirmDialog-MadieConfirmDialog-stories.1bec5e61.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieDeleteDialog-MadieDeleteDialog-stories.c55f9367.iframe.bundle.js +2 -0
- package/storybook-static/MadieDeleteDialog-MadieDeleteDialog-stories.c55f9367.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieDialog-MadieDialog-stories.d2bdc88c.iframe.bundle.js +2 -0
- package/storybook-static/MadieDialog-MadieDialog-stories.d2bdc88c.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieDiscardDialog-MadieDiscardDialog-stories.050cc027.iframe.bundle.js +2 -0
- package/storybook-static/MadieDiscardDialog-MadieDiscardDialog-stories.050cc027.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieSpinner-MadieSpinner-stories.82085813.iframe.bundle.js +2 -0
- package/storybook-static/MadieSpinner-MadieSpinner-stories.82085813.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieTooltip-MadieTooltip-stories.c7413617.iframe.bundle.js +2 -0
- package/storybook-static/MadieTooltip-MadieTooltip-stories.c7413617.iframe.bundle.js.map +1 -0
- package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b42bb7f1.iframe.bundle.js +2 -0
- package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b42bb7f1.iframe.bundle.js.map +1 -0
- package/storybook-static/Modal-Modal-stories.d5279c12.iframe.bundle.js +2 -0
- package/storybook-static/Modal-Modal-stories.d5279c12.iframe.bundle.js.map +1 -0
- package/storybook-static/NotificationBanner-NotificationBanner-stories.c9cd7214.iframe.bundle.js +2 -0
- package/storybook-static/NotificationBanner-NotificationBanner-stories.c9cd7214.iframe.bundle.js.map +1 -0
- package/storybook-static/NumberInput-NumberInput-stories.ed54df5a.iframe.bundle.js +2 -0
- package/storybook-static/NumberInput-NumberInput-stories.ed54df5a.iframe.bundle.js.map +1 -0
- package/storybook-static/Pagination-Pagination-stories.c699faa0.iframe.bundle.js +2 -0
- package/storybook-static/Pagination-Pagination-stories.c699faa0.iframe.bundle.js.map +1 -0
- package/storybook-static/Popover-Popover-stories.61ae1fb7.iframe.bundle.js +2 -0
- package/storybook-static/Popover-Popover-stories.61ae1fb7.iframe.bundle.js.map +1 -0
- package/storybook-static/RadioButton-RadioButton-stories.86bf3fd2.iframe.bundle.js +2 -0
- package/storybook-static/RadioButton-RadioButton-stories.86bf3fd2.iframe.bundle.js.map +1 -0
- package/storybook-static/ReadOnlyTextField-ReadOnlyTextField-stories.a599e67a.iframe.bundle.js +2 -0
- package/storybook-static/ReadOnlyTextField-ReadOnlyTextField-stories.a599e67a.iframe.bundle.js.map +1 -0
- package/storybook-static/RichTextEditor-RichTextEditor-stories.81d66b4b.iframe.bundle.js +2 -0
- package/storybook-static/RichTextEditor-RichTextEditor-stories.81d66b4b.iframe.bundle.js.map +1 -0
- package/storybook-static/Select-Select-stories.a3b5faa6.iframe.bundle.js +2 -0
- package/storybook-static/Select-Select-stories.a3b5faa6.iframe.bundle.js.map +1 -0
- package/storybook-static/Tabs-Tabs-stories.0689a934.iframe.bundle.js +2 -0
- package/storybook-static/Tabs-Tabs-stories.0689a934.iframe.bundle.js.map +1 -0
- package/storybook-static/TextArea-TextArea-stories.f862921e.iframe.bundle.js +2 -0
- package/storybook-static/TextArea-TextArea-stories.f862921e.iframe.bundle.js.map +1 -0
- package/storybook-static/TextField-TextField-stories.ed07af6e.iframe.bundle.js +2 -0
- package/storybook-static/TextField-TextField-stories.ed07af6e.iframe.bundle.js.map +1 -0
- package/storybook-static/TextInput-TextInput-stories.7043f852.iframe.bundle.js +2 -0
- package/storybook-static/TextInput-TextInput-stories.7043f852.iframe.bundle.js.map +1 -0
- package/storybook-static/TimeField-TimeField-stories.e69c0bc6.iframe.bundle.js +2 -0
- package/storybook-static/TimeField-TimeField-stories.e69c0bc6.iframe.bundle.js.map +1 -0
- package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js +3 -0
- package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js.map +1 -0
- package/storybook-static/Toggle-Toggle-stories.dabdd09d.iframe.bundle.js +2 -0
- package/storybook-static/Toggle-Toggle-stories.dabdd09d.iframe.bundle.js.map +1 -0
- package/storybook-static/Tooltip-Tooltip-stories.78bdceea.iframe.bundle.js +2 -0
- package/storybook-static/Tooltip-Tooltip-stories.78bdceea.iframe.bundle.js.map +1 -0
- package/storybook-static/TruncateText-TruncateText-stories.a5188e85.iframe.bundle.js +2 -0
- package/storybook-static/TruncateText-TruncateText-stories.a5188e85.iframe.bundle.js.map +1 -0
- package/storybook-static/iframe.html +513 -0
- package/storybook-static/index.json +1 -1
- package/storybook-static/main.f46f596f.iframe.bundle.js +2 -0
- package/storybook-static/main.f46f596f.iframe.bundle.js.map +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.acd6c2b7.iframe.bundle.js +2 -0
- package/storybook-static/runtime~main.acd6c2b7.iframe.bundle.js.map +1 -0
- package/storybook-static/sb-addons/backgrounds-7/manager-bundle.js +7 -7
- package/storybook-static/sb-addons/docs-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/knobs-4/register-bundle.js +11 -11
- package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
- package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
- package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
- package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
- package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
- package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
- package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
- package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
- package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
- package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
- package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
- package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
- package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
- package/storybook-static/static/media/arrow-both.a0959e13.svg +3 -0
- package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
- package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
- package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
- package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
- package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[7364],{"./node_modules/storybook/core/components/index.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{createCopyToClipboardFunction:()=>_storybook_core_components__WEBPACK_IMPORTED_MODULE_0__.zH});var _storybook_core_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/core/dist/components/index.js")}}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 7368.edc8102e.iframe.bundle.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[7368],{"./node_modules/@storybook/addon-knobs/dist/KnobManager.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _global=__webpack_require__("./node_modules/global/window.js"),_escapeHtml=_interopRequireDefault(__webpack_require__("./node_modules/escape-html/index.js")),_KnobStore=_interopRequireDefault(__webpack_require__("./node_modules/@storybook/addon-knobs/dist/KnobStore.js")),_shared=__webpack_require__("./node_modules/@storybook/addon-knobs/dist/shared.js"),_excluded=["value"];function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],excluded.indexOf(key)>=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var navigator=_global.navigator||_global.global.navigator;function escapeStrings(obj){if("string"==typeof obj)return(0,_escapeHtml.default)(obj);if(null==obj||"object"!==_typeof(obj))return obj;if(Array.isArray(obj)){var newArray=obj.map(escapeStrings);return newArray.some(function(newValue,key){return newValue!==obj[key]})?newArray:obj}return Object.entries(obj).reduce(function(acc,_ref){var _ref2=_slicedToArray(_ref,2),key=_ref2[0],oldValue=_ref2[1],newValue=escapeStrings(oldValue);return newValue===oldValue?acc:_objectSpread(_objectSpread({},acc),{},_defineProperty({},key,newValue))},obj)}exports.default=function(){return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(function KnobManager(){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,KnobManager),_defineProperty(this,"knobStore",new _KnobStore.default),_defineProperty(this,"options",{}),_defineProperty(this,"calling",!1)},[{key:"setChannel",value:function setChannel(channel){this.channel=channel}},{key:"setOptions",value:function setOptions(options){this.options=options}},{key:"getKnobValue",value:function getKnobValue(_ref3){var value=_ref3.value;return this.options.escapeHTML?escapeStrings(value):value}},{key:"knob",value:function knob(name,options){this._mayCallChannel();var knobName=options.groupId?"".concat(name,"_").concat(options.groupId):name,knobStore=this.knobStore,existingKnob=knobStore.get(knobName);if(existingKnob&&options.type===existingKnob.type&&navigator&&(!navigator.userAgent||!navigator.userAgent.includes("jsdom"))){options.value;var restOptions=_objectWithoutProperties(options,_excluded);return knobStore.update(knobName,restOptions),this.getKnobValue(existingKnob)}var knobInfo=_objectSpread(_objectSpread({},options),{},{name:knobName,label:name});return knobInfo.defaultValue=options.value,knobStore.set(knobName,knobInfo),this.getKnobValue(knobStore.get(knobName))}},{key:"_mayCallChannel",value:function _mayCallChannel(){var _this=this;if(this.channel&&!this.calling){this.calling=!0;var timestamp=+new Date;setTimeout(function(){_this.calling=!1,_this.channel&&_this.channel.emit(_shared.SET,{knobs:_this.knobStore.getAll(),timestamp})},400)}}}])}()},"./node_modules/@storybook/addon-knobs/dist/KnobStore.js"(__unused_webpack_module,exports){"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var callArg=function callArg(fn){return fn()},callAll=function callAll(fns){return fns.forEach(callArg)};exports.default=function(){return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(function KnobStore(){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,KnobStore),_defineProperty(this,"store",{}),_defineProperty(this,"callbacks",[])},[{key:"has",value:function has(key){return void 0!==this.store[key]}},{key:"set",value:function set(key,value){this.store[key]=_objectSpread(_objectSpread({},value),{},{used:!0,groupId:value.groupId}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(callAll,50,this.callbacks)}},{key:"update",value:function update(key,options){this.store[key]=_objectSpread(_objectSpread({},this.store[key]),options)}},{key:"get",value:function get(key){var knob=this.store[key];return knob&&(knob.used=!0),knob}},{key:"getAll",value:function getAll(){return this.store}},{key:"reset",value:function reset(){this.store={}}},{key:"markAllUnused",value:function markAllUnused(){var _this=this;Object.keys(this.store).forEach(function(knobName){_this.store[knobName].used=!1})}},{key:"subscribe",value:function subscribe(cb){this.callbacks.push(cb)}},{key:"unsubscribe",value:function unsubscribe(cb){var index=this.callbacks.indexOf(cb);this.callbacks.splice(index,1)}}])}()},"./node_modules/@storybook/addon-knobs/dist/index.js"(module,exports,__webpack_require__){"use strict";module=__webpack_require__.nmd(module),Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={knob:!0,text:!0,boolean:!0,number:!0,color:!0,object:!0,select:!0,radios:!0,array:!0,date:!0,button:!0,files:!0,optionsKnob:!0,withKnobs:!0};exports.array=function array(name,value){var separator=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",groupId=arguments.length>3?arguments[3]:void 0;return _registerKnobs.manager.knob(name,{type:"array",value,separator,groupId})},exports.boolean=function _boolean(name,value,groupId){return _registerKnobs.manager.knob(name,{type:"boolean",value,groupId})},exports.button=function button(name,callback,groupId){return _registerKnobs.manager.knob(name,{type:"button",callback,hideLabel:!0,groupId})},exports.color=function color(name,value,groupId){return _registerKnobs.manager.knob(name,{type:"color",value,groupId})},exports.date=function date(name){var value=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,groupId=arguments.length>2?arguments[2]:void 0,proxyValue=value?value.getTime():(new Date).getTime();return _registerKnobs.manager.knob(name,{type:"date",value:proxyValue,groupId})},exports.files=function files(name,accept){var value=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],groupId=arguments.length>3?arguments[3]:void 0;return _registerKnobs.manager.knob(name,{type:"files",accept,value,groupId})},exports.knob=function knob(name,options){return _registerKnobs.manager.knob(name,options)},exports.number=function number(name,value){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},groupId=arguments.length>3?arguments[3]:void 0,mergedOptions=options.range?_objectSpread(_objectSpread({},{min:0,max:10,step:1}),options):options,finalOptions=_objectSpread(_objectSpread({type:"number"},mergedOptions),{},{value,groupId});return _registerKnobs.manager.knob(name,finalOptions)},exports.object=function object(name,value,groupId){return _registerKnobs.manager.knob(name,{type:"object",value,groupId})},exports.optionsKnob=function optionsKnob(name,valuesObj,value,optionsObj,groupId){return _registerKnobs.manager.knob(name,{type:"options",options:valuesObj,value,optionsObj,groupId})},exports.radios=function radios(name,options,value,groupId){return _registerKnobs.manager.knob(name,{type:"radios",options,value,groupId})},exports.select=function select(name,options,value,groupId){return _registerKnobs.manager.knob(name,{type:"select",selectV2:!0,options,value,groupId})},exports.text=function text(name,value,groupId){return _registerKnobs.manager.knob(name,{type:"text",value,groupId})},exports.withKnobs=void 0;var _previewApi=__webpack_require__("storybook/internal/preview-api"),_shared=__webpack_require__("./node_modules/@storybook/addon-knobs/dist/shared.js");Object.keys(_shared).forEach(function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_shared[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _shared[key]}}))});var _registerKnobs=__webpack_require__("./node_modules/@storybook/addon-knobs/dist/registerKnobs.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var defaultOptions={escapeHTML:!0};exports.withKnobs=(0,_previewApi.makeDecorator)({name:"withKnobs",parameterName:"knobs",skipIfNoParametersOrOptions:!1,wrapper:function wrapper(getStory,context,_ref){var options=_ref.options,storyOptions=_ref.parameters||options,allOptions=_objectSpread(_objectSpread({},defaultOptions),storyOptions),channel=_previewApi.addons.getChannel();return _registerKnobs.manager.setChannel(channel),_registerKnobs.manager.setOptions(allOptions),channel.emit(_shared.SET_OPTIONS,allOptions),(0,_registerKnobs.registerKnobs)(),getStory(context)}});module&&module.hot},"./node_modules/@storybook/addon-knobs/dist/registerKnobs.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.manager=void 0,exports.registerKnobs=function registerKnobs(){(0,_previewApi.useEffect)(connectCallbacks,[])};var _previewApi=__webpack_require__("storybook/internal/preview-api"),_coreEvents=__webpack_require__("storybook/internal/core-events"),_debounce=_interopRequireDefault(__webpack_require__("./node_modules/lodash/debounce.js")),_KnobManager=_interopRequireDefault(__webpack_require__("./node_modules/@storybook/addon-knobs/dist/KnobManager.js")),_shared=__webpack_require__("./node_modules/@storybook/addon-knobs/dist/shared.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var manager=exports.manager=new _KnobManager.default,knobStore=manager.knobStore;function forceReRender(){_previewApi.addons.getChannel().emit(_coreEvents.FORCE_RE_RENDER)}function setPaneKnobs(){var timestamp=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+new Date;_previewApi.addons.getChannel().emit(_shared.SET,{knobs:knobStore.getAll(),timestamp})}var resetAndForceUpdate=function resetAndForceUpdate(){knobStore.markAllUnused(),forceReRender()},debouncedResetAndForceUpdate=(0,_debounce.default)(resetAndForceUpdate,325);function knobChanged(change){var name=change.name,value=change.value,knobOptions=knobStore.get(name);knobOptions.value=value,manager.options.disableForceUpdate||knobOptions.disableForceUpdate||(manager.options.disableDebounce||knobOptions.disableDebounce?resetAndForceUpdate():debouncedResetAndForceUpdate())}function knobClicked(clicked){var knobOptions=knobStore.get(clicked.name);knobOptions.callback&&!1!==knobOptions.callback()&&forceReRender()}function resetKnobs(){knobStore.reset(),setPaneKnobs(!1)}function resetKnobsAndForceReRender(){knobStore.reset(),forceReRender(),setPaneKnobs(!1)}function disconnectCallbacks(){knobStore.reset();var channel=_previewApi.addons.getChannel();channel.removeListener(_shared.CHANGE,knobChanged),channel.removeListener(_shared.CLICK,knobClicked),channel.removeListener(_coreEvents.STORY_CHANGED,resetKnobs),channel.removeListener(_shared.RESET,resetKnobsAndForceReRender),knobStore.unsubscribe(setPaneKnobs)}function connectCallbacks(){var channel=_previewApi.addons.getChannel();return channel.on(_shared.CHANGE,knobChanged),channel.on(_shared.CLICK,knobClicked),channel.on(_coreEvents.STORY_CHANGED,resetKnobs),channel.on(_shared.RESET,resetKnobsAndForceReRender),knobStore.subscribe(setPaneKnobs),disconnectCallbacks}},"./node_modules/@storybook/addon-knobs/dist/shared.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SET_OPTIONS=exports.SET=exports.RESET=exports.PARAM_KEY=exports.PANEL_ID=exports.CLICK=exports.CHANGE=exports.ADDON_ID=void 0;exports.PARAM_KEY="knobs";var ADDON_ID=exports.ADDON_ID="storybookjs/knobs";exports.PANEL_ID="".concat(ADDON_ID,"/panel"),exports.RESET="".concat(ADDON_ID,"/reset"),exports.SET="".concat(ADDON_ID,"/set"),exports.CHANGE="".concat(ADDON_ID,"/change"),exports.SET_OPTIONS="".concat(ADDON_ID,"/set-options"),exports.CLICK="".concat(ADDON_ID,"/click")},"./node_modules/escape-html/index.js"(module){"use strict";var matchHtmlRegExp=/["'&<>]/;module.exports=function escapeHtml(string){var escape,str=""+string,match=matchHtmlRegExp.exec(str);if(!match)return str;var html="",index=0,lastIndex=0;for(index=match.index;index<str.length;index++){switch(str.charCodeAt(index)){case 34:escape=""";break;case 38:escape="&";break;case 39:escape="'";break;case 60:escape="<";break;case 62:escape=">";break;default:continue}lastIndex!==index&&(html+=str.substring(lastIndex,index)),lastIndex=index+1,html+=escape}return lastIndex!==index?html+str.substring(lastIndex,index):html}},"./node_modules/global/window.js"(module,__unused_webpack_exports,__webpack_require__){var win;win="undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},module.exports=win},"./node_modules/lodash/_Symbol.js"(module,__unused_webpack_exports,__webpack_require__){var Symbol=__webpack_require__("./node_modules/lodash/_root.js").Symbol;module.exports=Symbol},"./node_modules/lodash/_baseGetTag.js"(module,__unused_webpack_exports,__webpack_require__){var Symbol=__webpack_require__("./node_modules/lodash/_Symbol.js"),getRawTag=__webpack_require__("./node_modules/lodash/_getRawTag.js"),objectToString=__webpack_require__("./node_modules/lodash/_objectToString.js"),symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function baseGetTag(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}},"./node_modules/lodash/_baseTrim.js"(module,__unused_webpack_exports,__webpack_require__){var trimmedEndIndex=__webpack_require__("./node_modules/lodash/_trimmedEndIndex.js"),reTrimStart=/^\s+/;module.exports=function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}},"./node_modules/lodash/_freeGlobal.js"(module,__unused_webpack_exports,__webpack_require__){var freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g;module.exports=freeGlobal},"./node_modules/lodash/_getRawTag.js"(module,__unused_webpack_exports,__webpack_require__){var Symbol=__webpack_require__("./node_modules/lodash/_Symbol.js"),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}},"./node_modules/lodash/_objectToString.js"(module){var nativeObjectToString=Object.prototype.toString;module.exports=function objectToString(value){return nativeObjectToString.call(value)}},"./node_modules/lodash/_root.js"(module,__unused_webpack_exports,__webpack_require__){var freeGlobal=__webpack_require__("./node_modules/lodash/_freeGlobal.js"),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},"./node_modules/lodash/_trimmedEndIndex.js"(module){var reWhitespace=/\s/;module.exports=function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index}},"./node_modules/lodash/debounce.js"(module,__unused_webpack_exports,__webpack_require__){var isObject=__webpack_require__("./node_modules/lodash/isObject.js"),now=__webpack_require__("./node_modules/lodash/now.js"),toNumber=__webpack_require__("./node_modules/lodash/toNumber.js"),nativeMax=Math.max,nativeMin=Math.min;module.exports=function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}},"./node_modules/lodash/isObject.js"(module){module.exports=function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},"./node_modules/lodash/isObjectLike.js"(module){module.exports=function isObjectLike(value){return null!=value&&"object"==typeof value}},"./node_modules/lodash/isSymbol.js"(module,__unused_webpack_exports,__webpack_require__){var baseGetTag=__webpack_require__("./node_modules/lodash/_baseGetTag.js"),isObjectLike=__webpack_require__("./node_modules/lodash/isObjectLike.js");module.exports=function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}},"./node_modules/lodash/now.js"(module,__unused_webpack_exports,__webpack_require__){var root=__webpack_require__("./node_modules/lodash/_root.js");module.exports=function(){return root.Date.now()}},"./node_modules/lodash/toNumber.js"(module,__unused_webpack_exports,__webpack_require__){var baseTrim=__webpack_require__("./node_modules/lodash/_baseTrim.js"),isObject=__webpack_require__("./node_modules/lodash/isObject.js"),isSymbol=__webpack_require__("./node_modules/lodash/isSymbol.js"),reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;module.exports=function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}},"./node_modules/prop-types/factoryWithThrowingShims.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";var ReactPropTypesSecret=__webpack_require__("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},"./node_modules/prop-types/index.js"(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js"(module){"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
3
|
+
//# sourceMappingURL=7368.edc8102e.iframe.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"7368.32b96aca.iframe.bundle.js","mappings":";AAEA","sources":["webpack://@madie/madie-design-system/./node_modules/@storybook/addon-knobs/dist/KnobManager.js","webpack://@madie/madie-design-system/./node_modules/@storybook/addon-knobs/dist/KnobStore.js","webpack://@madie/madie-design-system/./node_modules/@storybook/addon-knobs/dist/index.js","webpack://@madie/madie-design-system/./node_modules/@storybook/addon-knobs/dist/registerKnobs.js","webpack://@madie/madie-design-system/./node_modules/@storybook/addon-knobs/dist/shared.js","webpack://@madie/madie-design-system/./node_modules/escape-html/index.js","webpack://@madie/madie-design-system/./node_modules/global/window.js","webpack://@madie/madie-design-system/./node_modules/lodash/_Symbol.js","webpack://@madie/madie-design-system/./node_modules/lodash/_baseGetTag.js","webpack://@madie/madie-design-system/./node_modules/lodash/_baseTrim.js","webpack://@madie/madie-design-system/./node_modules/lodash/_freeGlobal.js","webpack://@madie/madie-design-system/./node_modules/lodash/_getRawTag.js","webpack://@madie/madie-design-system/./node_modules/lodash/_objectToString.js","webpack://@madie/madie-design-system/./node_modules/lodash/_root.js","webpack://@madie/madie-design-system/./node_modules/lodash/_trimmedEndIndex.js","webpack://@madie/madie-design-system/./node_modules/lodash/debounce.js","webpack://@madie/madie-design-system/./node_modules/lodash/isObject.js","webpack://@madie/madie-design-system/./node_modules/lodash/isObjectLike.js","webpack://@madie/madie-design-system/./node_modules/lodash/isSymbol.js","webpack://@madie/madie-design-system/./node_modules/lodash/now.js","webpack://@madie/madie-design-system/./node_modules/lodash/toNumber.js","webpack://@madie/madie-design-system/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@madie/madie-design-system/./node_modules/prop-types/index.js","webpack://@madie/madie-design-system/./node_modules/prop-types/lib/ReactPropTypesSecret.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _global = require(\"global\");\nvar _escapeHtml = _interopRequireDefault(require(\"escape-html\"));\nvar _KnobStore = _interopRequireDefault(require(\"./KnobStore\"));\nvar _shared = require(\"./shared\");\nvar _excluded = [\"value\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); } /* eslint no-underscore-dangle: 0 */ // navigator exists in Jest but not the browser. global exists in the browser but not Jest\nvar navigator = _global.navigator || _global.global.navigator;\n\n// This is used by _mayCallChannel to determine how long to wait to before triggering a panel update\nvar PANEL_UPDATE_INTERVAL = 400;\nfunction escapeStrings(obj) {\n if (typeof obj === 'string') {\n return (0, _escapeHtml[\"default\"])(obj);\n }\n if (obj == null || _typeof(obj) !== 'object') {\n return obj;\n }\n if (Array.isArray(obj)) {\n var newArray = obj.map(escapeStrings);\n var didChange = newArray.some(function (newValue, key) {\n return newValue !== obj[key];\n });\n return didChange ? newArray : obj;\n }\n return Object.entries(obj).reduce(function (acc, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n oldValue = _ref2[1];\n var newValue = escapeStrings(oldValue);\n return newValue === oldValue ? acc : _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, newValue));\n }, obj);\n}\nvar KnobManager = exports[\"default\"] = /*#__PURE__*/function () {\n function KnobManager() {\n _classCallCheck(this, KnobManager);\n _defineProperty(this, \"knobStore\", new _KnobStore[\"default\"]());\n _defineProperty(this, \"options\", {});\n _defineProperty(this, \"calling\", false);\n }\n return _createClass(KnobManager, [{\n key: \"setChannel\",\n value: function setChannel(channel) {\n this.channel = channel;\n }\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n }, {\n key: \"getKnobValue\",\n value: function getKnobValue(_ref3) {\n var value = _ref3.value;\n return this.options.escapeHTML ? escapeStrings(value) : value;\n }\n }, {\n key: \"knob\",\n value: function knob(name, options) {\n this._mayCallChannel();\n var knobName = options.groupId ? \"\".concat(name, \"_\").concat(options.groupId) : name;\n var knobStore = this.knobStore;\n var existingKnob = knobStore.get(knobName);\n\n // We need to return the value set by the knob editor via this.\n // Normally the knobs are reset and so re-use is safe as long as the types match\n // when in storyshots, though the change event isn't called and so the knobs aren't reset, making this code fail\n // so always create a new knob when in storyshots\n if (existingKnob && options.type === existingKnob.type && navigator && (\n // userAgent is not set in react-native\n !navigator.userAgent || !navigator.userAgent.includes('jsdom'))) {\n var value = options.value,\n restOptions = _objectWithoutProperties(options, _excluded);\n knobStore.update(knobName, restOptions);\n return this.getKnobValue(existingKnob);\n }\n var knobInfo = _objectSpread(_objectSpread({}, options), {}, {\n name: knobName,\n label: name\n });\n knobInfo.defaultValue = options.value;\n knobStore.set(knobName, knobInfo);\n return this.getKnobValue(knobStore.get(knobName));\n }\n }, {\n key: \"_mayCallChannel\",\n value: function _mayCallChannel() {\n var _this = this;\n // Re rendering of the story may cause changes to the knobStore. Some new knobs maybe added and\n // Some knobs may go unused. So we need to update the panel accordingly. For example remove the\n // unused knobs from the panel. This function sends the `setKnobs` message to the channel\n // triggering a panel re-render.\n\n if (!this.channel) {\n // to prevent call to undefined channel and therefore throwing TypeError\n return;\n }\n if (this.calling) {\n // If a call to channel has already registered ignore this call.\n // Once the previous call is completed all the changes to knobStore including the one that\n // triggered this, will be added to the panel.\n // This avoids emitting to the channel within very short periods of time.\n return;\n }\n this.calling = true;\n var timestamp = +new Date();\n setTimeout(function () {\n _this.calling = false;\n // emit to the channel and trigger a panel re-render\n if (_this.channel) _this.channel.emit(_shared.SET, {\n knobs: _this.knobStore.getAll(),\n timestamp: timestamp\n });\n }, PANEL_UPDATE_INTERVAL);\n }\n }]);\n}();","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar callArg = function callArg(fn) {\n return fn();\n};\nvar callAll = function callAll(fns) {\n return fns.forEach(callArg);\n};\nvar KnobStore = exports[\"default\"] = /*#__PURE__*/function () {\n function KnobStore() {\n _classCallCheck(this, KnobStore);\n _defineProperty(this, \"store\", {});\n _defineProperty(this, \"callbacks\", []);\n }\n return _createClass(KnobStore, [{\n key: \"has\",\n value: function has(key) {\n return this.store[key] !== undefined;\n }\n }, {\n key: \"set\",\n value: function set(key, value) {\n this.store[key] = _objectSpread(_objectSpread({}, value), {}, {\n used: true,\n groupId: value.groupId\n });\n\n // debounce the execution of the callbacks for 50 milliseconds\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(callAll, 50, this.callbacks);\n }\n }, {\n key: \"update\",\n value: function update(key, options) {\n this.store[key] = _objectSpread(_objectSpread({}, this.store[key]), options);\n }\n }, {\n key: \"get\",\n value: function get(key) {\n var knob = this.store[key];\n if (knob) {\n knob.used = true;\n }\n return knob;\n }\n }, {\n key: \"getAll\",\n value: function getAll() {\n return this.store;\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this.store = {};\n }\n }, {\n key: \"markAllUnused\",\n value: function markAllUnused() {\n var _this = this;\n Object.keys(this.store).forEach(function (knobName) {\n _this.store[knobName].used = false;\n });\n }\n }, {\n key: \"subscribe\",\n value: function subscribe(cb) {\n this.callbacks.push(cb);\n }\n }, {\n key: \"unsubscribe\",\n value: function unsubscribe(cb) {\n var index = this.callbacks.indexOf(cb);\n this.callbacks.splice(index, 1);\n }\n }]);\n}();","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n knob: true,\n text: true,\n \"boolean\": true,\n number: true,\n color: true,\n object: true,\n select: true,\n radios: true,\n array: true,\n date: true,\n button: true,\n files: true,\n optionsKnob: true,\n withKnobs: true\n};\nexports.array = array;\nexports[\"boolean\"] = _boolean;\nexports.button = button;\nexports.color = color;\nexports.date = date;\nexports.files = files;\nexports.knob = knob;\nexports.number = number;\nexports.object = object;\nexports.optionsKnob = optionsKnob;\nexports.radios = radios;\nexports.select = select;\nexports.text = text;\nexports.withKnobs = void 0;\nvar _previewApi = require(\"@storybook/preview-api\");\nvar _shared = require(\"./shared\");\nObject.keys(_shared).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _shared[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _shared[key];\n }\n });\n});\nvar _registerKnobs = require(\"./registerKnobs\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction knob(name, options) {\n return _registerKnobs.manager.knob(name, options);\n}\nfunction text(name, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'text',\n value: value,\n groupId: groupId\n });\n}\nfunction _boolean(name, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'boolean',\n value: value,\n groupId: groupId\n });\n}\nfunction number(name, value) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var groupId = arguments.length > 3 ? arguments[3] : undefined;\n var rangeDefaults = {\n min: 0,\n max: 10,\n step: 1\n };\n var mergedOptions = options.range ? _objectSpread(_objectSpread({}, rangeDefaults), options) : options;\n var finalOptions = _objectSpread(_objectSpread({\n type: 'number'\n }, mergedOptions), {}, {\n value: value,\n groupId: groupId\n });\n return _registerKnobs.manager.knob(name, finalOptions);\n}\nfunction color(name, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'color',\n value: value,\n groupId: groupId\n });\n}\nfunction object(name, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'object',\n value: value,\n groupId: groupId\n });\n}\nfunction select(name, options, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'select',\n selectV2: true,\n options: options,\n value: value,\n groupId: groupId\n });\n}\nfunction radios(name, options, value, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'radios',\n options: options,\n value: value,\n groupId: groupId\n });\n}\nfunction array(name, value) {\n var separator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ',';\n var groupId = arguments.length > 3 ? arguments[3] : undefined;\n return _registerKnobs.manager.knob(name, {\n type: 'array',\n value: value,\n separator: separator,\n groupId: groupId\n });\n}\nfunction date(name) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date();\n var groupId = arguments.length > 2 ? arguments[2] : undefined;\n var proxyValue = value ? value.getTime() : new Date().getTime();\n return _registerKnobs.manager.knob(name, {\n type: 'date',\n value: proxyValue,\n groupId: groupId\n });\n}\nfunction button(name, callback, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'button',\n callback: callback,\n hideLabel: true,\n groupId: groupId\n });\n}\nfunction files(name, accept) {\n var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n var groupId = arguments.length > 3 ? arguments[3] : undefined;\n return _registerKnobs.manager.knob(name, {\n type: 'files',\n accept: accept,\n value: value,\n groupId: groupId\n });\n}\nfunction optionsKnob(name, valuesObj, value, optionsObj, groupId) {\n return _registerKnobs.manager.knob(name, {\n type: 'options',\n options: valuesObj,\n value: value,\n optionsObj: optionsObj,\n groupId: groupId\n });\n}\nvar defaultOptions = {\n escapeHTML: true\n};\nvar withKnobs = exports.withKnobs = (0, _previewApi.makeDecorator)({\n name: 'withKnobs',\n parameterName: 'knobs',\n skipIfNoParametersOrOptions: false,\n wrapper: function wrapper(getStory, context, _ref) {\n var options = _ref.options,\n parameters = _ref.parameters;\n var storyOptions = parameters || options;\n var allOptions = _objectSpread(_objectSpread({}, defaultOptions), storyOptions);\n var channel = _previewApi.addons.getChannel();\n _registerKnobs.manager.setChannel(channel);\n _registerKnobs.manager.setOptions(allOptions);\n channel.emit(_shared.SET_OPTIONS, allOptions);\n (0, _registerKnobs.registerKnobs)();\n return getStory(context);\n }\n});\nif (module && module.hot && module.hot.decline) {\n module.hot.decline();\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.manager = void 0;\nexports.registerKnobs = registerKnobs;\nvar _previewApi = require(\"@storybook/preview-api\");\nvar _coreEvents = require(\"@storybook/core-events\");\nvar _debounce = _interopRequireDefault(require(\"lodash/debounce\"));\nvar _KnobManager = _interopRequireDefault(require(\"./KnobManager\"));\nvar _shared = require(\"./shared\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar manager = exports.manager = new _KnobManager[\"default\"]();\nvar knobStore = manager.knobStore;\nvar COMPONENT_FORCE_RENDER_DEBOUNCE_DELAY_MS = 325;\nfunction forceReRender() {\n _previewApi.addons.getChannel().emit(_coreEvents.FORCE_RE_RENDER);\n}\nfunction setPaneKnobs() {\n var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();\n var channel = _previewApi.addons.getChannel();\n channel.emit(_shared.SET, {\n knobs: knobStore.getAll(),\n timestamp: timestamp\n });\n}\nvar resetAndForceUpdate = function resetAndForceUpdate() {\n knobStore.markAllUnused();\n forceReRender();\n};\n\n// Increase performance by reducing how frequently the story is recreated during knob changes\nvar debouncedResetAndForceUpdate = (0, _debounce[\"default\"])(resetAndForceUpdate, COMPONENT_FORCE_RENDER_DEBOUNCE_DELAY_MS);\nfunction knobChanged(change) {\n var name = change.name;\n var value = change.value; // Update the related knob and it's value.\n var knobOptions = knobStore.get(name);\n knobOptions.value = value;\n if (!manager.options.disableForceUpdate && !knobOptions.disableForceUpdate) {\n if (!manager.options.disableDebounce && !knobOptions.disableDebounce) {\n debouncedResetAndForceUpdate();\n } else {\n resetAndForceUpdate();\n }\n }\n}\nfunction knobClicked(clicked) {\n var knobOptions = knobStore.get(clicked.name);\n if (knobOptions.callback && knobOptions.callback() !== false) {\n forceReRender();\n }\n}\nfunction resetKnobs() {\n knobStore.reset();\n setPaneKnobs(false);\n}\nfunction resetKnobsAndForceReRender() {\n knobStore.reset();\n forceReRender();\n setPaneKnobs(false);\n}\nfunction disconnectCallbacks() {\n knobStore.reset();\n var channel = _previewApi.addons.getChannel();\n channel.removeListener(_shared.CHANGE, knobChanged);\n channel.removeListener(_shared.CLICK, knobClicked);\n channel.removeListener(_coreEvents.STORY_CHANGED, resetKnobs);\n channel.removeListener(_shared.RESET, resetKnobsAndForceReRender);\n knobStore.unsubscribe(setPaneKnobs);\n}\nfunction connectCallbacks() {\n var channel = _previewApi.addons.getChannel();\n channel.on(_shared.CHANGE, knobChanged);\n channel.on(_shared.CLICK, knobClicked);\n channel.on(_coreEvents.STORY_CHANGED, resetKnobs);\n channel.on(_shared.RESET, resetKnobsAndForceReRender);\n knobStore.subscribe(setPaneKnobs);\n return disconnectCallbacks;\n}\nfunction registerKnobs() {\n (0, _previewApi.useEffect)(connectCallbacks, []);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SET_OPTIONS = exports.SET = exports.RESET = exports.PARAM_KEY = exports.PANEL_ID = exports.CLICK = exports.CHANGE = exports.ADDON_ID = void 0;\n// addons, panels and events get unique names using a prefix\nvar PARAM_KEY = exports.PARAM_KEY = 'knobs';\nvar ADDON_ID = exports.ADDON_ID = 'storybookjs/knobs';\nvar PANEL_ID = exports.PANEL_ID = \"\".concat(ADDON_ID, \"/panel\");\nvar RESET = exports.RESET = \"\".concat(ADDON_ID, \"/reset\");\nvar SET = exports.SET = \"\".concat(ADDON_ID, \"/set\");\nvar CHANGE = exports.CHANGE = \"\".concat(ADDON_ID, \"/change\");\nvar SET_OPTIONS = exports.SET_OPTIONS = \"\".concat(ADDON_ID, \"/set-options\");\nvar CLICK = exports.CLICK = \"\".concat(ADDON_ID, \"/click\");","/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '"';\n break;\n case 38: // &\n escape = '&';\n break;\n case 39: // '\n escape = ''';\n break;\n case 60: // <\n escape = '<';\n break;\n case 62: // >\n escape = '>';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\n","var win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\"){\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[7608],{"./node_modules/@babel/runtime/helpers/interopRequireDefault.js"(module){module.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},module.exports.__esModule=!0,module.exports.default=module.exports},"./node_modules/@mui/icons-material/Close.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},"./node_modules/@mui/icons-material/Error.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},"./node_modules/@mui/icons-material/utils/createSvgIcon.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _utils.createSvgIcon}});var _utils=__webpack_require__("./node_modules/@mui/material/utils/index.js")},"./node_modules/clsx/dist/clsx.js"(module){function r(e){var o,t,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=" "),f+=t)}else for(t in e)e[t]&&(f&&(f+=" "),f+=t);return f}function e(){for(var e,o,t=0,f="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=" "),f+=o);return f}module.exports=e,module.exports.clsx=e},"./node_modules/react-draggable/build/cjs/Draggable.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";var mod,process=__webpack_require__("./node_modules/process/browser.js"),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},__copyProps(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),Draggable_exports={};((target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})})(Draggable_exports,{DraggableCore:()=>DraggableCore,default:()=>Draggable}),module.exports=(mod=Draggable_exports,__copyProps(__defProp({},"__esModule",{value:!0}),mod));var React2=__toESM(__webpack_require__("./node_modules/react/index.js")),import_prop_types2=__toESM(__webpack_require__("./node_modules/prop-types/index.js")),import_react_dom2=__toESM(__webpack_require__("./node_modules/react-dom/index.js")),import_clsx=__webpack_require__("./node_modules/clsx/dist/clsx.js");function findInArray(array,callback){for(let i=0,length=array.length;i<length;i++)if(callback.apply(callback,[array[i],i,array]))return array[i]}function isFunction(func){return"function"==typeof func||"[object Function]"===Object.prototype.toString.call(func)}function isNum(num){return"number"==typeof num&&!isNaN(num)}function int(a){return parseInt(a,10)}function dontSetMe(props,propName,componentName){if(props[propName])return new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`)}var prefixes=["Moz","Webkit","O","ms"];function browserPrefixToKey(prop,prefix){return prefix?`${prefix}${function kebabToTitleCase(str){let out="",shouldCapitalize=!0;for(let i=0;i<str.length;i++)shouldCapitalize?(out+=str[i].toUpperCase(),shouldCapitalize=!1):"-"===str[i]?shouldCapitalize=!0:out+=str[i];return out}(prop)}`:prop}var getPrefix_default=function getPrefix(prop="transform"){var _a,_b;if("undefined"==typeof window)return"";const style=null==(_b=null==(_a=window.document)?void 0:_a.documentElement)?void 0:_b.style;if(!style)return"";if(prop in style)return"";for(let i=0;i<prefixes.length;i++)if(browserPrefixToKey(prop,prefixes[i])in style)return prefixes[i];return""}(),matchesSelectorFunc="";function matchesSelector(el,selector){var _a;matchesSelectorFunc||(matchesSelectorFunc=null!=(_a=findInArray(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(method){return isFunction(el[method])}))?_a:"");const matchFn=el[matchesSelectorFunc];return!!isFunction(matchFn)&&Boolean(matchFn.call(el,selector))}function matchesSelectorAndParentsTo(el,selector,baseNode){let node=el;do{if(matchesSelector(node,selector))return!0;if(node===baseNode)return!1;node=node.parentNode}while(node);return!1}function addEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions},listener=handler;el.addEventListener?el.addEventListener(event,listener,options):el.attachEvent?el.attachEvent("on"+event,listener):el["on"+event]=listener}function removeEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions},listener=handler;el.removeEventListener?el.removeEventListener(event,listener,options):el.detachEvent?el.detachEvent("on"+event,listener):el["on"+event]=null}function outerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height+=int(computedStyle.borderTopWidth),height+=int(computedStyle.borderBottomWidth),height}function outerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width+=int(computedStyle.borderLeftWidth),width+=int(computedStyle.borderRightWidth),width}function innerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height-=int(computedStyle.paddingTop),height-=int(computedStyle.paddingBottom),height}function innerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width-=int(computedStyle.paddingLeft),width-=int(computedStyle.paddingRight),width}function getTranslation({x,y},positionOffset,unitSuffix){let translation=`translate(${x}${unitSuffix},${y}${unitSuffix})`;if(positionOffset){translation=`translate(${`${"string"==typeof positionOffset.x?positionOffset.x:positionOffset.x+unitSuffix}`}, ${`${"string"==typeof positionOffset.y?positionOffset.y:positionOffset.y+unitSuffix}`})`+translation}return translation}function addUserSelectStyles(doc,nonce){if(!doc)return;let styleEl=doc.getElementById("react-draggable-style-el");if(!styleEl){styleEl=doc.createElement("style"),styleEl.type="text/css",styleEl.id="react-draggable-style-el";const resolvedNonce=null!=nonce?nonce:function getDefaultNonce(){return __webpack_require__.nc}();resolvedNonce&&styleEl.setAttribute("nonce",resolvedNonce),styleEl.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",styleEl.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",doc.getElementsByTagName("head")[0].appendChild(styleEl)}doc.body&&function addClassName(el,className){el.classList?el.classList.add(className):el.className.match(new RegExp(`(?:^|\\s)${className}(?!\\S)`))||(el.className+=` ${className}`)}(doc.body,"react-draggable-transparent-selection")}function scheduleRemoveUserSelectStyles(doc){window.requestAnimationFrame?window.requestAnimationFrame(()=>{removeUserSelectStyles(doc)}):removeUserSelectStyles(doc)}function removeUserSelectStyles(doc){if(doc)try{doc.body&&function removeClassName(el,className){el.classList?el.classList.remove(className):el.className=el.className.replace(new RegExp(`(?:^|\\s)${className}(?!\\S)`,"g"),"")}(doc.body,"react-draggable-transparent-selection");const ieSelection=doc.selection;if(ieSelection)ieSelection.empty();else{const selection=(doc.defaultView||window).getSelection();selection&&"Caret"!==selection.type&&selection.removeAllRanges()}}catch{}}function snapToGrid(grid,pendingX,pendingY){return[Math.round(pendingX/grid[0])*grid[0],Math.round(pendingY/grid[1])*grid[1]]}function canDragX(draggable){return"both"===draggable.props.axis||"x"===draggable.props.axis}function canDragY(draggable){return"both"===draggable.props.axis||"y"===draggable.props.axis}function getControlPosition(e,touchIdentifier,draggableCore){const touchObj="number"==typeof touchIdentifier?function getTouch(e,identifier){return e.targetTouches&&findInArray(e.targetTouches,t=>identifier===t.identifier)||e.changedTouches&&findInArray(e.changedTouches,t=>identifier===t.identifier)}(e,touchIdentifier):null;if("number"==typeof touchIdentifier&&!touchObj)return null;const node=findDOMNode(draggableCore);return function offsetXYFromParent(evt,offsetParent,scale){const offsetParentRect=offsetParent===offsetParent.ownerDocument.body?{left:0,top:0}:offsetParent.getBoundingClientRect();return{x:(evt.clientX+offsetParent.scrollLeft-offsetParentRect.left)/scale,y:(evt.clientY+offsetParent.scrollTop-offsetParentRect.top)/scale}}(touchObj||e,draggableCore.props.offsetParent||node.offsetParent||node.ownerDocument.body,draggableCore.props.scale)}function createCoreData(draggable,x,y){const isStart=!isNum(draggable.lastX),node=findDOMNode(draggable);return isStart?{node,deltaX:0,deltaY:0,lastX:x,lastY:y,x,y}:{node,deltaX:x-draggable.lastX,deltaY:y-draggable.lastY,lastX:draggable.lastX,lastY:draggable.lastY,x,y}}function createDraggableData(draggable,coreData){const scale=draggable.props.scale;return{node:coreData.node,x:draggable.state.x+coreData.deltaX/scale,y:draggable.state.y+coreData.deltaY/scale,deltaX:coreData.deltaX/scale,deltaY:coreData.deltaY/scale,lastX:draggable.state.x,lastY:draggable.state.y}}function findDOMNode(draggable){const node=draggable.findDOMNode();if(!node)throw new Error("<DraggableCore>: Unmounted during event!");return node}var React=__toESM(__webpack_require__("./node_modules/react/index.js")),import_prop_types=__toESM(__webpack_require__("./node_modules/prop-types/index.js")),import_react_dom=__toESM(__webpack_require__("./node_modules/react-dom/index.js")),log_default=void 0!==process&&{NODE_ENV:"production",NODE_PATH:[],STORYBOOK:"true",PUBLIC_URL:"."}.DRAGGABLE_DEBUG?console.log.bind(console):function noop(){},eventsFor_touch={start:"touchstart",move:"touchmove",stop:"touchend"},eventsFor_mouse={start:"mousedown",move:"mousemove",stop:"mouseup"},dragEventFor=eventsFor_mouse,DraggableCore=class extends React.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&("number"==typeof e.button&&0!==e.button||e.ctrlKey))return!1;const thisNode=this.findDOMNode();if(!thisNode||!thisNode.ownerDocument||!thisNode.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument}=thisNode;if(this.props.disabled||!(e.target instanceof ownerDocument.defaultView.Node)||this.props.handle&&!matchesSelectorAndParentsTo(e.target,this.props.handle,thisNode)||this.props.cancel&&matchesSelectorAndParentsTo(e.target,this.props.cancel,thisNode))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const touchIdentifier=function getTouchIdentifier(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}(e);this.touchIdentifier=touchIdentifier;const position=getControlPosition(e,touchIdentifier,this);if(null==position)return;const{x,y}=position,coreEvent=createCoreData(this,x,y);log_default("DraggableCore: handleDragStart: %j",coreEvent),log_default("calling",this.props.onStart);!1!==this.props.onStart(e,coreEvent)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&addUserSelectStyles(ownerDocument,this.props.nonce),this.dragging=!0,this.lastX=x,this.lastY=y,addEvent(ownerDocument,dragEventFor.move,this.handleDrag),addEvent(ownerDocument,dragEventFor.stop,this.handleDragStop))},this.handleDrag=e=>{const position=getControlPosition(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX,deltaY=y-this.lastY;if([deltaX,deltaY]=snapToGrid(this.props.grid,deltaX,deltaY),!deltaX&&!deltaY)return;x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=createCoreData(this,x,y);log_default("DraggableCore: handleDrag: %j",coreEvent);if(!1!==this.props.onDrag(e,coreEvent)&&!1!==this.mounted)this.lastX=x,this.lastY=y;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const event=document.createEvent("MouseEvents");event.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(event)}},this.handleDragStop=e=>{if(!this.dragging)return;const position=getControlPosition(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX||0,deltaY=y-this.lastY||0;[deltaX,deltaY]=snapToGrid(this.props.grid,deltaX,deltaY),x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=createCoreData(this,x,y);if(!1===this.props.onStop(e,coreEvent)||!1===this.mounted)return!1;const thisNode=this.findDOMNode();thisNode&&this.props.enableUserSelectHack&&scheduleRemoveUserSelectStyles(thisNode.ownerDocument),log_default("DraggableCore: handleDragStop: %j",coreEvent),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,thisNode&&(log_default("DraggableCore: Removing handlers"),removeEvent(thisNode.ownerDocument,dragEventFor.move,this.handleDrag),removeEvent(thisNode.ownerDocument,dragEventFor.stop,this.handleDragStop))},this.onMouseDown=e=>(dragEventFor=eventsFor_mouse,this.handleDragStart(e)),this.onMouseUp=e=>(dragEventFor=eventsFor_mouse,this.handleDragStop(e)),this.onTouchStart=e=>(dragEventFor=eventsFor_touch,this.handleDragStart(e)),this.onTouchEnd=e=>(dragEventFor=eventsFor_touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;const thisNode=this.findDOMNode();thisNode&&addEvent(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const thisNode=this.findDOMNode();if(thisNode){const{ownerDocument}=thisNode;removeEvent(ownerDocument,eventsFor_mouse.move,this.handleDrag),removeEvent(ownerDocument,eventsFor_touch.move,this.handleDrag),removeEvent(ownerDocument,eventsFor_mouse.stop,this.handleDragStop),removeEvent(ownerDocument,eventsFor_touch.stop,this.handleDragStop),removeEvent(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&scheduleRemoveUserSelectStyles(ownerDocument)}}findDOMNode(){var _a;if(null==(_a=this.props)?void 0:_a.nodeRef)return this.props.nodeRef.current;const legacyReactDOM=import_react_dom.default;return"function"==typeof legacyReactDOM.findDOMNode?legacyReactDOM.findDOMNode(this):(log_default("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return React.cloneElement(React.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore.displayName="DraggableCore",DraggableCore.propTypes={allowAnyClick:import_prop_types.default.bool,allowMobileScroll:import_prop_types.default.bool,children:import_prop_types.default.node.isRequired,disabled:import_prop_types.default.bool,enableUserSelectHack:import_prop_types.default.bool,offsetParent:function(props,propName){if(props[propName]&&1!==props[propName].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:import_prop_types.default.arrayOf(import_prop_types.default.number),handle:import_prop_types.default.string,cancel:import_prop_types.default.string,nodeRef:import_prop_types.default.object,nonce:import_prop_types.default.string,onStart:import_prop_types.default.func,onDrag:import_prop_types.default.func,onStop:import_prop_types.default.func,onMouseDown:import_prop_types.default.func,scale:import_prop_types.default.number,className:dontSetMe,style:dontSetMe,transform:dontSetMe},DraggableCore.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var Draggable=class extends React2.Component{constructor(props){super(props),this.onDragStart=(e,coreData)=>{log_default("Draggable: onDragStart: %j",coreData);if(!1===this.props.onStart(e,createDraggableData(this,coreData)))return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,coreData)=>{if(!this.state.dragging)return!1;log_default("Draggable: onDrag: %j",coreData);const uiData=createDraggableData(this,coreData),newState={x:uiData.x,y:uiData.y,slackX:0,slackY:0};if(this.props.bounds){const{x,y}=newState;newState.x+=this.state.slackX,newState.y+=this.state.slackY;const[newStateX,newStateY]=function getBoundPosition(draggable,x,y){if(!draggable.props.bounds)return[x,y];let{bounds}=draggable.props;bounds="string"==typeof bounds?bounds:function cloneBounds(bounds){return{left:bounds.left,top:bounds.top,right:bounds.right,bottom:bounds.bottom}}(bounds);const node=findDOMNode(draggable);if("string"==typeof bounds){const{ownerDocument}=node,ownerWindow=ownerDocument.defaultView;if(!ownerWindow)throw new Error("Cannot resolve the owner window of the draggable node.");let boundNode;if(boundNode="parent"===bounds?node.parentNode:node.getRootNode().querySelector(bounds),!(boundNode instanceof ownerWindow.HTMLElement))throw new Error('Bounds selector "'+bounds+'" could not find an element.');const boundNodeEl=boundNode,nodeStyle=ownerWindow.getComputedStyle(node),boundNodeStyle=ownerWindow.getComputedStyle(boundNodeEl);bounds={left:-node.offsetLeft+int(boundNodeStyle.paddingLeft)+int(nodeStyle.marginLeft),top:-node.offsetTop+int(boundNodeStyle.paddingTop)+int(nodeStyle.marginTop),right:innerWidth(boundNodeEl)-outerWidth(node)-node.offsetLeft+int(boundNodeStyle.paddingRight)-int(nodeStyle.marginRight),bottom:innerHeight(boundNodeEl)-outerHeight(node)-node.offsetTop+int(boundNodeStyle.paddingBottom)-int(nodeStyle.marginBottom)}}return isNum(bounds.right)&&(x=Math.min(x,bounds.right)),isNum(bounds.bottom)&&(y=Math.min(y,bounds.bottom)),isNum(bounds.left)&&(x=Math.max(x,bounds.left)),isNum(bounds.top)&&(y=Math.max(y,bounds.top)),[x,y]}(this,newState.x,newState.y);newState.x=newStateX,newState.y=newStateY,newState.slackX=this.state.slackX+(x-newState.x),newState.slackY=this.state.slackY+(y-newState.y),uiData.x=newState.x,uiData.y=newState.y,uiData.deltaX=newState.x-this.state.x,uiData.deltaY=newState.y-this.state.y}if(!1===this.props.onDrag(e,uiData))return!1;this.setState(newState)},this.onDragStop=(e,coreData)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,createDraggableData(this,coreData)))return!1;log_default("Draggable: onDragStop: %j",coreData);const newState={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x,y}=this.props.position;newState.x=x,newState.y=y}this.setState(newState)},this.state={dragging:!1,dragged:!1,x:props.position?props.position.x:props.defaultPosition.x,y:props.position?props.position.y:props.defaultPosition.y,prevPropsPosition:{...props.position},slackX:0,slackY:0,isElementSVG:!1},!props.position||props.onDrag||props.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position},{prevPropsPosition}){return!position||prevPropsPosition&&position.x===prevPropsPosition.x&&position.y===prevPropsPosition.y?null:(log_default("Draggable: getDerivedStateFromProps %j",{position,prevPropsPosition}),{x:position.x,y:position.y,prevPropsPosition:{...position}})}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var _a;if(null==(_a=this.props)?void 0:_a.nodeRef)return this.props.nodeRef.current;const legacyReactDOM=import_react_dom2.default;return"function"==typeof legacyReactDOM.findDOMNode?legacyReactDOM.findDOMNode(this):null}render(){const{axis,bounds,children,defaultPosition,defaultClassName,defaultClassNameDragging,defaultClassNameDragged,position,positionOffset,scale,...draggableCoreProps}=this.props;let style={},svgTransform=null;const draggable=!Boolean(position)||this.state.dragging,validPosition=position||defaultPosition,transformOpts={x:canDragX(this)&&draggable?this.state.x:validPosition.x,y:canDragY(this)&&draggable?this.state.y:validPosition.y};this.state.isElementSVG?svgTransform=function createSVGTransform(controlPos,positionOffset){return getTranslation(controlPos,positionOffset,"")}(transformOpts,positionOffset):style=function createCSSTransform(controlPos,positionOffset){const translation=getTranslation(controlPos,positionOffset,"px");return{[browserPrefixToKey("transform",getPrefix_default)]:translation}}(transformOpts,positionOffset);const onlyChild=React2.Children.only(children),className=(0,import_clsx.clsx)(onlyChild.props.className||"",defaultClassName,{[defaultClassNameDragging]:this.state.dragging,[defaultClassNameDragged]:this.state.dragged});return React2.createElement(DraggableCore,{...draggableCoreProps,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},React2.cloneElement(onlyChild,{className,style:{...onlyChild.props.style,...style},transform:svgTransform}))}};Draggable.displayName="Draggable",Draggable.propTypes={...DraggableCore.propTypes,axis:import_prop_types2.default.oneOf(["both","x","y","none"]),bounds:import_prop_types2.default.oneOfType([import_prop_types2.default.shape({left:import_prop_types2.default.number,right:import_prop_types2.default.number,top:import_prop_types2.default.number,bottom:import_prop_types2.default.number}),import_prop_types2.default.string,import_prop_types2.default.oneOf([!1])]),defaultClassName:import_prop_types2.default.string,defaultClassNameDragging:import_prop_types2.default.string,defaultClassNameDragged:import_prop_types2.default.string,defaultPosition:import_prop_types2.default.shape({x:import_prop_types2.default.number,y:import_prop_types2.default.number}),positionOffset:import_prop_types2.default.shape({x:import_prop_types2.default.oneOfType([import_prop_types2.default.number,import_prop_types2.default.string]),y:import_prop_types2.default.oneOfType([import_prop_types2.default.number,import_prop_types2.default.string])}),position:import_prop_types2.default.shape({x:import_prop_types2.default.number,y:import_prop_types2.default.number}),className:dontSetMe,style:dontSetMe,transform:dontSetMe},Draggable.defaultProps={...DraggableCore.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}},"./node_modules/react-draggable/build/cjs/cjs.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";const Draggable=__webpack_require__("./node_modules/react-draggable/build/cjs/Draggable.js"),DraggableCore=Draggable.DraggableCore,Default=Draggable.default||Draggable;module.exports=Default,module.exports.default=Default,module.exports.DraggableCore=DraggableCore}}]);
|
|
2
|
+
//# sourceMappingURL=7608.5925882a.iframe.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"7608.4361b18b.iframe.bundle.js","mappings":"AAKA","sources":["webpack://@madie/madie-design-system/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://@madie/madie-design-system/./node_modules/@mui/icons-material/Close.js","webpack://@madie/madie-design-system/./node_modules/@mui/icons-material/Error.js","webpack://@madie/madie-design-system/./node_modules/@mui/icons-material/utils/createSvgIcon.js","webpack://@madie/madie-design-system/./node_modules/clsx/dist/clsx.js","webpack://@madie/madie-design-system/./node_modules/react-draggable/build/cjs/Draggable.js","webpack://@madie/madie-design-system/./node_modules/react-draggable/build/cjs/cjs.js"],"sourcesContent":["function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z\"\n}), 'Error');","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","function r(e){var o,t,f=\"\";if(\"string\"==typeof e||\"number\"==typeof e)f+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=\" \"),f+=t)}else for(t in e)e[t]&&(f&&(f+=\" \"),f+=t);return f}function e(){for(var e,o,t=0,f=\"\",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=\" \"),f+=o);return f}module.exports=e,module.exports.clsx=e;","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// lib/Draggable.tsx\nvar Draggable_exports = {};\n__export(Draggable_exports, {\n DraggableCore: () => DraggableCore,\n default: () => Draggable\n});\nmodule.exports = __toCommonJS(Draggable_exports);\nvar React2 = __toESM(require(\"react\"));\nvar import_prop_types2 = __toESM(require(\"prop-types\"));\nvar import_react_dom2 = __toESM(require(\"react-dom\"));\nvar import_clsx = require(\"clsx\");\n\n// lib/utils/shims.ts\nfunction findInArray(array, callback) {\n for (let i = 0, length = array.length; i < length; i++) {\n if (callback.apply(callback, [array[i], i, array])) return array[i];\n }\n}\nfunction isFunction(func) {\n return typeof func === \"function\" || Object.prototype.toString.call(func) === \"[object Function]\";\n}\nfunction isNum(num) {\n return typeof num === \"number\" && !isNaN(num);\n}\nfunction int(a) {\n return parseInt(a, 10);\n}\nfunction dontSetMe(props, propName, componentName) {\n if (props[propName]) {\n return new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`);\n }\n}\n\n// lib/utils/getPrefix.ts\nvar prefixes = [\"Moz\", \"Webkit\", \"O\", \"ms\"];\nfunction getPrefix(prop = \"transform\") {\n var _a, _b;\n if (typeof window === \"undefined\") return \"\";\n const style = (_b = (_a = window.document) == null ? void 0 : _a.documentElement) == null ? void 0 : _b.style;\n if (!style) return \"\";\n if (prop in style) return \"\";\n for (let i = 0; i < prefixes.length; i++) {\n if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];\n }\n return \"\";\n}\nfunction browserPrefixToKey(prop, prefix) {\n return prefix ? `${prefix}${kebabToTitleCase(prop)}` : prop;\n}\nfunction kebabToTitleCase(str) {\n let out = \"\";\n let shouldCapitalize = true;\n for (let i = 0; i < str.length; i++) {\n if (shouldCapitalize) {\n out += str[i].toUpperCase();\n shouldCapitalize = false;\n } else if (str[i] === \"-\") {\n shouldCapitalize = true;\n } else {\n out += str[i];\n }\n }\n return out;\n}\nvar getPrefix_default = getPrefix();\n\n// lib/utils/domFns.ts\nvar matchesSelectorFunc = \"\";\nfunction matchesSelector(el, selector) {\n var _a;\n if (!matchesSelectorFunc) {\n matchesSelectorFunc = (_a = findInArray([\n \"matches\",\n \"webkitMatchesSelector\",\n \"mozMatchesSelector\",\n \"msMatchesSelector\",\n \"oMatchesSelector\"\n ], function(method) {\n return isFunction(el[method]);\n })) != null ? _a : \"\";\n }\n const matchFn = el[matchesSelectorFunc];\n if (!isFunction(matchFn)) return false;\n return Boolean(matchFn.call(el, selector));\n}\nfunction matchesSelectorAndParentsTo(el, selector, baseNode) {\n let node = el;\n do {\n if (matchesSelector(node, selector)) return true;\n if (node === baseNode) return false;\n node = node.parentNode;\n } while (node);\n return false;\n}\nfunction addEvent(el, event, handler, inputOptions) {\n if (!el) return;\n const options = { capture: true, ...inputOptions };\n const listener = handler;\n if (el.addEventListener) {\n el.addEventListener(event, listener, options);\n } else if (el.attachEvent) {\n el.attachEvent(\"on\" + event, listener);\n } else {\n el[\"on\" + event] = listener;\n }\n}\nfunction removeEvent(el, event, handler, inputOptions) {\n if (!el) return;\n const options = { capture: true, ...inputOptions };\n const listener = handler;\n if (el.removeEventListener) {\n el.removeEventListener(event, listener, options);\n } else if (el.detachEvent) {\n el.detachEvent(\"on\" + event, listener);\n } else {\n el[\"on\" + event] = null;\n }\n}\nfunction outerHeight(node) {\n let height = node.clientHeight;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height += int(computedStyle.borderTopWidth);\n height += int(computedStyle.borderBottomWidth);\n return height;\n}\nfunction outerWidth(node) {\n let width = node.clientWidth;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width += int(computedStyle.borderLeftWidth);\n width += int(computedStyle.borderRightWidth);\n return width;\n}\nfunction innerHeight(node) {\n let height = node.clientHeight;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height -= int(computedStyle.paddingTop);\n height -= int(computedStyle.paddingBottom);\n return height;\n}\nfunction innerWidth(node) {\n let width = node.clientWidth;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width -= int(computedStyle.paddingLeft);\n width -= int(computedStyle.paddingRight);\n return width;\n}\nfunction offsetXYFromParent(evt, offsetParent, scale) {\n const isBody = offsetParent === offsetParent.ownerDocument.body;\n const offsetParentRect = isBody ? { left: 0, top: 0 } : offsetParent.getBoundingClientRect();\n const x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;\n const y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;\n return { x, y };\n}\nfunction createCSSTransform(controlPos, positionOffset) {\n const translation = getTranslation(controlPos, positionOffset, \"px\");\n return { [browserPrefixToKey(\"transform\", getPrefix_default)]: translation };\n}\nfunction createSVGTransform(controlPos, positionOffset) {\n const translation = getTranslation(controlPos, positionOffset, \"\");\n return translation;\n}\nfunction getTranslation({ x, y }, positionOffset, unitSuffix) {\n let translation = `translate(${x}${unitSuffix},${y}${unitSuffix})`;\n if (positionOffset) {\n const defaultX = `${typeof positionOffset.x === \"string\" ? positionOffset.x : positionOffset.x + unitSuffix}`;\n const defaultY = `${typeof positionOffset.y === \"string\" ? positionOffset.y : positionOffset.y + unitSuffix}`;\n translation = `translate(${defaultX}, ${defaultY})` + translation;\n }\n return translation;\n}\nfunction getTouch(e, identifier) {\n return e.targetTouches && findInArray(e.targetTouches, (t) => identifier === t.identifier) || e.changedTouches && findInArray(e.changedTouches, (t) => identifier === t.identifier);\n}\nfunction getTouchIdentifier(e) {\n if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;\n if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;\n}\nfunction getDefaultNonce() {\n return typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : void 0;\n}\nfunction addUserSelectStyles(doc, nonce) {\n if (!doc) return;\n let styleEl = doc.getElementById(\"react-draggable-style-el\");\n if (!styleEl) {\n styleEl = doc.createElement(\"style\");\n styleEl.type = \"text/css\";\n styleEl.id = \"react-draggable-style-el\";\n const resolvedNonce = nonce != null ? nonce : getDefaultNonce();\n if (resolvedNonce) styleEl.setAttribute(\"nonce\", resolvedNonce);\n styleEl.innerHTML = \".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\\n\";\n styleEl.innerHTML += \".react-draggable-transparent-selection *::selection {all: inherit;}\\n\";\n doc.getElementsByTagName(\"head\")[0].appendChild(styleEl);\n }\n if (doc.body) addClassName(doc.body, \"react-draggable-transparent-selection\");\n}\nfunction scheduleRemoveUserSelectStyles(doc) {\n if (window.requestAnimationFrame) {\n window.requestAnimationFrame(() => {\n removeUserSelectStyles(doc);\n });\n } else {\n removeUserSelectStyles(doc);\n }\n}\nfunction removeUserSelectStyles(doc) {\n if (!doc) return;\n try {\n if (doc.body) removeClassName(doc.body, \"react-draggable-transparent-selection\");\n const ieSelection = doc.selection;\n if (ieSelection) {\n ieSelection.empty();\n } else {\n const selection = (doc.defaultView || window).getSelection();\n if (selection && selection.type !== \"Caret\") {\n selection.removeAllRanges();\n }\n }\n } catch {\n }\n}\nfunction addClassName(el, className) {\n if (el.classList) {\n el.classList.add(className);\n } else {\n if (!el.className.match(new RegExp(`(?:^|\\\\s)${className}(?!\\\\S)`))) {\n el.className += ` ${className}`;\n }\n }\n}\nfunction removeClassName(el, className) {\n if (el.classList) {\n el.classList.remove(className);\n } else {\n el.className = el.className.replace(new RegExp(`(?:^|\\\\s)${className}(?!\\\\S)`, \"g\"), \"\");\n }\n}\n\n// lib/utils/positionFns.ts\nfunction getBoundPosition(draggable, x, y) {\n if (!draggable.props.bounds) return [x, y];\n let { bounds } = draggable.props;\n bounds = typeof bounds === \"string\" ? bounds : cloneBounds(bounds);\n const node = findDOMNode(draggable);\n if (typeof bounds === \"string\") {\n const { ownerDocument } = node;\n const ownerWindow = ownerDocument.defaultView;\n if (!ownerWindow) {\n throw new Error(\"Cannot resolve the owner window of the draggable node.\");\n }\n let boundNode;\n if (bounds === \"parent\") {\n boundNode = node.parentNode;\n } else {\n const rootNode = node.getRootNode();\n boundNode = rootNode.querySelector(bounds);\n }\n if (!(boundNode instanceof ownerWindow.HTMLElement)) {\n throw new Error('Bounds selector \"' + bounds + '\" could not find an element.');\n }\n const boundNodeEl = boundNode;\n const nodeStyle = ownerWindow.getComputedStyle(node);\n const boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl);\n bounds = {\n left: -node.offsetLeft + int(boundNodeStyle.paddingLeft) + int(nodeStyle.marginLeft),\n top: -node.offsetTop + int(boundNodeStyle.paddingTop) + int(nodeStyle.marginTop),\n right: innerWidth(boundNodeEl) - outerWidth(node) - node.offsetLeft + int(boundNodeStyle.paddingRight) - int(nodeStyle.marginRight),\n bottom: innerHeight(boundNodeEl) - outerHeight(node) - node.offsetTop + int(boundNodeStyle.paddingBottom) - int(nodeStyle.marginBottom)\n };\n }\n if (isNum(bounds.right)) x = Math.min(x, bounds.right);\n if (isNum(bounds.bottom)) y = Math.min(y, bounds.bottom);\n if (isNum(bounds.left)) x = Math.max(x, bounds.left);\n if (isNum(bounds.top)) y = Math.max(y, bounds.top);\n return [x, y];\n}\nfunction snapToGrid(grid, pendingX, pendingY) {\n const x = Math.round(pendingX / grid[0]) * grid[0];\n const y = Math.round(pendingY / grid[1]) * grid[1];\n return [x, y];\n}\nfunction canDragX(draggable) {\n return draggable.props.axis === \"both\" || draggable.props.axis === \"x\";\n}\nfunction canDragY(draggable) {\n return draggable.props.axis === \"both\" || draggable.props.axis === \"y\";\n}\nfunction getControlPosition(e, touchIdentifier, draggableCore) {\n const touchObj = typeof touchIdentifier === \"number\" ? getTouch(e, touchIdentifier) : null;\n if (typeof touchIdentifier === \"number\" && !touchObj) return null;\n const node = findDOMNode(draggableCore);\n const offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;\n return offsetXYFromParent(touchObj || e, offsetParent, draggableCore.props.scale);\n}\nfunction createCoreData(draggable, x, y) {\n const isStart = !isNum(draggable.lastX);\n const node = findDOMNode(draggable);\n if (isStart) {\n return {\n node,\n deltaX: 0,\n deltaY: 0,\n lastX: x,\n lastY: y,\n x,\n y\n };\n } else {\n return {\n node,\n deltaX: x - draggable.lastX,\n deltaY: y - draggable.lastY,\n lastX: draggable.lastX,\n lastY: draggable.lastY,\n x,\n y\n };\n }\n}\nfunction createDraggableData(draggable, coreData) {\n const scale = draggable.props.scale;\n return {\n node: coreData.node,\n x: draggable.state.x + coreData.deltaX / scale,\n y: draggable.state.y + coreData.deltaY / scale,\n deltaX: coreData.deltaX / scale,\n deltaY: coreData.deltaY / scale,\n lastX: draggable.state.x,\n lastY: draggable.state.y\n };\n}\nfunction cloneBounds(bounds) {\n return {\n left: bounds.left,\n top: bounds.top,\n right: bounds.right,\n bottom: bounds.bottom\n };\n}\nfunction findDOMNode(draggable) {\n const node = draggable.findDOMNode();\n if (!node) {\n throw new Error(\"<DraggableCore>: Unmounted during event!\");\n }\n return node;\n}\n\n// lib/DraggableCore.tsx\nvar React = __toESM(require(\"react\"));\nvar import_prop_types = __toESM(require(\"prop-types\"));\nvar import_react_dom = __toESM(require(\"react-dom\"));\n\n// lib/utils/log.ts\nvar log = typeof process !== \"undefined\" && process.env.DRAGGABLE_DEBUG ? console.log.bind(console) : function noop() {\n};\nvar log_default = log;\n\n// lib/DraggableCore.tsx\nvar eventsFor = {\n touch: {\n start: \"touchstart\",\n move: \"touchmove\",\n stop: \"touchend\"\n },\n mouse: {\n start: \"mousedown\",\n move: \"mousemove\",\n stop: \"mouseup\"\n }\n};\nvar dragEventFor = eventsFor.mouse;\nvar DraggableCore = class extends React.Component {\n constructor() {\n super(...arguments);\n this.dragging = false;\n // Used while dragging to determine deltas.\n this.lastX = NaN;\n this.lastY = NaN;\n this.touchIdentifier = null;\n this.mounted = false;\n this.handleDragStart = (e) => {\n this.props.onMouseDown(e);\n if (!this.props.allowAnyClick && (typeof e.button === \"number\" && e.button !== 0 || e.ctrlKey)) return false;\n const thisNode = this.findDOMNode();\n if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {\n throw new Error(\"<DraggableCore> not mounted on DragStart!\");\n }\n const { ownerDocument } = thisNode;\n if (this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !matchesSelectorAndParentsTo(e.target, this.props.handle, thisNode) || this.props.cancel && matchesSelectorAndParentsTo(e.target, this.props.cancel, thisNode)) {\n return;\n }\n if (e.type === \"touchstart\" && !this.props.allowMobileScroll) e.preventDefault();\n const touchIdentifier = getTouchIdentifier(e);\n this.touchIdentifier = touchIdentifier;\n const position = getControlPosition(e, touchIdentifier, this);\n if (position == null) return;\n const { x, y } = position;\n const coreEvent = createCoreData(this, x, y);\n log_default(\"DraggableCore: handleDragStart: %j\", coreEvent);\n log_default(\"calling\", this.props.onStart);\n const shouldUpdate = this.props.onStart(e, coreEvent);\n if (shouldUpdate === false || this.mounted === false) return;\n if (this.props.enableUserSelectHack) addUserSelectStyles(ownerDocument, this.props.nonce);\n this.dragging = true;\n this.lastX = x;\n this.lastY = y;\n addEvent(ownerDocument, dragEventFor.move, this.handleDrag);\n addEvent(ownerDocument, dragEventFor.stop, this.handleDragStop);\n };\n this.handleDrag = (e) => {\n const position = getControlPosition(e, this.touchIdentifier, this);\n if (position == null) return;\n let { x, y } = position;\n if (Array.isArray(this.props.grid)) {\n let deltaX = x - this.lastX, deltaY = y - this.lastY;\n [deltaX, deltaY] = snapToGrid(this.props.grid, deltaX, deltaY);\n if (!deltaX && !deltaY) return;\n x = this.lastX + deltaX;\n y = this.lastY + deltaY;\n }\n const coreEvent = createCoreData(this, x, y);\n log_default(\"DraggableCore: handleDrag: %j\", coreEvent);\n const shouldUpdate = this.props.onDrag(e, coreEvent);\n if (shouldUpdate === false || this.mounted === false) {\n try {\n this.handleDragStop(new MouseEvent(\"mouseup\"));\n } catch {\n const event = document.createEvent(\"MouseEvents\");\n event.initMouseEvent(\"mouseup\", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n this.handleDragStop(event);\n }\n return;\n }\n this.lastX = x;\n this.lastY = y;\n };\n this.handleDragStop = (e) => {\n if (!this.dragging) return;\n const position = getControlPosition(e, this.touchIdentifier, this);\n if (position == null) return;\n let { x, y } = position;\n if (Array.isArray(this.props.grid)) {\n let deltaX = x - this.lastX || 0;\n let deltaY = y - this.lastY || 0;\n [deltaX, deltaY] = snapToGrid(this.props.grid, deltaX, deltaY);\n x = this.lastX + deltaX;\n y = this.lastY + deltaY;\n }\n const coreEvent = createCoreData(this, x, y);\n const shouldContinue = this.props.onStop(e, coreEvent);\n if (shouldContinue === false || this.mounted === false) return false;\n const thisNode = this.findDOMNode();\n if (thisNode) {\n if (this.props.enableUserSelectHack) scheduleRemoveUserSelectStyles(thisNode.ownerDocument);\n }\n log_default(\"DraggableCore: handleDragStop: %j\", coreEvent);\n this.dragging = false;\n this.lastX = NaN;\n this.lastY = NaN;\n if (thisNode) {\n log_default(\"DraggableCore: Removing handlers\");\n removeEvent(thisNode.ownerDocument, dragEventFor.move, this.handleDrag);\n removeEvent(thisNode.ownerDocument, dragEventFor.stop, this.handleDragStop);\n }\n };\n this.onMouseDown = (e) => {\n dragEventFor = eventsFor.mouse;\n return this.handleDragStart(e);\n };\n this.onMouseUp = (e) => {\n dragEventFor = eventsFor.mouse;\n return this.handleDragStop(e);\n };\n // Same as onMouseDown (start drag), but now consider this a touch device.\n this.onTouchStart = (e) => {\n dragEventFor = eventsFor.touch;\n return this.handleDragStart(e);\n };\n this.onTouchEnd = (e) => {\n dragEventFor = eventsFor.touch;\n return this.handleDragStop(e);\n };\n }\n componentDidMount() {\n this.mounted = true;\n const thisNode = this.findDOMNode();\n if (thisNode) {\n addEvent(thisNode, eventsFor.touch.start, this.onTouchStart, { passive: false });\n }\n }\n componentWillUnmount() {\n this.mounted = false;\n const thisNode = this.findDOMNode();\n if (thisNode) {\n const { ownerDocument } = thisNode;\n removeEvent(ownerDocument, eventsFor.mouse.move, this.handleDrag);\n removeEvent(ownerDocument, eventsFor.touch.move, this.handleDrag);\n removeEvent(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);\n removeEvent(ownerDocument, eventsFor.touch.stop, this.handleDragStop);\n removeEvent(thisNode, eventsFor.touch.start, this.onTouchStart, { passive: false });\n if (this.props.enableUserSelectHack) scheduleRemoveUserSelectStyles(ownerDocument);\n }\n }\n // React 19 removed ReactDOM.findDOMNode, so nodeRef is now required.\n // For backward compatibility with React 18 and earlier, we still support findDOMNode if available.\n findDOMNode() {\n var _a;\n if ((_a = this.props) == null ? void 0 : _a.nodeRef) {\n return this.props.nodeRef.current;\n }\n const legacyReactDOM = import_react_dom.default;\n if (typeof legacyReactDOM.findDOMNode === \"function\") {\n return legacyReactDOM.findDOMNode(this);\n }\n log_default(\n \"react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef\"\n );\n return null;\n }\n render() {\n return React.cloneElement(React.Children.only(this.props.children), {\n // Note: mouseMove handler is attached to document so it will still function\n // when the user drags quickly and leaves the bounds of the element.\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n // onTouchStart is added on `componentDidMount` so they can be added with\n // {passive: false}, which allows it to cancel. See\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n onTouchEnd: this.onTouchEnd\n });\n }\n};\nDraggableCore.displayName = \"DraggableCore\";\n// Both the annotation and the `?` are load-bearing:\n// - The index-signature annotation stops tsc from inferring the\n// PropTypes.Requireable<...> types and emitting `import PropTypes from\n// 'prop-types'` into the generated public .d.ts, which would force consumers\n// to install @types/prop-types (the v4.5.0 hand-written typings had none).\n// - The `?` keeps `propTypes` from being a *required* member of the public\n// type. React <= 18's JSX LibraryManagedAttributes only consults a\n// component's `propTypes` when it is required (`C extends {propTypes: ...}`);\n// when it does, this index-signature `propTypes` makes `defaultProps` stop\n// marking props optional, so consumers are forced to pass every prop.\n// Optional dodges that branch; React 19 ignores `propTypes` entirely. The\n// typings/tsconfig.react18.json check guards against a regression here.\n// Do not remove. See lib/Draggable.tsx for the same guard.\nDraggableCore.propTypes = {\n /**\n * `allowAnyClick` allows dragging using any mouse button.\n * By default, we only accept the left button.\n *\n * Defaults to `false`.\n */\n allowAnyClick: import_prop_types.default.bool,\n /**\n * `allowMobileScroll` turns off cancellation of the 'touchstart' event\n * on mobile devices. Only enable this if you are having trouble with click\n * events. Prefer using 'handle' / 'cancel' instead.\n *\n * Defaults to `false`.\n */\n allowMobileScroll: import_prop_types.default.bool,\n children: import_prop_types.default.node.isRequired,\n /**\n * `disabled`, if true, stops the <Draggable> from dragging. All handlers,\n * with the exception of `onMouseDown`, will not fire.\n */\n disabled: import_prop_types.default.bool,\n /**\n * By default, we add 'user-select:none' attributes to the document body\n * to prevent ugly text selection during drag. If this is causing problems\n * for your app, set this to `false`.\n */\n enableUserSelectHack: import_prop_types.default.bool,\n /**\n * `offsetParent`, if set, uses the passed DOM node to compute drag offsets\n * instead of using the parent node.\n */\n offsetParent: function(props, propName) {\n if (props[propName] && props[propName].nodeType !== 1) {\n throw new Error(\"Draggable's offsetParent must be a DOM Node.\");\n }\n },\n /**\n * `grid` specifies the x and y that dragging should snap to.\n */\n grid: import_prop_types.default.arrayOf(import_prop_types.default.number),\n /**\n * `handle` specifies a selector to be used as the handle that initiates drag.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable handle=\".handle\">\n * <div>\n * <div className=\"handle\">Click me to drag</div>\n * <div>This is some other content</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n handle: import_prop_types.default.string,\n /**\n * `cancel` specifies a selector to be used to prevent drag initialization.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return(\n * <Draggable cancel=\".cancel\">\n * <div>\n * <div className=\"cancel\">You can't drag from here</div>\n * <div>Dragging here works fine</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n cancel: import_prop_types.default.string,\n /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.\n * Unfortunately, in order for <Draggable> to work properly, we need raw access\n * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`\n * as in this example:\n *\n * function MyComponent() {\n * const nodeRef = React.useRef(null);\n * return (\n * <Draggable nodeRef={nodeRef}>\n * <div ref={nodeRef}>Example Target</div>\n * </Draggable>\n * );\n * }\n *\n * This can be used for arbitrarily nested components, so long as the ref ends up\n * pointing to the actual child DOM node and not a custom component.\n */\n nodeRef: import_prop_types.default.object,\n /**\n * `nonce` is applied to the dynamically-injected <style> element used by the\n * user-select hack, so it isn't blocked under a strict Content Security\n * Policy (`style-src` without `'unsafe-inline'`). If omitted, webpack's\n * `__webpack_nonce__` global is used when available.\n */\n nonce: import_prop_types.default.string,\n /**\n * Called when dragging starts.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onStart: import_prop_types.default.func,\n /**\n * Called while dragging.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onDrag: import_prop_types.default.func,\n /**\n * Called when dragging stops.\n * If this function returns the boolean false, the drag will remain active.\n */\n onStop: import_prop_types.default.func,\n /**\n * A workaround option which can be passed if onMouseDown needs to be accessed,\n * since it'll always be blocked (as there is internal use of onMouseDown)\n */\n onMouseDown: import_prop_types.default.func,\n /**\n * `scale`, if set, applies scaling while dragging an element\n */\n scale: import_prop_types.default.number,\n /**\n * These properties should be defined on the child, not here.\n */\n className: dontSetMe,\n style: dontSetMe,\n transform: dontSetMe\n};\n// Typed as the full `DraggableCoreProps` (not just the default-provided subset)\n// so React's JSX LibraryManagedAttributes treats EVERY prop as optional for\n// consumers, matching the historical hand-written typings. At runtime only the\n// default-able props are actually populated.\nDraggableCore.defaultProps = {\n allowAnyClick: false,\n // by default only accept left click\n allowMobileScroll: false,\n disabled: false,\n enableUserSelectHack: true,\n onStart: function() {\n },\n onDrag: function() {\n },\n onStop: function() {\n },\n onMouseDown: function() {\n },\n scale: 1\n};\n\n// lib/Draggable.tsx\nvar Draggable = class extends React2.Component {\n constructor(props) {\n super(props);\n this.onDragStart = (e, coreData) => {\n log_default(\"Draggable: onDragStart: %j\", coreData);\n const shouldStart = this.props.onStart(e, createDraggableData(this, coreData));\n if (shouldStart === false) return false;\n this.setState({ dragging: true, dragged: true });\n };\n this.onDrag = (e, coreData) => {\n if (!this.state.dragging) return false;\n log_default(\"Draggable: onDrag: %j\", coreData);\n const uiData = createDraggableData(this, coreData);\n const newState = {\n x: uiData.x,\n y: uiData.y,\n slackX: 0,\n slackY: 0\n };\n if (this.props.bounds) {\n const { x, y } = newState;\n newState.x += this.state.slackX;\n newState.y += this.state.slackY;\n const [newStateX, newStateY] = getBoundPosition(this, newState.x, newState.y);\n newState.x = newStateX;\n newState.y = newStateY;\n newState.slackX = this.state.slackX + (x - newState.x);\n newState.slackY = this.state.slackY + (y - newState.y);\n uiData.x = newState.x;\n uiData.y = newState.y;\n uiData.deltaX = newState.x - this.state.x;\n uiData.deltaY = newState.y - this.state.y;\n }\n const shouldUpdate = this.props.onDrag(e, uiData);\n if (shouldUpdate === false) return false;\n this.setState(newState);\n };\n this.onDragStop = (e, coreData) => {\n if (!this.state.dragging) return false;\n const shouldContinue = this.props.onStop(e, createDraggableData(this, coreData));\n if (shouldContinue === false) return false;\n log_default(\"Draggable: onDragStop: %j\", coreData);\n const newState = {\n dragging: false,\n slackX: 0,\n slackY: 0\n };\n const controlled = Boolean(this.props.position);\n if (controlled) {\n const { x, y } = this.props.position;\n newState.x = x;\n newState.y = y;\n }\n this.setState(newState);\n };\n this.state = {\n // Whether or not we are currently dragging.\n dragging: false,\n // Whether or not we have been dragged before.\n dragged: false,\n // Current transform x and y.\n x: props.position ? props.position.x : props.defaultPosition.x,\n y: props.position ? props.position.y : props.defaultPosition.y,\n prevPropsPosition: { ...props.position },\n // Used for compensating for out-of-bounds drags\n slackX: 0,\n slackY: 0,\n // Can only determine if SVG after mounting\n isElementSVG: false\n };\n if (props.position && !(props.onDrag || props.onStop)) {\n console.warn(\"A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.\");\n }\n }\n // React 16.3+\n // Arity (props, state)\n static getDerivedStateFromProps({ position }, { prevPropsPosition }) {\n if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {\n log_default(\"Draggable: getDerivedStateFromProps %j\", { position, prevPropsPosition });\n return {\n x: position.x,\n y: position.y,\n prevPropsPosition: { ...position }\n };\n }\n return null;\n }\n componentDidMount() {\n if (typeof window.SVGElement !== \"undefined\" && this.findDOMNode() instanceof window.SVGElement) {\n this.setState({ isElementSVG: true });\n }\n }\n componentWillUnmount() {\n if (this.state.dragging) {\n this.setState({ dragging: false });\n }\n }\n // React 19 removed ReactDOM.findDOMNode, so nodeRef is now required.\n // For backward compatibility with React 18 and earlier, we still support findDOMNode if available.\n findDOMNode() {\n var _a;\n if ((_a = this.props) == null ? void 0 : _a.nodeRef) {\n return this.props.nodeRef.current;\n }\n const legacyReactDOM = import_react_dom2.default;\n if (typeof legacyReactDOM.findDOMNode === \"function\") {\n return legacyReactDOM.findDOMNode(this);\n }\n return null;\n }\n render() {\n const {\n axis,\n bounds,\n children,\n defaultPosition,\n defaultClassName,\n defaultClassNameDragging,\n defaultClassNameDragged,\n position,\n positionOffset,\n scale,\n ...draggableCoreProps\n } = this.props;\n let style = {};\n let svgTransform = null;\n const controlled = Boolean(position);\n const draggable = !controlled || this.state.dragging;\n const validPosition = position || defaultPosition;\n const transformOpts = {\n // Set left if horizontal drag is enabled\n x: canDragX(this) && draggable ? this.state.x : validPosition.x,\n // Set top if vertical drag is enabled\n y: canDragY(this) && draggable ? this.state.y : validPosition.y\n };\n if (this.state.isElementSVG) {\n svgTransform = createSVGTransform(transformOpts, positionOffset);\n } else {\n style = createCSSTransform(transformOpts, positionOffset);\n }\n const onlyChild = React2.Children.only(children);\n const className = (0, import_clsx.clsx)(onlyChild.props.className || \"\", defaultClassName, {\n [defaultClassNameDragging]: this.state.dragging,\n [defaultClassNameDragged]: this.state.dragged\n });\n return /* @__PURE__ */ React2.createElement(DraggableCore, { ...draggableCoreProps, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }, React2.cloneElement(onlyChild, {\n className,\n style: { ...onlyChild.props.style, ...style },\n transform: svgTransform\n }));\n }\n};\nDraggable.displayName = \"Draggable\";\n// Both the annotation and the `?` are load-bearing:\n// - The index-signature annotation stops tsc from inferring the\n// PropTypes.Requireable<...> types and emitting `import PropTypes from\n// 'prop-types'` into the generated public .d.ts, which would force consumers\n// to install @types/prop-types (the v4.5.0 hand-written typings had none).\n// - The `?` keeps `propTypes` from being a *required* member of the public\n// type. React <= 18's JSX LibraryManagedAttributes only consults a\n// component's `propTypes` when it is required (`C extends {propTypes: ...}`);\n// when it does, this index-signature `propTypes` makes `defaultProps` stop\n// marking props optional, so consumers are forced to pass every prop.\n// Optional dodges that branch; React 19 ignores `propTypes` entirely. The\n// typings/tsconfig.react18.json check guards against a regression here.\n// Do not remove. See lib/DraggableCore.tsx for the same guard.\nDraggable.propTypes = {\n // Accepts all props <DraggableCore> accepts.\n ...DraggableCore.propTypes,\n /**\n * `axis` determines which axis the draggable can move.\n *\n * Note that all callbacks will still return data as normal. This only\n * controls flushing to the DOM.\n *\n * 'both' allows movement horizontally and vertically.\n * 'x' limits movement to horizontal axis.\n * 'y' limits movement to vertical axis.\n * 'none' limits all movement.\n *\n * Defaults to 'both'.\n */\n axis: import_prop_types2.default.oneOf([\"both\", \"x\", \"y\", \"none\"]),\n /**\n * `bounds` determines the range of movement available to the element.\n * Available values are:\n *\n * 'parent' restricts movement within the Draggable's parent node.\n *\n * Alternatively, pass an object with the following properties, all of which are optional:\n *\n * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}\n *\n * All values are in px.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable bounds={{right: 300, bottom: 300}}>\n * <div>Content</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n bounds: import_prop_types2.default.oneOfType([\n import_prop_types2.default.shape({\n left: import_prop_types2.default.number,\n right: import_prop_types2.default.number,\n top: import_prop_types2.default.number,\n bottom: import_prop_types2.default.number\n }),\n import_prop_types2.default.string,\n import_prop_types2.default.oneOf([false])\n ]),\n defaultClassName: import_prop_types2.default.string,\n defaultClassNameDragging: import_prop_types2.default.string,\n defaultClassNameDragged: import_prop_types2.default.string,\n /**\n * `defaultPosition` specifies the x and y that the dragged item should start at\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable defaultPosition={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n defaultPosition: import_prop_types2.default.shape({\n x: import_prop_types2.default.number,\n y: import_prop_types2.default.number\n }),\n positionOffset: import_prop_types2.default.shape({\n x: import_prop_types2.default.oneOfType([import_prop_types2.default.number, import_prop_types2.default.string]),\n y: import_prop_types2.default.oneOfType([import_prop_types2.default.number, import_prop_types2.default.string])\n }),\n /**\n * `position`, if present, defines the current position of the element.\n *\n * This is similar to how form elements in React work - if no `position` is supplied, the component\n * is uncontrolled.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable position={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n position: import_prop_types2.default.shape({\n x: import_prop_types2.default.number,\n y: import_prop_types2.default.number\n }),\n /**\n * These properties should be defined on the child, not here.\n */\n className: dontSetMe,\n style: dontSetMe,\n transform: dontSetMe\n};\n// Typed as the full `DraggableProps` (not just the default-provided subset) so\n// React's JSX LibraryManagedAttributes treats EVERY prop as optional for\n// consumers, matching the historical hand-written typings. At runtime only the\n// default-able props are actually populated.\nDraggable.defaultProps = {\n ...DraggableCore.defaultProps,\n axis: \"both\",\n bounds: false,\n defaultClassName: \"react-draggable\",\n defaultClassNameDragging: \"react-draggable-dragging\",\n defaultClassNameDragged: \"react-draggable-dragged\",\n defaultPosition: { x: 0, y: 0 },\n scale: 1\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n DraggableCore\n});\n//# sourceMappingURL=Draggable.js.map","'use strict';\n// Generated by tsup.config.ts onSuccess. See that file for the compat rationale.\nconst Draggable = require('./Draggable.js');\nconst DraggableCore = Draggable.DraggableCore;\nconst Default = Draggable.default || Draggable;\n\nmodule.exports = Default;\nmodule.exports.default = Default;\nmodule.exports.DraggableCore = DraggableCore;\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[7648],{"./node_modules/@mdx-js/react/index.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{MDXProvider:()=>MDXProvider});var react=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react.createContext(emptyComponents);function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:function useMDXComponents(components){const contextComponents=react.useContext(MDXContext);return react.useMemo(function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}},[contextComponents,components])}(properties.components),react.createElement(MDXContext.Provider,{value:allComponents},properties.children)}}}]);
|
|
2
|
+
//# sourceMappingURL=7648.5ac43950.iframe.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"7648.b812f546.iframe.bundle.js","mappings":"AA0BA","sources":["webpack://@madie/madie-design-system/./node_modules/@mdx-js/react/lib/index.js"],"sourcesContent":["/**\n * @import {MDXComponents} from 'mdx/types.js'\n * @import {Component, ReactElement, ReactNode} from 'react'\n */\n\n/**\n * @callback MergeComponents\n * Custom merge function.\n * @param {Readonly<MDXComponents>} currentComponents\n * Current components from the context.\n * @returns {MDXComponents}\n * Additional components.\n *\n * @typedef Props\n * Configuration for `MDXProvider`.\n * @property {ReactNode | null | undefined} [children]\n * Children (optional).\n * @property {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @property {boolean | null | undefined} [disableParentContext=false]\n * Turn off outer component context (default: `false`).\n */\n\nimport React from 'react'\n\n/** @type {Readonly<MDXComponents>} */\nconst emptyComponents = {}\n\nconst MDXContext = React.createContext(emptyComponents)\n\n/**\n * Get current components from the MDX Context.\n *\n * @param {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @returns {MDXComponents}\n * Current components.\n */\nexport function useMDXComponents(components) {\n const contextComponents = React.useContext(MDXContext)\n\n // Memoize to avoid unnecessary top-level context changes\n return React.useMemo(\n function () {\n // Custom merge via a function prop\n if (typeof components === 'function') {\n return components(contextComponents)\n }\n\n return {...contextComponents, ...components}\n },\n [contextComponents, components]\n )\n}\n\n/**\n * Provider for MDX context.\n *\n * @param {Readonly<Props>} properties\n * Properties.\n * @returns {ReactElement}\n * Element.\n * @satisfies {Component}\n */\nexport function MDXProvider(properties) {\n /** @type {Readonly<MDXComponents>} */\n let allComponents\n\n if (properties.disableParentContext) {\n allComponents =\n typeof properties.components === 'function'\n ? properties.components(emptyComponents)\n : properties.components || emptyComponents\n } else {\n allComponents = useMDXComponents(properties.components)\n }\n\n return React.createElement(\n MDXContext.Provider,\n {value: allComponents},\n properties.children\n )\n}\n"],"names":[],"sourceRoot":""}
|