tocco-legacy-bundle 3.8.13 → 3.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +11 -0
- package/dist/chunk-251.4c90293f0bbcb53eddc5.js +1 -0
- package/dist/chunk-267.b2c08203916e1f69c783.js +1 -0
- package/dist/chunk-307.874e9bb6df213c3b3696.js +1 -0
- package/dist/chunk-348.0200420ed0ba63a7717f.js +1 -0
- package/dist/{chunk-557.d67b1992e4dca459bf67.js → chunk-557.ed7a6a1c9a91618df60d.js} +1 -1
- package/dist/chunk-608.4541b640f2f589a20204.js +1 -0
- package/dist/chunk-697.9c55bba7953be92c7819.js +3 -0
- package/dist/chunk-739.6e06d7617564c58b220f.js +1 -0
- package/dist/chunk-actions.2ede6e9453276607b427.js +1 -0
- package/dist/chunk-code-editor.c6f9acd670fd0a493a7e.js +1 -0
- package/dist/chunk-docs-actions.d798b0114712889b5231.js +1 -0
- package/dist/{chunk-html-editor.651a893b08a105dfff6b.js → chunk-html-editor.204229f5f0b8af056f53.js} +2 -2
- package/dist/chunk-phone-formatter.fe89b20059b3e944d116.js +1 -0
- package/dist/chunk-vendor-icons.b1d9343ff41a4b594c90.js +1 -0
- package/dist/chunk-vendor-libphonenumber-js.e813d5a0d0be074a27c9.js +1 -0
- package/dist/docs-browser.js +13 -8
- package/dist/entity-browser.js +21 -6
- package/dist/input-edit.js +17 -7
- package/dist/login.js +14 -9
- package/dist/merge.js +18 -8
- package/dist/password-update.js +14 -9
- package/dist/resource-scheduler.js +18 -8
- package/dist/sso-login.js +23 -8
- package/dist/two-factor-connector.js +13 -8
- package/package.json +1 -1
- package/dist/chunk-230.d59f43bd20ca9059dd66.js +0 -11
- package/dist/chunk-251.e138cb5cdff71c79d01f.js +0 -1
- package/dist/chunk-252.ff4d6155eed30b4245a6.js +0 -1
- package/dist/chunk-44.a0319f338041c473e69f.js +0 -1
- package/dist/chunk-608.806cf5d74d793ba97514.js +0 -1
- package/dist/chunk-631.1e1e08aa1603eaa0e632.js +0 -1
- package/dist/chunk-739.9b17b27b2e9a93f077ea.js +0 -1
- package/dist/chunk-74.307ea891c4abd85ac4d7.js +0 -1
- package/dist/chunk-741.92611e5559ad11402b69.js +0 -8
- package/dist/chunk-809.04853677433cc6806b1d.js +0 -1
- package/dist/chunk-861.164713d154031a98ffcc.js +0 -1
- package/dist/chunk-actions.4ef5ed5a9ecf23a768fa.js +0 -1
- package/dist/chunk-code-editor.1487c681dedf3e94f469.js +0 -1
- package/dist/chunk-docs-actions.fbd903f97fcca7f5225b.js +0 -1
- package/dist/chunk-phone-formatter.7a192e3f1c43b21a1ea8.js +0 -1
- package/dist/chunk-vendor-icons.c8320a296d7fa0408f08.js +0 -1
- package/dist/chunk-vendor-libphonenumber-js.e7723bb32099f2a8fd86.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[85],{24295:(e,t,n)=>{n.r(t),n.d(t,{default:()=>we});var r=n(29439),o=n(30168),a=n(22085),c=n.n(a),i=(n(66245),n(56544)),u=n(7197),s=n(81272),l=n(82341),f=n(97595),p=n(66679),d=n(38794),h=n(12964),m=n(27361),g=n.n(m),x=n(14293),k=n.n(x),v=n(13218),w=n.n(v),y=n(47037),_=n.n(y),b=n(1024),Z=n(67165),R=(n(56038),n(36976),n(92194),n(2565),n(8821),n(71083),n(42061),n(74576),n(82454),n(55872),n(58119),n(54159)),M=function(e){return R.Z.executeRequest("rest/".concat(e))},$=function(e){return 200===e.status?e.json():null},j=n(43144),q=n(15671),B=n(60136),I=n(73930),O=n(61120),z=(n(51500),n(1469)),C=n.n(z),T=n(30236),N=n.n(T),E=["==","!=","<=",">=","<",">","~="],S=["true","false","null"],P=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],H=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],F=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,O.Z)(e);if(t){var o=(0,O.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,I.Z)(this,n)}}const G=function(e){return function(t){(0,B.Z)(r,t);var n=A(r);function r(){var t;(0,q.Z)(this,r),t=n.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(F.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],a={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(E.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(H.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(S.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(P.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=N()(t.$rules,a,(function(e,t){return C()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return(0,j.Z)(r)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules)};function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,O.Z)(e);if(t){var o=(0,O.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,I.Z)(this,n)}}var U=function(e){(0,B.Z)(n,e);var t=V(n);function n(){var e;(0,q.Z)(this,n);return(e=t.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,j.Z)(n)}(c().require("ace/mode/text_highlight_rules").TextHighlightRules),D=function(e){(0,B.Z)(n,e);var t=V(n);function n(){var e;(0,q.Z)(this,n),e=t.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var a in e.$rules)e.$rules[a].unshift.apply(e.$rules[a],o);e.embedRules(U,"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 c=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(G(),"tql-",c,["start"]);var i={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=N()(e.$rules,i,(function(e,t){return C()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return(0,j.Z)(n)}(c().require("ace/mode/html_highlight_rules").HtmlHighlightRules),J=n(84506),K=n(93433),L=c().require("ace/token_iterator").TokenIterator,Q=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},W=function(e,t){return Q(e.getCurrentToken())===t},X=function(e){if(W(e,"model")&&e.stepBackward(),(W(e,"field")||W(e,"relation"))&&e.stepBackward(),!W(e,"chaining"))return null;if(e.stepBackward(),W(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},Y=function(e,t){for(;!W(e,t);)if(!e.stepBackward())return!1;return!0},ee=function(e,t){return W(e,"rparen")?1:t>0&&W(e,"lparen")?(e.stepBackward(),-1):0},te=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&W(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat((0,K.Z)(re(e))):[]}if(W(e,"order_by")){if(Y(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=ee(e,t),!e.stepBackward())return null}return null},ne=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},re=function(e){return ne(e,X)},oe=function(e){return ne(e,te)},ae=1e3,ce=function(e,t,n){var r=function(e,t){if(t){var n=oe(e());return{baseModel:t,modelScope:(0,J.Z)(n).slice(0)}}var r=oe(e()),o=(0,J.Z)(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=re(e()),i=[].concat((0,K.Z)(a),(0,K.Z)(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=(0,J.Z)(e),n=t[0],r=t.slice(1);return M(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then($).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat((0,K.Z)(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,K.Z)(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,K.Z)(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ae}}));t(null,n)})).catch((function(e){return t(e)}))}},ie=function(e,t){return t?"".concat(e," (").concat(t,")"):e},ue=function(e){return M("entities").then($).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:ie(t,n),value:t,score:ae}}));e(null,n)})).catch((function(t){return e(t)}))},se=function(){return F.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const le=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new L(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(Q(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ce(c,a,e);break;case"where":case"conjunction":ce(c,a,e),a(null,se());break;case"nice_function":a(null,se());break;case"find":ue(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,P.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,H.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ce(c,a,e),s&&"relation"!==Q(s)&&ue(a);break;case null:e&&ce(c,a,e),a(null,se())}}}};function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,O.Z)(e);if(t){var o=(0,O.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,I.Z)(this,n)}}var pe=function(e){(0,B.Z)(n,e);var t=fe(n);function n(){var e;return(0,q.Z)(this,n),(e=t.call(this)).HighlightRules=D,e.completer=le(),e}return(0,j.Z)(n)}(c().require("ace/mode/ftl").Mode);function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,O.Z)(e);if(t){var o=(0,O.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,I.Z)(this,n)}}var he,me=function(e){(0,B.Z)(n,e);var t=de(n);function n(e){var r,o=e.implicitModelName;return(0,q.Z)(this,n),(r=t.call(this)).HighlightRules=G(o),r.completer=le(o),r.snippedIdField=null,r}return(0,j.Z)(n)}(c().require("ace/mode/text").Mode),ge=n(85893),xe=Z.ZP.div.withConfig({displayName:"StyledEditor"})(he||(he=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ke={groovy:function(){return new u.Mode},html:function(){return new s.Mode},xml:function(){return new h.Mode},properties:function(){return new p.Mode},json:function(){return new l.Mode},htmlmixed:function(){return new pe},freemarkermixed:function(){return new pe},ftl:function(){return new pe},tql:function(e){return new me(e)},less:function(){return new f.Mode},drools:function(){return new i.Mode},text:function(){return new d.Mode}},ve=function(e,t){var n=t.mode,o=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return _()(e)?Promise.resolve(e):w()(e)?M("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then($).then((function(e){return g()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return g()(ke,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.Z)(t,2),o=n[0],a=n[1];e.setOption(o,a)})),e.renderer.setShowGutter(a),e.resize()};const we=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,a=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,h=e.id,m=(0,b.useRef)(null),g=(0,b.useRef)(null),x=(0,b.useMemo)((function(){return{mode:t,theme:r,showGutter:u,editorOptions:l,implicitModel:f,autoFocusOnMount:d}}),[t,r,u,l,f,d]);return(0,b.useEffect)((function(){var e=c().edit(m.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),ve(e,x),g.current=e,x.autoFocusOnMount&&g.current.focus(),function(){return e.destroy()}}),[]),(0,b.useEffect)((function(){g.current&&ve(g.current,x)}),[x]),(0,b.useEffect)((function(){g.current&&!k()(o)&&o!==g.current.getValue()&&g.current.getSession().setValue(o)}),[o]),(0,ge.jsx)(xe,{id:h,ref:m})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[141],{67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});n(45697);var i=n(70340),o=n(2307),r=n(34240),c=n(9240),a=n(25660),s=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,i.injectIntl)((function(e){var t=e.path,n=e.context,i=e.onSuccess,l=e.intl,d=e.locale,m=e.emitAction,f=(0,s.Z)(t),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],y=(0,a.Z)(n,"Domain");return(0,u.jsx)(o.ZP,{entityName:"Domain",formName:y,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];i({title:l.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)||m(e)},listApp:r.ZP,docsApp:c.default,labelPosition:"inside"})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});n(45697);var i=n(70340),o=n(2307),r=n(34240),c=n(9240),a=n(25660),s=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,i.injectIntl)((function(e){var t=e.context,n=e.path,i=e.onSuccess,l=e.intl,d=e.locale,m=e.emitAction,f=(0,s.Z)(n),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],y=(0,a.Z)(t,"Folder");return(0,u.jsx)(o.ZP,{entityName:"Folder",formName:y,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];i({title:l.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)||m(e)},listApp:r.ZP,docsApp:c.default,labelPosition:"inside"})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(4942),o=n(87348),r=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(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,i.Z)(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}const s=function(e){return(0,r.jsx)(o.Z,a(a({},e),{},{customDeleteEndpoint:"documents/delete"}))}},37485:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(29439),o=(n(45697),n(291),n(2307)),r=n(34240),c=n(9240),a=n(25660),s=n(20247),l=n(85893);const u=(0,s.U)((function(e){var t=e.selection,n=e.onSuccess,s=e.onCancel,u=e.locale,d=e.context,m=e.emitAction,f=e.navigate,p=t.ids[0].split("/"),y=(0,i.Z)(p,2),v=y[0],g=y[1];"Resource"===v&&(f("/docs/doc/".concat(g,"/detail")),s());var h=(0,a.Z)(d,v);return(0,l.jsx)(o.ZP,{entityName:v,formName:h,entityId:g,mode:"update",locale:u,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)||m(e)},listApp:r.ZP,docsApp:c.default,labelPosition:"inside"})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var i,o,r,c=n(70340),a=n(75508),s=n(30081),l=n(20247),u=n(29439),d=n(30168),m=n(18446),f=n.n(m),p=(n(45697),n(1024)),y=n(67165),v=(n(291),n(98712)),g=n(9240),h=n(80722),b=n(85893),j=y.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(i||(i=(0,d.Z)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),v.Sn),Z=(0,y.ZP)(v.oT).withConfig({displayName:"StyledLoadMask"})(o||(o=(0,d.Z)(["\n height: auto;\n"]))),_=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},P={initialize:s.j2,moveElements:s.w6};const N=(0,l.U)((0,a.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),P)((0,c.injectIntl)((function(e){var t=e.selection,n=e.onSuccess,i=e.onError,o=e.path,a=e.initialize,s=e.moveElements,l=e.isWaiting,d=e.domainTypes,m=e.rootNodes,y=e.businessUnit,P=e.locale,N=e.emitAction,k=(0,h.Z)(o),x={model:"Docs_list_item",key:"".concat(k.model,"/").concat(k.key)},w=(0,p.useState)(x),D=(0,u.Z)(w,2),O=D[0],S=D[1];(0,p.useEffect)((function(){a(t,n,i)}),[]);var E=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)(Z,{required:[!l],children:[(0,b.jsx)(g.default,{routerType:"routerless",initialLocation:function(){if(null===O)return null;var e=O.key.split("/"),t=(0,u.Z)(e,2),n=t[0],i=t[1];return E(n,i)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:_,onListParentChange:S,getCustomLocation:E,navigationStrategy:{},embedded:!0,emitAction:N,noLeftPadding:!0,domainTypes:d,rootNodes:m,businessUnit:y,sortable:!1,scrollBehaviour:"none",locale:P}),(0,b.jsx)(j,{children:(0,b.jsx)(v.zx,{onClick:function(){return s(O.key,t.ids)},look:"raised",ink:"primary",disabled:null===O||f()(O,x),children:r||(r=(0,b.jsx)(c.FormattedMessage,{id:"client.actions.dms-move.button"}))})})]})}))))},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}},47556:(e,t,n)=>{var i=n(88668),o=n(47443),r=n(1196),c=n(29932),a=n(7518),s=n(74757),l=Math.min;e.exports=function(e,t,n){for(var u=n?r:o,d=e[0].length,m=e.length,f=m,p=Array(m),y=1/0,v=[];f--;){var g=e[f];f&&t&&(g=c(g,a(t))),y=l(g.length,y),p[f]=!n&&(t||d>=120&&g.length>=120)?new i(f&&g):void 0}g=e[0];var h=-1,b=p[0];e:for(;++h<d&&v.length<y;){var j=g[h],Z=t?t(j):j;if(j=n||0!==j?j:0,!(b?s(b,Z):u(v,Z,n))){for(f=m;--f;){var _=p[f];if(!(_?s(_,Z):u(e[f],Z,n)))continue e}b&&b.push(Z),v.push(j)}}return v}},24387:(e,t,n)=>{var i=n(29246);e.exports=function(e){return i(e)?e:[]}},25325:(e,t,n)=>{var i=n(29932),o=n(47556),r=n(5976),c=n(24387),a=r((function(e){var t=i(e,c);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=a},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(68507);const o=(r=i.Z,c=r.getIn,function(e,t){return function(n){var i=t||function(e){return c(e,"form")};return c(i(n),e+".initial")}});var r,c}}]);
|
package/dist/{chunk-html-editor.651a893b08a105dfff6b.js → chunk-html-editor.204229f5f0b8af056f53.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[802],{27352:(e,t,n)=>{n.r(t),n.d(t,{default:()=>
|
|
1
|
+
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[802],{27352:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Z});var r,o=n(4942),a=n(1024);function i(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 d(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}function c(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.")):(r||(r=c.scriptLoader(e).then((function(e){return t&&t(e),e}))),r)}c.scriptLoader=function(e){return new Promise((function(t,n){
|
|
2
2
|
/**
|
|
3
3
|
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
5
|
*/
|
|
6
|
-
var o,a,c,l,u;o=e,a=function(e){return r=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."))},l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(c=a,a={}),a=a||{},c=c||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=o,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?i:d)(u,c),u.onload||i(u,c),l.appendChild(u)}))};var l=n(45697),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var f=["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"],p=["beforeLoad","namespaceLoaded"],y=s(s([],f,!0),p,!0),g="__CKE__";function m(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function h(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var v=s(s([],f,!0),p,!0).reduce((function(e,t){var n;return u(u({},e),((n={})[t]=function(e){return"".concat(g).concat(e)}(t),n))}),{});function b(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function O(e,t,n){var r={display:"none",visibility:"hidden"};return"classic"===e?r:"ready"===t?null!=n?n:void 0:r}function S(e){var t=e.debug,n=e.editor,r=e.evtName,o=e.handler,a=e.listenerData,i=e.priority,d=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),c=o;return t&&(c=function(e){console.log({operation:"invoke",editor:n.name,evtName:r,handlerId:d,data:e.data,listenerData:e.listenerData}),o(e)}),t&&console.log({operation:"register",editor:n.name,evtName:r,handlerId:d}),n.on(r,c,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:r,handlerId:d}),n.removeListener(r,c)}}var k=a.useEffect,C=a.useReducer,E=a.useRef,w="https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js",D={};function j(e,t){switch(t.type){case"init":return u(u({},e),{hookStatus:"init"});case"loading":return u(u({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return u(u({},e),{hookStatus:"loaded"});case"ready":return u(u({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=a.useEffect,P=a.useRef,x=a.useState;function T(e){var t=e.config,n=void 0===t?{}:t,r=e.debug,o=e.editorUrl,i=e.initData,d=e.name,l=e.readOnly,u=e.style,s=e.type,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),T=x(null),U=T[0],R=T[1],_=P(f);n&&"boolean"==typeof l&&(n.readOnly=l);var
|
|
6
|
+
var o,a,c,l,u;o=e,a=function(e){return r=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."))},l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(c=a,a={}),a=a||{},c=c||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=o,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?i:d)(u,c),u.onload||i(u,c),l.appendChild(u)}))};var l=n(45697),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var f=["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"],p=["beforeLoad","namespaceLoaded"],y=s(s([],f,!0),p,!0),g="__CKE__";function m(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function h(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var v=s(s([],f,!0),p,!0).reduce((function(e,t){var n;return u(u({},e),((n={})[t]=function(e){return"".concat(g).concat(e)}(t),n))}),{});function b(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function O(e,t,n){var r={display:"none",visibility:"hidden"};return"classic"===e?r:"ready"===t?null!=n?n:void 0:r}function S(e){var t=e.debug,n=e.editor,r=e.evtName,o=e.handler,a=e.listenerData,i=e.priority,d=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),c=o;return t&&(c=function(e){console.log({operation:"invoke",editor:n.name,evtName:r,handlerId:d,data:e.data,listenerData:e.listenerData}),o(e)}),t&&console.log({operation:"register",editor:n.name,evtName:r,handlerId:d}),n.on(r,c,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:r,handlerId:d}),n.removeListener(r,c)}}var k=a.useEffect,C=a.useReducer,E=a.useRef,w="https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js",D={};function j(e,t){switch(t.type){case"init":return u(u({},e),{hookStatus:"init"});case"loading":return u(u({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return u(u({},e),{hookStatus:"loaded"});case"ready":return u(u({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=a.useEffect,P=a.useRef,x=a.useState;function T(e){var t=e.config,n=void 0===t?{}:t,r=e.debug,o=e.editorUrl,i=e.initData,d=e.name,l=e.readOnly,u=e.style,s=e.type,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),T=x(null),U=T[0],R=T[1],_=P(f);n&&"boolean"==typeof l&&(n.readOnly=l);var I=function(e){var t=e.config,n=e.debug,r=e.dispatchEvent,o=e.subscribeTo,a=void 0===o?y:o,i=e.editorUrl,d=e.element,l=e.initContent,u=e.type,s=void 0===u?"classic":u,f=E(i||w),m=E(null!=a?a:y),h=E(n),b=E(r),O=E(l),L=E(t||D),P=E(s),x=C(j,{editor:void 0,hookStatus:"init"}),T=x[0],U=T.editor,R=T.hookStatus,_=x[1];return k((function(){return d&&!U&&(_({type:"loading"}),c(f.current,(function(e){var t;-1!==m.current.indexOf("namespaceLoaded")&&(null===(t=b.current)||void 0===t||t.call(b,{type:v.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===P.current,r=L.current.readOnly;-1!==m.current.indexOf("beforeLoad")&&(null===(t=b.current)||void 0===t||t.call(b,{type:v.beforeLoad,payload:e}));var o=e[n?"inline":"replace"](d,L.current);m.current.filter((function(e){return-1===p.indexOf(e)})).forEach((function(e){S({debug:h.current,editor:o,evtName:e,handler:function(t){var n;null===(n=b.current)||void 0===n||n.call(b,{type:"".concat(g).concat(e),payload:t})}})})),S({debug:h.current,editor:o,evtName:"loaded",handler:function(){_({type:"loaded"})},priority:-1}),S({debug:h.current,editor:o,evtName:"instanceReady",handler:function(e){var t=e.editor;_({type:"ready"}),n&&!r&&t.setReadOnly(!1),O.current&&t.setData(O.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),S({debug:h.current,editor:o,evtName:"destroy",handler:function(){_({type:"destroyed"})},priority:-1}),_({type:"unloaded",payload:o})})).catch((function(e){console.error(e),_({type:"error"})}))),function(){U&&U.destroy()}}),[U,d]),{editor:U,status:null==U?void 0:U.status,error:"error"===R,loading:"loading"===R}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,r=m(t.substr(g.length)),o=_.current[r];o&&o(n)},debug:r,editorUrl:o,element:U,initContent:"string"==typeof i?i:void 0,subscribeTo:Object.keys(f).filter((function(e){return 0===e.indexOf("on")})).map(h),type:s}),N=I.editor,F=I.status;return L((function(){var e="inline"!==s&&N&&("loaded"===F||"ready"===F);return u&&e&&N.container.setStyles(u),function(){u&&e&&Object.keys(u).map(b).forEach((function(e){N.container.removeStyle(e)}))}}),[N,F,u,s]),L((function(){N&&"ready"===F&&"boolean"==typeof l&&N.setReadOnly(l)}),[N,F,l]),a.createElement("div",{id:null!=d?d:void 0,ref:R,style:O(null!=s?s:"classic",F,u)},"string"==typeof i?null:i)}var U=u({config:l.object,debug:l.bool,editorUrl:l.string,initData:l.node,name:l.string,readOnly:l.bool,style:l.object,type:l.oneOf(["classic","inline"])},y.reduce((function(e,t){var n;return u(u({},e),((n={})[m(t)]=l.func,n))}),{}));T.propTypes=U;var R,_=n(70340),I=n(44759),N=n(30168),F=n(67165),H=n(48921),K=F.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(R||(R=(0,N.Z)(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,H.Ly)(e,"ckeditor")})),W=n(85893);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}window.NEW_CKEDITOR_BASEPATH="".concat(n.p,"ckeditor4/");var B=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"}},z=function(e){var t=e.id,r=e.value,a=e.onChange,i=e.contentLang,d=e.defaultLinkTarget,c=e.ckEditorConfig,l=(0,_.useIntl)().locale,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:B(l),contentsLanguage:i,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror"],removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0}},c),s=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=d||"notSet"}catch(e){I.Z.logError("Could not set default link attributes.")}};return(0,W.jsx)(K,{id:t,children:(0,W.jsx)(T,{config:u,initData:r,onBeforeLoad:function(e){return e.on("dialogDefinition",s)},type:"classic",onChange:function(e){var t=e.editor.getData();a(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();a(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js")})})};z.defaultProps={value:"",contentLang:"de"};const Z=z}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[698],{48078:(t,a,e)=>{e.r(a),e.d(a,{default:()=>u});var n=e(53306),r=e(41609),o=e.n(r),c=(e(45697),e(84265)),l=e(85893);const u=function(t){var a=t.value,e=t.breakWords,r=(0,n.default)(a),u=o()(r)?a:r.formatInternational();return(0,l.jsx)(c.ZP,{href:"tel:".concat(a),target:"_blank",onClick:function(t){return t.stopPropagation()},label:u,breakWords:e})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[614],{99579:(a,l,i)=>{i.r(l),i.d(l,{Icon:()=>E,default:()=>V});var e=i(4942),r=i(45697),f=i.n(r),t=i(44925),o=i(23636),c=i(93024),n=i(65735),d=i(73582),s=i(67814),b=i(27361),p=i.n(b),u=i(40493),g=i(85893),h=["icon","style","hasFixedWidth"];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 v(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.Z)(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}o.library.add(d.IJ7,n.IJ7,n.C65,n.kJo,n._tD,n.A35,n.mTx,n.ptq,n.g4A,n.r8p,n.Pk,n.g9M,n.Tab,d.Tab,n.NBC,n.eFW,n.acZ,n.u2A,n.Mdf,n.gMD,n.cwv,n.w49,n.fUD,n.icc,n.ca9,n.Vmj,n.gSj,n.WFE,n.hQn,n.LEp,n.WV2,n.FU$,n.diR,d.diR,n.f8k,d.f8k,c.xYR,c.neY,c.AYu,c.kBj,c.hVS,c.dc_,c.Av$,n.xiG,n.gJF,n.j1w,n.WKO,n.wn1,n.b7W,n.YHc,n.ZC5,n.UO1,d.Fyj,n.Qj4,n.FL8,n.foy,n.u9C,n.Fuz,n.iV1,n.Kl4,n.nYk,n.sqG,n.RLE,n.XAH,n.Zrf,n.jMV,n.pL1,n.g6h,n.SJY,n.qmU,n.nek,n.Qy6,n.lH_,d.pL1,n.hVM,n.yOf,n.Xgz,n.Mzg,n.r6l,n.IwR,n.aJJ,d.Alc,n.dLO,n.ntl,n.Hw7,n.FYs,n.$36,n.fT7,n.ioP,n.Cw9,n.Ry6,n.C3l,n.a1i,n.jGC,n.IeV,n.A8,n.hG5,n.FVb,n.AxY,n.mAj,n.hGM,n.UkD,n.BDt,n.QzV,n.py1,n.cf$,n.byT,n.dT$,n.G_j,n.A4,n.ar8,n.nNP,n.yGT,n.ILF,n.rux,n.qbi,n.lTt,n.gr5);var y=function(a){var l=a.icon,i=a.style,e=a.hasFixedWidth,r=(0,t.Z)(a,h),f=l.includes(",")?l.replace(/\s+/,"").split(","):l,o=v({},p()(i,"color")&&{color:i.color}),c=Array.isArray(f)?f[1]:f;return(0,g.jsx)(u.q,{children:(0,g.jsx)(s.G,v(v(v({icon:f,style:i},o),{},{fixedWidth:e},r),{},{"data-testid":"icon-".concat(c)}))})};y.defaultProps={hasFixedWidth:!0};const k=y,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-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"eye":{"id":"fal, eye","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-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"},"gear":{"id":"fal, gear","lib":"fa"},"calculator":{"id":"fal, calculator","lib":"fa"}}');var O,j,x=["style"],P=["style"],q=["icon"];function D(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 A(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?D(Object(i),!0).forEach((function(l){(0,e.Z)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var F={logo:function(a){var l=a.style,i=(0,t.Z)(a,x);return(0,g.jsx)("svg",A(A(A({height:p()(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:O||(O=(0,g.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.Z)(a,P);return(0,g.jsx)("svg",A(A(A({height:p()(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:j||(j=(0,g.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},S=function(a){var l=a.icon,i=(0,t.Z)(a,q);return F[l](i)};S.propTypes={icon:f().string.isRequired};const C=S;function z(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 T(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?z(Object(i),!0).forEach((function(l){(0,e.Z)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):z(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var Z={fa:function(a,l){return(0,g.jsx)(k,T(T({},l),{},{icon:a.id}))},toc:function(a,l){return(0,g.jsx)(C,T(T({},l),{},{icon:a.id,"data-testid":"icon-".concat(a.id)}))}},E=function(a){var l=m[a.icon];if(!l)return null;var i=Z[l.lib];return i?i(l,a):null};E.propTypes={icon:f().string.isRequired,style:f().objectOf(f().string)};const V=E}}]);
|