tocco-admin 3.13.63 → 3.13.64

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.
@@ -1 +1 @@
1
- "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[722],{65066:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ce});var r=n(22056),o=n.n(r),a=n(72189),c=n.n(a),i=n(34987),u=n.n(i),s=(n(62432),n(48063)),l=n(7896),p=n(38475),f=n(83524),d=n(82259),m=n(72495),h=n(38133),g=n(6349),k=n(58156),x=n.n(k),v=n(69843),w=n.n(v),_=n(23805),y=n.n(_),b=n(85015),M=n.n(b),R=n(4883),$=n(6199),j=(n(41769),n(22113),n(4850),n(38606),n(13198),n(84082),n(69377),n(51266),n(8804),n(50086),n(99208)),q=function(e){return j.A.executeRequest("rest/".concat(e))},B=function(e){return 200===e.status?e.json():null},I=n(65044),O=n.n(I),z=n(82274),C=n.n(z),T=n(65611),N=n.n(T),E=n(18337),S=n.n(E),A=n(56994),H=n.n(A),F=(n(75910),n(56449)),G=n.n(F),V=n(6924),U=n.n(V),P=["==","!=","<=",">=","<",">","~="],Z=["true","false","null"],D=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],J=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],K=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function L(e,t,n){return t=S()(t),N()(e,Q()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q=function(){return!!e})()}const W=function(e){return function(t){function n(){var t;C()(this,n),t=L(this,n);var r=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(K.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],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(r),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(P.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(J.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(Z.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(D.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(r,[{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(r,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=U()(t.$rules,o,(function(e,t){return G()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return H()(n,t),O()(n)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules)};function X(e,t,n){return t=S()(t),N()(e,Y()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}var ee=function(e){function t(){var e;C()(this,t);return(e=X(this,t)).$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 H()(t,e),O()(t)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules),te=function(e){function t(){var e;C()(this,t),e=X(this,t);var n=["query","queryCount"],r=[{token:"keyword.function",regex:"\\[@(".concat(n.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],r);e.embedRules(ee,"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(n.join("|"),")]"),next:"pop"}];e.embedRules(W(),"tql-",a,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}]};return e.$rules=U()(e.$rules,c,(function(e,t){return G()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return H()(t,e),O()(t)}(u().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ne=n(15890),re=n.n(ne),oe=n(21259),ae=n.n(oe),ce=u().require("ace/token_iterator").TokenIterator,ie=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ue=function(e,t){return ie(e.getCurrentToken())===t},se=function(e){if(ue(e,"model")&&e.stepBackward(),(ue(e,"field")||ue(e,"relation"))&&e.stepBackward(),!ue(e,"chaining"))return null;if(e.stepBackward(),ue(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},le=function(e,t){for(;!ue(e,t);)if(!e.stepBackward())return!1;return!0},pe=function(e,t){return ue(e,"rparen")?1:t>0&&ue(e,"lparen")?(e.stepBackward(),-1):0},fe=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&ue(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat(ae()(me(e))):[]}if(ue(e,"order_by")){if(le(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=pe(e,t),!e.stepBackward())return null}return null},de=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},me=function(e){return de(e,se)},he=function(e){return de(e,fe)},ge=1e3,ke=function(e,t,n){var r=function(e,t){if(t){var n=he(e());return{baseModel:t,modelScope:re()(n).slice(0)}}var r=he(e()),o=re()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=me(e()),i=[].concat(ae()(a),ae()(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=re()(e),n=t[0],r=t.slice(1);return q(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(B).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat(ae()(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),ae()(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat(ae()(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ge}}));t(null,n)})).catch((function(e){return t(e)}))}},xe=function(e,t){return t?"".concat(e," (").concat(t,")"):e},ve=function(e){return q("entities").then(B).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:xe(t,n),value:t,score:ge}}));e(null,n)})).catch((function(t){return e(t)}))},we=function(){return K.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const _e=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new ce(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(ie(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ke(c,a,e);break;case"where":case"conjunction":ke(c,a,e),a(null,we());break;case"nice_function":a(null,we());break;case"find":ve(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,D.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,J.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ke(c,a,e),s&&"relation"!==ie(s)&&ve(a);break;case null:e&&ke(c,a,e),a(null,we())}}}};function ye(e,t,n){return t=S()(t),N()(e,be()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(be=function(){return!!e})()}var Me=function(e){function t(){var e;return C()(this,t),(e=ye(this,t)).HighlightRules=te,e.completer=_e(),e}return H()(t,e),O()(t)}(u().require("ace/mode/ftl").Mode);function Re(e,t,n){return t=S()(t),N()(e,$e()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}var je,qe=function(e){function t(e){var n,r=e.implicitModelName;return C()(this,t),(n=Re(this,t)).HighlightRules=W(r),n.completer=_e(r),n.snippedIdField=null,n}return H()(t,e),O()(t)}(u().require("ace/mode/text").Mode),Be=n(74848),Ie=$.Ay.div.withConfig({displayName:"StyledEditor"})(je||(je=c()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),Oe={groovy:function(){return new l.Mode},html:function(){return new p.Mode},xml:function(){return new g.Mode},properties:function(){return new m.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new Me},freemarkermixed:function(){return new Me},ftl:function(){return new Me},tql:function(e){return new qe(e)},less:function(){return new d.Mode},drools:function(){return new s.Mode},text:function(){return new h.Mode}},ze=function(e,t){var n=t.mode,r=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return M()(e)?Promise.resolve(e):y()(e)?q("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(B).then((function(e){return x()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return x()(Oe,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(t){var n=o()(t,2),r=n[0],a=n[1];e.setOption(r,a)})),e.renderer.setShowGutter(a),e.resize()};const Ce=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,a=e.onChange,c=e.showGutter,i=void 0===c||c,s=e.editorOptions,l=void 0===s?{}:s,p=e.implicitModel,f=e.autoFocusOnMount,d=void 0!==f&&f,m=e.id,h=(0,R.useRef)(null),g=(0,R.useRef)(null),k=(0,R.useMemo)((function(){return{mode:t,theme:r,showGutter:i,editorOptions:l,implicitModel:p,autoFocusOnMount:d}}),[t,r,i,l,p,d]);return(0,R.useEffect)((function(){var e=u().edit(h.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),ze(e,k),g.current=e,k.autoFocusOnMount&&g.current.focus(),function(){return e.destroy()}}),[]),(0,R.useEffect)((function(){g.current&&ze(g.current,k)}),[k]),(0,R.useEffect)((function(){g.current&&!w()(o)&&o!==g.current.getValue()&&g.current.getSession().setValue(o)}),[o]),(0,Be.jsx)(Ie,{id:m,ref:h})}}}]);
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[722],{65066:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ce});var r=n(22056),o=n.n(r),a=n(72189),c=n.n(a),i=n(34987),u=n.n(i),s=(n(62432),n(48063)),l=n(7896),p=n(38475),f=n(83524),d=n(82259),m=n(72495),h=n(38133),g=n(6349),k=n(58156),x=n.n(k),v=n(69843),w=n.n(v),_=n(23805),y=n.n(_),b=n(85015),M=n.n(b),R=n(4883),$=n(6199),j=(n(41769),n(22113),n(4850),n(38606),n(13198),n(84082),n(69377),n(51266),n(8804),n(50086),n(99208)),q=function(e){return j.A.executeRequest("rest/".concat(e))},B=function(e){return 200===e.status?e.json():null},I=n(65044),O=n.n(I),z=n(82274),C=n.n(z),T=n(65611),N=n.n(T),E=n(18337),S=n.n(E),A=n(56994),H=n.n(A),F=(n(75910),n(56449)),G=n.n(F),V=n(6924),U=n.n(V),P=["==","!=","<=",">=","<",">","~="],Z=["true","false","null"],D=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],J=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],K=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function L(e,t,n){return t=S()(t),N()(e,Q()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q=function(){return!!e})()}const W=function(e){return function(t){function n(){var t;C()(this,n),t=L(this,n);var r=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(K.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],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(r),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(P.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(J.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(Z.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(D.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(r,[{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(r,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=U()(t.$rules,o,(function(e,t){return G()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return H()(n,t),O()(n)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules)};function X(e,t,n){return t=S()(t),N()(e,Y()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}var ee=function(e){function t(){var e;C()(this,t);return(e=X(this,t)).$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 H()(t,e),O()(t)}(u().require("ace/mode/text_highlight_rules").TextHighlightRules),te=function(e){function t(){var e;C()(this,t),e=X(this,t);var n=["query","queryCount"],r=[{token:"keyword.function",regex:"\\[@(".concat(n.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],r);e.embedRules(ee,"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(n.join("|"),")]"),next:"pop"}];e.embedRules(W(),"tql-",a,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}]};return e.$rules=U()(e.$rules,c,(function(e,t){return G()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return H()(t,e),O()(t)}(u().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ne=n(15890),re=n.n(ne),oe=n(21259),ae=n.n(oe),ce=u().require("ace/token_iterator").TokenIterator,ie=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ue=function(e,t){return ie(e.getCurrentToken())===t},se=function(e){if(ue(e,"model")&&e.stepBackward(),(ue(e,"field")||ue(e,"relation"))&&e.stepBackward(),!ue(e,"chaining"))return null;if(e.stepBackward(),ue(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},le=function(e,t){for(;!ue(e,t);)if(!e.stepBackward())return!1;return!0},pe=function(e,t){return ue(e,"rparen")?1:t>0&&ue(e,"lparen")?(e.stepBackward(),-1):0},fe=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&ue(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat(ae()(me(e))):[]}if(ue(e,"order_by")){if(le(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=pe(e,t),!e.stepBackward())return null}return null},de=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},me=function(e){return de(e,se)},he=function(e){return de(e,fe)},ge=1e3,ke=function(e,t,n){var r=function(e,t){if(t){var n=he(e());return{baseModel:t,modelScope:re()(n).slice(0)}}var r=he(e()),o=re()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=me(e()),i=[].concat(ae()(a),ae()(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=re()(e),n=t[0],r=t.slice(1);return q(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(B).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat(ae()(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),ae()(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat(ae()(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ge}}));t(null,n)})).catch((function(e){return t(e)}))}},xe=function(e,t){return t?"".concat(e," (").concat(t,")"):e},ve=function(e){return q("entities").then(B).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:xe(t,n),value:t,score:ge}}));e(null,n)})).catch((function(t){return e(t)}))},we=function(){return K.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const _e=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new ce(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(ie(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ke(c,a,e);break;case"where":case"conjunction":ke(c,a,e),a(null,we());break;case"nice_function":a(null,we());break;case"find":ve(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,D.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,J.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ke(c,a,e),s&&"relation"!==ie(s)&&ve(a);break;case null:e&&ke(c,a,e),a(null,we())}}}};function ye(e,t,n){return t=S()(t),N()(e,be()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(be=function(){return!!e})()}var Me=function(e){function t(){var e;return C()(this,t),(e=ye(this,t)).HighlightRules=te,e.completer=_e(),e}return H()(t,e),O()(t)}(u().require("ace/mode/ftl").Mode);function Re(e,t,n){return t=S()(t),N()(e,$e()?Reflect.construct(t,n||[],S()(e).constructor):t.apply(e,n))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}var je,qe=function(e){function t(e){var n,r=e.implicitModelName;return C()(this,t),(n=Re(this,t)).HighlightRules=W(r),n.completer=_e(r),n.snippedIdField=null,n}return H()(t,e),O()(t)}(u().require("ace/mode/text").Mode),Be=n(74848),Ie=$.Ay.div.withConfig({displayName:"StyledEditor"})(je||(je=c()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),Oe={groovy:function(){return new l.Mode},html:function(){return new p.Mode},xml:function(){return new g.Mode},properties:function(){return new m.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new Me},freemarkermixed:function(){return new Me},ftl:function(){return new Me},tql:function(e){return new qe(e)},less:function(){return new d.Mode},drools:function(){return new s.Mode},text:function(){return new h.Mode}},ze=function(e,t){var n=t.mode,r=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return M()(e)?Promise.resolve(e):y()(e)?q("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(B).then((function(t){return x()(t,["paths",e.field,"value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return x()(Oe,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(t){var n=o()(t,2),r=n[0],a=n[1];e.setOption(r,a)})),e.renderer.setShowGutter(a),e.resize()};const Ce=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,a=e.onChange,c=e.showGutter,i=void 0===c||c,s=e.editorOptions,l=void 0===s?{}:s,p=e.implicitModel,f=e.autoFocusOnMount,d=void 0!==f&&f,m=e.id,h=(0,R.useRef)(null),g=(0,R.useRef)(null),k=(0,R.useMemo)((function(){return{mode:t,theme:r,showGutter:i,editorOptions:l,implicitModel:p,autoFocusOnMount:d}}),[t,r,i,l,p,d]);return(0,R.useEffect)((function(){var e=u().edit(h.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),ze(e,k),g.current=e,k.autoFocusOnMount&&g.current.focus(),function(){return e.destroy()}}),[]),(0,R.useEffect)((function(){g.current&&ze(g.current,k)}),[k]),(0,R.useEffect)((function(){g.current&&!w()(o)&&o!==g.current.getValue()&&g.current.getSession().setValue(o)}),[o]),(0,Be.jsx)(Ie,{id:m,ref:h})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[916],{8264:(i,a,l)=>{l.r(a),l.d(a,{Icon:()=>C,default:()=>B});var e=l(26396),f=l.n(e),r=l(5556),t=l.n(r),o=l(39892),c=l.n(o),n=l(37107),d=l(37875),s=l(49456),b=l(15685),p=l(46784),u=l(58156),g=l.n(u),h=l(93564),m=l(74848),w=["icon","style","hasFixedWidth"];function y(i,a){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);a&&(e=e.filter((function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable}))),l.push.apply(l,e)}return l}function k(i){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?y(Object(l),!0).forEach((function(a){f()(i,a,l[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):y(Object(l)).forEach((function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(l,a))}))}return i}n.library.add(b.s4k,s.s4k,s.fMY,s.kpQ,s.XkK,s.Wzs,s.w2A,s.Jt$,s.Bwz,s.QLR,s.ao0,s.$Bp,s.yy,b.yy,s.GRI,s.dmS,s.CeG,s.CFw,s.IxC,s.GZ1,s.pS3,s.k6j,s.A4h,s.h8M,s.OXM,s.ruc,s.Wxp,s.fny,s.o1d,s.$MS,s.O_q,s.__G,s.CI$,s.e68,s.bxP,s.y_8,s.GEE,b.GEE,s.SGM,b.SGM,s.jPR,d.FjH,d.aUl,d.Kjv,d.mhH,d.uu9,d.iMk,d.qKs,s.ckx,s.vMs,s.KKr,s.Nz1,s.MjD,s.dB,s.ktq,s.adM,s.VNe,b.WPY,s.gr3,s.LBj,s.Dvs,s.Ync,s.wRm,s.vaG,s.EZy,s.s0Q,s.iW_,s.tUE,s.yLS,s.Wny,s.ITF,s.UNK,s.QLL,s.Nfw,s.Vdo,s.hys,s.z$e,s.n6T,s.xxn,s.sqM,b.Nfw,s.THi,s.LJS,s.bG5,s.DN2,s.hSh,s.hpd,s.tAZ,b.WMI,s.oMV,s.vuR,s.$8E,s.FFg,s._$s,s.d$A,s.dhZ,s.okg,s.z2i,s.X3I,s.wM0,s.a9Q,s._JS,s.Bi7,s.qqK,s.AgW,s.ZQp,s.gdJ,s.g_i,s.DEr,s.br3,s.Qux,s.zm_,s.b6I,s.fPr,s.JmV,s.DW4,s.jTw,s.mRM,s.QhE,s.c3e,s.CQO,s.wic,s.aTc,s.X46,s.ayg,s.Rwe,s.yqK,s.BH7,s.h6r,s.o_8,s.PJS,s.bMg,s.w97,s.vRt,s.LTU,s.ZpR,s.pHs,s.eST,s._2z,s.a8v,s.LP,s.Gk0);const v=function(i){var a=i.icon,l=i.style,e=i.hasFixedWidth,f=void 0===e||e,r=c()(i,w),t=a.includes(",")?a.replace(/\s+/,"").split(","):a,o=k({},g()(l,"color")&&{color:l.color}),n=Array.isArray(t)?t[1]:t;return(0,m.jsx)(h.i,{"data-testid":"icon",children:(0,m.jsx)(p.g,k(k(k({icon:t,style:l},o),{},{fixedWidth:f},r),{},{"data-testid":"icon-".concat(n),"data-cy":"icon-".concat(n)}))})},O=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"]},"arrows-maximize":{"id":"fal, arrows-maximize","lib":"fa"},"arrows-minimize":{"id":"fal, arrows-minimize","lib":"fa"},"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"},"copy":{"id":"fal, copy","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"eye":{"id":"fal, eye","lib":"fa"},"eye-slash":{"id":"fal, eye-slash","lib":"fa"},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-circle-plus":{"id":"fal, file-circle-plus","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"},"link-simple":{"id":"fal, link-simple","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"list-tree":{"id":"fal, list-tree","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"},"mailbox-flag-up":{"id":"fal, mailbox-flag-up","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"},"sliders":{"id":"fal, sliders","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"]},"truck-medical":{"id":"fal, truck-medical","lib":"fa"},"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"},"gear":{"id":"fal, gear","lib":"fa"},"calculator":{"id":"fal, calculator","lib":"fa"},"wrench":{"id":"fal, wrench","lib":"fa"},"sun-bright":{"id":"fal, sun-bright","lib":"fa"},"moon":{"id":"fal, moon","lib":"fa"},"key":{"id":"fal, key","lib":"fa"},"table":{"id":"fal, table","lib":"fa"},"list-dropdown":{"id":"fal, list-dropdown","lib":"fa"},"chair-office":{"id":"fal, chair-office","lib":"fa"},"calendar-exclamation":{"id":"fal, calendar-exclamation","lib":"fa"},"bell-ring":{"id":"fal, bell-ring","lib":"fa"},"graduation-cap":{"id":"fal, graduation-cap","lib":"fa"},"tag":{"id":"fal, tag","lib":"fa"},"grip-dots":{"id":"fal, grip-dots","lib":"fa"},"file-certificate":{"id":"fal, file-certificate","lib":"fa"},"screen-users":{"id":"fal, screen-users","lib":"fa"}}');var j,x,P=["style"],S=["style"],q=["icon"];function z(i,a){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);a&&(e=e.filter((function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable}))),l.push.apply(l,e)}return l}function D(i){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?z(Object(l),!0).forEach((function(a){f()(i,a,l[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):z(Object(l)).forEach((function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(l,a))}))}return i}var M={logo:function(i){var a=i.style,l=c()(i,P);return(0,m.jsx)("svg",D(D(D({height:g()(a,"fontSize",20)},a),l),{},{"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(i){var a=i.style,l=c()(i,S);return(0,m.jsx)("svg",D(D(D({height:g()(a,"fontSize",20)},a),l),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:x||(x=(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"}))}))}},E=function(i){var a=i.icon,l=c()(i,q);return M[a](l)};E.propTypes={icon:t().string.isRequired};const _=E;function G(i,a){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);a&&(e=e.filter((function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable}))),l.push.apply(l,e)}return l}function R(i){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?G(Object(l),!0).forEach((function(a){f()(i,a,l[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):G(Object(l)).forEach((function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(l,a))}))}return i}var W={fa:function(i,a){return(0,m.jsx)(v,R(R({},a),{},{icon:i.id}))},toc:function(i,a){return(0,m.jsx)(_,R(R({},a),{},{icon:i.id,"data-testid":"icon-".concat(i.id)}))}},C=function(i){var a=O[i.icon];if(!a)return null;var l=W[a.lib];return l?l(a,i):null};C.propTypes={icon:t().string.isRequired,style:t().objectOf(t().string)};const B=C}}]);