@reltio/remotes 1.4.1721 → 1.4.1723

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/1088.js +1 -1
  2. package/1148.js +1 -1
  3. package/1215.js +1 -1
  4. package/1334.js +1 -1
  5. package/1425.js +1 -1
  6. package/1550.js +1 -1
  7. package/1664.js +1 -1
  8. package/1707.js +1 -1
  9. package/1840.js +1 -1
  10. package/2066.js +1 -1
  11. package/2345.js +1 -1
  12. package/2400.js +1 -1
  13. package/2617.js +1 -1
  14. package/2825.js +3 -0
  15. package/2825.js.map +1 -0
  16. package/2857.js +1 -1
  17. package/3004.js +1 -1
  18. package/3042.js +1 -1
  19. package/3096.js +1 -1
  20. package/3104.js +2 -0
  21. package/3104.js.map +1 -0
  22. package/3144.js +1 -1
  23. package/3191.js +1 -1
  24. package/3348.js +1 -1
  25. package/3381.js +1 -1
  26. package/3383.js +1 -1
  27. package/3463.js +1 -1
  28. package/3469.js +1 -1
  29. package/3538.js +1 -1
  30. package/3639.js +1 -1
  31. package/393.js +1 -1
  32. package/393.js.map +1 -1
  33. package/4038.js +1 -1
  34. package/415.js +1 -1
  35. package/4212.js +1 -1
  36. package/{3209.css → 4265.css} +1 -1
  37. package/{3209.css.map → 4265.css.map} +1 -1
  38. package/4265.js +2 -0
  39. package/4265.js.map +1 -0
  40. package/{829.css → 4390.css} +1 -1
  41. package/4390.css.map +1 -0
  42. package/4390.js +2 -0
  43. package/4390.js.map +1 -0
  44. package/4444.js +1 -1
  45. package/4481.js +1 -1
  46. package/4780.js +2 -0
  47. package/4780.js.map +1 -0
  48. package/4787.js +1 -1
  49. package/4838.js +1 -1
  50. package/4969.js +1 -1
  51. package/50.js +1 -1
  52. package/5039.js +1 -1
  53. package/5177.js +1 -1
  54. package/5201.js +1 -1
  55. package/5292.js +1 -1
  56. package/5368.js +2 -0
  57. package/{4143.js.map → 5368.js.map} +1 -1
  58. package/5383.js +1 -1
  59. package/5738.js +1 -1
  60. package/5738.js.map +1 -1
  61. package/5769.js +1 -1
  62. package/6012.js +76 -0
  63. package/{2966.js.LICENSE.txt → 6012.js.LICENSE.txt} +0 -10
  64. package/6012.js.map +1 -0
  65. package/6287.js +1 -1
  66. package/6422.js +1 -1
  67. package/6506.js +1 -1
  68. package/6578.js +1 -1
  69. package/6578.js.map +1 -1
  70. package/658.js +1 -1
  71. package/6799.js +1 -1
  72. package/6807.js +2 -0
  73. package/6807.js.map +1 -0
  74. package/6844.js +1 -1
  75. package/6903.js +1 -1
  76. package/7074.js +1 -1
  77. package/7119.js +1 -1
  78. package/7237.js +1 -1
  79. package/7340.js +1 -1
  80. package/735.js +1 -1
  81. package/7401.js +2 -0
  82. package/7401.js.map +1 -0
  83. package/7407.js +1 -1
  84. package/7422.js +1 -1
  85. package/7468.js +1 -1
  86. package/7626.js +1 -1
  87. package/7719.js +1 -1
  88. package/7744.js +1 -1
  89. package/7744.js.map +1 -1
  90. package/7896.js +1 -1
  91. package/820.js +1 -1
  92. package/8207.js +1 -1
  93. package/8216.js +1 -1
  94. package/8741.js +1 -1
  95. package/8786.js +1 -1
  96. package/9016.js +1 -1
  97. package/9032.js +1 -1
  98. package/9050.js +1 -1
  99. package/913.js +56 -0
  100. package/913.js.LICENSE.txt +9 -0
  101. package/913.js.map +1 -0
  102. package/9283.js +1 -1
  103. package/9328.js +1 -1
  104. package/9387.js +1 -1
  105. package/9719.js +1 -1
  106. package/main.js +1 -1
  107. package/main.js.map +1 -1
  108. package/package.json +1 -1
  109. package/remoteEntry.js +1 -1
  110. package/remoteEntry.js.map +1 -1
  111. package/2383.js +0 -3
  112. package/2383.js.map +0 -1
  113. package/2966.js +0 -129
  114. package/2966.js.map +0 -1
  115. package/3209.js +0 -2
  116. package/3209.js.map +0 -1
  117. package/3785.js +0 -2
  118. package/3785.js.map +0 -1
  119. package/4143.js +0 -2
  120. package/829.css.map +0 -1
  121. package/829.js +0 -2
  122. package/829.js.map +0 -1
  123. package/9109.js +0 -2
  124. package/9109.js.map +0 -1
  125. /package/{2383.js.LICENSE.txt → 2825.js.LICENSE.txt} +0 -0
package/3348.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0012abff-0e2e-4c6e-927f-7e428683a1d4",e._sentryDebugIdIdentifier="sentry-dbid-0012abff-0e2e-4c6e-927f-7e428683a1d4")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1722"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3348],{60629:(e,t,r)=>{"use strict";var n=r(42384),o=[],i=[],a=n.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function u(e){var t;(t=o.length?o.pop():new c).task=e,n(t)}function c(){this.task=null}e.exports=u,c.prototype.call=function(){try{this.task.call()}catch(e){u.onerror?u.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},42384:(e,t,r)=>{"use strict";function n(e){i.length||o(),i[i.length]=e}e.exports=n;var o,i=[],a=0;function u(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,r=i.length-a;t<r;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0}var c,s,l,f=void 0!==r.g?r.g:self,d=f.MutationObserver||f.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof d?(c=1,s=new d(u),l=document.createTextNode(""),s.observe(l,{characterData:!0}),o=function(){c=-c,l.data=c}):o=p(u),n.requestFlush=o,n.makeRequestCallFromTimer=p},47677:e=>{"use strict";e.exports=function(e,t,r,n,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},88665:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!u(s))return!1;var l=e[s],f=t[s];if(!1===(o=r?r.call(n,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},53348:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DndContext:()=>je,DndProvider:()=>Me,DragLayer:()=>Kt,DragPreviewImage:()=>_e,DragSource:()=>_t,DropTarget:()=>Gt,createDndContext:()=>Ee,useDrag:()=>rt,useDragLayer:()=>st,useDrop:()=>ct});var n=r(24328),o=r(28523),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",s="dnd-core/DROP",l="dnd-core/END_DRAG",f=function(e,t){return e===t};function d(e,t){return!e&&!t||!(!e||!t)&&e.x===t.x&&e.y===t.y}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case i:case a:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case c:return d(e.clientOffset,r.clientOffset)?e:h({},e,{clientOffset:r.clientOffset});case l:case s:return v;default:return e}}var m="dnd-core/ADD_SOURCE",O="dnd-core/ADD_TARGET",S="dnd-core/REMOVE_SOURCE",D="dnd-core/REMOVE_TARGET";function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function I(e,t,r){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e)}function k(e,t){return e.filter((function(e){return e!==t}))}function C(e){return"object"===w(e)}function T(e,t){var r=new Map,n=function(e){return r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case a:return j({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case u:return j({},e,{isSourcePublic:!0});case c:return j({},e,{targetIds:r.targetIds});case D:return-1===e.targetIds.indexOf(r.targetId)?e:j({},e,{targetIds:k(e.targetIds,r.targetId)});case s:return j({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case l:return j({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case m:case O:return e+1;case S:case D:return e-1;default:return e}}var A=[],_=[];function H(e,t){return e!==A&&(e===_||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}function N(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case m:case O:case D:case S:return A;default:return _}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=T(n,i),u=a.length>0||!p(n,i);if(!u)return A;var s=i[i.length-1],l=n[n.length-1];return s!==l&&(s&&a.push(s),l&&a.push(l)),a}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:N(e.dirtyHandlerIds,{type:t.type,payload:G({},t.payload,{prevTargetIds:I(e,"dragOperation.targetIds",[])})}),dragOffset:b(e.dragOffset,t),refCount:x(e.refCount,t),dragOperation:M(e.dragOperation,t),stateId:U(e.stateId)}}A.__IS_NONE__=!0,_.__IS_ALL__=!0;var q=r(47677);function V(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var W={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function Y(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,u=r.getSourceClientOffset,c=e.getMonitor(),s=e.getRegistry();e.dispatch(V(i)),$(t,c,s);var l=z(t,c);if(null!==l){var f=null;i&&(X(u),f=u(l)),e.dispatch(V(i,f));var d=s.getSource(l),p=d.beginDrag(c,l);K(p),s.pinSource(l);var g=s.getSourceType(l);return{type:a,payload:{itemType:g,item:p,sourceId:l,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(W)}}function $(e,t,r){q(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){q(r.getSource(e),"Expected sourceIds to be registered.")}))}function X(e){q("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function K(e){q(C(e),"Item must be an object.")}function z(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function J(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function Q(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function Z(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;ee(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();te(o,i,a);var u=i.getItemType();return re(o,a,u),ne(o,i,a),{type:c,payload:{targetIds:o,clientOffset:n||null}}}}function ee(e){q(Array.isArray(e),"Expected targetIds to be an array.")}function te(e,t,r){q(t.isDragging(),"Cannot call hover while not dragging."),q(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];q(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);q(i,"Expected targetIds to be registered.")}}function re(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];Q(t.getTargetType(o),r)||e.splice(n,1)}}function ne(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();ce(r);var o=le(r);o.forEach((function(o,i){var a=se(o,i,n,r),u={type:s,payload:{dropResult:ie({},t,{},a)}};e.dispatch(u)}))}}function ce(e){q(e.isDragging(),"Cannot call drop while not dragging."),q(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function se(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;return function(e){q(void 0===e||C(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function le(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fe(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){q(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();return r.getSource(n,!0).endDrag(t,n),r.unpinSource(),{type:l}}}function de(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ge,he=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;q("function"==typeof e,"listener must be a function."),q(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!H(r.dirtyHandlerIds,n)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;q("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return q(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return q(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&Q(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return q(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Q(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return n=(e=this.store.getState().dragOffset).clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?de((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,r=e.initialClientOffset,t&&r?de(t,r):null;var e,t,r}}],r&&pe(t.prototype,r),e}(),ye=r(60629),ve=0;function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function me(e,t){t&&Array.isArray(e)?e.forEach((function(e){return me(e,!1)})):q("string"==typeof e||"symbol"===be(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Se(e){switch(e[0]){case"S":return ge.SOURCE;case"T":return ge.TARGET;default:q(!1,"Cannot parse handler ID: ".concat(e))}}function De(e,t){var r,n,o=e.entries(),i=!1;do{var a=o.next(),u=a.done;if((r=a.value,n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[1]===t)return!0;i=!!u}while(!i);return!1}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(ge||(ge={}));var we=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r;return t=e,r=[{key:"addSource",value:function(e,t){me(e),function(e){q("function"==typeof e.canDrag,"Expected canDrag to be a function."),q("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),q("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(ge.SOURCE,e,t);return this.store.dispatch(function(e){return{type:m,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){me(e,!0),function(e){q("function"==typeof e.canDrop,"Expected canDrop to be a function."),q("function"==typeof e.hover,"Expected hover to be a function."),q("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(ge.TARGET,e,t);return this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return De(this.dragSources,e)||De(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(this.isSourceId(e),"Expected a valid source ID.");var r=t&&e===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(e);return n}},{key:"getTarget",value:function(e){return q(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return q(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return q(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Se(e)===ge.SOURCE}},{key:"isTargetId",value:function(e){return Se(e)===ge.TARGET}},{key:"removeSource",value:function(e){var t=this;q(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:S,payload:{sourceId:e}}}(e)),ye((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){q(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:D,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);q(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){q(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=function(e){var t=(ve++).toString();switch(e){case ge.SOURCE:return"S".concat(t);case ge.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(n,t),e===ge.SOURCE?this.dragSources.set(n,r):e===ge.TARGET&&this.dropTargets.set(n,r),n}}],r&&Oe(t.prototype,r),e}();function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ce(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.createStore)(B,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Te=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ie(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=Ce(r);this.store=n,this.monitor=new he(n,new we(n)),n.subscribe(this.handleRefCountChange)}var t,r;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:Y(e),publishDragSource:J(e),hover:Z(e),drop:ue(e),endDrag:fe(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&ke(t.prototype,r),e}();function Pe(e,t,r,n){var o=new Te(n),i=e(o,t,r);return o.receiveBackend(i),o}var je=n.createContext({dragDropManager:void 0});function Ee(e,t,r,n){return{dragDropManager:Pe(e,t,r,n)}}var Re=0,Me=(0,n.memo)((function(e){var t,r,o=e.children,i=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[xe]||(o[xe]=Ee(e,t,r,n)),o[xe]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children"])),a=(r=2,function(e){if(Array.isArray(e))return e}(t=i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];return n.useEffect((function(){return c&&Re++,function(){c&&0==--Re&&(Ae()[xe]=null)}}),[]),n.createElement(je.Provider,{value:u},o)}));Me.displayName="DndProvider";var xe=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Ae(){return"undefined"!=typeof global?global:window}var _e=n.memo((function(e){var t=e.connect,r=e.src;if("undefined"!=typeof Image){var n=new Image;n.src=r,n.onload=function(){return t(n)}}return null}));_e.displayName="DragPreviewImage";var He="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,Ne=r(88665);function Ue(e,t,r){var o,i,a=(o=(0,n.useState)((function(){return t(e)})),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1],s=(0,n.useCallback)((function(){var n=t(e);Ne(u,n)||(c(n),r&&r())}),[u,e,r]);return He(s,[]),[u,s]}function Fe(e,t,r){var n,o,i=(n=Ue(e,t,r),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],u=i[1];return He((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(u,{handlerIds:[t]})}),[e,u]),a}function Ge(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function Le(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}function Be(){var e=(0,n.useContext)(je).dragDropManager;return q(null!=e,"Expected drag drop context"),e}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ve=!1,We=!1,Ye=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){q(!Ve,"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 Ve=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ve=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;q(!We,"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 We=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{We=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&qe(t.prototype,r),e}();function $e(e,t){"function"==typeof e?e(t):e.current=t}function Xe(e,t){var r=e.ref;return q("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://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?(0,n.cloneElement)(e,{ref:function(e){$e(r,e),$e(t,e)}}):(0,n.cloneElement)(e,{ref:t})}function Ke(e){if("string"!=typeof e.type){var 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 ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function ze(e){var t={};return Object.keys(e).forEach((function(r){var o=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,n.isValidElement)(t)){var o=t;return e(o,r),o}var i=t;Ke(i);var a=r?function(t){return e(t,r)}:e;return Xe(i,a)}}(o);t[r]=function(){return i}}})),t}function Je(e){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Je(e)}function Qe(e){return null!==e&&"object"===Je(e)&&e.hasOwnProperty("current")}function Ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var et=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ze({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,Qe(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,Qe(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.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=t}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();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)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Ne(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Ne(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&Ze(t.prototype,r),e}();function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function rt(e){var t=(0,n.useRef)(e);t.current=e,q(null!=e.item,"item must be defined"),q(null!=e.item.type,"item type must be defined");var r,o,i,a=(r=Be(),o=[(0,n.useMemo)((function(){return new Ye(r)}),[r]),(0,n.useMemo)((function(){return new et(r.getBackend())}),[r])],i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];!function(e,t,r){var o=Be(),i=(0,n.useMemo)((function(){return{beginDrag:function(){var r=e.current,n=r.begin,o=r.item;if(n){var i=n(t);return q(null==i||"object"===tt(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(r,n){var o=e.current.isDragging;return o?o(t):n===r.getSourceId()},endDrag:function(){var n=e.current.end;n&&n(t.getItem(),t),r.reconnect()}}}),[]);He((function(){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Le(e.current.item.type,i,o),2),a=n[0],u=n[1];return t.receiveHandlerId(a),r.receiveHandlerId(a),u}),[])}(t,u,c);var s=Fe(u,t.current.collect||function(){return{}},(function(){return c.reconnect()})),l=(0,n.useMemo)((function(){return c.hooks.dragSource()}),[c]),f=(0,n.useMemo)((function(){return c.hooks.dragPreview()}),[c]);return He((function(){c.dragSourceOptions=t.current.options||null,c.reconnect()}),[c]),He((function(){c.dragPreviewOptions=t.current.previewOptions||null,c.reconnect()}),[c]),[s,l,f]}function nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ot=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ze({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,Qe(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var 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)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Ne(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&nt(t.prototype,r),e}();function it(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var at=!1,ut=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;q(!at,"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 at=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{at=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&it(t.prototype,r),e}();function ct(e){var t=(0,n.useRef)(e);t.current=e,q(null!=e.accept,"accept must be defined");var r,o,i,a=(r=Be(),o=[(0,n.useMemo)((function(){return new ut(r)}),[r]),(0,n.useMemo)((function(){return new ot(r.getBackend())}),[r])],i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];!function(e,t,r){var o=Be(),i=(0,n.useMemo)((function(){return{canDrop:function(){var r=e.current.canDrop;return!r||r(t.getItem(),t)},hover:function(){var r=e.current.hover;r&&r(t.getItem(),t)},drop:function(){var r=e.current.drop;if(r)return r(t.getItem(),t)}}}),[t]);He((function(){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Ge(e.current.accept,i,o),2),a=n[0],u=n[1];return t.receiveHandlerId(a),r.receiveHandlerId(a),u}),[t,r])}(t,u,c);var s=Fe(u,t.current.collect||function(){return{}},(function(){return c.reconnect()})),l=(0,n.useMemo)((function(){return c.hooks.dropTarget()}),[c]);return He((function(){c.dropTargetOptions=e.options||null,c.reconnect()}),[e.options]),[s,l]}function st(e){var t,r,o=Be().getMonitor(),i=(t=Ue(o,e),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],u=i[1];return(0,n.useEffect)((function(){return o.subscribeToOffsetChange(u)})),(0,n.useEffect)((function(){return o.subscribeToStateChange(u)})),a}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ft(e){return"function"==typeof e}function dt(){}function pt(e){if(!function(e){return"object"===lt(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gt(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function ht(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}var yt=r(73463);function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,t,r){return t&&bt(e.prototype,t),r&&bt(e,r),e}var Ot=function(){function e(t){vt(this,e),this.isDisposed=!1,this.action=ft(t)?t:dt}return mt(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&ft(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();Ot.empty={dispose:dt};var St=function(){function e(){vt(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return mt(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),Dt=function(){function e(){vt(this,e),this.isDisposed=!1}return mt(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function It(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}function Ct(e,t){return Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ct(e,t)}function Tt(e){var t=e.DecoratedComponent,r=e.createHandler,o=e.createMonitor,i=e.createConnector,a=e.registerHandler,u=e.containerDisplayName,c=e.getType,s=e.collect,l=e.options.arePropsEqual,f=void 0===l?Ne:l,d=t,p=t.displayName||t.name||"Component",g=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,kt(t).call(this,e))).decoratedRef=n.createRef(),r.handleChange=function(){var e=r.getCurrentState();Ne(e,r.state)||r.setState(e)},r.disposable=new Dt,r.receiveProps(e),r.dispose(),r}var u,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ct(e,t)}(t,e),u=t,(l=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return q(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!f(e,this.props)||!Ne(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new Dt,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){f(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(c(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(i=a(e,this.handler,this.manager),u=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(i,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new St(new Ot(o),new Ot(n)))}var i,u}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?s(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return n.createElement(je.Consumer,null,(function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),n.createElement(d,Object.assign({},e.props,e.getCurrentState(),{ref:ht(d)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(q(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",p,p),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=i(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&It(u.prototype,l),t}(n.Component);return g.DecoratedComponent=t,g.displayName="".concat(u,"(").concat(p,")"),yt(g,t)}function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function jt(e,t){return"string"==typeof e||"symbol"===Pt(e)||!!t&&Array.isArray(e)&&e.every((function(e){return jt(e,!1)}))}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Rt=["canDrag","beginDrag","isDragging","endDrag"],Mt=["beginDrag"],xt=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,gt(this.ref))}}])&&Et(t.prototype,r),e}();function At(e){return Object.keys(e).forEach((function(t){q(Rt.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',Rt.join(", "),t),q("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),Mt.forEach((function(t){q("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new xt(e,t,r)}}function _t(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(q(jt(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),q(pt(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=At(t);return q("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),q(pt(n),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return Tt({containerDisplayName:"DragSource",createHandler:i,registerHandler:Le,createConnector:function(e){return new et(e)},createMonitor:function(e){return new Ye(e)},DecoratedComponent:e,getType:o,collect:r,options:n})}}function Ht(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Nt=["canDrop","hover","drop"],Ut=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,gt(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Ht(t.prototype,r),e}();function Ft(e){return Object.keys(e).forEach((function(t){q(Nt.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Nt.join(", "),t),q("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new Ut(e,t,r)}}function Gt(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(q(jt(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),q(pt(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=Ft(t);return q("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),q(pt(n),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return Tt({containerDisplayName:"DropTarget",createHandler:i,registerHandler:Ge,createMonitor:function(e){return new ut(e)},createConnector:function(e){return new ot(e)},DecoratedComponent:e,getType:o,collect:r,options:n})}}function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vt(e,t,r){return t&&qt(e.prototype,t),r&&qt(e,r),e}function Wt(e,t){return!t||"object"!==Lt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yt(e){return Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yt(e)}function $t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xt(e,t)}function Xt(e,t){return Xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xt(e,t)}function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),q(pt(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(r){var o=r,i=t.arePropsEqual,a=void 0===i?Ne:i,u=o.displayName||o.name||"Component",c=function(t){function r(){var e;return Bt(this,r),(e=Wt(this,Yt(r).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=n.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();Ne(t,e.state)||e.setState(t)}},e}return $t(r,t),Vt(r,[{key:"getDecoratedComponentInstance",value:function(){return q(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!a(e,this.props)||!Ne(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return n.createElement(je.Consumer,null,(function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?n.createElement(o,Object.assign({},e.props,e.state,{ref:ht(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,q("object"===Lt(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",u,u);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),r}(n.Component);return c.displayName="DragLayer(".concat(u,")"),c.DecoratedComponent=r,yt(c,r)}}}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0012abff-0e2e-4c6e-927f-7e428683a1d4",e._sentryDebugIdIdentifier="sentry-dbid-0012abff-0e2e-4c6e-927f-7e428683a1d4")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1724"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3348],{60629:(e,t,r)=>{"use strict";var n=r(42384),o=[],i=[],a=n.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function u(e){var t;(t=o.length?o.pop():new c).task=e,n(t)}function c(){this.task=null}e.exports=u,c.prototype.call=function(){try{this.task.call()}catch(e){u.onerror?u.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},42384:(e,t,r)=>{"use strict";function n(e){i.length||o(),i[i.length]=e}e.exports=n;var o,i=[],a=0;function u(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,r=i.length-a;t<r;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0}var c,s,l,f=void 0!==r.g?r.g:self,d=f.MutationObserver||f.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof d?(c=1,s=new d(u),l=document.createTextNode(""),s.observe(l,{characterData:!0}),o=function(){c=-c,l.data=c}):o=p(u),n.requestFlush=o,n.makeRequestCallFromTimer=p},47677:e=>{"use strict";e.exports=function(e,t,r,n,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},88665:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!u(s))return!1;var l=e[s],f=t[s];if(!1===(o=r?r.call(n,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},53348:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DndContext:()=>je,DndProvider:()=>Me,DragLayer:()=>Kt,DragPreviewImage:()=>_e,DragSource:()=>_t,DropTarget:()=>Gt,createDndContext:()=>Ee,useDrag:()=>rt,useDragLayer:()=>st,useDrop:()=>ct});var n=r(24328),o=r(28523),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",s="dnd-core/DROP",l="dnd-core/END_DRAG",f=function(e,t){return e===t};function d(e,t){return!e&&!t||!(!e||!t)&&e.x===t.x&&e.y===t.y}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case i:case a:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case c:return d(e.clientOffset,r.clientOffset)?e:h({},e,{clientOffset:r.clientOffset});case l:case s:return v;default:return e}}var m="dnd-core/ADD_SOURCE",O="dnd-core/ADD_TARGET",S="dnd-core/REMOVE_SOURCE",D="dnd-core/REMOVE_TARGET";function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function I(e,t,r){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e)}function k(e,t){return e.filter((function(e){return e!==t}))}function C(e){return"object"===w(e)}function T(e,t){var r=new Map,n=function(e){return r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case a:return j({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case u:return j({},e,{isSourcePublic:!0});case c:return j({},e,{targetIds:r.targetIds});case D:return-1===e.targetIds.indexOf(r.targetId)?e:j({},e,{targetIds:k(e.targetIds,r.targetId)});case s:return j({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case l:return j({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case m:case O:return e+1;case S:case D:return e-1;default:return e}}var A=[],_=[];function H(e,t){return e!==A&&(e===_||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}function N(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case m:case O:case D:case S:return A;default:return _}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=T(n,i),u=a.length>0||!p(n,i);if(!u)return A;var s=i[i.length-1],l=n[n.length-1];return s!==l&&(s&&a.push(s),l&&a.push(l)),a}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:N(e.dirtyHandlerIds,{type:t.type,payload:G({},t.payload,{prevTargetIds:I(e,"dragOperation.targetIds",[])})}),dragOffset:b(e.dragOffset,t),refCount:x(e.refCount,t),dragOperation:M(e.dragOperation,t),stateId:U(e.stateId)}}A.__IS_NONE__=!0,_.__IS_ALL__=!0;var q=r(47677);function V(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var W={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function Y(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,u=r.getSourceClientOffset,c=e.getMonitor(),s=e.getRegistry();e.dispatch(V(i)),$(t,c,s);var l=z(t,c);if(null!==l){var f=null;i&&(X(u),f=u(l)),e.dispatch(V(i,f));var d=s.getSource(l),p=d.beginDrag(c,l);K(p),s.pinSource(l);var g=s.getSourceType(l);return{type:a,payload:{itemType:g,item:p,sourceId:l,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(W)}}function $(e,t,r){q(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){q(r.getSource(e),"Expected sourceIds to be registered.")}))}function X(e){q("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function K(e){q(C(e),"Item must be an object.")}function z(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function J(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function Q(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function Z(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;ee(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();te(o,i,a);var u=i.getItemType();return re(o,a,u),ne(o,i,a),{type:c,payload:{targetIds:o,clientOffset:n||null}}}}function ee(e){q(Array.isArray(e),"Expected targetIds to be an array.")}function te(e,t,r){q(t.isDragging(),"Cannot call hover while not dragging."),q(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];q(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);q(i,"Expected targetIds to be registered.")}}function re(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];Q(t.getTargetType(o),r)||e.splice(n,1)}}function ne(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();ce(r);var o=le(r);o.forEach((function(o,i){var a=se(o,i,n,r),u={type:s,payload:{dropResult:ie({},t,{},a)}};e.dispatch(u)}))}}function ce(e){q(e.isDragging(),"Cannot call drop while not dragging."),q(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function se(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;return function(e){q(void 0===e||C(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function le(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fe(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){q(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();return r.getSource(n,!0).endDrag(t,n),r.unpinSource(),{type:l}}}function de(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ge,he=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;q("function"==typeof e,"listener must be a function."),q(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!H(r.dirtyHandlerIds,n)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;q("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return q(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return q(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&Q(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return q(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Q(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return n=(e=this.store.getState().dragOffset).clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?de((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,r=e.initialClientOffset,t&&r?de(t,r):null;var e,t,r}}],r&&pe(t.prototype,r),e}(),ye=r(60629),ve=0;function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function me(e,t){t&&Array.isArray(e)?e.forEach((function(e){return me(e,!1)})):q("string"==typeof e||"symbol"===be(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Se(e){switch(e[0]){case"S":return ge.SOURCE;case"T":return ge.TARGET;default:q(!1,"Cannot parse handler ID: ".concat(e))}}function De(e,t){var r,n,o=e.entries(),i=!1;do{var a=o.next(),u=a.done;if((r=a.value,n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[1]===t)return!0;i=!!u}while(!i);return!1}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(ge||(ge={}));var we=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r;return t=e,r=[{key:"addSource",value:function(e,t){me(e),function(e){q("function"==typeof e.canDrag,"Expected canDrag to be a function."),q("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),q("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(ge.SOURCE,e,t);return this.store.dispatch(function(e){return{type:m,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){me(e,!0),function(e){q("function"==typeof e.canDrop,"Expected canDrop to be a function."),q("function"==typeof e.hover,"Expected hover to be a function."),q("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(ge.TARGET,e,t);return this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return De(this.dragSources,e)||De(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(this.isSourceId(e),"Expected a valid source ID.");var r=t&&e===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(e);return n}},{key:"getTarget",value:function(e){return q(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return q(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return q(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Se(e)===ge.SOURCE}},{key:"isTargetId",value:function(e){return Se(e)===ge.TARGET}},{key:"removeSource",value:function(e){var t=this;q(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:S,payload:{sourceId:e}}}(e)),ye((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){q(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:D,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);q(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){q(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=function(e){var t=(ve++).toString();switch(e){case ge.SOURCE:return"S".concat(t);case ge.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(n,t),e===ge.SOURCE?this.dragSources.set(n,r):e===ge.TARGET&&this.dropTargets.set(n,r),n}}],r&&Oe(t.prototype,r),e}();function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ce(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.createStore)(B,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Te=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ie(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=Ce(r);this.store=n,this.monitor=new he(n,new we(n)),n.subscribe(this.handleRefCountChange)}var t,r;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:Y(e),publishDragSource:J(e),hover:Z(e),drop:ue(e),endDrag:fe(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&ke(t.prototype,r),e}();function Pe(e,t,r,n){var o=new Te(n),i=e(o,t,r);return o.receiveBackend(i),o}var je=n.createContext({dragDropManager:void 0});function Ee(e,t,r,n){return{dragDropManager:Pe(e,t,r,n)}}var Re=0,Me=(0,n.memo)((function(e){var t,r,o=e.children,i=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[xe]||(o[xe]=Ee(e,t,r,n)),o[xe]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children"])),a=(r=2,function(e){if(Array.isArray(e))return e}(t=i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];return n.useEffect((function(){return c&&Re++,function(){c&&0==--Re&&(Ae()[xe]=null)}}),[]),n.createElement(je.Provider,{value:u},o)}));Me.displayName="DndProvider";var xe=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Ae(){return"undefined"!=typeof global?global:window}var _e=n.memo((function(e){var t=e.connect,r=e.src;if("undefined"!=typeof Image){var n=new Image;n.src=r,n.onload=function(){return t(n)}}return null}));_e.displayName="DragPreviewImage";var He="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,Ne=r(88665);function Ue(e,t,r){var o,i,a=(o=(0,n.useState)((function(){return t(e)})),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1],s=(0,n.useCallback)((function(){var n=t(e);Ne(u,n)||(c(n),r&&r())}),[u,e,r]);return He(s,[]),[u,s]}function Fe(e,t,r){var n,o,i=(n=Ue(e,t,r),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],u=i[1];return He((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(u,{handlerIds:[t]})}),[e,u]),a}function Ge(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function Le(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}function Be(){var e=(0,n.useContext)(je).dragDropManager;return q(null!=e,"Expected drag drop context"),e}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ve=!1,We=!1,Ye=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){q(!Ve,"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 Ve=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ve=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;q(!We,"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 We=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{We=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&qe(t.prototype,r),e}();function $e(e,t){"function"==typeof e?e(t):e.current=t}function Xe(e,t){var r=e.ref;return q("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://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?(0,n.cloneElement)(e,{ref:function(e){$e(r,e),$e(t,e)}}):(0,n.cloneElement)(e,{ref:t})}function Ke(e){if("string"!=typeof e.type){var 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 ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function ze(e){var t={};return Object.keys(e).forEach((function(r){var o=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,n.isValidElement)(t)){var o=t;return e(o,r),o}var i=t;Ke(i);var a=r?function(t){return e(t,r)}:e;return Xe(i,a)}}(o);t[r]=function(){return i}}})),t}function Je(e){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Je(e)}function Qe(e){return null!==e&&"object"===Je(e)&&e.hasOwnProperty("current")}function Ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var et=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ze({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,Qe(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,Qe(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.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=t}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();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)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Ne(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Ne(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&Ze(t.prototype,r),e}();function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function rt(e){var t=(0,n.useRef)(e);t.current=e,q(null!=e.item,"item must be defined"),q(null!=e.item.type,"item type must be defined");var r,o,i,a=(r=Be(),o=[(0,n.useMemo)((function(){return new Ye(r)}),[r]),(0,n.useMemo)((function(){return new et(r.getBackend())}),[r])],i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];!function(e,t,r){var o=Be(),i=(0,n.useMemo)((function(){return{beginDrag:function(){var r=e.current,n=r.begin,o=r.item;if(n){var i=n(t);return q(null==i||"object"===tt(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(r,n){var o=e.current.isDragging;return o?o(t):n===r.getSourceId()},endDrag:function(){var n=e.current.end;n&&n(t.getItem(),t),r.reconnect()}}}),[]);He((function(){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Le(e.current.item.type,i,o),2),a=n[0],u=n[1];return t.receiveHandlerId(a),r.receiveHandlerId(a),u}),[])}(t,u,c);var s=Fe(u,t.current.collect||function(){return{}},(function(){return c.reconnect()})),l=(0,n.useMemo)((function(){return c.hooks.dragSource()}),[c]),f=(0,n.useMemo)((function(){return c.hooks.dragPreview()}),[c]);return He((function(){c.dragSourceOptions=t.current.options||null,c.reconnect()}),[c]),He((function(){c.dragPreviewOptions=t.current.previewOptions||null,c.reconnect()}),[c]),[s,l,f]}function nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ot=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ze({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,Qe(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var 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)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Ne(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&nt(t.prototype,r),e}();function it(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var at=!1,ut=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;q(!at,"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 at=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{at=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&it(t.prototype,r),e}();function ct(e){var t=(0,n.useRef)(e);t.current=e,q(null!=e.accept,"accept must be defined");var r,o,i,a=(r=Be(),o=[(0,n.useMemo)((function(){return new ut(r)}),[r]),(0,n.useMemo)((function(){return new ot(r.getBackend())}),[r])],i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=a[0],c=a[1];!function(e,t,r){var o=Be(),i=(0,n.useMemo)((function(){return{canDrop:function(){var r=e.current.canDrop;return!r||r(t.getItem(),t)},hover:function(){var r=e.current.hover;r&&r(t.getItem(),t)},drop:function(){var r=e.current.drop;if(r)return r(t.getItem(),t)}}}),[t]);He((function(){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Ge(e.current.accept,i,o),2),a=n[0],u=n[1];return t.receiveHandlerId(a),r.receiveHandlerId(a),u}),[t,r])}(t,u,c);var s=Fe(u,t.current.collect||function(){return{}},(function(){return c.reconnect()})),l=(0,n.useMemo)((function(){return c.hooks.dropTarget()}),[c]);return He((function(){c.dropTargetOptions=e.options||null,c.reconnect()}),[e.options]),[s,l]}function st(e){var t,r,o=Be().getMonitor(),i=(t=Ue(o,e),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],u=i[1];return(0,n.useEffect)((function(){return o.subscribeToOffsetChange(u)})),(0,n.useEffect)((function(){return o.subscribeToStateChange(u)})),a}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ft(e){return"function"==typeof e}function dt(){}function pt(e){if(!function(e){return"object"===lt(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gt(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function ht(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}var yt=r(73463);function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,t,r){return t&&bt(e.prototype,t),r&&bt(e,r),e}var Ot=function(){function e(t){vt(this,e),this.isDisposed=!1,this.action=ft(t)?t:dt}return mt(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&ft(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();Ot.empty={dispose:dt};var St=function(){function e(){vt(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return mt(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),Dt=function(){function e(){vt(this,e),this.isDisposed=!1}return mt(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function It(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}function Ct(e,t){return Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ct(e,t)}function Tt(e){var t=e.DecoratedComponent,r=e.createHandler,o=e.createMonitor,i=e.createConnector,a=e.registerHandler,u=e.containerDisplayName,c=e.getType,s=e.collect,l=e.options.arePropsEqual,f=void 0===l?Ne:l,d=t,p=t.displayName||t.name||"Component",g=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,kt(t).call(this,e))).decoratedRef=n.createRef(),r.handleChange=function(){var e=r.getCurrentState();Ne(e,r.state)||r.setState(e)},r.disposable=new Dt,r.receiveProps(e),r.dispose(),r}var u,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ct(e,t)}(t,e),u=t,(l=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return q(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!f(e,this.props)||!Ne(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new Dt,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){f(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(c(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(i=a(e,this.handler,this.manager),u=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(i,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new St(new Ot(o),new Ot(n)))}var i,u}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?s(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return n.createElement(je.Consumer,null,(function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),n.createElement(d,Object.assign({},e.props,e.getCurrentState(),{ref:ht(d)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(q(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",p,p),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=i(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&It(u.prototype,l),t}(n.Component);return g.DecoratedComponent=t,g.displayName="".concat(u,"(").concat(p,")"),yt(g,t)}function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function jt(e,t){return"string"==typeof e||"symbol"===Pt(e)||!!t&&Array.isArray(e)&&e.every((function(e){return jt(e,!1)}))}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Rt=["canDrag","beginDrag","isDragging","endDrag"],Mt=["beginDrag"],xt=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,gt(this.ref))}}])&&Et(t.prototype,r),e}();function At(e){return Object.keys(e).forEach((function(t){q(Rt.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',Rt.join(", "),t),q("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),Mt.forEach((function(t){q("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new xt(e,t,r)}}function _t(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(q(jt(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),q(pt(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=At(t);return q("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),q(pt(n),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return Tt({containerDisplayName:"DragSource",createHandler:i,registerHandler:Le,createConnector:function(e){return new et(e)},createMonitor:function(e){return new Ye(e)},DecoratedComponent:e,getType:o,collect:r,options:n})}}function Ht(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Nt=["canDrop","hover","drop"],Ut=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,gt(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Ht(t.prototype,r),e}();function Ft(e){return Object.keys(e).forEach((function(t){q(Nt.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Nt.join(", "),t),q("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new Ut(e,t,r)}}function Gt(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(q(jt(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),q(pt(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=Ft(t);return q("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),q(pt(n),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return Tt({containerDisplayName:"DropTarget",createHandler:i,registerHandler:Ge,createMonitor:function(e){return new ut(e)},createConnector:function(e){return new ot(e)},DecoratedComponent:e,getType:o,collect:r,options:n})}}function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vt(e,t,r){return t&&qt(e.prototype,t),r&&qt(e,r),e}function Wt(e,t){return!t||"object"!==Lt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yt(e){return Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yt(e)}function $t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xt(e,t)}function Xt(e,t){return Xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xt(e,t)}function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),q(pt(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(r){var o=r,i=t.arePropsEqual,a=void 0===i?Ne:i,u=o.displayName||o.name||"Component",c=function(t){function r(){var e;return Bt(this,r),(e=Wt(this,Yt(r).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=n.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();Ne(t,e.state)||e.setState(t)}},e}return $t(r,t),Vt(r,[{key:"getDecoratedComponentInstance",value:function(){return q(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!a(e,this.props)||!Ne(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return n.createElement(je.Consumer,null,(function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?n.createElement(o,Object.assign({},e.props,e.state,{ref:ht(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,q("object"===Lt(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",u,u);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),r}(n.Component);return c.displayName="DragLayer(".concat(u,")"),c.DecoratedComponent=r,yt(c,r)}}}}]);
2
2
  //# sourceMappingURL=3348.js.map
package/3381.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ef187403-302f-430b-a5f1-2419ec15f3fa",t._sentryDebugIdIdentifier="sentry-dbid-ef187403-302f-430b-a5f1-2419ec15f3fa")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1722"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3381],{93553:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");e.Z=a},63655:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=a},80653:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");e.Z=a},24648:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");e.Z=a},9366:(t,e,n)=>{n.d(e,{Q:()=>c});var o=n(7896),s=n(95038),i=n.n(s);const a={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},r={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},l=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class c{constructor({locale:t,formats:e,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=a,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=t=>{const e=this.moment(t).local();return void 0===this.locale?e:e.locale(this.locale)},this.createUTCDate=t=>{const e=this.moment.utc(t);return void 0===this.locale?e:e.locale(this.locale)},this.createTZDate=(t,e)=>{if(!this.hasTimezonePlugin())throw new Error(l);const n="default"===e?this.moment(t):this.moment.tz(t,e);return void 0===this.locale?n:n.locale(this.locale)},this.date=t=>{if(null===t)return null;const e=this.moment(t);return e.locale(this.getCurrentLocaleCode()),e},this.dateWithTimezone=(t,e)=>null===t?null:"UTC"===e?this.createUTCDate(t):"system"===e||"default"===e&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,e),this.getTimezone=t=>{var e,n,o;if(t.isUTC())return"UTC";const s=null==(e=t._z)?void 0:e.name;return null!=(n=null!=s?s:null==(o=this.moment.defaultZone)?void 0:o.name)?n:"system"},this.setTimezone=(t,e)=>{var n,o;if("UTC"===e)return t.clone().utc();if("system"===e)return t.clone().local();if(!this.hasTimezonePlugin()){if("default"===e)return t;throw new Error(l)}const s="default"===e?null!=(n=null==(o=this.moment.defaultZone)?void 0:o.name)?n:"system":e,i=t.clone();return i.tz(s),i},this.toJsDate=t=>t.toDate(),this.parseISO=t=>this.moment(t,!0),this.toISO=t=>t.toISOString(),this.parse=(t,e)=>""===t?null:this.locale?this.moment(t,e,this.locale,!0):this.moment(t,e,!0),this.getCurrentLocaleCode=()=>this.locale||i().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(i().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=t=>t.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((t=>{const e=t[0];return"L"===e||";"===e?i().localeData(this.getCurrentLocaleCode()).longDateFormat(t):t})).join(""),this.getFormatHelperText=t=>this.expandFormat(t).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=t=>null===t,this.isValid=t=>this.moment(t).isValid(),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>{const n=t.clone();return n.locale(this.getCurrentLocaleCode()),n.format(e)},this.formatNumber=t=>t,this.getDiff=(t,e,n)=>t.diff(e,n),this.isEqual=(t,e)=>null===t&&null===e||this.moment(t).isSame(e),this.isSameYear=(t,e)=>t.isSame(e,"year"),this.isSameMonth=(t,e)=>t.isSame(e,"month"),this.isSameDay=(t,e)=>t.isSame(e,"day"),this.isSameHour=(t,e)=>t.isSame(e,"hour"),this.isAfter=(t,e)=>t.isAfter(e),this.isAfterYear=(t,e)=>t.isAfter(e,"year"),this.isAfterDay=(t,e)=>t.isAfter(e,"day"),this.isBefore=(t,e)=>t.isBefore(e),this.isBeforeYear=(t,e)=>t.isBefore(e,"year"),this.isBeforeDay=(t,e)=>t.isBefore(e,"day"),this.isWithinRange=(t,[e,n])=>t.isBetween(e,n,null,"[]"),this.startOfYear=t=>t.clone().startOf("year"),this.startOfMonth=t=>t.clone().startOf("month"),this.startOfWeek=t=>t.clone().startOf("week"),this.startOfDay=t=>t.clone().startOf("day"),this.endOfYear=t=>t.clone().endOf("year"),this.endOfMonth=t=>t.clone().endOf("month"),this.endOfWeek=t=>t.clone().endOf("week"),this.endOfDay=t=>t.clone().endOf("day"),this.addYears=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"years"):t.clone().add(e,"years"),this.addMonths=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"months"):t.clone().add(e,"months"),this.addWeeks=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"weeks"):t.clone().add(e,"weeks"),this.addDays=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"days"):t.clone().add(e,"days"),this.addHours=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"hours"):t.clone().add(e,"hours"),this.addMinutes=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"minutes"):t.clone().add(e,"minutes"),this.addSeconds=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"seconds"):t.clone().add(e,"seconds"),this.getYear=t=>t.get("year"),this.getMonth=t=>t.get("month"),this.getDate=t=>t.get("date"),this.getHours=t=>t.get("hours"),this.getMinutes=t=>t.get("minutes"),this.getSeconds=t=>t.get("seconds"),this.getMilliseconds=t=>t.get("milliseconds"),this.setYear=(t,e)=>t.clone().year(e),this.setMonth=(t,e)=>t.clone().month(e),this.setDate=(t,e)=>t.clone().date(e),this.setHours=(t,e)=>t.clone().hours(e),this.setMinutes=(t,e)=>t.clone().minutes(e),this.setSeconds=(t,e)=>t.clone().seconds(e),this.setMilliseconds=(t,e)=>t.clone().milliseconds(e),this.getDaysInMonth=t=>t.daysInMonth(),this.getNextMonth=t=>t.clone().add(1,"month"),this.getPreviousMonth=t=>t.clone().subtract(1,"month"),this.getMonthArray=t=>{const e=[this.startOfYear(t)];for(;e.length<12;){const t=e[e.length-1];e.push(this.getNextMonth(t))}return e},this.mergeDateAndTime=(t,e)=>t.clone().hour(e.hour()).minute(e.minute()).second(e.second()),this.getWeekdays=()=>i().weekdaysShort(!0),this.getWeekArray=t=>{const e=this.setLocaleToValue(t),n=e.clone().startOf("month").startOf("week"),o=e.clone().endOf("month").endOf("week");let s=0,i=n;const a=[];for(;i.isBefore(o);){const t=Math.floor(s/7);a[t]=a[t]||[],a[t].push(i),i=i.clone().add(1,"day"),s+=1}return a},this.getWeekNumber=t=>t.week(),this.getYearRange=(t,e)=>{const n=this.moment(t).startOf("year"),o=this.moment(e).endOf("year"),s=[];let i=n;for(;i.isBefore(o);)s.push(i),i=i.clone().add(1,"year");return s},this.getMeridiemText=t=>this.is12HourCycleInCurrentLocale()?i().localeData(this.getCurrentLocaleCode()).meridiem("am"===t?0:13,0,!1):"am"===t?"AM":"PM",this.moment=n||i(),this.locale=t,this.formats=(0,o.Z)({},r,e)}}},27308:(t,e,n)=>{n.d(e,{ZP:()=>v});var o=n(59740),s=n(7896),i=n(9249),a=n(87371),r=n(45754),l=n(11987),c=n(95058),h=n(24328),u=n.n(h),d=(n(3528),n(75047),n(81997)),f=n(54573);var m,p,y,g=(0,(n(78951),n(61950),n(64486)).m)(f.S);const v=(m=g,y=p=function(t){(0,r.Z)(f,t);var e,n,h=(e=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=(0,c.Z)(e);if(n){var s=(0,c.Z)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,l.Z)(this,t)});function f(t){var e;return(0,i.Z)(this,f),(e=h.call(this)).select=void 0,e.lastRequest=void 0,e.mounted=!1,e.optionsCache={},e.handleInputChange=function(t,n){var o=e.props,s=o.cacheOptions,i=o.onInputChange,a=(0,d.G)(t,n,i);if(!a)return delete e.lastRequest,void e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(s&&e.optionsCache[a])e.setState({inputValue:a,loadedInputValue:a,loadedOptions:e.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var r=e.lastRequest={};e.setState({inputValue:a,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},(function(){e.loadOptions(a,(function(t){e.mounted&&(t&&(e.optionsCache[a]=t),r===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:a,loadedOptions:t||[],passEmptyOptions:!1})))}))}))}return a},e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}return(0,a.Z)(f,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,(function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var o=n(t,e);o&&"function"==typeof o.then&&o.then(e,(function(){return e()}))}},{key:"render",value:function(){var t=this,e=this.props,n=(e.loadOptions,e.isLoading),i=(0,o.Z)(e,["loadOptions","isLoading"]),a=this.state,r=a.defaultOptions,l=a.inputValue,c=a.isLoading,h=a.loadedInputValue,d=a.loadedOptions,f=a.passEmptyOptions?[]:l&&h?d:r||[];return u().createElement(m,(0,s.Z)({},i,{ref:function(e){t.select=e},options:f,isLoading:c||n,onInputChange:this.handleInputChange}))}}]),f}(h.Component),p.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},y)},70347:(t,e,n)=>{n.d(e,{ZP:()=>b});var o=n(7896),s=n(38777),i=n(56666),a=n(9249),r=n(87371),l=n(45754),c=n(11987),h=n(95058),u=n(24328),d=n.n(u),f=(n(3528),n(75047),n(81997)),m=n(54573),p=(n(78951),n(61950),n(64486));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var g,v,O,M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=String(t).toLowerCase(),o=String(e.value).toLowerCase(),s=String(e.label).toLowerCase();return o===n||s===n},D=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,n){return!(!t||e.some((function(e){return M(t,e)}))||n.some((function(e){return M(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}}),T=(g=m.S,O=v=function(t){(0,l.Z)(u,t);var e,n,i=(e=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=(0,h.Z)(e);if(n){var s=(0,h.Z)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,c.Z)(this,t)});function u(t){var e;(0,a.Z)(this,u),(e=i.call(this,t)).select=void 0,e.onChange=function(t,n){var o=e.props,i=o.getNewOptionData,a=o.inputValue,r=o.isMulti,l=o.onChange,c=o.onCreateOption,h=o.value,u=o.name;if("select-option"!==n.action)return l(t,n);var d=e.state.newOption,m=Array.isArray(t)?t:[t];if(m[m.length-1]!==d)l(t,n);else if(c)c(a);else{var p=i(a,a),y={action:"create-option",name:u};l(r?[].concat((0,s.Z)((0,f.C)(h)),[p]):p,y)}};var n=t.options||[];return e.state={newOption:void 0,options:n},e}return(0,r.Z)(u,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,n=t.createOptionPosition,o=t.formatCreateLabel,i=t.getNewOptionData,a=t.inputValue,r=t.isLoading,l=t.isValidNewOption,c=t.value,h=t.options||[],u=this.state.newOption;u=l(a,(0,f.C)(c),h)?i(a,o(a)):void 0,this.setState({newOption:u,options:!e&&r||!u?h:"first"===n?[u].concat((0,s.Z)(h)):[].concat((0,s.Z)(h),[u])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,e=this.state.options;return d().createElement(g,(0,o.Z)({},this.props,{ref:function(e){t.select=e},options:e,onChange:this.onChange}))}}]),u}(u.Component),v.defaultProps=D,O);const b=(0,p.m)(T)}}]);
1
+ !function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ef187403-302f-430b-a5f1-2419ec15f3fa",t._sentryDebugIdIdentifier="sentry-dbid-ef187403-302f-430b-a5f1-2419ec15f3fa")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1724"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3381],{93553:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");e.Z=a},63655:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=a},80653:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");e.Z=a},24648:(t,e,n)=>{var o=n(71600);e.Z=void 0;var s=o(n(68671)),i=n(52322),a=(0,s.default)((0,i.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");e.Z=a},9366:(t,e,n)=>{n.d(e,{Q:()=>c});var o=n(7896),s=n(95038),i=n.n(s);const a={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},r={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},l=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class c{constructor({locale:t,formats:e,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=a,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=t=>{const e=this.moment(t).local();return void 0===this.locale?e:e.locale(this.locale)},this.createUTCDate=t=>{const e=this.moment.utc(t);return void 0===this.locale?e:e.locale(this.locale)},this.createTZDate=(t,e)=>{if(!this.hasTimezonePlugin())throw new Error(l);const n="default"===e?this.moment(t):this.moment.tz(t,e);return void 0===this.locale?n:n.locale(this.locale)},this.date=t=>{if(null===t)return null;const e=this.moment(t);return e.locale(this.getCurrentLocaleCode()),e},this.dateWithTimezone=(t,e)=>null===t?null:"UTC"===e?this.createUTCDate(t):"system"===e||"default"===e&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,e),this.getTimezone=t=>{var e,n,o;if(t.isUTC())return"UTC";const s=null==(e=t._z)?void 0:e.name;return null!=(n=null!=s?s:null==(o=this.moment.defaultZone)?void 0:o.name)?n:"system"},this.setTimezone=(t,e)=>{var n,o;if("UTC"===e)return t.clone().utc();if("system"===e)return t.clone().local();if(!this.hasTimezonePlugin()){if("default"===e)return t;throw new Error(l)}const s="default"===e?null!=(n=null==(o=this.moment.defaultZone)?void 0:o.name)?n:"system":e,i=t.clone();return i.tz(s),i},this.toJsDate=t=>t.toDate(),this.parseISO=t=>this.moment(t,!0),this.toISO=t=>t.toISOString(),this.parse=(t,e)=>""===t?null:this.locale?this.moment(t,e,this.locale,!0):this.moment(t,e,!0),this.getCurrentLocaleCode=()=>this.locale||i().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(i().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=t=>t.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((t=>{const e=t[0];return"L"===e||";"===e?i().localeData(this.getCurrentLocaleCode()).longDateFormat(t):t})).join(""),this.getFormatHelperText=t=>this.expandFormat(t).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=t=>null===t,this.isValid=t=>this.moment(t).isValid(),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>{const n=t.clone();return n.locale(this.getCurrentLocaleCode()),n.format(e)},this.formatNumber=t=>t,this.getDiff=(t,e,n)=>t.diff(e,n),this.isEqual=(t,e)=>null===t&&null===e||this.moment(t).isSame(e),this.isSameYear=(t,e)=>t.isSame(e,"year"),this.isSameMonth=(t,e)=>t.isSame(e,"month"),this.isSameDay=(t,e)=>t.isSame(e,"day"),this.isSameHour=(t,e)=>t.isSame(e,"hour"),this.isAfter=(t,e)=>t.isAfter(e),this.isAfterYear=(t,e)=>t.isAfter(e,"year"),this.isAfterDay=(t,e)=>t.isAfter(e,"day"),this.isBefore=(t,e)=>t.isBefore(e),this.isBeforeYear=(t,e)=>t.isBefore(e,"year"),this.isBeforeDay=(t,e)=>t.isBefore(e,"day"),this.isWithinRange=(t,[e,n])=>t.isBetween(e,n,null,"[]"),this.startOfYear=t=>t.clone().startOf("year"),this.startOfMonth=t=>t.clone().startOf("month"),this.startOfWeek=t=>t.clone().startOf("week"),this.startOfDay=t=>t.clone().startOf("day"),this.endOfYear=t=>t.clone().endOf("year"),this.endOfMonth=t=>t.clone().endOf("month"),this.endOfWeek=t=>t.clone().endOf("week"),this.endOfDay=t=>t.clone().endOf("day"),this.addYears=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"years"):t.clone().add(e,"years"),this.addMonths=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"months"):t.clone().add(e,"months"),this.addWeeks=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"weeks"):t.clone().add(e,"weeks"),this.addDays=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"days"):t.clone().add(e,"days"),this.addHours=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"hours"):t.clone().add(e,"hours"),this.addMinutes=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"minutes"):t.clone().add(e,"minutes"),this.addSeconds=(t,e)=>e<0?t.clone().subtract(Math.abs(e),"seconds"):t.clone().add(e,"seconds"),this.getYear=t=>t.get("year"),this.getMonth=t=>t.get("month"),this.getDate=t=>t.get("date"),this.getHours=t=>t.get("hours"),this.getMinutes=t=>t.get("minutes"),this.getSeconds=t=>t.get("seconds"),this.getMilliseconds=t=>t.get("milliseconds"),this.setYear=(t,e)=>t.clone().year(e),this.setMonth=(t,e)=>t.clone().month(e),this.setDate=(t,e)=>t.clone().date(e),this.setHours=(t,e)=>t.clone().hours(e),this.setMinutes=(t,e)=>t.clone().minutes(e),this.setSeconds=(t,e)=>t.clone().seconds(e),this.setMilliseconds=(t,e)=>t.clone().milliseconds(e),this.getDaysInMonth=t=>t.daysInMonth(),this.getNextMonth=t=>t.clone().add(1,"month"),this.getPreviousMonth=t=>t.clone().subtract(1,"month"),this.getMonthArray=t=>{const e=[this.startOfYear(t)];for(;e.length<12;){const t=e[e.length-1];e.push(this.getNextMonth(t))}return e},this.mergeDateAndTime=(t,e)=>t.clone().hour(e.hour()).minute(e.minute()).second(e.second()),this.getWeekdays=()=>i().weekdaysShort(!0),this.getWeekArray=t=>{const e=this.setLocaleToValue(t),n=e.clone().startOf("month").startOf("week"),o=e.clone().endOf("month").endOf("week");let s=0,i=n;const a=[];for(;i.isBefore(o);){const t=Math.floor(s/7);a[t]=a[t]||[],a[t].push(i),i=i.clone().add(1,"day"),s+=1}return a},this.getWeekNumber=t=>t.week(),this.getYearRange=(t,e)=>{const n=this.moment(t).startOf("year"),o=this.moment(e).endOf("year"),s=[];let i=n;for(;i.isBefore(o);)s.push(i),i=i.clone().add(1,"year");return s},this.getMeridiemText=t=>this.is12HourCycleInCurrentLocale()?i().localeData(this.getCurrentLocaleCode()).meridiem("am"===t?0:13,0,!1):"am"===t?"AM":"PM",this.moment=n||i(),this.locale=t,this.formats=(0,o.Z)({},r,e)}}},27308:(t,e,n)=>{n.d(e,{ZP:()=>v});var o=n(59740),s=n(7896),i=n(9249),a=n(87371),r=n(45754),l=n(11987),c=n(95058),h=n(24328),u=n.n(h),d=(n(3528),n(75047),n(81997)),f=n(54573);var m,p,y,g=(0,(n(78951),n(61950),n(64486)).m)(f.S);const v=(m=g,y=p=function(t){(0,r.Z)(f,t);var e,n,h=(e=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=(0,c.Z)(e);if(n){var s=(0,c.Z)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,l.Z)(this,t)});function f(t){var e;return(0,i.Z)(this,f),(e=h.call(this)).select=void 0,e.lastRequest=void 0,e.mounted=!1,e.optionsCache={},e.handleInputChange=function(t,n){var o=e.props,s=o.cacheOptions,i=o.onInputChange,a=(0,d.G)(t,n,i);if(!a)return delete e.lastRequest,void e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(s&&e.optionsCache[a])e.setState({inputValue:a,loadedInputValue:a,loadedOptions:e.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var r=e.lastRequest={};e.setState({inputValue:a,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},(function(){e.loadOptions(a,(function(t){e.mounted&&(t&&(e.optionsCache[a]=t),r===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:a,loadedOptions:t||[],passEmptyOptions:!1})))}))}))}return a},e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}return(0,a.Z)(f,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,(function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var o=n(t,e);o&&"function"==typeof o.then&&o.then(e,(function(){return e()}))}},{key:"render",value:function(){var t=this,e=this.props,n=(e.loadOptions,e.isLoading),i=(0,o.Z)(e,["loadOptions","isLoading"]),a=this.state,r=a.defaultOptions,l=a.inputValue,c=a.isLoading,h=a.loadedInputValue,d=a.loadedOptions,f=a.passEmptyOptions?[]:l&&h?d:r||[];return u().createElement(m,(0,s.Z)({},i,{ref:function(e){t.select=e},options:f,isLoading:c||n,onInputChange:this.handleInputChange}))}}]),f}(h.Component),p.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},y)},70347:(t,e,n)=>{n.d(e,{ZP:()=>b});var o=n(7896),s=n(38777),i=n(56666),a=n(9249),r=n(87371),l=n(45754),c=n(11987),h=n(95058),u=n(24328),d=n.n(u),f=(n(3528),n(75047),n(81997)),m=n(54573),p=(n(78951),n(61950),n(64486));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var g,v,O,M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=String(t).toLowerCase(),o=String(e.value).toLowerCase(),s=String(e.label).toLowerCase();return o===n||s===n},D=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,n){return!(!t||e.some((function(e){return M(t,e)}))||n.some((function(e){return M(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}}),T=(g=m.S,O=v=function(t){(0,l.Z)(u,t);var e,n,i=(e=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=(0,h.Z)(e);if(n){var s=(0,h.Z)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,c.Z)(this,t)});function u(t){var e;(0,a.Z)(this,u),(e=i.call(this,t)).select=void 0,e.onChange=function(t,n){var o=e.props,i=o.getNewOptionData,a=o.inputValue,r=o.isMulti,l=o.onChange,c=o.onCreateOption,h=o.value,u=o.name;if("select-option"!==n.action)return l(t,n);var d=e.state.newOption,m=Array.isArray(t)?t:[t];if(m[m.length-1]!==d)l(t,n);else if(c)c(a);else{var p=i(a,a),y={action:"create-option",name:u};l(r?[].concat((0,s.Z)((0,f.C)(h)),[p]):p,y)}};var n=t.options||[];return e.state={newOption:void 0,options:n},e}return(0,r.Z)(u,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,n=t.createOptionPosition,o=t.formatCreateLabel,i=t.getNewOptionData,a=t.inputValue,r=t.isLoading,l=t.isValidNewOption,c=t.value,h=t.options||[],u=this.state.newOption;u=l(a,(0,f.C)(c),h)?i(a,o(a)):void 0,this.setState({newOption:u,options:!e&&r||!u?h:"first"===n?[u].concat((0,s.Z)(h)):[].concat((0,s.Z)(h),[u])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,e=this.state.options;return d().createElement(g,(0,o.Z)({},this.props,{ref:function(e){t.select=e},options:e,onChange:this.onChange}))}}]),u}(u.Component),v.defaultProps=D,O);const b=(0,p.m)(T)}}]);
2
2
  //# sourceMappingURL=3381.js.map
package/3383.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="95344c64-fa75-4fd4-ad92-4d11b2b72b01",e._sentryDebugIdIdentifier="sentry-dbid-95344c64-fa75-4fd4-ad92-4d11b2b72b01")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1722"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3383],{6585:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(8090),c=n(51548),s=n(2507),u=n.n(s),d=n(92679),m=n(56569),p=n(39475);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const f=e=>o().createElement("svg",g({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false"},e),o().createElement("defs",null,o().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM8 8v12h12V8H8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Duplicate_svg__a"})),o().createElement("g",{transform:"translate(-2 -2)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"Duplicate_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#Duplicate_svg__a"})),o().createElement("g",{mask:"url(#Duplicate_svg__b)",fill:"#000",fillOpacity:.54},o().createElement("path",{d:"M0 0h24v24H0z"}))));var v=n(72342);const b=(0,v.makeStyles)((()=>({actions:{width:"88px",height:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,"& >span":{cursor:"pointer",display:"flex"},"& $actionIcon":{cursor:"pointer",color:"rgba(0, 0, 0, .54)"}},actionIcon:{}}))),h=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const l=b(),{id:a,attribute:i}=t||{},{addRowAfterIndex:c,removeRow:s,duplicateRow:g}=n,v=(0,r.useCallback)((()=>{c(a)}),[c,a]),h=(0,r.useCallback)((()=>{g(a)}),[g,a]),y=(0,r.useCallback)((()=>{s(a)}),[a,s]);return o().createElement("div",{className:l.actions},o().createElement(p.k,{tooltipTitle:u().text("Add"),icon:m.Z,size:"M",onClick:v}),i&&o().createElement(p.k,{tooltipTitle:u().text("Duplicate"),icon:f,size:"M",onClick:h}),o().createElement(p.k,{tooltipTitle:u().text("Delete"),icon:d.default,size:"M",onClick:y}))}));var y=n(51586),x=n(12933);const w=(0,r.memo)((e=>{let{rowData:t,rowContext:n,attributeSelectorProps:l}=e;const{attribute:i,id:c,filter:s}=t||{},{changeFilter:u,addNewFilter:d,attributesGroup:m}=n,p=(0,r.useCallback)((e=>(0,a.e6O)({data:e})),[]),g=(0,r.useMemo)((()=>[{id:"",title:"",attributes:m}]),[m]),f=(0,r.useCallback)((e=>{if(t){const t={fieldName:e.attribute.fieldName,filter:s,values:[]};u(t,c)}else d({fieldName:e.attribute.fieldName,filter:null,values:[]})}),[d,u,c,t,s]);return o().createElement(x.Z,{itemsGroups:g,ungroup:!0,single:!0,value:i,getLabel:p,onSelect:f,onOpenPopup:l.onOpen})}));var C=n(14787),E=n(14596);const D=(0,v.makeStyles)((()=>({attrSelector:{width:"222px",height:"40px",flexShrink:0},filterSelector:{width:"180px",flexShrink:0,marginTop:0,marginBottom:0},actionContainer:{alignItems:"center",marginRight:"15px"}}))),k={fieldName:null,filter:null,values:[]},R=()=>null,I=(0,r.memo)((e=>{let{attributeTypes:t,filters:n,onChange:s,components:u={}}=e;const{ValuesEditor:d,FilterSelector:m}=u,{attrSelector:p,filterSelector:g,actionContainer:f}=D(),v=(0,r.useRef)(n),b=(0,r.useRef)(null),x=(0,r.useRef)(null),I=(0,r.useRef)(null),O=(0,E.AH)(),S=(0,a.nt9)(O,(0,i.gZ)(t));v.current=n;const N=(0,r.useMemo)((()=>({attributeSelectorContainer:p,filterSelectorContainer:g,actionsContainer:f})),[p,g,f]),H=(0,r.useMemo)((()=>(0,i.Uk)(t,S,O)),[t,O,S]),Z=(0,r.useMemo)((()=>n.length?(0,i.QB)(n,H):[]),[H,n]);I.current=Z.length,(0,r.useEffect)((()=>{b.current&&x.current!==I.current&&(b.current.querySelector("input").focus(),x.current=null)}),[Z.length]);const T=(0,r.useCallback)((()=>{x.current=Z.length}),[Z.length]),M=(0,r.useMemo)((()=>({onOpen:T})),[T]),P=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e+1,0,k),s(t)}),[s]),j=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e,1),s(t)}),[s]),F=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e+1,0,{fieldName:v.current[e].fieldName,filter:v.current[e].filter,values:v.current[e].values}),s(t)}),[s]),B=(0,r.useCallback)(((e,t)=>{const n=(0,l.evolve)({[t]:(0,l.always)(e)},v.current);s(n)}),[s]),V=(0,r.useCallback)((e=>{s([...v.current,e])}),[s]);return o().createElement(y.Z,{rowClasses:N,rowsData:Z,AttributeSelectorComponent:w,FilterSelectorComponent:m||c.Z,ValuesEditorComponent:d||C.Z,ActionsComponent:h,LogicOperatorComponent:R,filterSelectorRefIndex:x.current,filterSelectorRef:b,lastRowAttributeSelectorProps:M,attributesGroup:H,changeFilter:B,addNewFilter:V,addRowAfterIndex:P,removeRow:j,duplicateRow:F,entityType:S})}))},51548:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(50914),c=n(98952),s=n(90590),u=n(8090);const d=(0,n(72342).makeStyles)({dropDownSelector:{width:"100%"}});var m=n(7342);const p=(0,r.memo)((e=>{let{rowData:t,rowContext:n,textFieldInputRef:l,options:p}=e;const g=d(),{attribute:{attrType:f={},fieldName:v=null}={},filter:b,id:h}=t||{},{changeFilter:y}=n,x=p||f&&v&&(0,i.pipe)(c.d3Y,(0,i.map)((e=>({value:e,label:(0,m.Z)((0,c.XS2)(e))}))))(f,v),w=(0,r.useCallback)((e=>{const t={fieldName:v,filter:e.value,values:[]};y(t,h)}),[y,h,v]);return(0,r.useEffect)((()=>{(v&&!b||v&&!(0,u.dG)(x,b))&&w(x[0])}),[v,b,w,x]),o().createElement(s.Z,{label:"",height:40,isDisabled:!x,placeholder:a().text("Equals"),value:(0,u.dG)(x,b),options:x,onChange:w,className:g.dropDownSelector,textFieldInputRef:l,TextFieldProps:{inputProps:{"data-reltio-id":"filter-selector"}}})}))},14787:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(98952),a=n(15299);const i=(0,n(72342).makeStyles)({input:{margin:0,borderRadius:"4px",width:"100%",paddingTop:0,paddingBottom:0},root:{borderRadius:"4px 4px 0 0",padding:0,display:"flex",alignItems:"center",margin:0},valuesEditor:{display:"flex",alignItems:"center",width:"222px!important",minHeight:"40px",flexShrink:0}}),c=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const c=i(),s=(null==t?void 0:t.attribute)&&(0,l.wNf)(t.filter),{changeFilter:u}=n,{values:d=[],attribute:{attrType:m,fieldName:p=null}={},filter:g,id:f}=t||{},v=m&&(0,l.PFL)(m),b=v&&(0,l.l1V)(v,g),h=(0,r.useMemo)((()=>({filter:g,fieldName:p,values:d||[]})),[g,p,d]),y=(0,r.useMemo)((()=>({InputProps:{classes:{root:c.input}}})),[c]),x=(0,r.useMemo)((()=>({root:c.root})),[c]),w=(0,r.useCallback)((e=>{u({fieldName:p,filter:g,values:e},f)}),[u,f,p,g]);return o().createElement("div",{className:c.valuesEditor},(null==t?void 0:t.attribute)&&s&&o().createElement(a.Z,{"data-reltio-id":"filter-value-editor",filter:h,onChange:w,dataTypeDefinition:b,fullWidth:!0,TextFieldProps:y,color:"primary",classes:x,orientation:"horizontal"}))}))},8090:(e,t,n)=>{n.d(t,{Uk:()=>s,dG:()=>d,QB:()=>m,gZ:()=>p});var r=n(98952),o=n(50914);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=(e,t,n,a)=>{const i=(0,r.jFi)(e,{type:n}),c=t.label||t.name;return l({attrType:t,title:c},(0,r.kqr)(t)?{fieldName:t.name}:{entityTypeUri:n,pathToTitle:Array.isArray(a)?[i,...(0,o.chain)((0,o.prop)("label"),a),c]:[i,c],fieldName:(0,r.Tde)(t.uri,a)})},c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=l({},i(e,t,n,r),{uri:t.uri}),a=t.children?t.children.map((o=>c(e,o,n,r.concat(t)))):[];return a.length&&(o.children=a),o},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,r.kkq)(e,n).map((e=>{const o=(0,r.kqr)(e)?null:t.uri;return c(n,e,o)}))},u=(e,t)=>{let n;const r=(e,t)=>{for(const o of t){if(e===o.fieldName)return void(n=o);"children"in o&&r(e,o.children)}};return r(e,t),n},d=(e,t)=>e?e.find((e=>e.value===t)):null,m=(e,t)=>e.map(((e,n)=>({attribute:e.fieldName?u(e.fieldName,t):void 0,filter:e.filter,id:n,values:e.values}))),p=e=>{const t=e.find((e=>!(0,r.kqr)(e)));return t?(0,r.u5q)(t.uri):null}},83104:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(47019),c=n(38677),s=n(80653),u=n(79312),d=n(56961),m=n(98952),p=n(6585),g=n(72342);function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={alignSelf:"center"},h=(0,g.makeStyles)((()=>({buttonsWrapper:{display:"flex"},applyButton:f({},b,{marginRight:"16px"}),cancelButton:f({},b,{marginLeft:"auto"}),clearButon:f({},b)}))),y=e=>{let{onClear:t,onCancel:n,onApply:r}=e;const l=h();return o().createElement("div",{className:l.buttonsWrapper},o().createElement(c.Z,{onClick:t,variant:"text",className:l.clearButon},a().text("Clear all")),o().createElement(c.Z,{onClick:n,variant:"text",className:l.cancelButton},a().text("Cancel")),o().createElement(c.Z,{onClick:r,variant:"text",color:"primary",className:l.applyButton},a().text("Apply")))};var x=n(47591);const w=(0,g.makeStyles)((e=>({triggerButton:{minWidth:0,color:"rgba(0,0,0,0.54)",width:"40px",marginLeft:"auto",marginRight:"12px"},filtersBuilderWrapper:{marginTop:"20px"},popupContent:{paddingLeft:"16px",paddingTop:"20px",paddingBottom:"6px",width:"770px"},divider:{marginBottom:"14px",marginLeft:"-16px",borderColor:"rgba(0, 0, 0, 0.121569)"},changedFiltersIndicator:{backgroundColor:(0,x.Fq)(e.palette.primary.main,.12)}}))),C=(0,r.memo)((e=>{let{filters:t,attributeTypes:n,onChange:l,components:g,children:f,onTogglePopup:v,isFiltersApplied:b,dataReltioId:h}=e;const x=w(),C=(0,r.useRef)(),[E,D]=(0,r.useState)(!1),[k,R]=(0,r.useState)([]),I=(null!=b?b:(0,m.Uqd)()(t))?"primary":"inherit",O=()=>{v&&v(!E),D((e=>!e))};(0,r.useEffect)((()=>{E&&R(t)}),[t,E]);const S=(0,r.useCallback)((()=>{l(k),O()}),[k,l]),N=(0,r.useCallback)((()=>{O()}),[]),H=(0,r.useCallback)((()=>{R([])}),[]);return o().createElement(o().Fragment,null,o().createElement(c.Z,{"data-reltio-id":h,ref:C,color:I,classes:{root:x.triggerButton,textPrimary:x.changedFiltersIndicator},onClick:O},o().createElement(s.Z,{color:I})),o().createElement(i.ZP,{open:E,classes:{paper:x.popupContent},anchorEl:C.current,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}},o().createElement(o().Fragment,null,o().createElement(u.Z,{variant:"h6"},a().text("Filter")),o().createElement("div",{className:x.filtersBuilderWrapper},f,o().createElement(p.Z,{attributeTypes:n,filters:k,onChange:R,components:g})),o().createElement(d.Z,{className:x.divider}),o().createElement(y,{onApply:S,onCancel:N,onClear:H}))))}))},49290:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(50914),o=n(24328),l=n.n(o),a=n(3073),i=n(21697);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const s=e=>{let{columnId:t,rowIndex:n,collapseContextValue:o,getRowHeight:s,tableRowsData:u,columnsData:d,getHeightForSubRow:m}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["columnId","rowIndex","collapseContextValue","getRowHeight","tableRowsData","columnsData","getHeightForSubRow"]);const g=u[n];return l().createElement(a.x.Provider,{value:o},l().createElement("div",c({},p,{style:{height:s(null==g?void 0:g.id)}}),u.length>0&&(0,i.getCellContentFromRowsData)({columnIndex:d.findIndex((0,r.propEq)("id",t)),headData:d,rowData:g,id:g.id,getHeightForSubRow:m})))}},87907:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),o=n(21697),l=n(1928),a=n(85103),i=n(50914),c=n(14077);const s=e=>{let{rowsData:t,columnsData:n,getIdFromRowValue:s,renderRowCell:u=l.Z,getRowCellHeight:d=a.Z,defaultRowHeight:m=48,maxRowValuesCount:p=1/0}=e;const{tableRowsData:g,collapseContextValue:f}=(0,c.Z)({rowsData:t,columnsData:n,renderRowCell:u,getRowCellHeight:d,maxRowValuesCount:p,getIdFromRowValue:s});return(0,r.useMemo)((()=>{const e=g.reduce(((e,t)=>{const{data:n,id:r}=t;return e[r]=(0,o.calculateRowHeight)(n,m),e}),{});return{getRowHeight:t=>(0,i.pathOr)(0,[t,"height"],e),collapseContextValue:f,getHeightForSubRow:(t,n,r)=>{const o=[t,"subRowHeight",n,r,"height"];return(0,i.pathOr)(0,o,e)},tableRowsData:g}}),[g,m,f])}},40322:(e,t,n)=>{n.d(t,{R:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(50914),c=n(79312),s=n(23883),u=n(14596),d=n(72342),m=n(98952);const p=(0,d.makeStyles)({root:e=>{let{dataTenantId:t}=e;const n=(0,m.bsH)(t);return{backgroundColor:n,color:(0,m.nHA)(n),height:"18px",padding:"0 3px"}}}),g=e=>`DT:${(0,i.slice)(0,1,e)}`,f=e=>{let{dataTenantId:t,className:n}=e;const r=p({dataTenantId:t}),l=(0,u.ej)(),d=(0,i.pipe)((0,i.defaultTo)([]),(0,i.find)((0,i.propEq)("id",t)))(l),m=(0,i.pipe)((0,i.propOr)("","label"),i.toUpper,(0,i.ifElse)((0,i.startsWith)("DT:"),(0,i.slice)(0,4),g))(d),f=o().createElement("div",{className:a()(r.root,n)},o().createElement(c.Z,{variant:"body2"},m));return null!=d&&d.label?o().createElement(s.Z,{"data-reltio-id":"reltio-data-tenant-bage-tooltip",title:d.label},f):f}},37346:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(98952),a=n(94118),i=n(14596);const c=e=>{let{name:t,values:n,onChange:c,entityType:s,TextFieldProps:u,fullWidth:d}=e;const m=(0,i.AH)(),[p,g]=(0,r.useMemo)((()=>(0,l.UkJ)((0,l.KbW)(m,null==s?void 0:s.uri))),[null==s?void 0:s.uri,m]),f=(0,r.useMemo)((()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{label:t,uri:n}=e;return{label:t,value:n}}))}(t===l.Ury.matchRules?g:p)),[t,g,p]);return o().createElement(a.Z,{values:n,onChange:c,options:f,TextFieldProps:u,fullWidth:d})}},94118:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(59952),c=n(77259),s=n(51556),u=n(92145),d=n(36817),m=n(79573);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,n(72342).makeStyles)((e=>({option:{paddingLeft:"35px"},dropdownIndicator:{cursor:"pointer",color:e.palette.text.secondary,marginTop:0,marginBottom:0},clearIndicator:{display:"none"}}))),v={input:e=>p({},e,{fontSize:"14px"}),menuPortal:e=>p({},e,{zIndex:1300}),menuList:e=>p({},e,{maxHeight:"240px",padding:"8px 0"}),menu:e=>p({},e,{maxHeight:"240px"})};function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=e=>{let{values:t=[],onChange:n,options:p,fullWidth:g,TextFieldProps:h={}}=e;const y=f(),x=(0,r.useRef)(null),w=(0,r.useCallback)((e=>p.find((t=>t.value===e))||{value:e,label:e}),[p]),C=(0,r.useMemo)((()=>t.map(w)),[w,t]),{InputProps:E={},className:D}=h,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(h,["InputProps","className"]);return o().createElement(d.Z,{value:C,onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),options:p,TextFieldProps:b({InputProps:b({disableUnderline:(0,a.O27)(t)},E),variant:"filled",className:D,ref:x},k),components:{DropdownIndicator:i.Z,Option:c.Z,Menu:s.Z,MultiValue:u.Z,IndicatorSeparator:m.Vd},inputRef:x,classes:y,styles:b({},v,{container:e=>b({},e,g?{width:"100%"}:{})}),menuPortalTarget:document.body})};y.displayName="MultiValueSelector";const x=(0,r.memo)(y)},19262:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(13980),o=n.n(r),l=n(24328),a=n.n(l),i=n(80516),c=n(28831);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const u=e=>a().createElement("svg",s({viewBox:"0 0 20 20"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10L14 5.5V9h-3.5L5 3.5 3.5 5l6.04 6H14v3.5l4.5-4.5zM7.04 11.455L3.5 15 5 16.5l3.54-3.545-1.5-1.5z"}));var d=n(2507),m=n.n(d),p=n(71153),g=n.n(p);const f=(0,n(72342).makeStyles)((e=>({expanded:{backgroundColor:"rgba(0, 0, 0, 0.03)"},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word"},icon:{width:"32px",height:"32px",fill:"#fff",backgroundColor:"rgba(177, 92, 189, 1)",borderRadius:"50%",margin:"5px 12px 0 8px"},infoBlock:{display:"flex",flexDirection:"row"},header:{display:"flex",flexDirection:"row",paddingBottom:"5px"},flex:{flex:1},caption:{fontSize:"16px",color:"rgba(0, 0, 0, 0.87)"},title:{display:"flex",flexDirection:"row",alignItems:"center",margin:"6px 0 8px 0"},flag:{height:"12px",width:"12px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},pmReviewCard:{borderTop:"3px solid #E83D40",flexDirection:"column",width:"100%"},date:{fontSize:"13px",color:"rgba(0, 0, 0, 0.87)"},mainInfo:{display:"flex",flexDirection:"column",flex:1}}))),v=e=>{let{date:t,type:n,createdBy:r,step:o,children:s,Actions:d}=e;const p=f(),[v,b]=(0,l.useState)(!1);return a().createElement("div",{className:p.pmReviewCard},a().createElement("div",{className:g()(p.header,{[p.expanded]:v})},a().createElement(u,{className:p.icon}),a().createElement("div",{className:p.mainInfo},a().createElement("div",{className:p.title},a().createElement("div",{className:g()(p.caption,p.flex)},m().text("Match review")),a().createElement(i.Z,{className:p.flag}),a().createElement("span",{className:p.date},m().date(t,"L")),a().createElement(c.Z,{isOpen:v,onClick:()=>{b(!v)}})),a().createElement("div",{className:p.infoBlock},a().createElement("div",{className:p.flex},a().createElement("div",{className:p.info},n),a().createElement("div",{className:p.info},m().text("Created by ${createdBy}",{createdBy:r})),a().createElement("div",{className:p.info},m().text("Step: ${step}",{step:o}))),d))),v?s:null)};v.propTypes={date:o().number,createdBy:o().string,type:o().string,step:o().string,children:o().oneOfType([o().node,o().arrayOf(o().node)]),Actions:o().node};const b=v},29742:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),o=n.n(r),l=n(13264),a=n(2507),i=n.n(a),c=n(39475),s=n(98538),u=n(50914),d=n(80852),m=n(95341),p=n(79312);const g=(0,n(72342).makeStyles)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),f=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=u.identity}=e;const l=g(),{text:a,onClick:i,id:c,selected:s}=n;return o().createElement(m.Z,{classes:{root:l.menuItem},onClick:e=>{r(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},o().createElement(d.Z,{checked:s,className:l.checkbox,color:"primary"}),o().createElement(p.Z,{classes:{root:l.menuText}},a))}));f.displayName="SettingsMenuItemRenderer";const v=f,b=e=>{let{items:t,menuId:n}=e;return o().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:l.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:v})}},31780:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(94118),c=n(14596);const s=e=>{let{values:t,onChange:n,TextFieldProps:s,fullWidth:u}=e;const d=(0,c.AH)(),m=(0,r.useMemo)((()=>(0,l.pipe)((0,l.sortBy)((e=>e.label)),(0,l.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:(0,a.nIW)(n)}})))(d.sources)),[d.sources]);return o().createElement(i.Z,{values:t,onChange:n,options:m,TextFieldProps:s,fullWidth:u})};s.displayName="SourceSystemsSelector";const u=s},44617:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(98952),o=n(24328),l=n.n(o),a=n(50914),i=n(79312);const c=(0,n(72342).makeStyles)({root:{height:"18px",width:"18px",textAlign:"center"}}),s=e=>{let{tenant:t}=e;const n=c(),s=(0,o.useMemo)((()=>{const e=(0,r.bsH)(null==t?void 0:t.id);return{backgroundColor:e,color:(0,r.nHA)(e)}}),[null==t?void 0:t.id]);return l().createElement("div",{style:s,className:n.root},l().createElement(i.Z,{variant:"body2"},(0,a.toUpper)((0,a.head)(null==t?void 0:t.name))))}},69719:(e,t,n)=>{n.d(t,{H:()=>y});var r=n(24328),o=n.n(r),l=n(50914),a=n(65643),i=n(98952),c=n(98538),s=n(44617),u=n(95341),d=n(79312),m=n(79573),p=n(72342);const g=(0,p.makeStyles)({root:{minHeight:"48px",gap:"30px"}}),f=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=m.ZT}=e;const l=g(),{tenant:a,onClick:i}=n,c=a.label?`${a.label} : ${a.name}`:a.name;return o().createElement(u.Z,{onClick:()=>{r(),i(a)},ref:t,className:l.root},o().createElement(s.c,{tenant:a}),o().createElement(d.Z,null,c))}));f.displayName="TenantMenuItem";const v=f;var b=n(14596);const h=(0,p.makeStyles)({menuButtonRoot:{padding:0,border:"1px solid rgba(0, 0, 0, 0.23)"}}),y=e=>{let{entityTypeUri:t,onChangeTenant:n,selectedTenant:u}=e;const d=h(),m=(0,b.ej)(),p=(0,b.e_)(),g=(0,r.useMemo)((()=>(0,l.pipe)((0,l.defaultTo)([]),(0,l.filter)((0,i.oZ7)(t)),(0,l.map)((e=>({tenant:e,onClick:n}))),(0,l.prepend)({tenant:p,onClick:n}))(m)),[m,t,n,p]);return(0,i.O27)(m)||!n?null:o().createElement(c.Z,{menuId:"tenantSelector",MenuItemRenderer:v,buttonContent:o().createElement(s.c,{tenant:u}),menuItems:g,buttonProps:{variant:"outlined",endIcon:o().createElement(a.Z,null),classes:{root:d.menuButtonRoot}},popoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}})}},53850:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l);const i=e=>{let{value:t}=e;return t||null},c=e=>{let{label:t}=e;return t||null};var s=n(72342);const u=(0,s.makeStyles)((()=>({hidden:{display:"none"}}))),d=e=>{let{columnValue:t,rowData:n,setHoveredColumn:r,resetHoveredColumn:l,someRowIsDragging:c}=e;const s=u(),d=n.cellRenderer||i,m=r?()=>r(t):void 0;return o().createElement("td",{onMouseOver:m,onMouseLeave:l},o().createElement("div",{className:a()({[s.hidden]:c})},o().createElement(d,{value:t[n.id]})))};var m=n(89323),p=n(13896),g=n(42484);let f=function(e){return e.Column="Column",e.Row="Row",e}({});const v=(0,s.makeStyles)((e=>({tableData:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{opacity:0,position:"absolute",top:0,left:"50%",cursor:"move",transition:"opacity 0.3s",transform:"translateX(-50%) rotate(90deg)",zIndex:5},dragIndicatorIcon:{width:"14.4px",height:"18px",color:e.palette.text.secondary},hidden:{display:"none"}}))),b=e=>{let{columnValue:t,rowData:n,index:l,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:u,setHoveredColumn:d,resetHoveredColumn:b,someRowIsDragging:h}=e;const y=v(),x=o().useRef(null),w=o().useRef(null),C=n.cellRenderer||i,[{targetId:E},D]=(0,p.useDrop)({accept:f.Column,hover:(e,n)=>{var r;if(!x.current)return;const o=e.index,a=l;if(o===a)return;const i=null===(r=x.current)||void 0===r?void 0:r.getBoundingClientRect(),s=(i.right-i.left)/2,u=n.getClientOffset().x-i.left;o<a&&u<s||o>a&&u>s||(c(e.columnValue.id,t.id),e.index=a)},drop:()=>{s&&s()},collect:e=>({targetId:e.getHandlerId()})}),[{opacity:k,sourceId:R},I,O]=(0,p.useDrag)({item:{type:f.Column,index:l,getColumnWidth:()=>{var e;return null==x||null===(e=x.current)||void 0===e?void 0:e.offsetWidth},columnValue:t,rowData:n},isDragging:e=>e.getItem().index===l,collect:e=>({opacity:e.isDragging()?0:1,sourceId:e.getHandlerId()})});(0,r.useEffect)((()=>{O((0,g.r)(),{captureDraggingState:!0}),D(x),I(w)}),[]);const S=d?()=>d(t):void 0;return o().createElement("td",{style:{opacity:k},ref:x,className:y.tableData,"data-source-id":R,"data-target-id":E,onMouseOver:S,onMouseLeave:b},o().createElement("div",{className:a()({[y.hidden]:h})},u&&o().createElement("div",{ref:w,className:y.dragIndicator},o().createElement(m.Z,{className:y.dragIndicatorIcon})),o().createElement(C,{value:t[n.id]})))},h=(0,s.makeStyles)((e=>({tableHead:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{height:"100%",opacity:0,position:"absolute",top:0,left:0,cursor:"move",transition:"opacity 0.3s"},dragIndicatorIcon:{top:"15px",width:"14.4px",height:"18px",color:e.palette.text.secondary,position:"relative"}}))),y=e=>{let{rowData:t,isDraggable:n,dragRef:r}=e;const l=h(),a=t.headCellRenderer||c;return o().createElement("th",{className:l.tableHead},n&&o().createElement("div",{ref:r,className:l.dragIndicator},o().createElement(m.Z,{className:l.dragIndicatorIcon})),o().createElement(a,t))},x=e=>{let{rowData:t,columnsData:n,index:r,onMoveColumn:l,onDropColumn:a,setHoveredColumn:i,resetHoveredColumn:c}=e;const s=0===r;return o().createElement("tr",{className:t.rowClassName},o().createElement(y,{rowData:t,isDraggable:!1}),n.map(((e,n)=>{const r=e.isDraggable,u=s&&r;return l?o().createElement(b,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:l,onDropColumn:a,shouldRenderDragIndicator:u,setHoveredColumn:i,resetHoveredColumn:c}):o().createElement(d,{key:e.id||n,rowData:t,columnValue:e,setHoveredColumn:i,resetHoveredColumn:c})})))},w=e=>{let{rowData:t,index:n,columnsData:l,onMoveRow:a,onDropRow:i,onMoveColumn:c,onDropColumn:s,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g,setSomeRowIsDragging:v}=e;const h=o().useRef(null),x=o().useRef(null),[{targetId:w},C]=(0,p.useDrop)({accept:f.Row,hover:(e,r)=>{if(!h.current)return;const o=e.index,l=n;if(o===l)return;const i=h.current.getBoundingClientRect(),c=(i.bottom-i.top)/2,s=r.getClientOffset().y-i.top;o<l&&s<c||o>l&&s>c||(a(e.id,t.id),e.index=l)},drop:()=>{i&&i()},collect:e=>({targetId:e.getHandlerId()})}),[{isDragging:E,sourceId:D},k,R]=(0,p.useDrag)({item:{type:f.Row,index:n,id:t.id},collect:e=>({sourceId:e.getHandlerId(),isDragging:e.isDragging()})});(0,r.useEffect)((()=>{R(C(h)),k(x)}),[]),(0,r.useEffect)((()=>{v(E)}),[E,v]);const I=E?0:1;return o().createElement("tr",{className:t.rowClassName,style:{opacity:I},ref:h,"data-target-id":w,"data-source-id":D},o().createElement(y,{rowData:t,isDraggable:!0,dragRef:x}),l.map(((e,n)=>c?o().createElement(b,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:!1,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}):o().createElement(d,{key:e.id||n,columnValue:e,rowData:t,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}))))},C=e=>{let{columnWidth:t,columnHeight:n,item:r}=e;const{rowData:l,columnValue:a}=r,c=l.cellRenderer||i;return o().createElement("div",{style:{width:t,height:n,background:"rgba(245,245,245, .5)"}},o().createElement(c,{value:a[l.id]}))},E=(0,s.makeStyles)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1300,pointerEvents:"none"}}),D=(e,t,n)=>{const r=(null==e?void 0:e.getBoundingClientRect())||{x:0,y:0},o=`translate(${(null==t?void 0:t.x)-(null==r?void 0:r.x)-n/2}px, ${(null==t?void 0:t.y)-(null==r?void 0:r.y)}px`;return{display:"flex",transform:o,WebkitTransform:o}},k=e=>{var t;let{columnHeight:n}=e;const l=E(),a=(0,r.useRef)(),{isDragging:i,clientOffset:c,item:s}=(0,p.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()})));if(!i||!s)return null;const u=null===(t=s.getColumnWidth)||void 0===t?void 0:t.call(s);return o().createElement("div",{className:l.dragLayer,ref:a},o().createElement("div",{style:D(a.current,c,u)},s.type===f.Column&&o().createElement(C,{columnWidth:u,columnHeight:n,item:s})))},R=(0,r.memo)((e=>{var t;let{className:n,rowsData:l,columnsData:a,theadRowsNumber:i=0,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}=e;const[g,f]=(0,r.useState)(!1),v=(0,r.useRef)(null),b=null==v||null===(t=v.current)||void 0===t?void 0:t.offsetHeight,h=!!c||!!u;return o().createElement(o().Fragment,null,h&&o().createElement(k,{columnHeight:b}),o().createElement("table",{ref:v,className:n},i>0&&o().createElement("thead",null,l.slice(0,i).map(((e,t)=>o().createElement(x,{key:e.id||t,rowData:e,columnsData:a,index:t,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p})))),o().createElement("tbody",null,l.slice(i).map(((e,t)=>c?o().createElement(w,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p,someRowIsDragging:g,setSomeRowIsDragging:f}):o().createElement(x,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}))))))}))},60824:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(24328);const o=n.n(r)().createContext("");o.displayName="IdContext"}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5a5dd4fa-8c05-4761-940a-a09d4ba7b989",e._sentryDebugIdIdentifier="sentry-dbid-5a5dd4fa-8c05-4761-940a-a09d4ba7b989")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1724"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3383],{6585:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(8090),c=n(51548),s=n(2507),u=n.n(s),d=n(92679),m=n(56569),p=n(39475);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const f=e=>o().createElement("svg",g({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false"},e),o().createElement("defs",null,o().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM8 8v12h12V8H8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Duplicate_svg__a"})),o().createElement("g",{transform:"translate(-2 -2)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"Duplicate_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#Duplicate_svg__a"})),o().createElement("g",{mask:"url(#Duplicate_svg__b)",fill:"#000",fillOpacity:.54},o().createElement("path",{d:"M0 0h24v24H0z"}))));var v=n(72342);const b=(0,v.makeStyles)((()=>({actions:{width:"88px",height:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,"& >span":{cursor:"pointer",display:"flex"},"& $actionIcon":{cursor:"pointer",color:"rgba(0, 0, 0, .54)"}},actionIcon:{}}))),h=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const l=b(),{id:a,attribute:i}=t||{},{addRowAfterIndex:c,removeRow:s,duplicateRow:g}=n,v=(0,r.useCallback)((()=>{c(a)}),[c,a]),h=(0,r.useCallback)((()=>{g(a)}),[g,a]),y=(0,r.useCallback)((()=>{s(a)}),[a,s]);return o().createElement("div",{className:l.actions},o().createElement(p.k,{tooltipTitle:u().text("Add"),icon:m.Z,size:"M",onClick:v}),i&&o().createElement(p.k,{tooltipTitle:u().text("Duplicate"),icon:f,size:"M",onClick:h}),o().createElement(p.k,{tooltipTitle:u().text("Delete"),icon:d.default,size:"M",onClick:y}))}));var y=n(51586),x=n(12933);const w=(0,r.memo)((e=>{let{rowData:t,rowContext:n,attributeSelectorProps:l}=e;const{attribute:i,id:c,filter:s}=t||{},{changeFilter:u,addNewFilter:d,attributesGroup:m}=n,p=(0,r.useCallback)((e=>(0,a.e6O)({data:e})),[]),g=(0,r.useMemo)((()=>[{id:"",title:"",attributes:m}]),[m]),f=(0,r.useCallback)((e=>{if(t){const t={fieldName:e.attribute.fieldName,filter:s,values:[]};u(t,c)}else d({fieldName:e.attribute.fieldName,filter:null,values:[]})}),[d,u,c,t,s]);return o().createElement(x.Z,{itemsGroups:g,ungroup:!0,single:!0,value:i,getLabel:p,onSelect:f,onOpenPopup:l.onOpen})}));var C=n(14787),E=n(14596);const D=(0,v.makeStyles)((()=>({attrSelector:{width:"222px",height:"40px",flexShrink:0},filterSelector:{width:"180px",flexShrink:0,marginTop:0,marginBottom:0},actionContainer:{alignItems:"center",marginRight:"15px"}}))),k={fieldName:null,filter:null,values:[]},R=()=>null,I=(0,r.memo)((e=>{let{attributeTypes:t,filters:n,onChange:s,components:u={}}=e;const{ValuesEditor:d,FilterSelector:m}=u,{attrSelector:p,filterSelector:g,actionContainer:f}=D(),v=(0,r.useRef)(n),b=(0,r.useRef)(null),x=(0,r.useRef)(null),I=(0,r.useRef)(null),O=(0,E.AH)(),S=(0,a.nt9)(O,(0,i.gZ)(t));v.current=n;const N=(0,r.useMemo)((()=>({attributeSelectorContainer:p,filterSelectorContainer:g,actionsContainer:f})),[p,g,f]),H=(0,r.useMemo)((()=>(0,i.Uk)(t,S,O)),[t,O,S]),Z=(0,r.useMemo)((()=>n.length?(0,i.QB)(n,H):[]),[H,n]);I.current=Z.length,(0,r.useEffect)((()=>{b.current&&x.current!==I.current&&(b.current.querySelector("input").focus(),x.current=null)}),[Z.length]);const T=(0,r.useCallback)((()=>{x.current=Z.length}),[Z.length]),M=(0,r.useMemo)((()=>({onOpen:T})),[T]),P=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e+1,0,k),s(t)}),[s]),j=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e,1),s(t)}),[s]),F=(0,r.useCallback)((e=>{const t=[...v.current];t.splice(e+1,0,{fieldName:v.current[e].fieldName,filter:v.current[e].filter,values:v.current[e].values}),s(t)}),[s]),B=(0,r.useCallback)(((e,t)=>{const n=(0,l.evolve)({[t]:(0,l.always)(e)},v.current);s(n)}),[s]),V=(0,r.useCallback)((e=>{s([...v.current,e])}),[s]);return o().createElement(y.Z,{rowClasses:N,rowsData:Z,AttributeSelectorComponent:w,FilterSelectorComponent:m||c.Z,ValuesEditorComponent:d||C.Z,ActionsComponent:h,LogicOperatorComponent:R,filterSelectorRefIndex:x.current,filterSelectorRef:b,lastRowAttributeSelectorProps:M,attributesGroup:H,changeFilter:B,addNewFilter:V,addRowAfterIndex:P,removeRow:j,duplicateRow:F,entityType:S})}))},51548:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(50914),c=n(98952),s=n(90590),u=n(8090);const d=(0,n(72342).makeStyles)({dropDownSelector:{width:"100%"}});var m=n(7342);const p=(0,r.memo)((e=>{let{rowData:t,rowContext:n,textFieldInputRef:l,options:p}=e;const g=d(),{attribute:{attrType:f={},fieldName:v=null}={},filter:b,id:h}=t||{},{changeFilter:y}=n,x=p||f&&v&&(0,i.pipe)(c.d3Y,(0,i.map)((e=>({value:e,label:(0,m.Z)((0,c.XS2)(e))}))))(f,v),w=(0,r.useCallback)((e=>{const t={fieldName:v,filter:e.value,values:[]};y(t,h)}),[y,h,v]);return(0,r.useEffect)((()=>{(v&&!b||v&&!(0,u.dG)(x,b))&&w(x[0])}),[v,b,w,x]),o().createElement(s.Z,{label:"",height:40,isDisabled:!x,placeholder:a().text("Equals"),value:(0,u.dG)(x,b),options:x,onChange:w,className:g.dropDownSelector,textFieldInputRef:l,TextFieldProps:{inputProps:{"data-reltio-id":"filter-selector"}}})}))},14787:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(98952),a=n(15299);const i=(0,n(72342).makeStyles)({input:{margin:0,borderRadius:"4px",width:"100%",paddingTop:0,paddingBottom:0},root:{borderRadius:"4px 4px 0 0",padding:0,display:"flex",alignItems:"center",margin:0},valuesEditor:{display:"flex",alignItems:"center",width:"222px!important",minHeight:"40px",flexShrink:0}}),c=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const c=i(),s=(null==t?void 0:t.attribute)&&(0,l.wNf)(t.filter),{changeFilter:u}=n,{values:d=[],attribute:{attrType:m,fieldName:p=null}={},filter:g,id:f}=t||{},v=m&&(0,l.PFL)(m),b=v&&(0,l.l1V)(v,g),h=(0,r.useMemo)((()=>({filter:g,fieldName:p,values:d||[]})),[g,p,d]),y=(0,r.useMemo)((()=>({InputProps:{classes:{root:c.input}}})),[c]),x=(0,r.useMemo)((()=>({root:c.root})),[c]),w=(0,r.useCallback)((e=>{u({fieldName:p,filter:g,values:e},f)}),[u,f,p,g]);return o().createElement("div",{className:c.valuesEditor},(null==t?void 0:t.attribute)&&s&&o().createElement(a.Z,{"data-reltio-id":"filter-value-editor",filter:h,onChange:w,dataTypeDefinition:b,fullWidth:!0,TextFieldProps:y,color:"primary",classes:x,orientation:"horizontal"}))}))},8090:(e,t,n)=>{n.d(t,{Uk:()=>s,dG:()=>d,QB:()=>m,gZ:()=>p});var r=n(98952),o=n(50914);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=(e,t,n,a)=>{const i=(0,r.jFi)(e,{type:n}),c=t.label||t.name;return l({attrType:t,title:c},(0,r.kqr)(t)?{fieldName:t.name}:{entityTypeUri:n,pathToTitle:Array.isArray(a)?[i,...(0,o.chain)((0,o.prop)("label"),a),c]:[i,c],fieldName:(0,r.Tde)(t.uri,a)})},c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=l({},i(e,t,n,r),{uri:t.uri}),a=t.children?t.children.map((o=>c(e,o,n,r.concat(t)))):[];return a.length&&(o.children=a),o},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,r.kkq)(e,n).map((e=>{const o=(0,r.kqr)(e)?null:t.uri;return c(n,e,o)}))},u=(e,t)=>{let n;const r=(e,t)=>{for(const o of t){if(e===o.fieldName)return void(n=o);"children"in o&&r(e,o.children)}};return r(e,t),n},d=(e,t)=>e?e.find((e=>e.value===t)):null,m=(e,t)=>e.map(((e,n)=>({attribute:e.fieldName?u(e.fieldName,t):void 0,filter:e.filter,id:n,values:e.values}))),p=e=>{const t=e.find((e=>!(0,r.kqr)(e)));return t?(0,r.u5q)(t.uri):null}},83104:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(47019),c=n(38677),s=n(80653),u=n(79312),d=n(56961),m=n(98952),p=n(6585),g=n(72342);function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={alignSelf:"center"},h=(0,g.makeStyles)((()=>({buttonsWrapper:{display:"flex"},applyButton:f({},b,{marginRight:"16px"}),cancelButton:f({},b,{marginLeft:"auto"}),clearButon:f({},b)}))),y=e=>{let{onClear:t,onCancel:n,onApply:r}=e;const l=h();return o().createElement("div",{className:l.buttonsWrapper},o().createElement(c.Z,{onClick:t,variant:"text",className:l.clearButon},a().text("Clear all")),o().createElement(c.Z,{onClick:n,variant:"text",className:l.cancelButton},a().text("Cancel")),o().createElement(c.Z,{onClick:r,variant:"text",color:"primary",className:l.applyButton},a().text("Apply")))};var x=n(47591);const w=(0,g.makeStyles)((e=>({triggerButton:{minWidth:0,color:"rgba(0,0,0,0.54)",width:"40px",marginLeft:"auto",marginRight:"12px"},filtersBuilderWrapper:{marginTop:"20px"},popupContent:{paddingLeft:"16px",paddingTop:"20px",paddingBottom:"6px",width:"770px"},divider:{marginBottom:"14px",marginLeft:"-16px",borderColor:"rgba(0, 0, 0, 0.121569)"},changedFiltersIndicator:{backgroundColor:(0,x.Fq)(e.palette.primary.main,.12)}}))),C=(0,r.memo)((e=>{let{filters:t,attributeTypes:n,onChange:l,components:g,children:f,onTogglePopup:v,isFiltersApplied:b,dataReltioId:h}=e;const x=w(),C=(0,r.useRef)(),[E,D]=(0,r.useState)(!1),[k,R]=(0,r.useState)([]),I=(null!=b?b:(0,m.Uqd)()(t))?"primary":"inherit",O=()=>{v&&v(!E),D((e=>!e))};(0,r.useEffect)((()=>{E&&R(t)}),[t,E]);const S=(0,r.useCallback)((()=>{l(k),O()}),[k,l]),N=(0,r.useCallback)((()=>{O()}),[]),H=(0,r.useCallback)((()=>{R([])}),[]);return o().createElement(o().Fragment,null,o().createElement(c.Z,{"data-reltio-id":h,ref:C,color:I,classes:{root:x.triggerButton,textPrimary:x.changedFiltersIndicator},onClick:O},o().createElement(s.Z,{color:I})),o().createElement(i.ZP,{open:E,classes:{paper:x.popupContent},anchorEl:C.current,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}},o().createElement(o().Fragment,null,o().createElement(u.Z,{variant:"h6"},a().text("Filter")),o().createElement("div",{className:x.filtersBuilderWrapper},f,o().createElement(p.Z,{attributeTypes:n,filters:k,onChange:R,components:g})),o().createElement(d.Z,{className:x.divider}),o().createElement(y,{onApply:S,onCancel:N,onClear:H}))))}))},49290:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(50914),o=n(24328),l=n.n(o),a=n(3073),i=n(21697);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const s=e=>{let{columnId:t,rowIndex:n,collapseContextValue:o,getRowHeight:s,tableRowsData:u,columnsData:d,getHeightForSubRow:m}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["columnId","rowIndex","collapseContextValue","getRowHeight","tableRowsData","columnsData","getHeightForSubRow"]);const g=u[n];return l().createElement(a.x.Provider,{value:o},l().createElement("div",c({},p,{style:{height:s(null==g?void 0:g.id)}}),u.length>0&&(0,i.getCellContentFromRowsData)({columnIndex:d.findIndex((0,r.propEq)("id",t)),headData:d,rowData:g,id:g.id,getHeightForSubRow:m})))}},87907:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),o=n(21697),l=n(1928),a=n(85103),i=n(50914),c=n(14077);const s=e=>{let{rowsData:t,columnsData:n,getIdFromRowValue:s,renderRowCell:u=l.Z,getRowCellHeight:d=a.Z,defaultRowHeight:m=48,maxRowValuesCount:p=1/0}=e;const{tableRowsData:g,collapseContextValue:f}=(0,c.Z)({rowsData:t,columnsData:n,renderRowCell:u,getRowCellHeight:d,maxRowValuesCount:p,getIdFromRowValue:s});return(0,r.useMemo)((()=>{const e=g.reduce(((e,t)=>{const{data:n,id:r}=t;return e[r]=(0,o.calculateRowHeight)(n,m),e}),{});return{getRowHeight:t=>(0,i.pathOr)(0,[t,"height"],e),collapseContextValue:f,getHeightForSubRow:(t,n,r)=>{const o=[t,"subRowHeight",n,r,"height"];return(0,i.pathOr)(0,o,e)},tableRowsData:g}}),[g,m,f])}},40322:(e,t,n)=>{n.d(t,{R:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(50914),c=n(79312),s=n(23883),u=n(14596),d=n(72342),m=n(98952);const p=(0,d.makeStyles)({root:e=>{let{dataTenantId:t}=e;const n=(0,m.bsH)(t);return{backgroundColor:n,color:(0,m.nHA)(n),height:"18px",padding:"0 3px"}}}),g=e=>`DT:${(0,i.slice)(0,1,e)}`,f=e=>{let{dataTenantId:t,className:n}=e;const r=p({dataTenantId:t}),l=(0,u.ej)(),d=(0,i.pipe)((0,i.defaultTo)([]),(0,i.find)((0,i.propEq)("id",t)))(l),m=(0,i.pipe)((0,i.propOr)("","label"),i.toUpper,(0,i.ifElse)((0,i.startsWith)("DT:"),(0,i.slice)(0,4),g))(d),f=o().createElement("div",{className:a()(r.root,n)},o().createElement(c.Z,{variant:"body2"},m));return null!=d&&d.label?o().createElement(s.Z,{"data-reltio-id":"reltio-data-tenant-bage-tooltip",title:d.label},f):f}},37346:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(98952),a=n(94118),i=n(14596);const c=e=>{let{name:t,values:n,onChange:c,entityType:s,TextFieldProps:u,fullWidth:d}=e;const m=(0,i.AH)(),[p,g]=(0,r.useMemo)((()=>(0,l.UkJ)((0,l.KbW)(m,null==s?void 0:s.uri))),[null==s?void 0:s.uri,m]),f=(0,r.useMemo)((()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{label:t,uri:n}=e;return{label:t,value:n}}))}(t===l.Ury.matchRules?g:p)),[t,g,p]);return o().createElement(a.Z,{values:n,onChange:c,options:f,TextFieldProps:u,fullWidth:d})}},94118:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(59952),c=n(77259),s=n(51556),u=n(92145),d=n(36817),m=n(79573);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,n(72342).makeStyles)((e=>({option:{paddingLeft:"35px"},dropdownIndicator:{cursor:"pointer",color:e.palette.text.secondary,marginTop:0,marginBottom:0},clearIndicator:{display:"none"}}))),v={input:e=>p({},e,{fontSize:"14px"}),menuPortal:e=>p({},e,{zIndex:1300}),menuList:e=>p({},e,{maxHeight:"240px",padding:"8px 0"}),menu:e=>p({},e,{maxHeight:"240px"})};function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=e=>{let{values:t=[],onChange:n,options:p,fullWidth:g,TextFieldProps:h={}}=e;const y=f(),x=(0,r.useRef)(null),w=(0,r.useCallback)((e=>p.find((t=>t.value===e))||{value:e,label:e}),[p]),C=(0,r.useMemo)((()=>t.map(w)),[w,t]),{InputProps:E={},className:D}=h,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(h,["InputProps","className"]);return o().createElement(d.Z,{value:C,onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),options:p,TextFieldProps:b({InputProps:b({disableUnderline:(0,a.O27)(t)},E),variant:"filled",className:D,ref:x},k),components:{DropdownIndicator:i.Z,Option:c.Z,Menu:s.Z,MultiValue:u.Z,IndicatorSeparator:m.Vd},inputRef:x,classes:y,styles:b({},v,{container:e=>b({},e,g?{width:"100%"}:{})}),menuPortalTarget:document.body})};y.displayName="MultiValueSelector";const x=(0,r.memo)(y)},19262:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(13980),o=n.n(r),l=n(24328),a=n.n(l),i=n(80516),c=n(28831);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const u=e=>a().createElement("svg",s({viewBox:"0 0 20 20"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10L14 5.5V9h-3.5L5 3.5 3.5 5l6.04 6H14v3.5l4.5-4.5zM7.04 11.455L3.5 15 5 16.5l3.54-3.545-1.5-1.5z"}));var d=n(2507),m=n.n(d),p=n(71153),g=n.n(p);const f=(0,n(72342).makeStyles)((e=>({expanded:{backgroundColor:"rgba(0, 0, 0, 0.03)"},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word"},icon:{width:"32px",height:"32px",fill:"#fff",backgroundColor:"rgba(177, 92, 189, 1)",borderRadius:"50%",margin:"5px 12px 0 8px"},infoBlock:{display:"flex",flexDirection:"row"},header:{display:"flex",flexDirection:"row",paddingBottom:"5px"},flex:{flex:1},caption:{fontSize:"16px",color:"rgba(0, 0, 0, 0.87)"},title:{display:"flex",flexDirection:"row",alignItems:"center",margin:"6px 0 8px 0"},flag:{height:"12px",width:"12px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},pmReviewCard:{borderTop:"3px solid #E83D40",flexDirection:"column",width:"100%"},date:{fontSize:"13px",color:"rgba(0, 0, 0, 0.87)"},mainInfo:{display:"flex",flexDirection:"column",flex:1}}))),v=e=>{let{date:t,type:n,createdBy:r,step:o,children:s,Actions:d}=e;const p=f(),[v,b]=(0,l.useState)(!1);return a().createElement("div",{className:p.pmReviewCard},a().createElement("div",{className:g()(p.header,{[p.expanded]:v})},a().createElement(u,{className:p.icon}),a().createElement("div",{className:p.mainInfo},a().createElement("div",{className:p.title},a().createElement("div",{className:g()(p.caption,p.flex)},m().text("Match review")),a().createElement(i.Z,{className:p.flag}),a().createElement("span",{className:p.date},m().date(t,"L")),a().createElement(c.Z,{isOpen:v,onClick:()=>{b(!v)}})),a().createElement("div",{className:p.infoBlock},a().createElement("div",{className:p.flex},a().createElement("div",{className:p.info},n),a().createElement("div",{className:p.info},m().text("Created by ${createdBy}",{createdBy:r})),a().createElement("div",{className:p.info},m().text("Step: ${step}",{step:o}))),d))),v?s:null)};v.propTypes={date:o().number,createdBy:o().string,type:o().string,step:o().string,children:o().oneOfType([o().node,o().arrayOf(o().node)]),Actions:o().node};const b=v},29742:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),o=n.n(r),l=n(13264),a=n(2507),i=n.n(a),c=n(39475),s=n(98538),u=n(50914),d=n(80852),m=n(95341),p=n(79312);const g=(0,n(72342).makeStyles)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),f=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=u.identity}=e;const l=g(),{text:a,onClick:i,id:c,selected:s}=n;return o().createElement(m.Z,{classes:{root:l.menuItem},onClick:e=>{r(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},o().createElement(d.Z,{checked:s,className:l.checkbox,color:"primary"}),o().createElement(p.Z,{classes:{root:l.menuText}},a))}));f.displayName="SettingsMenuItemRenderer";const v=f,b=e=>{let{items:t,menuId:n}=e;return o().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:l.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:v})}},31780:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),o=n.n(r),l=n(50914),a=n(98952),i=n(94118),c=n(14596);const s=e=>{let{values:t,onChange:n,TextFieldProps:s,fullWidth:u}=e;const d=(0,c.AH)(),m=(0,r.useMemo)((()=>(0,l.pipe)((0,l.sortBy)((e=>e.label)),(0,l.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:(0,a.nIW)(n)}})))(d.sources)),[d.sources]);return o().createElement(i.Z,{values:t,onChange:n,options:m,TextFieldProps:s,fullWidth:u})};s.displayName="SourceSystemsSelector";const u=s},44617:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(98952),o=n(24328),l=n.n(o),a=n(50914),i=n(79312);const c=(0,n(72342).makeStyles)({root:{height:"18px",width:"18px",textAlign:"center"}}),s=e=>{let{tenant:t}=e;const n=c(),s=(0,o.useMemo)((()=>{const e=(0,r.bsH)(null==t?void 0:t.id);return{backgroundColor:e,color:(0,r.nHA)(e)}}),[null==t?void 0:t.id]);return l().createElement("div",{style:s,className:n.root},l().createElement(i.Z,{variant:"body2"},(0,a.toUpper)((0,a.head)(null==t?void 0:t.name))))}},69719:(e,t,n)=>{n.d(t,{H:()=>y});var r=n(24328),o=n.n(r),l=n(50914),a=n(65643),i=n(98952),c=n(98538),s=n(44617),u=n(95341),d=n(79312),m=n(79573),p=n(72342);const g=(0,p.makeStyles)({root:{minHeight:"48px",gap:"30px"}}),f=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=m.ZT}=e;const l=g(),{tenant:a,onClick:i}=n,c=a.label?`${a.label} : ${a.name}`:a.name;return o().createElement(u.Z,{onClick:()=>{r(),i(a)},ref:t,className:l.root},o().createElement(s.c,{tenant:a}),o().createElement(d.Z,null,c))}));f.displayName="TenantMenuItem";const v=f;var b=n(14596);const h=(0,p.makeStyles)({menuButtonRoot:{padding:0,border:"1px solid rgba(0, 0, 0, 0.23)"}}),y=e=>{let{entityTypeUri:t,onChangeTenant:n,selectedTenant:u}=e;const d=h(),m=(0,b.ej)(),p=(0,b.e_)(),g=(0,r.useMemo)((()=>(0,l.pipe)((0,l.defaultTo)([]),(0,l.filter)((0,i.oZ7)(t)),(0,l.map)((e=>({tenant:e,onClick:n}))),(0,l.prepend)({tenant:p,onClick:n}))(m)),[m,t,n,p]);return(0,i.O27)(m)||!n?null:o().createElement(c.Z,{menuId:"tenantSelector",MenuItemRenderer:v,buttonContent:o().createElement(s.c,{tenant:u}),menuItems:g,buttonProps:{variant:"outlined",endIcon:o().createElement(a.Z,null),classes:{root:d.menuButtonRoot}},popoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}})}},53850:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l);const i=e=>{let{value:t}=e;return t||null},c=e=>{let{label:t}=e;return t||null};var s=n(72342);const u=(0,s.makeStyles)((()=>({hidden:{display:"none"}}))),d=e=>{let{columnValue:t,rowData:n,setHoveredColumn:r,resetHoveredColumn:l,someRowIsDragging:c}=e;const s=u(),d=n.cellRenderer||i,m=r?()=>r(t):void 0;return o().createElement("td",{onMouseOver:m,onMouseLeave:l},o().createElement("div",{className:a()({[s.hidden]:c})},o().createElement(d,{value:t[n.id]})))};var m=n(89323),p=n(13896),g=n(42484);let f=function(e){return e.Column="Column",e.Row="Row",e}({});const v=(0,s.makeStyles)((e=>({tableData:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{opacity:0,position:"absolute",top:0,left:"50%",cursor:"move",transition:"opacity 0.3s",transform:"translateX(-50%) rotate(90deg)",zIndex:5},dragIndicatorIcon:{width:"14.4px",height:"18px",color:e.palette.text.secondary},hidden:{display:"none"}}))),b=e=>{let{columnValue:t,rowData:n,index:l,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:u,setHoveredColumn:d,resetHoveredColumn:b,someRowIsDragging:h}=e;const y=v(),x=o().useRef(null),w=o().useRef(null),C=n.cellRenderer||i,[{targetId:E},D]=(0,p.useDrop)({accept:f.Column,hover:(e,n)=>{var r;if(!x.current)return;const o=e.index,a=l;if(o===a)return;const i=null===(r=x.current)||void 0===r?void 0:r.getBoundingClientRect(),s=(i.right-i.left)/2,u=n.getClientOffset().x-i.left;o<a&&u<s||o>a&&u>s||(c(e.columnValue.id,t.id),e.index=a)},drop:()=>{s&&s()},collect:e=>({targetId:e.getHandlerId()})}),[{opacity:k,sourceId:R},I,O]=(0,p.useDrag)({item:{type:f.Column,index:l,getColumnWidth:()=>{var e;return null==x||null===(e=x.current)||void 0===e?void 0:e.offsetWidth},columnValue:t,rowData:n},isDragging:e=>e.getItem().index===l,collect:e=>({opacity:e.isDragging()?0:1,sourceId:e.getHandlerId()})});(0,r.useEffect)((()=>{O((0,g.r)(),{captureDraggingState:!0}),D(x),I(w)}),[]);const S=d?()=>d(t):void 0;return o().createElement("td",{style:{opacity:k},ref:x,className:y.tableData,"data-source-id":R,"data-target-id":E,onMouseOver:S,onMouseLeave:b},o().createElement("div",{className:a()({[y.hidden]:h})},u&&o().createElement("div",{ref:w,className:y.dragIndicator},o().createElement(m.Z,{className:y.dragIndicatorIcon})),o().createElement(C,{value:t[n.id]})))},h=(0,s.makeStyles)((e=>({tableHead:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{height:"100%",opacity:0,position:"absolute",top:0,left:0,cursor:"move",transition:"opacity 0.3s"},dragIndicatorIcon:{top:"15px",width:"14.4px",height:"18px",color:e.palette.text.secondary,position:"relative"}}))),y=e=>{let{rowData:t,isDraggable:n,dragRef:r}=e;const l=h(),a=t.headCellRenderer||c;return o().createElement("th",{className:l.tableHead},n&&o().createElement("div",{ref:r,className:l.dragIndicator},o().createElement(m.Z,{className:l.dragIndicatorIcon})),o().createElement(a,t))},x=e=>{let{rowData:t,columnsData:n,index:r,onMoveColumn:l,onDropColumn:a,setHoveredColumn:i,resetHoveredColumn:c}=e;const s=0===r;return o().createElement("tr",{className:t.rowClassName},o().createElement(y,{rowData:t,isDraggable:!1}),n.map(((e,n)=>{const r=e.isDraggable,u=s&&r;return l?o().createElement(b,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:l,onDropColumn:a,shouldRenderDragIndicator:u,setHoveredColumn:i,resetHoveredColumn:c}):o().createElement(d,{key:e.id||n,rowData:t,columnValue:e,setHoveredColumn:i,resetHoveredColumn:c})})))},w=e=>{let{rowData:t,index:n,columnsData:l,onMoveRow:a,onDropRow:i,onMoveColumn:c,onDropColumn:s,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g,setSomeRowIsDragging:v}=e;const h=o().useRef(null),x=o().useRef(null),[{targetId:w},C]=(0,p.useDrop)({accept:f.Row,hover:(e,r)=>{if(!h.current)return;const o=e.index,l=n;if(o===l)return;const i=h.current.getBoundingClientRect(),c=(i.bottom-i.top)/2,s=r.getClientOffset().y-i.top;o<l&&s<c||o>l&&s>c||(a(e.id,t.id),e.index=l)},drop:()=>{i&&i()},collect:e=>({targetId:e.getHandlerId()})}),[{isDragging:E,sourceId:D},k,R]=(0,p.useDrag)({item:{type:f.Row,index:n,id:t.id},collect:e=>({sourceId:e.getHandlerId(),isDragging:e.isDragging()})});(0,r.useEffect)((()=>{R(C(h)),k(x)}),[]),(0,r.useEffect)((()=>{v(E)}),[E,v]);const I=E?0:1;return o().createElement("tr",{className:t.rowClassName,style:{opacity:I},ref:h,"data-target-id":w,"data-source-id":D},o().createElement(y,{rowData:t,isDraggable:!0,dragRef:x}),l.map(((e,n)=>c?o().createElement(b,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:!1,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}):o().createElement(d,{key:e.id||n,columnValue:e,rowData:t,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}))))},C=e=>{let{columnWidth:t,columnHeight:n,item:r}=e;const{rowData:l,columnValue:a}=r,c=l.cellRenderer||i;return o().createElement("div",{style:{width:t,height:n,background:"rgba(245,245,245, .5)"}},o().createElement(c,{value:a[l.id]}))},E=(0,s.makeStyles)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1300,pointerEvents:"none"}}),D=(e,t,n)=>{const r=(null==e?void 0:e.getBoundingClientRect())||{x:0,y:0},o=`translate(${(null==t?void 0:t.x)-(null==r?void 0:r.x)-n/2}px, ${(null==t?void 0:t.y)-(null==r?void 0:r.y)}px`;return{display:"flex",transform:o,WebkitTransform:o}},k=e=>{var t;let{columnHeight:n}=e;const l=E(),a=(0,r.useRef)(),{isDragging:i,clientOffset:c,item:s}=(0,p.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()})));if(!i||!s)return null;const u=null===(t=s.getColumnWidth)||void 0===t?void 0:t.call(s);return o().createElement("div",{className:l.dragLayer,ref:a},o().createElement("div",{style:D(a.current,c,u)},s.type===f.Column&&o().createElement(C,{columnWidth:u,columnHeight:n,item:s})))},R=(0,r.memo)((e=>{var t;let{className:n,rowsData:l,columnsData:a,theadRowsNumber:i=0,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}=e;const[g,f]=(0,r.useState)(!1),v=(0,r.useRef)(null),b=null==v||null===(t=v.current)||void 0===t?void 0:t.offsetHeight,h=!!c||!!u;return o().createElement(o().Fragment,null,h&&o().createElement(k,{columnHeight:b}),o().createElement("table",{ref:v,className:n},i>0&&o().createElement("thead",null,l.slice(0,i).map(((e,t)=>o().createElement(x,{key:e.id||t,rowData:e,columnsData:a,index:t,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p})))),o().createElement("tbody",null,l.slice(i).map(((e,t)=>c?o().createElement(w,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p,someRowIsDragging:g,setSomeRowIsDragging:f}):o().createElement(x,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}))))))}))},60824:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(24328);const o=n.n(r)().createContext("");o.displayName="IdContext"}}]);
2
2
  //# sourceMappingURL=3383.js.map
package/3463.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see 3463.js.LICENSE.txt */
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a54b8d9-67d6-4c28-8b86-db59f91ba1fb",e._sentryDebugIdIdentifier="sentry-dbid-6a54b8d9-67d6-4c28-8b86-db59f91ba1fb")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1722"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3463],{73463:(e,t,r)=>{var o=r(48570),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},f={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return o.isMemo(e)?a:c[e.$$typeof]||n}c[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[o.Memo]=a;var y=Object.defineProperty,i=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(d){var n=u(r);n&&n!==d&&e(t,n,o)}var a=i(r);l&&(a=a.concat(l(r)));for(var c=s(t),b=s(r),m=0;m<a.length;++m){var $=a[m];if(!(f[$]||o&&o[$]||b&&b[$]||c&&c[$])){var S=p(r,$);try{y(t,$,S)}catch(e){}}}}return t}},66866:(e,t)=>{var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,f=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,i=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,u=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case l:case f:case c:case a:case u:return e;default:switch(e=e&&e.$$typeof){case y:case p:case m:case b:case s:return e;default:return t}}case n:return t}}}function P(e){return v(e)===l}t.AsyncMode=i,t.ConcurrentMode=l,t.ContextConsumer=y,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=f,t.Lazy=m,t.Memo=b,t.Portal=n,t.Profiler=c,t.StrictMode=a,t.Suspense=u,t.isAsyncMode=function(e){return P(e)||v(e)===i},t.isConcurrentMode=P,t.isContextConsumer=function(e){return v(e)===y},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===f},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===b},t.isPortal=function(e){return v(e)===n},t.isProfiler=function(e){return v(e)===c},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===u},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===f||e===l||e===c||e===a||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===s||e.$$typeof===y||e.$$typeof===p||e.$$typeof===S||e.$$typeof===g||e.$$typeof===w||e.$$typeof===$)},t.typeOf=v},48570:(e,t,r)=>{e.exports=r(66866)}}]);
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a54b8d9-67d6-4c28-8b86-db59f91ba1fb",e._sentryDebugIdIdentifier="sentry-dbid-6a54b8d9-67d6-4c28-8b86-db59f91ba1fb")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1724"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3463],{73463:(e,t,r)=>{var o=r(48570),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},f={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return o.isMemo(e)?a:c[e.$$typeof]||n}c[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[o.Memo]=a;var y=Object.defineProperty,i=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(d){var n=u(r);n&&n!==d&&e(t,n,o)}var a=i(r);l&&(a=a.concat(l(r)));for(var c=s(t),b=s(r),m=0;m<a.length;++m){var $=a[m];if(!(f[$]||o&&o[$]||b&&b[$]||c&&c[$])){var S=p(r,$);try{y(t,$,S)}catch(e){}}}}return t}},66866:(e,t)=>{var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,f=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,i=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,u=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case l:case f:case c:case a:case u:return e;default:switch(e=e&&e.$$typeof){case y:case p:case m:case b:case s:return e;default:return t}}case n:return t}}}function P(e){return v(e)===l}t.AsyncMode=i,t.ConcurrentMode=l,t.ContextConsumer=y,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=f,t.Lazy=m,t.Memo=b,t.Portal=n,t.Profiler=c,t.StrictMode=a,t.Suspense=u,t.isAsyncMode=function(e){return P(e)||v(e)===i},t.isConcurrentMode=P,t.isContextConsumer=function(e){return v(e)===y},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===f},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===b},t.isPortal=function(e){return v(e)===n},t.isProfiler=function(e){return v(e)===c},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===u},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===f||e===l||e===c||e===a||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===s||e.$$typeof===y||e.$$typeof===p||e.$$typeof===S||e.$$typeof===g||e.$$typeof===w||e.$$typeof===$)},t.typeOf=v},48570:(e,t,r)=>{e.exports=r(66866)}}]);
3
3
  //# sourceMappingURL=3463.js.map