tocco-admin 3.17.7 → 3.17.8

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.
Files changed (52) hide show
  1. package/changelog.md +3 -0
  2. package/dist/chunk-26335.74f8d237b4e65213f5f5.js +1 -0
  3. package/dist/chunk-27595.2acd7e12e52842bd54c4.js +1 -0
  4. package/dist/chunk-31188.b684fb2061591dc5dbce.js +1 -0
  5. package/dist/chunk-31259.efac6f344cccf290377f.js +99 -0
  6. package/dist/chunk-34622.0d11b44c9ac000011429.js +1 -0
  7. package/dist/chunk-35637.7f445d04a34333d5c7ed.js +1 -0
  8. package/dist/chunk-37148.d4a12deb7e350d282064.js +1 -0
  9. package/dist/chunk-62618.8ad5b4f0b069b5a5733f.js +1 -0
  10. package/dist/chunk-68028.4fb803d21d0076b01410.js +1 -0
  11. package/dist/chunk-69069.3bac5c5f63a943fb901a.js +1 -0
  12. package/dist/chunk-75085.79f8b8b3350cc5e9b7cb.js +1 -0
  13. package/dist/chunk-77447.88b894127bab62e30caa.js +1 -0
  14. package/dist/chunk-83985.b7e7b94a16e3a47ef9b3.js +1 -0
  15. package/dist/chunk-89666.f89f48a3d59441b88447.js +1 -0
  16. package/dist/chunk-89778.c2e6511f52a6ac2c1b40.js +1 -0
  17. package/dist/chunk-95229.b3486f836a149a796699.js +1 -0
  18. package/dist/chunk-99372.7ba43726331194b5c670.js +1 -0
  19. package/dist/chunk-actions.a5e367ffa6eca07a3e99.js +1 -0
  20. package/dist/chunk-admin-login-form.99b544336cd4935409c0.js +1 -0
  21. package/dist/chunk-code-editor.b5585797aec4e2d47cba.js +1 -0
  22. package/dist/chunk-docs-actions.cb9ef87c231f53a66378.js +1 -0
  23. package/dist/chunk-html-editor.83c57fe15f0274704578.js +6 -0
  24. package/dist/chunk-phone-formatter.2d4c7d1ca2b655399883.js +1 -0
  25. package/dist/chunk-vendor-icons.c66ae5d269d60434aa4b.js +1 -0
  26. package/dist/index.js +17 -15
  27. package/jest.config.js +2 -2
  28. package/package.json +2 -1
  29. package/dist/chunk-15006.39f94a50697be97c9831.js +0 -1
  30. package/dist/chunk-19592.992b24f067a5c0f12a8e.js +0 -1
  31. package/dist/chunk-26528.ef4788bc998faa3f54ca.js +0 -1
  32. package/dist/chunk-27136.2c36f3c77a56b86f416d.js +0 -1
  33. package/dist/chunk-33050.a411588c6eae538a9624.js +0 -1
  34. package/dist/chunk-46187.ac38acbd848b23a2beb2.js +0 -1
  35. package/dist/chunk-55348.7559537443f168d57582.js +0 -1
  36. package/dist/chunk-57554.2b7e1fc15d398c56a795.js +0 -1
  37. package/dist/chunk-591.b32029fe00edd0338042.js +0 -1
  38. package/dist/chunk-59899.45b9bffbb769ce64c70d.js +0 -1
  39. package/dist/chunk-68389.572b4458a27418cb9092.js +0 -1
  40. package/dist/chunk-71306.cd0060a637da70f30042.js +0 -1
  41. package/dist/chunk-86275.74b17f85b8fd49a09ee7.js +0 -1
  42. package/dist/chunk-92789.292337248336d8d32a47.js +0 -1
  43. package/dist/chunk-9738.25ce05ae72129f1f8d16.js +0 -99
  44. package/dist/chunk-97536.c9cab9653c7754ea895a.js +0 -1
  45. package/dist/chunk-97931.d72ce7d2787a636afa7d.js +0 -1
  46. package/dist/chunk-actions.48992f85b85f56fdad7b.js +0 -1
  47. package/dist/chunk-admin-login-form.2b47d5a86bc59422e97d.js +0 -1
  48. package/dist/chunk-code-editor.c7d8953d16ef17824643.js +0 -1
  49. package/dist/chunk-docs-actions.ca197551496ae64f6a46.js +0 -1
  50. package/dist/chunk-html-editor.e6715086020fe165b5f3.js +0 -6
  51. package/dist/chunk-phone-formatter.50199e325bcd29d91e58.js +0 -1
  52. package/dist/chunk-vendor-icons.6e198da15aa72bd8f4c8.js +0 -1
@@ -0,0 +1 @@
1
+ (this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[1023],{44334(n,e,t){"use strict";t.d(e,{A:()=>r});var o=t(5556),i=t.n(o);const r={propTypes:i().shape({embedType:i().string})}},73916(n,e,t){var o=t(43360),i=t(30641),r=t(15389);n.exports=function(n,e){var t={};return e=r(e,3),i(n,(function(n,i,r){o(t,i,e(n,i,r))})),t}},87996(n,e,t){"use strict";n.exports=t.p+"imgs/tocco-circle.7ab925bf473f813493f0.svg"},62824(n,e,t){"use strict";t.r(e),t.d(e,{default:()=>R});var o=t(5544),i=t(4883),r=t(87046),s=t(56913),a=t(64467),p=t(5556),c=t(14772),d=t(7297),l=t(76792),g=t(44334),u=t(89965),m=t(46975),h=t(92051),f=t(82947),y=t(45574),b=t(74848);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}var A="login",x=["loginSuccess","register","resize"],v={username:y.b.USERNAME_FORM,"password-request":y.b.PASSWORD_REQUEST,login:y.b.LOGIN_FORM},O=function(n,e,t,o,i){var r=v[e.entryPage]||y.b.LOGIN_FORM,a=[h.ev(!1),h.aE(!1),m.P(e.username||""),m.ah(r),m.yd(r)],p=!!e.showTitle,g=(0,b.jsx)(u.A,{showTitle:p}),w=s.A.createStore(f.A,f.a,e,A);return l.A.setInputEnvs(e),d.A.addToStore(w,(function(n){return s.A.getEvents(x,n.input)})),c.A.addToStore(w,!0,["console","remote"]),s.A.createApp(A,g,w,{input:e,actions:a,publicPath:o,textResourceModules:["login"],customTheme:i})},S=function(n){return s.A.useApp({initApp:O,props:n,packageName:A,externalEvents:x}).component};S.propTypes=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,a.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({showTitle:p.bool,locale:p.string,entryPage:p.oneOf(["username","login","password-request"]),username:p.string,setLocale:p.func,backendUrl:p.string,redirectUrl:p.string,disableLoginForExistingUser:p.bool,appContext:g.A.propTypes},x.reduce((function(n,e){return n[e]=p.func,n}),{}));var j=t(76698),k="login";const T=S;s.A.createBundleableApp(k,O,S),s.A.createBundleableApp("password-update",j.q,j.S);var C,P,E=t(9248),L=t(83139),N=function(n){var e=n.ssoLoginCompleted,t=n.showRegistrationText;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(E.Ay,{ssoLoginEndpoint:"/sso",loginCompleted:e,autoLogin:!0}),t&&(C||(C=(0,b.jsx)(L.sO,{breakWords:!0,children:(0,b.jsx)(r.sA,{id:"client.sso-login.registration"})}))),P||(P=(0,b.jsx)(L.TM,{children:(0,b.jsx)(r.sA,{id:"client.admin.loginChoice"})}))]})};const R=function(n){var e=n.ssoAvailable,t=n.loginSuccess,r=n.showRegistrationText,s=(0,i.useState)(r||!1),a=(0,o.A)(s,2),p=a[0],c=a[1];return(0,b.jsxs)(b.Fragment,{children:[e&&(0,b.jsx)(N,{ssoLoginCompleted:function(n){var e=n.successful,t=n.registration;!e&&t&&c(!0)},showRegistrationText:p}),(0,b.jsx)(T,{loginSuccess:t,showTitle:!1})]})}},83139(n,e,t){"use strict";t.d(e,{Pc:()=>b,TM:()=>x,X8:()=>w,oC:()=>v,sO:()=>j,tQ:()=>A,v7:()=>S,xR:()=>O});var o,i,r,s,a,p,c,d,l=t(57528),g=t(51510),u=t(49337),m=t(5511),h=t(57541),f=t(26513),y=t(87996),b=(0,g.DU)(o||(o=(0,l.A)(["\n @media (width <= 1024px) {\n body {\n overflow: auto !important;\n }\n }\n"]))),w=g.Ay.div.withConfig({displayName:"StyledLogin"})(i||(i=(0,l.A)(["\n height: 100%;\n background-image: url(",");\n background-color: ",";\n background-repeat: no-repeat;\n background-size: 61vw;\n background-position-y: -25vw;\n background-position-x: -41vw;\n overflow-y: auto;\n\n .tocco-sso-login {\n display: flex;\n justify-content: space-between;\n margin-bottom: 1.8rem;\n }\n\n @media (width <= 1024px) {\n background-size: 2000px;\n background-position: 50% -1850px;\n }\n\n @media (width <= 425px) {\n background-position: 50% -1890px;\n }\n"])),y,f.t7.color("paper")),A=(0,g.Ay)(u.rd).withConfig({displayName:"StyledHeadingLogin"})(r||(r=(0,l.A)(["\n && {\n font-size: ",";\n }\n"])),h.A.font(11)),x=(0,g.Ay)(m.oY).withConfig({displayName:"StyledSpanLogin"})(s||(s=(0,l.A)(["\n && {\n text-align: center;\n font-size: ",";\n display: inline-block;\n width: 100%;\n margin: 1rem 0 1.8rem;\n }\n"])),h.A.font(1.3)),v=g.Ay.div.withConfig({displayName:"StyledLoginWrapper"})(a||(a=(0,l.A)(["\n max-width: 410px;\n margin: 6% 5% 0 28%;\n\n && {\n .tocco-login * {\n font-size: ",";\n }\n\n @media (width <= 1024px) {\n margin: 14rem auto 0;\n padding-left: 2rem;\n padding-right: 2rem;\n }\n\n @media (width <= 425px) {\n margin-top: 12rem;\n }\n }\n"])),h.A.font(1.3)),O=g.Ay.img.withConfig({displayName:"StyledSloganImg"})(p||(p=(0,l.A)(["\n transform: rotate(270deg);\n position: relative;\n top: 12.5vw;\n left: -8%;\n width: 25vw;\n\n @media (width <= 1024px) {\n display: none;\n }\n"]))),S=g.Ay.img.withConfig({displayName:"StyledMobileSloganImg"})(c||(c=(0,l.A)(["\n display: none;\n max-width: 400px;\n width: 95%;\n height: auto;\n position: relative;\n margin: auto;\n top: 45px;\n\n @media (width <= 1024px) {\n display: block;\n }\n\n @media (width <= 425px) {\n max-width: 280px;\n }\n"]))),j=(0,g.Ay)(m.oY).withConfig({displayName:"StyledSsoMsg"})(d||(d=(0,l.A)(["\n && {\n display: inline-block;\n text-align: center;\n font-weight: ",";\n width: 100%;\n color: ",";\n }\n"])),f.t7.fontWeight("bold"),f.t7.color("signal.info"))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[83722],{70424(e,t,n){n.r(t),n.d(t,{default:()=>xe});var r=n(5544),o=n(57528),a=n(34987),c=(n(9428),n(48063)),i=n(7896),u=n(38475),s=n(83524),l=n(82259),f=n(72495),p=n(38133),d=n(6349),m=n(58156),h=n(69843),g=n(23805),k=n(85015),x=n(4883),v=n(51510),w=(n(41769),n(22113),n(4850),n(38606),n(13198),n(84082),n(69377),n(51266),n(8804),n(50086),n(88926)),_=function(e){return w.A.executeRequest("rest/".concat(e))},y=function(e){return 200===e.status?e.json():null},b=n(92901),A=n(23029),M=n(56822),R=n(53954),$=n(85501),j=(n(75910),n(56449)),q=n(6924),B=["==","!=","<=",">=","<",">","~="],I=["true","false","null"],O=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],z=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],C=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function T(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,N()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}const E=function(e){return function(t){function n(){var t;(0,A.A)(this,n),t=T(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(C.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(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(z.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(I.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(O.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=q(t.$rules,o,(function(e,t){return j(e)?e.concat(t):void 0})),t.normalizeRules(),t}return(0,$.A)(n,t),(0,b.A)(n)}(a.require("ace/mode/text_highlight_rules").TextHighlightRules)};function S(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,H()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H=function(){return!!e})()}var F=function(e){function t(){var e;(0,A.A)(this,t);return(e=S(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(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/text_highlight_rules").TextHighlightRules),G=function(e){function t(){var e;(0,A.A)(this,t),e=S(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(F,"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(E(),"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=q(e.$rules,c,(function(e,t){return j(e)?e.concat(t):void 0})),e.normalizeRules(),e}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/html_highlight_rules").HtmlHighlightRules),V=n(10076),U=n(60436);function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Z=a.require("ace/token_iterator").TokenIterator,D=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,t){return D(e.getCurrentToken())===t},K=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},L=function(e,t){for(;!J(e,t);)if(!e.stepBackward())return!1;return!0},Q=function(e,t){return J(e,"rparen")?1:t>0&&J(e,"lparen")?(e.stepBackward(),-1):0},W=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&J(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat((0,U.A)(Y(e))):[]}if(J(e,"order_by")){if(L(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=Q(e,t),!e.stepBackward())return null}return null},X=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},Y=function(e){return X(e,K)},ee=function(e){return X(e,W)},te=1e3,ne=function(e,t,n){var r=function(e,t){if(t){var n=ee(e());return{baseModel:t,modelScope:P((0,V.A)(n)).slice(0)}}var r=ee(e()),o=(0,V.A)(r);return{baseModel:o[0],modelScope:P(o).slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=Y(e()),i=[].concat((0,U.A)(a),(0,U.A)(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=(0,V.A)(e),n=t[0],r=P(t).slice(1);return _(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(y).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat((0,U.A)(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}))),(0,U.A)(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((0,U.A)(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:te}}));t(null,n)})).catch((function(e){return t(e)}))}},re=function(e,t){return t?"".concat(e," (").concat(t,")"):e},oe=function(e){return _("entities").then(y).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:re(t,n),value:t,score:te}}));e(null,n)})).catch((function(t){return e(t)}))},ae=function(){return C.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ce=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new Z(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(D(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ne(c,a,e);break;case"where":case"conjunction":ne(c,a,e),a(null,ae());break;case"nice_function":a(null,ae());break;case"find":oe(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,O.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,z.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ne(c,a,e),s&&"relation"!==D(s)&&oe(a);break;case null:e&&ne(c,a,e),a(null,ae())}}}};function ie(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,ue()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}var se=function(e){function t(){var e;return(0,A.A)(this,t),(e=ie(this,t)).HighlightRules=G,e.completer=ce(),e}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/ftl").Mode);function le(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,fe()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fe=function(){return!!e})()}var pe,de=function(e){function t(e){var n,r=e.implicitModelName;return(0,A.A)(this,t),(n=le(this,t)).HighlightRules=E(r),n.completer=ce(r),n.snippedIdField=null,n}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/text").Mode),me=n(74848),he=v.Ay.div.withConfig({displayName:"StyledEditor"})(pe||(pe=(0,o.A)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ge={groovy:function(){return new i.Mode},html:function(){return new u.Mode},xml:function(){return new d.Mode},properties:function(){return new f.Mode},json:function(){return new s.Mode},htmlmixed:function(){return new se},freemarkermixed:function(){return new se},ftl:function(){return new se},tql:function(e){return new de(e)},less:function(){return new l.Mode},drools:function(){return new c.Mode},text:function(){return new p.Mode}},ke=function(e,t){var n=t.mode,o=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return k(e)?Promise.resolve(e):g(e)?_("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(y).then((function(t){return m(t,["paths",e.field,"value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return m(ge,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(o)),Object.entries(i).forEach((function(t){var n=(0,r.A)(t,2),o=n[0],a=n[1];e.setOption(o,a)})),e.renderer.setShowGutter(a),e.resize()};const xe=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,c=e.onChange,i=e.showGutter,u=void 0===i||i,s=e.editorOptions,l=void 0===s?{}:s,f=e.implicitModel,p=e.autoFocusOnMount,d=void 0!==p&&p,m=e.id,g=(0,x.useRef)(null),k=(0,x.useRef)(null),v=(0,x.useMemo)((function(){return{mode:t,theme:r,showGutter:u,editorOptions:l,implicitModel:f,autoFocusOnMount:d}}),[t,r,u,l,f,d]);return(0,x.useEffect)((function(){var e=a.edit(g.current);return e.getSession().setValue(o||""),e.on("change",(function(){return c(e.getValue())})),ke(e,v),k.current=e,v.autoFocusOnMount&&k.current.focus(),function(){return e.destroy()}}),[]),(0,x.useEffect)((function(){k.current&&ke(k.current,v)}),[v]),(0,x.useEffect)((function(){k.current&&!h(o)&&o!==k.current.getValue()&&k.current.getSession().setValue(o)}),[o]),(0,me.jsx)(he,{id:m,ref:g})}}}]);
@@ -0,0 +1 @@
1
+ (this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[61556],{25212(e,t,n){"use strict";n.d(t,{A:()=>o});const o={removeFromQuery:function(e){var t=new URL(location.href);t.searchParams.delete(e),window.history.replaceState(null,"",t)}}},27185(e,t,n){var o=n(38859),i=n(15325),r=n(29905),c=n(34932),s=n(27301),a=n(19219),l=Math.min;e.exports=function(e,t,n){for(var u=n?r:i,d=e[0].length,p=e.length,y=p,f=Array(p),m=1/0,A=[];y--;){var v=e[y];y&&t&&(v=c(v,s(t))),m=l(v.length,m),f[y]=!n&&(t||d>=120&&v.length>=120)?new o(y&&v):void 0}v=e[0];var g=-1,h=f[0];e:for(;++g<d&&A.length<m;){var b=v[g],O=t?t(b):b;if(b=n||0!==b?b:0,!(h?a(h,O):u(A,O,n))){for(y=p;--y;){var w=f[y];if(!(w?a(w,O):u(e[y],O,n)))continue e}h&&h.push(O),A.push(b)}}return A}},80741(e,t,n){var o=n(83693);e.exports=function(e){return o(e)?e:[]}},5287(e,t,n){var o=n(34932),i=n(27185),r=n(69302),c=n(80741),s=r((function(e){var t=o(e,c);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},90785(e,t,n){"use strict";n.d(t,{A:()=>y});var o=n(5556);const i={ID:"ID",QUERY:"QUERY"},r=o.shape({entityName:o.string,ids:function(e,t,n){if(e.selection&&e.selection.type===i.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===i.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o.oneOf(Object.keys(i)),count:o.number});var c=n(64467),s=n(54756),a=n(69917),l=s.mark(p);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){var n,o;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.entityName,e.type!==i.QUERY){r.next=2;break}return r.next=1,(0,a.T1)(t,e.entityName,d({},e.query));case 1:return o=r.sent,r.abrupt("return",{entityName:n,keys:o.map((function(e){return e.key}))});case 2:return r.abrupt("return",{entityName:n,keys:e.ids});case 3:case"end":return r.stop()}}),l)}const y={getEntities:p,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:r,selectionTypes:i}},72581(e,t,n){"use strict";var o=n(52662),i=n(22866),r=n(66788),c=n(74848);const s=function(e){var t=e.condition,n=void 0===t?i.A.condition.BASE:t,s=e.title,a=e.children,l=e.meta;return(0,c.jsxs)(r.A,{condition:n,children:[s&&(0,c.jsx)(o.Ay.H5,{children:s}),a,l&&(0,c.jsx)(o.Ay.Small,{children:l})]})};n.d(t,["A",0,s])},66788(e,t,n){"use strict";n.d(t,{A:()=>y});var o,i=n(57528),r=n(64467),c=n(51510),s=n(77231),a=n(26513),l=n(22866),u=n(57541),d=[l.A.condition.BASE,l.A.condition.INFO,l.A.condition.DANGER,l.A.condition.SUCCESS,l.A.condition.WARNING],p=(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},l.A.condition.BASE,a.t7.color("signal.neutral")),l.A.condition.DANGER,a.t7.color("signal.dangerLight")),l.A.condition.SUCCESS,a.t7.color("signal.successLight")),l.A.condition.WARNING,a.t7.color("signal.warningLight")),l.A.condition.INFO,a.t7.color("signal.infoLight")),y=c.Ay.div.withConfig({displayName:"StyledSignalBox"})(o||(o=(0,i.A)(["\n && {\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n * {\n color: #000; /* black in all themes */\n }\n\n "," {\n margin-right: ",";\n }\n }\n"])),(function(e){var t=e.condition;return p[d.includes(t)?t:l.A.condition.INFO]}),u.A.space(-1),u.A.space(-.3),a.t7.radii("statusLabel"),u.A.space(-1),s.i,u.A.space(-1));y.propTypes={condition:l.A.oneOfPropTypeAndCompletelyMapped(d,p)}},86127(e,t,n){"use strict";n.r(t);var o=n(87046),i=n(77447),r=n(53480),c=n(91450),s=n(50069),a=n(241),l=n(4894),u=n(74848);const d=(0,l.S)((function(e){var t=e.path,n=e.context,l=e.onSuccess,d=e.locale,p=e.emitAction,y=(0,o.tz)(),f=(0,a.A)(t),m=f?[{id:"rel".concat(f.model),value:f.key}]:[],A=(0,s.A)(n,"Domain");return(0,u.jsx)(i.A,{entityName:"Domain",formName:A,mode:"create",defaultValues:m,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];l({title:y.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||p(e)},listApp:r.Ay,docsApp:c.default,labelPosition:"inside"})}));n.d(t,["default",0,d])},89127(e,t,n){"use strict";n.r(t);var o=n(87046),i=n(77447),r=n(53480),c=n(91450),s=n(50069),a=n(241),l=n(4894),u=n(74848);const d=(0,l.S)((function(e){var t=e.context,n=e.path,l=e.onSuccess,d=e.locale,p=e.emitAction,y=(0,o.tz)(),f=(0,a.A)(n),m=f?[{id:"rel".concat(f.model),value:f.key}]:[],A=(0,s.A)(t,"Folder");return(0,u.jsx)(i.A,{entityName:"Folder",formName:A,mode:"create",defaultValues:m,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];l({title:y.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||p(e)},listApp:r.Ay,docsApp:c.default,labelPosition:"inside"})}));n.d(t,["default",0,d])},60568(e,t,n){"use strict";n.r(t);var o=n(64467),i=n(99372),r=n(74848);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,["default",0,function(e){return(0,r.jsx)(i.A,s(s({},e),{},{customDeleteEndpoint:"documents/delete/websocket"}))}])},20763(e,t,n){"use strict";n.r(t);var o=n(5544),i=n(4883),r=n(77447),c=n(53480),s=n(60349),a=n(91450),l=n(50069),u=n(4894),d=n(74848);const p=(0,u.S)((function(e){var t=e.selection,n=e.onSuccess,u=e.onCancel,p=e.locale,y=e.context,f=e.emitAction,m=e.navigate,A=e.navigationStrategy,v=t.ids[0].split("/"),g=(0,o.A)(v,2),h=g[0],b=g[1];(0,i.useEffect)((function(){"Resource"===h&&(m("/docs/doc/".concat(b,"/detail")),u())}),[h,b,m,u]);var O=(0,l.A)(y,h);return(0,d.jsx)(r.A,{entityName:h,formName:O,entityId:b,mode:"update",locale:p,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||f(e)},listApp:c.Ay,docsApp:a.default,labelPosition:"inside",customActions:{history:function(e,t,n,o,i,r,c){A.navigateToPath({pathname:(0,s.K)(t),inNewTab:!0})}}})}));n.d(t,["default",0,p])},74250(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>E});var o,i,r,c=n(71468),s=n(7544),a=n(4894),l=n(5544),u=n(57528),d=n(2404),p=n(4883),y=n(87046),f=n(51510),m=n(11653),A=n(66387),v=n(33150),g=n(91450),h=n(241),b=n(74848),O=f.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=(0,u.A)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),m.Ay),w=(0,f.Ay)(A.A).withConfig({displayName:"StyledLoadMask"})(i||(i=(0,u.A)(["\n height: auto;\n"]))),S=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},N={initialize:s.n_,moveElements:s.BQ};const E=(0,a.S)((0,c.Ng)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.app.locale}}),N)((function(e){var t=e.selection,n=e.onSuccess,o=e.onError,i=e.path,c=e.initialize,s=e.moveElements,a=e.isWaiting,u=e.domainTypes,f=e.rootNodes,m=e.businessUnit,A=e.locale,N=e.emitAction,E=(0,h.A)(i),j={model:"Docs_list_item",key:"".concat(E.model,"/").concat(E.key)},k=(0,p.useState)(j),D=(0,l.A)(k,2),x=D[0],_=D[1];(0,p.useEffect)((function(){c(t,n,o)}),[]);var P=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,b.jsxs)(w,{required:[!a],children:[(0,b.jsx)(g.default,{routerType:"routerless",initialLocation:function(){if(null===x)return null;var e=x.key.split("/"),t=(0,l.A)(e,2),n=t[0],o=t[1];return P(n,o)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:S,onListParentChange:_,getCustomLocation:P,navigationStrategy:{},embedded:!0,emitAction:N,noLeftPadding:!0,domainTypes:u,rootNodes:f,businessUnit:m,sortable:!1,scrollBehaviour:"none",locale:A,selectOnRowClick:!1}),(0,b.jsx)(O,{children:(0,b.jsx)(v.A,{onClick:function(){return s(x.key,t.ids)},look:"raised",ink:"primary",disabled:null===x||d(x,j),children:r||(r=(0,b.jsx)(y.sA,{id:"client.actions.dms-move.button"}))})})]})})))},50069(e,t,n){"use strict";const o=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)};n.d(t,["A",0,o])}}]);
@@ -0,0 +1,6 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[71262],{68165(e,t,n){n.r(t),n.d(t,{default:()=>J});var o,r=n(60436),a=n(64467),i=n(5544),c=n(4883);function d(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function u(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}function l(e,t){return"NEW_CKEDITOR"in window?Promise.resolve(NEW_CKEDITOR):"string"!=typeof e||e.length<1?Promise.reject(new TypeError("CKEditor URL must be a non-empty string.")):(o||(o=l.scriptLoader(e).then((function(e){return t&&t(e),e}))),o)}l.scriptLoader=function(e){return new Promise((function(t,n){
2
+ /**
3
+ * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
+ * For licensing, see LICENSE.md.
5
+ */
6
+ var r,a,i,c,l;r=e,a=function(e){return o=void 0,e?n(e):window.NEW_CKEDITOR?void t(NEW_CKEDITOR):n(new Error("Script loaded from editorUrl doesn't provide NEW_CKEDITOR namespace."))},c=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},l.type=a.type||"text/javascript",l.charset=a.charset||"utf8",l.async=!("async"in a)||!!a.async,l.src=r,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(l,a.attrs),a.text&&(l.text=String(a.text)),("onload"in l?d:u)(l,i),l.onload||d(l,i),c.appendChild(l)}))};var s=n(5556),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var y=["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"],g=["beforeLoad","namespaceLoaded"],h=f(f([],y,!0),g,!0),m="__CKE__";function v(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function b(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var O=f(f([],y,!0),g,!0).reduce((function(e,t){var n;return p(p({},e),((n={})[t]=function(e){return"".concat(m).concat(e)}(t),n))}),{});function S(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function x(e,t,n){var o={display:"none",visibility:"hidden"};return"classic"===e?o:"ready"===t?null!=n?n:void 0:o}function k(e){var t=e.debug,n=e.editor,o=e.evtName,r=e.handler,a=e.listenerData,i=e.priority,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=r;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:o,handlerId:c,data:e.data,listenerData:e.listenerData}),r(e)}),t&&console.log({operation:"register",editor:n.name,evtName:o,handlerId:c}),n.on(o,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:o,handlerId:c}),n.removeListener(o,d)}}var C=c.useEffect,w=c.useReducer,E=c.useRef,D={};function j(e,t){switch(t.type){case"init":return p(p({},e),{hookStatus:"init"});case"loading":return p(p({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return p(p({},e),{hookStatus:"loaded"});case"ready":return p(p({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=c.useEffect,P=c.useRef,_=c.useState;function R(e){var t=e.config,n=void 0===t?{}:t,o=e.debug,r=e.editorUrl,a=e.initData,i=e.name,d=e.readOnly,u=e.style,s=e.type,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),f=_(null),y=f[0],R=f[1],T=P(p);n&&"boolean"==typeof d&&(n.readOnly=d);var U=function(e){var t=e.config,n=e.debug,o=e.dispatchEvent,r=e.subscribeTo,a=void 0===r?h:r,i=e.editorUrl,c=e.element,d=e.initContent,u=e.type,s=void 0===u?"classic":u,p=E(i||"https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js"),f=E(null!=a?a:h),y=E(n),v=E(o),b=E(d),S=E(t||D),x=E(s),L=w(j,{editor:void 0,hookStatus:"init"}),P=L[0],_=P.editor,R=P.hookStatus,T=L[1];return C((function(){return c&&!_&&(T({type:"loading"}),l(p.current,(function(e){var t;-1!==f.current.indexOf("namespaceLoaded")&&(null===(t=v.current)||void 0===t||t.call(v,{type:O.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===x.current,o=S.current.readOnly;-1!==f.current.indexOf("beforeLoad")&&(null===(t=v.current)||void 0===t||t.call(v,{type:O.beforeLoad,payload:e}));var r=e[n?"inline":"replace"](c,S.current);f.current.filter((function(e){return-1===g.indexOf(e)})).forEach((function(e){k({debug:y.current,editor:r,evtName:e,handler:function(t){var n;null===(n=v.current)||void 0===n||n.call(v,{type:"".concat(m).concat(e),payload:t})}})})),k({debug:y.current,editor:r,evtName:"loaded",handler:function(){T({type:"loaded"})},priority:-1}),k({debug:y.current,editor:r,evtName:"instanceReady",handler:function(e){var t=e.editor;T({type:"ready"}),n&&!o&&t.setReadOnly(!1),b.current&&t.setData(b.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),k({debug:y.current,editor:r,evtName:"destroy",handler:function(){T({type:"destroyed"})},priority:-1}),T({type:"unloaded",payload:r})})).catch((function(e){console.error(e),T({type:"error"})}))),function(){_&&_.destroy()}}),[_,c]),{editor:_,status:null==_?void 0:_.status,error:"error"===R,loading:"loading"===R}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,o=v(t.substr(7)),r=T.current[o];r&&r(n)},debug:o,editorUrl:r,element:y,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(p).filter((function(e){return 0===e.indexOf("on")})).map(b),type:s}),A=U.editor,N=U.status;return L((function(){var e="inline"!==s&&A&&("loaded"===N||"ready"===N);return u&&e&&A.container.setStyles(u),function(){u&&e&&Object.keys(u).map(S).forEach((function(e){A.container.removeStyle(e)}))}}),[A,N,u,s]),L((function(){A&&"ready"===N&&"boolean"==typeof d&&A.setReadOnly(d)}),[A,N,d]),c.createElement("div",{id:null!=i?i:void 0,ref:R,style:x(null!=s?s:"classic",N,u)},"string"==typeof a?null:a)}var T=p({config:s.object,debug:s.bool,editorUrl:s.string,initData:s.node,name:s.string,readOnly:s.bool,style:s.object,type:s.oneOf(["classic","inline"])},h.reduce((function(e,t){var n;return p(p({},e),((n={})[v(t)]=s.func,n))}),{}));R.propTypes=T;var U=n(87046),A=n(82014);const N=Object.entries({"8px":"~6pt","9px":"~7pt","10px":"~7.5pt","11px":"~8pt","12px":"~9pt","13px":"~10pt","14px":"~10.5pt","15px":"~11pt","16px":"~12pt","17px":"~13pt","18px":"~13.5pt","19px":"~14pt","20px":"~14.5pt","22px":"~16pt","24px":"~18pt","26px":"~20pt","28px":"~21pt","29px":"~22pt","32px":"~24pt","36px":"~26pt","37px":"~28pt","48px":"~36pt","64px":"~48pt","72px":"~54pt"}).map((function(e){var t=(0,i.A)(e,2),n=t[0],o=t[1];return"".concat(n," (").concat(o,")/").concat(n)})).join(";");var H,I=n(57528),F=n(51510),z=n(98582),K=F.Ay.div.withConfig({displayName:"StyledHtmlEditor"})(H||(H=(0,I.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,z.g)(e,"ckeditor")})),W=n(74848);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}window.NEW_CKEDITOR_BASEPATH="".concat(n.p,"ckeditor4/");var G=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";default:return"de"}};const J=function(e){var t=e.id,o=e.value,a=void 0===o?"":o,d=e.onChange,u=e.contentLang,l=void 0===u?"de":u,s=e.defaultLinkTarget,p=e.ckEditorConfig,f=e.useAutogrow,y=e.height,g=e.minHeight,h=e.maxHeight,m=(0,U.tz)().locale,v=(0,c.useState)(a),b=(0,i.A)(v,2),O=b[0],S=b[1],x=(0,c.useState)(!1),k=(0,i.A)(x,2),C=k[0],w=k[1],E=(0,c.useState)(y),D=(0,i.A)(E,2),j=D[0],L=D[1],P=(0,c.useState)(Math.random()),_=(0,i.A)(P,2),T=_[0],H=_[1];(0,c.useEffect)((function(){C&&O!==a&&H(Math.random())}),[a,C]);var I=M(M({language:G(m),contentsLanguage:l,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror","justify"].concat((0,r.A)(f?["autogrow"]:[])),removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0},versionCheck:!1,fontSize_sizes:N},p),f?{resize_enabled:!1,autoGrow_onStartup:!0,autoGrow_minHeight:g,autoGrow_maxHeight:h}:{height:j}),F=function(e){try{var t=e.data.name,n=e.data.definition;if("link"===t)n.getContents("info").get("protocol").default="https://",n.getContents("target").get("linkTargetType").default=s||"notSet"}catch(e){A.A.logError("Could not set default link attributes.")}};return(0,W.jsx)(K,{id:t,children:(0,W.jsx)(R,{config:I,initData:a,onBeforeLoad:function(e){return e.on("dialogDefinition",F)},type:"classic",onChange:function(e){var t=e.editor.getData();S(t),d(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();d(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js"),onLoaded:function(){return w(!0)},onResize:f?function(){}:function(e){var t=e.data.contentsHeight;return L(t)}},T)})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[4672],{68341(t,a,n){n.r(a);var r=n(11211),o=n(62193),e=n(96177),c=n(74848);const i=function(t){var a=t.value,n=t.breakWords,i=t.id,s=(0,r.l)(a),u=o(s)?a:s.formatInternational();return(0,c.jsx)(e.A,{href:"tel:".concat(a),target:"_blank",onClick:function(t){return t.stopPropagation()},label:u,breakWords:n,id:i})};n.d(a,["default",0,i])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[36916],{3031(a,l,i){i.r(l),i.d(l,{Icon:()=>N,default:()=>J});var e=i(64467),r=i(5556),t=i(80045),f=i(37107),o=i(37875),c=i(49456),n=i(15685),s=i(1970),d=i(58156),b=i(77231),u=i(74848),p=["icon","style","hasFixedWidth","title"];function h(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function g(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?h(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}f.Yv.add(n.s4k,c.s4k,c.fMY,c.kpQ,c.XkK,c.Wzs,c.w2A,c.Jt$,c.Bwz,c.QLR,c.ao0,c.$Bp,c.yy,n.yy,c.p7g,c.GRI,c.dmS,c.INu,c.B0C,c.CeG,c.CFw,c.IxC,c.GZ1,c.oZK,c.h9M,c.pS3,c.k6j,c.A4h,c.h8M,c.OXM,c.ruc,c.Wxp,c.fny,c.o1d,c.$MS,c.O_q,c.__G,c.CI$,c.e68,c.bxP,c.y_8,c.GEE,n.GEE,c.SGM,n.SGM,c.jPR,o.FjH,o.aUl,o.Kjv,o.mhH,o.uu9,o.iMk,o.qKs,c.ckx,c.vMs,c.KKr,c.Nz1,c.MjD,c.t5Z,c.a$,c.Yj9,c.dB,c.wq_,c.ktq,c.adM,c.WoN,c.VNe,n.WPY,c.gr3,c.LBj,c.Dvs,c.Ync,c.wRm,c.vaG,c.EZy,c.s0Q,c.iW_,c.tUE,c.yLS,c.JAe,c.Wny,c.ITF,c.UNK,c.QLL,c.H77,c.gKm,c.Nfw,c.Vdo,c.hys,c.z$e,c.n6T,c.xxn,c.gVK,c.sqM,n.Nfw,c.THi,c.LJS,c.URI,c.bG5,c.DN2,c.bgf,c.hSh,c.hpd,c.tAZ,n.WMI,c.isI,c.oMV,c.vuR,c.$8E,c.FFg,c._$s,c.d$A,c.dhZ,c.okg,c.z2i,c.X3I,c.wM0,c.a9Q,c._JS,c.Bi7,c.C_m,c.qqK,c.AgW,c.ZQp,c.gdJ,c.g_i,c.DEr,c.br3,c.Qux,c.zm_,c.b6I,c.fPr,c.JmV,c.DW4,c.jTw,c.mRM,c.QhE,c.c3e,c.CQO,c.wic,c.aTc,c.X46,c.ayg,c.Rwe,c.yqK,c.BH7,c.h6r,c.o_8,c.PJS,c.bMg,c.w97,c.vRt,c.LTU,c.ZpR,c.pHs,c.eST,c._2z,c.a8v,c.LP,c.Gk0,c.$ki,c.ww_,c.IMq,c.swh,c.Qyz,c.Dfk,c.i8r,c.vri,c.XmQ,c.el8,c.Dkf,c.yHR,c.jot,c.Vf1);const w=function(a){var l=a.icon,i=a.style,e=a.hasFixedWidth,r=void 0===e||e,f=a.title,o=(0,t.A)(a,p),c=l.includes(",")?l.replace(/\s+/,"").split(","):l,n=g({},d(i,"color")&&{color:i.color}),h=Array.isArray(c)?c[1]:c;return(0,u.jsx)(b.i,{"data-testid":"icon",title:f,children:(0,u.jsx)(s.gc,g(g(g({icon:c,style:i},n),{},{fixedWidth:r},o),{},{"data-testid":"icon-".concat(h),"data-cy":"icon-".concat(h)}))})},m=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-up":{"id":"fal, arrow-up","lib":"fa"},"arrow-down":{"id":"fal, arrow-down","lib":"fa"},"arrow-down-to-line":{"id":"fal, arrow-down-to-line","lib":"fa"},"arrow-up-to-line":{"id":"fal, arrow-up-to-line","lib":"fa"},"sigma":{"id":"fal, sigma","lib":"fa"},"empty-set":{"id":"fal, empty-set","lib":"fa"},"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-turn-left":{"id":"fal, arrow-turn-left","lib":"fa"},"arrow-turn-left-up":{"id":"fal, arrow-turn-left-up","lib":"fa"},"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"},"expand":{"id":"fal, expand","lib":"fa"},"arrow-down-arrow-up":{"id":"fal, arrow-down-arrow-up","lib":"fa","tags":["sort"]},"badge-percent":{"id":"fal, badge-percent","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"},"building":{"id":"fal, building","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"},"clock":{"id":"fal, clock","lib":"fa"},"clock-rotate-left":{"id":"fal, clock-rotate-left","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"coins":{"id":"fal, coins","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"comment-arrow-up-right":{"id":"fal, comment-arrow-up-right","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"},"location-check":{"id":"fal, location-check","lib":"fa"},"location-dot":{"id":"fal, location-dot","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"},"paper-plane":{"id":"fal, paper-plane","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"person-chalkboard":{"id":"fal, person-chalkboard","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"},"share":{"id":"fal, share","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sliders":{"id":"fal, sliders","lib":"fa"},"send":{"id":"send","lib":"toc"},"sparkle":{"id":"sparkle","lib":"toc"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"sparkles":{"id":"fal, sparkles","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"]},"triangle-exclamation":{"id":"fal, triangle-exclamation","lib":"fa"},"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"},"grip-dots-vertical":{"id":"fal, grip-dots-vertical","lib":"fa"},"table-layout":{"id":"fal, table-layout","lib":"fa"},"layout-column-one":{"id":"layout-column-one","lib":"toc"},"layout-column-two":{"id":"layout-column-two","lib":"toc"},"layout-column-three":{"id":"layout-column-three","lib":"toc"},"layout-sidebar-left":{"id":"layout-sidebar-left","lib":"toc"},"layout-sidebar-right":{"id":"layout-sidebar-right","lib":"toc"},"house-person-leave":{"id":"fal, house-person-leave","lib":"fa"},"ban":{"id":"fal, ban","lib":"fa"},"thumbtack-angle":{"id":"fal, thumbtack-angle","lib":"fa"},"thumbtack-angle-slash":{"id":"fal, thumbtack-angle-slash","lib":"fa"},"ellipsis-stroke":{"id":"fal, ellipsis-stroke","lib":"fa"},"memo":{"id":"fal, memo","lib":"fa"},"grid-2":{"id":"fal, grid-2","lib":"fa"}}');var v,y,k,x,j,O,z,M,S,P,V=["style"],H=["style"],A=["style"],q=["style"],D=["style"],B=["style"],C=["style"],_=["style"],E=["style"],L=["icon"];function W(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function I(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?W(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var R={logo:function(a){var l=a.style,i=(0,t.A)(a,V);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:v||(v=(0,u.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(a){var l=a.style,i=(0,t.A)(a,H);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"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:y||(y=(0,u.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"}))}))},"layout-column-one":function(a){var l=a.style,i=(0,t.A)(a,A);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},l),i),{},{children:k||(k=(0,u.jsx)("path",{d:"M78.8 19.7H433.2c32.6 0 59.1 26.4 59.1 59.1V433.2c0 32.6-26.5 59.1-59.1 \n 59.1H78.8c-32.6 0-59.1-26.5-59.1-59.1V78.8c0-32.6 26.4-59.1 59.1-59.1zm0 39.4c-10.9 \n 0-19.7 8.8-19.7 19.7V433.2c0 10.9 8.8 19.7 19.7 19.7H433.2c10.9 0 19.7-8.8 \n 19.7-19.7V78.8c0-10.9-8.8-19.7-19.7-19.7H78.8z"}))}))},"layout-column-two":function(a){var l=a.style,i=(0,t.A)(a,q);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:x||(x=(0,u.jsx)("path",{d:"M219.5 0c9.7 0 19 3.8 25.9 10.7s10.7 16.2 10.7 25.9v438.8c0 \n 9.7-3.8 19-10.7 25.9s-16.2 10.7-25.9 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 \n 485.1 .1 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 0 36.7 0zM39.5 472.6h177.2V39.4H39.5zM548.7 \n 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 \n 9-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H365.8c-9.7 0-19-3.8-25.9-10.7s-10.7-16.2-10.7-25.9V36.6c0-9.7 \n 3.8-19 10.7-25.9S356.1 0 365.8 0zm-180 472.6h177.2V39.4H368.7z"}))}))},"layout-column-three":function(a){var l=a.style,i=(0,t.A)(a,D);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:j||(j=(0,u.jsx)("path",{d:"M109.8 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.8 19-10.7 \n 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1 475.4V36.6c0-9.7 3.8-19 \n 10.7-25.9S27 0 36.7 0zM39.5 472.6H107V39.4H39.5zM329.3 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 \n 10.7 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7h-73.2c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9C237.1 3.8 246.4 0 \n 256.1 0zM258.9 472.6h67.5V39.4h-67.5zM548.7 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 \n 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7h-73.2c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9C456.5 \n 3.8 465.8 0 475.5 0zM478.3 472.6h67.5V39.4h-67.5z"}))}))},"layout-sidebar-left":function(a){var l=a.style,i=(0,t.A)(a,B);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:O||(O=(0,u.jsx)("path",{d:"M73.3 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 19-10.7 \n 25.9S83 512 73.3 512H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 \n 0 36.7 0zM39.5 472.6h31V39.4h-31zM548.7 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 \n 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H219.5c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9S209.8 0 \n 219.5 0zM222.3 472.6h323.5V39.4H222.3z"}))}))},"layout-sidebar-right":function(a){var l=a.style,i=(0,t.A)(a,C);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:z||(z=(0,u.jsx)("path",{d:"M365.8 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.8\n 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1\n 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 0 36.7 0zM39.5 472.6H363V39.4H39.5zM548.7 0c9.7 0\n 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2\n 10.7-25.8 10.7h-36.6c-9.7 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19\n 10.7-25.9C493.1 3.8 502.4 0 512.1 0zM514.9 472.6h31V39.4h-31z"}))}))},sparkle:function(a){var l=a.style,i=(0,t.A)(a,_);return(0,u.jsxs)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",children:[M||(M=(0,u.jsx)("path",{d:"M8 0.5l1.6 4.3a2 2 0 0 0 1.2 1.2l4.3 1.6-4.3 1.6a2 2 0 0 0-1.2 1.2L8 14.7l-1.6-4.3a2 2 0 0 0-1.2-1.2L0.9 7.6l4.3-1.6a2 2 0 0 0 1.2-1.2L8 0.5z"})),S||(S=(0,u.jsx)("path",{d:"M13.2 0.9l0.6 1.6a0.7 0.7 0 0 0 0.4 0.4l1.6 0.6-1.6 0.6a0.7 0.7 0 0 0-0.4 0.4l-0.6 1.6-0.6-1.6a0.7 0.7 0 0 0-0.4-0.4L10.6 3.5l1.6-0.6a0.7 0.7 0 0 0 0.4-0.4l0.6-1.6z"}))]}))},send:function(a){var l=a.style,i=(0,t.A)(a,E);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:P||(P=(0,u.jsx)("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"}))}))}};const G=function(a){var l=a.icon,i=(0,t.A)(a,L);return(0,u.jsx)(b.P,{children:R[l](i)})};function K(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function Q(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?K(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var $={fa:function(a,l){return(0,u.jsx)(w,Q(Q({},l),{},{icon:a.id}))},toc:function(a,l){return(0,u.jsx)(G,Q(Q({},l),{},{icon:a.id,"data-testid":"icon-".concat(a.id)}))}},N=function(a){var l=m[a.icon];if(!l)return null;var i=$[l.lib];return i?i(l,a):null};N.propTypes={icon:r.string.isRequired,style:r.objectOf(r.string)};const J=N}}]);