tocco-devcon 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/{chunk-code-editor.0a7af378852500e55003.js → chunk-code-editor.35d2efa5c5510008c076.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{9587:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Qt});var r,l=t(80467),o=t(31366),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=t(44066),p=t(70696),h=t(10535),g=t(78958),b=t(45915),m=t(91411),y=t(58804),v=t(37188);const x=(0,y.ZP)(v.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,m.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const j=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var Z,k,O=t(88162),P=t(27361),S=t.n(P),C=t(88601),_=t(58664),D=(Z={},(0,d.Z)(Z,g.Z.condition.BASE,"inherit"),(0,d.Z)(Z,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(Z,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(Z,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(Z,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(Z,g.Z.condition.INFO,C.Z.color("signal.info.text")),Z),R=(0,y.ZP)(v.EF).withConfig({displayName:"StyledSignalListItem"})(k||(k=(0,m.Z)(["\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 D[e.condition]||"inherit"}(e)}));R.propTypes={condition:g.Z.conditionPropTypes(D)};const N=R;var L,E,M=(L={},(0,d.Z)(L,g.Z.condition.BASE,!1),(0,d.Z)(L,g.Z.condition.PRIMARY,!1),(0,d.Z)(L,g.Z.condition.DANGER,"times"),(0,d.Z)(L,g.Z.condition.SUCCESS,"check"),(0,d.Z)(L,g.Z.condition.WARNING,"exclamation-triangle"),(0,d.Z)(L,g.Z.condition.INFO,"info"),L),T=function(e){var n=M[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):E||(E=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(N,{condition:e.condition,children:[T(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};I.defaultProps={condition:g.Z.condition.BASE};const F={List:j,Item:I};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,b.Z)(e.error[t]))})),(0,w.jsx)(F.List,{children:n.map((function(e,n){return(0,w.jsx)(F.Item,{condition:"danger",label:e},n)}))})};var V,A,H,z,B,W,$,G=t(79686),U=t(7281),Y=t(30759),K=t(40953),J="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},X=y.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(V||(V=(0,m.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),ee=y.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(A||(A=(0,m.Z)(["\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 ","\n pointer-events: auto;\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Y.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return K.v[(n=e,t=n.isDisplay,r=n.immutable,l=n.signal,o=n.hasValue,l?"signal":o?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,l,o}),U.Z.space(-2),U.Z.font(0),U.Z.space(-2),(function(e){return e.immutable&&"0"}),U.Z.font(0),(function(e){return Q(e)})),ne=y.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(H||(H=(0,m.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n ","\n ","\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\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"])),J,(function(e){return K.m[(n=e,t=n.immutable,r=n.isDisplay,l=n.signal,n.isDirty?"isDirty":r||t?"transparent":l?"signal":"shade1")](e);var n,t,r,l}),U.Z.space(-1),U.Z.space(-1),U.Z.space(-2),U.Z.space(-1),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&U.Z.space(-1)}),(function(e){return e.immutable&&U.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&U.Z.space(-1)}),(function(e){return e.isDisplay&&"0"}),G.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),te=y.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(z||(z=(0,m.Z)(["\n &&& {\n ","\n }\n"])),(0,Y.Z)({fontSize:U.Z.font(-1)})),re=y.ZP.div.withConfig({displayName:"StyledStatedValueError"})(B||(B=(0,m.Z)([""]))),le=y.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(W||(W=(0,m.Z)(["\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"])),U.Z.space(-1),U.Z.space(-2),ne,te,re,U.Z.space(-2),te,re,U.Z.space(-1),J,v.hc,U.Z.space(-2));y.ZP.input.withConfig({displayName:"StyledInput"})($||($=(0,m.Z)(["\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 oe(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 ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ie=function(e){var n,t,r=e.children,l=e.description,o=e.dirty,a=e.isDisplay,i=e.error,c=e.hasValue,s=e.id,u=e.label,d=e.mandatory,b=e.mandatoryTitle,m=e.immutable,y=e.touched,v=e.signal,x=!m&&y&&i&&Object.keys(i).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(d&&b?", ".concat(b):""),Z=v||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(o,x,d,c);return(0,w.jsx)(f.Z,{children:function(e){var f=e.getRef;return(0,w.jsxs)(le,{ref:f,children:[(0,w.jsxs)(ne,{hasValue:c,immutable:m,isDisplay:a,signal:Z,children:[r,u&&(0,w.jsx)(X,{children:(0,w.jsx)(ee,ae(ae({},!a&&!m&&{htmlFor:s}),{},{hasValue:c,dirty:o,title:j,immutable:m,isDisplay:a,signal:Z,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(d?" *":"")}})}))})]}),l&&(n||(n=(0,w.jsx)(te,{children:l}))),x&&(t||(t=(0,w.jsx)(re,{children:(0,w.jsx)(q,{error:i})})))]})}})};var ce,se,ue=t(8270),de=t(65035),fe=t(28655),pe=t.n(fe),he=t(51032),ge=y.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=pe()(["\n && {\n ","\n }\n"])),he.k9),be=y.ZP.div.withConfig({displayName:"StyledInputWrapper"})(se||(se=pe()(["\n && {\n ","\n }\n"])),he.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,l=e.setFragmentSelected;return(0,w.jsx)(w.Fragment,{children:n.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){l(n,e.target.checked)}),disabled:r}),(0,w.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,l=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===l.length&&f()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ie,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(ue.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:c})}),(0,w.jsx)(ie,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:l,selectedFragments:o,disabled:c,setFragmentSelected:h})}),(0,w.jsx)(ie,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,w.jsx)(ie,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var ve={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const xe=(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}}),ve)(ye);const we=function(e){var n=e.language,t=e.running,r=e.disabled,l=e.executeLanguageUpgrade,o=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l()},children:[(0,w.jsx)(ie,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var je={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const Ze=(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)(we);var ke,Oe,Pe,Se;const Ce=function(){return(0,w.jsxs)(w.Fragment,{children:[ke||(ke=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(xe,{})),Pe||(Pe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Se||(Se=(0,w.jsx)(Ze,{}))]})};var _e,De,Re,Ne,Le,Ee,Me,Te=t(63038),Ie=t.n(Te),Fe={ERROR:"#a00"},qe=y.ZP.div.withConfig({displayName:"StyledLogTable"})(_e||(_e=pe()(["\n display: grid;\n gap: 1px;\n"]))),Ve=y.ZP.div.withConfig({displayName:"StyledLogEntry"})(De||(De=pe()(["\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(Fe[e.level]||"#ddd",";")})),Ae=y.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=pe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),He=y.ZP.span.withConfig({displayName:"StyledTime"})(Ne||(Ne=pe()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),ze=y.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Le||(Le=pe()(["\n margin-top: 1em;\n"]))),Be=y.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ee||(Ee=pe()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),We=y.ZP.div.withConfig({displayName:"StyledStackTrace"})(Me||(Me=pe()(["\n && {\n ","\n }\n"])),(0,Y.Z)()),$e=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ge=function(e){var n=e.exception;return(0,w.jsxs)(ze,{children:[(0,w.jsx)(Be,{children:n.detailMessage}),(0,w.jsx)(We,{children:n.stackTrace.map((function(e,n){return(0,w.jsx)("div",{children:$e(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),l=r[0],o=r[1];return(0,w.jsxs)(Ve,{level:n.level,children:[(0,w.jsx)(Ae,{onClick:function(){n.exception&&o(!l)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(He,{children:new Date(n.timestamp).toLocaleString()}),l&&(0,w.jsx)(Ge,{exception:n.exception})]})};var Ye;const Ke=function(e){var n=e.entries;return(0,w.jsx)(qe,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ye||(Ye=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Je=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Ke);var Qe,Xe;const en=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Xe||(Xe=(0,w.jsx)(Je,{}))]})};var nn,tn,rn=t(49478),ln=y.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(nn||(nn=pe()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=y.ZP.div.withConfig({displayName:"StyledGroupHeading"})(tn||(tn=pe()(["\n margin-bottom: 1em;\n"])));function an(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 cn(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 cn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,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,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}function cn(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 sn=function(e){var n=e.type,t=e.events,r=e.selection,l=e.setSelected,o=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var l=t.value;if(!n.has(l.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(ln,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){l(t.map((function(e){return e.id})),e.target.checked)}}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,w.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){l([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const un=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,l=e.generateSql,o=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(de.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(de.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,w.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,w.jsx)(sn,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var dn={setSelected:rn.Pq,generateSql:rn.$i,generateChangelog:rn._w};const fn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),dn)(un);var pn,hn,gn,bn=y.ZP.div.withConfig({displayName:"StyledProgressBar"})(pn||(pn=pe()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=y.ZP.div.withConfig({displayName:"StyledInnerProgress"})(hn||(hn=pe()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),yn=y.ZP.div.withConfig({displayName:"StyledProgressText"})(gn||(gn=pe()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),vn=function(e){return e.result?e.result:e.running?e.total?"".concat(xn(e),"%"):"Preparing...":"Not started"},xn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const wn=function(e){var n=e.state;return(0,w.jsxs)(bn,{children:[(0,w.jsx)(mn,{percentage:xn(n)}),(0,w.jsx)(yn,{children:vn(n)})]})};const jn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(de.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(wn,{state:n})]})};var Zn={startValidation:rn.YV};const kn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),Zn)(jn);var On,Pn,Sn;const Cn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Pn||(Pn=(0,w.jsx)(kn,{})),Sn||(Sn=(0,w.jsx)(fn,{}))]})};var _n=t(22541),Dn=t(68957),Rn=t(57557),Nn=t.n(Rn),Ln=t(2091),En=t(92135),Mn=t(84541),Tn=t(81084),In=t(75502),Fn=t(87486),qn=t(95395);function Vn(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 An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Vn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Vn(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,Mn.Z)(e,Hn)?(0,Tn.default)(e,Hn,new Date):(0,Mn.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Mn.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,Fn.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 An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}}};var Wn,$n,Gn,Un,Yn,Kn,Jn,Qn=y.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Wn||(Wn=(0,m.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Xn=y.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})($n||($n=(0,m.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),et=y.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Gn||(Gn=(0,m.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),nt=y.ZP.div.withConfig({displayName:"StyledRange"})(Un||(Un=(0,m.Z)(["\n display: flex;\n"]))),tt=y.ZP.div.withConfig({displayName:"StyledInput"})(Yn||(Yn=(0,m.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),rt=y.ZP.div.withConfig({displayName:"StyledExtender"})(Kn||(Kn=(0,m.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function lt(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 ot(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?lt(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var at="expanded_initial",it="expanded",ct="collapsed";const st=function(e){var n,t,r=e.value,l=e.events,o=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded,f=(0,s.useState)(d?at:ct),p=(0,Dn.Z)(f,2),h=p[0],g=p[1],b=Bn[a];(0,s.useEffect)((function(){h===at&&r&&!r.isRangeValue?l.onChange({from:r,to:void 0,isRangeValue:!0}):h!==it||null!=r&&r.isRangeValue?h===ct&&null!=r&&r.isRangeValue&&l.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)):l.onChange(function(e){return null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0}}(r))}),[h,r,l,b]);var m=(null==r?void 0:r.isRangeValue)||!1,y=(0,s.useRef)(r);y.current=r;var v=(0,s.useMemo)((function(){return ot(ot({},l),{},{onChange:function(e){l.onChange(e)}})}),[l]),x={onChange:function(e){l.onChange(ot(ot({},y.current),{},{to:e}))}},j={onChange:function(e){l.onChange(ot(ot({},y.current),{},{from:e}))}},Z=(null==b||null===(n=b.icons)||void 0===n?void 0:n.range)||"chevron-down",k=(null==b||null===(t=b.icons)||void 0===t?void 0:t.single)||"chevron-left",P=(null==b?void 0:b.type)||a;return(0,w.jsxs)(nt,{children:[(0,w.jsx)(Qn,{children:m?(0,w.jsxs)(tt,{children:[(0,w.jsx)(Xn,{children:(0,w.jsx)(En.Z,ot(ot({},e),{},{options:function(e,n){return null!=b&&b.getFromOptions?b.getFromOptions(e,n):e}(i,r.to),value:(null==r?void 0:r.from)||null,events:j,placeholder:c}))}),Jn||(Jn=(0,w.jsx)(et,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Xn,{children:(0,w.jsx)(En.Z,ot(ot({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,r.from),value:(null==r?void 0:r.to)||null,events:x,placeholder:u}))})]}):(0,w.jsx)(En.Z,ot(ot({type:P},Nn()(e,["type"])),{},{events:v}))}),(0,w.jsx)(rt,{children:(0,w.jsx)(Ln.Z,{disabled:o,icon:m?k:Z,onClick:function(){g(m?ct:it)}})})]})};const ut=function(e){var n=e.active,t=e.elapsed,r=e.setActive,l=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ie,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ie,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(st,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){l(e)}}})})]})};var dt={setActive:_n.Iv,setElapsed:_n.uI};const ft=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),dt)(ut);var pt,ht,gt,bt,mt,yt,vt,xt={ERROR:"#a00"},wt=y.ZP.div.withConfig({displayName:"StyledLogTable"})(pt||(pt=pe()(["\n display: grid;\n gap: 1px;\n"]))),jt=y.ZP.div.withConfig({displayName:"StyledLogEntry"})(ht||(ht=pe()(["\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(xt[e.level]||"#ddd",";")})),Zt=y.ZP.span.withConfig({displayName:"StyledStatementHeader"})(gt||(gt=pe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),kt=y.ZP.span.withConfig({displayName:"StyledStatement"})(bt||(bt=pe()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Ot=y.ZP.span.withConfig({displayName:"StyledTime"})(mt||(mt=pe()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Pt=y.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(yt||(yt=pe()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),St=y.ZP.span.withConfig({displayName:"StyledElapsed"})(vt||(vt=pe()(["\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 Ct=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),l=r[0],o=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(jt,{children:[(0,w.jsx)(Zt,{expandable:a,onClick:function(){a&&o(!l)},children:i}),l&&(0,w.jsx)(kt,{children:n.sql}),(0,w.jsx)(Ot,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(Pt,{children:(0,w.jsxs)(St,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var _t;const Dt=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,w.jsx)(wt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ct,{entry:e},e.key)})):_t||(_t=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Rt=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Dt);var Nt,Lt,Et;const Mt=function(){return(0,w.jsxs)(w.Fragment,{children:[Nt||(Nt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Lt||(Lt=(0,w.jsx)(ft,{})),Et||(Et=(0,w.jsx)(Rt,{}))]})};var Tt,It=t(96559);const Ft=(0,y.ZP)(It.rU)(Tt||(Tt=(0,m.Z)(["\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,Y.Z)(),C.Z.color("secondary"),C.Z.color("text"),C.Z.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,_.HO)(S()(t,"colors.text"),2):(0,_.HO)(S()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var qt,Vt,At,Ht,zt,Bt,Wt,$t,Gt,Ut,Yt=y.ZP.div.withConfig({displayName:"StyledDevCon"})(qt||(qt=pe()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),C.Z.color("paper"),U.Z.space(0)),Kt=y.ZP.div.withConfig({displayName:"StyledNavigation"})(Vt||(Vt=pe()(["\n display: flex;\n"]))),Jt=(0,y.ZP)(Ft).withConfig({displayName:"StyledRouterLink"})(At||(At=pe()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Qt=function(){return(0,w.jsxs)(Yt,{children:[Ht||(Ht=(0,w.jsx)(o.Z.Notifications,{})),zt||(zt=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),Bt||(Bt=(0,w.jsxs)(Kt,{children:[(0,w.jsx)(Jt,{to:"/log",children:"Log"}),(0,w.jsx)(Jt,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(Jt,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(Jt,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(l.rs,{children:[(0,w.jsx)(l.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(l.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(l.AW,{path:"/log",exact:!0,render:function(){return Wt||(Wt=(0,w.jsx)(en,{}))}}),(0,w.jsx)(l.AW,{path:"/dbrefactoring",exact:!0,render:function(){return $t||($t=(0,w.jsx)(Ce,{}))}}),(0,w.jsx)(l.AW,{path:"/modelvalidation",exact:!0,render:function(){return Gt||(Gt=(0,w.jsx)(Cn,{}))}}),(0,w.jsx)(l.AW,{path:"/sqllog",exact:!0,render:function(){return Ut||(Ut=(0,w.jsx)(Mt,{}))}})]})]})}},24295:(e,n,t)=>{t.r(n),t.d(n,{default:()=>xe});var r=t(68957),l=t(91411),o=t(86249),a=t.n(o),i=(t(58900),t(78634)),c=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),p=t(81896),h=t(46940),g=t(27361),b=t.n(g),m=t(14293),y=t.n(m),v=t(13218),x=t.n(v),w=t(47037),j=t.n(w),Z=t(1024),k=t(58804),O=(t(39335),t(28212),t(6488),t(32510),t(79657),t(20844),t(41030),t(98827),t(37363),t(53299),t(54159)),P=function(e){return O.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),D=t(32208),R=t(99357),N=t(19241),L=(t(70646),t(1469)),E=t.n(L),M=t(30236),T=t.n(M),I=["==","!=","<=",">=","<",">","~="],F=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],V=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],A=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function H(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}const z=function(e){return function(n){(0,D.Z)(r,n);var t=H(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var l=[{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(A.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],o={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(l),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(I.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(V.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(q.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(l,[{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(l,[{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=T()(n.$rules,o,(function(e,n){return E()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function B(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var W=function(e){(0,D.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(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(0,C.Z)(t)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules),$=function(e){(0,D.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],l=[{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 o in e.$rules)e.$rules[o].unshift.apply(e.$rules[o],l);e.embedRules(W,"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(z(),"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=T()(e.$rules,i,(function(e,n){return E()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),G=t(52902),U=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,n){return K(e.getCurrentToken())===n},Q=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!J(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return J(e,"rparen")?1:n>0&&J(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&J(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,U.Z)(re(e))):[]}if(J(e,"order_by")){if(X(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=ee(e,n),!e.stepBackward())return null}return null},te=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},re=function(e){return te(e,Q)},le=function(e){return te(e,ne)},oe=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=le(e());return{baseModel:n,modelScope:(0,G.Z)(t).slice(0)}}var r=le(e()),l=(0,G.Z)(r);return{baseModel:l[0],modelScope:l.slice(1)}}(e,t),l=r.baseModel,o=r.modelScope;if(l){var a=re(e()),i=[].concat((0,U.Z)(o),(0,U.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,G.Z)(e),t=n[0],r=n.slice(1);return P(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(S).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat((0,U.Z)(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}))),(0,U.Z)(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}))))}))})([l].concat((0,U.Z)(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:oe}}));n(null,t)})).catch((function(e){return n(e)}))}},ie=function(e,n){return n?"".concat(e," (").concat(n,")"):e},ce=function(e){return P("entities").then(S).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:ie(n,t),value:n,score:oe}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return A.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ue=function(e){return{getCompletions:function(n,t,r,l,o){var a=function(){return new Y(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(K(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,o,e);break;case"where":case"conjunction":ae(a,o,e),o(null,se());break;case"nice_function":o(null,se());break;case"find":ce(o);break;case"type":case"tocco_placeholder":case"comparison":o(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),o(null,V.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,o,e),s&&"relation"!==K(s)&&ce(o);break;case null:e&&ae(a,o,e),o(null,se())}}}};function de(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var fe=function(e){(0,D.Z)(t,e);var n=de(t);function t(){var e;return(0,_.Z)(this,t),(e=n.call(this)).HighlightRules=$,e.completer=ue(),e}return(0,C.Z)(t)}(a().require("ace/mode/ftl").Mode);function pe(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var he,ge=function(e){(0,D.Z)(t,e);var n=pe(t);function t(e){var r,l=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=z(l),r.completer=ue(l),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),be=t(85893),me=k.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,l.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ye={groovy:function(){return new c.Mode},html:function(){return new s.Mode},xml:function(){return new h.Mode},properties:function(){return new f.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new fe},freemarkermixed:function(){return new fe},ftl:function(){return new fe},tql:function(e){return new ge(e)},less:function(){return new d.Mode},drools:function(){return new i.Mode},text:function(){return new p.Mode}},ve=function(e,n){var t=n.mode,l=n.theme,o=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return j()(e)?Promise.resolve(e):x()(e)?P("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(S).then((function(e){return b()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return b()(ye,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(l)),Object.entries(i).forEach((function(n){var t=(0,r.Z)(n,2),l=t[0],o=t[1];e.setOption(l,o)})),e.renderer.setShowGutter(o),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,l=e.value,o=e.onChange,i=e.showGutter,c=void 0===i||i,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),h=(0,Z.useMemo)((function(){return{mode:n,theme:r,showGutter:c,editorOptions:u,implicitModel:d}}),[n,r,c,u,d]);return(0,Z.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(l||""),e.on("change",(function(){return o(e.getValue())})),ve(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,Z.useEffect)((function(){p.current&&ve(p.current,h)}),[h]),(0,Z.useEffect)((function(){p.current&&!y()(l)&&l!==p.current.getValue()&&p.current.getSession().setValue(l)}),[l]),(0,be.jsx)(me,{ref:f})}},91860:(e,n,t)=>{t.r(n),t.d(n,{default:()=>E});var r,l,o,a=t(68957),i=t(46927),c=(t(44661),t(75502)),s=t(65809),u=t(94712),d=t(1024),f=t(12520),p=t.n(f),h=t(74806),g=t(58804),b=t(86507),m=t(2091),y=t(65035),v=t(5429),x=function(e){var n=(0,v.default)(e);return isNaN(n)?null:n},w=t(91411),j=t(30759),Z=t(51032),k=g.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(r||(r=(0,w.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),O=g.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(l||(l=(0,w.Z)(["\n && {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Z.yP,Z.k9,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),P=g.ZP.input.withConfig({displayName:"StyledTimeInput"})(o||(o=(0,w.Z)(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,j.Z)()),S=t(6149),C=t(85893);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 D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,i.Z)(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}(0,f.registerLocale)("en",b.Z.getDateFnsLocale("en")),(0,f.registerLocale)("en-US",b.Z.getDateFnsLocale("en")),(0,f.registerLocale)("de-CH",b.Z.getDateFnsLocale("de-CH")),(0,f.registerLocale)("de",b.Z.getDateFnsLocale("de")),(0,f.registerLocale)("fr",b.Z.getDateFnsLocale("fr")),(0,f.registerLocale)("fr-CH",b.Z.getDateFnsLocale("fr")),(0,f.registerLocale)("it",b.Z.getDateFnsLocale("it")),(0,f.registerLocale)("it-CH",b.Z.getDateFnsLocale("it")),(0,f.setDefaultLocale)("de");var R="react-datepicker-time__input",N=function(e){var n=e.onChange,t=e.label;return(0,C.jsx)(y.Z,{onMouseDown:function(e){e.preventDefault(),n(null)},children:t})},L=function(e){var n=e.value,t=e.onChange,r=e.onKeyDown,l=(0,S.Z)(n,(function(e){t&&t(e||"00:00")})).inputProps;return(0,C.jsx)(P,D(D({},l),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))};const E=(0,g.Zz)((0,h.ZP)((function(e){var n=e.immutable,t=e.id,r=e.value,l=e.minDate,o=e.maxDate,i=e.onChange,f=e.intl,h=e.placeholder,g=e.hasTime,y=e.dateFormat,v=f.locale,w=function(e){return f.formatMessage({id:e})},j=(0,d.useRef)(null),Z=(0,d.useRef)(null),P=(0,d.useState)(!1),S=(0,a.Z)(P,2),_=S[0],D=S[1],E=Boolean(r),M=x(r),T=l?x(l):void 0,I=o?x(o):void 0,F=function(e){var n,t;(D(e),null!==(n=Z.current)&&void 0!==n&&n.setPreSelection)&&(null===(t=Z.current)||void 0===t||t.setPreSelection(M))},q=function(e){"Tab"!==e.key||e.shiftKey||(e.target.classList.contains("react-datepicker__day")?g?function(e){var n=e.querySelector("input.".concat(R));n&&n.focus()}(j.current):F(!1):function(e){return e.classList.contains(R)}(e.target)&&F(!1)),function(e){return e.classList.contains("react-datepicker-ignore-onclickoutside")}(e.target)&&"Tab"===e.key&&e.shiftKey&&F(!1),"Enter"===e.key&&(F(!1),e.preventDefault(),e.stopPropagation())},V=!n&&E;return(0,C.jsx)(k,{immutable:n,id:t,tabIndex:"-1",children:(0,C.jsxs)(O,{immutable:n,ref:j,hasTime:g,children:[(0,C.jsx)(p(),{ref:Z,selected:M,onChange:function(e){if(e){var n=!r&&e,t=(0,c.default)(e),l=(0,s.default)(e)!==(0,s.default)(t)||(0,u.default)(e)!==(0,u.default)(t);n&&g&&!l&&(e=b.Z.setCurrentTime(e)),i(e.toISOString())}},disabled:n,showTimeInput:g,dateFormat:y,placeholderText:h,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,closeOnScroll:function(){return F(!1),!0},open:_,onFocus:function(){F(!0)},onClickOutside:function(){F(!1)},locale:v,onKeyDown:q,customTimeInput:(0,C.jsx)(L,{onKeyDown:q}),enableTabLoop:!1,timeInputLabel:"",minDate:T,maxDate:I,popperProps:{strategy:"fixed"},todayButton:(0,C.jsx)(N,{onChange:i,label:w("client.component.datePicker.todayLabel")})}),V&&(0,C.jsx)(m.Z,{icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),i(null)}}),!n&&(0,C.jsx)(m.Z,{icon:"calendar",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation(),F(!_)}})]})})})))},48078:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var r=t(52817),l=t(41609),o=t.n(l),a=t(41291),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,l=(0,r._)(n),c=o()(l)?n:l.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)=>{t.r(n),t.d(n,{default:()=>K});var r=t(46927),l=t(72757),o=t(1024),a=t(86896),i=t(44822),c=t(11259),s=t(32208),u=t(99357),d=t(19241),f=t(11820),p=t(39269),h=t(48772),g=t(75528),b=t(52079),m=t(84184),y=t(40569),v=t(75460),x=t(65761),w=t(53626),j=t(73043),Z=t(16797),k=t(71297),O=t(55444),P=t(6672),S=t(18195),C=t(23132),_=t(37060),D=t(4175),R=t(14351),N=t(20211),L=t(51778),E=t(87388),M=t(89906),T=t(41831);function I(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=(0,d.Z)(e);if(n){var l=(0,d.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)}}var F=function(e){(0,s.Z)(t,e);var n=I(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,i.Z)(t)}(f.Z);F.builtinPlugins=[p.Z,h.Z,y.Z,v.Z,x.Z,w.Z,j.Z,k.Z,Z.Z,O.Z,P.Z,S.Z,g.Z,C.Z,_.Z,D.Z,R.Z,N.Z,L.Z,b.Z,E.Z,M.Z,T.Z,m.Z],F.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 q=F;var V,A=t(91411),H=t(58804),z=t(56822),B=H.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(V||(V=(0,A.Z)(["\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,z.L)(e,"ckeditor")})),W=t(85893);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 G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,r.Z)(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 U=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"}},Y=function(e){var n=e.value,t=e.onChange,r=e.contentLang,i=e.ckEditorConfig,c=(0,a.Z)().locale,s=(0,o.useRef)(!1);return(0,W.jsx)(B,{children:(0,W.jsx)(l.CKEditor,{editor:q,config:G({language:{ui:U(c),content:r}},i),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)}})})};Y.defaultProps={value:"",contentLang:"de"};const K=Y},59178:(e,n,t)=>{t.r(n),t.d(n,{Icon:()=>N,default:()=>L});var r,l=t(46927),o=t(46444),a=t.n(o),i=t(78947),c=t(99245),s=t(68019),u=t(70457),d=t(30963),f=t(27361),p=t.n(f),h=t(91411),g=t(58804).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),b=t(85893);function m(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 y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}i.library.add(s.C65,s.kJo,s._tD,s.A35,s.mTx,s.ptq,s.g4A,s.r8p,s.Pk,s.g9M,s.Tab,u.Tab,s.NBC,s.eFW,s.acZ,s.u2A,s.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.FU$,s.diR,s.f8k,c.xYR,c.neY,c.AYu,c.kBj,c.hVS,c.dc_,c.Av$,s.xiG,s.gJF,s.j1w,s.WKO,s.wn1,s.b7W,s.YHc,s.ZC5,s.UO1,u.Fyj,s.Qj4,s.FL8,s.foy,s.u9C,s.Fuz,s.iV1,s.Kl4,s.nYk,s.sqG,s.RLE,s.$aW,s.Zrf,s.jMV,s.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,s.lH_,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,s.aJJ,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.fT7,s.ioP,s.Cw9,s.Ry6,s.C3l,s.a1i,s.jGC,s.IeV,s.A8,s.hG5,s.FVb,s.AxY,s.mAj,s.hGM,s.UkD,s.BDt,s.QzV,s.py1,s.cf$,s.byT,s.dT$,s.G_j,s.A4,s.ar8,s.nNP,s.yGT);var v=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,l=n.includes(",")?n.replace(/\s+/,"").split(","):n,o=y({},p()(t,"color")&&{color:t.color});return(0,b.jsx)(g,{children:(0,b.jsx)(d.G,y(y({icon:l,style:t},o),{},{fixedWidth:r}))})};v.defaultProps={hasFixedWidth:!0};const x=v,w=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"]},"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"}}');var j,Z;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 O(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){(0,l.Z)(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}var P={logo:function(e){return(0,b.jsx)("svg",O(O({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:j||(j=(0,b.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,b.jsx)("svg",O(O({height:p()(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:Z||(Z=(0,b.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"}))}))}},S=function(e){var n=e.icon,t=e.style;return P[n](t)};S.propTypes={icon:a().string.isRequired,style:a().object};const C=S;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 D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,l.Z)(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 R={fa:function(e,n){return(0,b.jsx)(x,D(D({},n),{},{icon:e.id}))},toc:function(e,n){return(0,b.jsx)(C,D(D({},n),{},{icon:e.id}))}},N=function(e){var n=w[e.icon];if(!n)return null;var t=R[n.lib];return t?t(n,e):null};N.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=N},81251:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(46927),l=t(70457),o=t(30963),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){(0,r.Z)(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;return(0,a.jsx)(o.G,c(c({},t),{},{style:{fontSize:n},spin:!0,icon:l.IJ7}))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{9587:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Qt});var r,l=t(80467),o=t(31366),a=t(34206),i=t(50558),c=t(48479),s=t(1024),u=t.n(s),d=t(46927),f=t(44066),p=t(70696),h=t(10535),g=t(78958),b=t(45915),m=t(91411),y=t(58804),v=t(37188);const x=(0,y.ZP)(v.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,m.Z)(["\n && {\n list-style-type: none;\n }\n"])));var w=t(85893);const j=function(e){return(0,w.jsx)(x,{as:"ul",children:u().Children.map(e.children,(function(e){return u().cloneElement(e)}))})};var k,Z,O=t(88162),P=t(27361),S=t.n(P),C=t(88601),_=t(58664),D=(k={},(0,d.Z)(k,g.Z.condition.BASE,"inherit"),(0,d.Z)(k,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,d.Z)(k,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,d.Z)(k,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,d.Z)(k,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,d.Z)(k,g.Z.condition.INFO,C.Z.color("signal.info.text")),k),R=(0,y.ZP)(v.EF).withConfig({displayName:"StyledSignalListItem"})(Z||(Z=(0,m.Z)(["\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 D[e.condition]||"inherit"}(e)}));R.propTypes={condition:g.Z.conditionPropTypes(D)};const N=R;var L,E,M=(L={},(0,d.Z)(L,g.Z.condition.BASE,!1),(0,d.Z)(L,g.Z.condition.PRIMARY,!1),(0,d.Z)(L,g.Z.condition.DANGER,"times"),(0,d.Z)(L,g.Z.condition.SUCCESS,"check"),(0,d.Z)(L,g.Z.condition.WARNING,"exclamation-triangle"),(0,d.Z)(L,g.Z.condition.INFO,"info"),L),T=function(e){var n=M[e.condition];return n?(0,w.jsx)(O.Z,{icon:n,position:g.Z.position.SOLE}):E||(E=(0,w.jsx)("i",{children:"•"}))},I=function(e){return(0,w.jsxs)(N,{condition:e.condition,children:[T(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};I.defaultProps={condition:g.Z.condition.BASE};const F={List:j,Item:I};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,b.Z)(e.error[t]))})),(0,w.jsx)(F.List,{children:n.map((function(e,n){return(0,w.jsx)(F.Item,{condition:"danger",label:e},n)}))})};var V,A,H,z,B,W,$,G=t(79686),U=t(7281),Y=t(30759),K=t(40953),J="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},X=y.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(V||(V=(0,m.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),ee=y.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(A||(A=(0,m.Z)(["\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 ","\n pointer-events: auto;\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Y.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return K.v[(n=e,t=n.isDisplay,r=n.immutable,l=n.signal,o=n.hasValue,l?"signal":o?"hasValue":t?"shade1":r?"shade0":"shade1")](e);var n,t,r,l,o}),U.Z.space(-2),U.Z.font(0),U.Z.space(-2),(function(e){return e.immutable&&"0"}),U.Z.font(0),(function(e){return Q(e)})),ne=y.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(H||(H=(0,m.Z)(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n ","\n ","\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\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"])),J,(function(e){return K.m[(n=e,t=n.immutable,r=n.isDisplay,l=n.signal,n.isDirty?"isDirty":r||t?"transparent":l?"signal":"shade1")](e);var n,t,r,l}),U.Z.space(-1),U.Z.space(-1),U.Z.space(-2),U.Z.space(-1),(function(e){return!e.immutable&&(0,_.kk)(e)}),(function(e){return Q(e)}),(function(e){return e.isDisplay&&U.Z.space(-1)}),(function(e){return e.immutable&&U.Z.space(-2)}),(function(e){var n=e.isDisplay,t=e.immutable;return n&&t&&U.Z.space(-1)}),(function(e){return e.isDisplay&&"0"}),G.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),te=y.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(z||(z=(0,m.Z)(["\n &&& {\n ","\n }\n"])),(0,Y.Z)({fontSize:U.Z.font(-1)})),re=y.ZP.div.withConfig({displayName:"StyledStatedValueError"})(B||(B=(0,m.Z)([""]))),le=y.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(W||(W=(0,m.Z)(["\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"])),U.Z.space(-1),U.Z.space(-2),ne,te,re,U.Z.space(-2),te,re,U.Z.space(-1),J,v.hc,U.Z.space(-2));y.ZP.input.withConfig({displayName:"StyledInput"})($||($=(0,m.Z)(["\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 oe(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 ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ie=function(e){var n,t,r=e.children,l=e.description,o=e.dirty,a=e.isDisplay,i=e.error,c=e.hasValue,s=e.id,u=e.label,d=e.mandatory,b=e.mandatoryTitle,m=e.immutable,y=e.touched,v=e.signal,x=!m&&y&&i&&Object.keys(i).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(d&&b?", ".concat(b):""),k=v||function(e,n,t,r){return n?g.Z.condition.DANGER:e?g.Z.condition.INFO:t&&!r?g.Z.condition.WARNING:void 0}(o,x,d,c);return(0,w.jsx)(f.Z,{children:function(e){var f=e.getRef;return(0,w.jsxs)(le,{ref:f,children:[(0,w.jsxs)(ne,{hasValue:c,immutable:m,isDisplay:a,signal:k,children:[r,u&&(0,w.jsx)(X,{children:(0,w.jsx)(ee,ae(ae({},!a&&!m&&{htmlFor:s}),{},{hasValue:c,dirty:o,title:j,immutable:m,isDisplay:a,signal:k,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(d?" *":"")}})}))})]}),l&&(n||(n=(0,w.jsx)(te,{children:l}))),x&&(t||(t=(0,w.jsx)(re,{children:(0,w.jsx)(q,{error:i})})))]})}})};var ce,se,ue=t(8270),de=t(65035),fe=t(28655),pe=t.n(fe),he=t(51032),ge=y.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=pe()(["\n && {\n ","\n }\n"])),he.k9),be=y.ZP.div.withConfig({displayName:"StyledInputWrapper"})(se||(se=pe()(["\n && {\n ","\n }\n"])),he.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,l=e.setFragmentSelected;return(0,w.jsx)(w.Fragment,{children:n.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){l(n,e.target.checked)}),disabled:r}),(0,w.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,l=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,i=e.running,c=e.disabled,u=e.executeDbRefactoring,d=e.loadModules,f=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,b=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&d(),0===l.length&&f()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ie,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(ue.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:c})}),(0,w.jsx)(ie,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:l,selectedFragments:o,disabled:c,setFragmentSelected:h})}),(0,w.jsx)(ie,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:c})})}),(0,w.jsx)(ie,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){b(e.target.checked)},disabled:c})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute",look:"raised",pending:i,disabled:c})]})};var ve={loadModules:c.H6,loadFragments:c.VL,setSelectedModules:c.pi,setFragmentSelected:c.LO,setVersion:c.xO,setIgnoreErrors:c.Pm,executeDbRefactoring:c.KK};const xe=(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}}),ve)(ye);const we=function(e){var n=e.language,t=e.running,r=e.disabled,l=e.executeLanguageUpgrade,o=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l()},children:[(0,w.jsx)(ie,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(be,{children:(0,w.jsx)(ge,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,w.jsx)(de.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var je={setLanguage:c.m0,executeLanguageUpgrade:c.b7};const ke=(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)(we);var Ze,Oe,Pe,Se;const Ce=function(){return(0,w.jsxs)(w.Fragment,{children:[Ze||(Ze=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(xe,{})),Pe||(Pe=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Se||(Se=(0,w.jsx)(ke,{}))]})};var _e,De,Re,Ne,Le,Ee,Me,Te=t(63038),Ie=t.n(Te),Fe={ERROR:"#a00"},qe=y.ZP.div.withConfig({displayName:"StyledLogTable"})(_e||(_e=pe()(["\n display: grid;\n gap: 1px;\n"]))),Ve=y.ZP.div.withConfig({displayName:"StyledLogEntry"})(De||(De=pe()(["\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(Fe[e.level]||"#ddd",";")})),Ae=y.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=pe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),He=y.ZP.span.withConfig({displayName:"StyledTime"})(Ne||(Ne=pe()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),ze=y.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(Le||(Le=pe()(["\n margin-top: 1em;\n"]))),Be=y.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ee||(Ee=pe()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),We=y.ZP.div.withConfig({displayName:"StyledStackTrace"})(Me||(Me=pe()(["\n && {\n ","\n }\n"])),(0,Y.Z)()),$e=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const Ge=function(e){var n=e.exception;return(0,w.jsxs)(ze,{children:[(0,w.jsx)(Be,{children:n.detailMessage}),(0,w.jsx)(We,{children:n.stackTrace.map((function(e,n){return(0,w.jsx)("div",{children:$e(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),l=r[0],o=r[1];return(0,w.jsxs)(Ve,{level:n.level,children:[(0,w.jsx)(Ae,{onClick:function(){n.exception&&o(!l)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(He,{children:new Date(n.timestamp).toLocaleString()}),l&&(0,w.jsx)(Ge,{exception:n.exception})]})};var Ye;const Ke=function(e){var n=e.entries;return(0,w.jsx)(qe,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ye||(Ye=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Je=(0,i.connect)((function(e){return{entries:e.log.entries}}),{})(Ke);var Qe,Xe;const en=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Xe||(Xe=(0,w.jsx)(Je,{}))]})};var nn,tn,rn=t(49478),ln=y.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(nn||(nn=pe()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=y.ZP.div.withConfig({displayName:"StyledGroupHeading"})(tn||(tn=pe()(["\n margin-bottom: 1em;\n"])));function an(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 cn(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 cn(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,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,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}function cn(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 sn=function(e){var n=e.type,t=e.events,r=e.selection,l=e.setSelected,o=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var l=t.value;if(!n.has(l.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(ln,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){l(t.map((function(e){return e.id})),e.target.checked)}}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+n,children:(0,w.jsxs)(a.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){l([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const un=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,l=e.generateSql,o=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(de.Z,{look:"raised",onClick:l,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(de.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,w.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,w.jsx)(sn,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var dn={setSelected:rn.Pq,generateSql:rn.$i,generateChangelog:rn._w};const fn=(0,i.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),dn)(un);var pn,hn,gn,bn=y.ZP.div.withConfig({displayName:"StyledProgressBar"})(pn||(pn=pe()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=y.ZP.div.withConfig({displayName:"StyledInnerProgress"})(hn||(hn=pe()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),yn=y.ZP.div.withConfig({displayName:"StyledProgressText"})(gn||(gn=pe()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),vn=function(e){return e.result?e.result:e.running?e.total?"".concat(xn(e),"%"):"Preparing...":"Not started"},xn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const wn=function(e){var n=e.state;return(0,w.jsxs)(bn,{children:[(0,w.jsx)(mn,{percentage:xn(n)}),(0,w.jsx)(yn,{children:vn(n)})]})};const jn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(de.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(wn,{state:n})]})};var kn={startValidation:rn.YV};const Zn=(0,i.connect)((function(e){return{state:e.modelValidation.state}}),kn)(jn);var On,Pn,Sn;const Cn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Pn||(Pn=(0,w.jsx)(Zn,{})),Sn||(Sn=(0,w.jsx)(fn,{}))]})};var _n=t(22541),Dn=t(68957),Rn=t(57557),Nn=t.n(Rn),Ln=t(2091),En=t(92135),Mn=t(84541),Tn=t(81084),In=t(75502),Fn=t(87486),qn=t(95395);function Vn(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 An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Vn(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Vn(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,Mn.Z)(e,Hn)?(0,Tn.default)(e,Hn,new Date):(0,Mn.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Mn.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,Fn.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 An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{minDate:n}})},getFromOptions:function(e,n){return An(An({},e),{},{datePickerOptions:{maxDate:n}})}}};var Wn,$n,Gn,Un,Yn,Kn,Jn,Qn=y.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Wn||(Wn=(0,m.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Xn=y.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})($n||($n=(0,m.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),et=y.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Gn||(Gn=(0,m.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),nt=y.ZP.div.withConfig({displayName:"StyledRange"})(Un||(Un=(0,m.Z)(["\n display: flex;\n"]))),tt=y.ZP.div.withConfig({displayName:"StyledInput"})(Yn||(Yn=(0,m.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),rt=y.ZP.div.withConfig({displayName:"StyledExtender"})(Kn||(Kn=(0,m.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function lt(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 ot(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?lt(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var at="expanded_initial",it="expanded",ct="collapsed";const st=function(e){var n,t,r=e.value,l=e.events,o=e.readOnly,a=e.type,i=e.options,c=e.fromText,u=e.toText,d=e.expanded,f=(0,s.useState)(d?at:ct),p=(0,Dn.Z)(f,2),h=p[0],g=p[1],b=Bn[a];(0,s.useEffect)((function(){h===at&&r&&!r.isRangeValue?l.onChange({from:r,to:void 0,isRangeValue:!0}):h!==it||null!=r&&r.isRangeValue?h===ct&&null!=r&&r.isRangeValue&&l.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)):l.onChange(function(e){return null!=b&&b.toRange?b.toRange(e):{from:e,to:e,isRangeValue:!0}}(r))}),[h,r,l,b]);var m=(null==r?void 0:r.isRangeValue)||!1,y=(0,s.useRef)(r);y.current=r;var v=(0,s.useMemo)((function(){return ot(ot({},l),{},{onChange:function(e){l.onChange(e)}})}),[l]),x={onChange:function(e){l.onChange(ot(ot({},y.current),{},{to:e}))}},j={onChange:function(e){l.onChange(ot(ot({},y.current),{},{from:e}))}},k=(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",P=(null==b?void 0:b.type)||a;return(0,w.jsxs)(nt,{children:[(0,w.jsx)(Qn,{children:m?(0,w.jsxs)(tt,{children:[(0,w.jsx)(Xn,{children:(0,w.jsx)(En.Z,ot(ot({},e),{},{options:function(e,n){return null!=b&&b.getFromOptions?b.getFromOptions(e,n):e}(i,r.to),value:(null==r?void 0:r.from)||null,events:j,placeholder:c}))}),Jn||(Jn=(0,w.jsx)(et,{children:(0,w.jsx)(O.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Xn,{children:(0,w.jsx)(En.Z,ot(ot({},e),{},{options:function(e,n){return null!=b&&b.getToOptions?b.getToOptions(e,n):e}(i,r.from),value:(null==r?void 0:r.to)||null,events:x,placeholder:u}))})]}):(0,w.jsx)(En.Z,ot(ot({type:P},Nn()(e,["type"])),{},{events:v}))}),(0,w.jsx)(rt,{children:(0,w.jsx)(Ln.Z,{disabled:o,icon:m?Z:k,onClick:function(){g(m?ct:it)}})})]})};const ut=function(e){var n=e.active,t=e.elapsed,r=e.setActive,l=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ie,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ie,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(st,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){l(e)}}})})]})};var dt={setActive:_n.Iv,setElapsed:_n.uI};const ft=(0,i.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),dt)(ut);var pt,ht,gt,bt,mt,yt,vt,xt={ERROR:"#a00"},wt=y.ZP.div.withConfig({displayName:"StyledLogTable"})(pt||(pt=pe()(["\n display: grid;\n gap: 1px;\n"]))),jt=y.ZP.div.withConfig({displayName:"StyledLogEntry"})(ht||(ht=pe()(["\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(xt[e.level]||"#ddd",";")})),kt=y.ZP.span.withConfig({displayName:"StyledStatementHeader"})(gt||(gt=pe()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,Y.Z)()),Zt=y.ZP.span.withConfig({displayName:"StyledStatement"})(bt||(bt=pe()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Ot=y.ZP.span.withConfig({displayName:"StyledTime"})(mt||(mt=pe()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),Pt=y.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(yt||(yt=pe()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,Y.Z)()),St=y.ZP.span.withConfig({displayName:"StyledElapsed"})(vt||(vt=pe()(["\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 Ct=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),l=r[0],o=r[1],a=n.sql.length>100,i=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(jt,{children:[(0,w.jsx)(kt,{expandable:a,onClick:function(){a&&o(!l)},children:i}),l&&(0,w.jsx)(Zt,{children:n.sql}),(0,w.jsx)(Ot,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(Pt,{children:(0,w.jsxs)(St,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var _t;const Dt=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,w.jsx)(wt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ct,{entry:e},e.key)})):_t||(_t=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Rt=(0,i.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Dt);var Nt,Lt,Et;const Mt=function(){return(0,w.jsxs)(w.Fragment,{children:[Nt||(Nt=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Lt||(Lt=(0,w.jsx)(ft,{})),Et||(Et=(0,w.jsx)(Rt,{}))]})};var Tt,It=t(96559);const Ft=(0,y.ZP)(It.rU)(Tt||(Tt=(0,m.Z)(["\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,Y.Z)(),C.Z.color("secondary"),C.Z.color("text"),C.Z.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){var n=e.neutral,t=e.theme;return n?(0,_.HO)(S()(t,"colors.text"),2):(0,_.HO)(S()(t,"colors.secondary"),2)}),(function(e){return e.neutral?"none":"underline"}));var qt,Vt,At,Ht,zt,Bt,Wt,$t,Gt,Ut,Yt=y.ZP.div.withConfig({displayName:"StyledDevCon"})(qt||(qt=pe()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),C.Z.color("paper"),U.Z.space(0)),Kt=y.ZP.div.withConfig({displayName:"StyledNavigation"})(Vt||(Vt=pe()(["\n display: flex;\n"]))),Jt=(0,y.ZP)(Ft).withConfig({displayName:"StyledRouterLink"})(At||(At=pe()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Qt=function(){return(0,w.jsxs)(Yt,{children:[Ht||(Ht=(0,w.jsx)(o.Z.Notifications,{})),zt||(zt=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),Bt||(Bt=(0,w.jsxs)(Kt,{children:[(0,w.jsx)(Jt,{to:"/log",children:"Log"}),(0,w.jsx)(Jt,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(Jt,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(Jt,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(l.rs,{children:[(0,w.jsx)(l.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(l.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(l.AW,{path:"/log",exact:!0,render:function(){return Wt||(Wt=(0,w.jsx)(en,{}))}}),(0,w.jsx)(l.AW,{path:"/dbrefactoring",exact:!0,render:function(){return $t||($t=(0,w.jsx)(Ce,{}))}}),(0,w.jsx)(l.AW,{path:"/modelvalidation",exact:!0,render:function(){return Gt||(Gt=(0,w.jsx)(Cn,{}))}}),(0,w.jsx)(l.AW,{path:"/sqllog",exact:!0,render:function(){return Ut||(Ut=(0,w.jsx)(Mt,{}))}})]})]})}},24295:(e,n,t)=>{t.r(n),t.d(n,{default:()=>xe});var r=t(68957),l=t(91411),o=t(86249),a=t.n(o),i=(t(58900),t(78634)),c=t(84100),s=t(60131),u=t(48230),d=t(64952),f=t(469),p=t(81896),h=t(46940),g=t(27361),b=t.n(g),m=t(14293),y=t.n(m),v=t(13218),x=t.n(v),w=t(47037),j=t.n(w),k=t(1024),Z=t(58804),O=(t(39335),t(28212),t(6488),t(32510),t(79657),t(20844),t(41030),t(98827),t(37363),t(53299),t(54159)),P=function(e){return O.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),D=t(32208),R=t(99357),N=t(19241),L=(t(70646),t(1469)),E=t.n(L),M=t(30236),T=t.n(M),I=["==","!=","<=",">=","<",">","~="],F=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],V=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],A=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function H(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}const z=function(e){return function(n){(0,D.Z)(r,n);var t=H(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var l=[{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(A.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],o={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(l),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(I.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(V.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(q.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(l,[{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(l,[{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=T()(n.$rules,o,(function(e,n){return E()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function B(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var W=function(e){(0,D.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(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(0,C.Z)(t)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules),$=function(e){(0,D.Z)(t,e);var n=B(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],l=[{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 o in e.$rules)e.$rules[o].unshift.apply(e.$rules[o],l);e.embedRules(W,"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(z(),"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=T()(e.$rules,i,(function(e,n){return E()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),G=t(52902),U=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,n){return K(e.getCurrentToken())===n},Q=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!J(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return J(e,"rparen")?1:n>0&&J(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&J(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,U.Z)(re(e))):[]}if(J(e,"order_by")){if(X(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=ee(e,n),!e.stepBackward())return null}return null},te=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},re=function(e){return te(e,Q)},le=function(e){return te(e,ne)},oe=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=le(e());return{baseModel:n,modelScope:(0,G.Z)(t).slice(0)}}var r=le(e()),l=(0,G.Z)(r);return{baseModel:l[0],modelScope:l.slice(1)}}(e,t),l=r.baseModel,o=r.modelScope;if(l){var a=re(e()),i=[].concat((0,U.Z)(o),(0,U.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,G.Z)(e),t=n[0],r=n.slice(1);return P(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(S).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat((0,U.Z)(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}))),(0,U.Z)(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}))))}))})([l].concat((0,U.Z)(i))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:oe}}));n(null,t)})).catch((function(e){return n(e)}))}},ie=function(e,n){return n?"".concat(e," (").concat(n,")"):e},ce=function(e){return P("entities").then(S).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:ie(n,t),value:n,score:oe}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return A.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ue=function(e){return{getCompletions:function(n,t,r,l,o){var a=function(){return new Y(t,r.row,r.column)},i=a(),c=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(K(c)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,o,e);break;case"where":case"conjunction":ae(a,o,e),o(null,se());break;case"nice_function":o(null,se());break;case"find":ce(o);break;case"type":case"tocco_placeholder":case"comparison":o(null,q.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),o(null,V.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,o,e),s&&"relation"!==K(s)&&ce(o);break;case null:e&&ae(a,o,e),o(null,se())}}}};function de(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var fe=function(e){(0,D.Z)(t,e);var n=de(t);function t(){var e;return(0,_.Z)(this,t),(e=n.call(this)).HighlightRules=$,e.completer=ue(),e}return(0,C.Z)(t)}(a().require("ace/mode/ftl").Mode);function pe(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=(0,N.Z)(e);if(n){var l=(0,N.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,R.Z)(this,t)}}var he,ge=function(e){(0,D.Z)(t,e);var n=pe(t);function t(e){var r,l=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=z(l),r.completer=ue(l),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),be=t(85893),me=Z.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,l.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ye={groovy:function(){return new c.Mode},html:function(){return new s.Mode},xml:function(){return new h.Mode},properties:function(){return new f.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new fe},freemarkermixed:function(){return new fe},ftl:function(){return new fe},tql:function(e){return new ge(e)},less:function(){return new d.Mode},drools:function(){return new i.Mode},text:function(){return new p.Mode}},ve=function(e,n){var t=n.mode,l=n.theme,o=n.showGutter,a=n.editorOptions,i=void 0===a?{}:a;(function(e){return j()(e)?Promise.resolve(e):x()(e)?P("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(S).then((function(e){return b()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return b()(ye,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(l)),Object.entries(i).forEach((function(n){var t=(0,r.Z)(n,2),l=t[0],o=t[1];e.setOption(l,o)})),e.renderer.setShowGutter(o),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,l=e.value,o=e.onChange,i=e.showGutter,c=void 0===i||i,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=(0,k.useRef)(null),p=(0,k.useRef)(null),h=(0,k.useMemo)((function(){return{mode:n,theme:r,showGutter:c,editorOptions:u,implicitModel:d}}),[n,r,c,u,d]);return(0,k.useEffect)((function(){var e=a().edit(f.current);return e.getSession().setValue(l||""),e.on("change",(function(){return o(e.getValue())})),ve(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,k.useEffect)((function(){p.current&&ve(p.current,h)}),[h]),(0,k.useEffect)((function(){p.current&&!y()(l)&&l!==p.current.getValue()&&p.current.getSession().setValue(l)}),[l]),(0,be.jsx)(me,{ref:f})}},91860:(e,n,t)=>{t.r(n),t.d(n,{default:()=>E});var r,l,o,a=t(68957),i=t(46927),c=(t(44661),t(75502)),s=t(65809),u=t(94712),d=t(1024),f=t(12520),p=t.n(f),h=t(74806),g=t(58804),b=t(86507),m=t(2091),y=t(65035),v=t(5429),x=function(e){var n=(0,v.default)(e);return isNaN(n)?null:n},w=t(91411),j=t(30759),k=t(51032),Z=g.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(r||(r=(0,w.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),O=g.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(l||(l=(0,w.Z)(["\n && {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),k.yP,k.k9,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),P=g.ZP.input.withConfig({displayName:"StyledTimeInput"})(o||(o=(0,w.Z)(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,j.Z)()),S=t(6149),C=t(85893);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 D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,i.Z)(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}(0,f.registerLocale)("en",b.Z.getDateFnsLocale("en")),(0,f.registerLocale)("en-US",b.Z.getDateFnsLocale("en")),(0,f.registerLocale)("de-CH",b.Z.getDateFnsLocale("de-CH")),(0,f.registerLocale)("de",b.Z.getDateFnsLocale("de")),(0,f.registerLocale)("fr",b.Z.getDateFnsLocale("fr")),(0,f.registerLocale)("fr-CH",b.Z.getDateFnsLocale("fr")),(0,f.registerLocale)("it",b.Z.getDateFnsLocale("it")),(0,f.registerLocale)("it-CH",b.Z.getDateFnsLocale("it")),(0,f.setDefaultLocale)("de");var R="react-datepicker-time__input",N=function(e){var n=e.onChange,t=e.label;return(0,C.jsx)(y.Z,{onMouseDown:function(e){e.preventDefault(),n(null)},children:t})},L=function(e){var n=e.value,t=e.onChange,r=e.onKeyDown,l=(0,S.Z)(n,(function(e){t&&t(e||"00:00")})).inputProps;return(0,C.jsx)(P,D(D({},l),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))};const E=(0,g.Zz)((0,h.ZP)((function(e){var n=e.immutable,t=e.id,r=e.value,l=e.minDate,o=e.maxDate,i=e.onChange,f=e.intl,h=e.placeholder,g=e.hasTime,y=e.dateFormat,v=f.locale,w=function(e){return f.formatMessage({id:e})},j=(0,d.useRef)(null),k=(0,d.useRef)(null),P=(0,d.useState)(!1),S=(0,a.Z)(P,2),_=S[0],D=S[1],E=Boolean(r),M=x(r),T=l?x(l):void 0,I=o?x(o):void 0,F=function(e){var n,t;(D(e),null!==(n=k.current)&&void 0!==n&&n.setPreSelection)&&(null===(t=k.current)||void 0===t||t.setPreSelection(M))},q=function(e){"Tab"!==e.key||e.shiftKey||(e.target.classList.contains("react-datepicker__day")?g?function(e){var n=e.querySelector("input.".concat(R));n&&n.focus()}(j.current):F(!1):function(e){return e.classList.contains(R)}(e.target)&&F(!1)),function(e){return e.classList.contains("react-datepicker-ignore-onclickoutside")}(e.target)&&"Tab"===e.key&&e.shiftKey&&F(!1),"Enter"===e.key&&(F(!1),e.preventDefault(),e.stopPropagation())},V=!n&&E;return(0,C.jsx)(Z,{immutable:n,id:t,tabIndex:"-1",children:(0,C.jsxs)(O,{immutable:n,ref:j,hasTime:g,children:[(0,C.jsx)(p(),{ref:k,selected:M,onChange:function(e){if(e){var n=!r&&e,t=(0,c.default)(e),l=(0,s.default)(e)!==(0,s.default)(t)||(0,u.default)(e)!==(0,u.default)(t);n&&g&&!l&&(e=b.Z.setCurrentTime(e)),i(e.toISOString())}},disabled:n,showTimeInput:g,dateFormat:y,placeholderText:h,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,closeOnScroll:function(){return F(!1),!0},open:_,onFocus:function(){F(!0)},onClickOutside:function(){F(!1)},locale:v,onKeyDown:q,customTimeInput:(0,C.jsx)(L,{onKeyDown:q}),enableTabLoop:!1,timeInputLabel:"",minDate:T,maxDate:I,popperProps:{strategy:"fixed"},todayButton:(0,C.jsx)(N,{onChange:i,label:w("client.component.datePicker.todayLabel")})}),V&&(0,C.jsx)(m.Z,{icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),i(null)}}),!n&&(0,C.jsx)(m.Z,{icon:"calendar",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation(),F(!_)}})]})})})))},48078:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var r=t(52817),l=t(41609),o=t.n(l),a=t(41291),i=t(85893);const c=function(e){var n=e.value,t=e.breakWords,l=(0,r._)(n),c=o()(l)?n:l.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)=>{t.r(n),t.d(n,{default:()=>K});var r=t(46927),l=t(72757),o=t(1024),a=t(86896),i=t(44822),c=t(11259),s=t(32208),u=t(99357),d=t(19241),f=t(11820),p=t(39269),h=t(48772),g=t(75528),b=t(52079),m=t(84184),y=t(40569),v=t(75460),x=t(65761),w=t(53626),j=t(73043),k=t(16797),Z=t(71297),O=t(55444),P=t(6672),S=t(18195),C=t(23132),_=t(37060),D=t(4175),R=t(14351),N=t(20211),L=t(51778),E=t(87388),M=t(89906),T=t(41831);function I(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=(0,d.Z)(e);if(n){var l=(0,d.Z)(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)}}var F=function(e){(0,s.Z)(t,e);var n=I(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,i.Z)(t)}(f.Z);F.builtinPlugins=[p.Z,h.Z,y.Z,v.Z,x.Z,w.Z,j.Z,Z.Z,k.Z,O.Z,P.Z,S.Z,g.Z,C.Z,_.Z,D.Z,R.Z,N.Z,L.Z,b.Z,E.Z,M.Z,T.Z,m.Z],F.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 q=F;var V,A=t(91411),H=t(58804),z=t(56822),B=H.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(V||(V=(0,A.Z)(["\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,z.L)(e,"ckeditor")})),W=t(85893);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 G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,r.Z)(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 U=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"}},Y=function(e){var n=e.value,t=e.onChange,r=e.contentLang,i=e.ckEditorConfig,c=(0,a.Z)().locale,s=(0,o.useRef)(!1);return(0,W.jsx)(B,{children:(0,W.jsx)(l.CKEditor,{editor:q,config:G({language:{ui:U(c),content:r}},i),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)}})})};Y.defaultProps={value:"",contentLang:"de"};const K=Y},59178:(e,n,t)=>{t.r(n),t.d(n,{Icon:()=>N,default:()=>L});var r,l=t(46927),o=t(46444),a=t.n(o),i=t(78947),c=t(99245),s=t(68019),u=t(70457),d=t(30963),f=t(27361),p=t.n(f),h=t(91411),g=t(58804).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),b=t(85893);function m(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 y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}i.library.add(s.C65,s.kJo,s._tD,s.A35,s.mTx,s.ptq,s.g4A,s.r8p,s.Pk,s.g9M,s.Tab,u.Tab,s.NBC,s.eFW,s.acZ,s.u2A,s.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.FU$,s.diR,s.f8k,c.xYR,c.neY,c.AYu,c.kBj,c.hVS,c.dc_,c.Av$,s.xiG,s.gJF,s.j1w,s.WKO,s.wn1,s.b7W,s.YHc,s.ZC5,s.UO1,u.Fyj,s.Qj4,s.FL8,s.foy,s.u9C,s.Fuz,s.iV1,s.Kl4,s.nYk,s.sqG,s.RLE,s.$aW,s.Zrf,s.jMV,s.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,s.lH_,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,s.aJJ,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.fT7,s.ioP,s.Cw9,s.Ry6,s.C3l,s.a1i,s.jGC,s.IeV,s.A8,s.hG5,s.FVb,s.AxY,s.mAj,s.hGM,s.UkD,s.BDt,s.QzV,s.py1,s.cf$,s.byT,s.dT$,s.G_j,s.A4,s.ar8,s.nNP,s.yGT,s.rux);var v=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,l=n.includes(",")?n.replace(/\s+/,"").split(","):n,o=y({},p()(t,"color")&&{color:t.color});return(0,b.jsx)(g,{children:(0,b.jsx)(d.G,y(y({icon:l,style:t},o),{},{fixedWidth:r}))})};v.defaultProps={hasFixedWidth:!0};const x=v,w=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"]},"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"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"}}');var j,k;function Z(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P={logo:function(e){return(0,b.jsx)("svg",O(O({height:p()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:j||(j=(0,b.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,b.jsx)("svg",O(O({height:p()(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:k||(k=(0,b.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"}))}))}},S=function(e){var n=e.icon,t=e.style;return P[n](t)};S.propTypes={icon:a().string.isRequired,style:a().object};const C=S;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 D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,l.Z)(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 R={fa:function(e,n){return(0,b.jsx)(x,D(D({},n),{},{icon:e.id}))},toc:function(e,n){return(0,b.jsx)(C,D(D({},n),{},{icon:e.id}))}},N=function(e){var n=w[e.icon];if(!n)return null;var t=R[n.lib];return t?t(n,e):null};N.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=N},81251:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(46927),l=t(70457),o=t(30963),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){(0,r.Z)(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;return(0,a.jsx)(o.G,c(c({},t),{},{style:{fontSize:n},spin:!0,icon:l.IJ7}))}}}]);
|