@marciocamello/react-sortable-tree
Version:
Drag-and-drop sortable component for nested data and hierarchies
1 lines • 198 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/node-renderer-default.css":function(module,exports,__webpack_require__){(exports=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".rst__rowWrapper {\n padding: 10px 10px 10px 0;\n height: 100%;\n box-sizing: border-box;\n}\n\n.rst__rtl.rst__rowWrapper {\n padding: 10px 0 10px 10px;\n}\n\n.rst__row {\n height: 100%;\n white-space: nowrap;\n display: flex;\n}\n.rst__row > * {\n box-sizing: border-box;\n}\n\n/**\n * The outline of where the element will go if dropped, displayed while dragging\n */\n.rst__rowLandingPad,\n.rst__rowCancelPad {\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n.rst__rowLandingPad > *,\n.rst__rowCancelPad > * {\n opacity: 0 !important;\n}\n.rst__rowLandingPad::before,\n.rst__rowCancelPad::before {\n background-color: lightblue;\n border: 3px dashed white;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n}\n\n/**\n * Alternate appearance of the landing pad when the dragged location is invalid\n */\n.rst__rowCancelPad::before {\n background-color: #e6a8ad;\n}\n\n/**\n * Nodes matching the search conditions are highlighted\n */\n.rst__rowSearchMatch {\n outline: solid 3px #0080ff;\n}\n\n/**\n * The node that matches the search conditions and is currently focused\n */\n.rst__rowSearchFocus {\n outline: solid 3px #fc6421;\n}\n\n.rst__rowContents,\n.rst__rowLabel,\n.rst__rowToolbar,\n.rst__moveHandle,\n.rst__toolbarButton {\n display: inline-block;\n vertical-align: middle;\n}\n\n.rst__rowContents {\n position: relative;\n height: 100%;\n border: solid #bbb 1px;\n border-left: none;\n box-shadow: 0 2px 2px -2px;\n padding: 0 5px 0 10px;\n border-radius: 2px;\n min-width: 230px;\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: white;\n}\n\n.rst__rtl.rst__rowContents {\n border-right: none;\n border-left: solid #bbb 1px;\n padding: 0 10px 0 5px;\n}\n\n.rst__rowContentsDragDisabled {\n border-left: solid #bbb 1px;\n}\n\n.rst__rtl.rst__rowContentsDragDisabled {\n border-right: solid #bbb 1px;\n border-left: solid #bbb 1px;\n}\n\n.rst__rowLabel {\n flex: 0 1 auto;\n padding-right: 20px;\n}\n.rst__rtl.rst__rowLabel {\n padding-left: 20px;\n padding-right: inherit;\n}\n\n.rst__rowToolbar {\n flex: 0 1 auto;\n display: flex;\n}\n\n.rst__moveHandle,\n.rst__loadingHandle {\n height: 100%;\n width: 44px;\n background: #d9d9d9\n url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MiIgaGVpZ2h0PSI0MiI+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuOSIgPjxwYXRoIGQ9Ik0xNCAxNS43aDE0LjQiLz48cGF0aCBkPSJNMTQgMjEuNGgxNC40Ii8+PHBhdGggZD0iTTE0IDI3LjFoMTQuNCIvPjwvZz4KPC9zdmc+')\n no-repeat center;\n border: solid #aaa 1px;\n box-shadow: 0 2px 2px -2px;\n cursor: move;\n border-radius: 1px;\n z-index: 1;\n}\n\n.rst__loadingHandle {\n cursor: default;\n background: #d9d9d9;\n}\n\n@keyframes pointFade {\n 0%,\n 19.999%,\n 100% {\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n}\n\n.rst__loadingCircle {\n width: 80%;\n height: 80%;\n margin: 10%;\n position: relative;\n}\n\n.rst__loadingCirclePoint {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rst__rtl.rst__loadingCirclePoint {\n right: 0;\n left: initial;\n}\n\n.rst__loadingCirclePoint::before {\n content: '';\n display: block;\n margin: 0 auto;\n width: 11%;\n height: 30%;\n background-color: #fff;\n border-radius: 30%;\n animation: pointFade 800ms infinite ease-in-out both;\n}\n.rst__loadingCirclePoint:nth-of-type(1) {\n transform: rotate(0deg);\n}\n.rst__loadingCirclePoint:nth-of-type(7) {\n transform: rotate(180deg);\n}\n.rst__loadingCirclePoint:nth-of-type(1)::before,\n.rst__loadingCirclePoint:nth-of-type(7)::before {\n animation-delay: -800ms;\n}\n.rst__loadingCirclePoint:nth-of-type(2) {\n transform: rotate(30deg);\n}\n.rst__loadingCirclePoint:nth-of-type(8) {\n transform: rotate(210deg);\n}\n.rst__loadingCirclePoint:nth-of-type(2)::before,\n.rst__loadingCirclePoint:nth-of-type(8)::before {\n animation-delay: -666ms;\n}\n.rst__loadingCirclePoint:nth-of-type(3) {\n transform: rotate(60deg);\n}\n.rst__loadingCirclePoint:nth-of-type(9) {\n transform: rotate(240deg);\n}\n.rst__loadingCirclePoint:nth-of-type(3)::before,\n.rst__loadingCirclePoint:nth-of-type(9)::before {\n animation-delay: -533ms;\n}\n.rst__loadingCirclePoint:nth-of-type(4) {\n transform: rotate(90deg);\n}\n.rst__loadingCirclePoint:nth-of-type(10) {\n transform: rotate(270deg);\n}\n.rst__loadingCirclePoint:nth-of-type(4)::before,\n.rst__loadingCirclePoint:nth-of-type(10)::before {\n animation-delay: -400ms;\n}\n.rst__loadingCirclePoint:nth-of-type(5) {\n transform: rotate(120deg);\n}\n.rst__loadingCirclePoint:nth-of-type(11) {\n transform: rotate(300deg);\n}\n.rst__loadingCirclePoint:nth-of-type(5)::before,\n.rst__loadingCirclePoint:nth-of-type(11)::before {\n animation-delay: -266ms;\n}\n.rst__loadingCirclePoint:nth-of-type(6) {\n transform: rotate(150deg);\n}\n.rst__loadingCirclePoint:nth-of-type(12) {\n transform: rotate(330deg);\n}\n.rst__loadingCirclePoint:nth-of-type(6)::before,\n.rst__loadingCirclePoint:nth-of-type(12)::before {\n animation-delay: -133ms;\n}\n.rst__loadingCirclePoint:nth-of-type(7) {\n transform: rotate(180deg);\n}\n.rst__loadingCirclePoint:nth-of-type(13) {\n transform: rotate(360deg);\n}\n.rst__loadingCirclePoint:nth-of-type(7)::before,\n.rst__loadingCirclePoint:nth-of-type(13)::before {\n animation-delay: 0ms;\n}\n\n.rst__rowTitle {\n font-weight: bold;\n}\n\n.rst__rowTitleWithSubtitle {\n font-size: 85%;\n display: block;\n height: 0.8rem;\n}\n\n.rst__rowSubtitle {\n font-size: 70%;\n line-height: 1;\n}\n\n.rst__collapseButton,\n.rst__expandButton {\n -webkit-appearance: none;\n appearance: none;\n border: none;\n position: absolute;\n border-radius: 100%;\n box-shadow: 0 0 0 1px #000;\n width: 16px;\n height: 16px;\n padding: 0;\n top: 50%;\n transform: translate(-50%, -50%);\n cursor: pointer;\n}\n.rst__rtl.rst__collapseButton,\n.rst__rtl.rst__expandButton {\n transform: translate(50%, -50%);\n}\n.rst__collapseButton:focus,\n.rst__expandButton:focus {\n outline: none;\n box-shadow: 0 0 0 1px #000, 0 0 1px 3px #83bef9;\n}\n.rst__collapseButton:hover:not(:active),\n.rst__expandButton:hover:not(:active) {\n background-size: 24px;\n height: 20px;\n width: 20px;\n}\n\n.rst__collapseButton {\n background: #fff\n url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PGNpcmNsZSBjeD0iOSIgY3k9IjkiIHI9IjgiIGZpbGw9IiNGRkYiLz48ZyBzdHJva2U9IiM5ODk4OTgiIHN0cm9rZS13aWR0aD0iMS45IiA+PHBhdGggZD0iTTQuNSA5aDkiLz48L2c+Cjwvc3ZnPg==')\n no-repeat center;\n}\n\n.rst__expandButton {\n background: #fff\n url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PGNpcmNsZSBjeD0iOSIgY3k9IjkiIHI9IjgiIGZpbGw9IiNGRkYiLz48ZyBzdHJva2U9IiM5ODk4OTgiIHN0cm9rZS13aWR0aD0iMS45IiA+PHBhdGggZD0iTTQuNSA5aDkiLz48cGF0aCBkPSJNOSA0LjV2OSIvPjwvZz4KPC9zdmc+')\n no-repeat center;\n}\n\n/**\n * Line for under a node with children\n */\n.rst__lineChildren {\n height: 100%;\n display: inline-block;\n position: absolute;\n}\n.rst__lineChildren::after {\n content: '';\n position: absolute;\n background-color: black;\n width: 1px;\n left: 50%;\n bottom: 0;\n height: 10px;\n}\n\n.rst__rtl.rst__lineChildren::after {\n right: 50%;\n left: initial;\n}\n",""]),module.exports=exports},"./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/placeholder-renderer-default.css":function(module,exports,__webpack_require__){(exports=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".rst__placeholder {\n position: relative;\n height: 68px;\n max-width: 300px;\n padding: 10px;\n}\n.rst__placeholder,\n.rst__placeholder > * {\n box-sizing: border-box;\n}\n.rst__placeholder::before {\n border: 3px dashed #d9d9d9;\n content: '';\n position: absolute;\n top: 5px;\n right: 5px;\n bottom: 5px;\n left: 5px;\n z-index: -1;\n}\n\n/**\n * The outline of where the element will go if dropped, displayed while dragging\n */\n.rst__placeholderLandingPad,\n.rst__placeholderCancelPad {\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n.rst__placeholderLandingPad *,\n.rst__placeholderCancelPad * {\n opacity: 0 !important;\n}\n.rst__placeholderLandingPad::before,\n.rst__placeholderCancelPad::before {\n background-color: lightblue;\n border-color: white;\n}\n\n/**\n * Alternate appearance of the landing pad when the dragged location is invalid\n */\n.rst__placeholderCancelPad::before {\n background-color: #e6a8ad;\n}\n",""]),module.exports=exports},"./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/react-sortable-tree.css":function(module,exports,__webpack_require__){(exports=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,"/**\n * Extra class applied to VirtualScroll through className prop\n */\n.rst__virtualScrollOverride {\n overflow: auto !important;\n}\n.rst__virtualScrollOverride * {\n box-sizing: border-box;\n}\n\n.ReactVirtualized__Grid__innerScrollContainer {\n overflow: visible !important;\n}\n\n.rst__rtl .ReactVirtualized__Grid__innerScrollContainer {\n direction: rtl;\n}\n\n.ReactVirtualized__Grid {\n outline: none;\n}\n",""]),module.exports=exports},"./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/tree-node.css":function(module,exports,__webpack_require__){(exports=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".rst__node {\n min-width: 100%;\n white-space: nowrap;\n position: relative;\n text-align: left;\n height: 62px;\n}\n\n.rst__node.rst__rtl {\n text-align: right;\n}\n\n.rst__nodeContent {\n position: absolute;\n top: 0;\n bottom: 0;\n}\n\n/* ==========================================================================\n Scaffold\n\n Line-overlaid blocks used for showing the tree structure\n ========================================================================== */\n.rst__lineBlock,\n.rst__absoluteLineBlock {\n height: 100%;\n position: relative;\n display: inline-block;\n}\n\n.rst__absoluteLineBlock {\n position: absolute;\n top: 0;\n}\n\n.rst__lineHalfHorizontalRight::before,\n.rst__lineFullVertical::after,\n.rst__lineHalfVerticalTop::after,\n.rst__lineHalfVerticalBottom::after {\n position: absolute;\n content: '';\n background-color: black;\n}\n\n/**\n * +-----+\n * | |\n * | +--+\n * | |\n * +-----+\n */\n.rst__lineHalfHorizontalRight::before {\n height: 1px;\n top: 50%;\n right: 0;\n width: 50%;\n}\n\n.rst__rtl.rst__lineHalfHorizontalRight::before {\n left: 0;\n right: initial;\n}\n\n/**\n * +--+--+\n * | | |\n * | | |\n * | | |\n * +--+--+\n */\n.rst__lineFullVertical::after,\n.rst__lineHalfVerticalTop::after,\n.rst__lineHalfVerticalBottom::after {\n width: 1px;\n left: 50%;\n top: 0;\n height: 100%;\n}\n\n/**\n * +--+--+\n * | | |\n * | | |\n * | | |\n * +--+--+\n */\n.rst__rtl.rst__lineFullVertical::after,\n.rst__rtl.rst__lineHalfVerticalTop::after,\n.rst__rtl.rst__lineHalfVerticalBottom::after {\n right: 50%;\n left: initial;\n}\n\n/**\n * +-----+\n * | | |\n * | + |\n * | |\n * +-----+\n */\n.rst__lineHalfVerticalTop::after {\n height: 50%;\n}\n\n/**\n * +-----+\n * | |\n * | + |\n * | | |\n * +-----+\n */\n.rst__lineHalfVerticalBottom::after {\n top: auto;\n bottom: 0;\n height: 50%;\n}\n\n/* Highlight line for pointing to dragged row destination\n ========================================================================== */\n/**\n * +--+--+\n * | | |\n * | | |\n * | | |\n * +--+--+\n */\n.rst__highlightLineVertical {\n z-index: 3;\n}\n.rst__highlightLineVertical::before {\n position: absolute;\n content: '';\n background-color: #36c2f6;\n width: 8px;\n margin-left: -4px;\n left: 50%;\n top: 0;\n height: 100%;\n}\n\n.rst__rtl.rst__highlightLineVertical::before {\n margin-left: initial;\n margin-right: -4px;\n left: initial;\n right: 50%;\n}\n\n@keyframes arrow-pulse {\n 0% {\n transform: translate(0, 0);\n opacity: 0;\n }\n 30% {\n transform: translate(0, 300%);\n opacity: 1;\n }\n 70% {\n transform: translate(0, 700%);\n opacity: 1;\n }\n 100% {\n transform: translate(0, 1000%);\n opacity: 0;\n }\n}\n.rst__highlightLineVertical::after {\n content: '';\n position: absolute;\n height: 0;\n margin-left: -4px;\n left: 50%;\n top: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid white;\n animation: arrow-pulse 1s infinite linear both;\n}\n\n.rst__rtl.rst__highlightLineVertical::after {\n margin-left: initial;\n margin-right: -4px;\n right: 50%;\n left: initial;\n}\n\n/**\n * +-----+\n * | |\n * | +--+\n * | | |\n * +--+--+\n */\n.rst__highlightTopLeftCorner::before {\n z-index: 3;\n content: '';\n position: absolute;\n border-top: solid 8px #36c2f6;\n border-left: solid 8px #36c2f6;\n box-sizing: border-box;\n height: calc(50% + 4px);\n top: 50%;\n margin-top: -4px;\n right: 0;\n width: calc(50% + 4px);\n}\n\n.rst__rtl.rst__highlightTopLeftCorner::before {\n border-right: solid 8px #36c2f6;\n border-left: none;\n left: 0;\n right: initial;\n}\n\n/**\n * +--+--+\n * | | |\n * | | |\n * | +->|\n * +-----+\n */\n.rst__highlightBottomLeftCorner {\n z-index: 3;\n}\n.rst__highlightBottomLeftCorner::before {\n content: '';\n position: absolute;\n border-bottom: solid 8px #36c2f6;\n border-left: solid 8px #36c2f6;\n box-sizing: border-box;\n height: calc(100% + 4px);\n top: 0;\n right: 12px;\n width: calc(50% - 8px);\n}\n\n.rst__rtl.rst__highlightBottomLeftCorner::before {\n border-right: solid 8px #36c2f6;\n border-left: none;\n left: 12px;\n right: initial;\n}\n\n.rst__highlightBottomLeftCorner::after {\n content: '';\n position: absolute;\n height: 0;\n right: 0;\n top: 100%;\n margin-top: -12px;\n border-top: 12px solid transparent;\n border-bottom: 12px solid transparent;\n border-left: 12px solid #36c2f6;\n}\n\n.rst__rtl.rst__highlightBottomLeftCorner::after {\n left: 0;\n right: initial;\n border-right: 12px solid #36c2f6;\n border-left: none;\n}\n",""]),module.exports=exports},"./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./stories/generic.css":function(module,exports,__webpack_require__){(exports=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sourceLink,\n.sandboxButton {\n position: fixed;\n top: 0;\n right: 0;\n padding: 130px 50px 5px 50px;\n font: 10px helvetica, sans-serif;\n display: inline-block;\n background: rgb(12, 35, 194);\n color: #fff;\n text-decoration: none;\n transform: translate(50%, -50%) rotateZ(45deg);\n transition: background 100ms;\n}\n.sourceLink:hover:not(:active) {\n background: rgb(102, 135, 244);\n}\n\n.sandboxButton {\n top: 30px;\n right: 30px;\n background: rgb(12, 194, 68);\n padding: 130px 100px 5px 100px;\n border: none;\n cursor: pointer;\n outline: none;\n}\n.sandboxButton:hover:not(:active) {\n background: rgb(128, 242, 137);\n}\n",""]),module.exports=exports},"./generated-stories-entry.js":function(module,exports,__webpack_require__){"use strict";(function(module){(0,__webpack_require__("./.yarn/__virtual__/@storybook-react-virtual-fe0c6cff82/3/.yarn/berry/cache/@storybook-react-npm-6.5.16-e176ae1aaf-10c0.zip/node_modules/@storybook/react/dist/esm/client/index.js").configure)([__webpack_require__("./stories sync ^\\.[\\\\/](?:index\\.js)$")],module,!1)}).call(this,__webpack_require__("./.yarn/__virtual__/webpack-virtual-cee1221758/3/.yarn/berry/cache/webpack-npm-4.46.0-a8158cfa7f-10c0.zip/node_modules/webpack/buildin/module.js")(module))},"./src/node-renderer-default.css":function(module,exports,__webpack_require__){var api=__webpack_require__("./.yarn/__virtual__/style-loader-virtual-6fbe5297c7/3/.yarn/berry/cache/style-loader-npm-1.3.0-2047b33843-10c0.zip/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/node-renderer-default.css");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/placeholder-renderer-default.css":function(module,exports,__webpack_require__){var api=__webpack_require__("./.yarn/__virtual__/style-loader-virtual-6fbe5297c7/3/.yarn/berry/cache/style-loader-npm-1.3.0-2047b33843-10c0.zip/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/placeholder-renderer-default.css");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/react-sortable-tree.css":function(module,exports,__webpack_require__){var api=__webpack_require__("./.yarn/__virtual__/style-loader-virtual-6fbe5297c7/3/.yarn/berry/cache/style-loader-npm-1.3.0-2047b33843-10c0.zip/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./.yarn/__virtual__/css-loader-virtual-e72e6b9f7f/3/.yarn/berry/cache/css-loader-npm-3.6.0-3394f37d07-10c0.zip/node_modules/css-loader/dist/cjs.js!./.yarn/__virtual__/postcss-loader-virtual-256e885c38/3/.yarn/berry/cache/postcss-loader-npm-4.3.0-3e7af086e3-10c0.zip/node_modules/postcss-loader/dist/cjs.js?!./src/react-sortable-tree.css");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/react-sortable-tree.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return SortableTreeWithoutDndContext}));var react=__webpack_require__("../../.yarn/berry/cache/react-npm-17.0.2-99ba37d931-10c0.zip/node_modules/react/index.js"),react_default=__webpack_require__.n(react),react_dnd_scrollzone=__webpack_require__("./.yarn/__virtual__/@nosferatu500-react-dnd-scrollzone-virtual-75cb17e9a4/3/.yarn/berry/cache/@nosferatu500-react-dnd-scrollzone-npm-2.0.10-097e4cf91e-10c0.zip/node_modules/@nosferatu500/react-dnd-scrollzone/index.js"),react_dnd_scrollzone_default=__webpack_require__.n(react_dnd_scrollzone),lodash_isequal=__webpack_require__("../../.yarn/berry/cache/lodash.isequal-npm-4.5.0-f8b0f64d63-10c0.zip/node_modules/lodash.isequal/index.js"),lodash_isequal_default=__webpack_require__.n(lodash_isequal),DndContext=__webpack_require__("./.yarn/__virtual__/react-dnd-virtual-3ab74db10e/3/.yarn/berry/cache/react-dnd-npm-14.0.4-e78f537ec4-10c0.zip/node_modules/react-dnd/dist/esm/core/DndContext.js"),DndProvider=__webpack_require__("./.yarn/__virtual__/react-dnd-virtual-3ab74db10e/3/.yarn/berry/cache/react-dnd-npm-14.0.4-e78f537ec4-10c0.zip/node_modules/react-dnd/dist/esm/core/DndProvider.js"),esm=__webpack_require__("../../.yarn/berry/cache/react-dnd-html5-backend-npm-14.1.0-4ade60a8db-10c0.zip/node_modules/react-dnd-html5-backend/dist/esm/index.js"),dist=__webpack_require__("./.yarn/__virtual__/react-virtuoso-virtual-84df583128/3/.yarn/berry/cache/react-virtuoso-npm-4.3.1-c4088a57f5-10c0.zip/node_modules/react-virtuoso/dist/index.mjs"),classnames=function(){for(var _len=arguments.length,classes=new Array(_len),_key=0;_key<_len;_key++)classes[_key]=arguments[_key];return classes.filter(Boolean).join(" ")},tree_data_utils=__webpack_require__("./src/utils/tree-data-utils.ts"),jsx_runtime=(__webpack_require__("./src/node-renderer-default.css"),__webpack_require__("../../.yarn/berry/cache/react-npm-17.0.2-99ba37d931-10c0.zip/node_modules/react/jsx-runtime.js")),_excluded=["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"];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}var defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:void 0,buttons:[],className:"",style:{},parentNode:void 0,draggedNode:void 0,canDrop:!1,title:void 0,subtitle:void 0,rowDirection:"ltr"},NodeRendererDefault=function(props){var handle,_props=props=Object.assign({},defaultProps,props),scaffoldBlockPxWidth=_props.scaffoldBlockPxWidth,toggleChildrenVisibility=_props.toggleChildrenVisibility,connectDragPreview=_props.connectDragPreview,connectDragSource=_props.connectDragSource,isDragging=_props.isDragging,canDrop=_props.canDrop,canDrag=_props.canDrag,node=_props.node,title=_props.title,subtitle=_props.subtitle,draggedNode=_props.draggedNode,path=_props.path,treeIndex=_props.treeIndex,isSearchMatch=_props.isSearchMatch,isSearchFocus=_props.isSearchFocus,buttons=_props.buttons,className=_props.className,style=_props.style,didDrop=_props.didDrop,rowDirection=(_props.treeId,_props.isOver,_props.parentNode,_props.rowDirection),otherProps=_objectWithoutProperties(_props,_excluded),nodeTitle=title||node.title,nodeSubtitle=subtitle||node.subtitle,rowDirectionClass="rtl"===rowDirection?"rst__rtl":void 0;canDrag&&(handle="function"==typeof node.children&&node.expanded?Object(jsx_runtime.jsx)("div",{className:"rst__loadingHandle",children:Object(jsx_runtime.jsx)("div",{className:"rst__loadingCircle",children:Array.from({length:12}).map((function(_,index){return Object(jsx_runtime.jsx)("div",{className:classnames("rst__loadingCirclePoint",null!=rowDirectionClass?rowDirectionClass:"")},index)}))})}):connectDragSource(Object(jsx_runtime.jsx)("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var isDraggedDescendant=draggedNode&&Object(tree_data_utils.i)(draggedNode,node),isLandingPadActive=!didDrop&&isDragging,buttonStyle={left:-.5*scaffoldBlockPxWidth,right:0};return"rtl"===rowDirection&&(buttonStyle={right:-.5*scaffoldBlockPxWidth,left:0}),Object(jsx_runtime.jsxs)("div",Object.assign({style:{height:"100%"}},otherProps,{children:[toggleChildrenVisibility&&node.children&&(node.children.length>0||"function"==typeof node.children)&&Object(jsx_runtime.jsxs)("div",{children:[Object(jsx_runtime.jsx)("button",{type:"button","aria-label":node.expanded?"Collapse":"Expand",className:classnames(node.expanded?"rst__collapseButton":"rst__expandButton",null!=rowDirectionClass?rowDirectionClass:""),style:buttonStyle,onClick:function(){return toggleChildrenVisibility({node:node,path:path,treeIndex:treeIndex})}}),node.expanded&&!isDragging&&Object(jsx_runtime.jsx)("div",{style:{width:scaffoldBlockPxWidth},className:classnames("rst__lineChildren",null!=rowDirectionClass?rowDirectionClass:"")})]}),Object(jsx_runtime.jsx)("div",{className:classnames("rst__rowWrapper",null!=rowDirectionClass?rowDirectionClass:""),children:connectDragPreview(Object(jsx_runtime.jsxs)("div",{className:classnames("rst__row",isLandingPadActive?"rst__rowLandingPad":"",isLandingPadActive&&!canDrop?"rst__rowCancelPad":"",isSearchMatch?"rst__rowSearchMatch":"",isSearchFocus?"rst__rowSearchFocus":"",null!=rowDirectionClass?rowDirectionClass:"",null!=className?className:""),style:Object.assign({opacity:isDraggedDescendant?.5:1},style),children:[handle,Object(jsx_runtime.jsxs)("div",{className:classnames("rst__rowContents",canDrag?"":"rst__rowContentsDragDisabled",null!=rowDirectionClass?rowDirectionClass:""),children:[Object(jsx_runtime.jsxs)("div",{className:classnames("rst__rowLabel",null!=rowDirectionClass?rowDirectionClass:""),children:[Object(jsx_runtime.jsx)("span",{className:classnames("rst__rowTitle",node.subtitle?"rst__rowTitleWithSubtitle":""),children:"function"==typeof nodeTitle?nodeTitle({node:node,path:path,treeIndex:treeIndex}):nodeTitle}),nodeSubtitle&&Object(jsx_runtime.jsx)("span",{className:"rst__rowSubtitle",children:"function"==typeof nodeSubtitle?nodeSubtitle({node:node,path:path,treeIndex:treeIndex}):nodeSubtitle})]}),Object(jsx_runtime.jsx)("div",{className:"rst__rowToolbar",children:null==buttons?void 0:buttons.map((function(btn,index){return Object(jsx_runtime.jsx)("div",{className:"rst__toolbarButton",children:btn},index)}))})]})]}))})]}))};NodeRendererDefault.displayName="NodeRendererDefault";var src_node_renderer_default=NodeRendererDefault,placeholder_renderer_default_defaultProps=(__webpack_require__("./src/placeholder-renderer-default.css"),{isOver:!1,canDrop:!1}),PlaceholderRendererDefault=function(props){var _props=props=Object.assign({},placeholder_renderer_default_defaultProps,props),canDrop=_props.canDrop,isOver=_props.isOver;return Object(jsx_runtime.jsx)("div",{className:classnames("rst__placeholder",canDrop?"rst__placeholderLandingPad":"",canDrop&&!isOver?"rst__placeholderCancelPad":"")})};PlaceholderRendererDefault.displayName="PlaceholderRendererDefault";var src_placeholder_renderer_default=PlaceholderRendererDefault,tree_node_excluded=(__webpack_require__("./src/react-sortable-tree.css"),__webpack_require__("./src/tree-node.css"),["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","rowHeight","treeId","getPrevRow","node","path","rowDirection"]);function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}(arr,i)||_unsupportedIterableToArray(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 _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}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 tree_node_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function tree_node_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,(arg=descriptor.key,key=void 0,"symbol"==typeof(key=function _toPrimitive(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string"))?key:String(key)),descriptor)}var arg,key}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function _possibleConstructorReturn(self,call){if(call&&("object"==typeof call||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(this,result)}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var tree_node_defaultProps={swapFrom:void 0,swapDepth:void 0,swapLength:void 0,canDrop:!1,draggedNode:void 0,rowDirection:"ltr"},tree_node_TreeNodeComponent=function(_Component){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(TreeNodeComponent,_Component);var _super=_createSuper(TreeNodeComponent);function TreeNodeComponent(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TreeNodeComponent),_super.apply(this,arguments)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TreeNodeComponent,[{key:"render",value:function render(){var _step,_this=this,props=Object.assign({},tree_node_defaultProps,this.props),children=props.children,listIndex=props.listIndex,swapFrom=props.swapFrom,swapLength=props.swapLength,swapDepth=props.swapDepth,scaffoldBlockPxWidth=props.scaffoldBlockPxWidth,lowerSiblingCounts=props.lowerSiblingCounts,connectDropTarget=props.connectDropTarget,isOver=props.isOver,draggedNode=props.draggedNode,canDrop=props.canDrop,treeIndex=props.treeIndex,rowHeight=props.rowHeight,_node=(props.treeId,props.getPrevRow,props.node),_path=props.path,rowDirection=props.rowDirection,otherProps=tree_node_objectWithoutProperties(props,tree_node_excluded),rowDirectionClass="rtl"===rowDirection?"rst__rtl":void 0,scaffoldBlockCount=lowerSiblingCounts.length,scaffold=[],_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(lowerSiblingCounts.entries());try{for(_iterator.s();!(_step=_iterator.n()).done;){var _ref2=_slicedToArray(_step.value,2),i=_ref2[0],lowerSiblingCount=_ref2[1],lineClass="";if(lowerSiblingCount>0?lineClass=0===listIndex?"rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":i===scaffoldBlockCount-1?"rst__lineHalfHorizontalRight rst__lineFullVertical":"rst__lineFullVertical":0===listIndex?lineClass="rst__lineHalfHorizontalRight":i===scaffoldBlockCount-1&&(lineClass="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),scaffold.push(Object(jsx_runtime.jsx)("div",{style:{width:scaffoldBlockPxWidth},className:classnames("rst__lineBlock",lineClass,null!=rowDirectionClass?rowDirectionClass:"")},`pre_${1+i}`)),treeIndex!==listIndex&&i===swapDepth){var highlightLineClass="";highlightLineClass=listIndex===swapFrom+swapLength-1?"rst__highlightBottomLeftCorner":treeIndex===swapFrom?"rst__highlightTopLeftCorner":"rst__highlightLineVertical";var _style="rtl"===rowDirection?{width:scaffoldBlockPxWidth,right:scaffoldBlockPxWidth*i}:{width:scaffoldBlockPxWidth,left:scaffoldBlockPxWidth*i};scaffold.push(Object(jsx_runtime.jsx)("div",{style:_style,className:classnames("rst__absoluteLineBlock",highlightLineClass,null!=rowDirectionClass?rowDirectionClass:"")},i))}}}catch(err){_iterator.e(err)}finally{_iterator.f()}var style="rtl"===rowDirection?{right:scaffoldBlockPxWidth*scaffoldBlockCount}:{left:scaffoldBlockPxWidth*scaffoldBlockCount},calculatedRowHeight=rowHeight;return"function"==typeof rowHeight&&(calculatedRowHeight=rowHeight(treeIndex,_node,_path)),connectDropTarget(Object(jsx_runtime.jsxs)("div",Object.assign({},otherProps,{style:{height:`${calculatedRowHeight}px`},className:classnames("rst__node",null!=rowDirectionClass?rowDirectionClass:""),ref:function(node){return _this.node=node},children:[scaffold,Object(jsx_runtime.jsx)("div",{className:"rst__nodeContent",style:style,children:react.Children.map(children,(function(child){return Object(react.cloneElement)(child,{isOver:isOver,canDrop:canDrop,draggedNode:draggedNode})}))})]})))}}]),TreeNodeComponent}(react.Component),src_tree_node=tree_node_TreeNodeComponent,tree_placeholder_excluded=["children","connectDropTarget","treeId","drop"];function tree_placeholder_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function tree_placeholder_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}var tree_placeholder_defaultProps={canDrop:!1,draggedNode:void 0},tree_placeholder=function(props){var _props=props=Object.assign({},tree_placeholder_defaultProps,props),children=_props.children,connectDropTarget=_props.connectDropTarget,otherProps=(_props.treeId,_props.drop,tree_placeholder_objectWithoutProperties(_props,tree_placeholder_excluded));return connectDropTarget(Object(jsx_runtime.jsx)("div",{children:react.Children.map(children,(function(child){return Object(react.cloneElement)(child,Object.assign({},otherProps))}))}))},getReactElementText=function(parent){return"string"==typeof parent?parent:void 0===parent||"object"!=typeof parent||!parent.props||!parent.props.children||"string"!=typeof parent.props.children&&"object"!=typeof parent.props.children?"":"string"==typeof parent.props.children?parent.props.children:parent.props.children.map((function(child){return getReactElementText(child)})).join("")},stringSearch=function(key,searchQuery,node,path,treeIndex){return"function"==typeof node[key]?String(node[key]({node:node,path:path,treeIndex:treeIndex})).includes(searchQuery):"object"==typeof node[key]?getReactElementText(node[key]).includes(searchQuery):node[key]&&String(node[key]).includes(searchQuery)},defaultSearchMethod=function(_ref2){var node=_ref2.node,path=_ref2.path,treeIndex=_ref2.treeIndex,searchQuery=_ref2.searchQuery;return stringSearch("title",searchQuery,node,path,treeIndex)||stringSearch("subtitle",searchQuery,node,path,treeIndex)},DragSource=__webpack_require__("./.yarn/__virtual__/react-dnd-virtual-3ab74db10e/3/.yarn/berry/cache/react-dnd-npm-14.0.4-e78f537ec4-10c0.zip/node_modules/react-dnd/dist/esm/decorators/DragSource.js"),DropTarget=__webpack_require__("./.yarn/__virtual__/react-dnd-virtual-3ab74db10e/3/.yarn/berry/cache/react-dnd-npm-14.0.4-e78f537ec4-10c0.zip/node_modules/react-dnd/dist/esm/decorators/DropTarget.js"),rafId=0,nodeDragSourcePropInjection=function(connect,monitor){return{connectDragSource:connect.dragSource(),connectDragPreview:connect.dragPreview(),isDragging:monitor.isDragging(),didDrop:monitor.didDrop()}},propInjection=function(connect,monitor){var dragged=monitor.getItem();return{connectDropTarget:connect.dropTarget(),isOver:monitor.isOver(),canDrop:monitor.canDrop(),draggedNode:dragged?dragged.node:void 0}},getTargetDepth=function(dropTargetProps,monitor,component,canNodeHaveChildren,treeId,maxDepth){var blocksOffset,dropTargetDepth=0,rowAbove=dropTargetProps.getPrevRow();if(rowAbove){var node=rowAbove.node,path=rowAbove.path;!canNodeHaveChildren(node)&&(path=path.slice(0,-1)),dropTargetDepth=Math.min(path.length,dropTargetProps.path.length)}var dragSourceInitialDepth=(monitor.getItem().path||[]).length;if(monitor.getItem().treeId===treeId){var direction="rtl"===dropTargetProps.rowDirection?-1:1;blocksOffset=Math.round(direction*monitor.getDifferenceFromInitialOffset().x/dropTargetProps.scaffoldBlockPxWidth)}else if(dragSourceInitialDepth=0,component){var relativePosition=component.node.getBoundingClientRect(),leftShift=monitor.getSourceClientOffset().x-relativePosition.left;blocksOffset=Math.round(leftShift/dropTargetProps.scaffoldBlockPxWidth)}else blocksOffset=dropTargetProps.path.length;var targetDepth=Math.min(dropTargetDepth,Math.max(0,dragSourceInitialDepth+blocksOffset-1));if(void 0!==maxDepth&&void 0!==maxDepth){var draggedNode=monitor.getItem().node,draggedChildDepth=Object(tree_data_utils.d)(draggedNode);targetDepth=Math.max(0,Math.min(targetDepth,maxDepth-draggedChildDepth-1))}return targetDepth},wrapTarget=function(el,canNodeHaveChildren,treeId,maxDepth,treeRefcanDrop,drop,dragHover,dndType,draggingTreeData,treeReftreeData,getNodeKey){var nodeDropTarget={drop:function(dropTargetProps,monitor,component){var result={node:monitor.getItem().node,path:monitor.getItem().path,treeIndex:monitor.getItem().treeIndex,treeId:treeId,minimumTreeIndex:dropTargetProps.treeIndex,depth:getTargetDepth(dropTargetProps,monitor,component,canNodeHaveChildren,treeId,maxDepth)};return drop(result),result},hover:function(dropTargetProps,monitor,component){var targetDepth=getTargetDepth(dropTargetProps,monitor,component,canNodeHaveChildren,treeId,maxDepth),draggedNode=monitor.getItem().node;(dropTargetProps.node!==draggedNode||targetDepth!==dropTargetProps.path.length-1)&&(cancelAnimationFrame(rafId),rafId=requestAnimationFrame((function(){var item=monitor.getItem();item&&monitor.isOver()&&dragHover({node:draggedNode,path:item.path,minimumTreeIndex:dropTargetProps.listIndex,depth:targetDepth})})))},canDrop:function(dropTargetProps,monitor){return function(dropTargetProps,monitor,canNodeHaveChildren,treeId,maxDepth,treeRefcanDrop,draggingTreeData,treeReftreeData,getNodeKey){if(!monitor.isOver())return!1;var rowAbove=dropTargetProps.getPrevRow(),abovePath=rowAbove?rowAbove.path:[],aboveNode=rowAbove?rowAbove.node:{};return!(getTargetDepth(dropTargetProps,monitor,void 0,canNodeHaveChildren,treeId,maxDepth)>=abovePath.length&&"function"==typeof aboveNode.children)&&("function"!=typeof treeRefcanDrop||treeRefcanDrop({node:monitor.getItem().node,prevPath:monitor.getItem().path,prevParent:monitor.getItem().parentNode,prevTreeIndex:monitor.getItem().treeIndex,nextPath:dropTargetProps.children.props.path,nextParent:dropTargetProps.children.props.parentNode,nextTreeIndex:dropTargetProps.children.props.treeIndex}))}(dropTargetProps,monitor,canNodeHaveChildren,treeId,maxDepth,treeRefcanDrop)}};return Object(DropTarget.a)(dndType,nodeDropTarget,propInjection)(el)};function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return generic_utils_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function generic_utils_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return generic_utils_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 generic_utils_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function generic_utils_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}var memoize=function(f){var savedResult,savedArgsArray=[],savedKeysArray=[];return function(args){var keysArray=Object.keys(args).sort(),argsArray=keysArray.map((function(key){return args[key]}));return(argsArray.length!==savedArgsArray.length||argsArray.some((function(arg,index){return arg!==savedArgsArray[index]}))||keysArray.some((function(key,index){return key!==savedKeysArray[index]})))&&(savedArgsArray=argsArray,savedKeysArray=keysArray,savedResult=f(args)),savedResult}},memoizedInsertNode=memoize(tree_data_utils.h),memoizedGetFlatDataFromTree=memoize(tree_data_utils.f),memoizedGetDescendantCount=memoize(tree_data_utils.e),react_sortable_tree_excluded=["dragDropManager","rowHeight"];function react_sortable_tree_slicedToArray(arr,i){return function react_sortable_tree_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function react_sortable_tree_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}(arr,i)||react_sortable_tree_unsupportedIterableToArray(arr,i)||function react_sortable_tree_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 react_sortable_tree_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return react_sortable_tree_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?react_sortable_tree_arrayLikeToArray(o,minLen):void 0}}function react_sortable_tree_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 react_sortable_tree_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function react_sortable_tree_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 react_sortable_tree_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,(arg=descriptor.key,key=void 0,"symbol"==typeof(key=function react_sortable_tree_toPrimitive(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string"))?key:String(key)),descriptor)}var arg,key}function react_sortable_tree_setPrototypeOf(o,p){return react_sortable_tree_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},react_sortable_tree_setPrototypeOf(o,p)}function react_sortable_tree_createSuper(Derived){var hasNativeReflectConstruct=function react_sortable_tree_isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var result,Super=react_sortable_tree_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=react_sortable_tree_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function react_sortable_tree_possibleConstructorReturn(self,call){if(call&&("object"==typeof call||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return react_sortable_tree_assertThisInitialized(self)}(this,result)}}function react_sortable_tree_assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");retu