tocco-legacy-bundle 3.8.8 → 3.8.10
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 +10 -0
- package/dist/chunk-230.d59f43bd20ca9059dd66.js +11 -0
- package/dist/{chunk-213.6ed8e077ff9ebaad336e.js → chunk-252.ff4d6155eed30b4245a6.js} +1 -1
- package/dist/chunk-44.93ca8744be26a84f0162.js +1 -0
- package/dist/chunk-739.9b17b27b2e9a93f077ea.js +1 -0
- package/dist/chunk-74.307ea891c4abd85ac4d7.js +1 -0
- package/dist/chunk-809.04853677433cc6806b1d.js +1 -0
- package/dist/{chunk-actions.2373e52b3e0945ef48bf.js → chunk-actions.d69d02cf43280a3308dd.js} +1 -1
- package/dist/{chunk-docs-actions.0148c0b75270e631db4c.js → chunk-docs-actions.fbd903f97fcca7f5225b.js} +1 -1
- package/dist/chunk-html-editor.6e0971f2dc40ca91ff62.js +6 -0
- package/dist/docs-browser.js +12 -7
- package/dist/entity-browser.js +2 -2
- package/dist/input-edit.js +2 -2
- package/dist/login.js +2 -2
- package/dist/merge.js +1 -1
- package/dist/password-update.js +2 -2
- package/dist/resource-scheduler.js +1 -1
- package/dist/sso-login.js +1 -1
- package/dist/two-factor-connector.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-10.6e0197e258121499dc5b.js +0 -6
- package/dist/chunk-226.c0c6010555c00f679353.js +0 -1
- package/dist/chunk-240.4feb263f381425d22654.js +0 -1
- package/dist/chunk-293.9b25138fd8e4d4717276.js +0 -1
- package/dist/chunk-44.3370366a837b0651fe91.js +0 -1
- package/dist/chunk-468.2bd193179ba88921fe5e.js +0 -6
- package/dist/chunk-470.380715e25495f495779d.js +0 -1
- package/dist/chunk-654.7da1681d530185de2813.js +0 -1
- package/dist/chunk-809.7a2a1e128e4427211437.js +0 -1
- package/dist/chunk-html-editor.4c8339dd1c86b5602018.js +0 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[470],{14505:(t,r,e)=>{"use strict";e.d(r,{i:()=>c});var n=e(89062),o=e(18704),c=function(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.reduce((function(r,c){return void 0!==t[c.name]&&"function"==typeof c.action?r.push(c.action.apply(c,(0,n.Z)(c.argsFactory(t)))):c.mandatory&&e&&o.Z.logError("Mandatory field '".concat(c.name,"' not set in input")),r}),[])}},47369:(t,r,e)=>{"use strict";e.d(r,{Z:()=>n});const n={getDispatchActions:e(14505).i}},82445:(t,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>f});var n=e(4942),o=e(42845),c=e(34240),i=e(78125),u=e(85893);function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function s(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){(0,n.Z)(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}const f=function(t){return(0,u.jsx)(o.ZP,s(s({},t),{},{listApp:c.ZP,docsApp:i.ZP}))}},47556:(t,r,e)=>{var n=e(88668),o=e(47443),c=e(1196),i=e(29932),u=e(7518),a=e(74757),s=Math.min;t.exports=function(t,r,e){for(var f=e?c:o,p=t[0].length,l=t.length,v=l,h=Array(l),g=1/0,y=[];v--;){var O=t[v];v&&r&&(O=i(O,u(r))),g=s(O.length,g),h[v]=!e&&(r||p>=120&&O.length>=120)?new n(v&&O):void 0}O=t[0];var b=-1,d=h[0];t:for(;++b<p&&y.length<g;){var j=O[b],P=r?r(j):j;if(j=e||0!==j?j:0,!(d?a(d,P):f(y,P,e))){for(v=l;--v;){var w=h[v];if(!(w?a(w,P):f(t[v],P,e)))continue t}d&&d.push(P),y.push(j)}}return y}},24387:(t,r,e)=>{var n=e(29246);t.exports=function(t){return n(t)?t:[]}},25325:(t,r,e)=>{var n=e(29932),o=e(47556),c=e(5976),i=e(24387),u=c((function(t){var r=n(t,i);return r.length&&r[0]===t[0]?o(r):[]}));t.exports=u},44049:(t,r,e)=>{"use strict";e.d(r,{Z:()=>o});var n=e(68507);const o=(c=n.Z,i=c.getIn,function(t,r){return function(e){var n=r||function(t){return i(t,"form")};return i(n(e),t+".initial")}});var c,i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[654],{28368:(r,e,n)=>{var t=n(90939);r.exports=function(r,e,n){var i=(n="function"==typeof n?n:void 0)?n(r,e):void 0;return void 0===i?t(r,e,void 0,n):!!i}},14293:r=>{r.exports=function(r){return null==r}},66604:(r,e,n)=>{var t=n(89465),i=n(47816),u=n(67206);r.exports=function(r,e){var n={};return e=u(e,3),i(r,(function(r,i,u){t(n,i,e(r,i,u))})),n}},30084:(r,e,n)=>{var t=n(29932),i=n(278),u=n(1469),a=n(33448),o=n(55514),s=n(40327),c=n(79833);r.exports=function(r){return u(r)?t(r,s):a(r)?[r]:i(o(c(r)))}},66448:(r,e,n)=>{"use strict";n.d(e,{$U:()=>v,CO:()=>_,EK:()=>I,En:()=>S,FT:()=>i,IV:()=>A,Kn:()=>g,LD:()=>c,Lo:()=>N,O4:()=>t,Qm:()=>Y,VZ:()=>L,Ve:()=>m,WF:()=>k,WL:()=>d,Wu:()=>O,ZP:()=>P,_V:()=>b,bh:()=>U,c4:()=>F,cc:()=>p,dO:()=>y,gV:()=>D,gm:()=>C,gy:()=>o,hL:()=>u,kF:()=>M,m$:()=>s,ou:()=>E,qh:()=>T,td:()=>h,tn:()=>V,ud:()=>l,v7:()=>R,w8:()=>f,z$:()=>a,zD:()=>Z});var t="@@redux-form/",i=t+"ARRAY_INSERT",u=t+"ARRAY_MOVE",a=t+"ARRAY_POP",o=t+"ARRAY_PUSH",s=t+"ARRAY_REMOVE",c=t+"ARRAY_REMOVE_ALL",f=t+"ARRAY_SHIFT",d=t+"ARRAY_SPLICE",l=t+"ARRAY_UNSHIFT",v=t+"ARRAY_SWAP",E=t+"AUTOFILL",y=t+"BLUR",m=t+"CHANGE",A=t+"CLEAR_FIELDS",R=t+"CLEAR_SUBMIT",S=t+"CLEAR_SUBMIT_ERRORS",_=t+"CLEAR_ASYNC_ERROR",g=t+"DESTROY",p=t+"FOCUS",T=t+"INITIALIZE",I=t+"REGISTER_FIELD",h=t+"RESET",O=t+"RESET_SECTION",b=t+"SET_SUBMIT_FAILED",N=t+"SET_SUBMIT_SUCCEEDED",L=t+"START_ASYNC_VALIDATION",U=t+"START_SUBMIT",C=t+"STOP_ASYNC_VALIDATION",F=t+"STOP_SUBMIT",Z=t+"SUBMIT",Y=t+"TOUCH",D=t+"UNREGISTER_FIELD",V=t+"UNTOUCH",k=t+"UPDATE_SYNC_ERRORS",M=t+"UPDATE_SYNC_WARNINGS";const P={ARRAY_INSERT:i,ARRAY_MOVE:u,ARRAY_POP:a,ARRAY_PUSH:o,ARRAY_REMOVE:s,ARRAY_REMOVE_ALL:c,ARRAY_SHIFT:f,ARRAY_SPLICE:d,ARRAY_UNSHIFT:l,ARRAY_SWAP:v,AUTOFILL:E,BLUR:y,CHANGE:m,CLEAR_FIELDS:A,CLEAR_SUBMIT:R,CLEAR_SUBMIT_ERRORS:S,CLEAR_ASYNC_ERROR:_,DESTROY:g,FOCUS:p,INITIALIZE:T,REGISTER_FIELD:I,RESET:h,RESET_SECTION:O,SET_SUBMIT_FAILED:b,SET_SUBMIT_SUCCEEDED:N,START_ASYNC_VALIDATION:L,START_SUBMIT:U,STOP_ASYNC_VALIDATION:C,STOP_SUBMIT:F,SUBMIT:Z,TOUCH:Y,UNREGISTER_FIELD:D,UNTOUCH:V,UPDATE_SYNC_ERRORS:k,UPDATE_SYNC_WARNINGS:M}},16285:(r,e,n)=>{"use strict";n.d(e,{Z:()=>d});var t=n(65026),i=n.n(t),u=n(23560),a=n.n(u),o=n(66448),s=n(883),c=n(68507),f=function(r){var e=r.getIn;return function(r,n){var t=null;/^values/.test(n)&&(t=n.replace("values","initial"));var i=!t||void 0===e(r,t);return void 0!==e(r,n)&&i}};const d=function(r){var e,n=r.deepEqual,t=r.empty,u=r.forEach,d=r.getIn,l=r.setIn,v=r.deleteIn,E=r.fromJS,y=r.keys,m=r.size,A=r.some,R=r.splice,S=(0,s.Z)(r)(f),_=(0,s.Z)(c.Z)(f),g=function(r,e,n,t,i,u,a){var o=d(r,e+"."+n);return o||a?l(r,e+"."+n,R(o,t,i,u)):r},p=function(r,e,n,t,i,u,a){var o=d(r,e),s=c.Z.getIn(o,n);return s||a?l(r,e,c.Z.setIn(o,n,c.Z.splice(s,t,i,u))):r},T=["values","fields","submitErrors","asyncErrors"],I=function(r,e,n,i,u){var a=r,o=null!=u?t:void 0;return a=g(a,"values",e,n,i,u,!0),a=g(a,"fields",e,n,i,o),a=p(a,"syncErrors",e,n,i,void 0),a=p(a,"syncWarnings",e,n,i,void 0),a=g(a,"submitErrors",e,n,i,void 0),a=g(a,"asyncErrors",e,n,i,void 0)},h=((e={})[o.FT]=function(r,e){var n=e.meta,t=n.field,i=n.index,u=e.payload;return I(r,t,i,0,u)},e[o.hL]=function(r,e){var n=e.meta,t=n.field,i=n.from,u=n.to,a=d(r,"values."+t),o=a?m(a):0,s=r;return o&&T.forEach((function(r){var e=r+"."+t;if(d(s,e)){var n=d(s,e+"["+i+"]");s=l(s,e,R(d(s,e),i,1)),s=l(s,e,R(d(s,e),u,0,n))}})),s},e[o.z$]=function(r,e){var n=e.meta.field,t=d(r,"values."+n),i=t?m(t):0;return i?I(r,n,i-1,1):r},e[o.gy]=function(r,e){var n=e.meta.field,t=e.payload,i=d(r,"values."+n),u=i?m(i):0;return I(r,n,u,0,t)},e[o.m$]=function(r,e){var n=e.meta,t=n.field,i=n.index;return I(r,t,i,1)},e[o.LD]=function(r,e){var n=e.meta.field,t=d(r,"values."+n),i=t?m(t):0;return i?I(r,n,0,i):r},e[o.w8]=function(r,e){var n=e.meta.field;return I(r,n,0,1)},e[o.WL]=function(r,e){var n=e.meta,t=n.field,i=n.index,u=n.removeNum,a=e.payload;return I(r,t,i,u,a)},e[o.$U]=function(r,e){var n=e.meta,t=n.field,i=n.indexA,u=n.indexB,a=r;return T.forEach((function(r){var e=d(a,r+"."+t+"["+i+"]"),n=d(a,r+"."+t+"["+u+"]");void 0===e&&void 0===n||(a=l(a,r+"."+t+"["+i+"]",n),a=l(a,r+"."+t+"["+u+"]",e))})),a},e[o.ud]=function(r,e){var n=e.meta.field,t=e.payload;return I(r,n,0,0,t)},e[o.ou]=function(r,e){var n=e.meta.field,t=e.payload,i=r;return i=S(i,"asyncErrors."+n),i=S(i,"submitErrors."+n),i=l(i,"fields."+n+".autofilled",!0),i=l(i,"values."+n,t)},e[o.dO]=function(r,e){var n=e.meta,t=n.field,i=n.touch,u=e.payload,a=r;return void 0===d(a,"initial."+t)&&""===u?a=S(a,"values."+t):void 0!==u&&(a=l(a,"values."+t,u)),t===d(a,"active")&&(a=v(a,"active")),a=v(a,"fields."+t+".active"),i&&(a=l(a,"fields."+t+".touched",!0),a=l(a,"anyTouched",!0)),a},e[o.Ve]=function(r,e){var n=e.meta,t=n.field,i=n.touch,u=n.persistentSubmitErrors,o=e.payload,s=r;if(void 0===d(s,"initial."+t)&&""===o||void 0===o)s=S(s,"values."+t);else if(a()(o)){var c=d(r,"values."+t);s=l(s,"values."+t,o(c,r.values))}else s=l(s,"values."+t,o);return s=S(s,"asyncErrors."+t),u||(s=S(s,"submitErrors."+t)),s=S(s,"fields."+t+".autofilled"),i&&(s=l(s,"fields."+t+".touched",!0),s=l(s,"anyTouched",!0)),s},e[o.v7]=function(r){return v(r,"triggerSubmit")},e[o.En]=function(r){var e=r;return e=S(e,"submitErrors"),e=v(e,"error")},e[o.CO]=function(r,e){var n=e.meta.field;return v(r,"asyncErrors."+n)},e[o.IV]=function(r,e){var n=e.meta,t=n.keepTouched,i=n.persistentSubmitErrors,u=n.fields,a=r;u.forEach((function(e){a=S(a,"asyncErrors."+e),i||(a=S(a,"submitErrors."+e)),a=S(a,"fields."+e+".autofilled"),t||(a=v(a,"fields."+e+".touched"));var n=d(r,"initial."+e);a=n?l(a,"values."+e,n):S(a,"values."+e)}));var o=A(y(d(a,"registeredFields")),(function(r){return d(a,"fields."+r+".touched")}));return a=o?l(a,"anyTouched",!0):v(a,"anyTouched")},e[o.cc]=function(r,e){var n=e.meta.field,t=r,i=d(r,"active");return t=v(t,"fields."+i+".active"),t=l(t,"fields."+n+".visited",!0),t=l(t,"fields."+n+".active",!0),t=l(t,"active",n)},e[o.qh]=function(r,e){var i=e.payload,a=e.meta,o=a.keepDirty,s=a.keepSubmitSucceeded,c=a.updateUnregisteredFields,f=a.keepValues,v=E(i),m=t,A=d(r,"warning");A&&(m=l(m,"warning",A));var R=d(r,"syncWarnings");R&&(m=l(m,"syncWarnings",R));var S=d(r,"error");S&&(m=l(m,"error",S));var _=d(r,"syncErrors");_&&(m=l(m,"syncErrors",_));var g=d(r,"registeredFields");g&&(m=l(m,"registeredFields",g));var p=d(r,"values"),T=d(r,"initial"),I=v,h=p;if(o&&g){if(!n(I,T)){var O=function(r){var e=d(T,r),t=d(p,r);if(n(t,e)){var i=d(I,r);d(h,r)!==i&&(h=l(h,r,i))}};c||u(y(g),(function(r){return O(r)})),u(y(I),(function(r){if(void 0===d(T,r)){var e=d(I,r);h=l(h,r,e)}c&&O(r)}))}}else h=I;return f&&(u(y(p),(function(r){var e=d(p,r);h=l(h,r,e)})),u(y(T),(function(r){var e=d(T,r);I=l(I,r,e)}))),s&&d(r,"submitSucceeded")&&(m=l(m,"submitSucceeded",!0)),m=l(m,"values",h),m=l(m,"initial",I)},e[o.EK]=function(r,e){var n=e.payload,t=n.name,i=n.type,u="registeredFields['"+t+"']",a=d(r,u);if(a){var o=d(a,"count")+1;a=l(a,"count",o)}else a=E({name:t,type:i,count:1});return l(r,u,a)},e[o.td]=function(r){var e=t,n=d(r,"registeredFields");n&&(e=l(e,"registeredFields",n));var i=d(r,"initial");return i&&(e=l(e,"values",i),e=l(e,"initial",i)),e},e[o.Wu]=function(r,e){var n=e.meta.sections,t=r;n.forEach((function(e){t=S(t,"asyncErrors."+e),t=S(t,"submitErrors."+e),t=S(t,"fields."+e);var n=d(r,"initial."+e);t=n?l(t,"values."+e,n):S(t,"values."+e)}));var i=A(y(d(t,"registeredFields")),(function(r){return d(t,"fields."+r+".touched")}));return t=i?l(t,"anyTouched",!0):v(t,"anyTouched")},e[o.zD]=function(r){return l(r,"triggerSubmit",!0)},e[o.VZ]=function(r,e){var n=e.meta.field;return l(r,"asyncValidating",n||!0)},e[o.bh]=function(r){return l(r,"submitting",!0)},e[o.gm]=function(r,e){var n=e.payload,t=r;if(t=v(t,"asyncValidating"),n&&Object.keys(n).length){var u=n._error,a=i()(n,["_error"]);u&&(t=l(t,"error",u)),Object.keys(a).length&&(t=l(t,"asyncErrors",E(a)))}else t=v(t,"error"),t=v(t,"asyncErrors");return t},e[o.c4]=function(r,e){var n=e.payload,t=r;if(t=v(t,"submitting"),t=v(t,"submitFailed"),t=v(t,"submitSucceeded"),n&&Object.keys(n).length){var u=n._error,a=i()(n,["_error"]);t=u?l(t,"error",u):v(t,"error"),t=Object.keys(a).length?l(t,"submitErrors",E(a)):v(t,"submitErrors"),t=l(t,"submitFailed",!0)}else t=v(t,"error"),t=v(t,"submitErrors");return t},e[o._V]=function(r,e){var n=e.meta.fields,t=r;return t=l(t,"submitFailed",!0),t=v(t,"submitSucceeded"),t=v(t,"submitting"),n.forEach((function(r){return t=l(t,"fields."+r+".touched",!0)})),n.length&&(t=l(t,"anyTouched",!0)),t},e[o.Lo]=function(r){var e=r;return e=v(e,"submitFailed"),e=l(e,"submitSucceeded",!0)},e[o.Qm]=function(r,e){var n=e.meta.fields,t=r;return n.forEach((function(r){return t=l(t,"fields."+r+".touched",!0)})),t=l(t,"anyTouched",!0)},e[o.gV]=function(r,e){var i=e.payload,u=i.name,a=i.destroyOnUnmount,o=r,s="registeredFields['"+u+"']",f=d(o,s);if(!f)return o;var E=d(f,"count")-1;if(E<=0&&a){o=v(o,s),n(d(o,"registeredFields"),t)&&(o=v(o,"registeredFields"));var y=d(o,"syncErrors");y&&(y=_(y,u),o=c.Z.deepEqual(y,c.Z.empty)?v(o,"syncErrors"):l(o,"syncErrors",y));var m=d(o,"syncWarnings");m&&(m=_(m,u),o=c.Z.deepEqual(m,c.Z.empty)?v(o,"syncWarnings"):l(o,"syncWarnings",m)),o=S(o,"submitErrors."+u),o=S(o,"asyncErrors."+u)}else f=l(f,"count",E),o=l(o,s,f);return o},e[o.tn]=function(r,e){var n=e.meta.fields,t=r;n.forEach((function(r){return t=v(t,"fields."+r+".touched")}));var i=A(y(d(t,"registeredFields")),(function(r){return d(t,"fields."+r+".touched")}));return t=i?l(t,"anyTouched",!0):v(t,"anyTouched")},e[o.WF]=function(r,e){var n=e.payload,t=n.syncErrors,i=n.error,u=r;return i?(u=l(u,"error",i),u=l(u,"syncError",!0)):(u=v(u,"error"),u=v(u,"syncError")),u=Object.keys(t).length?l(u,"syncErrors",t):v(u,"syncErrors")},e[o.kF]=function(r,e){var n=e.payload,t=n.syncWarnings,i=n.warning,u=r;return u=i?l(u,"warning",i):v(u,"warning"),u=Object.keys(t).length?l(u,"syncWarnings",t):v(u,"syncWarnings")},e);return function r(e){return e.plugin=function(e,n){var i=this;return void 0===n&&(n={}),r((function(r,u){void 0===r&&(r=t),void 0===u&&(u={type:"NONE"});var a=function(n,t){var i=d(n,t),a=e[t](i,u,d(r,t));return a!==i?l(n,t,a):n},o=i(r,u),s=u&&u.meta&&u.meta.form;return s&&!n.receiveAllFormActions?e[s]?a(o,s):o:Object.keys(e).reduce(a,o)}))},e}(function(r){return function(e,n){void 0===e&&(e=t),void 0===n&&(n={type:"NONE"});var i=n&&n.meta&&n.meta.form;if(!i||!function(r){return r&&r.type&&r.type.length>o.O4.length&&r.type.substring(0,o.O4.length)===o.O4}(n))return e;if(n.type===o.Kn&&n.meta&&n.meta.form)return n.meta.form.reduce((function(r,e){return S(r,e)}),e);var u=d(e,i),a=r(u,n);return a===u?e:l(e,i,a)}}((function(r,e){void 0===r&&(r=t);var n=h[e.type];return n?n(r,e):r})))}},883:(r,e,n)=>{"use strict";n.d(e,{Z:()=>u});var t=n(30084),i=n.n(t);const u=function(r){var e=function(r){return function(e,n){return void 0!==r.getIn(e,n)}},n=r.deepEqual,t=r.empty,u=r.getIn,a=r.deleteIn,o=r.setIn;return function(s){void 0===s&&(s=e);return function e(c,f){if("]"===f[f.length-1]){var d=i()(f);return d.pop(),u(c,d.join("."))?o(c,f):c}var l=c;s(r)(c,f)&&(l=a(c,f));var v=f.lastIndexOf(".");if(v>0){var E=f.substring(0,v);if("]"!==E[E.length-1]){var y=u(l,E);if(n(y,t))return e(l,E)}}return l}}}},58267:(r,e,n)=>{"use strict";n.d(e,{Z:()=>u});var t=n(16285),i=n(68507);const u=(0,t.Z)(i.Z)},51417:(r,e,n)=>{"use strict";n.d(e,{Z:()=>d});var t=n(14293),i=n.n(t),u=n(28368),a=n.n(u),o=n(1024),s=n.n(o),c=function(r){return i()(r)||""===r||isNaN(r)},f=function(r,e){return r===e||(r||e?(!r||!e||r._error===e._error)&&((!r||!e||r._warning===e._warning)&&(!s().isValidElement(r)&&!s().isValidElement(e)&&void 0)):c(r)===c(e))};const d=function(r,e){return a()(r,e,f)}},39384:(r,e,n)=>{"use strict";n.d(e,{Z:()=>s});var t=n(64986),i=n.n(t),u=n(30084),a=n.n(u);function o(r,e){if(null==r||null==e)return r;for(var n=arguments.length,t=new Array(n>2?n-2:0),u=2;u<n;u++)t[u-2]=arguments[u];if(t.length){if(Array.isArray(r)){if(isNaN(e))throw new Error('Must access array elements with a number, not "'+String(e)+'".');var a=Number(e);if(a<r.length){var s=o.apply(void 0,[r&&r[a]].concat(t));if(s!==r[a]){var c=[].concat(r);return c[a]=s,c}}return r}if(e in r){var f,d=o.apply(void 0,[r&&r[e]].concat(t));return r[e]===d?r:i()({},r,((f={})[e]=d,f))}return r}if(Array.isArray(r)){if(isNaN(e))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(e));var l=Number(e);if(l<r.length){var v=[].concat(r);return v.splice(l,1),v}return r}if(e in r){var E=i()({},r);return delete E[e],E}return r}const s=function(r,e){return o.apply(void 0,[r].concat(a()(e)))}},99820:(r,e,n)=>{"use strict";n.d(e,{Z:()=>u});var t=n(30084),i=n.n(t);const u=function(r,e){if(!r)return r;var n=i()(e),t=n.length;if(t){for(var u=r,a=0;a<t&&u;++a)u=u[n[a]];return u}}},68507:(r,e,n)=>{"use strict";n.d(e,{Z:()=>c});var t=n(79087),i=n(99820),u=n(22325),a=n(51417),o=n(39384),s=n(75009);const c={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:i.Z,setIn:u.Z,deepEqual:a.Z,deleteIn:o.Z,forEach:function(r,e){return r.forEach(e)},fromJS:function(r){return r},keys:s.Z,size:function(r){return r?r.length:0},some:function(r,e){return r.some(e)},splice:t.Z,equals:function(r,e){return e.every((function(e){return~r.indexOf(e)}))},orderChanged:function(r,e){return e.some((function(e,n){return e!==r[n]}))},toJS:function(r){return r}}},75009:(r,e,n)=>{"use strict";n.d(e,{Z:()=>t});const t=function(r){return r?Array.isArray(r)?r.map((function(r){return r.name})):Object.keys(r):[]}},22325:(r,e,n)=>{"use strict";n.d(e,{Z:()=>s});var t=n(64986),i=n.n(t),u=n(30084),a=n.n(u),o=function r(e,n,t,u){var a;if(u>=t.length)return n;var o=t[u],s=r(e&&(Array.isArray(e)?e[Number(o)]:e[o]),n,t,u+1);if(!e){var c;if(isNaN(o))return(c={})[o]=s,c;var f=[];return f[parseInt(o,10)]=s,f}if(Array.isArray(e)){var d=[].concat(e);return d[parseInt(o,10)]=s,d}return i()({},e,((a={})[o]=s,a))};const s=function(r,e,n){return o(r,n,a()(e),0)}},79087:(r,e,n)=>{"use strict";n.d(e,{Z:()=>t});const t=function(r,e,n,t){if(e<(r=r||[]).length){if(void 0===t&&!n){var i=[].concat(r);return i.splice(e,0,!0),i[e]=void 0,i}if(null!=t){var u=[].concat(r);return u.splice(e,n,t),u}var a=[].concat(r);return a.splice(e,n),a}if(n)return r;var o=[].concat(r);return o[e]=t,o}},64986:r=>{function e(){return r.exports=e=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},e.apply(this,arguments)}r.exports=e},65026:r=>{r.exports=function(r,e){if(null==r)return{};var n,t,i={},u=Object.keys(r);for(t=0;t<u.length;t++)n=u[t],e.indexOf(n)>=0||(i[n]=r[n]);return i}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[809],{47803:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(1024),i=r.n(n),o=r(45697),s=r.n(o),a=r(13572);function u(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}var l=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,r=u(e,["children","gutter"]);r.gutter=function(e,r){var n;return t?n=t(e,r):(n=document.createElement("div")).className="gutter gutter-"+r,n.__isSplitGutter=!0,n},this.split=(0,a.Z)(this.parent.children,r)},t.prototype.componentDidUpdate=function(e){var t=this,r=this.props;r.children;var n=r.minSize,i=r.sizes,o=r.collapsed,s=u(r,["children","minSize","sizes","collapsed"]),l=e.minSize,c=e.sizes,f=e.collapsed,p=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(r){return t.props[r]!==e[r]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(l)){var d=!1;n.forEach((function(e,t){d=d||e!==l[t]})),p=p||d}else p=!(!Array.isArray(n)&&!Array.isArray(l))||(p||n!==l);if(p)s.minSize=n,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,r){return r.previousSibling},this.split=(0,a.Z)(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),s);else if(i){var g=!1;i.forEach((function(e,t){g=g||e!==c[t]})),g&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==f||p)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var r=t.children,n=u(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return i().createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),r)},t}(i().Component);l.propTypes={sizes:s().arrayOf(s().number),minSize:s().oneOfType([s().number,s().arrayOf(s().number)]),maxSize:s().oneOfType([s().number,s().arrayOf(s().number)]),expandToMin:s().bool,gutterSize:s().number,gutterAlign:s().string,snapOffset:s().oneOfType([s().number,s().arrayOf(s().number)]),dragInterval:s().number,direction:s().string,cursor:s().string,gutter:s().func,elementStyle:s().func,gutterStyle:s().func,onDrag:s().func,onDragStart:s().func,onDragEnd:s().func,collapsed:s().number,children:s().arrayOf(s().element)},l.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const c=99!=r.j?l:null},94858:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(33831),i=r(68507);const o=(0,n.Z)(i.Z)},33831:(e,t,r)=>{if(r.d(t,{Z:()=>i}),99!=r.j)var n=r(8306);function i(e){return function(t,r){var i=(0,n.Z)(e)(t,r);return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!i.apply(void 0,[e].concat(r))}}}},8306:(e,t,r)=>{function n(e){var t=e.deepEqual,r=e.empty,n=e.getIn;return function(e,i){return function(o){for(var s=i||function(e){return n(e,"form")},a=s(o),u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];if(l&&l.length)return l.every((function(r){var i=n(a,e+".initial."+r),o=n(a,e+".values."+r);return t(i,o)}));var f=n(a,e+".initial")||r,p=n(a,e+".values")||f;return t(f,p)}}}r.d(t,{Z:()=>n})},13572:(e,t,r)=>{r.d(t,{Z:()=>O});var n="undefined"!=typeof window?window:null,i=null===n,o=i?void 0:n.document,s="addEventListener",a="removeEventListener",u="getBoundingClientRect",l="_a",c="_b",f="_c",p="horizontal",d=function(){return!1},g=i?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=o.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",m=function(e){return"string"==typeof e||e instanceof String},v=function(e){if(m(e)){var t=o.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},h=function(e,t,r){var n=e[t];return void 0!==n?n:r},y=function(e,t,r,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(r){if("start"===n)return 0;if("center"===n)return e/2}return e},z=function(e,t){var r=o.createElement("div");return r.className="gutter gutter-"+t,r},S=function(e,t,r){var n={};return m(t)?n[e]=t:n[e]=g+"("+t+"% - "+r+"px)",n},b=function(e,t){var r;return(r={})[e]=t+"px",r};const O=99!=r.j?function(e,t){if(void 0===t&&(t={}),i)return{};var r,g,m,O,A,E,x=e;Array.from&&(x=Array.from(x));var w=v(x[0]).parentNode,D=getComputedStyle?getComputedStyle(w):null,M=D?D.flexDirection:null,_=h(t,"sizes")||x.map((function(){return 100/x.length})),k=h(t,"minSize",100),T=Array.isArray(k)?k:x.map((function(){return k})),U=h(t,"maxSize",1/0),Z=Array.isArray(U)?U:x.map((function(){return U})),j=h(t,"expandToMin",!1),C=h(t,"gutterSize",10),I=h(t,"gutterAlign","center"),F=h(t,"snapOffset",30),N=Array.isArray(F)?F:x.map((function(){return F})),B=h(t,"dragInterval",1),L=h(t,"direction",p),q=h(t,"cursor",L===p?"col-resize":"row-resize"),G=h(t,"gutter",z),P=h(t,"elementStyle",S),R=h(t,"gutterStyle",b);function W(e,t,n,i){var o=P(r,t,n,i);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function H(){return E.map((function(e){return e.size}))}function X(e){return"touches"in e?e.touches[0][g]:e[g]}function Y(e){var t=E[this.a],r=E[this.b],n=t.size+r.size;t.size=e/this.size*n,r.size=n-e/this.size*n,W(t.element,t.size,this[c],t.i),W(r.element,r.size,this[f],r.i)}function J(e){var r,n=E[this.a],i=E[this.b];this.dragging&&(r=X(e)-this.start+(this[c]-this.dragOffset),B>1&&(r=Math.round(r/B)*B),r<=n.minSize+n.snapOffset+this[c]?r=n.minSize+this[c]:r>=this.size-(i.minSize+i.snapOffset+this[f])&&(r=this.size-(i.minSize+this[f])),r>=n.maxSize-n.snapOffset+this[c]?r=n.maxSize+this[c]:r<=this.size-(i.maxSize-i.snapOffset+this[f])&&(r=this.size-(i.maxSize+this[f])),Y.call(this,r),h(t,"onDrag",d)(H()))}function K(){var e=E[this.a].element,t=E[this.b].element,n=e[u](),i=t[u]();this.size=n[r]+i[r]+this[c]+this[f],this.start=n[m],this.end=n[O]}function Q(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var r=e[A];return 0===r?null:r-=L===p?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(w);if(null===t)return e;if(T.reduce((function(e,t){return e+t}),0)>t)return e;var r=0,n=[],i=e.map((function(i,o){var s=t*i/100,a=y(C,0===o,o===e.length-1,I),u=T[o]+a;return s<u?(r+=u-s,n.push(0),u):(n.push(s-u),s)}));return 0===r?e:i.map((function(e,i){var o=e;if(r>0&&n[i]-r>0){var s=Math.min(r,n[i]-r);r-=s,o=e-s}return o/t*100}))}function V(){var e=this,r=E[e.a].element,i=E[e.b].element;e.dragging&&h(t,"onDragEnd",d)(H()),e.dragging=!1,n[a]("mouseup",e.stop),n[a]("touchend",e.stop),n[a]("touchcancel",e.stop),n[a]("mousemove",e.move),n[a]("touchmove",e.move),e.stop=null,e.move=null,r[a]("selectstart",d),r[a]("dragstart",d),i[a]("selectstart",d),i[a]("dragstart",d),r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",o.body.style.cursor=""}function $(e){if(!("button"in e)||0===e.button){var r=this,i=E[r.a].element,a=E[r.b].element;r.dragging||h(t,"onDragStart",d)(H()),e.preventDefault(),r.dragging=!0,r.move=J.bind(r),r.stop=V.bind(r),n[s]("mouseup",r.stop),n[s]("touchend",r.stop),n[s]("touchcancel",r.stop),n[s]("mousemove",r.move),n[s]("touchmove",r.move),i[s]("selectstart",d),i[s]("dragstart",d),a[s]("selectstart",d),a[s]("dragstart",d),i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",r.gutter.style.cursor=q,r.parent.style.cursor=q,o.body.style.cursor=q,K.call(r),r.dragOffset=X(e)-r.end}}L===p?(r="width",g="clientX",m="left",O="right",A="clientWidth"):"vertical"===L&&(r="height",g="clientY",m="top",O="bottom",A="clientHeight"),_=Q(_);var ee=[];function te(e){var t=e.i===ee.length,r=t?ee[e.i-1]:ee[e.i];K.call(r);var n=t?r.size-e.minSize-r[f]:e.minSize+r[c];Y.call(r,n)}return(E=x.map((function(e,t){var n,i={element:v(e),size:_[t],minSize:T[t],maxSize:Z[t],snapOffset:N[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:L,parent:w})[c]=y(C,t-1==0,!1,I),n[f]=y(C,!1,t===x.length-1,I),"row-reverse"===M||"column-reverse"===M)){var o=n.a;n.a=n.b,n.b=o}if(t>0){var a=G(t,L,i.element);!function(e,t,n){var i=R(r,t,n);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}(a,C,t),n[l]=$.bind(n),a[s]("mousedown",n[l]),a[s]("touchstart",n[l]),w.insertBefore(a,i.element),n.gutter=a}return W(i.element,i.size,y(C,0===t,t===x.length-1,I),t),t>0&&ee.push(n),i}))).forEach((function(e){var t=e.element[u]()[r];t<e.minSize&&(j?te(e):e.minSize=t)})),{setSizes:function(e){var t=Q(e);t.forEach((function(e,r){if(r>0){var n=ee[r-1],i=E[n.a],o=E[n.b];i.size=t[r-1],o.size=e,W(i.element,i.size,n[c],i.i),W(o.element,o.size,n[f],o.i)}}))},getSizes:H,collapse:function(e){te(E[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[a]("mousedown",n[l]),n.gutter[a]("touchstart",n[l])),!0!==e){var i=P(r,n.a.size,n[c]);Object.keys(i).forEach((function(e){E[n.a].element.style[e]="",E[n.b].element.style[e]=""}))}}))},parent:w,pairs:ee}}:null}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[802],{27352:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});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 c(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}function d(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=d.scriptLoader(e).then((function(e){return t&&t(e),e}))),r)}d.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 o,a,d,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&&(d=a,a={}),a=a||{},d=d||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:c)(u,d),u.onload||i(u,d),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,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=o;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:r,handlerId:c,data:e.data,listenerData:e.listenerData}),o(e)}),t&&console.log({operation:"register",editor:n.name,evtName:r,handlerId:c}),n.on(r,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:r,handlerId:c}),n.removeListener(r,d)}}var k=a.useEffect,E=a.useReducer,C=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 P=a.useEffect,L=a.useRef,x=a.useState;function U(e){var t=e.config,n=void 0===t?{}:t,r=e.debug,o=e.editorUrl,i=e.initData,c=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"]),U=x(null),R=U[0],_=U[1],T=L(f);n&&"boolean"==typeof l&&(n.readOnly=l);var N=function(e){var t=e.config,n=e.debug,r=e.dispatchEvent,o=e.subscribeTo,a=void 0===o?y:o,i=e.editorUrl,c=e.element,l=e.initContent,u=e.type,s=void 0===u?"classic":u,f=C(i||w),m=C(null!=a?a:y),h=C(n),b=C(r),O=C(l),P=C(t||D),L=C(s),x=E(j,{editor:void 0,hookStatus:"init"}),U=x[0],R=U.editor,_=U.hookStatus,T=x[1];return k((function(){return c&&!R&&(T({type:"loading"}),d(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"===L.current,r=P.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"](c,P.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(){T({type:"loaded"})},priority:-1}),S({debug:h.current,editor:o,evtName:"instanceReady",handler:function(e){var t=e.editor;T({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(){T({type:"destroyed"})},priority:-1}),T({type:"unloaded",payload:o})})).catch((function(e){console.error(e),T({type:"error"})}))),function(){R&&R.destroy()}}),[R,c]),{editor:R,status:null==R?void 0:R.status,error:"error"===_,loading:"loading"===_}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,r=m(t.substr(g.length)),o=T.current[r];o&&o(n)},debug:r,editorUrl:o,element:R,initContent:"string"==typeof i?i:void 0,subscribeTo:Object.keys(f).filter((function(e){return 0===e.indexOf("on")})).map(h),type:s}),I=N.editor,F=N.status;return P((function(){var e="inline"!==s&&I&&("loaded"===F||"ready"===F);return u&&e&&I.container.setStyles(u),function(){u&&e&&Object.keys(u).map(b).forEach((function(e){I.container.removeStyle(e)}))}}),[I,F,u,s]),P((function(){I&&"ready"===F&&"boolean"==typeof l&&I.setReadOnly(l)}),[I,F,l]),a.createElement("div",{id:null!=c?c:void 0,ref:_,style:O(null!=s?s:"classic",F,u)},"string"==typeof i?null:i)}var R=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))}),{}));U.propTypes=R;var _,T=n(86896),N=n(30168),I=n(67165),F=n(56822),H=I.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(_||(_=(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,F.L)(e,"ckeditor")})),K=n(85893);function W(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 A=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.value,r=e.onChange,a=e.contentLang,i=e.ckEditorConfig,c=(0,T.Z)().locale,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:A(c),contentsLanguage:a,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}},i);return(0,K.jsx)(H,{children:(0,K.jsx)(U,{config:d,initData:t,type:"classic",onChange:function(e){var t=e.editor.getData();r(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();r(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js")})})};z.defaultProps={value:"",contentLang:"de"};const B=z}}]);
|