camunda-bpmn-js 2.5.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67744,6 +67744,10 @@
67744
67744
 
67745
67745
  var t$1,u,r,o$2=0,i$2=[],c=n$1.__b,f=n$1.__r,e$1=n$1.diffed,a$1=n$1.__c,v=n$1.unmount;function m(t,r){n$1.__h&&n$1.__h(u,t,o$2||r),o$2=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$2=1,p$1(w$1,n)}function p$1(n,r,o){var i=m(t$1++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t$1++,3);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t$1++,4);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o$2=5,d(function(){return {current:n}},[])}function _(n,t,u){o$2=6,h(function(){"function"==typeof n?n(t()):n&&(n.current=t());},null==u?u:u.concat(n));}function d(n,u){var r=m(t$1++,7);return k$1(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$2=8,d(function(){return n},t)}function F$1(n){var r=u.context[n.__c],o=m(t$1++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T$1(t,u){n$1.useDebugValue&&n$1.useDebugValue(u?u(t):t);}function x$1(){i$2.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g$1),t.__H.__h.forEach(j$1),t.__H.__h=[];}catch(u){t.__H.__h=[],n$1.__e(u,t.__v);}}),i$2=[];}n$1.__b=function(n){u=null,c&&c(n);},n$1.__r=function(n){f&&f(n),t$1=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g$1),r.__h.forEach(j$1),r.__h=[]);},n$1.diffed=function(t){e$1&&e$1(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r===n$1.requestAnimationFrame||((r=n$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u=void 0;},n$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g$1),t.__h=t.__h.filter(function(n){return !n.__||j$1(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],n$1.__e(r,t.__v);}}),a$1&&a$1(t,u);},n$1.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g$1);}catch(t){n$1.__e(t,u.__v);}};var b="function"==typeof requestAnimationFrame;function g$1(n){var t=u;"function"==typeof n.__c&&n.__c(),u=t;}function j$1(n){var t=u;n.__c=n.__(),u=t;}function k$1(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
67746
67746
 
67747
+ function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a$2(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p$2).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=n$1.__b;n$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N=function(n,t){return null==n?null:w$2(w$2(n).map(t))},k={map:N,forEach:N,count:function(n){return n?w$2(n).length:0},only:function(n){var t=w$2(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w$2},A=n$1.__e;n$1.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=n$1.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a$2(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F(){this.u=null,this.o=null;}n$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new p$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a$2(y$1,null,n.fallback);return u&&(u.__h=null),[a$2(y$1,null,t.__e?null:n.children),u]};var M=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var t=this,e=n.i;t.componentWillUnmount=function(){N$1(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N$1(a$2(T,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I(n,t){return a$2(j,{__v:n,i:t})}(F.prototype=new p$2).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M(t,n,r)):u();};e?e(o):o();}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=w$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z(n,t,e){return null==t.__k&&(t.textContent=""),N$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O$1(n,t),"function"==typeof e&&e(),n?n.__c:null}p$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p$2.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=n$1.event;function Z(){}function Y(){return this.cancelBubble}function $(){return this.defaultPrevented}n$1.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$,n.nativeEvent=n};var q,G={configurable:!0,get:function(){return this.class}},J=n$1.vnode;n$1.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n$1.__r;n$1.__r=function(n){K&&K(n),q=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a$2.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S$1.apply(null,arguments):n}function sn(n){return !!n.__k&&(N$1(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l$1,useReducer:p$1,useEffect:y,useLayoutEffect:h,useRef:s,useImperativeHandle:_,useMemo:d,useCallback:A$1,useContext:F$1,useDebugValue:T$1,version:"16.8.0",Children:k,render:z,hydrate:B,unmountComponentAtNode:sn,createPortal:I,createElement:a$2,createContext:q$1,createFactory:fn,cloneElement:an,createRef:h$1,Fragment:y$1,isValidElement:cn,findDOMNode:hn,Component:p$2,PureComponent:E,memo:g,forwardRef:x,unstable_batchedUpdates:pn,StrictMode:y$1,Suspense:L,SuspenseList:F,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
67748
+
67749
+ function o$1(_,o,e,n,t){var f={};for(var l in o)"ref"!=l&&(f[l]=o[l]);var s,u,a={type:_,props:f,key:e,ref:o&&o.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++n$1.__v,__source:n,__self:t};if("function"==typeof _&&(s=_.defaultProps))for(u in s)void 0===f[u]&&(f[u]=s[u]);return n$1.vnode&&n$1.vnode(a),a}
67750
+
67747
67751
  var classnames$1 = {exports: {}};
67748
67752
 
67749
67753
  /*!
@@ -67805,10 +67809,6 @@
67805
67809
  var classnamesExports = classnames$1.exports;
67806
67810
  var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
67807
67811
 
67808
- function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a$2(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p$2).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=n$1.__b;n$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N=function(n,t){return null==n?null:w$2(w$2(n).map(t))},k={map:N,forEach:N,count:function(n){return n?w$2(n).length:0},only:function(n){var t=w$2(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w$2},A=n$1.__e;n$1.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=n$1.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a$2(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F(){this.u=null,this.o=null;}n$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new p$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a$2(y$1,null,n.fallback);return u&&(u.__h=null),[a$2(y$1,null,t.__e?null:n.children),u]};var M=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var t=this,e=n.i;t.componentWillUnmount=function(){N$1(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N$1(a$2(T,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I(n,t){return a$2(j,{__v:n,i:t})}(F.prototype=new p$2).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M(t,n,r)):u();};e?e(o):o();}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=w$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z(n,t,e){return null==t.__k&&(t.textContent=""),N$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O$1(n,t),"function"==typeof e&&e(),n?n.__c:null}p$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p$2.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=n$1.event;function Z(){}function Y(){return this.cancelBubble}function $(){return this.defaultPrevented}n$1.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$,n.nativeEvent=n};var q,G={configurable:!0,get:function(){return this.class}},J=n$1.vnode;n$1.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n$1.__r;n$1.__r=function(n){K&&K(n),q=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a$2.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S$1.apply(null,arguments):n}function sn(n){return !!n.__k&&(N$1(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l$1,useReducer:p$1,useEffect:y,useLayoutEffect:h,useRef:s,useImperativeHandle:_,useMemo:d,useCallback:A$1,useContext:F$1,useDebugValue:T$1,version:"16.8.0",Children:k,render:z,hydrate:B,unmountComponentAtNode:sn,createPortal:I,createElement:a$2,createContext:q$1,createFactory:fn,cloneElement:an,createRef:h$1,Fragment:y$1,isValidElement:cn,findDOMNode:hn,Component:p$2,PureComponent:E,memo:g,forwardRef:x,unstable_batchedUpdates:pn,StrictMode:y$1,Suspense:L,SuspenseList:F,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
67809
-
67810
- function o$1(_,o,e,n,t){var f={};for(var l in o)"ref"!=l&&(f[l]=o[l]);var s,u,a={type:_,props:f,key:e,ref:o&&o.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++n$1.__v,__source:n,__self:t};if("function"==typeof _&&(s=_.defaultProps))for(u in s)void 0===f[u]&&(f[u]=s[u]);return n$1.vnode&&n$1.vnode(a),a}
67811
-
67812
67812
  // FIXME profile adding a per-Tree TreeNode cache, validating it by
67813
67813
  // parent pointer
67814
67814
  /// The default maximum length of a `TreeBuffer` node.
@@ -95402,6 +95402,18 @@
95402
95402
  * @param {setSticky} setSticky
95403
95403
  */
95404
95404
  function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
95405
+ const [scrollContainer, setScrollContainer] = l$1(query(scrollContainerSelector));
95406
+ const updateScrollContainer = A$1(() => {
95407
+ const newScrollContainer = query(scrollContainerSelector);
95408
+ if (newScrollContainer !== scrollContainer) {
95409
+ setScrollContainer(newScrollContainer);
95410
+ }
95411
+ }, [scrollContainerSelector, scrollContainer]);
95412
+ y(() => {
95413
+ updateScrollContainer();
95414
+ }, [updateScrollContainer]);
95415
+ useEvent('propertiesPanel.attach', updateScrollContainer);
95416
+ useEvent('propertiesPanel.detach', updateScrollContainer);
95405
95417
  y(() => {
95406
95418
  const Observer = IntersectionObserver;
95407
95419
 
@@ -95409,37 +95421,36 @@
95409
95421
  if (!Observer) {
95410
95422
  return;
95411
95423
  }
95412
- let observer;
95413
- if (ref.current) {
95414
- const scrollContainer = query(scrollContainerSelector);
95415
- observer = new Observer(entries => {
95416
- // The ScrollContainer is unmounted, do not update sticky state
95417
- if (scrollContainer.scrollHeight === 0) {
95418
- return;
95424
+
95425
+ // TODO(@barmac): test this
95426
+ if (!ref.current || !scrollContainer) {
95427
+ return;
95428
+ }
95429
+ const observer = new Observer(entries => {
95430
+ // scroll container is unmounted, do not update sticky state
95431
+ if (scrollContainer.scrollHeight === 0) {
95432
+ return;
95433
+ }
95434
+ entries.forEach(entry => {
95435
+ if (entry.intersectionRatio < 1) {
95436
+ setSticky(true);
95437
+ } else if (entry.intersectionRatio === 1) {
95438
+ setSticky(false);
95419
95439
  }
95420
- entries.forEach(entry => {
95421
- if (entry.intersectionRatio < 1) {
95422
- setSticky(true);
95423
- } else if (entry.intersectionRatio === 1) {
95424
- setSticky(false);
95425
- }
95426
- });
95427
- }, {
95428
- root: scrollContainer,
95429
- rootMargin: '0px 0px 999999% 0px',
95430
- // Use bottom margin to avoid stickyness when scrolling out to bottom
95431
- threshold: [1]
95432
95440
  });
95433
- observer.observe(ref.current);
95434
- }
95441
+ }, {
95442
+ root: scrollContainer,
95443
+ rootMargin: '0px 0px 999999% 0px',
95444
+ // Use bottom margin to avoid stickyness when scrolling out to bottom
95445
+ threshold: [1]
95446
+ });
95447
+ observer.observe(ref.current);
95435
95448
 
95436
95449
  // Unobserve if unmounted
95437
95450
  return () => {
95438
- if (ref.current && observer) {
95439
- observer.unobserve(ref.current);
95440
- }
95451
+ observer.unobserve(ref.current);
95441
95452
  };
95442
- }, [ref, scrollContainerSelector, setSticky]);
95453
+ }, [ref.current, scrollContainer, setSticky]);
95443
95454
  }
95444
95455
 
95445
95456
  /**
@@ -95574,9 +95585,7 @@
95574
95585
  });
95575
95586
  }
95576
95587
 
95577
- const DEFAULT_LAYOUT = {
95578
- open: true
95579
- };
95588
+ const DEFAULT_LAYOUT = {};
95580
95589
  const DEFAULT_DESCRIPTION = {};
95581
95590
 
95582
95591
  /**
@@ -95740,7 +95749,7 @@
95740
95749
  children: o$1(EventContext.Provider, {
95741
95750
  value: eventContext,
95742
95751
  children: o$1("div", {
95743
- class: classnames('bio-properties-panel', layout.open ? 'open' : ''),
95752
+ class: "bio-properties-panel",
95744
95753
  children: [o$1(Header, {
95745
95754
  element: element,
95746
95755
  headerProvider: headerProvider
@@ -96105,6 +96114,141 @@
96105
96114
  })
96106
96115
  });
96107
96116
  });
96117
+
96118
+ function ToggleSwitch(props) {
96119
+ const {
96120
+ id,
96121
+ label,
96122
+ onInput,
96123
+ value,
96124
+ switcherLabel,
96125
+ inline,
96126
+ onFocus,
96127
+ onBlur,
96128
+ inputRef
96129
+ } = props;
96130
+ const [localValue, setLocalValue] = l$1(value);
96131
+ const handleInputCallback = async () => {
96132
+ onInput(!value);
96133
+ };
96134
+ const handleInput = e => {
96135
+ handleInputCallback();
96136
+ setLocalValue(e.target.value);
96137
+ };
96138
+ y(() => {
96139
+ if (value === localValue) {
96140
+ return;
96141
+ }
96142
+ setLocalValue(value);
96143
+ }, [value]);
96144
+ return o$1("div", {
96145
+ class: classnames('bio-properties-panel-toggle-switch', {
96146
+ inline
96147
+ }),
96148
+ children: [o$1("label", {
96149
+ class: "bio-properties-panel-label",
96150
+ for: prefixId$6(id),
96151
+ children: label
96152
+ }), o$1("div", {
96153
+ class: "bio-properties-panel-field-wrapper",
96154
+ children: [o$1("label", {
96155
+ class: "bio-properties-panel-toggle-switch__switcher",
96156
+ children: [o$1("input", {
96157
+ ref: inputRef,
96158
+ id: prefixId$6(id),
96159
+ class: "bio-properties-panel-input",
96160
+ type: "checkbox",
96161
+ onFocus: onFocus,
96162
+ onBlur: onBlur,
96163
+ name: id,
96164
+ onInput: handleInput,
96165
+ checked: !!localValue
96166
+ }), o$1("span", {
96167
+ class: "bio-properties-panel-toggle-switch__slider"
96168
+ })]
96169
+ }), switcherLabel && o$1("p", {
96170
+ class: "bio-properties-panel-toggle-switch__label",
96171
+ children: switcherLabel
96172
+ })]
96173
+ })]
96174
+ });
96175
+ }
96176
+
96177
+ // helpers /////////////////
96178
+
96179
+ function prefixId$6(id) {
96180
+ return `bio-properties-panel-${id}`;
96181
+ }
96182
+
96183
+ function NumberField(props) {
96184
+ const {
96185
+ debounce,
96186
+ disabled,
96187
+ displayLabel = true,
96188
+ id,
96189
+ inputRef,
96190
+ label,
96191
+ max,
96192
+ min,
96193
+ onInput,
96194
+ step,
96195
+ value = '',
96196
+ onFocus,
96197
+ onBlur
96198
+ } = props;
96199
+ const [localValue, setLocalValue] = l$1(value);
96200
+ const handleInputCallback = d(() => {
96201
+ return debounce(event => {
96202
+ const {
96203
+ validity,
96204
+ value
96205
+ } = event.target;
96206
+ if (validity.valid) {
96207
+ onInput(value ? parseFloat(value) : undefined);
96208
+ }
96209
+ });
96210
+ }, [onInput, debounce]);
96211
+ const handleInput = e => {
96212
+ handleInputCallback(e);
96213
+ setLocalValue(e.target.value);
96214
+ };
96215
+ y(() => {
96216
+ if (value === localValue) {
96217
+ return;
96218
+ }
96219
+ setLocalValue(value);
96220
+ }, [value]);
96221
+ return o$1("div", {
96222
+ class: "bio-properties-panel-numberfield",
96223
+ children: [displayLabel && o$1("label", {
96224
+ for: prefixId$5(id),
96225
+ class: "bio-properties-panel-label",
96226
+ children: label
96227
+ }), o$1("input", {
96228
+ id: prefixId$5(id),
96229
+ ref: inputRef,
96230
+ type: "number",
96231
+ name: id,
96232
+ spellCheck: "false",
96233
+ autoComplete: "off",
96234
+ disabled: disabled,
96235
+ class: "bio-properties-panel-input",
96236
+ max: max,
96237
+ min: min,
96238
+ onInput: handleInput,
96239
+ onFocus: onFocus,
96240
+ onBlur: onBlur,
96241
+ step: step,
96242
+ value: localValue
96243
+ })]
96244
+ });
96245
+ }
96246
+
96247
+ // helpers /////////////////
96248
+
96249
+ function prefixId$5(id) {
96250
+ return `bio-properties-panel-${id}`;
96251
+ }
96108
96252
  x((props, ref) => {
96109
96253
  const {
96110
96254
  id,
@@ -96134,7 +96278,7 @@
96134
96278
  }
96135
96279
  };
96136
96280
  return o$1("input", {
96137
- id: prefixId$6(id),
96281
+ id: prefixId$4(id),
96138
96282
  type: "text",
96139
96283
  ref: inputRef,
96140
96284
  name: id,
@@ -96148,6 +96292,53 @@
96148
96292
  value: value || ''
96149
96293
  });
96150
96294
  });
96295
+ x((props, ref) => {
96296
+ const {
96297
+ id,
96298
+ debounce,
96299
+ disabled,
96300
+ onInput,
96301
+ value,
96302
+ min,
96303
+ max,
96304
+ step,
96305
+ onFocus,
96306
+ onBlur
96307
+ } = props;
96308
+ const inputRef = s();
96309
+
96310
+ // To be consistent with the FEEL editor, set focus at start of input
96311
+ // this ensures clean editing experience when switching with the keyboard
96312
+ ref.current = {
96313
+ focus: position => {
96314
+ const input = inputRef.current;
96315
+ if (!input) {
96316
+ return;
96317
+ }
96318
+ input.focus();
96319
+ if (typeof position === 'number' && position !== Infinity) {
96320
+ if (position > value.length) {
96321
+ position = value.length;
96322
+ }
96323
+ input.setSelectionRange(position, position);
96324
+ }
96325
+ }
96326
+ };
96327
+ return o$1(NumberField, {
96328
+ id: id,
96329
+ debounce: debounce,
96330
+ disabled: disabled,
96331
+ displayLabel: false,
96332
+ inputRef: inputRef,
96333
+ max: max,
96334
+ min: min,
96335
+ onInput: onInput,
96336
+ step: step,
96337
+ value: value,
96338
+ onFocus: onFocus,
96339
+ onBlur: onBlur
96340
+ });
96341
+ });
96151
96342
  x((props, ref) => {
96152
96343
  const {
96153
96344
  id,
@@ -96172,7 +96363,7 @@
96172
96363
  }
96173
96364
  };
96174
96365
  return o$1("textarea", {
96175
- id: prefixId$6(id),
96366
+ id: prefixId$4(id),
96176
96367
  type: "text",
96177
96368
  ref: inputRef,
96178
96369
  name: id,
@@ -96187,10 +96378,82 @@
96187
96378
  "data-gramm": "false"
96188
96379
  });
96189
96380
  });
96381
+ x((props, ref) => {
96382
+ const {
96383
+ id,
96384
+ onInput,
96385
+ value,
96386
+ onFocus,
96387
+ onBlur,
96388
+ switcherLabel
96389
+ } = props;
96390
+ const inputRef = s();
96391
+
96392
+ // To be consistent with the FEEL editor, set focus at start of input
96393
+ // this ensures clean editing experience when switching with the keyboard
96394
+ ref.current = {
96395
+ focus: () => {
96396
+ const input = inputRef.current;
96397
+ if (!input) {
96398
+ return;
96399
+ }
96400
+ input.focus();
96401
+ }
96402
+ };
96403
+ return o$1(ToggleSwitch, {
96404
+ id: id,
96405
+ value: value,
96406
+ inputRef: inputRef,
96407
+ onInput: onInput,
96408
+ onFocus: onFocus,
96409
+ onBlur: onBlur,
96410
+ switcherLabel: switcherLabel
96411
+ });
96412
+ });
96413
+ x((props, ref) => {
96414
+ const {
96415
+ id,
96416
+ disabled,
96417
+ onInput,
96418
+ value,
96419
+ onFocus,
96420
+ onBlur
96421
+ } = props;
96422
+ const inputRef = s();
96423
+ const handleChange = ({
96424
+ target
96425
+ }) => {
96426
+ onInput(target.checked);
96427
+ };
96428
+
96429
+ // To be consistent with the FEEL editor, set focus at start of input
96430
+ // this ensures clean editing experience when switching with the keyboard
96431
+ ref.current = {
96432
+ focus: () => {
96433
+ const input = inputRef.current;
96434
+ if (!input) {
96435
+ return;
96436
+ }
96437
+ input.focus();
96438
+ }
96439
+ };
96440
+ return o$1("input", {
96441
+ ref: inputRef,
96442
+ id: prefixId$4(id),
96443
+ name: id,
96444
+ onFocus: onFocus,
96445
+ onBlur: onBlur,
96446
+ type: "checkbox",
96447
+ class: "bio-properties-panel-input",
96448
+ onChange: handleChange,
96449
+ checked: value,
96450
+ disabled: disabled
96451
+ });
96452
+ });
96190
96453
 
96191
96454
  // helpers /////////////////
96192
96455
 
96193
- function prefixId$6(id) {
96456
+ function prefixId$4(id) {
96194
96457
  return `bio-properties-panel-${id}`;
96195
96458
  }
96196
96459
 
@@ -96225,12 +96488,12 @@
96225
96488
  return o$1("div", {
96226
96489
  class: "bio-properties-panel-select",
96227
96490
  children: [o$1("label", {
96228
- for: prefixId$4(id),
96491
+ for: prefixId$3(id),
96229
96492
  class: "bio-properties-panel-label",
96230
96493
  children: label
96231
96494
  }), o$1("select", {
96232
96495
  ref: ref,
96233
- id: prefixId$4(id),
96496
+ id: prefixId$3(id),
96234
96497
  name: id,
96235
96498
  class: "bio-properties-panel-input",
96236
96499
  onInput: handleChange,
@@ -96337,13 +96600,13 @@
96337
96600
  })]
96338
96601
  });
96339
96602
  }
96340
- function isEdited$4(node) {
96603
+ function isEdited$3(node) {
96341
96604
  return node && !!node.value;
96342
96605
  }
96343
96606
 
96344
96607
  // helpers /////////////////
96345
96608
 
96346
- function prefixId$4(id) {
96609
+ function prefixId$3(id) {
96347
96610
  return `bio-properties-panel-${id}`;
96348
96611
  }
96349
96612
 
@@ -96392,12 +96655,12 @@
96392
96655
  return o$1("div", {
96393
96656
  class: "bio-properties-panel-textarea",
96394
96657
  children: [o$1("label", {
96395
- for: prefixId$2(id),
96658
+ for: prefixId$1(id),
96396
96659
  class: "bio-properties-panel-label",
96397
96660
  children: label
96398
96661
  }), o$1("textarea", {
96399
96662
  ref: ref,
96400
- id: prefixId$2(id),
96663
+ id: prefixId$1(id),
96401
96664
  name: id,
96402
96665
  spellCheck: "false",
96403
96666
  class: classnames('bio-properties-panel-input', monospace ? 'bio-properties-panel-input-monospace' : '', autoResize ? 'auto-resize' : ''),
@@ -96497,13 +96760,13 @@
96497
96760
  })]
96498
96761
  });
96499
96762
  }
96500
- function isEdited$2(node) {
96763
+ function isEdited$1(node) {
96501
96764
  return node && !!node.value;
96502
96765
  }
96503
96766
 
96504
96767
  // helpers /////////////////
96505
96768
 
96506
- function prefixId$2(id) {
96769
+ function prefixId$1(id) {
96507
96770
  return `bio-properties-panel-${id}`;
96508
96771
  }
96509
96772
 
@@ -96538,12 +96801,12 @@
96538
96801
  return o$1("div", {
96539
96802
  class: "bio-properties-panel-textfield",
96540
96803
  children: [o$1("label", {
96541
- for: prefixId$1(id),
96804
+ for: prefixId(id),
96542
96805
  class: "bio-properties-panel-label",
96543
96806
  children: label
96544
96807
  }), o$1("input", {
96545
96808
  ref: ref,
96546
- id: prefixId$1(id),
96809
+ id: prefixId(id),
96547
96810
  type: "text",
96548
96811
  name: id,
96549
96812
  spellCheck: "false",
@@ -96635,13 +96898,13 @@
96635
96898
  })]
96636
96899
  });
96637
96900
  }
96638
- function isEdited$1(node) {
96901
+ function isEdited(node) {
96639
96902
  return node && !!node.value;
96640
96903
  }
96641
96904
 
96642
96905
  // helpers /////////////////
96643
96906
 
96644
- function prefixId$1(id) {
96907
+ function prefixId(id) {
96645
96908
  return `bio-properties-panel-${id}`;
96646
96909
  }
96647
96910
 
@@ -100186,7 +100449,7 @@
100186
100449
  }, {
100187
100450
  id: 'activityRef',
100188
100451
  component: ActivityRef,
100189
- isEdited: isEdited$4
100452
+ isEdited: isEdited$3
100190
100453
  }];
100191
100454
  }
100192
100455
  function WaitForCompletion(props) {
@@ -100380,13 +100643,13 @@
100380
100643
  const entries = [{
100381
100644
  id: 'documentation',
100382
100645
  component: ElementDocumentationProperty,
100383
- isEdited: isEdited$2
100646
+ isEdited: isEdited$1
100384
100647
  }];
100385
100648
  if (hasProcessRef$2(element)) {
100386
100649
  entries.push({
100387
100650
  id: 'processDocumentation',
100388
100651
  component: ProcessDocumentationProperty,
100389
- isEdited: isEdited$2
100652
+ isEdited: isEdited$1
100390
100653
  });
100391
100654
  }
100392
100655
  return entries;
@@ -100568,17 +100831,17 @@
100568
100831
  let entries = [{
100569
100832
  id: 'errorRef',
100570
100833
  component: ErrorRef$1,
100571
- isEdited: isEdited$4
100834
+ isEdited: isEdited$3
100572
100835
  }];
100573
100836
  if (error) {
100574
100837
  entries = [...entries, {
100575
100838
  id: 'errorName',
100576
100839
  component: ErrorName$1,
100577
- isEdited: isEdited$1
100840
+ isEdited: isEdited
100578
100841
  }, {
100579
100842
  id: 'errorCode',
100580
100843
  component: ErrorCode$2,
100581
- isEdited: isEdited$1
100844
+ isEdited: isEdited
100582
100845
  }];
100583
100846
  }
100584
100847
  return entries;
@@ -100749,17 +101012,17 @@
100749
101012
  let entries = [{
100750
101013
  id: 'escalationRef',
100751
101014
  component: EscalationRef,
100752
- isEdited: isEdited$4
101015
+ isEdited: isEdited$3
100753
101016
  }];
100754
101017
  if (escalation) {
100755
101018
  entries = [...entries, {
100756
101019
  id: 'escalationName',
100757
101020
  component: EscalationName,
100758
- isEdited: isEdited$1
101021
+ isEdited: isEdited
100759
101022
  }, {
100760
101023
  id: 'escalationCode',
100761
101024
  component: EscalationCode$1,
100762
- isEdited: isEdited$1
101025
+ isEdited: isEdited
100763
101026
  }];
100764
101027
  }
100765
101028
  return entries;
@@ -101031,7 +101294,7 @@
101031
101294
  return [{
101032
101295
  id: 'id',
101033
101296
  component: Id$3,
101034
- isEdited: isEdited$1
101297
+ isEdited: isEdited
101035
101298
  }];
101036
101299
  }
101037
101300
  function Id$3(props) {
@@ -101081,7 +101344,7 @@
101081
101344
  return [{
101082
101345
  id: 'linkName',
101083
101346
  component: LinkName,
101084
- isEdited: isEdited$1
101347
+ isEdited: isEdited
101085
101348
  }];
101086
101349
  }
101087
101350
  function LinkName(props) {
@@ -101135,13 +101398,13 @@
101135
101398
  let entries = [{
101136
101399
  id: 'messageRef',
101137
101400
  component: MessageRef$1,
101138
- isEdited: isEdited$4
101401
+ isEdited: isEdited$3
101139
101402
  }];
101140
101403
  if (message) {
101141
101404
  entries = [...entries, {
101142
101405
  id: 'messageName',
101143
101406
  component: MessageName$1,
101144
- isEdited: isEdited$1
101407
+ isEdited: isEdited
101145
101408
  }];
101146
101409
  }
101147
101410
  return entries;
@@ -101282,11 +101545,11 @@
101282
101545
  const entries = [{
101283
101546
  id: 'loopCardinality',
101284
101547
  component: LoopCardinality,
101285
- isEdited: isEdited$1
101548
+ isEdited: isEdited
101286
101549
  }, {
101287
101550
  id: 'completionCondition',
101288
101551
  component: CompletionCondition$1,
101289
- isEdited: isEdited$1
101552
+ isEdited: isEdited
101290
101553
  }];
101291
101554
  return entries;
101292
101555
  }
@@ -101509,7 +101772,7 @@
101509
101772
  return [{
101510
101773
  id: 'name',
101511
101774
  component: Name$3,
101512
- isEdited: isEdited$2
101775
+ isEdited: isEdited$1
101513
101776
  }];
101514
101777
  }
101515
101778
  function Name$3(props) {
@@ -101618,11 +101881,11 @@
101618
101881
  return [{
101619
101882
  id: 'processId',
101620
101883
  component: ProcessId,
101621
- isEdited: isEdited$1
101884
+ isEdited: isEdited
101622
101885
  }, {
101623
101886
  id: 'processName',
101624
101887
  component: ProcessName,
101625
- isEdited: isEdited$1
101888
+ isEdited: isEdited
101626
101889
  }];
101627
101890
  }
101628
101891
  function ProcessName(props) {
@@ -101715,13 +101978,13 @@
101715
101978
  let entries = [{
101716
101979
  id: 'signalRef',
101717
101980
  component: SignalRef,
101718
- isEdited: isEdited$4
101981
+ isEdited: isEdited$3
101719
101982
  }];
101720
101983
  if (signal) {
101721
101984
  entries = [...entries, {
101722
101985
  id: 'signalName',
101723
101986
  component: SignalName$1,
101724
- isEdited: isEdited$1
101987
+ isEdited: isEdited
101725
101988
  }];
101726
101989
  }
101727
101990
  return entries;
@@ -101908,7 +102171,7 @@
101908
102171
  entries.push({
101909
102172
  id: getId$1(idPrefix, 'timerEventDefinitionType'),
101910
102173
  component: TimerEventDefinitionType$2,
101911
- isEdited: isEdited$4,
102174
+ isEdited: isEdited$3,
101912
102175
  timerEventDefinition,
101913
102176
  timerEventDefinitionType
101914
102177
  });
@@ -101916,7 +102179,7 @@
101916
102179
  entries.push({
101917
102180
  id: getId$1(idPrefix, 'timerEventDefinitionValue'),
101918
102181
  component: TimerEventDefinitionValue$2,
101919
- isEdited: isEdited$1,
102182
+ isEdited: isEdited,
101920
102183
  timerEventDefinition,
101921
102184
  timerEventDefinitionType
101922
102185
  });