tocco-devcon 1.0.23 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,18 @@
1
+ 1.0.26
2
+ - fix state handling for report settings
3
+ - fix form mapping for search componentConfig
4
+ - use boolean search component for marking
5
+
6
+ 1.0.25
7
+ - fix searchfilters url with query params
8
+ - add bundle packages
9
+ - fix integer input when min value is set
10
+
11
+ 1.0.24
12
+ - add legacy-widget embedType
13
+ - show input on top only for remote multi selects
14
+ - fix broken disable styles on empty selects
15
+
1
16
  1.0.23
2
17
  - support browser plugins for phone numbers
3
18
  - fix too many field callbacks being called
@@ -1 +1 @@
1
- (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Or});var r,i=t(80467),o=t(14911),a=t(34206),c=t(46458),l=t(48479),s=t(1024),u=t.n(s),f=t(46927),d=t(44066),p=t(70696),h=t(10535),g=t(78958),m=t(45915),v=t(91411),b=t(32678),y=t(37188);const x=(0,b.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,v.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,O,Z=t(88162),P=t(32884),S=t.n(P),C=t(88601),_=t(58664),R=(k={},(0,f.Z)(k,g.Z.condition.BASE,"inherit"),(0,f.Z)(k,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,f.Z)(k,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,f.Z)(k,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,f.Z)(k,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,f.Z)(k,g.Z.condition.INFO,C.Z.color("signal.info.text")),k),E=(0,b.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(O||(O=(0,v.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 R[e.condition]||"inherit"}(e)}));E.propTypes={condition:g.Z.conditionPropTypes(R)};const D=E;var N,T,L=(N={},(0,f.Z)(N,g.Z.condition.BASE,!1),(0,f.Z)(N,g.Z.condition.PRIMARY,!1),(0,f.Z)(N,g.Z.condition.DANGER,"times"),(0,f.Z)(N,g.Z.condition.SUCCESS,"check"),(0,f.Z)(N,g.Z.condition.WARNING,"exclamation-triangle"),(0,f.Z)(N,g.Z.condition.INFO,"info"),N),I=function(e){var n=L[e.condition];return n?(0,w.jsx)(Z.Z,{icon:n,position:g.Z.position.SOLE}):T||(T=(0,w.jsx)("i",{children:"•"}))},A=function(e){return(0,w.jsxs)(D,{condition:e.condition,children:[I(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};A.defaultProps={condition:g.Z.condition.BASE};const M={List:j,Item:A};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,m.Z)(e.error[t]))})),(0,w.jsx)(M.List,{children:n.map((function(e,n){return(0,w.jsx)(M.Item,{condition:"danger",label:e},n)}))})};var F,V,z,B,W,H,$=t(19908),U=t(7281),G=t(30759),Y=t(40953),K="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},J=b.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,v.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),X=b.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,v.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 1px ","; // 1px to prevent label bottom from being cut\n padding-left: ",";\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,G.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return Y.v[(n=e,t=n.isDisplay,r=n.immutable,i=n.signal,o=n.hasValue,i?"signal":o?"hasValue":t?"shade1":r?"shade0":i?"signal":"shade1")](e);var n,t,r,i,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)})),ee=b.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(z||(z=(0,v.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"])),K,(function(e){return Y.m[(n=e,t=n.immutable,r=n.isDisplay,i=n.signal,n.isDirty?"isDirty":r||t?"transparent":i?"signal":"shade1")](e);var n,t,r,i}),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"}),$.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),ne=b.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(B||(B=(0,v.Z)(["\n &&& {\n ","\n }\n"])),(0,G.Z)({fontSize:U.Z.font(-1)})),te=b.ZP.div.withConfig({displayName:"StyledStatedValueError"})(W||(W=(0,v.Z)([""]))),re=b.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(H||(H=(0,v.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),ee,ne,te,U.Z.space(-2),ne,te,U.Z.space(-1),K,y.hc,U.Z.space(-2));function ie(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 oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ae=function(e){var n,t,r=e.children,i=e.description,o=e.dirty,a=e.isDisplay,c=e.error,l=e.hasValue,s=e.id,u=e.label,f=e.mandatory,m=e.mandatoryTitle,v=e.immutable,b=e.touched,y=e.signal,x=!v&&b&&c&&Object.keys(c).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(f&&m?", ".concat(m):""),k=y||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,f,l);return(0,w.jsx)(d.Z,{children:function(e){var d=e.getRef;return(0,w.jsxs)(re,{ref:d,children:[(0,w.jsxs)(ee,{hasValue:l,immutable:v,isDisplay:a,signal:k,children:[r,u&&(0,w.jsx)(J,{children:(0,w.jsx)(X,oe(oe({},!a&&!v&&{htmlFor:s}),{},{hasValue:l,dirty:o,title:j,immutable:v,isDisplay:a,signal:k,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(f?" *":"")}})}))})]}),i&&(n||(n=(0,w.jsx)(ne,{children:i}))),x&&(t||(t=(0,w.jsx)(te,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,le,se=t(8342),ue=t(65035),fe=t(28655),de=t.n(fe),pe=t(51032),he=b.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=de()(["\n && {\n ","\n }\n"])),pe.k9),ge=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(le||(le=de()(["\n && {\n ","\n }\n"])),pe.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=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){i(n,e.target.checked)}),disabled:r}),(0,w.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ve=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,c=e.running,l=e.disabled,u=e.executeDbRefactoring,f=e.loadModules,d=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,m=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&f(),0===i.length&&d()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ae,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(se.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:l})}),(0,w.jsx)(ae,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:i,selectedFragments:o,disabled:l,setFragmentSelected:h})}),(0,w.jsx)(ae,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:l})})}),(0,w.jsx)(ae,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){m(e.target.checked)},disabled:l})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute",look:"raised",pending:c,disabled:l})]})};var be={loadModules:l.H6,loadFragments:l.VL,setSelectedModules:l.pi,setFragmentSelected:l.LO,setVersion:l.xO,setIgnoreErrors:l.Pm,executeDbRefactoring:l.KK};const ye=(0,c.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}}),be)(ve);const xe=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,o=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,w.jsx)(ae,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var we={setLanguage:l.m0,executeLanguageUpgrade:l.b7};const je=(0,c.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}}),we)(xe);var ke,Oe,Ze,Pe;const Se=function(){return(0,w.jsxs)(w.Fragment,{children:[ke||(ke=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(ye,{})),Ze||(Ze=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Pe||(Pe=(0,w.jsx)(je,{}))]})};var Ce,_e,Re,Ee,De,Ne,Te,Le=t(63038),Ie=t.n(Le),Ae={ERROR:"#a00"},Me=b.ZP.div.withConfig({displayName:"StyledLogTable"})(Ce||(Ce=de()(["\n display: grid;\n gap: 1px;\n"]))),qe=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(_e||(_e=de()(["\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(Ae[e.level]||"#ddd",";")})),Fe=b.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=de()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),Ve=b.ZP.span.withConfig({displayName:"StyledTime"})(Ee||(Ee=de()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),ze=b.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(De||(De=de()(["\n margin-top: 1em;\n"]))),Be=b.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ne||(Ne=de()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),We=b.ZP.div.withConfig({displayName:"StyledStackTrace"})(Te||(Te=de()(["\n && {\n ","\n }\n"])),(0,G.Z)()),He=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const $e=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:He(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),i=r[0],o=r[1];return(0,w.jsxs)(qe,{level:n.level,children:[(0,w.jsx)(Fe,{onClick:function(){n.exception&&o(!i)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(Ve,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,w.jsx)($e,{exception:n.exception})]})};var Ge;const Ye=function(e){var n=e.entries;return(0,w.jsx)(Me,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ge||(Ge=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Ke=(0,c.connect)((function(e){return{entries:e.log.entries}}),{})(Ye);var Qe,Je;const Xe=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Je||(Je=(0,w.jsx)(Ke,{}))]})};var en,nn,tn=t(49478),rn=b.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(en||(en=de()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=b.ZP.div.withConfig({displayName:"StyledGroupHeading"})(nn||(nn=de()(["\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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)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 ln=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,o=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(rn,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){i(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){i([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const sn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=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)(ue.Z,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(ue.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)(ln,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var un={setSelected:tn.Pq,generateSql:tn.$i,generateChangelog:tn._w};const fn=(0,c.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),un)(sn);var dn,pn,hn,gn=b.ZP.div.withConfig({displayName:"StyledProgressBar"})(dn||(dn=de()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=b.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=de()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=b.ZP.div.withConfig({displayName:"StyledProgressText"})(hn||(hn=de()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bn=function(e){return e.result?e.result:e.running?e.total?"".concat(yn(e),"%"):"Preparing...":"Not started"},yn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const xn=function(e){var n=e.state;return(0,w.jsxs)(gn,{children:[(0,w.jsx)(mn,{percentage:yn(n)}),(0,w.jsx)(vn,{children:bn(n)})]})};const wn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ue.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(xn,{state:n})]})};var jn={startValidation:tn.YV};const kn=(0,c.connect)((function(e){return{state:e.modelValidation.state}}),jn)(wn);var On,Zn,Pn;const Sn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Zn||(Zn=(0,w.jsx)(kn,{})),Pn||(Pn=(0,w.jsx)(fn,{}))]})};var Cn=t(22541),_n=t(87852),Rn=t.n(_n),En=t(2091),Dn=t(29967),Nn=t(30381),Tn=t.n(Nn);function Ln(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 In(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ln(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var An="YYYY-MM-DD[T]HH:mm:ss.SSS[Z]",Mn="YYYY-MM-DD";const qn={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?Tn()(e).utc().format(An):null,to:e?Tn()(e).utc().add(1,"d").format(An):null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?Tn().utc(e.from,An).local().format(Mn):e&&e.to?Tn().utc(e.to,An).local().format(Mn):null},getToOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{minDate:n}})},getFromOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{minDate:n}})},getFromOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{maxDate:n}})}}};var Fn,Vn,zn,Bn,Wn,Hn,$n,Un=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Fn||(Fn=(0,v.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Gn=b.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Vn||(Vn=(0,v.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n line-height: unset !important;\n text-align: center;\n }\n"]))),Yn=b.ZP.div.withConfig({displayName:"StyledIconWrapper"})(zn||(zn=(0,v.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),Kn=b.ZP.div.withConfig({displayName:"StyledRange"})(Bn||(Bn=(0,v.Z)(["\n display: flex;\n"]))),Qn=b.ZP.div.withConfig({displayName:"StyledInput"})(Wn||(Wn=(0,v.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),Jn=b.ZP.div.withConfig({displayName:"StyledExtender"})(Hn||(Hn=(0,v.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Xn(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 et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xn(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const nt=function(e){var n,t,r=e.value,i=e.events,o=e.readOnly,a=e.type,c=e.options,l=e.fromText,u=e.toText,f=(null==r?void 0:r.isRangeValue)||!1,d=(0,s.useRef)(r);d.current=r;var p=(0,s.useMemo)((function(){return et(et({},i),{},{onChange:function(e){i.onChange(e)}})}),[i]),h={onChange:function(e){i.onChange(et(et({},d.current),{},{to:e}))}},g={onChange:function(e){i.onChange(et(et({},d.current),{},{from:e}))}},m=qn[a],v=(null==m||null===(n=m.icons)||void 0===n?void 0:n.range)||"chevron-down",b=(null==m||null===(t=m.icons)||void 0===t?void 0:t.single)||"chevron-left",y=(null==m?void 0:m.type)||a;return(0,w.jsxs)(Kn,{children:[(0,w.jsx)(Un,{children:f?(0,w.jsxs)(Qn,{children:[(0,w.jsx)(Gn,{children:(0,w.jsx)(Dn.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getFromOptions?m.getFromOptions(e,n):e}(c,r.to),value:(null==r?void 0:r.from)||null,events:g,placeholder:l}))}),$n||($n=(0,w.jsx)(Yn,{children:(0,w.jsx)(Z.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Gn,{children:(0,w.jsx)(Dn.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getToOptions?m.getToOptions(e,n):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:h,placeholder:u}))})]}):(0,w.jsx)(Dn.Z,et(et({type:y},Rn()(e,["type"])),{},{events:p}))}),(0,w.jsx)(Jn,{children:(0,w.jsx)(En.Z,{disabled:o,icon:f?b:v,onClick:function(){var e=f?function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r):function(e){return null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0}}(r);i.onChange(e)}})})]})};const tt=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ae,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ae,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(nt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var rt={setActive:Cn.Iv,setElapsed:Cn.uI};const it=(0,c.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),rt)(tt);var ot,at,ct,lt,st,ut,ft,dt={ERROR:"#a00"},pt=b.ZP.div.withConfig({displayName:"StyledLogTable"})(ot||(ot=de()(["\n display: grid;\n gap: 1px;\n"]))),ht=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(at||(at=de()(["\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(dt[e.level]||"#ddd",";")})),gt=b.ZP.span.withConfig({displayName:"StyledStatementHeader"})(ct||(ct=de()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),mt=b.ZP.span.withConfig({displayName:"StyledStatement"})(lt||(lt=de()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),vt=b.ZP.span.withConfig({displayName:"StyledTime"})(st||(st=de()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bt=b.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(ut||(ut=de()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),yt=b.ZP.span.withConfig({displayName:"StyledElapsed"})(ft||(ft=de()(["\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 xt=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),i=r[0],o=r[1],a=n.sql.length>100,c=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(ht,{children:[(0,w.jsx)(gt,{expandable:a,onClick:function(){a&&o(!i)},children:c}),i&&(0,w.jsx)(mt,{children:n.sql}),(0,w.jsx)(vt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(bt,{children:(0,w.jsxs)(yt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var wt;const jt=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)(pt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(xt,{entry:e},e.key)})):wt||(wt=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const kt=(0,c.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(jt);var Ot,Zt,Pt;const St=function(){return(0,w.jsxs)(w.Fragment,{children:[Ot||(Ot=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Zt||(Zt=(0,w.jsx)(it,{})),Pt||(Pt=(0,w.jsx)(kt,{}))]})};function Ct(e,n){return Ct=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Ct(e,n)}function _t(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ct(e,n)}function Rt(){return Rt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Rt.apply(this,arguments)}function Et(e){return"/"===e.charAt(0)}function Dt(e,n){for(var t=n,r=t+1,i=e.length;r<i;t+=1,r+=1)e[t]=e[r];e.pop()}const Nt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],i=n&&n.split("/")||[],o=e&&Et(e),a=n&&Et(n),c=o||a;if(e&&Et(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];t="."===l||".."===l||""===l}else t=!1;for(var s=0,u=i.length;u>=0;u--){var f=i[u];"."===f?Dt(i,u):".."===f?(Dt(i,u),s++):s&&(Dt(i,u),s--)}if(!c)for(;s--;s)i.unshift("..");!c||""===i[0]||i[0]&&Et(i[0])||i.unshift("");var d=i.join("/");return t&&"/"!==d.substr(-1)&&(d+="/"),d};var Tt=t(2177);function Lt(e){return"/"===e.charAt(0)?e:"/"+e}function It(e){return"/"===e.charAt(0)?e.substr(1):e}function At(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function Mt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function qt(e){var n=e.pathname,t=e.search,r=e.hash,i=n||"/";return t&&"?"!==t&&(i+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Ft(e,n,t,r){var i;"string"==typeof e?(i=function(e){var n=e||"/",t="",r="",i=n.indexOf("#");-1!==i&&(r=n.substr(i),n=n.substr(0,i));var o=n.indexOf("?");return-1!==o&&(t=n.substr(o),n=n.substr(0,o)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),i.state=n):(void 0===(i=Rt({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==n&&void 0===i.state&&(i.state=n));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return t&&(i.key=t),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Nt(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Vt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,i){if(null!=e){var o="function"==typeof e?e(n,t):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var zt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bt(e,n){n(window.confirm(e))}var Wt="popstate",Ht="hashchange";function $t(){try{return window.history.state||{}}catch(e){return{}}}function Ut(e){void 0===e&&(e={}),zt||(0,Tt.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,l=o.getUserConfirmation,s=void 0===l?Bt:l,u=o.keyLength,f=void 0===u?6:u,d=e.basename?Mt(Lt(e.basename)):"";function p(e){var n=e||{},t=n.key,r=n.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=At(o,d)),Ft(o,r,t)}function h(){return Math.random().toString(36).substr(2,f)}var g=Vt();function m(e){Rt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function b(){x(p($t()))}var y=!1;function x(e){if(y)y=!1,m();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?m({action:"POP",location:e}):function(e){var n=C.location,t=j.indexOf(n.key);-1===t&&(t=0);var r=j.indexOf(e.key);-1===r&&(r=0);var i=t-r;i&&(y=!0,O(i))}(e)}))}}var w=p($t()),j=[w.key];function k(e){return d+qt(e)}function O(e){t.go(e)}var Z=0;function P(e){1===(Z+=e)&&1===e?(window.addEventListener(Wt,v),i&&window.addEventListener(Ht,b)):0===Z&&(window.removeEventListener(Wt,v),i&&window.removeEventListener(Ht,b))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:k,push:function(e,n){var i="PUSH",o=Ft(e,n,h(),C.location);g.confirmTransitionTo(o,i,s,(function(e){if(e){var n=k(o),a=o.key,l=o.state;if(r)if(t.pushState({key:a,state:l},null,n),c)window.location.href=n;else{var s=j.indexOf(C.location.key),u=j.slice(0,s+1);u.push(o.key),j=u,m({action:i,location:o})}else window.location.href=n}}))},replace:function(e,n){var i="REPLACE",o=Ft(e,n,h(),C.location);g.confirmTransitionTo(o,i,s,(function(e){if(e){var n=k(o),a=o.key,l=o.state;if(r)if(t.replaceState({key:a,state:l},null,n),c)window.location.replace(n);else{var s=j.indexOf(C.location.key);-1!==s&&(j[s]=o.key),m({action:i,location:o})}else window.location.replace(n)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(P(1),S=!0),function(){return S&&(S=!1,P(-1)),n()}},listen:function(e){var n=g.appendListener(e);return P(1),function(){P(-1),n()}}};return C}var Gt="hashchange",Yt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+It(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:It,decodePath:Lt},slash:{encodePath:Lt,decodePath:Lt}};function Kt(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function Qt(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function Jt(e){window.location.replace(Kt(window.location.href)+"#"+e)}function Xt(e){void 0===e&&(e={}),zt||(0,Tt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,i=void 0===r?Bt:r,o=t.hashType,a=void 0===o?"slash":o,c=e.basename?Mt(Lt(e.basename)):"",l=Yt[a],s=l.encodePath,u=l.decodePath;function f(){var e=u(Qt());return c&&(e=At(e,c)),Ft(e)}var d=Vt();function p(e){Rt(Z,e),Z.length=n.length,d.notifyListeners(Z.location,Z.action)}var h=!1,g=null;function m(){var e,n,t=Qt(),r=s(t);if(t!==r)Jt(r);else{var o=f(),a=Z.location;if(!h&&(n=o,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===qt(o))return;g=null,function(e){if(h)h=!1,p();else{var n="POP";d.confirmTransitionTo(e,n,i,(function(t){t?p({action:n,location:e}):function(e){var n=Z.location,t=x.lastIndexOf(qt(n));-1===t&&(t=0);var r=x.lastIndexOf(qt(e));-1===r&&(r=0);var i=t-r;i&&(h=!0,w(i))}(e)}))}}(o)}}var v=Qt(),b=s(v);v!==b&&Jt(b);var y=f(),x=[qt(y)];function w(e){n.go(e)}var j=0;function k(e){1===(j+=e)&&1===e?window.addEventListener(Gt,m):0===j&&window.removeEventListener(Gt,m)}var O=!1;var Z={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=Kt(window.location.href)),t+"#"+s(c+qt(e))},push:function(e,n){var t="PUSH",r=Ft(e,void 0,void 0,Z.location);d.confirmTransitionTo(r,t,i,(function(e){if(e){var n=qt(r),i=s(c+n);if(Qt()!==i){g=n,function(e){window.location.hash=e}(i);var o=x.lastIndexOf(qt(Z.location)),a=x.slice(0,o+1);a.push(n),x=a,p({action:t,location:r})}else p()}}))},replace:function(e,n){var t="REPLACE",r=Ft(e,void 0,void 0,Z.location);d.confirmTransitionTo(r,t,i,(function(e){if(e){var n=qt(r),i=s(c+n);Qt()!==i&&(g=n,Jt(i));var o=x.indexOf(qt(Z.location));-1!==o&&(x[o]=n),p({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=d.setPrompt(e);return O||(k(1),O=!0),function(){return O&&(O=!1,k(-1)),n()}},listen:function(e){var n=d.appendListener(e);return k(1),function(){k(-1),n()}}};return Z}t(94662);function er(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}u().Component;u().Component;var nr=function(e,n){return"function"==typeof e?e(n):e},tr=function(e,n){return"string"==typeof e?Ft(e,null,null,n):e},rr=function(e){return e},ir=u().forwardRef;void 0===ir&&(ir=rr);var or=ir((function(e,n){var t=e.innerRef,r=e.navigate,i=e.onClick,o=er(e,["innerRef","navigate","onClick"]),a=o.target,c=Rt({},o,{onClick:function(e){try{i&&i(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=rr!==ir&&n||t,u().createElement("a",c)}));var ar=ir((function(e,n){var t=e.component,r=void 0===t?or:t,o=e.replace,a=e.to,c=e.innerRef,l=er(e,["component","replace","to","innerRef"]);return u().createElement(i.s6.Consumer,null,(function(e){e||(0,Tt.Z)(!1);var t=e.history,i=tr(nr(a,e.location),e.location),s=i?t.createHref(i):"",f=Rt({},l,{href:s,navigate:function(){var n=nr(a,e.location),r=qt(e.location)===qt(tr(n));(o||r?t.replace:t.push)(n)}});return rr!==ir?f.ref=n||c:f.innerRef=c,u().createElement(r,f)}))})),cr=function(e){return e},lr=u().forwardRef;void 0===lr&&(lr=cr);var sr;lr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,o=e.activeClassName,a=void 0===o?"active":o,c=e.activeStyle,l=e.className,s=e.exact,f=e.isActive,d=e.location,p=e.sensitive,h=e.strict,g=e.style,m=e.to,v=e.innerRef,b=er(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(i.s6.Consumer,null,(function(e){e||(0,Tt.Z)(!1);var t=d||e.location,o=tr(nr(m,t),t),y=o.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,i.LX)(t.pathname,{path:x,exact:s,sensitive:p,strict:h}):null,j=!!(f?f(w,t):w),k="function"==typeof l?l(j):l,O="function"==typeof g?g(j):g;j&&(k=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(k,a),O=Rt({},O,c));var Z=Rt({"aria-current":j&&r||null,className:k,style:O,to:o},b);return cr!==lr?Z.ref=n||v:Z.innerRef=v,u().createElement(ar,Z)}))}));const ur=(0,b.ZP)(ar)(sr||(sr=(0,v.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,G.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 fr,dr,pr,hr,gr,mr,vr,br,yr,xr,wr=b.ZP.div.withConfig({displayName:"StyledDevCon"})(fr||(fr=de()(["\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)),jr=b.ZP.div.withConfig({displayName:"StyledNavigation"})(dr||(dr=de()(["\n display: flex;\n"]))),kr=(0,b.ZP)(ur).withConfig({displayName:"StyledRouterLink"})(pr||(pr=de()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Or=function(){return(0,w.jsxs)(wr,{children:[hr||(hr=(0,w.jsx)(o.Z.Notifications,{})),gr||(gr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),mr||(mr=(0,w.jsxs)(jr,{children:[(0,w.jsx)(kr,{to:"/log",children:"Log"}),(0,w.jsx)(kr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(kr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(kr,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(i.rs,{children:[(0,w.jsx)(i.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(i.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(i.AW,{path:"/log",exact:!0,render:function(){return vr||(vr=(0,w.jsx)(Xe,{}))}}),(0,w.jsx)(i.AW,{path:"/dbrefactoring",exact:!0,render:function(){return br||(br=(0,w.jsx)(Se,{}))}}),(0,w.jsx)(i.AW,{path:"/modelvalidation",exact:!0,render:function(){return yr||(yr=(0,w.jsx)(Sn,{}))}}),(0,w.jsx)(i.AW,{path:"/sqllog",exact:!0,render:function(){return xr||(xr=(0,w.jsx)(St,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),i=t(91411),o=t(86249),a=t.n(o),c=(t(58900),t(78634)),l=t(84100),s=t(60131),u=t(48230),f=t(64952),d=t(469),p=t(81896),h=t(46940),g=t(32884),m=t.n(g),v=t(40021),b=t.n(v),y=t(11203),x=t.n(y),w=t(72730),j=t.n(w),k=t(1024),O=t(32678),Z=(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 Z.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),R=t(32208),E=t(88098),D=t(19241),N=(t(70646),t(74085)),T=t.n(N),L=t(77654),I=t.n(L),A=["==","!=","<=",">=","<",">","~="],M=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],F=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],V=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,D.Z)(e);if(n){var i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}const B=function(e){return function(n){(0,R.Z)(r,n);var t=z(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var i=[{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(V.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(i),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(A.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(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.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(i,[{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(i,[{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=I()(n.$rules,o,(function(e,n){return T()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function W(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 i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var H=function(e){(0,R.Z)(t,e);var n=W(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,R.Z)(t,e);var n=W(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],i=[{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],i);e.embedRules(H,"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(B(),"tql-",a,["start"]);var c={"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=I()(e.$rules,c,(function(e,n){return T()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),U=t(52902),G=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},Q=function(e,n){return K(e.getCurrentToken())===n},J=function(e){if(Q(e,"model")&&e.stepBackward(),(Q(e,"field")||Q(e,"relation"))&&e.stepBackward(),!Q(e,"chaining"))return null;if(e.stepBackward(),Q(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!Q(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return Q(e,"rparen")?1:n>0&&Q(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&Q(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(Q(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,J)},ie=function(e){return te(e,ne)},oe=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=ie(e());return{baseModel:n,modelScope:(0,U.Z)(t).slice(0)}}var r=ie(e()),i=(0,U.Z)(r);return{baseModel:i[0],modelScope:i.slice(1)}}(e,t),i=r.baseModel,o=r.modelScope;if(i){var a=re(e()),c=[].concat((0,G.Z)(o),(0,G.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,U.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,G.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,G.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}))))}))})([i].concat((0,G.Z)(c))).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)}))}},ce=function(e,n){return n?"".concat(e," (").concat(n,")"):e},le=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:ce(n,t),value:n,score:oe}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return V.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,i,o){var a=function(){return new Y(t,r.row,r.column)},c=a(),l=c.getCurrentToken(),s=c.stepBackward()?c.getCurrentToken():null;switch(K(l)){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":le(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,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,o,e),s&&"relation"!==K(s)&&le(o);break;case null:e&&ae(a,o,e),o(null,se())}}}};function fe(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 i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var de=function(e){(0,R.Z)(t,e);var n=fe(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,D.Z)(e);if(n){var i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var he,ge=function(e){(0,R.Z)(t,e);var n=pe(t);function t(e){var r,i=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=B(i),r.completer=ue(i),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),me=t(85893),ve=O.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,i.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),be={groovy:function(){return new l.Mode},html:function(){return new s.Mode},xml:function(){return new h.Mode},properties:function(){return new d.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new de},freemarkermixed:function(){return new de},ftl:function(){return new de},tql:function(e){return new ge(e)},less:function(){return new f.Mode},drools:function(){return new c.Mode},text:function(){return new p.Mode}},ye=function(e,n){var t=n.mode,i=n.theme,o=n.showGutter,a=n.editorOptions,c=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 m()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return m()(be,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(i)),Object.entries(c).forEach((function(n){var t=(0,r.Z)(n,2),i=t[0],o=t[1];e.setOption(i,o)})),e.renderer.setShowGutter(o),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,i=e.value,o=e.onChange,c=e.showGutter,l=void 0===c||c,s=e.editorOptions,u=void 0===s?{}:s,f=e.implicitModel,d=(0,k.useRef)(null),p=(0,k.useRef)(null),h=(0,k.useMemo)((function(){return{mode:n,theme:r,showGutter:l,editorOptions:u,implicitModel:f}}),[n,r,l,u,f]);return(0,k.useEffect)((function(){var e=a().edit(d.current);return e.getSession().setValue(i||""),e.on("change",(function(){return o(e.getValue())})),ye(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,k.useEffect)((function(){p.current&&ye(p.current,h)}),[h]),(0,k.useEffect)((function(){p.current&&!b()(i)&&i!==p.current.getValue()&&p.current.getSession().setValue(i)}),[i]),(0,me.jsx)(ve,{ref:d})}},5711:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>I});var r=t(46927),i=t(68957),o=t(1024),a=t(74806),c=t(32678),l=t(2091),s=(t(66991),t(29214)),u=t(57413),f=t(53528),d=t(36258),p=t(35997),h=t(70696);function g(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 m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v,b,y,x,w={"de-CH":u.German,de:u.German,fr:f.French,it:d.Italian},j=function(e){return function(n){n&&n.length>0?e(n[0].toISOString()):e(null)}},k=function(e,n){var t=n.value,r=n.locale,a=n.flatpickrOptions,c=(0,o.useRef)(null),l=p.Z.usePrevious(a);return(0,o.useEffect)((function(){return function(){c.current&&c.current.destroy()}}),[]),(0,o.useEffect)((function(){c.current&&(c.current.setDate(t,!1),c.current.redraw())}),[JSON.stringify(t)]),(0,o.useEffect)((function(){var e,n,t=w[r]||(null===(e=c.current)||void 0===e||null===(n=e.l10ns)||void 0===n?void 0:n.en);c.current&&t&&(c.current.localize(t),c.current.set("locale",t),c.current.redraw())}),[r]),(0,o.useEffect)((function(){if(c.current){var e=h.Z.difference(a,l);Object.keys(e).length>0&&(Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];c.current.set(t,r)})),c.current.redraw())}}),[a]),function(){return c.current=function(e,n){var t=n.shouldAppend,r=n.onChange,i=n.value,o=n.fontFamily,a=n.locale,c=n.flatpickrOptions,l=w[a],u=m(m(m({wrap:!0,onChange:j(r),altInput:!1,enableTime:!1,defaultDate:i},t?{appendTo:e.current,static:!0}:{}),l?{locale:l}:{}),c),f=(0,s.Z)(e.current,u);return o&&(f.calendarContainer.style.fontFamily=o),f}(e,n),c.current}},O=t(88601),Z=t(91411),P=t(40953),S=t(51032),C=c.ZP.input.withConfig({displayName:"StyledDatePickerInput"})(v||(v=(0,Z.Z)(["\n &&& {\n ","\n margin: 0;\n }\n"])),S.k9),_=c.ZP.div.withConfig({displayName:"StyledDatePickerValue"})(b||(b=(0,Z.Z)(["\n && {\n ","\n display: flex;\n align-items: center;\n ","\n }\n"])),S.k9,(function(e){return!e.hasValue&&"\n justify-content: center;\n color: ".concat(P.v.shade1(e),";\n ")})),R=c.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(y||(y=(0,Z.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),E=c.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(x||(x=(0,Z.Z)(["\n && {\n ","\n\n input {\n display: ",";\n\n &:last-of-type {\n display: ",";\n }\n }\n }\n"])),S.yP,(function(e){return e.immutable?"none":"block"}),(function(e){return e.immutable?"block":"none"})),D=t(85893);function N(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 T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=function(e){var n=e.querySelector('input.flatpickr-input:not([type="hidden"])');n&&n.focus()};const I=(0,c.Zz)((0,a.ZP)((function(e){var n,t,r=e.immutable,a=e.id,c=e.options,s=e.value,u=e.onChange,f=e.formatDate,d=e.intl,p=e.placeholder,h=(0,o.useState)(!1),g=(0,i.Z)(h,2),m=g[0],v=g[1],b=(0,o.useRef)(null),y=(0,o.useRef)(null),x=d.locale,w=O.Z.fontFamily("regular")(e),j=T({altInput:!0,altInputClass:"",clickOpens:!r},c?c.flatpickrOptions:{}),Z=k(y,{value:s,onChange:function(e){e&&u([e])},fontFamily:w,locale:x,flatpickrOptions:j}),P=(null===(n=b.current)||void 0===n||null===(t=n.altInput)||void 0===t?void 0:t.value)||"",S=function(){m?L(y.current):(b.current=Z(),b.current.calendarContainer.classList.add("tocco-ui-theme"),b.current.calendarContainer.addEventListener("keydown",N),v(!0),setTimeout((function(){L(y.current)})))},N=function(e){(e.target.classList.contains("flatpickr-hour")||"Tab"!==e.key||e.shiftKey)&&"Enter"!==e.key||setTimeout((function(){b.current.close()})),"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},I=s&&s.length>0&&s.every((function(e){return e}));return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(R,{immutable:r,id:a,tabIndex:"-1",onFocus:function(){S(),b.current&&b.current.open()},onKeyDown:N,children:(0,D.jsxs)(E,{"data-wrap":!0,immutable:r,ref:y,children:[(0,D.jsx)(C,T(T({},r?{disabled:"disabled"}:{}),{},{type:"hidden","data-input":!0,immutable:r,className:"flatpickr-input",placeholder:p})),!m&&(0,D.jsx)(_,{tabIndex:0,hasValue:I,children:I?f(s[0]):p}),(0,D.jsx)(C,{disabled:!0,immutable:r,value:P,placeholder:p}),!r&&I&&(0,D.jsx)(l.Z,{icon:"times",tabIndex:-1,"aria-label":function(e){return d.formatMessage({id:e})}("client.component.dateAbstract.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),u(null)}})]})})})})))},94475:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(97044),i=t(96098),o=t.n(i),a=t(34206),c=t(85893);const l=function(e){var n=e.value,t=e.breakWords,i=(0,r._)(n),l=o()(i)?n:i.formatInternational();return(0,c.jsx)(a.ZP.Span,{breakWords:t,children:l})}},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>D,default:()=>N});var r,i=t(46927),o=t(46444),a=t.n(o),c=t(78947),l=t(99245),s=t(68019),u=t(70457),f=t(30963),d=t(32884),p=t.n(d),h=t(91411),g=t(32678).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),m=t(85893);function v(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.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.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.diR,s.f8k,l.xYR,l.neY,l.AYu,l.kBj,l.hVS,l.dc_,l.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.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.Ry6,s.C3l,s.a1i,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);var y=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth;return(0,m.jsx)(g,{children:(0,m.jsx)(f.G,b(b({icon:n.includes(",")?n.replace(/\s+/,"").split(","):n,style:t},p()(t,"color")&&{color:t.color}),{},{fixedWidth:r}))})};y.defaultProps={hasFixedWidth:!0};const x=y,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"]},"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-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"]},"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"},"list":{"id":"fal, list","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"},"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"}}');var j,k;function O(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P={logo:function(e){return(0,m.jsx)("svg",Z(Z({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,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,m.jsx)("svg",Z(Z({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,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(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}var E={fa:function(e,n){return(0,m.jsx)(x,R(R({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(C,R(R({},n),{},{icon:e.id}))}},D=function(e){var n=w[e.icon];if(!n)return null;var t=E[n.lib];return t?t(n,e):null};D.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const N=D},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(46927),i=t(70457),o=t(30963),a=t(85893);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(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,l(l({},t),{},{style:{fontSize:n},spin:!0,icon:i.IJ7}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
1
+ (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{5702:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Or});var r,i=t(80467),o=t(21477),a=t(34206),c=t(46458),l=t(48479),s=t(1024),u=t.n(s),f=t(46927),d=t(44066),p=t(70696),h=t(10535),g=t(78958),m=t(45915),v=t(91411),b=t(32678),y=t(37188);const x=(0,b.ZP)(y.hc).withConfig({displayName:"StyledSignalList"})(r||(r=(0,v.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,O,Z=t(88162),P=t(32884),S=t.n(P),C=t(88601),_=t(58664),R=(k={},(0,f.Z)(k,g.Z.condition.BASE,"inherit"),(0,f.Z)(k,g.Z.condition.DANGER,C.Z.color("signal.danger.text")),(0,f.Z)(k,g.Z.condition.PRIMARY,(function(e){return(0,_.HO)(S()(e.theme,"colors.primary"),1)})),(0,f.Z)(k,g.Z.condition.SUCCESS,C.Z.color("signal.success.text")),(0,f.Z)(k,g.Z.condition.WARNING,C.Z.color("signal.warning.text")),(0,f.Z)(k,g.Z.condition.INFO,C.Z.color("signal.info.text")),k),E=(0,b.ZP)(y.EF).withConfig({displayName:"StyledSignalListItem"})(O||(O=(0,v.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 R[e.condition]||"inherit"}(e)}));E.propTypes={condition:g.Z.conditionPropTypes(R)};const D=E;var N,T,L=(N={},(0,f.Z)(N,g.Z.condition.BASE,!1),(0,f.Z)(N,g.Z.condition.PRIMARY,!1),(0,f.Z)(N,g.Z.condition.DANGER,"times"),(0,f.Z)(N,g.Z.condition.SUCCESS,"check"),(0,f.Z)(N,g.Z.condition.WARNING,"exclamation-triangle"),(0,f.Z)(N,g.Z.condition.INFO,"info"),N),I=function(e){var n=L[e.condition];return n?(0,w.jsx)(Z.Z,{icon:n,position:g.Z.position.SOLE}):T||(T=(0,w.jsx)("i",{children:"•"}))},A=function(e){return(0,w.jsxs)(D,{condition:e.condition,children:[I(e),e.label,u().Children.map(e.children,(function(e){return u().cloneElement(e)}))]})};A.defaultProps={condition:g.Z.condition.BASE};const M={List:j,Item:A};const q=function(e){if(!e.error)return null;var n=[];return Object.keys(e.error).forEach((function(t){n.push.apply(n,(0,m.Z)(e.error[t]))})),(0,w.jsx)(M.List,{children:n.map((function(e,n){return(0,w.jsx)(M.Item,{condition:"danger",label:e},n)}))})};var F,V,z,B,W,H,$=t(79686),U=t(7281),G=t(30759),Y=t(40953),K="1.1px",Q=function(e){var n=e.isDisplay,t=e.immutable;return"cursor: ".concat(!n&&t?"not-allowed":"auto",";")},J=b.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(F||(F=(0,v.Z)(["\n width: calc(100% - ",");\n"])),U.Z.space(.5)),X=b.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(V||(V=(0,v.Z)(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 1px ","; // 1px to prevent label bottom from being cut\n padding-left: ",";\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,G.Z)({fontWeight:function(e){return e.dirty?C.Z.fontWeight("bold"):C.Z.fontWeight("regular")},lineHeight:1}),C.Z.color("paper"),(function(e){return Y.v[(n=e,t=n.isDisplay,r=n.immutable,i=n.signal,o=n.hasValue,i?"signal":o?"hasValue":t?"shade1":r?"shade0":i?"signal":"shade1")](e);var n,t,r,i,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)})),ee=b.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(z||(z=(0,v.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"])),K,(function(e){return Y.m[(n=e,t=n.immutable,r=n.isDisplay,i=n.signal,n.isDirty?"isDirty":r||t?"transparent":i?"signal":"shade1")](e);var n,t,r,i}),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"}),$.j,(function(e){return e.isDisplay&&U.Z.space(-1)})),ne=b.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(B||(B=(0,v.Z)(["\n &&& {\n ","\n }\n"])),(0,G.Z)({fontSize:U.Z.font(-1)})),te=b.ZP.div.withConfig({displayName:"StyledStatedValueError"})(W||(W=(0,v.Z)([""]))),re=b.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(H||(H=(0,v.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),ee,ne,te,U.Z.space(-2),ne,te,U.Z.space(-1),K,y.hc,U.Z.space(-2));function ie(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 oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const ae=function(e){var n,t,r=e.children,i=e.description,o=e.dirty,a=e.isDisplay,c=e.error,l=e.hasValue,s=e.id,u=e.label,f=e.mandatory,m=e.mandatoryTitle,v=e.immutable,b=e.touched,y=e.signal,x=!v&&b&&c&&Object.keys(c).length>0,j="".concat(p.Z.adjustedHTMLString(u)).concat(f&&m?", ".concat(m):""),k=y||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,f,l);return(0,w.jsx)(d.Z,{children:function(e){var d=e.getRef;return(0,w.jsxs)(re,{ref:d,children:[(0,w.jsxs)(ee,{hasValue:l,immutable:v,isDisplay:a,signal:k,children:[r,u&&(0,w.jsx)(J,{children:(0,w.jsx)(X,oe(oe({},!a&&!v&&{htmlFor:s}),{},{hasValue:l,dirty:o,title:j,immutable:v,isDisplay:a,signal:k,children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(h.Z.sanitizeHtml(u)).concat(f?" *":"")}})}))})]}),i&&(n||(n=(0,w.jsx)(ne,{children:i}))),x&&(t||(t=(0,w.jsx)(te,{children:(0,w.jsx)(q,{error:c})})))]})}})};var ce,le,se=t(8342),ue=t(65035),fe=t(28655),de=t.n(fe),pe=t(51032),he=b.ZP.input.withConfig({displayName:"StyledInput"})(ce||(ce=de()(["\n && {\n ","\n }\n"])),pe.k9),ge=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(le||(le=de()(["\n && {\n ","\n }\n"])),pe.yP);const me=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=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){i(n,e.target.checked)}),disabled:r}),(0,w.jsx)(a.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const ve=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,c=e.running,l=e.disabled,u=e.executeDbRefactoring,f=e.loadModules,d=e.loadFragments,p=e.setSelectedModules,h=e.setFragmentSelected,g=e.setVersion,m=e.setIgnoreErrors;(0,s.useEffect)((function(){0===t.length&&f(),0===i.length&&d()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,w.jsx)(ae,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(se.Z,{options:t,value:r,onChange:p,isMulti:!0,immutable:l})}),(0,w.jsx)(ae,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(me,{fragments:i,selectedFragments:o,disabled:l,setFragmentSelected:h})}),(0,w.jsx)(ae,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");g(n)},disabled:l})})}),(0,w.jsx)(ae,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){m(e.target.checked)},disabled:l})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute",look:"raised",pending:c,disabled:l})]})};var be={loadModules:l.H6,loadFragments:l.VL,setSelectedModules:l.pi,setFragmentSelected:l.LO,setVersion:l.xO,setIgnoreErrors:l.Pm,executeDbRefactoring:l.KK};const ye=(0,c.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}}),be)(ve);const xe=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,o=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,w.jsx)(ae,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(ge,{children:(0,w.jsx)(he,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,w.jsx)(ue.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var we={setLanguage:l.m0,executeLanguageUpgrade:l.b7};const je=(0,c.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}}),we)(xe);var ke,Oe,Ze,Pe;const Se=function(){return(0,w.jsxs)(w.Fragment,{children:[ke||(ke=(0,w.jsx)(a.ZP.H1,{children:"Database Refactoring"})),Oe||(Oe=(0,w.jsx)(ye,{})),Ze||(Ze=(0,w.jsx)(a.ZP.H1,{children:"Language Upgrade"})),Pe||(Pe=(0,w.jsx)(je,{}))]})};var Ce,_e,Re,Ee,De,Ne,Te,Le=t(63038),Ie=t.n(Le),Ae={ERROR:"#a00"},Me=b.ZP.div.withConfig({displayName:"StyledLogTable"})(Ce||(Ce=de()(["\n display: grid;\n gap: 1px;\n"]))),qe=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(_e||(_e=de()(["\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(Ae[e.level]||"#ddd",";")})),Fe=b.ZP.span.withConfig({displayName:"StyledMessage"})(Re||(Re=de()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),Ve=b.ZP.span.withConfig({displayName:"StyledTime"})(Ee||(Ee=de()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),ze=b.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(De||(De=de()(["\n margin-top: 1em;\n"]))),Be=b.ZP.div.withConfig({displayName:"StyledDetailMessage"})(Ne||(Ne=de()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),We=b.ZP.div.withConfig({displayName:"StyledStackTrace"})(Te||(Te=de()(["\n && {\n ","\n }\n"])),(0,G.Z)()),He=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const $e=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:He(e)},n)}))})]})};const Ue=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),i=r[0],o=r[1];return(0,w.jsxs)(qe,{level:n.level,children:[(0,w.jsx)(Fe,{onClick:function(){n.exception&&o(!i)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(Ve,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,w.jsx)($e,{exception:n.exception})]})};var Ge;const Ye=function(e){var n=e.entries;return(0,w.jsx)(Me,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Ue,{entry:e},e.key)})):Ge||(Ge=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const Ke=(0,c.connect)((function(e){return{entries:e.log.entries}}),{})(Ye);var Qe,Je;const Xe=function(){return(0,w.jsxs)(w.Fragment,{children:[Qe||(Qe=(0,w.jsx)(a.ZP.H1,{children:"Log"})),Je||(Je=(0,w.jsx)(Ke,{}))]})};var en,nn,tn=t(49478),rn=b.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(en||(en=de()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),on=b.ZP.div.withConfig({displayName:"StyledGroupHeading"})(nn||(nn=de()(["\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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)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 ln=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,o=function(e,n){var t,r=an(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(rn,{children:[(0,w.jsxs)(on,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){i(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){i([n],e.target.checked)})}),(0,w.jsx)(a.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const sn=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=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)(ue.Z,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(ue.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)(ln,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var un={setSelected:tn.Pq,generateSql:tn.$i,generateChangelog:tn._w};const fn=(0,c.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),un)(sn);var dn,pn,hn,gn=b.ZP.div.withConfig({displayName:"StyledProgressBar"})(dn||(dn=de()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),mn=b.ZP.div.withConfig({displayName:"StyledInnerProgress"})(pn||(pn=de()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),vn=b.ZP.div.withConfig({displayName:"StyledProgressText"})(hn||(hn=de()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bn=function(e){return e.result?e.result:e.running?e.total?"".concat(yn(e),"%"):"Preparing...":"Not started"},yn=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const xn=function(e){var n=e.state;return(0,w.jsxs)(gn,{children:[(0,w.jsx)(mn,{percentage:yn(n)}),(0,w.jsx)(vn,{children:bn(n)})]})};const wn=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ue.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(xn,{state:n})]})};var jn={startValidation:tn.YV};const kn=(0,c.connect)((function(e){return{state:e.modelValidation.state}}),jn)(wn);var On,Zn,Pn;const Sn=function(){return(0,w.jsxs)(w.Fragment,{children:[On||(On=(0,w.jsx)(a.ZP.H1,{children:"Model Validation"})),Zn||(Zn=(0,w.jsx)(kn,{})),Pn||(Pn=(0,w.jsx)(fn,{}))]})};var Cn=t(22541),_n=t(87852),Rn=t.n(_n),En=t(2091),Dn=t(84137),Nn=t(30381),Tn=t.n(Nn);function Ln(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 In(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ln(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var An="YYYY-MM-DD[T]HH:mm:ss.SSS[Z]",Mn="YYYY-MM-DD";const qn={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?Tn()(e).utc().format(An):null,to:e?Tn()(e).utc().add(1,"d").format(An):null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?Tn().utc(e.from,An).local().format(Mn):e&&e.to?Tn().utc(e.to,An).local().format(Mn):null},getToOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{minDate:n}})},getFromOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{maxDate:n}})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{minDate:n}})},getFromOptions:function(e,n){return In(In({},e),{},{flatpickrOptions:{maxDate:n}})}}};var Fn,Vn,zn,Bn,Wn,Hn,$n,Un=b.ZP.div.withConfig({displayName:"StyledInputWrapper"})(Fn||(Fn=(0,v.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Gn=b.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Vn||(Vn=(0,v.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n line-height: unset !important;\n text-align: center;\n }\n"]))),Yn=b.ZP.div.withConfig({displayName:"StyledIconWrapper"})(zn||(zn=(0,v.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),U.Z.font(-2.7)),Kn=b.ZP.div.withConfig({displayName:"StyledRange"})(Bn||(Bn=(0,v.Z)(["\n display: flex;\n"]))),Qn=b.ZP.div.withConfig({displayName:"StyledInput"})(Wn||(Wn=(0,v.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),Jn=b.ZP.div.withConfig({displayName:"StyledExtender"})(Hn||(Hn=(0,v.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Xn(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 et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xn(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const nt=function(e){var n,t,r=e.value,i=e.events,o=e.readOnly,a=e.type,c=e.options,l=e.fromText,u=e.toText,f=(null==r?void 0:r.isRangeValue)||!1,d=(0,s.useRef)(r);d.current=r;var p=(0,s.useMemo)((function(){return et(et({},i),{},{onChange:function(e){i.onChange(e)}})}),[i]),h={onChange:function(e){i.onChange(et(et({},d.current),{},{to:e}))}},g={onChange:function(e){i.onChange(et(et({},d.current),{},{from:e}))}},m=qn[a],v=(null==m||null===(n=m.icons)||void 0===n?void 0:n.range)||"chevron-down",b=(null==m||null===(t=m.icons)||void 0===t?void 0:t.single)||"chevron-left",y=(null==m?void 0:m.type)||a;return(0,w.jsxs)(Kn,{children:[(0,w.jsx)(Un,{children:f?(0,w.jsxs)(Qn,{children:[(0,w.jsx)(Gn,{children:(0,w.jsx)(Dn.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getFromOptions?m.getFromOptions(e,n):e}(c,r.to),value:(null==r?void 0:r.from)||null,events:g,placeholder:l}))}),$n||($n=(0,w.jsx)(Yn,{children:(0,w.jsx)(Z.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Gn,{children:(0,w.jsx)(Dn.Z,et(et({},e),{},{options:function(e,n){return null!=m&&m.getToOptions?m.getToOptions(e,n):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:h,placeholder:u}))})]}):(0,w.jsx)(Dn.Z,et(et({type:y},Rn()(e,["type"])),{},{events:p}))}),(0,w.jsx)(Jn,{children:(0,w.jsx)(En.Z,{disabled:o,icon:f?b:v,onClick:function(){var e=f?function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r):function(e){return null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0}}(r);i.onChange(e)}})})]})};const tt=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(ae,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(ae,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(nt,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var rt={setActive:Cn.Iv,setElapsed:Cn.uI};const it=(0,c.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),rt)(tt);var ot,at,ct,lt,st,ut,ft,dt={ERROR:"#a00"},pt=b.ZP.div.withConfig({displayName:"StyledLogTable"})(ot||(ot=de()(["\n display: grid;\n gap: 1px;\n"]))),ht=b.ZP.div.withConfig({displayName:"StyledLogEntry"})(at||(at=de()(["\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(dt[e.level]||"#ddd",";")})),gt=b.ZP.span.withConfig({displayName:"StyledStatementHeader"})(ct||(ct=de()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,G.Z)()),mt=b.ZP.span.withConfig({displayName:"StyledStatement"})(lt||(lt=de()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),vt=b.ZP.span.withConfig({displayName:"StyledTime"})(st||(st=de()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,G.Z)()),bt=b.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(ut||(ut=de()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,G.Z)()),yt=b.ZP.span.withConfig({displayName:"StyledElapsed"})(ft||(ft=de()(["\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 xt=function(e){var n=e.entry,t=(0,s.useState)(!1),r=Ie()(t,2),i=r[0],o=r[1],a=n.sql.length>100,c=a?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(ht,{children:[(0,w.jsx)(gt,{expandable:a,onClick:function(){a&&o(!i)},children:c}),i&&(0,w.jsx)(mt,{children:n.sql}),(0,w.jsx)(vt,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(bt,{children:(0,w.jsxs)(yt,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var wt;const jt=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)(pt,{children:n.length>0?n.map((function(e){return(0,w.jsx)(xt,{entry:e},e.key)})):wt||(wt=(0,w.jsx)(a.ZP.Span,{children:"No entries so far."}))})};const kt=(0,c.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(jt);var Ot,Zt,Pt;const St=function(){return(0,w.jsxs)(w.Fragment,{children:[Ot||(Ot=(0,w.jsx)(a.ZP.H1,{children:"SQL Log"})),Zt||(Zt=(0,w.jsx)(it,{})),Pt||(Pt=(0,w.jsx)(kt,{}))]})};function Ct(e,n){return Ct=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Ct(e,n)}function _t(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ct(e,n)}function Rt(){return Rt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Rt.apply(this,arguments)}function Et(e){return"/"===e.charAt(0)}function Dt(e,n){for(var t=n,r=t+1,i=e.length;r<i;t+=1,r+=1)e[t]=e[r];e.pop()}const Nt=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],i=n&&n.split("/")||[],o=e&&Et(e),a=n&&Et(n),c=o||a;if(e&&Et(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];t="."===l||".."===l||""===l}else t=!1;for(var s=0,u=i.length;u>=0;u--){var f=i[u];"."===f?Dt(i,u):".."===f?(Dt(i,u),s++):s&&(Dt(i,u),s--)}if(!c)for(;s--;s)i.unshift("..");!c||""===i[0]||i[0]&&Et(i[0])||i.unshift("");var d=i.join("/");return t&&"/"!==d.substr(-1)&&(d+="/"),d};var Tt=t(2177);function Lt(e){return"/"===e.charAt(0)?e:"/"+e}function It(e){return"/"===e.charAt(0)?e.substr(1):e}function At(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function Mt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function qt(e){var n=e.pathname,t=e.search,r=e.hash,i=n||"/";return t&&"?"!==t&&(i+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Ft(e,n,t,r){var i;"string"==typeof e?(i=function(e){var n=e||"/",t="",r="",i=n.indexOf("#");-1!==i&&(r=n.substr(i),n=n.substr(0,i));var o=n.indexOf("?");return-1!==o&&(t=n.substr(o),n=n.substr(0,o)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e),i.state=n):(void 0===(i=Rt({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==n&&void 0===i.state&&(i.state=n));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return t&&(i.key=t),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Nt(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Vt(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,i){if(null!=e){var o="function"==typeof e?e(n,t):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var zt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bt(e,n){n(window.confirm(e))}var Wt="popstate",Ht="hashchange";function $t(){try{return window.history.state||{}}catch(e){return{}}}function Ut(e){void 0===e&&(e={}),zt||(0,Tt.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,l=o.getUserConfirmation,s=void 0===l?Bt:l,u=o.keyLength,f=void 0===u?6:u,d=e.basename?Mt(Lt(e.basename)):"";function p(e){var n=e||{},t=n.key,r=n.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=At(o,d)),Ft(o,r,t)}function h(){return Math.random().toString(36).substr(2,f)}var g=Vt();function m(e){Rt(C,e),C.length=t.length,g.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function b(){x(p($t()))}var y=!1;function x(e){if(y)y=!1,m();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?m({action:"POP",location:e}):function(e){var n=C.location,t=j.indexOf(n.key);-1===t&&(t=0);var r=j.indexOf(e.key);-1===r&&(r=0);var i=t-r;i&&(y=!0,O(i))}(e)}))}}var w=p($t()),j=[w.key];function k(e){return d+qt(e)}function O(e){t.go(e)}var Z=0;function P(e){1===(Z+=e)&&1===e?(window.addEventListener(Wt,v),i&&window.addEventListener(Ht,b)):0===Z&&(window.removeEventListener(Wt,v),i&&window.removeEventListener(Ht,b))}var S=!1;var C={length:t.length,action:"POP",location:w,createHref:k,push:function(e,n){var i="PUSH",o=Ft(e,n,h(),C.location);g.confirmTransitionTo(o,i,s,(function(e){if(e){var n=k(o),a=o.key,l=o.state;if(r)if(t.pushState({key:a,state:l},null,n),c)window.location.href=n;else{var s=j.indexOf(C.location.key),u=j.slice(0,s+1);u.push(o.key),j=u,m({action:i,location:o})}else window.location.href=n}}))},replace:function(e,n){var i="REPLACE",o=Ft(e,n,h(),C.location);g.confirmTransitionTo(o,i,s,(function(e){if(e){var n=k(o),a=o.key,l=o.state;if(r)if(t.replaceState({key:a,state:l},null,n),c)window.location.replace(n);else{var s=j.indexOf(C.location.key);-1!==s&&(j[s]=o.key),m({action:i,location:o})}else window.location.replace(n)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return S||(P(1),S=!0),function(){return S&&(S=!1,P(-1)),n()}},listen:function(e){var n=g.appendListener(e);return P(1),function(){P(-1),n()}}};return C}var Gt="hashchange",Yt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+It(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:It,decodePath:Lt},slash:{encodePath:Lt,decodePath:Lt}};function Kt(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function Qt(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function Jt(e){window.location.replace(Kt(window.location.href)+"#"+e)}function Xt(e){void 0===e&&(e={}),zt||(0,Tt.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,i=void 0===r?Bt:r,o=t.hashType,a=void 0===o?"slash":o,c=e.basename?Mt(Lt(e.basename)):"",l=Yt[a],s=l.encodePath,u=l.decodePath;function f(){var e=u(Qt());return c&&(e=At(e,c)),Ft(e)}var d=Vt();function p(e){Rt(Z,e),Z.length=n.length,d.notifyListeners(Z.location,Z.action)}var h=!1,g=null;function m(){var e,n,t=Qt(),r=s(t);if(t!==r)Jt(r);else{var o=f(),a=Z.location;if(!h&&(n=o,(e=a).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===qt(o))return;g=null,function(e){if(h)h=!1,p();else{var n="POP";d.confirmTransitionTo(e,n,i,(function(t){t?p({action:n,location:e}):function(e){var n=Z.location,t=x.lastIndexOf(qt(n));-1===t&&(t=0);var r=x.lastIndexOf(qt(e));-1===r&&(r=0);var i=t-r;i&&(h=!0,w(i))}(e)}))}}(o)}}var v=Qt(),b=s(v);v!==b&&Jt(b);var y=f(),x=[qt(y)];function w(e){n.go(e)}var j=0;function k(e){1===(j+=e)&&1===e?window.addEventListener(Gt,m):0===j&&window.removeEventListener(Gt,m)}var O=!1;var Z={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=Kt(window.location.href)),t+"#"+s(c+qt(e))},push:function(e,n){var t="PUSH",r=Ft(e,void 0,void 0,Z.location);d.confirmTransitionTo(r,t,i,(function(e){if(e){var n=qt(r),i=s(c+n);if(Qt()!==i){g=n,function(e){window.location.hash=e}(i);var o=x.lastIndexOf(qt(Z.location)),a=x.slice(0,o+1);a.push(n),x=a,p({action:t,location:r})}else p()}}))},replace:function(e,n){var t="REPLACE",r=Ft(e,void 0,void 0,Z.location);d.confirmTransitionTo(r,t,i,(function(e){if(e){var n=qt(r),i=s(c+n);Qt()!==i&&(g=n,Jt(i));var o=x.indexOf(qt(Z.location));-1!==o&&(x[o]=n),p({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=d.setPrompt(e);return O||(k(1),O=!0),function(){return O&&(O=!1,k(-1)),n()}},listen:function(e){var n=d.appendListener(e);return k(1),function(){k(-1),n()}}};return Z}t(94662);function er(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}u().Component;u().Component;var nr=function(e,n){return"function"==typeof e?e(n):e},tr=function(e,n){return"string"==typeof e?Ft(e,null,null,n):e},rr=function(e){return e},ir=u().forwardRef;void 0===ir&&(ir=rr);var or=ir((function(e,n){var t=e.innerRef,r=e.navigate,i=e.onClick,o=er(e,["innerRef","navigate","onClick"]),a=o.target,c=Rt({},o,{onClick:function(e){try{i&&i(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=rr!==ir&&n||t,u().createElement("a",c)}));var ar=ir((function(e,n){var t=e.component,r=void 0===t?or:t,o=e.replace,a=e.to,c=e.innerRef,l=er(e,["component","replace","to","innerRef"]);return u().createElement(i.s6.Consumer,null,(function(e){e||(0,Tt.Z)(!1);var t=e.history,i=tr(nr(a,e.location),e.location),s=i?t.createHref(i):"",f=Rt({},l,{href:s,navigate:function(){var n=nr(a,e.location),r=qt(e.location)===qt(tr(n));(o||r?t.replace:t.push)(n)}});return rr!==ir?f.ref=n||c:f.innerRef=c,u().createElement(r,f)}))})),cr=function(e){return e},lr=u().forwardRef;void 0===lr&&(lr=cr);var sr;lr((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,o=e.activeClassName,a=void 0===o?"active":o,c=e.activeStyle,l=e.className,s=e.exact,f=e.isActive,d=e.location,p=e.sensitive,h=e.strict,g=e.style,m=e.to,v=e.innerRef,b=er(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u().createElement(i.s6.Consumer,null,(function(e){e||(0,Tt.Z)(!1);var t=d||e.location,o=tr(nr(m,t),t),y=o.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,i.LX)(t.pathname,{path:x,exact:s,sensitive:p,strict:h}):null,j=!!(f?f(w,t):w),k="function"==typeof l?l(j):l,O="function"==typeof g?g(j):g;j&&(k=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(k,a),O=Rt({},O,c));var Z=Rt({"aria-current":j&&r||null,className:k,style:O,to:o},b);return cr!==lr?Z.ref=n||v:Z.innerRef=v,u().createElement(ar,Z)}))}));const ur=(0,b.ZP)(ar)(sr||(sr=(0,v.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,G.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 fr,dr,pr,hr,gr,mr,vr,br,yr,xr,wr=b.ZP.div.withConfig({displayName:"StyledDevCon"})(fr||(fr=de()(["\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)),jr=b.ZP.div.withConfig({displayName:"StyledNavigation"})(dr||(dr=de()(["\n display: flex;\n"]))),kr=(0,b.ZP)(ur).withConfig({displayName:"StyledRouterLink"})(pr||(pr=de()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Or=function(){return(0,w.jsxs)(wr,{children:[hr||(hr=(0,w.jsx)(o.Z.Notifications,{})),gr||(gr=(0,w.jsx)(a.ZP.Span,{children:"Tocco Developer Console"})),mr||(mr=(0,w.jsxs)(jr,{children:[(0,w.jsx)(kr,{to:"/log",children:"Log"}),(0,w.jsx)(kr,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(kr,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(kr,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(i.rs,{children:[(0,w.jsx)(i.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(i.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(i.AW,{path:"/log",exact:!0,render:function(){return vr||(vr=(0,w.jsx)(Xe,{}))}}),(0,w.jsx)(i.AW,{path:"/dbrefactoring",exact:!0,render:function(){return br||(br=(0,w.jsx)(Se,{}))}}),(0,w.jsx)(i.AW,{path:"/modelvalidation",exact:!0,render:function(){return yr||(yr=(0,w.jsx)(Sn,{}))}}),(0,w.jsx)(i.AW,{path:"/sqllog",exact:!0,render:function(){return xr||(xr=(0,w.jsx)(St,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>xe});var r=t(68957),i=t(91411),o=t(86249),a=t.n(o),c=(t(58900),t(78634)),l=t(84100),s=t(60131),u=t(48230),f=t(64952),d=t(469),p=t(81896),h=t(46940),g=t(32884),m=t.n(g),v=t(40021),b=t.n(v),y=t(11203),x=t.n(y),w=t(72730),j=t.n(w),k=t(1024),O=t(32678),Z=(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 Z.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},C=t(44822),_=t(11259),R=t(32208),E=t(88098),D=t(19241),N=(t(70646),t(74085)),T=t.n(N),L=t(77654),I=t.n(L),A=["==","!=","<=",">=","<",">","~="],M=["true","false","null"],q=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],F=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],V=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,D.Z)(e);if(n){var i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}const B=function(e){return function(n){(0,R.Z)(r,n);var t=z(r);function r(){var n;(0,_.Z)(this,r),n=t.call(this);var i=[{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(V.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(i),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(A.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(F.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.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(i,[{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(i,[{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=I()(n.$rules,o,(function(e,n){return T()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return(0,C.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function W(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 i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var H=function(e){(0,R.Z)(t,e);var n=W(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,R.Z)(t,e);var n=W(t);function t(){var e;(0,_.Z)(this,t),e=n.call(this);var r=["query","queryCount"],i=[{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],i);e.embedRules(H,"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(B(),"tql-",a,["start"]);var c={"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=I()(e.$rules,c,(function(e,n){return T()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return(0,C.Z)(t)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),U=t(52902),G=t(45915),Y=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},Q=function(e,n){return K(e.getCurrentToken())===n},J=function(e){if(Q(e,"model")&&e.stepBackward(),(Q(e,"field")||Q(e,"relation"))&&e.stepBackward(),!Q(e,"chaining"))return null;if(e.stepBackward(),Q(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},X=function(e,n){for(;!Q(e,n);)if(!e.stepBackward())return!1;return!0},ee=function(e,n){return Q(e,"rparen")?1:n>0&&Q(e,"lparen")?(e.stepBackward(),-1):0},ne=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&Q(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat((0,G.Z)(re(e))):[]}if(Q(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,J)},ie=function(e){return te(e,ne)},oe=1e3,ae=function(e,n,t){var r=function(e,n){if(n){var t=ie(e());return{baseModel:n,modelScope:(0,U.Z)(t).slice(0)}}var r=ie(e()),i=(0,U.Z)(r);return{baseModel:i[0],modelScope:i.slice(1)}}(e,t),i=r.baseModel,o=r.modelScope;if(i){var a=re(e()),c=[].concat((0,G.Z)(o),(0,G.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var n=(0,U.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,G.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,G.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}))))}))})([i].concat((0,G.Z)(c))).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)}))}},ce=function(e,n){return n?"".concat(e," (").concat(n,")"):e},le=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:ce(n,t),value:n,score:oe}}));e(null,t)})).catch((function(n){return e(n)}))},se=function(){return V.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,i,o){var a=function(){return new Y(t,r.row,r.column)},c=a(),l=c.getCurrentToken(),s=c.stepBackward()?c.getCurrentToken():null;switch(K(l)){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":le(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,F.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,o,e),s&&"relation"!==K(s)&&le(o);break;case null:e&&ae(a,o,e),o(null,se())}}}};function fe(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 i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var de=function(e){(0,R.Z)(t,e);var n=fe(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,D.Z)(e);if(n){var i=(0,D.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,E.Z)(this,t)}}var he,ge=function(e){(0,R.Z)(t,e);var n=pe(t);function t(e){var r,i=e.implicitModelName;return(0,_.Z)(this,t),(r=n.call(this)).HighlightRules=B(i),r.completer=ue(i),r.snippedIdField=null,r}return(0,C.Z)(t)}(a().require("ace/mode/text").Mode),me=t(85893),ve=O.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,i.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),be={groovy:function(){return new l.Mode},html:function(){return new s.Mode},xml:function(){return new h.Mode},properties:function(){return new d.Mode},json:function(){return new u.Mode},htmlmixed:function(){return new de},freemarkermixed:function(){return new de},ftl:function(){return new de},tql:function(e){return new ge(e)},less:function(){return new f.Mode},drools:function(){return new c.Mode},text:function(){return new p.Mode}},ye=function(e,n){var t=n.mode,i=n.theme,o=n.showGutter,a=n.editorOptions,c=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 m()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return m()(be,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(i)),Object.entries(c).forEach((function(n){var t=(0,r.Z)(n,2),i=t[0],o=t[1];e.setOption(i,o)})),e.renderer.setShowGutter(o),e.resize()};const xe=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,i=e.value,o=e.onChange,c=e.showGutter,l=void 0===c||c,s=e.editorOptions,u=void 0===s?{}:s,f=e.implicitModel,d=(0,k.useRef)(null),p=(0,k.useRef)(null),h=(0,k.useMemo)((function(){return{mode:n,theme:r,showGutter:l,editorOptions:u,implicitModel:f}}),[n,r,l,u,f]);return(0,k.useEffect)((function(){var e=a().edit(d.current);return e.getSession().setValue(i||""),e.on("change",(function(){return o(e.getValue())})),ye(e,h),p.current=e,function(){return e.destroy()}}),[]),(0,k.useEffect)((function(){p.current&&ye(p.current,h)}),[h]),(0,k.useEffect)((function(){p.current&&!b()(i)&&i!==p.current.getValue()&&p.current.getSession().setValue(i)}),[i]),(0,me.jsx)(ve,{ref:d})}},8715:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>I});var r=t(46927),i=t(68957),o=t(1024),a=t(74806),c=t(32678),l=t(2091),s=(t(66991),t(29214)),u=t(57413),f=t(53528),d=t(36258),p=t(35997),h=t(70696);function g(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 m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v,b,y,x,w={"de-CH":u.German,de:u.German,fr:f.French,it:d.Italian},j=function(e){return function(n){n&&n.length>0?e(n[0].toISOString()):e(null)}},k=function(e,n){var t=n.value,r=n.locale,a=n.flatpickrOptions,c=(0,o.useRef)(null),l=p.Z.usePrevious(a);return(0,o.useEffect)((function(){return function(){c.current&&c.current.destroy()}}),[]),(0,o.useEffect)((function(){c.current&&(c.current.setDate(t,!1),c.current.redraw())}),[JSON.stringify(t)]),(0,o.useEffect)((function(){var e,n,t=w[r]||(null===(e=c.current)||void 0===e||null===(n=e.l10ns)||void 0===n?void 0:n.en);c.current&&t&&(c.current.localize(t),c.current.set("locale",t),c.current.redraw())}),[r]),(0,o.useEffect)((function(){if(c.current){var e=h.Z.difference(a,l);Object.keys(e).length>0&&(Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];c.current.set(t,r)})),c.current.redraw())}}),[a]),function(){return c.current=function(e,n){var t=n.shouldAppend,r=n.onChange,i=n.value,o=n.fontFamily,a=n.locale,c=n.flatpickrOptions,l=w[a],u=m(m(m({wrap:!0,onChange:j(r),altInput:!1,enableTime:!1,defaultDate:i},t?{appendTo:e.current,static:!0}:{}),l?{locale:l}:{}),c),f=(0,s.Z)(e.current,u);return o&&(f.calendarContainer.style.fontFamily=o),f}(e,n),c.current}},O=t(88601),Z=t(91411),P=t(40953),S=t(51032),C=c.ZP.input.withConfig({displayName:"StyledDatePickerInput"})(v||(v=(0,Z.Z)(["\n &&& {\n ","\n margin: 0;\n }\n"])),S.k9),_=c.ZP.div.withConfig({displayName:"StyledDatePickerValue"})(b||(b=(0,Z.Z)(["\n && {\n ","\n display: flex;\n align-items: center;\n ","\n }\n"])),S.k9,(function(e){return!e.hasValue&&"\n justify-content: center;\n color: ".concat(P.v.shade1(e),";\n ")})),R=c.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(y||(y=(0,Z.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),E=c.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(x||(x=(0,Z.Z)(["\n && {\n ","\n\n input {\n display: ",";\n\n &:last-of-type {\n display: ",";\n }\n }\n }\n"])),S.yP,(function(e){return e.immutable?"none":"block"}),(function(e){return e.immutable?"block":"none"})),D=t(85893);function N(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 T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=function(e){var n=e.querySelector('input.flatpickr-input:not([type="hidden"])');n&&n.focus()};const I=(0,c.Zz)((0,a.ZP)((function(e){var n,t,r=e.immutable,a=e.id,c=e.options,s=e.value,u=e.onChange,f=e.formatDate,d=e.intl,p=e.placeholder,h=(0,o.useState)(!1),g=(0,i.Z)(h,2),m=g[0],v=g[1],b=(0,o.useRef)(null),y=(0,o.useRef)(null),x=d.locale,w=O.Z.fontFamily("regular")(e),j=T({altInput:!0,altInputClass:"",clickOpens:!r},c?c.flatpickrOptions:{}),Z=k(y,{value:s,onChange:function(e){e&&u([e])},fontFamily:w,locale:x,flatpickrOptions:j}),P=(null===(n=b.current)||void 0===n||null===(t=n.altInput)||void 0===t?void 0:t.value)||"",S=function(){m?L(y.current):(b.current=Z(),b.current.calendarContainer.classList.add("tocco-ui-theme"),b.current.calendarContainer.addEventListener("keydown",N),v(!0),setTimeout((function(){L(y.current)})))},N=function(e){(e.target.classList.contains("flatpickr-hour")||"Tab"!==e.key||e.shiftKey)&&"Enter"!==e.key||setTimeout((function(){b.current.close()})),"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},I=s&&s.length>0&&s.every((function(e){return e}));return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(R,{immutable:r,id:a,tabIndex:"-1",onFocus:function(){S(),b.current&&b.current.open()},onKeyDown:N,children:(0,D.jsxs)(E,{"data-wrap":!0,immutable:r,ref:y,children:[(0,D.jsx)(C,T(T({},r?{disabled:"disabled"}:{}),{},{type:"hidden","data-input":!0,immutable:r,className:"flatpickr-input",placeholder:p})),!m&&(0,D.jsx)(_,{tabIndex:0,hasValue:I,children:I?f(s[0]):p}),(0,D.jsx)(C,{disabled:!0,immutable:r,value:P,placeholder:p}),!r&&I&&(0,D.jsx)(l.Z,{icon:"times",tabIndex:-1,"aria-label":function(e){return d.formatMessage({id:e})}("client.component.dateAbstract.clearDateLabel"),onMouseDown:function(e){e.preventDefault(),u(null)}})]})})})})))},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(97044),i=t(96098),o=t.n(i),a=t(34206),c=t(85893);const l=function(e){var n=e.value,t=e.breakWords,i=(0,r._)(n),l=o()(i)?n:i.formatInternational();return(0,c.jsx)(a.ZP.Span,{breakWords:t,children:l})}},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>D,default:()=>N});var r,i=t(46927),o=t(46444),a=t.n(o),c=t(78947),l=t(99245),s=t(68019),u=t(70457),f=t(30963),d=t(32884),p=t.n(d),h=t(91411),g=t(32678).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,h.Z)([""]))),m=t(85893);function v(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c.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.gMD,s.cwv,s.w49,s.fUD,s.icc,s.ca9,s.Vmj,s.gSj,s.WFE,s.hQn,s.LEp,s.WV2,s.diR,s.f8k,l.xYR,l.neY,l.AYu,l.kBj,l.hVS,l.dc_,l.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.pL1,s.g6h,s.SJY,s.qmU,s.nek,s.Qy6,u.pL1,s.hVM,s.yOf,s.Xgz,s.Mzg,s.r6l,s.IwR,u.Alc,s.dLO,s.ntl,s.Hw7,s.FYs,s.$36,s.Ry6,s.C3l,s.a1i,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);var y=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth;return(0,m.jsx)(g,{children:(0,m.jsx)(f.G,b(b({icon:n.includes(",")?n.replace(/\s+/,"").split(","):n,style:t},p()(t,"color")&&{color:t.color}),{},{fixedWidth:r}))})};y.defaultProps={hasFixedWidth:!0};const x=y,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"]},"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-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"]},"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"},"list":{"id":"fal, list","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"},"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"}}');var j,k;function O(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P={logo:function(e){return(0,m.jsx)("svg",Z(Z({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,m.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,m.jsx)("svg",Z(Z({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,m.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(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}var E={fa:function(e,n){return(0,m.jsx)(x,R(R({},n),{},{icon:e.id}))},toc:function(e,n){return(0,m.jsx)(C,R(R({},n),{},{icon:e.id}))}},D=function(e){var n=w[e.icon];if(!n)return null;var t=E[n.lib];return t?t(n,e):null};D.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const N=D},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(46927),i=t(70457),o=t(30963),a=t(85893);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(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,l(l({},t),{},{style:{fontSize:n},spin:!0,icon:i.IJ7}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);