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