tocco-devcon 1.0.189 → 1.0.191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,12 @@
1
+ 1.0.191
2
+ - style edit text within html formatter
3
+ - reset value properly
4
+
5
+ 1.0.190
6
+ - fix docs browser label alignment
7
+ - set correct label position
8
+ - fix build for customer bundles
9
+
1
10
  1.0.189
2
11
  - adjust useSyncValidation
3
12
  - add data-cy attr to confirm buttons
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[251],{81251:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var c=r(59713),n=r.n(c),o=r(88162),i=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,c)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u=function(e){var t=e.size,r=e.style,c=e.icon;return(0,i.jsx)(o.Z,p(p({},r),{},{style:{fontSize:t},spin:!0,icon:c||"circle-notch"}))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[263],{77349:(n,t,e)=>{"use strict";e.d(t,{Z:()=>i});var r=e(83946),o=e(19013),a=e(13882);function i(n,t){(0,a.Z)(2,arguments);var e=(0,o.Z)(n),i=(0,r.Z)(t);return isNaN(i)?new Date(NaN):i?(e.setDate(e.getDate()+i),e):e}},96559:(n,t,e)=>{"use strict";e.d(t,{rU:()=>D});var r=e(56746);function o(n,t){return(o=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function a(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,o(n,t)}var i=e(1024),c=e.n(i);function u(){return(u=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}function f(n){return"/"===n.charAt(0)}function s(n,t){for(var e=t,r=e+1,o=n.length;r<o;e+=1,r+=1)n[e]=n[r];n.pop()}const l=function(n,t){void 0===t&&(t="");var e,r=n&&n.split("/")||[],o=t&&t.split("/")||[],a=n&&f(n),i=t&&f(t),c=a||i;if(n&&f(n)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];e="."===u||".."===u||""===u}else e=!1;for(var l=0,h=o.length;h>=0;h--){var v=o[h];"."===v?s(o,h):".."===v?(s(o,h),l++):l&&(s(o,h),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d};var h=e(2177);function v(n){return"/"===n.charAt(0)?n:"/"+n}function d(n){return"/"===n.charAt(0)?n.substr(1):n}function p(n,t){return function(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))}(n,t)?n.substr(t.length):n}function y(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function w(n){var t=n.pathname,e=n.search,r=n.hash,o=t||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(n,t,e,r){var o;"string"==typeof n?(o=function(n){var t=n||"/",e="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(e=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===e?"":e,hash:"#"===r?"":r}}(n)).state=t:(void 0===(o=u({},n)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(n){throw n instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var n=null;var t=[];return{setPrompt:function(t){return n=t,function(){n===t&&(n=null)}},confirmTransitionTo:function(t,e,r,o){if(null!=n){var a="function"==typeof n?n(t,e):n;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(n){var e=!0;function r(){e&&n.apply(void 0,arguments)}return t.push(r),function(){e=!1,t=t.filter((function(n){return n!==r}))}},notifyListeners:function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];t.forEach((function(n){return n.apply(void 0,e)}))}}}var O=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(n,t){t(window.confirm(n))}var P="popstate",k="hashchange";function x(){try{return window.history.state||{}}catch(n){return{}}}function T(n){void 0===n&&(n={}),O||(0,h.Z)(!1);var t,e=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=n,i=a.forceRefresh,c=void 0!==i&&i,f=a.getUserConfirmation,s=void 0===f?b:f,l=a.keyLength,d=void 0===l?6:l,T=n.basename?y(v(n.basename)):"";function A(n){var t=n||{},e=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return T&&(a=p(a,T)),m(a,r,e)}function E(){return Math.random().toString(36).substr(2,d)}var C=g();function R(n){u(K,n),K.length=e.length,C.notifyListeners(K.location,K.action)}function L(n){(function(n){return void 0===n.state&&-1===navigator.userAgent.indexOf("CriOS")})(n)||I(A(n.state))}function _(){I(A(x()))}var S=!1;function I(n){if(S)S=!1,R();else{C.confirmTransitionTo(n,"POP",s,(function(t){t?R({action:"POP",location:n}):function(n){var t=K.location,e=U.indexOf(t.key);-1===e&&(e=0);var r=U.indexOf(n.key);-1===r&&(r=0);var o=e-r;o&&(S=!0,Z(o))}(n)}))}}var N=A(x()),U=[N.key];function j(n){return T+w(n)}function Z(n){e.go(n)}var D=0;function H(n){1===(D+=n)&&1===n?(window.addEventListener(P,L),o&&window.addEventListener(k,_)):0===D&&(window.removeEventListener(P,L),o&&window.removeEventListener(k,_))}var F=!1;var K={length:e.length,action:"POP",location:N,createHref:j,push:function(n,t){var o="PUSH",a=m(n,t,E(),K.location);C.confirmTransitionTo(a,o,s,(function(n){if(n){var t=j(a),i=a.key,u=a.state;if(r)if(e.pushState({key:i,state:u},null,t),c)window.location.href=t;else{var f=U.indexOf(K.location.key),s=U.slice(0,f+1);s.push(a.key),U=s,R({action:o,location:a})}else window.location.href=t}}))},replace:function(n,t){var o="REPLACE",a=m(n,t,E(),K.location);C.confirmTransitionTo(a,o,s,(function(n){if(n){var t=j(a),i=a.key,u=a.state;if(r)if(e.replaceState({key:i,state:u},null,t),c)window.location.replace(t);else{var f=U.indexOf(K.location.key);-1!==f&&(U[f]=a.key),R({action:o,location:a})}else window.location.replace(t)}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(n){void 0===n&&(n=!1);var t=C.setPrompt(n);return F||(H(1),F=!0),function(){return F&&(F=!1,H(-1)),t()}},listen:function(n){var t=C.appendListener(n);return H(1),function(){H(-1),t()}}};return K}var A="hashchange",E={hashbang:{encodePath:function(n){return"!"===n.charAt(0)?n:"!/"+d(n)},decodePath:function(n){return"!"===n.charAt(0)?n.substr(1):n}},noslash:{encodePath:d,decodePath:v},slash:{encodePath:v,decodePath:v}};function C(n){var t=n.indexOf("#");return-1===t?n:n.slice(0,t)}function R(){var n=window.location.href,t=n.indexOf("#");return-1===t?"":n.substring(t+1)}function L(n){window.location.replace(C(window.location.href)+"#"+n)}function _(n){void 0===n&&(n={}),O||(0,h.Z)(!1);var t=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),n),r=e.getUserConfirmation,o=void 0===r?b:r,a=e.hashType,i=void 0===a?"slash":a,c=n.basename?y(v(n.basename)):"",f=E[i],s=f.encodePath,l=f.decodePath;function d(){var n=l(R());return c&&(n=p(n,c)),m(n)}var P=g();function k(n){u(F,n),F.length=t.length,P.notifyListeners(F.location,F.action)}var x=!1,T=null;function _(){var n,t,e=R(),r=s(e);if(e!==r)L(r);else{var a=d(),i=F.location;if(!x&&(t=a,(n=i).pathname===t.pathname&&n.search===t.search&&n.hash===t.hash))return;if(T===w(a))return;T=null,function(n){if(x)x=!1,k();else{var t="POP";P.confirmTransitionTo(n,t,o,(function(e){e?k({action:t,location:n}):function(n){var t=F.location,e=U.lastIndexOf(w(t));-1===e&&(e=0);var r=U.lastIndexOf(w(n));-1===r&&(r=0);var o=e-r;o&&(x=!0,j(o))}(n)}))}}(a)}}var S=R(),I=s(S);S!==I&&L(I);var N=d(),U=[w(N)];function j(n){t.go(n)}var Z=0;function D(n){1===(Z+=n)&&1===n?window.addEventListener(A,_):0===Z&&window.removeEventListener(A,_)}var H=!1;var F={length:t.length,action:"POP",location:N,createHref:function(n){var t=document.querySelector("base"),e="";return t&&t.getAttribute("href")&&(e=C(window.location.href)),e+"#"+s(c+w(n))},push:function(n,t){var e="PUSH",r=m(n,void 0,void 0,F.location);P.confirmTransitionTo(r,e,o,(function(n){if(n){var t=w(r),o=s(c+t);if(R()!==o){T=t,function(n){window.location.hash=n}(o);var a=U.lastIndexOf(w(F.location)),i=U.slice(0,a+1);i.push(t),U=i,k({action:e,location:r})}else k()}}))},replace:function(n,t){var e="REPLACE",r=m(n,void 0,void 0,F.location);P.confirmTransitionTo(r,e,o,(function(n){if(n){var t=w(r),o=s(c+t);R()!==o&&(T=t,L(o));var a=U.indexOf(w(F.location));-1!==a&&(U[a]=t),k({action:e,location:r})}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(n){void 0===n&&(n=!1);var t=P.setPrompt(n);return H||(D(1),H=!0),function(){return H&&(H=!1,D(-1)),t()}},listen:function(n){var t=P.appendListener(n);return D(1),function(){D(-1),t()}}};return F}e(94662);function S(n,t){if(null==n)return{};var e,r,o={},a=Object.keys(n);for(r=0;r<a.length;r++)e=a[r],t.indexOf(e)>=0||(o[e]=n[e]);return o}c().Component;c().Component;var I=function(n,t){return"function"==typeof n?n(t):n},N=function(n,t){return"string"==typeof n?m(n,null,null,t):n},U=function(n){return n},j=c().forwardRef;void 0===j&&(j=U);var Z=j((function(n,t){var e=n.innerRef,r=n.navigate,o=n.onClick,a=S(n,["innerRef","navigate","onClick"]),i=a.target,f=u({},a,{onClick:function(n){try{o&&o(n)}catch(t){throw n.preventDefault(),t}n.defaultPrevented||0!==n.button||i&&"_self"!==i||function(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}(n)||(n.preventDefault(),r())}});return f.ref=U!==j&&t||e,c().createElement("a",f)}));var D=j((function(n,t){var e=n.component,o=void 0===e?Z:e,a=n.replace,i=n.to,f=n.innerRef,s=S(n,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(n){n||(0,h.Z)(!1);var e=n.history,r=N(I(i,n.location),n.location),l=r?e.createHref(r):"",v=u({},s,{href:l,navigate:function(){var t=I(i,n.location),r=w(n.location)===w(N(t));(a||r?e.replace:e.push)(t)}});return U!==j?v.ref=t||f:v.innerRef=f,c().createElement(o,v)}))})),H=function(n){return n},F=c().forwardRef;void 0===F&&(F=H);F((function(n,t){var e=n["aria-current"],o=void 0===e?"page":e,a=n.activeClassName,i=void 0===a?"active":a,f=n.activeStyle,s=n.className,l=n.exact,v=n.isActive,d=n.location,p=n.sensitive,y=n.strict,w=n.style,m=n.to,g=n.innerRef,O=S(n,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(n){n||(0,h.Z)(!1);var e=d||n.location,a=N(I(m,e),e),b=a.pathname,P=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=P?(0,r.LX)(e.pathname,{path:P,exact:l,sensitive:p,strict:y}):null,x=!!(v?v(k,e):k),T="function"==typeof s?s(x):s,A="function"==typeof w?w(x):w;x&&(T=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.filter((function(n){return n})).join(" ")}(T,i),A=u({},A,f));var E=u({"aria-current":x&&o||null,className:T,style:A,to:a},O);return H!==F?E.ref=t||g:E.innerRef=g,c().createElement(D,E)}))}))},126:(n,t,e)=>{"use strict";var r=e(51235);function o(){}function a(){}a.resetWarningCache=o,n.exports=function(){function n(n,t,e,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return n}n.isRequired=n;var e={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,elementType:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return e.PropTypes=e,e}},94662:(n,t,e)=>{n.exports=e(126)()},51235:n=>{"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[496],{54496:(e,n,t)=>{t.r(n),t.d(n,{default:()=>nt});var r,i,o=t(56746),a=t(35202),l=t(34206),s=t(50558),c=t(48479),d=t(1024),u=t(30006),g=t(41552),p=t(65035),f=t(28655),h=t.n(f),x=t(38205),m=t(51032),v=x.ZP.input.withConfig({displayName:"StyledInput"})(r||(r=h()(["\n && {\n ","\n }\n"])),m.k9),y=x.ZP.div.withConfig({displayName:"StyledInputWrapper"})(i||(i=h()(["\n && {\n ","\n }\n"])),m.yP),j=t(85893);const b=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=e.setFragmentSelected;return(0,j.jsx)(j.Fragment,{children:n.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){i(n,e.target.checked)}),disabled:r}),(0,j.jsx)(l.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const Z=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,l=e.running,s=e.disabled,c=e.executeDbRefactoring,f=e.loadModules,h=e.loadFragments,x=e.setSelectedModules,m=e.setFragmentSelected,Z=e.setVersion,S=e.setIgnoreErrors;(0,d.useEffect)((function(){0===t.length&&f(),0===i.length&&h()}),[]);return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),c()},children:[(0,j.jsx)(u.Z,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,j.jsx)(g.Z,{options:t,value:r,onChange:x,isMulti:!0,immutable:s})}),(0,j.jsx)(u.Z,{label:"Fragments",fixLabel:!0,children:(0,j.jsx)(b,{fragments:i,selectedFragments:o,disabled:s,setFragmentSelected:m})}),(0,j.jsx)(u.Z,{label:"Version",hasValue:n.length>0,children:(0,j.jsx)(y,{children:(0,j.jsx)(v,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");Z(n)},disabled:s})})}),(0,j.jsx)(u.Z,{label:"Ignore errors",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){S(e.target.checked)},disabled:s})}),(0,j.jsx)(p.Z,{type:"submit",label:"Execute",look:"raised",pending:l,disabled:s})]})};var S={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const P=(0,s.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),S)(Z);const C=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,o=e.setLanguage;return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,j.jsx)(u.Z,{label:"Language",hasValue:n.length>0,children:(0,j.jsx)(y,{children:(0,j.jsx)(v,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,j.jsx)(p.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var O={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const k=(0,s.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),O)(C);var w,N,L,D;const E=function(){return(0,j.jsxs)(j.Fragment,{children:[w||(w=(0,j.jsx)(l.ZP.H1,{children:"Database Refactoring"})),N||(N=(0,j.jsx)(P,{})),L||(L=(0,j.jsx)(l.ZP.H1,{children:"Language Upgrade"})),D||(D=(0,j.jsx)(k,{}))]})};var F,R,M,V,T,I,q,A=t(63038),H=t.n(A),z=t(30759),U={ERROR:"#a00"},W=x.ZP.div.withConfig({displayName:"StyledLogTable"})(F||(F=h()(["\n display: grid;\n gap: 1px;\n"]))),B=x.ZP.div.withConfig({displayName:"StyledLogEntry"})(R||(R=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(U[e.level]||"#ddd",";")})),G=x.ZP.span.withConfig({displayName:"StyledMessage"})(M||(M=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,z.Z)()),_=x.ZP.span.withConfig({displayName:"StyledTime"})(V||(V=h()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,z.Z)()),Q=x.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(T||(T=h()(["\n margin-top: 1em;\n"]))),K=x.ZP.div.withConfig({displayName:"StyledDetailMessage"})(I||(I=h()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,z.Z)()),$=x.ZP.div.withConfig({displayName:"StyledStackTrace"})(q||(q=h()(["\n && {\n ","\n }\n"])),(0,z.Z)()),Y=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const J=function(e){var n=e.exception;return(0,j.jsxs)(Q,{children:[(0,j.jsx)(K,{children:n.detailMessage}),(0,j.jsx)($,{children:n.stackTrace.map((function(e,n){return(0,j.jsx)("div",{children:Y(e)},n)}))})]})};const X=function(e){var n=e.entry,t=(0,d.useState)(!1),r=H()(t,2),i=r[0],o=r[1];return(0,j.jsxs)(B,{level:n.level,children:[(0,j.jsx)(G,{onClick:function(){n.exception&&o(!i)},expandable:!!n.exception,children:n.message}),(0,j.jsx)(_,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,j.jsx)(J,{exception:n.exception})]})};var ee;const ne=function(e){var n=e.entries;return(0,j.jsx)(W,{children:n.length>0?n.map((function(e){return(0,j.jsx)(X,{entry:e},e.key)})):ee||(ee=(0,j.jsx)(l.ZP.Span,{children:"No entries so far."}))})};const te=(0,s.connect)((function(e){return{entries:e.log.entries}}),{})(ne);var re,ie;const oe=function(){return(0,j.jsxs)(j.Fragment,{children:[re||(re=(0,j.jsx)(l.ZP.H1,{children:"Log"})),ie||(ie=(0,j.jsx)(te,{}))]})};var ae,le,se=t(49478),ce=x.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(ae||(ae=h()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),de=x.ZP.div.withConfig({displayName:"StyledGroupHeading"})(le||(le=h()(["\n margin-bottom: 1em;\n"])));function ue(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return ge(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ge(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function ge(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}const pe=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,o=function(e,n){var t,r=ue(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,j.jsxs)(ce,{children:[(0,j.jsxs)(de,{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){i(t.map((function(e){return e.id})),e.target.checked)}}),(0,j.jsx)(l.ZP.Label,{for:"checkbox-"+n,children:(0,j.jsxs)(l.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){i([n],e.target.checked)})}),(0,j.jsx)(l.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const fe=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=e.generateSql,o=e.generateChangelog;return(0,j.jsxs)("div",{children:[Object.keys(n).length>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(p.Z,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,j.jsxs)(p.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,j.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,j.jsx)(pe,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var he={setSelected:se.Pq,generateSql:se.$i,generateChangelog:se._w};const xe=(0,s.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),he)(fe);var me,ve,ye,je=x.ZP.div.withConfig({displayName:"StyledProgressBar"})(me||(me=h()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),be=x.ZP.div.withConfig({displayName:"StyledInnerProgress"})(ve||(ve=h()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),Ze=x.ZP.div.withConfig({displayName:"StyledProgressText"})(ye||(ye=h()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,z.Z)()),Se=function(e){return e.result?e.result:e.running?e.total?"".concat(Pe(e),"%"):"Preparing...":"Not started"},Pe=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const Ce=function(e){var n=e.state;return(0,j.jsxs)(je,{children:[(0,j.jsx)(be,{percentage:Pe(n)}),(0,j.jsx)(Ze,{children:Se(n)})]})};const Oe=function(e){var n=e.state,t=e.startValidation;return(0,j.jsxs)("div",{children:[(0,j.jsx)(p.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,j.jsx)(Ce,{state:n})]})};var ke={startValidation:se.YV};const we=(0,s.connect)((function(e){return{state:e.modelValidation.state}}),ke)(Oe);var Ne,Le,De;const Ee=function(){return(0,j.jsxs)(j.Fragment,{children:[Ne||(Ne=(0,j.jsx)(l.ZP.H1,{children:"Model Validation"})),Le||(Le=(0,j.jsx)(we,{})),De||(De=(0,j.jsx)(xe,{}))]})};var Fe=t(22541),Re=t(59713),Me=t.n(Re),Ve=t(57557),Te=t.n(Ve),Ie=t(29615),qe=t(88162),Ae=t(38431),He=t(96126),ze=t(69119),Ue=t(77349),We=t(49546);function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach((function(n){Me()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e="yyyy-MM-dd",Qe=function(e){return(0,Ae.Z)(e,_e)?(0,He.Z)(e,_e,new Date):(0,Ae.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ae.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,ze.Z)(new Date(e)):null};const Ke={datetime:{type:"date",toRange:function(e){return{from:e?Qe(e).toISOString():null,to:e?(0,Ue.Z)(Qe(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,We.Z)(new Date(e.from),_e):null!=e&&e.to?(0,We.Z)(new Date(e.to),_e):null},getToOptions:function(e,n){return Ge(Ge({},e),{},{datePickerOptions:Ge({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Ge(Ge({},e),{},{datePickerOptions:Ge({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,n){return Ge(Ge({},e),{},{datePickerOptions:Ge({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Ge(Ge({},e),{},{datePickerOptions:Ge({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var $e,Ye,Je,Xe,en,nn=t(2091),tn=t(7281),rn=x.ZP.div.withConfig({displayName:"StyledIconWrapper"})($e||($e=h()(["\n font-size: ",";\n"])),tn.Z.font(-2.7)),on=x.ZP.div.withConfig({displayName:"StyledRange"})(Ye||(Ye=h()(["\n display: flex;\n align-items: baseline;\n"]))),an=x.ZP.div.withConfig({displayName:"StyledInput"})(Je||(Je=h()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),ln=(0,x.ZP)(nn.Z).withConfig({displayName:"StyledBall"})(Xe||(Xe=h()(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function sn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function cn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?sn(Object(t),!0).forEach((function(n){Me()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const dn=function(e){var n=e.value,t=e.events,r=e.readOnly,i=e.type,o=e.options,a=e.fromText,l=e.toText,s=Ke[i],c=(null==n?void 0:n.isRangeValue)||!1,u=(0,d.useRef)(n);u.current=n;var g,p,f=(0,d.useMemo)((function(){return cn(cn({},t),{},{onChange:t.onChange})}),[t]),h={onChange:function(e){t.onChange(cn(cn({},u.current),{},{to:e}))}},x={onChange:function(e){t.onChange(cn(cn({},u.current),{},{from:e}))}},m=(null==s?void 0:s.type)||i,v=(0,j.jsx)(Ie.Z,cn(cn({type:m},Te()(e,["type"])),{},{events:f})),y=(0,j.jsxs)(an,{children:[(0,j.jsx)(Ie.Z,cn(cn({},e),{},{options:(g=o,p=null==n?void 0:n.to,null!=s&&s.getFromOptions?s.getFromOptions(g,p):g),value:(null==n?void 0:n.from)||null,events:x,placeholder:a})),en||(en=(0,j.jsx)(rn,{children:(0,j.jsx)(qe.Z,{icon:"horizontal-rule"})})),(0,j.jsx)(Ie.Z,cn(cn({},e),{},{options:function(e,n){return null!=s&&s.getToOptions?s.getToOptions(e,n):e}(o,null==n?void 0:n.from),value:(null==n?void 0:n.to)||null,events:h,placeholder:l}))]});return(0,j.jsxs)(on,{children:[c?y:v,(0,j.jsx)(ln,{disabled:r,icon:c?"square-minus":"square-plus",onClick:function(){var e=c?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(n):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(n);t.onChange(e)}})]})};const un=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,j.jsxs)("div",{children:[(0,j.jsx)(u.Z,{label:"Active",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,j.jsx)(u.Z,{label:"Elapsed",hasValue:!!t,children:(0,j.jsx)(dn,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var gn={setActive:Fe.Iv,setElapsed:Fe.uI};const pn=(0,s.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),gn)(un);var fn,hn,xn,mn,vn,yn,jn,bn={ERROR:"#a00"},Zn=x.ZP.div.withConfig({displayName:"StyledLogTable"})(fn||(fn=h()(["\n display: grid;\n gap: 1px;\n"]))),Sn=x.ZP.div.withConfig({displayName:"StyledLogEntry"})(hn||(hn=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(bn[e.level]||"#ddd",";")})),Pn=x.ZP.span.withConfig({displayName:"StyledStatementHeader"})(xn||(xn=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,z.Z)()),Cn=x.ZP.span.withConfig({displayName:"StyledStatement"})(mn||(mn=h()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,z.Z)()),On=x.ZP.span.withConfig({displayName:"StyledTime"})(vn||(vn=h()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,z.Z)()),kn=x.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(yn||(yn=h()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,z.Z)()),wn=x.ZP.span.withConfig({displayName:"StyledElapsed"})(jn||(jn=h()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const Nn=function(e){var n=e.entry,t=(0,d.useState)(!1),r=H()(t,2),i=r[0],o=r[1],a=n.sql.length>100,l=a?n.sql.substr(0,100)+"...":n.sql;return(0,j.jsxs)(Sn,{children:[(0,j.jsx)(Pn,{expandable:a,onClick:function(){a&&o(!i)},children:l}),i&&(0,j.jsx)(Cn,{children:n.sql}),(0,j.jsx)(On,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,j.jsx)(kn,{children:(0,j.jsxs)(wn,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var Ln;const Dn=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?e.elapsed>=n.from&&e.elapsed<=n.to:e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,j.jsx)(Zn,{children:n.length>0?n.map((function(e){return(0,j.jsx)(Nn,{entry:e},e.key)})):Ln||(Ln=(0,j.jsx)(l.ZP.Span,{children:"No entries so far."}))})};const En=(0,s.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Dn);var Fn,Rn,Mn;const Vn=function(){return(0,j.jsxs)(j.Fragment,{children:[Fn||(Fn=(0,j.jsx)(l.ZP.H1,{children:"SQL Log"})),Rn||(Rn=(0,j.jsx)(pn,{})),Mn||(Mn=(0,j.jsx)(En,{}))]})};var Tn,In=t(88601),qn=t(96559),An=t(24875);const Hn=(0,x.ZP)(qn.rU)(Tn||(Tn=h()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,z.Z)(),An.FS.color("secondary"),An.FS.color("text"),An.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?An.FS.color("text"):An.FS.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));var zn,Un,Wn,Bn,Gn,_n,Qn,Kn,$n,Yn,Jn=x.ZP.div.withConfig({displayName:"StyledDevCon"})(zn||(zn=h()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),In.Z.color("paper"),tn.Z.space(0)),Xn=x.ZP.div.withConfig({displayName:"StyledNavigation"})(Un||(Un=h()(["\n display: flex;\n"]))),et=(0,x.ZP)(Hn).withConfig({displayName:"StyledRouterLink"})(Wn||(Wn=h()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const nt=function(){return(0,j.jsxs)(Jn,{children:[Bn||(Bn=(0,j.jsx)(a.Z.Notifications,{})),Gn||(Gn=(0,j.jsx)(l.ZP.Span,{children:"Tocco Developer Console"})),_n||(_n=(0,j.jsxs)(Xn,{children:[(0,j.jsx)(et,{to:"/log",children:"Log"}),(0,j.jsx)(et,{to:"/modelvalidation",children:"Model Validation"}),(0,j.jsx)(et,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,j.jsx)(et,{to:"/sqllog",children:"SQL Log"})]})),(0,j.jsxs)(o.rs,{children:[(0,j.jsx)(o.AW,{path:"/",exact:!0,render:function(){return(0,j.jsx)(o.l_,{to:{pathname:"/log"}})}}),(0,j.jsx)(o.AW,{path:"/log",exact:!0,render:function(){return Qn||(Qn=(0,j.jsx)(oe,{}))}}),(0,j.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return Kn||(Kn=(0,j.jsx)(E,{}))}}),(0,j.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return $n||($n=(0,j.jsx)(Ee,{}))}}),(0,j.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return Yn||(Yn=(0,j.jsx)(Vn,{}))}})]})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{24295:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Be});var r=n(63038),o=n.n(r),a=n(28655),c=n.n(a),i=n(22085),u=n.n(i),s=(n(66245),n(56544)),l=n(7197),f=n(81272),p=n(82341),d=n(97595),h=n(66679),m=n(38794),g=n(12964),x=n(27361),k=n.n(x),v=n(14293),w=n.n(v),y=n(13218),_=n.n(y),b=n(47037),R=n.n(b),M=n(1024),$=n(38205),j=(n(36976),n(92194),n(2565),n(8821),n(71083),n(42061),n(74576),n(82454),n(55872),n(58119),n(54159)),q=function(e){return j.Z.executeRequest("rest/".concat(e))},B=function(e){return 200===e.status?e.json():null},I=n(93913),O=n.n(I),z=n(34575),C=n.n(z),T=n(2205),N=n.n(T),E=n(78585),S=n.n(E),P=n(29754),H=n.n(P),F=(n(51500),n(1469)),A=n.n(F),G=n(30236),V=n.n(G),Z=["==","!=","<=",">=","<",">","~="],U=["true","false","null"],D=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],J=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],K=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H()(e);if(t){var o=H()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S()(this,n)}}const Q=function(e){return function(t){N()(r,t);var n=L(r);function r(){var t;C()(this,r),t=n.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(K.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],a={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(Z.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(J.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(U.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(D.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=V()(t.$rules,a,(function(e,t){return A()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return O()(r)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules)};function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H()(e);if(t){var o=H()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S()(this,n)}}var X=function(e){N()(n,e);var t=W(n);function n(){var e;C()(this,n);return(e=t.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return O()(n)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules),Y=function(e){N()(n,e);var t=W(n);function n(){var e;C()(this,n),e=t.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var a in e.$rules)e.$rules[a].unshift.apply(e.$rules[a],o);e.embedRules(X,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var c=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(Q(),"tql-",c,["start"]);var i={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=V()(e.$rules,i,(function(e,t){return A()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return O()(n)}(u().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ee=n(68551),te=n.n(ee),ne=n(319),re=n.n(ne),oe=u().require("ace/token_iterator").TokenIterator,ae=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ce=function(e,t){return ae(e.getCurrentToken())===t},ie=function(e){if(ce(e,"model")&&e.stepBackward(),(ce(e,"field")||ce(e,"relation"))&&e.stepBackward(),!ce(e,"chaining"))return null;if(e.stepBackward(),ce(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},ue=function(e,t){for(;!ce(e,t);)if(!e.stepBackward())return!1;return!0},se=function(e,t){return ce(e,"rparen")?1:t>0&&ce(e,"lparen")?(e.stepBackward(),-1):0},le=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&ce(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat(re()(pe(e))):[]}if(ce(e,"order_by")){if(ue(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=se(e,t),!e.stepBackward())return null}return null},fe=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},pe=function(e){return fe(e,ie)},de=function(e){return fe(e,le)},he=1e3,me=function(e,t,n){var r=function(e,t){if(t){var n=de(e());return{baseModel:t,modelScope:te()(n).slice(0)}}var r=de(e()),o=te()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=pe(e()),i=[].concat(re()(a),re()(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=te()(e),n=t[0],r=t.slice(1);return q(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(B).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat(re()(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),re()(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat(re()(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:he}}));t(null,n)})).catch((function(e){return t(e)}))}},ge=function(e,t){return t?"".concat(e," (").concat(t,")"):e},xe=function(e){return q("entities").then(B).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:ge(t,n),value:t,score:he}}));e(null,n)})).catch((function(t){return e(t)}))},ke=function(){return K.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ve=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new oe(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(ae(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":me(c,a,e);break;case"where":case"conjunction":me(c,a,e),a(null,ke());break;case"nice_function":a(null,ke());break;case"find":xe(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,D.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,J.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":me(c,a,e),s&&"relation"!==ae(s)&&xe(a);break;case null:e&&me(c,a,e),a(null,ke())}}}};function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H()(e);if(t){var o=H()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S()(this,n)}}var ye=function(e){N()(n,e);var t=we(n);function n(){var e;return C()(this,n),(e=t.call(this)).HighlightRules=Y,e.completer=ve(),e}return O()(n)}(u().require("ace/mode/ftl").Mode);function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H()(e);if(t){var o=H()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S()(this,n)}}var be,Re=function(e){N()(n,e);var t=_e(n);function n(e){var r,o=e.implicitModelName;return C()(this,n),(r=t.call(this)).HighlightRules=Q(o),r.completer=ve(o),r.snippedIdField=null,r}return O()(n)}(u().require("ace/mode/text").Mode),Me=n(85893),$e=$.ZP.div.withConfig({displayName:"StyledEditor"})(be||(be=c()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),je={groovy:function(){return new l.Mode},html:function(){return new f.Mode},xml:function(){return new g.Mode},properties:function(){return new h.Mode},json:function(){return new p.Mode},htmlmixed:function(){return new ye},freemarkermixed:function(){return new ye},ftl:function(){return new ye},tql:function(e){return new Re(e)},less:function(){return new d.Mode},drools:function(){return new s.Mode},text:function(){return new m.Mode}},qe=function(e,t){var n=t.mode,r=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return R()(e)?Promise.resolve(e):_()(e)?q("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(B).then((function(e){return k()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return k()(je,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(t){var n=o()(t,2),r=n[0],a=n[1];e.setOption(r,a)})),e.renderer.setShowGutter(a),e.resize()};const Be=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,a=e.onChange,c=e.showGutter,i=void 0===c||c,s=e.editorOptions,l=void 0===s?{}:s,f=e.implicitModel,p=e.autoFocusOnMount,d=void 0!==p&&p,h=(0,M.useRef)(null),m=(0,M.useRef)(null),g=(0,M.useMemo)((function(){return{mode:t,theme:r,showGutter:i,editorOptions:l,implicitModel:f,autoFocusOnMount:d}}),[t,r,i,l,f,d]);return(0,M.useEffect)((function(){var e=u().edit(h.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),qe(e,g),m.current=e,g.autoFocusOnMount&&m.current.focus(),function(){return e.destroy()}}),[]),(0,M.useEffect)((function(){m.current&&qe(m.current,g)}),[g]),(0,M.useEffect)((function(){m.current&&!w()(o)&&o!==m.current.getValue()&&m.current.getSession().setValue(o)}),[o]),(0,Me.jsx)($e,{ref:h})}}}]);
@@ -0,0 +1,6 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[802],{78633:(e,t,n)=>{n.r(t),n.d(t,{default:()=>W});var r,o=n(59713),a=n.n(o),i=n(1024);function c(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function d(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}function l(e,t){return"CKEDITOR"in window?Promise.resolve(CKEDITOR):"string"!=typeof e||e.length<1?Promise.reject(new TypeError("CKEditor URL must be a non-empty string.")):(r||(r=l.scriptLoader(e).then((function(e){return t&&t(e),e}))),r)}l.scriptLoader=function(e){return new Promise((function(t,n){
2
+ /**
3
+ * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
+ * For licensing, see LICENSE.md.
5
+ */
6
+ var o,a,i,l,u;o=e,a=function(e){return r=void 0,e?n(e):window.CKEDITOR?void t(CKEDITOR):n(new Error("Script loaded from editorUrl doesn't provide CKEDITOR namespace."))},l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=o,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?c:d)(u,i),u.onload||c(u,i),l.appendChild(u)}))};var u=n(45697),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var p=["activeEnterModeChange","activeFilterChange","afterCommandExec","afterInsertHtml","afterPaste","afterPasteFromWord","afterSetData","afterUndoImage","ariaEditorHelpLabel","ariaWidget","autogrow","beforeCommandExec","beforeDestroy","beforeGetData","beforeModeUnload","beforeSetMode","beforeUndoImage","blur","change","configLoaded","contentDirChanged","contentDom","contentDomInvalidated","contentDomUnload","contentPreview","customConfigLoaded","dataFiltered","dataReady","destroy","dialogHide","dialogShow","dirChanged","doubleclick","dragend","dragstart","drop","elementsPathUpdate","exportPdf","fileUploadRequest","fileUploadResponse","floatingSpaceLayout","focus","getData","getSnapshot","insertElement","insertHtml","insertText","instanceReady","key","langLoaded","loadSnapshot","loaded","lockSnapshot","maximize","menuShow","mode","notificationHide","notificationShow","notificationUpdate","paste","pasteFromWord","pluginsLoaded","readOnly","removeFormatCleanup","required","resize","save","saveSnapshot","selectionChange","setData","stylesRemove","stylesSet","template","toDataFormat","toHtml","uiSpace","unlockSnapshot","updateSnapshot","widgetDefinition"],y=["beforeLoad","namespaceLoaded"],g=f(f([],p,!0),y,!0),m="__CKE__";function v(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function h(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var b=f(f([],p,!0),y,!0).reduce((function(e,t){var n;return s(s({},e),((n={})[t]=function(e){return"".concat(m).concat(e)}(t),n))}),{});function O(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function S(e,t,n){var r={display:"none",visibility:"hidden"};return"classic"===e?r:"ready"===t?null!=n?n:void 0:r}function k(e){var t=e.debug,n=e.editor,r=e.evtName,o=e.handler,a=e.listenerData,i=e.priority,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=o;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:r,handlerId:c,data:e.data,listenerData:e.listenerData}),o(e)}),t&&console.log({operation:"register",editor:n.name,evtName:r,handlerId:c}),n.on(r,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:r,handlerId:c}),n.removeListener(r,d)}}var C=i.useEffect,w=i.useReducer,D=i.useRef,E={};function j(e,t){switch(t.type){case"init":return s(s({},e),{hookStatus:"init"});case"loading":return s(s({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return s(s({},e),{hookStatus:"loaded"});case"ready":return s(s({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=i.useEffect,P=i.useRef,x=i.useState;function U(e){var t=e.config,n=void 0===t?{}:t,r=e.debug,o=e.editorUrl,a=e.initData,c=e.name,d=e.readOnly,u=e.style,s=e.type,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),p=x(null),U=p[0],R=p[1],T=P(f);n&&"boolean"==typeof d&&(n.readOnly=d);var I=function(e){var t=e.config,n=e.debug,r=e.dispatchEvent,o=e.subscribeTo,a=void 0===o?g:o,i=e.editorUrl,c=e.element,d=e.initContent,u=e.type,s=void 0===u?"classic":u,f=D(i||"https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js"),p=D(null!=a?a:g),v=D(n),h=D(r),O=D(d),S=D(t||E),L=D(s),P=w(j,{editor:void 0,hookStatus:"init"}),x=P[0],U=x.editor,R=x.hookStatus,T=P[1];return C((function(){return c&&!U&&(T({type:"loading"}),l(f.current,(function(e){var t;-1!==p.current.indexOf("namespaceLoaded")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===L.current,r=S.current.readOnly;-1!==p.current.indexOf("beforeLoad")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.beforeLoad,payload:e}));var o=e[n?"inline":"replace"](c,S.current);p.current.filter((function(e){return-1===y.indexOf(e)})).forEach((function(e){k({debug:v.current,editor:o,evtName:e,handler:function(t){var n;null===(n=h.current)||void 0===n||n.call(h,{type:"".concat(m).concat(e),payload:t})}})})),k({debug:v.current,editor:o,evtName:"loaded",handler:function(){T({type:"loaded"})},priority:-1}),k({debug:v.current,editor:o,evtName:"instanceReady",handler:function(e){var t=e.editor;T({type:"ready"}),n&&!r&&t.setReadOnly(!1),O.current&&t.setData(O.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),k({debug:v.current,editor:o,evtName:"destroy",handler:function(){T({type:"destroyed"})},priority:-1}),T({type:"unloaded",payload:o})})).catch((function(e){console.error(e),T({type:"error"})}))),function(){U&&U.destroy()}}),[U,c]),{editor:U,status:null==U?void 0:U.status,error:"error"===R,loading:"loading"===R}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,r=v(t.substr(m.length)),o=T.current[r];o&&o(n)},debug:r,editorUrl:o,element:U,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(f).filter((function(e){return 0===e.indexOf("on")})).map(h),type:s}),F=I.editor,_=I.status;return L((function(){var e="inline"!==s&&F&&("loaded"===_||"ready"===_);return u&&e&&F.container.setStyles(u),function(){u&&e&&Object.keys(u).map(O).forEach((function(e){F.container.removeStyle(e)}))}}),[F,_,u,s]),L((function(){F&&"ready"===_&&"boolean"==typeof d&&F.setReadOnly(d)}),[F,_,d]),i.createElement("div",{id:null!=c?c:void 0,ref:R,style:S(null!=s?s:"classic",_,u)},"string"==typeof a?null:a)}var R=s({config:u.object,debug:u.bool,editorUrl:u.string,initData:u.node,name:u.string,readOnly:u.bool,style:u.object,type:u.oneOf(["classic","inline"])},g.reduce((function(e,t){var n;return s(s({},e),((n={})[v(t)]=u.func,n))}),{}));U.propTypes=R;var T,I=n(86896),F=n(28655),_=n.n(F),N=n(38205),H=n(56822),K=N.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(T||(T=_()(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,H.L)(e,"ckeditor")})),z=n(85893);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var B=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;case"de-CH":return"de-ch";case"de-DE":default:return"de"}},M=function(e){var t=e.value,r=e.onChange,o=e.contentLang,i=e.ckEditorConfig,c=(0,I.Z)().locale,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:B(c),contentsLanguage:o,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror"],removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0}},i);return(0,z.jsx)(K,{children:(0,z.jsx)(U,{config:d,initData:t,type:"classic",onChange:function(e){var t=e.editor.getData();r(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();r(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor.js")})})};M.defaultProps={value:"",contentLang:"de"};const W=M}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[698],{48078:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});var o=e(25631),a=e(41609),r=e.n(a),c=e(41291),l=e(85893);const s=function(n){var t=n.value,e=n.breakWords,a=(0,o.S)(t),s=r()(a)?t:a.formatInternational();return(0,l.jsx)(c.Z,{href:"tel:".concat(t),target:"_blank",onClick:function(n){return n.stopPropagation()},label:s,breakWords:e})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[614],{59178:(a,i,l)=>{l.r(i),l.d(i,{Icon:()=>R,default:()=>Y});var e,r=l(59713),f=l.n(r),t=l(45697),o=l.n(t),c=l(6479),n=l.n(c),d=l(23636),s=l(93024),b=l(65735),p=l(73582),u=l(67814),g=l(27361),h=l.n(g),w=l(28655),v=l.n(w),y=l(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(e||(e=v()([""]))),m=l(85893),k=["icon","style","hasFixedWidth"];function O(a,i){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable}))),l.push.apply(l,e)}return l}function j(a){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?O(Object(l),!0).forEach((function(i){f()(a,i,l[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):O(Object(l)).forEach((function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(l,i))}))}return a}d.library.add(p.IJ7,b.IJ7,b.C65,b.kJo,b._tD,b.A35,b.mTx,b.ptq,b.g4A,b.r8p,b.Pk,b.g9M,b.Tab,p.Tab,b.NBC,b.eFW,b.acZ,b.u2A,b.Mdf,b.gMD,b.cwv,b.w49,b.fUD,b.icc,b.ca9,b.Vmj,b.gSj,b.WFE,b.hQn,b.LEp,b.WV2,b.FU$,b.diR,p.diR,b.f8k,p.f8k,s.xYR,s.neY,s.AYu,s.kBj,s.hVS,s.dc_,s.Av$,b.xiG,b.gJF,b.j1w,b.WKO,b.wn1,b.b7W,b.YHc,b.ZC5,b.UO1,p.Fyj,b.Qj4,b.FL8,b.foy,b.u9C,b.Fuz,b.iV1,b.Kl4,b.nYk,b.sqG,b.RLE,b.XAH,b.Zrf,b.jMV,b.pL1,b.g6h,b.SJY,b.qmU,b.nek,b.Qy6,b.lH_,p.pL1,b.hVM,b.yOf,b.Xgz,b.Mzg,b.r6l,b.IwR,b.aJJ,p.Alc,b.dLO,b.ntl,b.Hw7,b.FYs,b.$36,b.fT7,b.ioP,b.Cw9,b.Ry6,b.C3l,b.a1i,b.jGC,b.IeV,b.A8,b.hG5,b.FVb,b.AxY,b.mAj,b.hGM,b.UkD,b.BDt,b.QzV,b.py1,b.cf$,b.byT,b.dT$,b.G_j,b.A4,b.ar8,b.nNP,b.yGT,b.ILF,b.rux,b.qbi);var x=function(a){var i=a.icon,l=a.style,e=a.hasFixedWidth,r=n()(a,k),f=i.includes(",")?i.replace(/\s+/,"").split(","):i,t=j({},h()(l,"color")&&{color:l.color}),o=Array.isArray(f)?f[1]:f;return(0,m.jsx)(y,{children:(0,m.jsx)(u.G,j(j(j({icon:f,style:l},t),{},{fixedWidth:e},r),{},{"data-testid":"icon-".concat(o)}))})};x.defaultProps={hasFixedWidth:!0};const P=x,D=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"eye":{"id":"fal, eye","lib":"fa"},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"}}');var q,A,F=["style"],S=["style"],C=["icon"];function z(a,i){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable}))),l.push.apply(l,e)}return l}function W(a){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?z(Object(l),!0).forEach((function(i){f()(a,i,l[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):z(Object(l)).forEach((function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(l,i))}))}return a}var E={logo:function(a){var i=a.style,l=n()(a,F);return(0,m.jsx)("svg",W(W(W({height:h()(i,"fontSize",20)},i),l),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:q||(q=(0,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(a){var i=a.style,l=n()(a,S);return(0,m.jsx)("svg",W(W(W({height:h()(i,"fontSize",20)},i),l),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:A||(A=(0,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},T=function(a){var i=a.icon,l=n()(a,C);return E[i](l)};T.propTypes={icon:o().string.isRequired};const V=T;function G(a,i){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable}))),l.push.apply(l,e)}return l}function J(a){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?G(Object(l),!0).forEach((function(i){f()(a,i,l[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):G(Object(l)).forEach((function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(l,i))}))}return a}var M={fa:function(a,i){return(0,m.jsx)(P,J(J({},i),{},{icon:a.id}))},toc:function(a,i){return(0,m.jsx)(V,J(J({},i),{},{icon:a.id,"data-testid":"icon-".concat(a.id)}))}},R=function(a){var i=D[a.icon];if(!i)return null;var l=M[i.lib];return l?l(i,a):null};R.propTypes={icon:o().string.isRequired,style:o().objectOf(o().string)};const Y=R}}]);