@next-bricks/advanced 0.23.1 → 0.24.1
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/dist/bricks.json +8 -7
- package/dist/chunks/1024.c739aadf.js +2 -0
- package/dist/chunks/{6473.bd43324e.js.map → 1024.c739aadf.js.map} +1 -1
- package/dist/chunks/1036.ef9d8acc.js +3 -0
- package/dist/chunks/1036.ef9d8acc.js.map +1 -0
- package/dist/chunks/1360.5c685109.js +3 -0
- package/dist/chunks/1360.5c685109.js.LICENSE.txt +311 -0
- package/dist/chunks/1360.5c685109.js.map +1 -0
- package/dist/chunks/1372.010182e4.js +2 -0
- package/dist/chunks/{6653.19beaef4.js.map → 1372.010182e4.js.map} +1 -1
- package/dist/chunks/1564.5b85171f.js +2 -0
- package/dist/chunks/{2754.03f2c36e.js.map → 1564.5b85171f.js.map} +1 -1
- package/dist/chunks/1772.c11be1f7.js +2 -0
- package/dist/chunks/{9431.d788c477.js.map → 1772.c11be1f7.js.map} +1 -1
- package/dist/chunks/1776.ffdc95be.js +2 -0
- package/dist/chunks/{2024.670e2e7e.js.map → 1776.ffdc95be.js.map} +1 -1
- package/dist/chunks/1832.4c152234.js +2 -0
- package/dist/chunks/1832.4c152234.js.map +1 -0
- package/dist/chunks/2356.ab7169ce.js +3 -0
- package/dist/chunks/2356.ab7169ce.js.map +1 -0
- package/dist/chunks/2364.bbce4b80.js +2 -0
- package/dist/chunks/{2553.5cdf2c85.js.map → 2364.bbce4b80.js.map} +1 -1
- package/dist/chunks/242.54b81304.js +2 -0
- package/dist/chunks/242.54b81304.js.map +1 -0
- package/dist/chunks/2632.a7734d2d.js +2 -0
- package/dist/chunks/{4991.bbe257a7.js.map → 2632.a7734d2d.js.map} +1 -1
- package/dist/chunks/272.8537c9ef.js +2 -0
- package/dist/chunks/272.8537c9ef.js.map +1 -0
- package/dist/chunks/276.bb7612e9.js +2 -0
- package/dist/chunks/276.bb7612e9.js.map +1 -0
- package/dist/chunks/2976.e390ae87.js +2 -0
- package/dist/chunks/2976.e390ae87.js.map +1 -0
- package/dist/chunks/3092.1bb58ec9.js +2 -0
- package/dist/chunks/3092.1bb58ec9.js.map +1 -0
- package/dist/chunks/3648.1f36c426.js +2 -0
- package/dist/chunks/3648.1f36c426.js.map +1 -0
- package/dist/chunks/3680.57f71880.js +2 -0
- package/dist/chunks/{7672.2e8d2522.js.map → 3680.57f71880.js.map} +1 -1
- package/dist/chunks/3752.086e6189.js +2 -0
- package/dist/chunks/{8498.209384ac.js.map → 3752.086e6189.js.map} +1 -1
- package/dist/chunks/3811.654e48c5.js +2 -0
- package/dist/chunks/3811.654e48c5.js.map +1 -0
- package/dist/chunks/4424.4d0a67fd.js +2 -0
- package/dist/chunks/4424.4d0a67fd.js.map +1 -0
- package/dist/chunks/4524.0b411cf3.js +2 -0
- package/dist/chunks/{4275.5ebcd047.js.map → 4524.0b411cf3.js.map} +1 -1
- package/dist/chunks/4847.9eccad5c.js +2 -0
- package/dist/chunks/4847.9eccad5c.js.map +1 -0
- package/dist/chunks/4944.b2560e0a.js +2 -0
- package/dist/chunks/4944.b2560e0a.js.map +1 -0
- package/dist/chunks/5356.b79132fd.js +2 -0
- package/dist/chunks/5356.b79132fd.js.map +1 -0
- package/dist/chunks/5440.c879c5e3.js +3 -0
- package/dist/chunks/5440.c879c5e3.js.LICENSE.txt +20 -0
- package/dist/chunks/5440.c879c5e3.js.map +1 -0
- package/dist/chunks/5668.6faa0344.js +3 -0
- package/dist/chunks/5668.6faa0344.js.map +1 -0
- package/dist/chunks/6056.df51c578.js +2 -0
- package/dist/chunks/{2179.29d3975a.js.map → 6056.df51c578.js.map} +1 -1
- package/dist/chunks/6064.b9dbeae3.js +2 -0
- package/dist/chunks/{5725.ee7694ea.js.map → 6064.b9dbeae3.js.map} +1 -1
- package/dist/chunks/6192.d860e30b.js +2 -0
- package/dist/chunks/6192.d860e30b.js.map +1 -0
- package/dist/chunks/6228.4c3745ef.js +2 -0
- package/dist/chunks/6228.4c3745ef.js.map +1 -0
- package/dist/chunks/6352.b1e06264.js +2 -0
- package/dist/chunks/6352.b1e06264.js.map +1 -0
- package/dist/chunks/6408.d9f4aefe.js +2 -0
- package/dist/chunks/6408.d9f4aefe.js.map +1 -0
- package/dist/chunks/6595.117bb366.js +3 -0
- package/dist/chunks/6595.117bb366.js.LICENSE.txt +1 -0
- package/dist/chunks/6595.117bb366.js.map +1 -0
- package/dist/chunks/6736.1c6f8b87.js +3 -0
- package/dist/chunks/{8008.4a8beed5.js.map → 6736.1c6f8b87.js.map} +1 -1
- package/dist/chunks/6804.6adb98c9.js +2 -0
- package/dist/chunks/6804.6adb98c9.js.map +1 -0
- package/dist/chunks/6912.93b9c9ca.js +2 -0
- package/dist/chunks/6912.93b9c9ca.js.map +1 -0
- package/dist/chunks/7228.522cadac.js +2 -0
- package/dist/chunks/7228.522cadac.js.map +1 -0
- package/dist/chunks/7476.23910b38.js +2 -0
- package/dist/chunks/7476.23910b38.js.map +1 -0
- package/dist/chunks/7824.ec40916f.js +3 -0
- package/dist/chunks/7824.ec40916f.js.map +1 -0
- package/dist/chunks/7861.ca7ca0db.js +2 -0
- package/dist/chunks/{5381.d5d5893d.js.map → 7861.ca7ca0db.js.map} +1 -1
- package/dist/chunks/7928.a530d2f0.js +3 -0
- package/dist/chunks/{6635.67c4a68b.js.map → 7928.a530d2f0.js.map} +1 -1
- package/dist/chunks/8060.03d46aaa.js +2 -0
- package/dist/chunks/8060.03d46aaa.js.map +1 -0
- package/dist/chunks/8064.cf8c5e0d.js +2 -0
- package/dist/chunks/8064.cf8c5e0d.js.map +1 -0
- package/dist/chunks/820.af44abd8.js +2 -0
- package/dist/chunks/820.af44abd8.js.map +1 -0
- package/dist/chunks/8440.0be611c4.js +2 -0
- package/dist/chunks/{6205.584df0fa.js.map → 8440.0be611c4.js.map} +1 -1
- package/dist/chunks/8492.8dcdccf5.js +2 -0
- package/dist/chunks/{5636.35aa63cf.js.map → 8492.8dcdccf5.js.map} +1 -1
- package/dist/chunks/{5628.621f7c8f.js → 856.aa62493a.js} +2 -2
- package/dist/chunks/856.aa62493a.js.map +1 -0
- package/dist/chunks/8644.8e34e2b5.js +2 -0
- package/dist/chunks/{4049.8963c265.js.map → 8644.8e34e2b5.js.map} +1 -1
- package/dist/chunks/8648.2c33865e.js +2 -0
- package/dist/chunks/8648.2c33865e.js.map +1 -0
- package/dist/chunks/872.b8565f40.js +2 -0
- package/dist/chunks/872.b8565f40.js.map +1 -0
- package/dist/chunks/8732.e26dabad.js +2 -0
- package/dist/chunks/8732.e26dabad.js.map +1 -0
- package/dist/chunks/8944.11c3b93b.js +2 -0
- package/dist/chunks/{4795.8cfdba50.js.map → 8944.11c3b93b.js.map} +1 -1
- package/dist/chunks/9156.25040113.js +2 -0
- package/dist/chunks/{1377.b37cb1a6.js.map → 9156.25040113.js.map} +1 -1
- package/dist/chunks/9648.9e02a7ae.js +2 -0
- package/dist/chunks/9648.9e02a7ae.js.map +1 -0
- package/dist/chunks/capture-snapshot.a72bfbf8.js +2 -0
- package/dist/chunks/capture-snapshot.a72bfbf8.js.map +1 -0
- package/dist/chunks/eo-cascader.87d88b1a.js +2 -0
- package/dist/chunks/eo-cascader.87d88b1a.js.map +1 -0
- package/dist/chunks/eo-next-table.3c2dcc32.js +2 -0
- package/dist/chunks/eo-next-table.3c2dcc32.js.map +1 -0
- package/dist/chunks/eo-table.a9e8bd1e.js +2 -0
- package/dist/chunks/eo-table.a9e8bd1e.js.map +1 -0
- package/dist/chunks/eo-workbench-layout.9a9da33c.js +2 -0
- package/dist/chunks/eo-workbench-layout.9a9da33c.js.map +1 -0
- package/dist/chunks/main.c3634e2b.js +2 -0
- package/dist/chunks/main.c3634e2b.js.map +1 -0
- package/dist/examples.json +5 -2
- package/dist/index.beb939f1.js +2 -0
- package/dist/index.beb939f1.js.map +1 -0
- package/dist/manifest.json +47 -42
- package/dist/types.json +174 -72
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/data-providers/capture-snapshot.d.ts +16 -0
- package/dist-types/data-providers/capture-snapshot.spec.d.ts +1 -0
- package/dist-types/data-providers/snapshot.d.ts +9 -0
- package/docs/capture-snapshot.md +56 -0
- package/package.json +4 -4
- package/dist/chunks/1303.f9a141a9.js +0 -2
- package/dist/chunks/1303.f9a141a9.js.map +0 -1
- package/dist/chunks/1377.b37cb1a6.js +0 -2
- package/dist/chunks/1646.677278c0.js +0 -2
- package/dist/chunks/1646.677278c0.js.map +0 -1
- package/dist/chunks/1874.f509fc54.js +0 -2
- package/dist/chunks/1874.f509fc54.js.map +0 -1
- package/dist/chunks/1950.a9c30a92.js +0 -2
- package/dist/chunks/1950.a9c30a92.js.map +0 -1
- package/dist/chunks/2024.670e2e7e.js +0 -2
- package/dist/chunks/2108.19e43f3e.js +0 -2
- package/dist/chunks/2108.19e43f3e.js.map +0 -1
- package/dist/chunks/2179.29d3975a.js +0 -2
- package/dist/chunks/2504.c7e70700.js +0 -2
- package/dist/chunks/2504.c7e70700.js.map +0 -1
- package/dist/chunks/2553.5cdf2c85.js +0 -2
- package/dist/chunks/2658.68af36a5.js +0 -3
- package/dist/chunks/2658.68af36a5.js.map +0 -1
- package/dist/chunks/2754.03f2c36e.js +0 -2
- package/dist/chunks/2784.64af4fdf.js +0 -2
- package/dist/chunks/3458.15d0490c.js +0 -2
- package/dist/chunks/3458.15d0490c.js.map +0 -1
- package/dist/chunks/3948.577db0fb.js +0 -2
- package/dist/chunks/3948.577db0fb.js.map +0 -1
- package/dist/chunks/4031.b2ead8c0.js +0 -2
- package/dist/chunks/4031.b2ead8c0.js.map +0 -1
- package/dist/chunks/4049.8963c265.js +0 -2
- package/dist/chunks/4275.5ebcd047.js +0 -2
- package/dist/chunks/4374.1c3f4d6a.js +0 -3
- package/dist/chunks/4374.1c3f4d6a.js.map +0 -1
- package/dist/chunks/4540.11b03f7e.js +0 -2
- package/dist/chunks/4540.11b03f7e.js.map +0 -1
- package/dist/chunks/4717.a6076baa.js +0 -2
- package/dist/chunks/4717.a6076baa.js.map +0 -1
- package/dist/chunks/4795.8cfdba50.js +0 -2
- package/dist/chunks/4991.bbe257a7.js +0 -2
- package/dist/chunks/5151.1118a6b3.js +0 -2
- package/dist/chunks/5151.1118a6b3.js.map +0 -1
- package/dist/chunks/5381.d5d5893d.js +0 -2
- package/dist/chunks/5628.621f7c8f.js.map +0 -1
- package/dist/chunks/5636.35aa63cf.js +0 -2
- package/dist/chunks/5725.ee7694ea.js +0 -2
- package/dist/chunks/6188.0811929c.js +0 -2
- package/dist/chunks/6188.0811929c.js.map +0 -1
- package/dist/chunks/6205.584df0fa.js +0 -2
- package/dist/chunks/6473.bd43324e.js +0 -2
- package/dist/chunks/6635.67c4a68b.js +0 -3
- package/dist/chunks/6653.19beaef4.js +0 -2
- package/dist/chunks/6660.8a319d7b.js +0 -2
- package/dist/chunks/6660.8a319d7b.js.map +0 -1
- package/dist/chunks/6747.5564ac9e.js +0 -2
- package/dist/chunks/6747.5564ac9e.js.map +0 -1
- package/dist/chunks/6805.7c7c0dd6.js +0 -2
- package/dist/chunks/6805.7c7c0dd6.js.map +0 -1
- package/dist/chunks/6980.f46c634d.js +0 -2
- package/dist/chunks/6980.f46c634d.js.map +0 -1
- package/dist/chunks/7067.fc777100.js +0 -2
- package/dist/chunks/7067.fc777100.js.map +0 -1
- package/dist/chunks/7110.045cce6c.js +0 -2
- package/dist/chunks/7110.045cce6c.js.map +0 -1
- package/dist/chunks/7164.ea75c86d.js +0 -2
- package/dist/chunks/7164.ea75c86d.js.map +0 -1
- package/dist/chunks/7672.2e8d2522.js +0 -2
- package/dist/chunks/7746.6296df74.js +0 -2
- package/dist/chunks/7746.6296df74.js.map +0 -1
- package/dist/chunks/7915.ac44f536.js +0 -2
- package/dist/chunks/7915.ac44f536.js.map +0 -1
- package/dist/chunks/8008.4a8beed5.js +0 -3
- package/dist/chunks/8316.da997ccf.js +0 -2
- package/dist/chunks/8498.209384ac.js +0 -2
- package/dist/chunks/8588.3addc801.js +0 -2
- package/dist/chunks/8588.3addc801.js.map +0 -1
- package/dist/chunks/8691.02085a2a.js +0 -2
- package/dist/chunks/8691.02085a2a.js.map +0 -1
- package/dist/chunks/9431.d788c477.js +0 -2
- package/dist/chunks/9549.1f936aaa.js +0 -2
- package/dist/chunks/9549.1f936aaa.js.map +0 -1
- package/dist/chunks/9704.b9d0b71b.js +0 -2
- package/dist/chunks/9704.b9d0b71b.js.map +0 -1
- package/dist/chunks/eo-cascader.b1651443.js +0 -2
- package/dist/chunks/eo-cascader.b1651443.js.map +0 -1
- package/dist/chunks/eo-next-table.44b570ea.js +0 -2
- package/dist/chunks/eo-next-table.44b570ea.js.map +0 -1
- package/dist/chunks/eo-table.39e4927b.js +0 -2
- package/dist/chunks/eo-table.39e4927b.js.map +0 -1
- package/dist/chunks/eo-workbench-layout.b5fe6b2e.js +0 -2
- package/dist/chunks/eo-workbench-layout.b5fe6b2e.js.map +0 -1
- package/dist/chunks/main.649f7e78.js +0 -2
- package/dist/chunks/main.649f7e78.js.map +0 -1
- package/dist/index.3d062848.js +0 -2
- package/dist/index.3d062848.js.map +0 -1
- /package/dist/chunks/{2658.68af36a5.js.LICENSE.txt → 1036.ef9d8acc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{8316.da997ccf.js.LICENSE.txt → 2356.ab7169ce.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2784.64af4fdf.js.LICENSE.txt → 5668.6faa0344.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{8008.4a8beed5.js.LICENSE.txt → 6736.1c6f8b87.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4374.1c3f4d6a.js.LICENSE.txt → 7824.ec40916f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6635.67c4a68b.js.LICENSE.txt → 7928.a530d2f0.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[2553],{2553:(e,n,t)=>{t.d(n,{Z:()=>ge});var o=t(8079),r=t(8657),a=t(1394),l=t(1954),i=t(5672),c=t(2779),u=t.n(c),s=t(7896),d=t(6234),p=t(2159),f=t(3979),h=t(9398),m=t(7782),v=t(6574),g=t(2340);const b=r.createContext(null);var C=t(6522),k=t(6666),S=t(3028),x="__rc_cascader_search_mark__",y=function(e,n,t){var o=t.label;return n.some((function(n){return String(n[o]).toLowerCase().includes(e.toLowerCase())}))},Z=function(e,n,t,o){return n.map((function(e){return e[o.label]})).join(" / ")},w="__RC_CASCADER_SPLIT__",E="SHOW_PARENT",I="SHOW_CHILD";function N(e){return e.join(w)}function O(e){return e.map(N)}function P(e,n){var t,o;return null!==(t=e.isLeaf)&&void 0!==t?t:!(null!==(o=e[n.children])&&void 0!==o&&o.length)}function _(e){var n=e.parentElement;if(n){var t=e.offsetTop-n.offsetTop;t-n.scrollTop<0?n.scrollTo({top:t}):t+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:t+e.offsetHeight-n.offsetHeight})}}function M(e,n){return e.map((function(e){var t;return null===(t=e[x])||void 0===t?void 0:t.map((function(e){return e[n.value]}))}))}function T(e,n,t){var o=new Set(e),r=n();return e.filter((function(e){var n=r[e],a=n?n.parent:null,l=n?n.children:null;return!((!n||!n.node.disabled)&&(t===I?l&&l.some((function(e){return e.key&&o.has(e.key)})):a&&!a.node.disabled&&o.has(a.key)))}))}function W(e,n,t){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=n,a=[],l=function(){var n,l,c,u=e[i],s=null===(n=r)||void 0===n?void 0:n.findIndex((function(e){var n=e[t.value];return o?String(n)===String(u):n===u})),d=-1!==s?null===(l=r)||void 0===l?void 0:l[s]:null;a.push({value:null!==(c=null==d?void 0:d[t.value])&&void 0!==c?c:u,index:s,option:d}),r=null==d?void 0:d[t.children]},i=0;i<e.length;i+=1)l();return a}var V=t(9600);t(2895);const $=r.memo((function(e){return e.children}),(function(e,n){return!n.open}));function H(e){var n,t=e.prefixCls,o=e.checked,a=e.halfChecked,l=e.disabled,i=e.onClick,c=e.disableCheckbox,s=r.useContext(b).checkable,d="boolean"!=typeof s?s:null;return r.createElement("span",{className:u()("".concat(t),(n={},(0,k.Z)(n,"".concat(t,"-checked"),o),(0,k.Z)(n,"".concat(t,"-indeterminate"),!o&&a),(0,k.Z)(n,"".concat(t,"-disabled"),l||c),n)),onClick:i},d)}var D="__cascader_fix_label__";function A(e){var n=e.prefixCls,t=e.multiple,a=e.options,l=e.activeValue,i=e.prevValuePath,c=e.onToggleOpen,s=e.onSelect,d=e.onActive,p=e.checkedSet,f=e.halfCheckedSet,h=e.loadingKeys,m=e.isSelectable,v=e.searchValue,g="".concat(n,"-menu"),C="".concat(n,"-menu-item"),S=r.useContext(b),y=S.fieldNames,Z=S.changeOnSelect,w=S.expandTrigger,E=S.expandIcon,I=S.loadingIcon,O=S.dropdownMenuColumnStyle,_="hover"===w,M=r.useMemo((function(){return a.map((function(e){var n,t=e.disabled,r=e.disableCheckbox,a=e[x],l=null!==(n=e[D])&&void 0!==n?n:e[y.label],c=e[y.value],u=P(e,y),s=a?a.map((function(e){return e[y.value]})):[].concat((0,o.Z)(i),[c]),d=N(s);return{disabled:t,label:l,value:c,isLeaf:u,isLoading:h.includes(d),checked:p.has(d),halfChecked:f.has(d),option:e,disableCheckbox:r,fullPath:s,fullPathKey:d}}))}),[a,p,y,f,h,i]);return r.createElement("ul",{className:g,role:"menu"},M.map((function(e){var a,i,p=e.disabled,f=e.label,h=e.value,g=e.isLeaf,b=e.isLoading,S=e.checked,x=e.halfChecked,y=e.option,w=e.fullPath,N=e.fullPathKey,P=e.disableCheckbox,M=function(){if(!p&&!v){var e=(0,o.Z)(w);_&&g&&e.pop(),d(e)}},T=function(){m(y)&&s(w,g)};return"string"==typeof y.title?i=y.title:"string"==typeof f&&(i=f),r.createElement("li",{key:N,className:u()(C,(a={},(0,k.Z)(a,"".concat(C,"-expand"),!g),(0,k.Z)(a,"".concat(C,"-active"),l===h||l===N),(0,k.Z)(a,"".concat(C,"-disabled"),p),(0,k.Z)(a,"".concat(C,"-loading"),b),a)),style:O,role:"menuitemcheckbox",title:i,"aria-checked":S,"data-path-key":N,onClick:function(){M(),P||t&&!g||T()},onDoubleClick:function(){Z&&c(!1)},onMouseEnter:function(){_&&M()},onMouseDown:function(e){e.preventDefault()}},t&&r.createElement(H,{prefixCls:"".concat(n,"-checkbox"),checked:S,halfChecked:x,disabled:p||P,disableCheckbox:P,onClick:function(e){P||(e.stopPropagation(),T())}}),r.createElement("div",{className:"".concat(C,"-content")},f),!b&&E&&!g&&r.createElement("div",{className:"".concat(C,"-expand-icon")},E),b&&I&&r.createElement("div",{className:"".concat(C,"-loading-icon")},I))})))}var j=t(2981);const R=r.forwardRef((function(e,n){var t,a,l,i,c=(0,f.lk)(),p=c.prefixCls,h=c.multiple,m=c.searchValue,v=c.toggleOpen,g=c.notFoundContent,C=c.direction,y=c.open,Z=r.useRef(),E="rtl"===C,I=r.useContext(b),T=I.options,V=I.values,H=I.halfValues,R=I.fieldNames,L=I.changeOnSelect,K=I.onSelect,F=I.searchOptions,z=I.dropdownPrefixCls,B=I.loadData,X=I.expandTrigger,U=z||p,G=r.useState([]),Y=(0,d.Z)(G,2),q=Y[0],J=Y[1];r.useEffect((function(){q.length&&q.forEach((function(e){var n=W(e.split(w),T,R,!0).map((function(e){return e.option})),t=n[n.length-1];(!t||t[R.children]||P(t,R))&&J((function(n){return n.filter((function(n){return n!==e}))}))}))}),[T,q,R]);var Q=r.useMemo((function(){return new Set(O(V))}),[V]),ee=r.useMemo((function(){return new Set(O(H))}),[H]),ne=function(){var e=(0,f.lk)(),n=e.multiple,t=e.open,o=r.useContext(b).values,a=r.useState([]),l=(0,d.Z)(a,2),i=l[0],c=l[1];return r.useEffect((function(){if(t&&!n){var e=o[0];c(e||[])}}),[t]),[i,c]}(),te=(0,d.Z)(ne,2),oe=te[0],re=te[1],ae=function(e){re(e),function(e){if(B&&!m){var n=W(e,T,R).map((function(e){return e.option})),t=n[n.length-1];if(t&&!P(t,R)){var r=N(e);J((function(e){return[].concat((0,o.Z)(e),[r])})),B(n)}}}(e)},le=function(e){var n=e.disabled,t=P(e,R);return!n&&(t||L||h)},ie=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];K(e),!h&&(n||L&&("hover"===X||t))&&v(!1)},ce=r.useMemo((function(){return m?F:T}),[m,F,T]),ue=r.useMemo((function(){for(var e=[{options:ce}],n=ce,t=M(n,R),o=function(){var o=oe[r],a=n.find((function(e,n){return(t[n]?N(t[n]):e[R.value])===o})),l=null==a?void 0:a[R.children];if(null==l||!l.length)return"break";n=l,e.push({options:l})},r=0;r<oe.length&&"break"!==o();r+=1);return e}),[ce,oe,R]);(function(e,n,t,a,l,i){var c=(0,f.lk)(),u=c.direction,s=c.searchValue,p=c.toggleOpen,h=c.open,m="rtl"===u,v=r.useMemo((function(){for(var e=-1,o=n,r=[],l=[],i=a.length,c=M(n,t),u=function(n){var i=o.findIndex((function(e,o){return(c[o]?N(c[o]):e[t.value])===a[n]}));if(-1===i)return"break";e=i,r.push(e),l.push(a[n]),o=o[e][t.children]},s=0;s<i&&o&&"break"!==u(s);s+=1);for(var d=n,p=0;p<r.length-1;p+=1)d=d[r[p]][t.children];return[l,e,d,c]}),[a,t,n]),g=(0,d.Z)(v,4),b=g[0],C=g[1],k=g[2],S=g[3],y=function(e){l(e)},Z=function(){if(b.length>1){var e=b.slice(0,-1);y(e)}else p(!1)},w=function(){var e,n=((null===(e=k[C])||void 0===e?void 0:e[t.children])||[]).find((function(e){return!e.disabled}));if(n){var r=[].concat((0,o.Z)(b),[n[t.value]]);y(r)}};r.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var n=e.which;switch(n){case j.Z.UP:case j.Z.DOWN:var o=0;n===j.Z.UP?o=-1:n===j.Z.DOWN&&(o=1),0!==o&&function(e){var n=k.length,o=C;-1===o&&e<0&&(o=n);for(var r=0;r<n;r+=1){var a=k[o=(o+e+n)%n];if(a&&!a.disabled){var l=b.slice(0,-1).concat(S[o]?N(S[o]):a[t.value]);return void y(l)}}}(o);break;case j.Z.LEFT:if(s)break;m?w():Z();break;case j.Z.RIGHT:if(s)break;m?Z():w();break;case j.Z.BACKSPACE:s||Z();break;case j.Z.ENTER:if(b.length){var r=k[C],a=(null==r?void 0:r[x])||[];a.length?i(a.map((function(e){return e[t.value]})),a[a.length-1]):i(b,k[C])}break;case j.Z.ESC:p(!1),h&&e.stopPropagation()}},onKeyUp:function(){}}}))})(n,ce,R,oe,ae,(function(e,n){le(n)&&ie(e,P(n,R),!0)})),r.useEffect((function(){for(var e=0;e<oe.length;e+=1){var n,t=N(oe.slice(0,e+1)),o=null===(n=Z.current)||void 0===n?void 0:n.querySelector('li[data-path-key="'.concat(t.replace(/\\{0,2}"/g,'\\"'),'"]'));o&&_(o)}}),[oe]);var se=!(null!==(t=ue[0])&&void 0!==t&&null!==(a=t.options)&&void 0!==a&&a.length),de=[(l={},(0,k.Z)(l,R.value,"__EMPTY__"),(0,k.Z)(l,D,g),(0,k.Z)(l,"disabled",!0),l)],pe=(0,S.Z)((0,S.Z)({},e),{},{multiple:!se&&h,onSelect:ie,onActive:ae,onToggleOpen:v,checkedSet:Q,halfCheckedSet:ee,loadingKeys:q,isSelectable:le}),fe=(se?[{options:de}]:ue).map((function(e,n){var t=oe.slice(0,n),o=oe[n];return r.createElement(A,(0,s.Z)({key:n},pe,{searchValue:m,prefixCls:U,options:e.options,prevValuePath:t,activeValue:o}))}));return r.createElement($,{open:y},r.createElement("div",{className:u()("".concat(U,"-menus"),(i={},(0,k.Z)(i,"".concat(U,"-menu-empty"),se),(0,k.Z)(i,"".concat(U,"-rtl"),E),i)),ref:Z},fe))}));var L=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function K(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}var F=r.forwardRef((function(e,n){var t=e.id,a=e.prefixCls,l=void 0===a?"rc-cascader":a,i=e.fieldNames,c=e.defaultValue,u=e.value,I=e.changeOnSelect,P=e.onChange,_=e.displayRender,M=e.checkable,$=e.autoClearSearchValue,H=void 0===$||$,D=e.searchValue,A=e.onSearch,j=e.showSearch,F=e.expandTrigger,z=e.options,B=e.dropdownPrefixCls,X=e.loadData,U=e.popupVisible,G=e.open,Y=e.popupClassName,q=e.dropdownClassName,J=e.dropdownMenuColumnStyle,Q=e.popupPlacement,ee=e.placement,ne=e.onDropdownVisibleChange,te=e.onPopupVisibleChange,oe=e.expandIcon,re=void 0===oe?">":oe,ae=e.loadingIcon,le=e.children,ie=e.dropdownMatchSelectWidth,ce=void 0!==ie&&ie,ue=e.showCheckedStrategy,se=void 0===ue?E:ue,de=(0,p.Z)(e,L),pe=(0,h.ZP)(t),fe=!!M,he=(0,g.Z)(c,{value:u,postState:K}),me=(0,d.Z)(he,2),ve=me[0],ge=me[1],be=r.useMemo((function(){return function(e){var n=e||{},t=n.label,o=n.value||"value";return{label:t||"label",value:o,key:o,children:n.children||"children"}}(i)}),[JSON.stringify(i)]),Ce=r.useMemo((function(){return z||[]}),[z]),ke=function(e,n){var t=r.useRef({options:null,info:null});return r.useCallback((function(){return t.current.options!==e&&(t.current.options=e,t.current.info=(0,V.I8)(e,{fieldNames:n,initWrapper:function(e){return(0,S.Z)((0,S.Z)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,t){var o=e.nodes.map((function(e){return e[n.value]})).join(w);t.pathKeyEntities[o]=e,e.key=o}})),t.current.info.pathKeyEntities}),[n,e])}(Ce,be),Se=r.useCallback((function(e){var n=ke();return e.map((function(e){return n[e].nodes.map((function(e){return e[be.value]}))}))}),[ke,be]),xe=(0,g.Z)("",{value:D,postState:function(e){return e||""}}),ye=(0,d.Z)(xe,2),Ze=ye[0],we=ye[1],Ee=function(e){return r.useMemo((function(){if(!e)return[!1,{}];var n={matchInputWidth:!0,limit:50};return e&&"object"===(0,C.Z)(e)&&(n=(0,S.Z)((0,S.Z)({},n),e)),n.limit<=0&&delete n.limit,[!0,n]}),[e])}(j),Ie=(0,d.Z)(Ee,2),Ne=Ie[0],Oe=Ie[1],Pe=function(e,n,t,a,l,i){var c=l.filter,u=void 0===c?y:c,s=l.render,d=void 0===s?Z:s,p=l.limit,f=void 0===p?50:p,h=l.sort;return r.useMemo((function(){var r=[];return e?(function n(l,c){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l.forEach((function(l){if(!(!h&&!1!==f&&f>0&&r.length>=f)){var p,m=[].concat((0,o.Z)(c),[l]),v=l[t.children],g=s||l.disabled;v&&0!==v.length&&!i||u(e,m,{label:t.label})&&r.push((0,S.Z)((0,S.Z)({},l),{},(p={disabled:g},(0,k.Z)(p,t.label,d(e,m,a,t)),(0,k.Z)(p,x,m),(0,k.Z)(p,t.children,void 0),p))),v&&n(l[t.children],m,g)}}))}(n,[]),h&&r.sort((function(n,o){return h(n[x],o[x],e,t)})),!1!==f&&f>0?r.slice(0,f):r):[]}),[e,n,t,a,d,i,u,h,f])}(Ze,Ce,be,B||l,Oe,I),_e=function(e,n){return r.useCallback((function(t){var o=[],r=[];return t.forEach((function(t){W(t,e,n).every((function(e){return e.option}))?r.push(t):o.push(t)})),[r,o]}),[e,n])}(Ce,be),Me=r.useMemo((function(){var e=_e(ve),n=(0,d.Z)(e,2),t=n[0],o=n[1];if(!fe||!ve.length)return[t,[],o];var r=O(t),a=ke(),l=(0,m.S)(r,!0,a),i=l.checkedKeys,c=l.halfCheckedKeys;return[Se(i),Se(c),o]}),[fe,ve,ke,Se,_e]),Te=(0,d.Z)(Me,3),We=Te[0],Ve=Te[1],$e=Te[2],He=function(e,n,t,a,l){return r.useMemo((function(){var i=l||function(e){var n=a?e.slice(-1):e;return n.every((function(e){return["string","number"].includes((0,C.Z)(e))}))?n.join(" / "):n.reduce((function(e,n,t){var a=r.isValidElement(n)?r.cloneElement(n,{key:t}):n;return 0===t?[a]:[].concat((0,o.Z)(e),[" / ",a])}),[])};return e.map((function(e){var o,r,a=W(e,n,t),l=i(a.map((function(e){var n,o=e.option,r=e.value;return null!==(n=null==o?void 0:o[t.label])&&void 0!==n?n:r})),a.map((function(e){return e.option}))),c=N(e);return{label:l,value:c,key:c,valueCells:e,disabled:null===(o=a[a.length-1])||void 0===o||null===(r=o.option)||void 0===r?void 0:r.disabled}}))}),[e,n,t,l,a])}(r.useMemo((function(){var e=T(O(We),ke,se);return[].concat((0,o.Z)($e),(0,o.Z)(Se(e)))}),[We,ke,Se,$e,se]),Ce,be,fe,_),De=(0,v.Z)((function(e){if(ge(e),P){var n=K(e),t=n.map((function(e){return W(e,Ce,be).map((function(e){return e.option}))})),o=fe?n:n[0],r=fe?t:t[0];P(o,r)}})),Ae=(0,v.Z)((function(e){if(fe&&!H||we(""),fe){var n=N(e),t=O(We),r=O(Ve),a=t.includes(n),l=$e.some((function(e){return N(e)===n})),i=We,c=$e;if(l&&!a)c=$e.filter((function(e){return N(e)!==n}));else{var u=a?t.filter((function(e){return e!==n})):[].concat((0,o.Z)(t),[n]),s=ke(),d=T(a?(0,m.S)(u,{checked:!1,halfCheckedKeys:r},s).checkedKeys:(0,m.S)(u,!0,s).checkedKeys,ke,se);i=Se(d)}De([].concat((0,o.Z)(c),(0,o.Z)(i)))}else De(e)})),je=void 0!==G?G:U,Re=q||Y,Le=ee||Q,Ke=r.useMemo((function(){return{options:Ce,fieldNames:be,values:We,halfValues:Ve,changeOnSelect:I,onSelect:Ae,checkable:M,searchOptions:Pe,dropdownPrefixCls:B,loadData:X,expandTrigger:F,expandIcon:re,loadingIcon:ae,dropdownMenuColumnStyle:J}}),[Ce,be,We,Ve,I,Ae,M,Pe,B,X,F,re,ae,J]),Fe=!(Ze?Pe:Ce).length,ze=Ze&&Oe.matchInputWidth||Fe?{}:{minWidth:"auto"};return r.createElement(b.Provider,{value:Ke},r.createElement(f.Ac,(0,s.Z)({},de,{ref:n,id:pe,prefixCls:l,autoClearSearchValue:H,dropdownMatchSelectWidth:ce,dropdownStyle:ze,displayValues:He,onDisplayValuesChange:function(e,n){if("clear"!==n.type){var t=n.values[0].valueCells;Ae(t)}else De([])},mode:fe?"multiple":void 0,searchValue:Ze,onSearch:function(e,n){we(e),"blur"!==n.source&&A&&A(e)},showSearch:Ne,OptionList:R,emptyOptions:Fe,open:je,dropdownClassName:Re,placement:Le,onDropdownVisibleChange:function(e){null==ne||ne(e),null==te||te(e)},getRawInputElement:function(){return le}})))}));F.SHOW_PARENT=E,F.SHOW_CHILD=I;const z=F;var B=t(4899),X=t(1754),U=t(3354),G=t(2418),Y=t(5298),q=t(4514),J=t(5829),Q=t(8718),ee=t(2579),ne=t(7051),te=t(1157),oe=t(5716),re=t(5530),ae=t(4274),le=t(6454),ie=t(3773),ce=t(124),ue=t(4875);const se=e=>{const{prefixCls:n,componentCls:t,antCls:o}=e,r=`${t}-menu-item`,a=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[(0,le.C2)(`${n}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[t]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${t}-menu-empty`]:{[`${t}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ie.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,ce.c)(e)]},de=(0,ue.Z)("Cascader",(e=>[se(e)]),(e=>{const n=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${n}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}}));const{SHOW_CHILD:pe,SHOW_PARENT:fe}=z,he=(e,n,t,a)=>{const l=[],i=e.toLowerCase();return n.forEach(((e,n)=>{0!==n&&l.push(" / ");let c=e[a.label];const u=typeof c;"string"!==u&&"number"!==u||(c=function(e,n,t){const a=e.toLowerCase().split(n).reduce(((e,t,r)=>0===r?[t]:[].concat((0,o.Z)(e),[n,t])),[]),l=[];let i=0;return a.forEach(((n,o)=>{const a=i+n.length;let c=e.slice(i,a);i=a,o%2==1&&(c=r.createElement("span",{className:`${t}-menu-item-keyword`,key:`separator-${o}`},c)),l.push(c)})),l}(String(c),i,t)),l.push(c)})),l},me=r.forwardRef(((e,n)=>{const{prefixCls:t,size:o,disabled:c,className:s,rootClassName:d,multiple:p,bordered:f=!0,transitionName:h,choiceTransitionName:m="",popupClassName:v,dropdownClassName:g,expandIcon:b,placement:C,showSearch:k,allowClear:S=!0,notFoundContent:x,direction:y,getPopupContainer:Z,status:w,showArrow:E,builtinPlacements:I,style:N}=e,O=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),P=(0,B.Z)(O,["suffixIcon"]),{getPopupContainer:_,getPrefixCls:M,renderEmpty:T,direction:W,popupOverflow:V,cascader:$}=r.useContext(Y.E_),H=y||W,D="rtl"===H,{status:A,hasFeedback:j,isFormItemInput:R,feedbackIcon:L}=r.useContext(ee.aM),K=(0,G.F)(A,w),F=x||(null==T?void 0:T("Cascader"))||r.createElement(q.Z,{componentName:"Cascader"}),U=M(),le=M("select",t),ie=M("cascader",t),[ce,ue]=(0,ne.Z)(le),[se]=de(ie),{compactSize:pe,compactItemClassnames:fe}=(0,ae.ri)(le,y),me=u()(v||g,`${ie}-dropdown`,{[`${ie}-dropdown-rtl`]:"rtl"===H},d,ue),ve=r.useMemo((()=>{if(!k)return k;let e={render:he};return"object"==typeof k&&(e=Object.assign(Object.assign({},e),k)),e}),[k]),ge=(0,Q.Z)((e=>{var n;return null!==(n=null!=o?o:pe)&&void 0!==n?n:e})),be=r.useContext(J.Z),Ce=null!=c?c:be;let ke=b;b||(ke=D?r.createElement(a.Z,null):r.createElement(i.Z,null));const Se=r.createElement("span",{className:`${le}-menu-item-loading-icon`},r.createElement(l.Z,{spin:!0})),xe=r.useMemo((()=>!!p&&r.createElement("span",{className:`${ie}-checkbox-inner`})),[p]),ye=(0,oe.Z)(e.suffixIcon,E),{suffixIcon:Ze,removeIcon:we,clearIcon:Ee}=(0,re.Z)(Object.assign(Object.assign({},e),{hasFeedback:j,feedbackIcon:L,showSuffixIcon:ye,multiple:p,prefixCls:le,componentName:"Cascader"})),Ie=r.useMemo((()=>void 0!==C?C:D?"bottomRight":"bottomLeft"),[C,D]),Ne=(0,te.Z)(I,V),Oe=!0===S?{clearIcon:Ee}:S;return se(ce(r.createElement(z,Object.assign({prefixCls:le,className:u()(!t&&ie,{[`${le}-lg`]:"large"===ge,[`${le}-sm`]:"small"===ge,[`${le}-rtl`]:D,[`${le}-borderless`]:!f,[`${le}-in-form-item`]:R},(0,G.Z)(le,K,j),fe,null==$?void 0:$.className,s,d,ue),disabled:Ce,style:Object.assign(Object.assign({},null==$?void 0:$.style),N)},P,{builtinPlacements:Ne,direction:H,placement:Ie,notFoundContent:F,allowClear:Oe,showSearch:ve,expandIcon:ke,suffixIcon:Ze,removeIcon:we,loadingIcon:Se,checkable:xe,dropdownClassName:me,dropdownPrefixCls:t||ie,choiceTransitionName:(0,X.m)(U,"",m),transitionName:(0,X.m)(U,"slide-up",h),getPopupContainer:Z||_,ref:n}))))})),ve=(0,U.Z)(me);me.SHOW_PARENT=fe,me.SHOW_CHILD=pe,me._InternalPanelDoNotUseOrYouWillBeFired=ve;const ge=me}}]);
|
|
2
|
-
//# sourceMappingURL=2553.5cdf2c85.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2658.68af36a5.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[2658],{9378:e=>{e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},4819:(e,t)=>{function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function i(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,s=Array.prototype.splice,a=Object.prototype.toString;function c(e){return a.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return d(t).forEach((function(r){o.call(t,r)&&(e[r]=t[r])})),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function l(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var g=function(){function e(){this.commands=u({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||i(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),i("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(r.commands).join(", ")+"."}));var s=e;return d(n).forEach((function(t){if(o.call(r.commands,t)){var i=e===s;s=r.commands[t](n[t],s,n,e),i&&r.isEquals(s,e)&&(s=e)}else{var a="Map"===c(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),u="Map"===c(s)?s.get(t):s[t];r.isEquals(a,u)&&(void 0!==a||o.call(e,t))||(s===e&&(s=l(e)),"Map"===c(s)?s.set(t,a):s[t]=a)}})),s},e}();t.Context=g;var h={$push:function(e,t,r){return p(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return p(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),y(t.$splice)}(t,n),e.forEach((function(e){y(e),t===o&&e.length&&(t=l(o)),s.apply(t,e)})),t},$set:function(e,t,r){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(r),e},$toggle:function(e,t){v(e,"$toggle");var r=e.length?l(t):t;return e.forEach((function(e){r[e]=!t[e]})),r},$unset:function(e,t,r,n){return v(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=l(n)),delete t[e])})),t},$add:function(e,t,r,n){return m(t,"$add"),v(e,"$add"),"Map"===c(t)?e.forEach((function(e){var r=e[0],i=e[1];t===n&&t.get(r)!==i&&(t=l(n)),t.set(r,i)})):e.forEach((function(e){t!==n||t.has(e)||(t=l(n)),t.add(e)})),t},$remove:function(e,t,r,n){return m(t,"$remove"),v(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=l(n)),t.delete(e)})),t},$merge:function(e,t,n,o){var s,a;return s=t,i((a=e)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(a)})),i(s&&"object"==typeof s,(function(){return"update(): $merge expects a target of type 'object'; got "+r(s)})),d(e).forEach((function(r){e[r]!==t[r]&&(t===o&&(t=l(o)),t[r]=e[r])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}},f=new g;function p(e,t,n){i(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),v(t[n],n)}function v(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function y(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function m(e,t){var n=c(e);i("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=f.update.isEquals,t.extend=f.extend,t.default=f.update,t.default.default=e.exports=u(t.default,t)},1837:(e,t,r)=>{var n=r(8657),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,c={},u=null,d=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)o.call(t,n)&&!a.hasOwnProperty(n)&&(c[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===c[n]&&(c[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:d,props:c,_owner:s.current}}},2322:(e,t,r)=>{e.exports=r(1837)},4333:(e,t,r)=>{function n(e,t,...r){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}r.d(t,{k:()=>n})},2057:(e,t,r)=>{function n(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<o.length;s++){const c=o[s];if(!a(c))return!1;const u=e[c],d=t[c];if(i=r?r.call(n,u,d,c):void 0,!1===i||void 0===i&&u!==d)return!1}return!0}r.d(t,{w:()=>n})},8683:(e,t,r)=>{r.d(t,{PD:()=>I});var n={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}r.r(n),r.d(n,{FILE:()=>a,HTML:()=>d,TEXT:()=>u,URL:()=>c});class o{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const i=[];return r.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",d="__NATIVE_HTML__";function l(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const g={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[d]:{exposeProperties:{html:(e,t)=>l(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>l(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>l(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function h(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(g).filter((e=>{const r=g[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const f=i((()=>/firefox/i.test(navigator.userAgent))),p=i((()=>Boolean(window.safari)));class v{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:i,c3s:o}=this;let s=t.length-1;if(e===t[s])return r[s];let a,c=0,u=o.length-1;for(;c<=u;){a=Math.floor(.5*(c+u));const n=t[a];if(n<e)c=a+1;else{if(!(n>e))return r[a];u=a-1}}s=Math.max(0,u);const d=e-t[s],l=d*d;return r[s]+n[s]*d+i[s]*l+o[s]*d*l}constructor(e,t){const{length:r}=e,n=[];for(let e=0;e<r;e++)n.push(e);n.sort(((t,r)=>e[t]<e[r]?-1:1));const i=[],o=[],s=[];let a,c;for(let n=0;n<r-1;n++)a=e[n+1]-e[n],c=t[n+1]-t[n],o.push(a),i.push(c),s.push(c/a);const u=[s[0]];for(let e=0;e<o.length-1;e++){const t=s[e],r=s[e+1];if(t*r<=0)u.push(0);else{a=o[e];const n=o[e+1],i=a+n;u.push(3*i/((i+n)/t+(i+a)/r))}}u.push(s[s.length-1]);const d=[],l=[];let g;for(let e=0;e<u.length-1;e++){g=s[e];const t=u[e],r=1/o[e],n=t+u[e+1]-g-g;d.push((g-t-n)*r),l.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=d,this.c3s=l}}const y=1;function m(e){const t=e.nodeType===y?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function O(e){return{x:e.clientX,y:e.clientY}}class D{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){b(e,t,r[t])}))}return e}class T{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return S({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return S({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(n).some((t=>n[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=g[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new s(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&m(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=O(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,i=h(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,r,n,i){const o="IMG"===(s=t).nodeName&&(f()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(s)));var s,a;const c=m(o?e:t),u={x:r.x-c.x,y:r.y-c.y},{offsetWidth:d,offsetHeight:l}=e,{anchorX:g,anchorY:h}=n,{dragPreviewWidth:y,dragPreviewHeight:O}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return p()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,d,l),{offsetX:D,offsetY:b}=i,S=0===b||b;return{x:0===D||D?D:new v([0,.5,1],[u.x,u.x/d*y,u.x+y-d]).interpolate(g),y:S?b:(()=>{let e=new v([0,.5,1],[u.y,u.y/l*O,u.y+O-l]).interpolate(h);return p()&&o&&(e+=(window.devicePixelRatio-1)*O),e})()}}(t,i,r,{anchorX:e,anchorY:o},{offsetX:s,offsetY:a});n.setDragImage(i,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=h(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:O(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=O(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:O(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new D(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const I=function(e,t,r){return new T(e,t,r)}},8225:(e,t,r)=>{r.d(t,{L:()=>n});const n=(0,r(8657).createContext)({dragDropManager:void 0})},2238:(e,t,r)=>{r.d(t,{W:()=>fe});var n=r(2322);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(i(1));return r(c)(e,t)}if("function"!=typeof e)throw new Error(i(2));var s=e,u=t,d=[],l=d,g=!1;function h(){l===d&&(l=d.slice())}function f(){if(g)throw new Error(i(3));return u}function p(e){if("function"!=typeof e)throw new Error(i(4));if(g)throw new Error(i(5));var t=!0;return h(),l.push(e),function(){if(t){if(g)throw new Error(i(6));t=!1,h();var r=l.indexOf(e);l.splice(r,1),d=null}}}function v(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(g)throw new Error(i(9));try{g=!0,u=s(u,e)}finally{g=!1}for(var t=d=l,r=0;r<t.length;r++)(0,t[r])();return e}return v({type:a.INIT}),(n={dispatch:v,subscribe:p,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(i(10));s=e,v({type:a.REPLACE})}})[o]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(i(11));function r(){e.next&&e.next(f())}return r(),{unsubscribe:t(r)}}})[o]=function(){return this},e},n}var u=r(4333);function d(e){return"object"==typeof e}const l="dnd-core/INIT_COORDS",g="dnd-core/BEGIN_DRAG",h="dnd-core/PUBLISH_DRAG_SOURCE",f="dnd-core/HOVER",p="dnd-core/DROP",v="dnd-core/END_DRAG";function y(e,t){return{type:l,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const m={type:l,payload:{clientOffset:null,sourceClientOffset:null}};function O(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),a=e.getRegistry();e.dispatch(y(i)),function(e,t,r){(0,u.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,u.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,a);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,s);if(null==c)return void e.dispatch(m);let l=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,u.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),l=o(c)}e.dispatch(y(i,l));const h=a.getSource(c).beginDrag(s,c);if(null==h)return;!function(e){(0,u.k)(d(e),"Item must be an object.")}(h),a.pinSource(c);const f=a.getSourceType(c);return{type:g,payload:{itemType:f,item:h,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!n}}}}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){D(e,t,r[t])}))}return e}function S(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){(0,u.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,u.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);i.forEach(((i,o)=>{const s=function(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return function(e){(0,u.k)(void 0===e||d(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:n.getDropResult()),o}(i,o,n,r),a={type:p,payload:{dropResult:b({},t,s)}};e.dispatch(a)}))}}function T(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){(0,u.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:v}}}function I(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function w(e){return function(t,{clientOffset:r}={}){!function(e){(0,u.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n];I(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){(0,u.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,u.k)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const n=e[t];(0,u.k)(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");const i=r.getTarget(n);(0,u.k)(i,"Expected targetIds to be registered.")}}(n,i,o),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,i,o),{type:f,payload:{targetIds:n,clientOffset:r||null}}}}function E(e){return function(){if(e.getMonitor().isDragging())return{type:h}}}class C{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,r=function(e){return{beginDrag:O(e),publishDragSource:E(e),hover:w(e),drop:S(e),endDrag:T(e)}}(this);return Object.keys(r).reduce(((n,i)=>{const o=r[i];var s;return n[i]=(s=o,(...r)=>{const n=s.apply(e,r);void 0!==n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function P(e,t){return{x:e.x-t.x,y:e.y-t.y}}const N=[],x=[];N.__IS_NONE__=!0,x.__IS_ALL__=!0;class k{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;(0,u.k)("function"==typeof e,"listener must be a function."),(0,u.k)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===n||i===n+1&&!function(e,t){return e!==N&&(e===x||void 0===t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);o||e()}finally{n=i}}))}subscribeToOffsetChange(e){(0,u.k)("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,u.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return(0,u.k)(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(I(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return(0,u.k)(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!I(n,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(e);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?P((o=n,{x:(i=t).x+o.x,y:i.y+o.y}),r):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?P(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const R="undefined"!=typeof global?global:self,M=R.MutationObserver||R.WebKitMutationObserver;function j(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const _="function"==typeof M?function(e){let t=1;const r=new M(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:j;class L{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const A=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=_(this.flush),this.requestErrorThrow=j((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},H=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new L(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(A.registerPendingError),$="dnd-core/ADD_SOURCE",U="dnd-core/ADD_TARGET",F="dnd-core/REMOVE_SOURCE",q="dnd-core/REMOVE_TARGET";function B(e,t){t&&Array.isArray(e)?e.forEach((e=>B(e,!1))):(0,u.k)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Y;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Y||(Y={}));let G=0;function X(e){switch(e[0]){case"S":return Y.SOURCE;case"T":return Y.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function W(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class V{addSource(e,t){B(e),function(e){(0,u.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,u.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,u.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Y.SOURCE,e,t);return this.store.dispatch(function(e){return{type:$,payload:{sourceId:e}}}(r)),r}addTarget(e,t){B(e,!0),function(e){(0,u.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,u.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,u.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Y.TARGET,e,t);return this.store.dispatch(function(e){return{type:U,payload:{targetId:e}}}(r)),r}containsHandler(e){return W(this.dragSources,e)||W(this.dropTargets,e)}getSource(e,t=!1){return(0,u.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,u.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,u.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,u.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return X(e)===Y.SOURCE}isTargetId(e){return X(e)===Y.TARGET}removeSource(e){var t;(0,u.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:F,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},A.enqueueTask(H.create(t))}removeTarget(e){(0,u.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:q,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,u.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,u.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=function(e){const t=(G++).toString();switch(e){case Y.SOURCE:return`S${t}`;case Y.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===Y.SOURCE?this.dragSources.set(n,r):e===Y.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const K=(e,t)=>e===t;function z(e=N,t){switch(t.type){case f:break;case $:case U:case q:case F:return N;default:return x}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n);if(!(i.length>0)&&function(e,t,r=K){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n))return N;const o=n[n.length-1],s=r[r.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Q={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Z(e=Q,t){const{payload:r}=t;switch(t.type){case l:case g:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case f:return n=e.clientOffset,i=r.clientOffset,!n&&!i||n&&i&&n.x===i.x&&n.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){J(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case v:case p:return Q;default:return e}var n,i}function ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ee(e,t,r[t])}))}return e}const re={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ne(e=re,t){const{payload:r}=t;switch(t.type){case g:return te({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case h:return te({},e,{isSourcePublic:!0});case f:return te({},e,{targetIds:r.targetIds});case q:return-1===e.targetIds.indexOf(r.targetId)?e:te({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case p:return te({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case v:return te({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function ie(e=0,t){switch(t.type){case $:case U:return e+1;case F:case q:return e-1;default:return e}}function oe(e=0){return e+1}function se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){se(e,t,r[t])}))}return e}function ce(e={},t){return{dirtyHandlerIds:z(e.dirtyHandlerIds,{type:t.type,payload:ae({},t.payload,{prevTargetIds:(r=e,"dragOperation.targetIds",n=[],"dragOperation.targetIds".split(".").reduce(((e,t)=>e&&e[t]?e[t]:n||null),r))})}),dragOffset:Z(e.dragOffset,t),refCount:ie(e.refCount,t),dragOperation:ne(e.dragOperation,t),stateId:oe(e.stateId)};var r,n}function ue(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return c(ce,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new k(i,new V(i)),s=new C(i,o),a=e(s,t,r);return s.receiveBackend(a),s}var de=r(8657),le=r(8225);let ge=0;const he=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var fe=(0,de.memo)((function(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children"]);const[i,o]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=pe(),r,n){const i=t;return i[he]||(i[he]={dragDropManager:ue(e,t,r,n)}),i[he]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(r);return(0,de.useEffect)((()=>{if(o){const e=pe();return++ge,()=>{0==--ge&&(e[he]=null)}}}),[]),(0,n.jsx)(le.L.Provider,{value:i,children:t})}));function pe(){return"undefined"!=typeof global?global:window}},7574:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(9378),i=r(8657),o=r(2976);function s(e,t,r){return function(e,t,r){const[s,a]=function(e,t,r){const[s,a]=(0,i.useState)((()=>t(e))),c=(0,i.useCallback)((()=>{const i=t(e);n(s,i)||(a(i),r&&r())}),[s,e,r]);return(0,o.L)(c),[s,c]}(e,t,r);return(0,o.L)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),s}(t,e||(()=>({})),(()=>r.reconnect()))}},2689:(e,t,r)=>{r.d(t,{c:()=>D});var n=r(4333),i=r(7574),o=r(2192),s=r(8657);function a(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=r(2057),d=r(7164),l=r(4756);class g{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,l.p)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,d.d)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,d.d)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var h=r(6402),f=r(2976);let p=!1,v=!1;class y{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,n.k)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,n.k)(!v,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return v=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{v=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var m=r(4952);class O{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function D(e,t){const r=(0,o.w)(e,t);(0,n.k)(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,h.N)();return(0,s.useMemo)((()=>new y(e)),[e])}(),d=function(e,t){const r=(0,h.N)(),n=(0,s.useMemo)((()=>new g(r.getBackend())),[r]);return(0,f.L)((()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource())),[n,e]),(0,f.L)((()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview())),[n,t]),n}(r.options,r.previewOptions);return function(e,t,r){const i=(0,h.N)(),o=function(e,t,r){const n=(0,s.useMemo)((()=>new O(e,t,r)),[t,r]);return(0,s.useEffect)((()=>{n.spec=e}),[e]),n}(e,t,r),a=function(e){return(0,s.useMemo)((()=>{const t=e.type;return(0,n.k)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,f.L)((function(){if(null!=a){const[e,n]=(0,m.w)(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}}),[i,t,r,o,a])}(r,u,d),[(0,i.J)(r.collect,u,d),a(d),c(d)]}},6402:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(4333),i=r(8657),o=r(8225);function s(){const{dragDropManager:e}=(0,i.useContext)(o.L);return(0,n.k)(null!=e,"Expected drag drop context"),e}},8533:(e,t,r)=>{r.d(t,{L:()=>m});var n=r(7574),i=r(2192),o=r(8657);function s(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}var a=r(2057),c=r(7164),u=r(4756);class d{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.p)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.d)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var l=r(6402),g=r(2976),h=r(4333);let f=!1;class p{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,h.k)(!f,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return f=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{f=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var v=r(4952);class y{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function m(e,t){const r=(0,i.w)(e,t),a=function(){const e=(0,l.N)();return(0,o.useMemo)((()=>new p(e)),[e])}(),c=function(e){const t=(0,l.N)(),r=(0,o.useMemo)((()=>new d(t.getBackend())),[t]);return(0,g.L)((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return function(e,t,r){const n=(0,l.N)(),i=function(e,t){const r=(0,o.useMemo)((()=>new y(e,t)),[t]);return(0,o.useEffect)((()=>{r.spec=e}),[e]),r}(e,t),s=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>((0,h.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,g.L)((function(){const[e,o]=(0,v.n)(s,i,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}),[n,t,i,r,s.map((e=>e.toString())).join("|")])}(r,a,c),[(0,n.J)(r.collect,a,c),s(c)]}},2976:(e,t,r)=>{r.d(t,{L:()=>i});var n=r(8657);const i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},2192:(e,t,r)=>{r.d(t,{w:()=>i});var n=r(8657);function i(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),(0,n.useMemo)((()=>"function"==typeof e?e():e),r)}},7164:(e,t,r)=>{function n(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:()=>n})},4952:(e,t,r)=>{function n(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function i(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}r.d(t,{n:()=>n,w:()=>i})},4756:(e,t,r)=>{r.d(t,{p:()=>o});var n=r(4333),i=r(8657);function o(e){const t={};return Object.keys(e).forEach((r=>{const o=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=function(e){return(t=null,r=null)=>{if(!(0,i.isValidElement)(t)){const n=t;return e(n,r),n}const o=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o),function(e,t){const r=e.ref;return(0,n.k)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,i.cloneElement)(e,{ref:e=>{s(r,e),s(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,r?t=>e(t,r):e)}}(o);t[r]=()=>e}})),t}function s(e,t){"function"==typeof e?e(t):e.current=t}}}]);
|
|
3
|
-
//# sourceMappingURL=2658.68af36a5.js.map
|