tocco-devcon 1.0.99 → 1.0.100

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,6 @@
1
+ 1.0.100
2
+ - enhance external events
3
+
1
4
  1.0.99
2
5
  - fix object cache
3
6
 
@@ -1 +1 @@
1
- (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>_r});var r,o=t(56746),l=t(15516),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(59713),f=t.n(d),h=t(78295),p=t(70696),g=t(10535),b=t(78958),m=t(319),v=t.n(m),y=t(28655),x=t.n(y),w=t(38205),k=t(37188);const j=(0,w.ZP)(k.hc).withConfig({displayName:"StyledSignalList"})(r||(r=x()(["\n && {\n list-style-type: none;\n }\n"])));var O=t(85893);const P=function(e){return(0,O.jsx)(j,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var Z,S,C=t(88162),_=t(27361),R=t.n(_),E=t(88601),D=t(58664),N=(Z={},f()(Z,b.Z.condition.BASE,"inherit"),f()(Z,b.Z.condition.DANGER,E.Z.color("signal.danger.text")),f()(Z,b.Z.condition.PRIMARY,(function(e){return(0,D.HO)(R()(e.theme,"colors.primary"),1)})),f()(Z,b.Z.condition.SUCCESS,E.Z.color("signal.success.text")),f()(Z,b.Z.condition.WARNING,E.Z.color("signal.warning.text")),f()(Z,b.Z.condition.INFO,E.Z.color("signal.info.text")),Z),T=(0,w.ZP)(k.EF).withConfig({displayName:"StyledSignalListItem"})(S||(S=x()(["\n && {\n color: ",";\n position: relative;\n\n > i,\n > svg {\n position: absolute;\n left: -1.6rem;\n text-align: left;\n }\n\n > svg {\n top: 0.2em;\n }\n }\n"])),(function(e){return function(e){return N[e.condition]||"inherit"}(e)}));T.propTypes={condition:b.Z.conditionPropTypes(N)};const L=T;var A,I,M=(A={},f()(A,b.Z.condition.BASE,!1),f()(A,b.Z.condition.PRIMARY,!1),f()(A,b.Z.condition.DANGER,"times"),f()(A,b.Z.condition.SUCCESS,"check"),f()(A,b.Z.condition.WARNING,"exclamation-triangle"),f()(A,b.Z.condition.INFO,"info"),A),q=function(e){var n=M[e.condition];return n?(0,O.jsx)(C.Z,{icon:n,position:b.Z.position.SOLE}):I||(I=(0,O.jsx)("i",{children:"•"}))},F=function(e){return(0,O.jsxs)(L,{condition:e.condition,children:[q(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};F.defaultProps={condition:b.Z.condition.BASE};const V={List:P,Item:F};const H=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,v()(e.error[t]))})),(0,O.jsx)(V.List,{children:n.map((function(e,n){return(0,O.jsx)(V.Item,{condition:"danger",label:e},n)}))})};var z,B,W,$,U,G,Y,K=t(79686),J=t(7281),Q=t(30759),X=t(40953),ee="1.1px",ne=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},te=w.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(z||(z=x()(["\n width: calc(100% - ",");\n"])),J.Z.space(.5)),re=w.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(B||(B=x()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Q.Z)({fontWeight:function(e){return e.dirty?E.Z.fontWeight("bold"):E.Z.fontWeight("regular")},lineHeight:E.Z.lineHeight("dense")}),E.Z.color("paper"),(function(e){return X.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,l=n.hasValue,o?"signal":l?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,o,l}),J.Z.space(-2),J.Z.font(0),J.Z.space(-2),(function(e){return e.immutable&&"0"}),J.Z.font(0),(function(e){return ne(e)})),oe=w.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(W||(W=x()(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),ee,(function(e){return X.m[(n=e,t=n.immutable,r=n.isDisplay,o=n.signal,n.isDirty?"isDirty":r||t?"transparent":o?"signal":"shade1")](e);var n,t,r,o}),J.Z.space(-1),J.Z.space(-1),J.Z.space(-2),J.Z.space(-1),(function(e){return e.isDisplay&&J.Z.space(-1)}),(function(e){return e.immutable&&J.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&J.Z.space(-1)}),(function(e){return!e.immutable&&(0,D.kk)(e)}),(function(e){return ne(e)}),(function(e){return e.isDisplay&&"0"}),K.j,(function(e){return e.isDisplay&&J.Z.space(-1)})),le=w.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})($||($=x()(["\n &&& {\n ","\n }\n"])),(0,Q.Z)({fontSize:J.Z.font(-1)})),ae=w.ZP.div.withConfig({displayName:"StyledStatedValueError"})(U||(U=x()([""]))),ie=w.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(G||(G=x()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n\n "," {\n margin-left: -",";\n }\n }\n }\n"])),J.Z.space(-1),J.Z.space(-1.5),oe,le,ae,J.Z.space(-2),le,ae,J.Z.space(-1),ee,k.hc,J.Z.space(-2));w.ZP.input.withConfig({displayName:"StyledInput"})(Y||(Y=x()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"not-allowed":"auto"}),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"#545454":"#000"}));function ce(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 se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ue=function(e){var n,t,r,o=e.children,l=e.description,a=e.dirty,i=e.isDisplay,c=e.error,s=e.hasValue,u=e.id,d=e.label,f=e.mandatory,m=e.mandatoryTitle,v=e.immutable,y=e.touched,x=e.signal,w=!v&&y&&c&&Object.keys(c).length>0,k="".concat(p.Z.adjustedHTMLString(d)).concat(f&&m?", ".concat(m):""),j=x||function(e,n,t,r){return n?b.Z.condition.DANGER:e?b.Z.condition.INFO:t&&!r?b.Z.condition.WARNING:void 0}(a,w,f,s),P={__html:"".concat(g.Z.sanitizeHtml(d)).concat(f?" *":"")},Z=!i&&!v&&{htmlFor:u};return(0,O.jsx)(h.Z,{children:function(e){var u=e.getRef;return(0,O.jsxs)(ie,{ref:u,children:[(0,O.jsxs)(oe,{hasValue:s,immutable:v,isDisplay:i,signal:j,children:[o,d&&(0,O.jsx)(te,{children:(0,O.jsx)(re,se(se({},Z),{},{hasValue:s,dirty:a,title:k,immutable:v,isDisplay:i,signal:j,children:n||(n=(0,O.jsx)("span",{dangerouslySetInnerHTML:P}))}))})]}),l&&(t||(t=(0,O.jsx)(le,{children:l}))),w&&(r||(r=(0,O.jsx)(ae,{children:(0,O.jsx)(H,{error:c})})))]})}})};var de,fe,he=t(61684),pe=t(65035),ge=t(51032),be=w.ZP.input.withConfig({displayName:"StyledInput"})(de||(de=x()(["\n && {\n ","\n }\n"])),ge.k9),me=w.ZP.div.withConfig({displayName:"StyledInputWrapper"})(fe||(fe=x()(["\n && {\n ","\n }\n"])),ge.yP);const ve=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,o=e.setFragmentSelected;return(0,O.jsx)(O.Fragment,{children:n.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){o(n,e.target.checked)}),disabled:r}),(0,O.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ye=function(e){var n=e.version,t=e.modules,r=e.selectedModules,o=e.fragments,l=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,h=e.setSelectedModules,p=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===o.length&&f()}),[]);return(0,O.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,O.jsx)(ue,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,O.jsx)(he.Z,{options:t,value:r,onChange:h,isMulti:!0,immutable:c})}),(0,O.jsx)(ue,{label:"Fragments",fixLabel:!0,children:(0,O.jsx)(ve,{fragments:o,selectedFragments:l,disabled:c,setFragmentSelected:p})}),(0,O.jsx)(ue,{label:"Version",hasValue:n.length>0,children:(0,O.jsx)(me,{children:(0,O.jsx)(be,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,O.jsx)(ue,{label:"Ignore errors",fixLabel:!0,children:(0,O.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,O.jsx)(pe.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var xe={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const we=(0,i.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}}),xe)(ye);const ke=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,l=e.setLanguage;return(0,O.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,O.jsx)(ue,{label:"Language",hasValue:n.length>0,children:(0,O.jsx)(me,{children:(0,O.jsx)(be,{value:n,onChange:function(e){l(e.target.value)},disabled:r})})}),(0,O.jsx)(pe.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var je={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const Oe=(0,i.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}}),je)(ke);var Pe,Ze,Se,Ce;const _e=function(){return(0,O.jsxs)(O.Fragment,{children:[Pe||(Pe=(0,O.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Ze||(Ze=(0,O.jsx)(we,{})),Se||(Se=(0,O.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Ce||(Ce=(0,O.jsx)(Oe,{}))]})};var Re,Ee,De,Ne,Te,Le,Ae,Ie=t(63038),Me=t.n(Ie),qe={ERROR:"#a00"},Fe=w.ZP.div.withConfig({displayName:"StyledLogTable"})(Re||(Re=x()(["\n display: grid;\n gap: 1px;\n"]))),Ve=w.ZP.div.withConfig({displayName:"StyledLogEntry"})(Ee||(Ee=x()(["\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(qe[e.level]||"#ddd",";")})),He=w.ZP.span.withConfig({displayName:"StyledMessage"})(De||(De=x()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Q.Z)()),ze=w.ZP.span.withConfig({displayName:"StyledTime"})(Ne||(Ne=x()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),Be=w.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Te||(Te=x()(["\n margin-top: 1em;\n"]))),We=w.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Le||(Le=x()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),$e=w.ZP.div.withConfig({displayName:"StyledStackTrace"})(Ae||(Ae=x()(["\n && {\n ","\n }\n"])),(0,Q.Z)()),Ue=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ge=function(e){var n=e.exception;return(0,O.jsxs)(Be,{children:[(0,O.jsx)(We,{children:n.detailMessage}),(0,O.jsx)($e,{children:n.stackTrace.map((function(e,n){return(0,O.jsx)("div",{children:Ue(e)},n)}))})]})};const Ye=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Me()(t,2),o=r[0],l=r[1];return(0,O.jsxs)(Ve,{level:n.level,children:[(0,O.jsx)(He,{onClick:function(){n.exception&&l(!o)},expandable:!!n.exception,children:n.message}),(0,O.jsx)(ze,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,O.jsx)(Ge,{exception:n.exception})]})};var Ke;const Je=function(e){var n=e.entries;return(0,O.jsx)(Fe,{children:n.length>0?n.map((function(e){return(0,O.jsx)(Ye,{entry:e},e.key)})):Ke||(Ke=(0,O.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Qe=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Je);var Xe,en;const nn=function(){return(0,O.jsxs)(O.Fragment,{children:[Xe||(Xe=(0,O.jsx)(a.ZP.H1,{children:"Log"})),en||(en=(0,O.jsx)(Qe,{}))]})};var tn,rn,on=t(49478),ln=w.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(tn||(tn=x()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),an=w.ZP.div.withConfig({displayName:"StyledGroupHeading"})(rn||(rn=x()(["\n margin-bottom: 1em;\n"])));function cn(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 sn(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 sn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function sn(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 un=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,l=function(e,n){var t,r=cn(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!n.has(o.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,O.jsxs)(ln,{children:[(0,O.jsxs)(an,{children:[(0,O.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:l,onChange:function(e){o(t.map((function(e){return e.id})),e.target.checked)}}),(0,O.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,O.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){o([n],e.target.checked)})}),(0,O.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const dn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,l=e.generateChangelog;return(0,O.jsxs)("div",{children:[Object.keys(n).length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(pe.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,O.jsxs)(pe.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,O.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,O.jsx)(un,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var fn={setSelected:on.Pq,generateSql:on.$i,generateChangelog:on._w};const hn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),fn)(dn);var pn,gn,bn,mn=w.ZP.div.withConfig({displayName:"StyledProgressBar"})(pn||(pn=x()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),vn=w.ZP.div.withConfig({displayName:"StyledInnerProgress"})(gn||(gn=x()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),yn=w.ZP.div.withConfig({displayName:"StyledProgressText"})(bn||(bn=x()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),xn=function(e){return e.result?e.result:e.running?e.total?"".concat(wn(e),"%"):"Preparing...":"Not started"},wn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const kn=function(e){var n=e.state;return(0,O.jsxs)(mn,{children:[(0,O.jsx)(vn,{percentage:wn(n)}),(0,O.jsx)(yn,{children:xn(n)})]})};const jn=function(e){var n=e.state,t=e.startValidation;return(0,O.jsxs)("div",{children:[(0,O.jsx)(pe.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,O.jsx)(kn,{state:n})]})};var On={startValidation:on.YV};const Pn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),On)(jn);var Zn,Sn,Cn;const _n=function(){return(0,O.jsxs)(O.Fragment,{children:[Zn||(Zn=(0,O.jsx)(a.ZP.H1,{children:"Model Validation"})),Sn||(Sn=(0,O.jsx)(Pn,{})),Cn||(Cn=(0,O.jsx)(hn,{}))]})};var Rn=t(22541),En=t(57557),Dn=t.n(En),Nn=t(2091),Tn=t(93174),Ln=t(38431),An=t(14372),In=t(69119),Mn=t(77349),qn=t(49546);function Fn(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 Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn="yyyy-MM-dd",zn=function(e){return(0,Ln.Z)(e,Hn)?(0,An.default)(e,Hn,new Date):(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,In.default)(new Date(e)):null};const Bn={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?zn(e).toISOString():null,to:e?(0,Mn.default)(zn(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,qn.default)(new Date(e.from),Hn):e&&e.to?(0,qn.default)(new Date(e.to),Hn):null},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Wn,$n,Un,Gn,Yn,Kn=w.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Wn||(Wn=x()(["\n font-size: ",";\n"])),J.Z.font(-2.7)),Jn=w.ZP.div.withConfig({displayName:"StyledRange"})($n||($n=x()(["\n display: flex;\n"]))),Qn=w.ZP.div.withConfig({displayName:"StyledInput"})(Un||(Un=x()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Xn=w.ZP.div.withConfig({displayName:"StyledExtender"})(Gn||(Gn=x()(["\n display: flex;\n align-items: center;\n"])));function et(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 nt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?et(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var tt="expanded_initial",rt="expanded",ot="collapsed";const lt=function(e){var n,t,r=e.value,o=e.events,l=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded?tt:ot,f=(0,s.useState)(d),h=Me()(f,2),p=h[0],g=h[1],b=Bn[a];(0,s.useEffect)((function(){var e,n=p===tt&&r&&!r.isRangeValue,t=p===rt&&!(null!=r&&r.isRangeValue),l=p===ot&&(null==r?void 0:r.isRangeValue);n?o.onChange({from:r,to:void 0,isRangeValue:!0}):t?o.onChange((e=r,null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0})):l&&o.onChange(function(e){return null!=b&&b.fromRange?b.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r))}),[p,r,o,b]);var m=(null==r?void 0:r.isRangeValue)||!1,v=(0,s.useRef)(r);v.current=r;var y,x,w=(0,s.useMemo)((function(){return nt(nt({},o),{},{onChange:o.onChange})}),[o]),k={onChange:function(e){o.onChange(nt(nt({},v.current),{},{to:e}))}},j={onChange:function(e){o.onChange(nt(nt({},v.current),{},{from:e}))}},P=(null==b||null===(n=b.icons)||void 0===n?void 0:n.range)||"chevron-down",Z=(null==b||null===(t=b.icons)||void 0===t?void 0:t.single)||"chevron-left",S=(null==b?void 0:b.type)||a,_=(0,O.jsx)(Tn.Z,nt(nt({type:S},Dn()(e,["type"])),{},{events:w})),R=(0,O.jsxs)(Qn,{children:[(0,O.jsx)(Tn.Z,nt(nt({},e),{},{options:(y=i,x=null==r?void 0:r.to,null!=b&&b.getFromOptions?b.getFromOptions(y,x):y),value:(null==r?void 0:r.from)||null,events:j,placeholder:c})),Yn||(Yn=(0,O.jsx)(Kn,{children:(0,O.jsx)(C.Z,{icon:"horizontal-rule"})})),(0,O.jsx)(Tn.Z,nt(nt({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,null==r?void 0:r.from),value:(null==r?void 0:r.to)||null,events:k,placeholder:u}))]});return(0,O.jsxs)(Jn,{children:[m?R:_,(0,O.jsx)(Xn,{children:(0,O.jsx)(Nn.Z,{disabled:l,icon:m?Z:P,onClick:function(){g(m?ot:rt)}})})]})};const at=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,O.jsxs)("div",{children:[(0,O.jsx)(ue,{label:"Active",fixLabel:!0,children:(0,O.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,O.jsx)(ue,{label:"Elapsed",hasValue:!!t,children:(0,O.jsx)(lt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var it={setActive:Rn.Iv,setElapsed:Rn.uI};const ct=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),it)(at);var st,ut,dt,ft,ht,pt,gt,bt={ERROR:"#a00"},mt=w.ZP.div.withConfig({displayName:"StyledLogTable"})(st||(st=x()(["\n display: grid;\n gap: 1px;\n"]))),vt=w.ZP.div.withConfig({displayName:"StyledLogEntry"})(ut||(ut=x()(["\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(bt[e.level]||"#ddd",";")})),yt=w.ZP.span.withConfig({displayName:"StyledStatementHeader"})(dt||(dt=x()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Q.Z)()),xt=w.ZP.span.withConfig({displayName:"StyledStatement"})(ft||(ft=x()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),wt=w.ZP.span.withConfig({displayName:"StyledTime"})(ht||(ht=x()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),kt=w.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(pt||(pt=x()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),jt=w.ZP.span.withConfig({displayName:"StyledElapsed"})(gt||(gt=x()(["\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 Ot=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Me()(t,2),o=r[0],l=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,O.jsxs)(vt,{children:[(0,O.jsx)(yt,{expandable:a,onClick:function(){a&&l(!o)},children:i}),o&&(0,O.jsx)(xt,{children:n.sql}),(0,O.jsx)(wt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,O.jsx)(kt,{children:(0,O.jsxs)(jt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var Pt;const Zt=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,O.jsx)(mt,{children:n.length>0?n.map((function(e){return(0,O.jsx)(Ot,{entry:e},e.key)})):Pt||(Pt=(0,O.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const St=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Zt);var Ct,_t,Rt;const Et=function(){return(0,O.jsxs)(O.Fragment,{children:[Ct||(Ct=(0,O.jsx)(a.ZP.H1,{children:"SQL Log"})),_t||(_t=(0,O.jsx)(ct,{})),Rt||(Rt=(0,O.jsx)(St,{}))]})};function Dt(e,n){return Dt=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Dt(e,n)}function Nt(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Dt(e,n)}function Tt(){return Tt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tt.apply(this,arguments)}function Lt(e){return"/"===e.charAt(0)}function At(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}const It=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],l=e&&Lt(e),a=n&&Lt(n),i=l||a;if(e&&Lt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];t="."===c||".."===c||""===c}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?At(o,u):".."===d?(At(o,u),s++):s&&(At(o,u),s--)}if(!i)for(;s--;s)o.unshift("..");!i||""===o[0]||o[0]&&Lt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Mt=t(2177);function qt(e){return"/"===e.charAt(0)?e:"/"+e}function Ft(e){return"/"===e.charAt(0)?e.substr(1):e}function Vt(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function Ht(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function zt(e){var n=e.pathname,t=e.search,r=e.hash,o=n||"/";return t&&"?"!==t&&(o+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Bt(e,n,t,r){var o;"string"==typeof e?(o=function(e){var n=e||"/",t="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var l=n.indexOf("?");return-1!==l&&(t=n.substr(l),n=n.substr(0,l)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Tt({},e)).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!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return t&&(o.key=t),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=It(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Wt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,o){if(null!=e){var l="function"==typeof e?e(n,t):e;"string"==typeof l?"function"==typeof r?r(l,o):o(!0):o(!1!==l)}else o(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var $t=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ut(e,n){n(window.confirm(e))}var Gt="popstate",Yt="hashchange";function Kt(){try{return window.history.state||{}}catch(e){return{}}}function Jt(e){void 0===e&&(e={}),$t||(0,Mt.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e,a=l.forceRefresh,i=void 0!==a&&a,c=l.getUserConfirmation,s=void 0===c?Ut:c,u=l.keyLength,d=void 0===u?6:u,f=e.basename?Ht(qt(e.basename)):"";function h(e){var n=e||{},t=n.key,r=n.state,o=window.location,l=o.pathname+o.search+o.hash;return f&&(l=Vt(l,f)),Bt(l,r,t)}function p(){return Math.random().toString(36).substr(2,d)}var g=Wt();function b(e){Tt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(h(e.state))}function v(){x(h(Kt()))}var y=!1;function x(e){if(y)y=!1,b();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?b({action:"POP",location:e}):function(e){var n=C.location,t=k.indexOf(n.key);-1===t&&(t=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,O(o))}(e)}))}}var w=h(Kt()),k=[w.key];function j(e){return f+zt(e)}function O(e){t.go(e)}var P=0;function Z(e){1===(P+=e)&&1===e?(window.addEventListener(Gt,m),o&&window.addEventListener(Yt,v)):0===P&&(window.removeEventListener(Gt,m),o&&window.removeEventListener(Yt,v))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:j,push:function(e,n){var o="PUSH",l=Bt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.pushState({key:a,state:c},null,n),i)window.location.href=n;else{var s=k.indexOf(C.location.key),u=k.slice(0,s+1);u.push(l.key),k=u,b({action:o,location:l})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",l=Bt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.replaceState({key:a,state:c},null,n),i)window.location.replace(n);else{var s=k.indexOf(C.location.key);-1!==s&&(k[s]=l.key),b({action:o,location:l})}else window.location.replace(n)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(Z(1),S=!0),function(){return S&&(S=!1,Z(-1)),n()}},listen:function(e){var n=g.appendListener(e);return Z(1),function(){Z(-1),n()}}};return C}var Qt="hashchange",Xt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Ft(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Ft,decodePath:qt},slash:{encodePath:qt,decodePath:qt}};function er(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function nr(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function tr(e){window.location.replace(er(window.location.href)+"#"+e)}function rr(e){void 0===e&&(e={}),$t||(0,Mt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Ut:r,l=t.hashType,a=void 0===l?"slash":l,i=e.basename?Ht(qt(e.basename)):"",c=Xt[a],s=c.encodePath,u=c.decodePath;function d(){var e=u(nr());return i&&(e=Vt(e,i)),Bt(e)}var f=Wt();function h(e){Tt(P,e),P.length=n.length,f.notifyListeners(P.location,P.action)}var p=!1,g=null;function b(){var e,n,t=nr(),r=s(t);if(t!==r)tr(r);else{var l=d(),a=P.location;if(!p&&(n=l,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===zt(l))return;g=null,function(e){if(p)p=!1,h();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?h({action:n,location:e}):function(e){var n=P.location,t=x.lastIndexOf(zt(n));-1===t&&(t=0);var r=x.lastIndexOf(zt(e));-1===r&&(r=0);var o=t-r;o&&(p=!0,w(o))}(e)}))}}(l)}}var m=nr(),v=s(m);m!==v&&tr(v);var y=d(),x=[zt(y)];function w(e){n.go(e)}var k=0;function j(e){1===(k+=e)&&1===e?window.addEventListener(Qt,b):0===k&&window.removeEventListener(Qt,b)}var O=!1;var P={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=er(window.location.href)),t+"#"+s(i+zt(e))},push:function(e,n){var t="PUSH",r=Bt(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=zt(r),o=s(i+n);if(nr()!==o){g=n,function(e){window.location.hash=e}(o);var l=x.lastIndexOf(zt(P.location)),a=x.slice(0,l+1);a.push(n),x=a,h({action:t,location:r})}else h()}}))},replace:function(e,n){var t="REPLACE",r=Bt(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=zt(r),o=s(i+n);nr()!==o&&(g=n,tr(o));var l=x.indexOf(zt(P.location));-1!==l&&(x[l]=n),h({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=f.setPrompt(e);return O||(j(1),O=!0),function(){return O&&(O=!1,j(-1)),n()}},listen:function(e){var n=f.appendListener(e);return j(1),function(){j(-1),n()}}};return P}t(94662);function or(e,n){if(null==e)return{};var t,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var lr=function(e,n){return"function"==typeof e?e(n):e},ar=function(e,n){return"string"==typeof e?Bt(e,null,null,n):e},ir=function(e){return e},cr=u().forwardRef;void 0===cr&&(cr=ir);var sr=cr((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,l=or(e,["innerRef","navigate","onClick"]),a=l.target,i=Tt({},l,{onClick:function(e){try{o&&o(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return i.ref=ir!==cr&&n||t,u().createElement("a",i)}));var ur=cr((function(e,n){var t=e.component,r=void 0===t?sr:t,l=e.replace,a=e.to,i=e.innerRef,c=or(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Mt.Z)(!1);var t=e.history,o=ar(lr(a,e.location),e.location),s=o?t.createHref(o):"",d=Tt({},c,{href:s,navigate:function(){var n=lr(a,e.location),r=zt(e.location)===zt(ar(n));(l||r?t.replace:t.push)(n)}});return ir!==cr?d.ref=n||i:d.innerRef=i,u().createElement(r,d)}))})),dr=function(e){return e},fr=u().forwardRef;void 0===fr&&(fr=dr);fr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,l=e.activeClassName,a=void 0===l?"active":l,i=e.activeStyle,c=e.className,s=e.exact,d=e.isActive,f=e.location,h=e.sensitive,p=e.strict,g=e.style,b=e.to,m=e.innerRef,v=or(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Mt.Z)(!1);var t=f||e.location,l=ar(lr(b,t),t),y=l.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:h,strict:p}):null,k=!!(d?d(w,t):w),j="function"==typeof c?c(k):c,O="function"==typeof g?g(k):g;k&&(j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(j,a),O=Tt({},O,i));var P=Tt({"aria-current":k&&r||null,className:j,style:O,to:l},v);return dr!==fr?P.ref=n||m:P.innerRef=m,u().createElement(ur,P)}))}));var hr,pr=t(24875);const gr=(0,w.ZP)(ur)(hr||(hr=x()(["\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,Q.Z)(),pr.FS.color("secondary"),pr.FS.color("text"),pr.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,D.HO)(R()(t,"colors.text"),2):(0,D.HO)(R()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var br,mr,vr,yr,xr,wr,kr,jr,Or,Pr,Zr=w.ZP.div.withConfig({displayName:"StyledDevCon"})(br||(br=x()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),E.Z.color("paper"),J.Z.space(0)),Sr=w.ZP.div.withConfig({displayName:"StyledNavigation"})(mr||(mr=x()(["\n display: flex;\n"]))),Cr=(0,w.ZP)(gr).withConfig({displayName:"StyledRouterLink"})(vr||(vr=x()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const _r=function(){return(0,O.jsxs)(Zr,{children:[yr||(yr=(0,O.jsx)(l.Z.Notifications,{})),xr||(xr=(0,O.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),wr||(wr=(0,O.jsxs)(Sr,{children:[(0,O.jsx)(Cr,{to:"/log",children:"Log"}),(0,O.jsx)(Cr,{to:"/modelvalidation",children:"Model Validation"}),(0,O.jsx)(Cr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,O.jsx)(Cr,{to:"/sqllog",children:"SQL Log"})]})),(0,O.jsxs)(o.rs,{children:[(0,O.jsx)(o.AW,{path:"/",exact:!0,render:function(){return(0,O.jsx)(o.l_,{to:{pathname:"/log"}})}}),(0,O.jsx)(o.AW,{path:"/log",exact:!0,render:function(){return kr||(kr=(0,O.jsx)(nn,{}))}}),(0,O.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return jr||(jr=(0,O.jsx)(_e,{}))}}),(0,O.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return Or||(Or=(0,O.jsx)(_n,{}))}}),(0,O.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return Pr||(Pr=(0,O.jsx)(Et,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>_e});var r=t(63038),o=t.n(r),l=t(28655),a=t.n(l),i=t(22085),c=t.n(i),s=(t(66245),t(56544)),u=t(7197),d=t(81272),f=t(82341),h=t(97595),p=t(66679),g=t(38794),b=t(12964),m=t(27361),v=t.n(m),y=t(14293),x=t.n(y),w=t(13218),k=t.n(w),j=t(47037),O=t.n(j),P=t(1024),Z=t(38205),S=(t(36976),t(92194),t(2565),t(8821),t(71083),t(42061),t(74576),t(82454),t(55872),t(58119),t(54159)),C=function(e){return S.Z.executeRequest("rest/".concat(e))},_=function(e){return 200===e.status?e.json():null},R=t(93913),E=t.n(R),D=t(34575),N=t.n(D),T=t(2205),L=t.n(T),A=t(78585),I=t.n(A),M=t(29754),q=t.n(M),F=(t(51500),t(1469)),V=t.n(F),H=t(30236),z=t.n(H),B=["==","!=","<=",">=","<",">","~="],W=["true","false","null"],$=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],U=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],G=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function Y(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}const K=function(e){return function(n){L()(r,n);var t=Y(r);function r(){var n;N()(this,r),n=t.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(G.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={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(B.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(U.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(W.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat($.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 n.$rules=z()(n.$rules,l,(function(e,n){return V()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return E()(r)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules)};function J(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var Q=function(e){L()(t,e);var n=J(t);function t(){var e;N()(this,t);return(e=n.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 E()(t)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules),X=function(e){L()(t,e);var n=J(t);function t(){var e;N()(this,t),e=n.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 l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(Q,"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 a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(K(),"tql-",a,["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=z()(e.$rules,i,(function(e,n){return V()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return E()(t)}(c().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ee=t(68551),ne=t.n(ee),te=t(319),re=t.n(te),oe=c().require("ace/token_iterator").TokenIterator,le=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ae=function(e,n){return le(e.getCurrentToken())===n},ie=function(e){if(ae(e,"model")&&e.stepBackward(),(ae(e,"field")||ae(e,"relation"))&&e.stepBackward(),!ae(e,"chaining"))return null;if(e.stepBackward(),ae(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},ce=function(e,n){for(;!ae(e,n);)if(!e.stepBackward())return!1;return!0},se=function(e,n){return ae(e,"rparen")?1:n>0&&ae(e,"lparen")?(e.stepBackward(),-1):0},ue=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&ae(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat(re()(fe(e))):[]}if(ae(e,"order_by")){if(ce(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=se(e,n),!e.stepBackward())return null}return null},de=function(e,n){for(var t=[],r=n(e);r;)Array.isArray(r)?r.forEach((function(e){return t.unshift(e)})):t.unshift(r),r=n(e);return t},fe=function(e){return de(e,ie)},he=function(e){return de(e,ue)},pe=1e3,ge=function(e,n,t){var r=function(e,n){if(n){var t=he(e());return{baseModel:n,modelScope:ne()(t).slice(0)}}var r=he(e()),o=ne()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,t),o=r.baseModel,l=r.modelScope;if(o){var a=fe(e()),i=[].concat(re()(l),re()(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=ne()(e),t=n[0],r=n.slice(1);return C(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(_).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat(re()(n.map((function(e){return{label:(n=e,n.label?"".concat(n.fieldName," (").concat(n.label,")"):n.fieldName),value:e.fieldName,meta:e.type};var n}))),re()(t.map((function(e){return{label:(n=e,n.label?"".concat(n.relationName," (").concat(n.label,")"):n.relationName),value:e.relationName,meta:e.targetEntity};var n}))))}))})([o].concat(re()(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:pe}}));n(null,t)})).catch((function(e){return n(e)}))}},be=function(e,n){return n?"".concat(e," (").concat(n,")"):e},me=function(e){return C("entities").then(_).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(n){var t=n.map((function(e){var n=e.modelName,t=e.label;return{caption:be(n,t),value:n,score:pe}}));e(null,t)})).catch((function(n){return e(n)}))},ve=function(){return G.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ye=function(e){return{getCompletions:function(n,t,r,o,l){var a=function(){return new oe(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(le(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ge(a,l,e);break;case"where":case"conjunction":ge(a,l,e),l(null,ve());break;case"nice_function":l(null,ve());break;case"find":me(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,$.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,U.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ge(a,l,e),s&&"relation"!==le(s)&&me(l);break;case null:e&&ge(a,l,e),l(null,ve())}}}};function xe(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var we=function(e){L()(t,e);var n=xe(t);function t(){var e;return N()(this,t),(e=n.call(this)).HighlightRules=X,e.completer=ye(),e}return E()(t)}(c().require("ace/mode/ftl").Mode);function ke(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var je,Oe=function(e){L()(t,e);var n=ke(t);function t(e){var r,o=e.implicitModelName;return N()(this,t),(r=n.call(this)).HighlightRules=K(o),r.completer=ye(o),r.snippedIdField=null,r}return E()(t)}(c().require("ace/mode/text").Mode),Pe=t(85893),Ze=Z.ZP.div.withConfig({displayName:"StyledEditor"})(je||(je=a()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),Se={groovy:function(){return new u.Mode},html:function(){return new d.Mode},xml:function(){return new b.Mode},properties:function(){return new p.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new we},freemarkermixed:function(){return new we},ftl:function(){return new we},tql:function(e){return new Oe(e)},less:function(){return new h.Mode},drools:function(){return new s.Mode},text:function(){return new g.Mode}},Ce=function(e,n){var t=n.mode,r=n.theme,l=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return O()(e)?Promise.resolve(e):k()(e)?C("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(_).then((function(e){return v()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return v()(Se,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(n){var t=o()(n,2),r=t[0],l=t[1];e.setOption(r,l)})),e.renderer.setShowGutter(l),e.resize()};const _e=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,l=e.onChange,a=e.showGutter,i=void 0===a||a,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,P.useRef)(null),h=(0,P.useRef)(null),p=(0,P.useMemo)((function(){return{mode:n,theme:r,showGutter:i,editorOptions:u,implicitModel:d}}),[n,r,i,u,d]);return(0,P.useEffect)((function(){var e=c().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),Ce(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,P.useEffect)((function(){h.current&&Ce(h.current,p)}),[p]),(0,P.useEffect)((function(){h.current&&!x()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,Pe.jsx)(Ze,{ref:f})}},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(52817),o=t(41609),l=t.n(o),a=t(41291),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),c=l()(o)?n:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(n),target:"_blank",onClick:function(e){return e.stopPropagation()},label:c,breakWords:t})}},23710:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>re});var r=t(59713),o=t.n(r),l=t(72757),a=t(1024),i=t(86896),c=t(93913),s=t.n(c),u=t(34575),d=t.n(u),f=t(2205),h=t.n(f),p=t(78585),g=t.n(p),b=t(29754),m=t.n(b),v=t(11820),y=t(39269),x=t(96840),w=t(75528),k=t(52079),j=t(84184),O=t(40569),P=t(75460),Z=t(65761),S=t(53626),C=t(73043),_=t(16797),R=t(71297),E=t(55444),D=t(6672),N=t(18195),T=t(23132),L=t(37060),A=t(4175),I=t(21094),M=t(20211),q=t(51778),F=t(87388),V=t(89906),H=t(41831);function z(e){var n=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 t,r=m()(e);if(n){var o=m()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return g()(this,t)}}var B=function(e){h()(t,e);var n=z(t);function t(){return d()(this,t),n.apply(this,arguments)}return s()(t)}(v.Z);B.builtinPlugins=[y.Z,x.Z,O.Z,P.Z,Z.Z,S.Z,C.Z,R.Z,_.Z,E.Z,D.Z,N.Z,w.Z,T.Z,L.Z,A.Z,I.Z,M.Z,q.Z,k.Z,F.Z,V.Z,H.Z,j.Z],B.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const W=B;var $,U=t(28655),G=t.n(U),Y=t(38205),K=t(56822),J=Y.ZP.div.withConfig({displayName:"StyledHtmlEditor"})($||($=G()(["\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,K.L)(e,"ckeditor")})),Q=t(85893);function X(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=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;default:return"de"}},te=function(e){var n=e.value,t=e.onChange,r=e.contentLang,o=e.ckEditorConfig,c=(0,i.Z)().locale,s=(0,a.useRef)(!1);return(0,Q.jsx)(J,{children:(0,Q.jsx)(l.CKEditor,{editor:W,config:ee({language:{ui:ne(c),content:r}},o),data:n,onChange:function(e,n){if(n.plugins.get("SourceEditing").isSourceEditingMode){if(!0===s.current)return;s.current=!0}var r=n.getData();t(r)}})})};te.defaultProps={value:"",contentLang:"de"};const re=te},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>I,default:()=>M});var r,o=t(59713),l=t.n(o),a=t(45697),i=t.n(a),c=t(6479),s=t.n(c),u=t(23636),d=t(93024),f=t(65735),h=t(73582),p=t(67814),g=t(27361),b=t.n(g),m=t(28655),v=t.n(m),y=t(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=v()([""]))),x=t(85893),w=["icon","style","hasFixedWidth"];function k(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}u.library.add(h.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,h.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,f.f8k,d.xYR,d.neY,d.AYu,d.kBj,d.hVS,d.dc_,d.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,h.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.$aW,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,h.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,h.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.rux);var O=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,o=s()(e,w),l=n.includes(",")?n.replace(/\s+/,"").split(","):n,a=j({},b()(t,"color")&&{color:t.color});return(0,x.jsx)(y,{children:(0,x.jsx)(p.G,j(j({icon:l,style:t},a),{},{fixedWidth:r},o))})};O.defaultProps={hasFixedWidth:!0};const P=O,Z=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"]},"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-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"]},"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"}}');var S,C;function _(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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E={logo:function(e){return(0,x.jsx)("svg",R(R({height:b()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:S||(S=(0,x.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(e){return(0,x.jsx)("svg",R(R({height:b()(e,"fontSize",20)},e),{},{"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:C||(C=(0,x.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"}))}))}},D=function(e){var n=e.icon,t=e.style;return E[n](t)};D.propTypes={icon:i().string.isRequired,style:i().object};const N=D;function T(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 L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A={fa:function(e,n){return(0,x.jsx)(P,L(L({},n),{},{icon:e.id}))},toc:function(e,n){return(0,x.jsx)(N,L(L({},n),{},{icon:e.id}))}},I=function(e){var n=Z[e.icon];if(!n)return null;var t=A[n.lib];return t?t(n,e):null};I.propTypes={icon:i().string.isRequired,style:i().objectOf(i().string)};const M=I},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(59713),o=t.n(r),l=t(88162),a=t(85893);function i(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 c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const s=function(e){var n=e.size,t=e.style,r=e.icon;return(0,a.jsx)(l.Z,c(c({},t),{},{style:{fontSize:n},spin:!0,icon:r||"circle-notch"}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,l,a){if(a!==r){var i=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 i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:o};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
1
+ (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>_r});var r,o=t(56746),l=t(15516),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(59713),f=t.n(d),h=t(78295),p=t(70696),g=t(10535),b=t(78958),m=t(319),v=t.n(m),y=t(28655),x=t.n(y),w=t(38205),k=t(37188);const j=(0,w.ZP)(k.hc).withConfig({displayName:"StyledSignalList"})(r||(r=x()(["\n && {\n list-style-type: none;\n }\n"])));var O=t(85893);const P=function(e){return(0,O.jsx)(j,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var Z,S,C=t(88162),_=t(27361),R=t.n(_),E=t(88601),D=t(58664),N=(Z={},f()(Z,b.Z.condition.BASE,"inherit"),f()(Z,b.Z.condition.DANGER,E.Z.color("signal.danger.text")),f()(Z,b.Z.condition.PRIMARY,(function(e){return(0,D.HO)(R()(e.theme,"colors.primary"),1)})),f()(Z,b.Z.condition.SUCCESS,E.Z.color("signal.success.text")),f()(Z,b.Z.condition.WARNING,E.Z.color("signal.warning.text")),f()(Z,b.Z.condition.INFO,E.Z.color("signal.info.text")),Z),T=(0,w.ZP)(k.EF).withConfig({displayName:"StyledSignalListItem"})(S||(S=x()(["\n && {\n color: ",";\n position: relative;\n\n > i,\n > svg {\n position: absolute;\n left: -1.6rem;\n text-align: left;\n }\n\n > svg {\n top: 0.2em;\n }\n }\n"])),(function(e){return function(e){return N[e.condition]||"inherit"}(e)}));T.propTypes={condition:b.Z.conditionPropTypes(N)};const L=T;var A,I,M=(A={},f()(A,b.Z.condition.BASE,!1),f()(A,b.Z.condition.PRIMARY,!1),f()(A,b.Z.condition.DANGER,"times"),f()(A,b.Z.condition.SUCCESS,"check"),f()(A,b.Z.condition.WARNING,"exclamation-triangle"),f()(A,b.Z.condition.INFO,"info"),A),q=function(e){var n=M[e.condition];return n?(0,O.jsx)(C.Z,{icon:n,position:b.Z.position.SOLE}):I||(I=(0,O.jsx)("i",{children:"•"}))},F=function(e){return(0,O.jsxs)(L,{condition:e.condition,children:[q(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};F.defaultProps={condition:b.Z.condition.BASE};const V={List:P,Item:F};const H=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,v()(e.error[t]))})),(0,O.jsx)(V.List,{children:n.map((function(e,n){return(0,O.jsx)(V.Item,{condition:"danger",label:e},n)}))})};var z,B,W,$,U,G,Y,K=t(79686),J=t(7281),Q=t(30759),X=t(40953),ee="1.1px",ne=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},te=w.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(z||(z=x()(["\n width: calc(100% - ",");\n"])),J.Z.space(.5)),re=w.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(B||(B=x()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Q.Z)({fontWeight:function(e){return e.dirty?E.Z.fontWeight("bold"):E.Z.fontWeight("regular")},lineHeight:E.Z.lineHeight("dense")}),E.Z.color("paper"),(function(e){return X.v[(n=e,t=n.isDisplay,r=n.immutable,o=n.signal,l=n.hasValue,o?"signal":l?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,o,l}),J.Z.space(-2),J.Z.font(0),J.Z.space(-2),(function(e){return e.immutable&&"0"}),J.Z.font(0),(function(e){return ne(e)})),oe=w.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(W||(W=x()(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),ee,(function(e){return X.m[(n=e,t=n.immutable,r=n.isDisplay,o=n.signal,n.isDirty?"isDirty":r||t?"transparent":o?"signal":"shade1")](e);var n,t,r,o}),J.Z.space(-1),J.Z.space(-1),J.Z.space(-2),J.Z.space(-1),(function(e){return e.isDisplay&&J.Z.space(-1)}),(function(e){return e.immutable&&J.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&J.Z.space(-1)}),(function(e){return!e.immutable&&(0,D.kk)(e)}),(function(e){return ne(e)}),(function(e){return e.isDisplay&&"0"}),K.j,(function(e){return e.isDisplay&&J.Z.space(-1)})),le=w.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})($||($=x()(["\n &&& {\n ","\n }\n"])),(0,Q.Z)({fontSize:J.Z.font(-1)})),ae=w.ZP.div.withConfig({displayName:"StyledStatedValueError"})(U||(U=x()([""]))),ie=w.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(G||(G=x()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n\n "," {\n margin-left: -",";\n }\n }\n }\n"])),J.Z.space(-1),J.Z.space(-1.5),oe,le,ae,J.Z.space(-2),le,ae,J.Z.space(-1),ee,k.hc,J.Z.space(-2));w.ZP.input.withConfig({displayName:"StyledInput"})(Y||(Y=x()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"not-allowed":"auto"}),(function(e){var n=e.args;return n.immutable&&!n.isDisplay?"#545454":"#000"}));function ce(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 se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ue=function(e){var n,t,r,o=e.children,l=e.description,a=e.dirty,i=e.isDisplay,c=e.error,s=e.hasValue,u=e.id,d=e.label,f=e.mandatory,m=e.mandatoryTitle,v=e.immutable,y=e.touched,x=e.signal,w=!v&&y&&c&&Object.keys(c).length>0,k="".concat(p.Z.adjustedHTMLString(d)).concat(f&&m?", ".concat(m):""),j=x||function(e,n,t,r){return n?b.Z.condition.DANGER:e?b.Z.condition.INFO:t&&!r?b.Z.condition.WARNING:void 0}(a,w,f,s),P={__html:"".concat(g.Z.sanitizeHtml(d)).concat(f?" *":"")},Z=!i&&!v&&{htmlFor:u};return(0,O.jsx)(h.Z,{children:function(e){var u=e.getRef;return(0,O.jsxs)(ie,{ref:u,children:[(0,O.jsxs)(oe,{hasValue:s,immutable:v,isDisplay:i,signal:j,children:[o,d&&(0,O.jsx)(te,{children:(0,O.jsx)(re,se(se({},Z),{},{hasValue:s,dirty:a,title:k,immutable:v,isDisplay:i,signal:j,children:n||(n=(0,O.jsx)("span",{dangerouslySetInnerHTML:P}))}))})]}),l&&(t||(t=(0,O.jsx)(le,{children:l}))),w&&(r||(r=(0,O.jsx)(ae,{children:(0,O.jsx)(H,{error:c})})))]})}})};var de,fe,he=t(61684),pe=t(65035),ge=t(51032),be=w.ZP.input.withConfig({displayName:"StyledInput"})(de||(de=x()(["\n && {\n ","\n }\n"])),ge.k9),me=w.ZP.div.withConfig({displayName:"StyledInputWrapper"})(fe||(fe=x()(["\n && {\n ","\n }\n"])),ge.yP);const ve=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,o=e.setFragmentSelected;return(0,O.jsx)(O.Fragment,{children:n.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){o(n,e.target.checked)}),disabled:r}),(0,O.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ye=function(e){var n=e.version,t=e.modules,r=e.selectedModules,o=e.fragments,l=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,h=e.setSelectedModules,p=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===o.length&&f()}),[]);return(0,O.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,O.jsx)(ue,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,O.jsx)(he.Z,{options:t,value:r,onChange:h,isMulti:!0,immutable:c})}),(0,O.jsx)(ue,{label:"Fragments",fixLabel:!0,children:(0,O.jsx)(ve,{fragments:o,selectedFragments:l,disabled:c,setFragmentSelected:p})}),(0,O.jsx)(ue,{label:"Version",hasValue:n.length>0,children:(0,O.jsx)(me,{children:(0,O.jsx)(be,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,O.jsx)(ue,{label:"Ignore errors",fixLabel:!0,children:(0,O.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,O.jsx)(pe.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var xe={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const we=(0,i.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}}),xe)(ye);const ke=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,l=e.setLanguage;return(0,O.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,O.jsx)(ue,{label:"Language",hasValue:n.length>0,children:(0,O.jsx)(me,{children:(0,O.jsx)(be,{value:n,onChange:function(e){l(e.target.value)},disabled:r})})}),(0,O.jsx)(pe.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var je={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const Oe=(0,i.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}}),je)(ke);var Pe,Ze,Se,Ce;const _e=function(){return(0,O.jsxs)(O.Fragment,{children:[Pe||(Pe=(0,O.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Ze||(Ze=(0,O.jsx)(we,{})),Se||(Se=(0,O.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Ce||(Ce=(0,O.jsx)(Oe,{}))]})};var Re,Ee,De,Ne,Te,Le,Ae,Ie=t(63038),Me=t.n(Ie),qe={ERROR:"#a00"},Fe=w.ZP.div.withConfig({displayName:"StyledLogTable"})(Re||(Re=x()(["\n display: grid;\n gap: 1px;\n"]))),Ve=w.ZP.div.withConfig({displayName:"StyledLogEntry"})(Ee||(Ee=x()(["\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(qe[e.level]||"#ddd",";")})),He=w.ZP.span.withConfig({displayName:"StyledMessage"})(De||(De=x()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Q.Z)()),ze=w.ZP.span.withConfig({displayName:"StyledTime"})(Ne||(Ne=x()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),Be=w.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Te||(Te=x()(["\n margin-top: 1em;\n"]))),We=w.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Le||(Le=x()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),$e=w.ZP.div.withConfig({displayName:"StyledStackTrace"})(Ae||(Ae=x()(["\n && {\n ","\n }\n"])),(0,Q.Z)()),Ue=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ge=function(e){var n=e.exception;return(0,O.jsxs)(Be,{children:[(0,O.jsx)(We,{children:n.detailMessage}),(0,O.jsx)($e,{children:n.stackTrace.map((function(e,n){return(0,O.jsx)("div",{children:Ue(e)},n)}))})]})};const Ye=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Me()(t,2),o=r[0],l=r[1];return(0,O.jsxs)(Ve,{level:n.level,children:[(0,O.jsx)(He,{onClick:function(){n.exception&&l(!o)},expandable:!!n.exception,children:n.message}),(0,O.jsx)(ze,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,O.jsx)(Ge,{exception:n.exception})]})};var Ke;const Je=function(e){var n=e.entries;return(0,O.jsx)(Fe,{children:n.length>0?n.map((function(e){return(0,O.jsx)(Ye,{entry:e},e.key)})):Ke||(Ke=(0,O.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Qe=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Je);var Xe,en;const nn=function(){return(0,O.jsxs)(O.Fragment,{children:[Xe||(Xe=(0,O.jsx)(a.ZP.H1,{children:"Log"})),en||(en=(0,O.jsx)(Qe,{}))]})};var tn,rn,on=t(49478),ln=w.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(tn||(tn=x()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),an=w.ZP.div.withConfig({displayName:"StyledGroupHeading"})(rn||(rn=x()(["\n margin-bottom: 1em;\n"])));function cn(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 sn(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 sn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function sn(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 un=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,l=function(e,n){var t,r=cn(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!n.has(o.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,O.jsxs)(ln,{children:[(0,O.jsxs)(an,{children:[(0,O.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:l,onChange:function(e){o(t.map((function(e){return e.id})),e.target.checked)}}),(0,O.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,O.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){o([n],e.target.checked)})}),(0,O.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const dn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,l=e.generateChangelog;return(0,O.jsxs)("div",{children:[Object.keys(n).length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(pe.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,O.jsxs)(pe.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,O.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,O.jsx)(un,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var fn={setSelected:on.Pq,generateSql:on.$i,generateChangelog:on._w};const hn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),fn)(dn);var pn,gn,bn,mn=w.ZP.div.withConfig({displayName:"StyledProgressBar"})(pn||(pn=x()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),vn=w.ZP.div.withConfig({displayName:"StyledInnerProgress"})(gn||(gn=x()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),yn=w.ZP.div.withConfig({displayName:"StyledProgressText"})(bn||(bn=x()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),xn=function(e){return e.result?e.result:e.running?e.total?"".concat(wn(e),"%"):"Preparing...":"Not started"},wn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const kn=function(e){var n=e.state;return(0,O.jsxs)(mn,{children:[(0,O.jsx)(vn,{percentage:wn(n)}),(0,O.jsx)(yn,{children:xn(n)})]})};const jn=function(e){var n=e.state,t=e.startValidation;return(0,O.jsxs)("div",{children:[(0,O.jsx)(pe.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,O.jsx)(kn,{state:n})]})};var On={startValidation:on.YV};const Pn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),On)(jn);var Zn,Sn,Cn;const _n=function(){return(0,O.jsxs)(O.Fragment,{children:[Zn||(Zn=(0,O.jsx)(a.ZP.H1,{children:"Model Validation"})),Sn||(Sn=(0,O.jsx)(Pn,{})),Cn||(Cn=(0,O.jsx)(hn,{}))]})};var Rn=t(22541),En=t(57557),Dn=t.n(En),Nn=t(2091),Tn=t(93174),Ln=t(38431),An=t(14372),In=t(69119),Mn=t(77349),qn=t(49546);function Fn(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 Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn="yyyy-MM-dd",zn=function(e){return(0,Ln.Z)(e,Hn)?(0,An.default)(e,Hn,new Date):(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ln.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,In.default)(new Date(e)):null};const Bn={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?zn(e).toISOString():null,to:e?(0,Mn.default)(zn(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,qn.default)(new Date(e.from),Hn):e&&e.to?(0,qn.default)(new Date(e.to),Hn):null},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Vn(Vn({},e),{},{datePickerOptions:Vn({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Wn,$n,Un,Gn,Yn,Kn=w.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Wn||(Wn=x()(["\n font-size: ",";\n"])),J.Z.font(-2.7)),Jn=w.ZP.div.withConfig({displayName:"StyledRange"})($n||($n=x()(["\n display: flex;\n"]))),Qn=w.ZP.div.withConfig({displayName:"StyledInput"})(Un||(Un=x()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Xn=w.ZP.div.withConfig({displayName:"StyledExtender"})(Gn||(Gn=x()(["\n display: flex;\n align-items: center;\n"])));function et(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 nt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?et(Object(t),!0).forEach((function(n){f()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var tt="expanded_initial",rt="expanded",ot="collapsed";const lt=function(e){var n,t,r=e.value,o=e.events,l=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded?tt:ot,f=(0,s.useState)(d),h=Me()(f,2),p=h[0],g=h[1],b=Bn[a];(0,s.useEffect)((function(){var e,n=p===tt&&r&&!r.isRangeValue,t=p===rt&&!(null!=r&&r.isRangeValue),l=p===ot&&(null==r?void 0:r.isRangeValue);n?o.onChange({from:r,to:void 0,isRangeValue:!0}):t?o.onChange((e=r,null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0})):l&&o.onChange(function(e){return null!=b&&b.fromRange?b.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r))}),[p,r,o,b]);var m=(null==r?void 0:r.isRangeValue)||!1,v=(0,s.useRef)(r);v.current=r;var y,x,w=(0,s.useMemo)((function(){return nt(nt({},o),{},{onChange:o.onChange})}),[o]),k={onChange:function(e){o.onChange(nt(nt({},v.current),{},{to:e}))}},j={onChange:function(e){o.onChange(nt(nt({},v.current),{},{from:e}))}},P=(null==b||null===(n=b.icons)||void 0===n?void 0:n.range)||"chevron-down",Z=(null==b||null===(t=b.icons)||void 0===t?void 0:t.single)||"chevron-left",S=(null==b?void 0:b.type)||a,_=(0,O.jsx)(Tn.Z,nt(nt({type:S},Dn()(e,["type"])),{},{events:w})),R=(0,O.jsxs)(Qn,{children:[(0,O.jsx)(Tn.Z,nt(nt({},e),{},{options:(y=i,x=null==r?void 0:r.to,null!=b&&b.getFromOptions?b.getFromOptions(y,x):y),value:(null==r?void 0:r.from)||null,events:j,placeholder:c})),Yn||(Yn=(0,O.jsx)(Kn,{children:(0,O.jsx)(C.Z,{icon:"horizontal-rule"})})),(0,O.jsx)(Tn.Z,nt(nt({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,null==r?void 0:r.from),value:(null==r?void 0:r.to)||null,events:k,placeholder:u}))]});return(0,O.jsxs)(Jn,{children:[m?R:_,(0,O.jsx)(Xn,{children:(0,O.jsx)(Nn.Z,{disabled:l,icon:m?Z:P,onClick:function(){g(m?ot:rt)}})})]})};const at=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,O.jsxs)("div",{children:[(0,O.jsx)(ue,{label:"Active",fixLabel:!0,children:(0,O.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,O.jsx)(ue,{label:"Elapsed",hasValue:!!t,children:(0,O.jsx)(lt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var it={setActive:Rn.Iv,setElapsed:Rn.uI};const ct=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),it)(at);var st,ut,dt,ft,ht,pt,gt,bt={ERROR:"#a00"},mt=w.ZP.div.withConfig({displayName:"StyledLogTable"})(st||(st=x()(["\n display: grid;\n gap: 1px;\n"]))),vt=w.ZP.div.withConfig({displayName:"StyledLogEntry"})(ut||(ut=x()(["\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(bt[e.level]||"#ddd",";")})),yt=w.ZP.span.withConfig({displayName:"StyledStatementHeader"})(dt||(dt=x()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Q.Z)()),xt=w.ZP.span.withConfig({displayName:"StyledStatement"})(ft||(ft=x()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),wt=w.ZP.span.withConfig({displayName:"StyledTime"})(ht||(ht=x()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),kt=w.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(pt||(pt=x()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Q.Z)()),jt=w.ZP.span.withConfig({displayName:"StyledElapsed"})(gt||(gt=x()(["\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 Ot=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Me()(t,2),o=r[0],l=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,O.jsxs)(vt,{children:[(0,O.jsx)(yt,{expandable:a,onClick:function(){a&&l(!o)},children:i}),o&&(0,O.jsx)(xt,{children:n.sql}),(0,O.jsx)(wt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,O.jsx)(kt,{children:(0,O.jsxs)(jt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var Pt;const Zt=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,O.jsx)(mt,{children:n.length>0?n.map((function(e){return(0,O.jsx)(Ot,{entry:e},e.key)})):Pt||(Pt=(0,O.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const St=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Zt);var Ct,_t,Rt;const Et=function(){return(0,O.jsxs)(O.Fragment,{children:[Ct||(Ct=(0,O.jsx)(a.ZP.H1,{children:"SQL Log"})),_t||(_t=(0,O.jsx)(ct,{})),Rt||(Rt=(0,O.jsx)(St,{}))]})};function Dt(e,n){return Dt=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Dt(e,n)}function Nt(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Dt(e,n)}function Tt(){return Tt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tt.apply(this,arguments)}function Lt(e){return"/"===e.charAt(0)}function At(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}const It=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],l=e&&Lt(e),a=n&&Lt(n),i=l||a;if(e&&Lt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];t="."===c||".."===c||""===c}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?At(o,u):".."===d?(At(o,u),s++):s&&(At(o,u),s--)}if(!i)for(;s--;s)o.unshift("..");!i||""===o[0]||o[0]&&Lt(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Mt=t(2177);function qt(e){return"/"===e.charAt(0)?e:"/"+e}function Ft(e){return"/"===e.charAt(0)?e.substr(1):e}function Vt(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function Ht(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function zt(e){var n=e.pathname,t=e.search,r=e.hash,o=n||"/";return t&&"?"!==t&&(o+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Bt(e,n,t,r){var o;"string"==typeof e?(o=function(e){var n=e||"/",t="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var l=n.indexOf("?");return-1!==l&&(t=n.substr(l),n=n.substr(0,l)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),o.state=n):(void 0===(o=Tt({},e)).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!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return t&&(o.key=t),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=It(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Wt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,o){if(null!=e){var l="function"==typeof e?e(n,t):e;"string"==typeof l?"function"==typeof r?r(l,o):o(!0):o(!1!==l)}else o(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var $t=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ut(e,n){n(window.confirm(e))}var Gt="popstate",Yt="hashchange";function Kt(){try{return window.history.state||{}}catch(e){return{}}}function Jt(e){void 0===e&&(e={}),$t||(0,Mt.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e,a=l.forceRefresh,i=void 0!==a&&a,c=l.getUserConfirmation,s=void 0===c?Ut:c,u=l.keyLength,d=void 0===u?6:u,f=e.basename?Ht(qt(e.basename)):"";function h(e){var n=e||{},t=n.key,r=n.state,o=window.location,l=o.pathname+o.search+o.hash;return f&&(l=Vt(l,f)),Bt(l,r,t)}function p(){return Math.random().toString(36).substr(2,d)}var g=Wt();function b(e){Tt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(h(e.state))}function v(){x(h(Kt()))}var y=!1;function x(e){if(y)y=!1,b();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?b({action:"POP",location:e}):function(e){var n=C.location,t=k.indexOf(n.key);-1===t&&(t=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,O(o))}(e)}))}}var w=h(Kt()),k=[w.key];function j(e){return f+zt(e)}function O(e){t.go(e)}var P=0;function Z(e){1===(P+=e)&&1===e?(window.addEventListener(Gt,m),o&&window.addEventListener(Yt,v)):0===P&&(window.removeEventListener(Gt,m),o&&window.removeEventListener(Yt,v))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:j,push:function(e,n){var o="PUSH",l=Bt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.pushState({key:a,state:c},null,n),i)window.location.href=n;else{var s=k.indexOf(C.location.key),u=k.slice(0,s+1);u.push(l.key),k=u,b({action:o,location:l})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",l=Bt(e,n,p(),C.location);g.confirmTransitionTo(l,o,s,(function(e){if(e){var n=j(l),a=l.key,c=l.state;if(r)if(t.replaceState({key:a,state:c},null,n),i)window.location.replace(n);else{var s=k.indexOf(C.location.key);-1!==s&&(k[s]=l.key),b({action:o,location:l})}else window.location.replace(n)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(Z(1),S=!0),function(){return S&&(S=!1,Z(-1)),n()}},listen:function(e){var n=g.appendListener(e);return Z(1),function(){Z(-1),n()}}};return C}var Qt="hashchange",Xt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Ft(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Ft,decodePath:qt},slash:{encodePath:qt,decodePath:qt}};function er(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function nr(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function tr(e){window.location.replace(er(window.location.href)+"#"+e)}function rr(e){void 0===e&&(e={}),$t||(0,Mt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?Ut:r,l=t.hashType,a=void 0===l?"slash":l,i=e.basename?Ht(qt(e.basename)):"",c=Xt[a],s=c.encodePath,u=c.decodePath;function d(){var e=u(nr());return i&&(e=Vt(e,i)),Bt(e)}var f=Wt();function h(e){Tt(P,e),P.length=n.length,f.notifyListeners(P.location,P.action)}var p=!1,g=null;function b(){var e,n,t=nr(),r=s(t);if(t!==r)tr(r);else{var l=d(),a=P.location;if(!p&&(n=l,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===zt(l))return;g=null,function(e){if(p)p=!1,h();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?h({action:n,location:e}):function(e){var n=P.location,t=x.lastIndexOf(zt(n));-1===t&&(t=0);var r=x.lastIndexOf(zt(e));-1===r&&(r=0);var o=t-r;o&&(p=!0,w(o))}(e)}))}}(l)}}var m=nr(),v=s(m);m!==v&&tr(v);var y=d(),x=[zt(y)];function w(e){n.go(e)}var k=0;function j(e){1===(k+=e)&&1===e?window.addEventListener(Qt,b):0===k&&window.removeEventListener(Qt,b)}var O=!1;var P={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=er(window.location.href)),t+"#"+s(i+zt(e))},push:function(e,n){var t="PUSH",r=Bt(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=zt(r),o=s(i+n);if(nr()!==o){g=n,function(e){window.location.hash=e}(o);var l=x.lastIndexOf(zt(P.location)),a=x.slice(0,l+1);a.push(n),x=a,h({action:t,location:r})}else h()}}))},replace:function(e,n){var t="REPLACE",r=Bt(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=zt(r),o=s(i+n);nr()!==o&&(g=n,tr(o));var l=x.indexOf(zt(P.location));-1!==l&&(x[l]=n),h({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=f.setPrompt(e);return O||(j(1),O=!0),function(){return O&&(O=!1,j(-1)),n()}},listen:function(e){var n=f.appendListener(e);return j(1),function(){j(-1),n()}}};return P}t(94662);function or(e,n){if(null==e)return{};var t,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}u().Component;u().Component;var lr=function(e,n){return"function"==typeof e?e(n):e},ar=function(e,n){return"string"==typeof e?Bt(e,null,null,n):e},ir=function(e){return e},cr=u().forwardRef;void 0===cr&&(cr=ir);var sr=cr((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,l=or(e,["innerRef","navigate","onClick"]),a=l.target,i=Tt({},l,{onClick:function(e){try{o&&o(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return i.ref=ir!==cr&&n||t,u().createElement("a",i)}));var ur=cr((function(e,n){var t=e.component,r=void 0===t?sr:t,l=e.replace,a=e.to,i=e.innerRef,c=or(e,["component","replace","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Mt.Z)(!1);var t=e.history,o=ar(lr(a,e.location),e.location),s=o?t.createHref(o):"",d=Tt({},c,{href:s,navigate:function(){var n=lr(a,e.location),r=zt(e.location)===zt(ar(n));(l||r?t.replace:t.push)(n)}});return ir!==cr?d.ref=n||i:d.innerRef=i,u().createElement(r,d)}))})),dr=function(e){return e},fr=u().forwardRef;void 0===fr&&(fr=dr);fr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,l=e.activeClassName,a=void 0===l?"active":l,i=e.activeStyle,c=e.className,s=e.exact,d=e.isActive,f=e.location,h=e.sensitive,p=e.strict,g=e.style,b=e.to,m=e.innerRef,v=or(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(o.s6.Consumer,null,(function(e){e||(0,Mt.Z)(!1);var t=f||e.location,l=ar(lr(b,t),t),y=l.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,o.LX)(t.pathname,{path:x,exact:s,sensitive:h,strict:p}):null,k=!!(d?d(w,t):w),j="function"==typeof c?c(k):c,O="function"==typeof g?g(k):g;k&&(j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(j,a),O=Tt({},O,i));var P=Tt({"aria-current":k&&r||null,className:j,style:O,to:l},v);return dr!==fr?P.ref=n||m:P.innerRef=m,u().createElement(ur,P)}))}));var hr,pr=t(24875);const gr=(0,w.ZP)(ur)(hr||(hr=x()(["\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,Q.Z)(),pr.FS.color("secondary"),pr.FS.color("text"),pr.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,D.HO)(R()(t,"colors.text"),2):(0,D.HO)(R()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var br,mr,vr,yr,xr,wr,kr,jr,Or,Pr,Zr=w.ZP.div.withConfig({displayName:"StyledDevCon"})(br||(br=x()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),E.Z.color("paper"),J.Z.space(0)),Sr=w.ZP.div.withConfig({displayName:"StyledNavigation"})(mr||(mr=x()(["\n display: flex;\n"]))),Cr=(0,w.ZP)(gr).withConfig({displayName:"StyledRouterLink"})(vr||(vr=x()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const _r=function(){return(0,O.jsxs)(Zr,{children:[yr||(yr=(0,O.jsx)(l.Z.Notifications,{})),xr||(xr=(0,O.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),wr||(wr=(0,O.jsxs)(Sr,{children:[(0,O.jsx)(Cr,{to:"/log",children:"Log"}),(0,O.jsx)(Cr,{to:"/modelvalidation",children:"Model Validation"}),(0,O.jsx)(Cr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,O.jsx)(Cr,{to:"/sqllog",children:"SQL Log"})]})),(0,O.jsxs)(o.rs,{children:[(0,O.jsx)(o.AW,{path:"/",exact:!0,render:function(){return(0,O.jsx)(o.l_,{to:{pathname:"/log"}})}}),(0,O.jsx)(o.AW,{path:"/log",exact:!0,render:function(){return kr||(kr=(0,O.jsx)(nn,{}))}}),(0,O.jsx)(o.AW,{path:"/dbrefactoring",exact:!0,render:function(){return jr||(jr=(0,O.jsx)(_e,{}))}}),(0,O.jsx)(o.AW,{path:"/modelvalidation",exact:!0,render:function(){return Or||(Or=(0,O.jsx)(_n,{}))}}),(0,O.jsx)(o.AW,{path:"/sqllog",exact:!0,render:function(){return Pr||(Pr=(0,O.jsx)(Et,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>_e});var r=t(63038),o=t.n(r),l=t(28655),a=t.n(l),i=t(22085),c=t.n(i),s=(t(66245),t(56544)),u=t(7197),d=t(81272),f=t(82341),h=t(97595),p=t(66679),g=t(38794),b=t(12964),m=t(27361),v=t.n(m),y=t(14293),x=t.n(y),w=t(13218),k=t.n(w),j=t(47037),O=t.n(j),P=t(1024),Z=t(38205),S=(t(36976),t(92194),t(2565),t(8821),t(71083),t(42061),t(74576),t(82454),t(55872),t(58119),t(54159)),C=function(e){return S.Z.executeRequest("rest/".concat(e))},_=function(e){return 200===e.status?e.json():null},R=t(93913),E=t.n(R),D=t(34575),N=t.n(D),T=t(2205),L=t.n(T),A=t(78585),I=t.n(A),M=t(29754),q=t.n(M),F=(t(51500),t(1469)),V=t.n(F),H=t(30236),z=t.n(H),B=["==","!=","<=",">=","<",">","~="],W=["true","false","null"],$=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],U=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],G=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function Y(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}const K=function(e){return function(n){L()(r,n);var t=Y(r);function r(){var n;N()(this,r),n=t.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(G.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={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(B.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(U.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(W.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat($.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 n.$rules=z()(n.$rules,l,(function(e,n){return V()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return E()(r)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules)};function J(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var Q=function(e){L()(t,e);var n=J(t);function t(){var e;N()(this,t);return(e=n.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 E()(t)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules),X=function(e){L()(t,e);var n=J(t);function t(){var e;N()(this,t),e=n.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 l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(Q,"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 a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(K(),"tql-",a,["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=z()(e.$rules,i,(function(e,n){return V()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return E()(t)}(c().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ee=t(68551),ne=t.n(ee),te=t(319),re=t.n(te),oe=c().require("ace/token_iterator").TokenIterator,le=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ae=function(e,n){return le(e.getCurrentToken())===n},ie=function(e){if(ae(e,"model")&&e.stepBackward(),(ae(e,"field")||ae(e,"relation"))&&e.stepBackward(),!ae(e,"chaining"))return null;if(e.stepBackward(),ae(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},ce=function(e,n){for(;!ae(e,n);)if(!e.stepBackward())return!1;return!0},se=function(e,n){return ae(e,"rparen")?1:n>0&&ae(e,"lparen")?(e.stepBackward(),-1):0},ue=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&ae(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat(re()(fe(e))):[]}if(ae(e,"order_by")){if(ce(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=se(e,n),!e.stepBackward())return null}return null},de=function(e,n){for(var t=[],r=n(e);r;)Array.isArray(r)?r.forEach((function(e){return t.unshift(e)})):t.unshift(r),r=n(e);return t},fe=function(e){return de(e,ie)},he=function(e){return de(e,ue)},pe=1e3,ge=function(e,n,t){var r=function(e,n){if(n){var t=he(e());return{baseModel:n,modelScope:ne()(t).slice(0)}}var r=he(e()),o=ne()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,t),o=r.baseModel,l=r.modelScope;if(o){var a=fe(e()),i=[].concat(re()(l),re()(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=ne()(e),t=n[0],r=n.slice(1);return C(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(_).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat(re()(n.map((function(e){return{label:(n=e,n.label?"".concat(n.fieldName," (").concat(n.label,")"):n.fieldName),value:e.fieldName,meta:e.type};var n}))),re()(t.map((function(e){return{label:(n=e,n.label?"".concat(n.relationName," (").concat(n.label,")"):n.relationName),value:e.relationName,meta:e.targetEntity};var n}))))}))})([o].concat(re()(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:pe}}));n(null,t)})).catch((function(e){return n(e)}))}},be=function(e,n){return n?"".concat(e," (").concat(n,")"):e},me=function(e){return C("entities").then(_).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(n){var t=n.map((function(e){var n=e.modelName,t=e.label;return{caption:be(n,t),value:n,score:pe}}));e(null,t)})).catch((function(n){return e(n)}))},ve=function(){return G.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ye=function(e){return{getCompletions:function(n,t,r,o,l){var a=function(){return new oe(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(le(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ge(a,l,e);break;case"where":case"conjunction":ge(a,l,e),l(null,ve());break;case"nice_function":l(null,ve());break;case"find":me(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,$.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,U.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ge(a,l,e),s&&"relation"!==le(s)&&me(l);break;case null:e&&ge(a,l,e),l(null,ve())}}}};function xe(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var we=function(e){L()(t,e);var n=xe(t);function t(){var e;return N()(this,t),(e=n.call(this)).HighlightRules=X,e.completer=ye(),e}return E()(t)}(c().require("ace/mode/ftl").Mode);function ke(e){var n=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 t,r=q()(e);if(n){var o=q()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var je,Oe=function(e){L()(t,e);var n=ke(t);function t(e){var r,o=e.implicitModelName;return N()(this,t),(r=n.call(this)).HighlightRules=K(o),r.completer=ye(o),r.snippedIdField=null,r}return E()(t)}(c().require("ace/mode/text").Mode),Pe=t(85893),Ze=Z.ZP.div.withConfig({displayName:"StyledEditor"})(je||(je=a()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),Se={groovy:function(){return new u.Mode},html:function(){return new d.Mode},xml:function(){return new b.Mode},properties:function(){return new p.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new we},freemarkermixed:function(){return new we},ftl:function(){return new we},tql:function(e){return new Oe(e)},less:function(){return new h.Mode},drools:function(){return new s.Mode},text:function(){return new g.Mode}},Ce=function(e,n){var t=n.mode,r=n.theme,l=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return O()(e)?Promise.resolve(e):k()(e)?C("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(_).then((function(e){return v()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return v()(Se,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(n){var t=o()(n,2),r=t[0],l=t[1];e.setOption(r,l)})),e.renderer.setShowGutter(l),e.resize()};const _e=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,l=e.onChange,a=e.showGutter,i=void 0===a||a,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,P.useRef)(null),h=(0,P.useRef)(null),p=(0,P.useMemo)((function(){return{mode:n,theme:r,showGutter:i,editorOptions:u,implicitModel:d}}),[n,r,i,u,d]);return(0,P.useEffect)((function(){var e=c().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),Ce(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,P.useEffect)((function(){h.current&&Ce(h.current,p)}),[p]),(0,P.useEffect)((function(){h.current&&!x()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,Pe.jsx)(Ze,{ref:f})}},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(52817),o=t(41609),l=t.n(o),a=t(41291),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,o=(0,r._)(n),c=l()(o)?n:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(n),target:"_blank",onClick:function(e){return e.stopPropagation()},label:c,breakWords:t})}},23710:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>re});var r=t(59713),o=t.n(r),l=t(72757),a=t(1024),i=t(86896),c=t(93913),s=t.n(c),u=t(34575),d=t.n(u),f=t(2205),h=t.n(f),p=t(78585),g=t.n(p),b=t(29754),m=t.n(b),v=t(11820),y=t(39269),x=t(96840),w=t(75528),k=t(52079),j=t(84184),O=t(40569),P=t(75460),Z=t(65761),S=t(53626),C=t(73043),_=t(16797),R=t(71297),E=t(55444),D=t(6672),N=t(18195),T=t(23132),L=t(37060),A=t(4175),I=t(21094),M=t(20211),q=t(51778),F=t(87388),V=t(89906),H=t(41831);function z(e){var n=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 t,r=m()(e);if(n){var o=m()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return g()(this,t)}}var B=function(e){h()(t,e);var n=z(t);function t(){return d()(this,t),n.apply(this,arguments)}return s()(t)}(v.Z);B.builtinPlugins=[y.Z,x.Z,O.Z,P.Z,Z.Z,S.Z,C.Z,R.Z,_.Z,E.Z,D.Z,N.Z,w.Z,T.Z,L.Z,A.Z,I.Z,M.Z,q.Z,k.Z,F.Z,V.Z,H.Z,j.Z],B.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const W=B;var $,U=t(28655),G=t.n(U),Y=t(38205),K=t(56822),J=Y.ZP.div.withConfig({displayName:"StyledHtmlEditor"})($||($=G()(["\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,K.L)(e,"ckeditor")})),Q=t(85893);function X(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=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;default:return"de"}},te=function(e){var n=e.value,t=e.onChange,r=e.contentLang,o=e.ckEditorConfig,c=(0,i.Z)().locale,s=(0,a.useRef)(!1);return(0,Q.jsx)(J,{children:(0,Q.jsx)(l.CKEditor,{editor:W,config:ee({language:{ui:ne(c),content:r}},o),data:n,onChange:function(e,n){if(n.plugins.get("SourceEditing").isSourceEditingMode){if(!0===s.current)return;s.current=!0}var r=n.getData();t(r)}})})};te.defaultProps={value:"",contentLang:"de"};const re=te},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>I,default:()=>M});var r,o=t(59713),l=t.n(o),a=t(45697),i=t.n(a),c=t(6479),s=t.n(c),u=t(23636),d=t(93024),f=t(65735),h=t(73582),p=t(67814),g=t(27361),b=t.n(g),m=t(28655),v=t.n(m),y=t(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=v()([""]))),x=t(85893),w=["icon","style","hasFixedWidth"];function k(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}u.library.add(h.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,h.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,f.f8k,d.xYR,d.neY,d.AYu,d.kBj,d.hVS,d.dc_,d.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,h.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.$aW,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,h.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,h.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.rux);var O=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,o=s()(e,w),l=n.includes(",")?n.replace(/\s+/,"").split(","):n,a=j({},b()(t,"color")&&{color:t.color}),i=Array.isArray(l)?l[1]:l;return(0,x.jsx)(y,{children:(0,x.jsx)(p.G,j(j(j({icon:l,style:t},a),{},{fixedWidth:r},o),{},{"data-testid":"icon-".concat(i)}))})};O.defaultProps={hasFixedWidth:!0};const P=O,Z=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"]},"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-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"]},"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"}}');var S,C;function _(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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E={logo:function(e){return(0,x.jsx)("svg",R(R({height:b()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:S||(S=(0,x.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(e){return(0,x.jsx)("svg",R(R({height:b()(e,"fontSize",20)},e),{},{"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:C||(C=(0,x.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"}))}))}},D=function(e){var n=e.icon,t=e.style;return E[n](t)};D.propTypes={icon:i().string.isRequired,style:i().object};const N=D;function T(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 L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A={fa:function(e,n){return(0,x.jsx)(P,L(L({},n),{},{icon:e.id}))},toc:function(e,n){return(0,x.jsx)(N,L(L({},n),{},{icon:e.id}))}},I=function(e){var n=Z[e.icon];if(!n)return null;var t=A[n.lib];return t?t(n,e):null};I.propTypes={icon:i().string.isRequired,style:i().objectOf(i().string)};const M=I},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(59713),o=t.n(r),l=t(88162),a=t(85893);function i(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 c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const s=function(e){var n=e.size,t=e.style,r=e.icon;return(0,a.jsx)(l.Z,c(c({},t),{},{style:{fontSize:n},spin:!0,icon:r||"circle-notch"}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,l,a){if(a!==r){var i=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 i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:o};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
package/dist/index.js CHANGED
@@ -53,4 +53,4 @@ object-assign
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},30670:e=>{"use strict";e.exports=function(){}},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(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}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.efa3f846edd2efc0f658.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"781b5ca2572fba07801a",198:"30f57ac2b24d6c67bd48",560:"cbd64d56be150780154f",608:"f4814a72f5246f98fb54",759:"2bc4fee93df731cf6d21",817:"586199136bcea7bd0e90",877:"f6f6e19fe9b59c9681eb"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,f=r.length;f>=0;f--){var d=r[f];"."===d?u(r,f):".."===d?(u(r,f),p++):p&&(u(r,f),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return f(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).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(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},k=function(e,t){return t(window.confirm(e))},x=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},S=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=x(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?k:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||f(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=d(i,D)),v(i,o,n)},R=function(){return Math.random().toString(36).substr(2,g)},M=y(),I=function(e){E(ee,e),ee.length=t.length,M.notifyListeners(ee.location,ee.action)},N=function(e){S(e)||L(T(e.state))},B=function(){L(T(j()))},Z=!1,L=function(e){if(Z)Z=!1,I();else{M.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=U.indexOf(t.key);-1===n&&(n=0);var r=U.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(Z=!0,V(o))},H=T(j()),U=[H.key],W=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":A(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=v(e,o,R(),ee.location);M.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=U.indexOf(ee.location.key),p=U.slice(0,-1===l?0:l+1);p.push(i.key),U=p,I({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":A(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=v(e,o,R(),ee.location);M.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=U.indexOf(ee.location.key);-1!==l&&(U[l]=i.key),I({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},V=function(e){t.go(e)},Y=function(){return V(-1)},G=function(){return V(1)},K=0,X=function(e){1===(K+=e)?(w(window,C,N),o&&w(window,P,B)):0===K&&(O(window,C,N),o&&O(window,P,B))},$=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=M.setPrompt(e);return $||(X(1),$=!0),function(){return $&&($=!1,X(-1)),t()}},J=function(e){var t=M.appendListener(e);return X(1),function(){X(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:W,push:z,replace:q,go:V,goBack:Y,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,R,M=i(1024),I=i.n(M),N=i(56746),B="tocco-util/LOG_ERROR",Z=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:B,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),U=i.n(H),W=i(93913),z=i.n(W),q=i(2205),V=i.n(q),Y=i(78585),G=i.n(Y),K=i(29754),X=i.n(K),$=i(44012),Q=i(28655),J=i.n(Q),ee=i(38205),te=i(30759),ne=i(24875),re=i(7281),oe=ee.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=J()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,te.Z)(),(function(e){return e.theme.colors.signal.danger.text}),ne.FS.color("paper"),re.Z.space(-.5)),ae=i(85893);const ie=function(){return R||(R=(0,ae.jsx)(oe,{children:(0,ae.jsx)($.Z,{id:"client.component.errorBoundary.text"})}))};var ce;function se(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=X()(e);if(t){var o=X()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var ue=function(e){V()(n,e);var t=se(n);function n(e){var r;return U()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ce||(ce=(0,ae.jsx)(ie,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(M.Component);const le=ue;var pe={logError:Z};(0,F.connect)(null,pe)((0,L.ZP)(le));var fe=i(81770),de=i(319),he=i.n(de);function me(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}function ge(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?me(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ve=t()({},B,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return ge(ge({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(he()(e.messages)).slice(0,100)})})),ye={messages:[]};function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,t=arguments.length>1?arguments[1]:void 0,n=ve[t.type];return n?n(e,t):e}var we=i(87757),Oe=i.n(we),ke=i(34857),xe=i(50600),_e=i(44759),Se=Oe().mark(Ae);function Ae(e,t,n){return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(_e.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),Se)}var Ee=i(15516),Ce=Oe().mark(Pe);function Pe(e,t,n){var r;return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Ce)}var je=i(48926),De=i.n(je),Te=i(54159),Re="error",Me=function(){var e=De()(Oe().mark((function e(t){var n;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),_e.Z.logError(n),e.next=4,Ne(Re,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=De()(Oe().mark((function e(t){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _e.Z.logError(t),e.next=3,Ne(Re,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=De()(Oe().mark((function e(t,n){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Te.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Be={logError:Ie,logException:Me};var Ze=Oe().mark(Le);function Le(e,t,n){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Be.logException,n);case 2:case"end":return e.stop()}}),Ze)}const Fe={console:Ae,notification:Pe,remote:Le};var He=Oe().mark(ze),Ue=Oe().mark(qe),We=Oe().mark(Ve);function ze(e,t){return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(B,qe,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(B,Ve);case 7:case"end":return n.stop()}}),He)}function qe(e,t){var n,r,o,a;return Oe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Fe[e],r,o,a)})));case 4:case"end":return i.stop()}}),Ue)}function Ve(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),We)}const Ye=Z,Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&fe.Z.injectReducers(e,{errorLogging:be}),e.sagaMiddleware.run(ze,t,n)};var Ke=i(93386),Xe=i.n(Ke),$e=(i(30314),i(2100)),Qe="cache/INITIALISE",Je="cache/SET_INITIALISED",et=function(e){return{type:Je,payload:{initialised:e}}},tt=t()({},Je,fe.Z.singleTransferReducer("initialised")),nt={initialised:!1};function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,t=arguments.length>1?arguments[1]:void 0,n=tt[t.type];return n?n(e,t):e}var ot=i(79311),at=i(97222),it=Oe().mark(ct);function ct(){var e,t,n,r,o,a,i,c,s;return Oe().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,ke.RE)(at.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=ot.Z.getLongTerm("session","locale"),n=ot.Z.getLongTerm("session","principal"),u.next=7,(0,ke.RE)($e.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=!t||t!==o,s=n&&(n.currentBusinessUnit.id!==i||n.username!==a),u.abrupt("return",c||s||e);case 12:case"end":return u.stop()}}),it)}var st=Oe().mark(lt),ut=Oe().mark(ft);function lt(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Qe,ft)]);case 2:case"end":return e.stop()}}),st)}var pt=!1;function ft(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!pt){e.next=4;break}return e.next=3,(0,ke.gz)(et(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,ke.RE)(ct);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,ke.RE)(ot.Z.clearAll);case 10:return pt=!0,e.next=13,(0,ke.gz)(et(!0));case 13:case"end":return e.stop()}}),ut)}var dt,ht,mt,gt,vt=i(63038),yt=i.n(vt),bt=i(93235),wt=i(34206),Ot=i(69829),kt=(0,ee.F4)(dt||(dt=J()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),xt=(0,ee.iv)(ht||(ht=J()(["\n animation: "," 400ms ease-in-out both;\n"])),kt),_t=ee.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(mt||(mt=J()(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),re.Z.space(-1),xt,Ot.Fe,re.Z.space(-1));const St=ee.ZP.div.withConfig({displayName:"StyledLoadMask"})(gt||(gt=J()(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var At;const Et=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,M.useState)(!1),c=yt()(i,2),s=c[0],u=c[1],l=(0,M.useState)(!0),p=yt()(l,2),f=p[0],d=p[1];(0,M.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){f&&u(e)}(!0)})),function(){d(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,ae.jsx)(St,{className:a,children:h?r:(0,ae.jsxs)(_t,{children:[At||(At=(0,ae.jsx)(bt.Z,{size:"30px"},"loading-spinner")),o&&(0,ae.jsx)(wt.ZP.Span,{children:o},"loadingText")]})})};const Ct=function(e){var t=e.children,n=e.initialised;return(0,ae.jsx)(Et,{required:[n],children:t})};const Pt={addToStore:function(e){fe.Z.injectReducers(e,{cache:rt}),e.sagaMiddleware.run(lt)},initialise:function(){return{type:Qe}},CacheInitLoadMask:(0,F.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,L.ZP)(Ct)),hasInvalidCache:ct};var jt=i(21101),Dt=i(5435);const Tt={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var Rt=i(85743),Mt="keyDown/SET_CONFIG",It="keyDown/KEY_DOWN",Nt=function(e){return{type:Mt,payload:{config:e}}},Bt=function(e){return{type:It,payload:{config:e}}},Zt=t()({},Mt,fe.Z.singleTransferReducer("config")),Lt={config:[]};function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=arguments.length>1?arguments[1]:void 0,n=Zt[t.type];return n?n(e,t):e}var Ht=Oe().mark(zt),Ut=Oe().mark(qt),Wt=Oe().mark(Vt);function zt(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(qt,e),(0,ke.ib)(It,Vt)]);case 2:case"end":return t.stop()}}),Ht)}function qt(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(Nt(e));case 2:case"end":return t.stop()}}),Ut)}function Vt(e){var t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),Wt)}var Yt,Gt=ee.ZP.div.withConfig({displayName:"StyledDiv"})(Yt||(Yt=J()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const Kt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,M.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,M.useCallback)((function(e){return o(e,!0)}),[o]);return(0,M.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,ae.jsx)(Gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var Xt={keyDownHandler:Bt};const $t={keyDown:Bt,addToStore:function(e,t){fe.Z.injectReducers(e,{keyDown:Ft}),e.sagaMiddleware.run(zt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),Xt)(Kt)};var Qt,Jt,en,tn=ee.ZP.div.withConfig({displayName:"StyledApp"})(Qt||(Qt=J()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),nn=i(82492),rn=i.n(nn),on=i(76538),an=(0,ee.vJ)(Jt||(Jt=J()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),ne.FS.color("signal.success.text"),ne.FS.color("signal.info.text"),ne.FS.color("signal.warning.text"),ne.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,on._j)(.4,t.colors.paper)})),cn=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,M.useMemo)((function(){return rn()({},t,n)}),[t,n]);return(0,ae.jsxs)(ee.f6,{theme:o||a,children:[en||(en=(0,ae.jsx)(an,{})),r]})};cn.defaultProps={defaultTheme:Dt.Z};const sn=(0,ee.Zz)(cn);var un=i(93379),ln=i.n(un),pn=i(7795),fn=i.n(pn),dn=i(90569),hn=i.n(dn),mn=i(3565),gn=i.n(mn),vn=i(19216),yn=i.n(vn),bn=i(44589),wn=i.n(bn),On=i(36420),kn={};kn.styleTagTransform=wn(),kn.setAttributes=gn(),kn.insert=hn().bind(null,"head"),kn.domAPI=fn(),kn.insertStyleElement=yn();ln()(On.Z,kn);On.Z&&On.Z.locals&&On.Z.locals;var xn=function(e){return"widget"===e?Tt:Dt.Z};const _n=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,a=(0,M.useCallback)((function(e){e&&i.e(198).then(i.bind(i,23636)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),c=Rt.Z.getEmbedType();return(0,ae.jsx)(sn,{customTheme:o,defaultTheme:xn(c),children:(0,ae.jsx)(F.Provider,{store:t,children:(0,ae.jsx)($t.KeyDownWatcher,{children:(0,ae.jsx)(Et,{promises:[n],children:(0,ae.jsx)(jt.Pj,{children:(0,ae.jsx)(Pt.CacheInitLoadMask,{children:(0,ae.jsx)(tn,{ref:a,children:r})})})})})})})};var Sn="input/SET_INPUT",An="input/INPUT_INITIALIZED",En=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Cn=function(e){i.p=e},Pn=function(e,t,n,r){var o=Xe()([n],r),a=e?e.locale:null;return $e.Z.initIntl(t,o,a)},jn=i(15857),Dn=(i(28500),i(44422));function Tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Rn=Tn();Rn.withExtraArgument=Tn;const Mn=Rn;var In=i(24688);function Nn(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}function Bn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zn=t()({},Sn,(function(e,t){var n=t.payload;return Bn(Bn({},e),n)})),Ln={};const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln,t=arguments.length>1?arguments[1]:void 0,n=Zn[t.type];return n?n(e,t):e};function Hn(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}function Un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wn=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(41609),i(18446),i(35937),i(35997);const zn=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var f=a.customTheme;u&&Cn(u),c&&En(c,n),n.dispatch({type:An}),n.dispatch(Pt.initialise());var d=Pn(a,n,e,p);return{component:(0,ae.jsx)(_n,{store:n,initIntlPromise:d,content:t,theme:f}),store:n,methods:{setLocale:function(e){return $e.Z.changeLocale(n,p,e)}}}}catch(e){try{n.dispatch(Ye("Error","Error creating react application: ",e))}catch(t){_e.Z.logError("Error creating react application: ",e),_e.Z.logError("Unable to log error: ",t)}}},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wn(n),o=(0,Dn.ZP)(),a=(0,jn.md)(Mn,o),i=Un(Un({},e),{},{input:Fn,intl:jt._8});e=(0,jn.UY)(i);var c=(0,jn.MT)(e,r,a);if(c.allReducers=i,c.sagas=t,c.sagaMiddleware=o,c.hotReloadReducers=fe.Z.hotReloadReducers,t&&t.length>0){var s=In.Z.createGenerator(t.map((function(e){return(0,ke.rM)(e)})));o.run(In.Z.autoRestartSaga(s,null,Ye))}return c},Vn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var Yn,Gn=i(48479);function Kn(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}function Xn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Kn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $n=function(e,n){return function(r,o){return Xn(Xn({},r),{},t()({},n||o.payload.path,Xn(Xn({},r[n||o.payload.path]),{},{running:e})))}},Qn=(Yn={},t()(Yn,Gn.b0,fe.Z.singleTransferReducer("version","dbRefactoring")),t()(Yn,Gn.FX,fe.Z.singleTransferReducer("modules","dbRefactoring")),t()(Yn,Gn._2,fe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(Yn,Gn.ZD,fe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(Yn,Gn.Pt,(function(e,t){return Xn(Xn({},e),{},{dbRefactoring:Xn(Xn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(Yn,Gn.Hx,(function(e,t){return Xn(Xn({},e),{},{dbRefactoring:Xn(Xn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(he()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(Yn,Gn.X7,$n(!0,"dbRefactoring")),t()(Yn,Gn.DN,$n(!1)),t()(Yn,Gn.AF,fe.Z.singleTransferReducer("language","languageUpgrade")),t()(Yn,Gn.Bw,$n(!0,"languageUpgrade")),Yn),Jn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var er=Oe().mark(ur),tr=Oe().mark(lr),nr=Oe().mark(pr),rr=Oe().mark(fr),or=Oe().mark(dr),ar=Oe().mark(hr),ir=Oe().mark(mr),cr=function(e){return e.dbRefactoring.dbRefactoring},sr=function(e){return e.dbRefactoring.languageUpgrade};function ur(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Gn.VQ,lr),(0,ke.Fm)(Gn.Tf,pr),(0,ke.Fm)(Gn.X7,fr),(0,ke.Fm)(Gn.Bw,dr)]);case 2:case"end":return e.stop()}}),er)}function lr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),tr)}function pr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.Rg(e.body));case 5:case"end":return t.stop()}}),nr)}function fr(){var e,t,n,r,o,a;return Oe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(hr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),rr)}function dr(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(sr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(hr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),or)}function hr(e,t){var n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(mr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),_e.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),ar,null,[[1,9]])}function mr(e,t){var n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(at.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(Gn.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,ke.gz)(Gn.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(mr,e);case 22:case"end":return o.stop()}}),ir)}var gr=Oe().mark(vr);function vr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ur)]);case 2:case"end":return e.stop()}}),gr)}const yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0,n=Qn[t.type];return n?n(e,t):e};var br=i(28721),wr="log/RECEIVE_ENTRY",Or=function(e){return{type:wr,payload:{data:e}}};function kr(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}function xr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?kr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _r=t()({},wr,(function(e,t){var n=t.payload;return xr(xr({},e),{},{entries:[xr(xr({},n.data),{},{key:(0,br.Z)()})].concat(he()(e.entries))})})),Sr={entries:[]};var Ar=i(47979),Er=Oe().mark(Pr),Cr=Oe().mark(jr);function Pr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(jr)]);case 2:case"end":return e.stop()}}),Er)}function jr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Or},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Cr)}var Dr=Oe().mark(Tr);function Tr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Pr)]);case 2:case"end":return e.stop()}}),Dr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sr,t=arguments.length>1?arguments[1]:void 0,n=_r[t.type];return n?n(e,t):e};var Mr,Ir=i(49478);function Nr(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}function Br(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ir.MW,(function(){return Br(Br({},Lr),{},{state:Br(Br({},Lr.state),{},{running:!0})})})),t()(Mr,Ir.LU,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{total:n.total})})})),t()(Mr,Ir.pe,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(Mr,Ir.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(he()(c),[{id:o,type:a,label:i}]),u=Br(Br({},e.checkEvents),{},t()({},a,s));return Br(Br({},e),{},{checkEvents:u})})),t()(Mr,Ir.iK,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{running:!1,result:n.result})})})),t()(Mr,Ir.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),Br(Br({},e),{},{selection:n})})),t()(Mr,Ir.VD,fe.Z.singleTransferReducer("sql")),t()(Mr,Ir.g6,fe.Z.singleTransferReducer("changelog")),Mr),Lr={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var Fr=i(93174),Hr=i(65035);const Ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,ae.jsxs)("div",{children:[(0,ae.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,ae.jsx)(Hr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const Wr=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(Ur);const zr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,ae.jsxs)("div",{children:[(0,ae.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n}}),(0,ae.jsx)(Hr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var qr={setSql:Ir.fq,executeSql:Ir.Rj};const Vr=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),qr)(zr);var Yr=Oe().mark(no),Gr=Oe().mark(ro),Kr=Oe().mark(oo),Xr=Oe().mark(ao),$r=Oe().mark(io),Qr=Oe().mark(co),Jr=Oe().mark(so),eo=function(e){return e.modelValidation.selection},to=function(e){return e.modelValidation.sql};function no(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ro),(0,ke.ib)(Ir.MW,oo),(0,ke.ib)(Ir.EJ,ao),(0,ke.ib)(Ir.es,io),(0,ke.ib)(Ir.dQ,co),(0,ke.ib)(Ir.Ge,so)]);case 2:case"end":return e.stop()}}),Yr)}function ro(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:Ir.QM},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Gr)}function oo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),_e.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),Kr,null,[[0,5]])}function ao(e){var t;return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,ke.gz)(Ir.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,ke.gz)(Ir.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(Ir.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(Ir.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),Xr)}function io(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Ir.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,Vr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),_e.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),$r,null,[[4,14]])}function co(e){var t,n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(to);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),_e.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),Qr,null,[[5,14]])}function so(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Ir.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,Wr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),_e.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Jr,null,[[4,14]])}var uo=Oe().mark(lo);function lo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(no)]);case 2:case"end":return e.stop()}}),uo)}const po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e};var fo,ho=i(22541);function mo(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}function go(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?mo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vo=(fo={},t()(fo,ho.Z9,(function(e,t){var n=t.payload;return e.active?go(go({},e),{},{entries:[go(go({},n.data),{},{key:(0,br.Z)()})].concat(he()(e.entries))}):e})),t()(fo,ho.HI,fe.Z.singleTransferReducer("active")),t()(fo,ho.Zm,fe.Z.singleTransferReducer("elapsed")),fo),yo={entries:[],active:!1,elapsed:null};var bo=Oe().mark(Oo),wo=Oe().mark(ko);function Oo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ko)]);case 2:case"end":return e.stop()}}),bo)}function ko(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:ho.oS},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),wo)}var xo=Oe().mark(_o);function _o(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Oo)]);case 2:case"end":return e.stop()}}),xo)}const So={log:Rr,dbRefactoring:yr,modelValidation:po,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yo,t=arguments.length>1?arguments[1]:void 0,n=vo[t.type];return n?n(e,t):e}};var Ao,Eo,Co=[vr,Tr,lo,_o];function Po(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 jo="devcon",Do=I().lazy((function(){return i.e(85).then(i.bind(i,5702))})),To=function(){return Ao||(Ao=(0,ae.jsx)("div",{children:(0,ae.jsx)(M.Suspense,{fallback:"",children:(0,ae.jsx)(Do,{})})}))},Ro=function(e,n,r,o){var a=qn(So,Co,n,jo);Ge(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Po(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,ae.jsx)(N.F0,{history:i,children:Eo||(Eo=(0,ae.jsx)(To,{}))});return zn(jo,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",jo]})};Vn(jo,Ro)})(),c})()));
56
+ */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},30670:e=>{"use strict";e.exports=function(){}},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(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}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.efa3f846edd2efc0f658.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"a778805d7cea384b25fc",198:"30f57ac2b24d6c67bd48",560:"cbd64d56be150780154f",608:"f4814a72f5246f98fb54",759:"2bc4fee93df731cf6d21",817:"586199136bcea7bd0e90",877:"f6f6e19fe9b59c9681eb"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,f=r.length;f>=0;f--){var d=r[f];"."===d?u(r,f):".."===d?(u(r,f),p++):p&&(u(r,f),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},d=function(e,t){return f(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).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(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},k=function(e,t){return t(window.confirm(e))},x=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},S=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=x(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?k:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||f(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=d(i,D)),v(i,o,n)},R=function(){return Math.random().toString(36).substr(2,g)},M=y(),I=function(e){E(ee,e),ee.length=t.length,M.notifyListeners(ee.location,ee.action)},N=function(e){S(e)||L(T(e.state))},B=function(){L(T(j()))},Z=!1,L=function(e){if(Z)Z=!1,I();else{M.confirmTransitionTo(e,"POP",u,(function(t){t?I({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=U.indexOf(t.key);-1===n&&(n=0);var r=U.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(Z=!0,V(o))},H=T(j()),U=[H.key],W=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":A(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=v(e,o,R(),ee.location);M.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=U.indexOf(ee.location.key),p=U.slice(0,-1===l?0:l+1);p.push(i.key),U=p,I({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":A(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=v(e,o,R(),ee.location);M.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=U.indexOf(ee.location.key);-1!==l&&(U[l]=i.key),I({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},V=function(e){t.go(e)},Y=function(){return V(-1)},G=function(){return V(1)},K=0,X=function(e){1===(K+=e)?(w(window,C,N),o&&w(window,P,B)):0===K&&(O(window,C,N),o&&O(window,P,B))},$=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=M.setPrompt(e);return $||(X(1),$=!0),function(){return $&&($=!1,X(-1)),t()}},J=function(e){var t=M.appendListener(e);return X(1),function(){X(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:W,push:z,replace:q,go:V,goBack:Y,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,R,M=i(1024),I=i.n(M),N=i(56746),B="tocco-util/LOG_ERROR",Z=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:B,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),U=i.n(H),W=i(93913),z=i.n(W),q=i(2205),V=i.n(q),Y=i(78585),G=i.n(Y),K=i(29754),X=i.n(K),$=i(44012),Q=i(28655),J=i.n(Q),ee=i(38205),te=i(30759),ne=i(24875),re=i(7281),oe=ee.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=J()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,te.Z)(),(function(e){return e.theme.colors.signal.danger.text}),ne.FS.color("paper"),re.Z.space(-.5)),ae=i(85893);const ie=function(){return R||(R=(0,ae.jsx)(oe,{children:(0,ae.jsx)($.Z,{id:"client.component.errorBoundary.text"})}))};var ce;function se(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=X()(e);if(t){var o=X()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var ue=function(e){V()(n,e);var t=se(n);function n(e){var r;return U()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ce||(ce=(0,ae.jsx)(ie,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(M.Component);const le=ue;var pe={logError:Z};(0,F.connect)(null,pe)((0,L.ZP)(le));var fe=i(81770),de=i(319),he=i.n(de);function me(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}function ge(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?me(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ve=t()({},B,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return ge(ge({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(he()(e.messages)).slice(0,100)})})),ye={messages:[]};function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,t=arguments.length>1?arguments[1]:void 0,n=ve[t.type];return n?n(e,t):e}var we=i(87757),Oe=i.n(we),ke=i(34857),xe=i(50600),_e=i(44759),Se=Oe().mark(Ae);function Ae(e,t,n){return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(_e.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),Se)}var Ee=i(15516),Ce=Oe().mark(Pe);function Pe(e,t,n){var r;return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Ce)}var je=i(48926),De=i.n(je),Te=i(54159),Re="error",Me=function(){var e=De()(Oe().mark((function e(t){var n;return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),_e.Z.logError(n),e.next=4,Ne(Re,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=De()(Oe().mark((function e(t){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _e.Z.logError(t),e.next=3,Ne(Re,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=De()(Oe().mark((function e(t,n){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Te.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Be={logError:Ie,logException:Me};var Ze=Oe().mark(Le);function Le(e,t,n){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Be.logException,n);case 2:case"end":return e.stop()}}),Ze)}const Fe={console:Ae,notification:Pe,remote:Le};var He=Oe().mark(ze),Ue=Oe().mark(qe),We=Oe().mark(Ve);function ze(e,t){return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(B,qe,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(B,Ve);case 7:case"end":return n.stop()}}),He)}function qe(e,t){var n,r,o,a;return Oe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Fe[e],r,o,a)})));case 4:case"end":return i.stop()}}),Ue)}function Ve(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),We)}const Ye=Z,Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&fe.Z.injectReducers(e,{errorLogging:be}),e.sagaMiddleware.run(ze,t,n)};var Ke=i(93386),Xe=i.n(Ke),$e=(i(30314),i(2100)),Qe="cache/INITIALISE",Je="cache/SET_INITIALISED",et=function(e){return{type:Je,payload:{initialised:e}}},tt=t()({},Je,fe.Z.singleTransferReducer("initialised")),nt={initialised:!1};function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,t=arguments.length>1?arguments[1]:void 0,n=tt[t.type];return n?n(e,t):e}var ot=i(79311),at=i(97222),it=Oe().mark(ct);function ct(){var e,t,n,r,o,a,i,c,s;return Oe().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,ke.RE)(at.Z.hasRevisionIdChanged);case 2:return e=u.sent,t=ot.Z.getLongTerm("session","locale"),n=ot.Z.getLongTerm("session","principal"),u.next=7,(0,ke.RE)($e.Z.loadUserWithLocale);case 7:return r=u.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=!t||t!==o,s=n&&(n.currentBusinessUnit.id!==i||n.username!==a),u.abrupt("return",c||s||e);case 12:case"end":return u.stop()}}),it)}var st=Oe().mark(lt),ut=Oe().mark(ft);function lt(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Qe,ft)]);case 2:case"end":return e.stop()}}),st)}var pt=!1;function ft(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!pt){e.next=4;break}return e.next=3,(0,ke.gz)(et(!0));case 3:return e.abrupt("return");case 4:return e.next=6,(0,ke.RE)(ct);case 6:if(!e.sent){e.next=10;break}return e.next=10,(0,ke.RE)(ot.Z.clearAll);case 10:return pt=!0,e.next=13,(0,ke.gz)(et(!0));case 13:case"end":return e.stop()}}),ut)}var dt,ht,mt,gt,vt=i(63038),yt=i.n(vt),bt=i(93235),wt=i(34206),Ot=i(69829),kt=(0,ee.F4)(dt||(dt=J()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),xt=(0,ee.iv)(ht||(ht=J()(["\n animation: "," 400ms ease-in-out both;\n"])),kt),_t=ee.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(mt||(mt=J()(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),re.Z.space(-1),xt,Ot.Fe,re.Z.space(-1));const St=ee.ZP.div.withConfig({displayName:"StyledLoadMask"})(gt||(gt=J()(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var At;const Et=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,M.useState)(!1),c=yt()(i,2),s=c[0],u=c[1],l=(0,M.useState)(!0),p=yt()(l,2),f=p[0],d=p[1];(0,M.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){f&&u(e)}(!0)})),function(){d(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,ae.jsx)(St,{className:a,children:h?r:(0,ae.jsxs)(_t,{children:[At||(At=(0,ae.jsx)(bt.Z,{size:"30px"},"loading-spinner")),o&&(0,ae.jsx)(wt.ZP.Span,{children:o},"loadingText")]})})};const Ct=function(e){var t=e.children,n=e.initialised;return(0,ae.jsx)(Et,{required:[n],children:t})};const Pt={addToStore:function(e){fe.Z.injectReducers(e,{cache:rt}),e.sagaMiddleware.run(lt)},initialise:function(){return{type:Qe}},CacheInitLoadMask:(0,F.connect)((function(e){return{initialised:!e.cache||e.cache.initialised}}))((0,L.ZP)(Ct)),hasInvalidCache:ct};var jt=i(21101),Dt=i(5435);const Tt={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var Rt=i(85743),Mt="keyDown/SET_CONFIG",It="keyDown/KEY_DOWN",Nt=function(e){return{type:Mt,payload:{config:e}}},Bt=function(e){return{type:It,payload:{config:e}}},Zt=t()({},Mt,fe.Z.singleTransferReducer("config")),Lt={config:[]};function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=arguments.length>1?arguments[1]:void 0,n=Zt[t.type];return n?n(e,t):e}var Ht=Oe().mark(zt),Ut=Oe().mark(qt),Wt=Oe().mark(Vt);function zt(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(qt,e),(0,ke.ib)(It,Vt)]);case 2:case"end":return t.stop()}}),Ht)}function qt(e){return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(Nt(e));case 2:case"end":return t.stop()}}),Ut)}function Vt(e){var t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),Wt)}var Yt,Gt=ee.ZP.div.withConfig({displayName:"StyledDiv"})(Yt||(Yt=J()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const Kt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,M.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,M.useCallback)((function(e){return o(e,!0)}),[o]);return(0,M.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,ae.jsx)(Gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var Xt={keyDownHandler:Bt};const $t={keyDown:Bt,addToStore:function(e,t){fe.Z.injectReducers(e,{keyDown:Ft}),e.sagaMiddleware.run(zt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),Xt)(Kt)};var Qt,Jt,en,tn=ee.ZP.div.withConfig({displayName:"StyledApp"})(Qt||(Qt=J()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),nn=i(82492),rn=i.n(nn),on=i(76538),an=(0,ee.vJ)(Jt||(Jt=J()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),ne.FS.color("signal.success.text"),ne.FS.color("signal.info.text"),ne.FS.color("signal.warning.text"),ne.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,on._j)(.4,t.colors.paper)})),cn=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,M.useMemo)((function(){return rn()({},t,n)}),[t,n]);return(0,ae.jsxs)(ee.f6,{theme:o||a,children:[en||(en=(0,ae.jsx)(an,{})),r]})};cn.defaultProps={defaultTheme:Dt.Z};const sn=(0,ee.Zz)(cn);var un=i(93379),ln=i.n(un),pn=i(7795),fn=i.n(pn),dn=i(90569),hn=i.n(dn),mn=i(3565),gn=i.n(mn),vn=i(19216),yn=i.n(vn),bn=i(44589),wn=i.n(bn),On=i(36420),kn={};kn.styleTagTransform=wn(),kn.setAttributes=gn(),kn.insert=hn().bind(null,"head"),kn.domAPI=fn(),kn.insertStyleElement=yn();ln()(On.Z,kn);On.Z&&On.Z.locals&&On.Z.locals;var xn=function(e){return"widget"===e?Tt:Dt.Z};const _n=function(e){var t=e.store,n=e.initIntlPromise,r=e.content,o=e.theme,a=(0,M.useCallback)((function(e){e&&i.e(198).then(i.bind(i,23636)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),c=Rt.Z.getEmbedType();return(0,ae.jsx)(sn,{customTheme:o,defaultTheme:xn(c),children:(0,ae.jsx)(F.Provider,{store:t,children:(0,ae.jsx)($t.KeyDownWatcher,{children:(0,ae.jsx)(Et,{promises:[n],children:(0,ae.jsx)(jt.Pj,{children:(0,ae.jsx)(Pt.CacheInitLoadMask,{children:(0,ae.jsx)(tn,{ref:a,children:r})})})})})})})};var Sn="input/SET_INPUT",An="input/INPUT_INITIALIZED",En=function(e,t){e.forEach((function(e){t.dispatch(e)}))},Cn=function(e){i.p=e},Pn=function(e,t,n,r){var o=Xe()([n],r),a=e?e.locale:null;return $e.Z.initIntl(t,o,a)},jn=i(15857),Dn=(i(28500),i(44422));function Tn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Rn=Tn();Rn.withExtraArgument=Tn;const Mn=Rn;var In=i(24688);function Nn(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}function Bn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zn=t()({},Sn,(function(e,t){var n=t.payload;return Bn(Bn({},e),n)})),Ln={};const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln,t=arguments.length>1?arguments[1]:void 0,n=Zn[t.type];return n?n(e,t):e};function Hn(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}function Un(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wn=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(41609),i(18446),i(35937),i(35997);const zn=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var f=a.customTheme;u&&Cn(u),c&&En(c,n),n.dispatch({type:An}),n.dispatch(Pt.initialise());var d=Pn(a,n,e,p);return{component:(0,ae.jsx)(_n,{store:n,initIntlPromise:d,content:t,theme:f}),store:n,methods:{setLocale:function(e){return $e.Z.changeLocale(n,p,e)}}}}catch(e){try{n.dispatch(Ye("Error","Error creating react application: ",e))}catch(t){_e.Z.logError("Error creating react application: ",e),_e.Z.logError("Unable to log error: ",t)}}},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wn(n),o=(0,Dn.ZP)(),a=(0,jn.md)(Mn,o),i=Un(Un({},e),{},{input:Fn,intl:jt._8});e=(0,jn.UY)(i);var c=(0,jn.MT)(e,r,a);if(c.allReducers=i,c.sagas=t,c.sagaMiddleware=o,c.hotReloadReducers=fe.Z.hotReloadReducers,t&&t.length>0){var s=In.Z.createGenerator(t.map((function(e){return(0,ke.rM)(e)})));o.run(In.Z.autoRestartSaga(s,null,Ye))}return c},Vn=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var Yn,Gn=i(48479);function Kn(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}function Xn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Kn(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $n=function(e,n){return function(r,o){return Xn(Xn({},r),{},t()({},n||o.payload.path,Xn(Xn({},r[n||o.payload.path]),{},{running:e})))}},Qn=(Yn={},t()(Yn,Gn.b0,fe.Z.singleTransferReducer("version","dbRefactoring")),t()(Yn,Gn.FX,fe.Z.singleTransferReducer("modules","dbRefactoring")),t()(Yn,Gn._2,fe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(Yn,Gn.ZD,fe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(Yn,Gn.Pt,(function(e,t){return Xn(Xn({},e),{},{dbRefactoring:Xn(Xn({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(Yn,Gn.Hx,(function(e,t){return Xn(Xn({},e),{},{dbRefactoring:Xn(Xn({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(he()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(Yn,Gn.X7,$n(!0,"dbRefactoring")),t()(Yn,Gn.DN,$n(!1)),t()(Yn,Gn.AF,fe.Z.singleTransferReducer("language","languageUpgrade")),t()(Yn,Gn.Bw,$n(!0,"languageUpgrade")),Yn),Jn={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var er=Oe().mark(ur),tr=Oe().mark(lr),nr=Oe().mark(pr),rr=Oe().mark(fr),or=Oe().mark(dr),ar=Oe().mark(hr),ir=Oe().mark(mr),cr=function(e){return e.dbRefactoring.dbRefactoring},sr=function(e){return e.dbRefactoring.languageUpgrade};function ur(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(Gn.VQ,lr),(0,ke.Fm)(Gn.Tf,pr),(0,ke.Fm)(Gn.X7,fr),(0,ke.Fm)(Gn.Bw,dr)]);case 2:case"end":return e.stop()}}),er)}function lr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),tr)}function pr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(Gn.Rg(e.body));case 5:case"end":return t.stop()}}),nr)}function fr(){var e,t,n,r,o,a;return Oe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(hr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),rr)}function dr(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(sr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(hr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),or)}function hr(e,t){var n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(at.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(mr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),_e.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),ar,null,[[1,9]])}function mr(e,t){var n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(at.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(Gn.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,ke.gz)(Gn.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(mr,e);case 22:case"end":return o.stop()}}),ir)}var gr=Oe().mark(vr);function vr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(ur)]);case 2:case"end":return e.stop()}}),gr)}const yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn,t=arguments.length>1?arguments[1]:void 0,n=Qn[t.type];return n?n(e,t):e};var br=i(28721),wr="log/RECEIVE_ENTRY",Or=function(e){return{type:wr,payload:{data:e}}};function kr(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}function xr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?kr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _r=t()({},wr,(function(e,t){var n=t.payload;return xr(xr({},e),{},{entries:[xr(xr({},n.data),{},{key:(0,br.Z)()})].concat(he()(e.entries))})})),Sr={entries:[]};var Ar=i(47979),Er=Oe().mark(Pr),Cr=Oe().mark(jr);function Pr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(jr)]);case 2:case"end":return e.stop()}}),Er)}function jr(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Or},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Cr)}var Dr=Oe().mark(Tr);function Tr(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Pr)]);case 2:case"end":return e.stop()}}),Dr)}const Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sr,t=arguments.length>1?arguments[1]:void 0,n=_r[t.type];return n?n(e,t):e};var Mr,Ir=i(49478);function Nr(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}function Br(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=(Mr={},t()(Mr,Ir.MW,(function(){return Br(Br({},Lr),{},{state:Br(Br({},Lr.state),{},{running:!0})})})),t()(Mr,Ir.LU,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{total:n.total})})})),t()(Mr,Ir.pe,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(Mr,Ir.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(he()(c),[{id:o,type:a,label:i}]),u=Br(Br({},e.checkEvents),{},t()({},a,s));return Br(Br({},e),{},{checkEvents:u})})),t()(Mr,Ir.iK,(function(e,t){var n=t.payload;return Br(Br({},e),{},{state:Br(Br({},e.state),{},{running:!1,result:n.result})})})),t()(Mr,Ir.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),Br(Br({},e),{},{selection:n})})),t()(Mr,Ir.VD,fe.Z.singleTransferReducer("sql")),t()(Mr,Ir.g6,fe.Z.singleTransferReducer("changelog")),Mr),Lr={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var Fr=i(93174),Hr=i(65035);const Ur=function(e){var t=e.changelog,n=e.setChangelog,r=e.executeChangelog,o=e.close;return(0,ae.jsxs)("div",{children:[(0,ae.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n},readOnly:!r}),r&&(0,ae.jsx)(Hr.Z,{look:"raised",onClick:function(){r&&r(o)},label:"Execute Changelog"})]})};const Wr=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(Ur);const zr=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,ae.jsxs)("div",{children:[(0,ae.jsx)(Fr.Z,{type:"text",value:t,events:{onChange:n}}),(0,ae.jsx)(Hr.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})]})};var qr={setSql:Ir.fq,executeSql:Ir.Rj};const Vr=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),qr)(zr);var Yr=Oe().mark(no),Gr=Oe().mark(ro),Kr=Oe().mark(oo),Xr=Oe().mark(ao),$r=Oe().mark(io),Qr=Oe().mark(co),Jr=Oe().mark(so),eo=function(e){return e.modelValidation.selection},to=function(e){return e.modelValidation.sql};function no(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ro),(0,ke.ib)(Ir.MW,oo),(0,ke.ib)(Ir.EJ,ao),(0,ke.ib)(Ir.es,io),(0,ke.ib)(Ir.dQ,co),(0,ke.ib)(Ir.Ge,so)]);case 2:case"end":return e.stop()}}),Yr)}function ro(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:Ir.QM},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Gr)}function oo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),_e.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),Kr,null,[[0,5]])}function ao(e){var t;return Oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,ke.gz)(Ir.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,ke.gz)(Ir.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(Ir.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(Ir.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),Xr)}function io(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Ir.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,Vr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),_e.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),$r,null,[[4,14]])}function co(e){var t,n,r;return Oe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(to);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),_e.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),Qr,null,[[5,14]])}function so(){var e,t,n;return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(eo);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(at.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(Ir.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,Wr,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),_e.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Jr,null,[[4,14]])}var uo=Oe().mark(lo);function lo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(no)]);case 2:case"end":return e.stop()}}),uo)}const po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,t=arguments.length>1?arguments[1]:void 0,n=Zr[t.type];return n?n(e,t):e};var fo,ho=i(22541);function mo(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}function go(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?mo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vo=(fo={},t()(fo,ho.Z9,(function(e,t){var n=t.payload;return e.active?go(go({},e),{},{entries:[go(go({},n.data),{},{key:(0,br.Z)()})].concat(he()(e.entries))}):e})),t()(fo,ho.HI,fe.Z.singleTransferReducer("active")),t()(fo,ho.Zm,fe.Z.singleTransferReducer("elapsed")),fo),yo={entries:[],active:!1,elapsed:null};var bo=Oe().mark(Oo),wo=Oe().mark(ko);function Oo(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(ko)]);case 2:case"end":return e.stop()}}),bo)}function ko(){var e;return Oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:ho.oS},t.next=3,(0,ke.RE)(Ar.Z.connectSocket,e);case 3:case"end":return t.stop()}}),wo)}var xo=Oe().mark(_o);function _o(){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Oo)]);case 2:case"end":return e.stop()}}),xo)}const So={log:Rr,dbRefactoring:yr,modelValidation:po,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yo,t=arguments.length>1?arguments[1]:void 0,n=vo[t.type];return n?n(e,t):e}};var Ao,Eo,Co=[vr,Tr,lo,_o];function Po(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 jo="devcon",Do=I().lazy((function(){return i.e(85).then(i.bind(i,5702))})),To=function(){return Ao||(Ao=(0,ae.jsx)("div",{children:(0,ae.jsx)(M.Suspense,{fallback:"",children:(0,ae.jsx)(Do,{})})}))},Ro=function(e,n,r,o){var a=qn(So,Co,n,jo);Ge(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Po(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,ae.jsx)(N.F0,{history:i,children:Eo||(Eo=(0,ae.jsx)(To,{}))});return zn(jo,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",jo]})};Vn(jo,Ro)})(),c})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {