tocco-widget-bundle 0.1.74 → 0.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[85],{67154:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},33700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r,o,l=n(74806),a=n(50558),i=n(8128),s=n(1024),c=n(50258),u=n(37873),d=n(539),f=n(85893);const h=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,l=e.deletingInProgress,a=e.intl;(0,s.useEffect)((function(){t()}),[t]);var i;return l?r||(r=(0,f.jsx)(u.Z,{})):(0,f.jsx)(c.Z,{required:[n],loadingText:(i="client.delete.loadingText",a.formatMessage({id:i})),children:n&&(o||(o=(0,f.jsx)(d.Z,{})))})};var p={loadDialogInfo:i.sq};const b=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),p)((0,l.ZP)(h))},19456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r,o,l=n(74806),a=n(50558),i=n(8128),s=n(44012),c=n(93235),u=n(34206),d=n(45253),f=n(22892),h=n(85893);const p=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,h.jsxs)(h.Fragment,{children:[r||(r=(0,h.jsx)(f.M,{children:(0,h.jsx)(c.Z,{size:"30px"})})),o||(o=(0,h.jsx)(u.ZP.P,{children:(0,h.jsx)(s.Z,{id:"client.delete.deleteInProgress"})})),(0,h.jsx)(d.Z,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var b={doDelete:i.q1};const g=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),b)((0,l.ZP)(p))},22892:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var r,o=n(28655),l=n.n(o),a=n(38205),i=n(7281),s=a.ZP.div.withConfig({displayName:"StyledIconWrapper"})(r||(r=l()(["\n margin-bottom: ",";\n"])),i.Z.space(.2))},37873:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),!/^(201|30|377|535|820)$/.test(n.j))var r=n(19456);const o=/^(201|30|377|535|820)$/.test(n.j)?null:r.Z},539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r,o,l,a,i,s=n(74806),c=n(50558),u=n(8128),d=n(44012),f=n(34206),h=n(55661),p=n(65035),b=n(45253),g=n(96871),v=n(85893);const y=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,s=t.rootEntitiesNotDeletable,c=t.relatedDeletable,u=t.relatedNotDeletable,y=t.hasUnreadableEntities,m=e.doDelete,x=e.onCancel,k=e.navigationStrategy;return(0,v.jsxs)(v.Fragment,{children:[r||(r=(0,v.jsx)(f.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.confirmText"})})),(0,v.jsx)(b.Z,{rootEntities:n,relatedEntities:c,maxCountLink:100,navigationStrategy:k},"infopart-deletable"),Object.keys(s).length>0&&(0,v.jsxs)(g.z,{children:[o||(o=(0,v.jsx)(f.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.textNotDeletable"})})),(0,v.jsx)(b.Z,{rootEntities:s,relatedEntities:u,maxCountLink:100,navigationStrategy:k},"infopart-notdeletable")]}),y&&(l||(l=(0,v.jsx)(g.z,{children:(0,v.jsx)(h.Z,{condition:"warning",children:(0,v.jsx)(f.ZP.Span,{children:(0,v.jsx)(d.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,v.jsx)(g.z,{children:(0,v.jsxs)(g.W,{children:[(0,v.jsx)(p.Z,{onClick:m,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:a||(a=(0,v.jsx)(d.Z,{id:"client.delete.deleteButton"}))}),(0,v.jsx)(p.Z,{ink:"primary",onClick:x,children:i||(i=(0,v.jsx)(d.Z,{id:"client.delete.cancelButton"}))})]})})]})};var m={doDelete:u.q1,onCancel:u.K3};const x=(0,c.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),m)((0,s.ZP)(y))},96871:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,z:()=>u});var r,o,l=n(28655),a=n.n(l),i=n(38205),s=n(7281),c=n(58129),u=i.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(r||(r=a()(["\n padding-top: ",";\n"])),s.Z.space(.6)),d=i.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=a()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),c.Z)},45253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(319),o=n.n(r),l=n(63038),a=n.n(l),i=n(28655),s=n.n(i),c=n(1024),u=n.n(c),d=n(38205);if(!/^(201|30|377|535|820)$/.test(n.j))var f=n(34206);if(!/^(201|30|377|535|820)$/.test(n.j))var h=n(13535);var p,b,g=n(85893),v=d.ZP.span.withConfig({displayName:"NonBreakingText"})(p||(p=s()(["\n white-space: nowrap;\n"])));const y=/^(201|30|377|535|820)$/.test(n.j)?null:function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,l=e.navigationStrategy;return(0,g.jsxs)(f.ZP.Span,{children:[(0,g.jsx)(f.ZP.B,{children:Object.entries(t).map((function(e){var t=a()(e,2),n=t[0],r=t[1];return(0,g.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&l.ListLink?(0,g.jsx)(l.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,g.jsx)(f.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,g.jsxs)(g.Fragment,{children:[b||(b=(0,g.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],a=[].concat(o()(t.keys),o()(t.keysOtherBu)).length,i=t.keys.length>0&&l.ListLink?(0,g.jsx)(l.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:a}):(0,g.jsx)(f.ZP.Span,{children:a}),s=(0,g.jsx)(h.Z,{relatedEntity:t,maxCountLink:r,children:i});return(0,g.jsx)(u().Fragment,{children:(0,g.jsxs)(v,{children:[t.entityLabel," (",s,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})}},13535:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),!/^(201|30|377|535|820)$/.test(n.j))var r=n(44012);if(!/^(201|30|377|535|820)$/.test(n.j))var o=n(34206);if(!/^(201|30|377|535|820)$/.test(n.j))var l=n(76791);var a,i=n(85893);const s=/^(201|30|377|535|820)$/.test(n.j)?null:function(e){var t=e.relatedEntity,n=e.children,s=e.maxCountLink;if(t.keys.length<s&&0===t.keysOtherBu.length)return n;var c=(0,i.jsxs)(i.Fragment,{children:[t.keys.length>s&&(a||(a=(0,i.jsx)(o.ZP.P,{children:(0,i.jsx)(r.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,i.jsx)(o.ZP.P,{children:(0,i.jsx)(r.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,i.jsx)(l.Z,{content:c,placement:"top",children:n})}},12750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>le});var r=n(45697),o=n.n(r),l=n(50600),a=n(87533),i=n(45430),s=n(27023),c=n(73665);const u=n(33700).Z;var d,f=n(59713),h=n.n(f),p=n(81770),b=n(8128),g=(d={},h()(d,b.uT,p.Z.singleTransferReducer("dialogInfo")),h()(d,b.Yq,p.Z.singleTransferReducer("entitiesToDelete")),h()(d,b.mT,p.Z.singleTransferReducer("deletingInProgress")),d),v={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var y=n(319),m=n.n(y),x=n(63038),k=n.n(x),E=n(87757),w=n.n(E),_=n(34857),O=n(81719),j=n(27361),Z=n.n(j);function S(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}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T="DELETABLE",I=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,l=r.entityLabel,a=r.key;if(a.includes("/")){var i=a.split("/"),s=k()(i,2),c=s[0],u=s[1];return R(R({},e),{},h()({},c,{entityLabel:l,keys:[].concat(m()(Z()(e,[c,"keys"],[])),m()(n?[u]:[]))}))}return R(R({},e),{},h()({},o,{entityLabel:l,keys:[].concat(m()(Z()(e,[o,"keys"],[])),m()(n?[a]:[]))}))},N=function(e){return e.rootEntity.deleteStatus===T&&!e.affectedEntities.find((function(e){return e.deleteStatus!==T}))},P=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=N(n),o=r?"relatedDeletable":"relatedNotDeletable";return R(R(R({},e),{},{rootEntitiesDeletable:I(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:I(e.rootEntitiesNotDeletable,n)}),{},h()({},o,function(e,t,n,r){return R({},t.affectedEntities.reduce((function(e,t){return R(R({},e),n||t.deleteStatus!==T?h()({},t.entityName,R(R({},Z()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(m()(Z()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(m()(Z()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),R({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},D=function(e){var t=e.entitiesToDelete;return{entityName:Z()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(m()(e),m()(N(t)?[t.rootEntity.key]:[]))}),[])}},A=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),C=(o().shape({rootEntitiesDeletable:o().objectOf(A).isRequired,rootEntitiesNotDeletable:o().objectOf(A).isRequired,relatedDeletable:o().objectOf(A).isRequired,relatedNotDeletable:o().objectOf(A).isRequired,hasUnreadableEntities:o().bool}),w().mark(V)),L=w().mark(H),B=w().mark(W),F=w().mark(Y),q=w().mark(G),$=w().mark(K),M=function(e){return e.input},U=function(e){return e.intl.messages},z=function(e){return e.del.entitiesToDelete};function V(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,_.Ys)(M);case 2:return e=r.sent,t=e.selection,r.next=6,(0,_.RE)(c.Z.getEntities,t,O.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),C)}function H(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,_.Ys)(M);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),L)}function W(){var e,t,n,r,o,l,a,i;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,_.RE)(V);case 2:return e=s.sent,s.next=5,(0,_.RE)(H);case 5:return t=s.sent,s.next=8,(0,_.$6)([(0,_.RE)(O.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,_.RE)(O.Z.fetchPrincipal)]);case 8:return n=s.sent,r=k()(n,2),o=r[0],l=r[1],s.next=14,(0,_.RE)(P,o.body,l.currentBusinessUnit.id);case 14:return a=s.sent,s.next=17,(0,_.gz)(b.ik(a));case 17:return s.next=19,(0,_.RE)(D,o.body);case 19:return i=s.sent,s.next=22,(0,_.gz)(b.OJ(i));case 22:case"end":return s.stop()}}),B)}function Y(){var e,t,n,r,o,l,a;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,_.Ys)(z);case 2:return e=s.sent,s.next=5,(0,_.gz)(b.T3(!0));case 5:return s.next=7,(0,_.RE)(H);case 7:return t=s.sent,s.next=10,(0,_.RE)(O.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedStatusCodes:[409]});case 10:return n=s.sent,s.next=13,(0,_.Ys)(U);case 13:if(r=s.sent,!n.ok){s.next=22;break}return o=n.body,l=Object.keys(o.deletedEntities).reduce((function(e,t){return[].concat(m()(e),m()(o.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:l}}],s.next=20,(0,_.gz)(i.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:s.next=29;break;case 22:if(409!==n.status||!n.body.information){s.next=27;break}return s.next=25,(0,_.gz)(i.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:return s.next=29,(0,_.gz)(i.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 29:case"end":return s.stop()}}),F)}function G(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.gz)(i.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),q)}function K(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.$6)([(0,_.Fm)(b.qD,W),(0,_.Fm)(b.lB,Y),(0,_.Fm)(b.DV,G)]);case 2:case"end":return e.stop()}}),$)}const Q={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=g[t.type];return n?n(e,t):e}};var J,X=[K],ee=n(85893),te="delete",ne=["onSuccess","onCancel","onError","emitAction"],re=function(e,t,n,r){var o=J||(J=(0,ee.jsx)(u,{})),c=a.Z.createStore(Q,X,t,te);l.Z.addToStore(c,(function(e){return e.input.emitAction}));var d=!n.emitAction;return s.Z.addToStore(c,d),i.Z.addToStore(c,(function(e){return a.Z.getEvents(ne,e.input)})),a.Z.createApp(te,o,c,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",te]})};a.Z.registerAppInRegistry(te,re);var oe=function(e){return a.Z.useApp({initApp:re,props:e,packageName:te,externalEvents:ne}).component};oe.propTypes={selection:c.Z.propType.isRequired,customDeleteEndpoint:o().string};const le=oe;a.Z.createBundleableApp(te,re,oe)},8128:(e,t,n)=>{"use strict";n.d(t,{DV:()=>i,K3:()=>h,OJ:()=>p,T3:()=>f,Yq:()=>s,ik:()=>u,lB:()=>l,mT:()=>a,q1:()=>d,qD:()=>r,sq:()=>c,uT:()=>o});var r="root/LOAD_DIALOG_INFO",o="delete/SET_DELETE_DIALOG_INFO",l="delete/DO_DELETE",a="delete/SET_DELETING_IN_PROGRESS",i="delete/ON_CANCEL",s="delete/SET_ENTITIES_TO_DELETE",c=function(){return{type:r}},u=function(e){return{type:o,payload:{dialogInfo:e}}},d=function(){return{type:l}},f=function(e){return{type:a,payload:{deletingInProgress:e}}},h=function(){return{type:i}},p=function(e){return{type:s,payload:{entitiesToDelete:e}}}},73665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(45697),o=n.n(r);const l={ID:"ID",QUERY:"QUERY"},a=o().shape({entityName:o().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===l.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===l.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o().oneOf(Object.keys(l)).isRequired,count:o().number});var i=n(59713),s=n.n(i),c=n(87757),u=n.n(c),d=n(34857),f=n(44759),h=u().mark(v);function p(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}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=1e5;function v(e,t){var n,r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.QUERY){o.next=9;break}return o.next=4,(0,d.RE)(t,e.entityName,b(b({},e.query),{},{limit:g}));case 4:if(!((r=o.sent).length>g)){o.next=8;break}return o.next=8,(0,d.RE)(f.Z.logError,"Selected records exceed limit of ".concat(g));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),h)}const y={getEntities:v,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:a,selectionTypes:l}},30919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>we});var r=n(63038),o=n.n(r),l=n(28655),a=n.n(l),i=n(22085),s=n.n(i),c=(n(66245),n(56544)),u=n(7197),d=n(81272),f=n(82341),h=n(97595),p=n(66679),b=n(38794),g=n(12964),v=n(27361),y=n.n(v),m=n(14293),x=n.n(m),k=n(13218),E=n.n(k),w=n(47037),_=n.n(w),O=n(1024),j=n(38205),Z=(n(36976),n(92194),n(2565),n(8821),n(71083),n(42061),n(74576),n(82454),n(55872),n(58119),n(64886)),S=n(93913),R=n.n(S),T=n(34575),I=n.n(T),N=n(2205),P=n.n(N),D=n(78585),A=n.n(D),C=n(29754),L=n.n(C),B=(n(51500),n(1469)),F=n.n(B),q=n(30236),$=n.n(q),M=n(72049);function U(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}const z=function(e){return function(t){P()(r,t);var n=U(r);function r(){var t;I()(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(M.wk.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={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(M.Gn.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(M._O.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.HZ.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(M.V5.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=$()(t.$rules,l,(function(e,t){return F()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return R()(r)}(s().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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var H=function(e){P()(n,e);var t=V(n);function n(){var e;I()(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 R()(n)}(s().require("ace/mode/text_highlight_rules").TextHighlightRules),W=function(e){P()(n,e);var t=V(n);function n(){var e;I()(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 l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(H,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(z(),"tql-",a,["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=$()(e.$rules,i,(function(e,t){return F()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return R()(n)}(s().require("ace/mode/html_highlight_rules").HtmlHighlightRules),Y=n(68551),G=n.n(Y),K=n(319),Q=n.n(K),J=s().require("ace/token_iterator").TokenIterator,X=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ee=function(e,t){return X(e.getCurrentToken())===t},te=function(e){if(ee(e,"model")&&e.stepBackward(),(ee(e,"field")||ee(e,"relation"))&&e.stepBackward(),!ee(e,"chaining"))return null;if(e.stepBackward(),ee(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},ne=function(e,t){for(;!ee(e,t);)if(!e.stepBackward())return!1;return!0},re=function(e,t){return ee(e,"rparen")?1:t>0&&ee(e,"lparen")?(e.stepBackward(),-1):0},oe=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&ee(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat(Q()(ae(e))):[]}if(ee(e,"order_by")){if(ne(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=re(e,t),!e.stepBackward())return null}return null},le=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},ae=function(e){return le(e,te)},ie=function(e){return le(e,oe)},se=1e3,ce=function(e,t,n){var r=function(e,t){if(t){var n=ie(e());return{baseModel:t,modelScope:G()(n).slice(0)}}var r=ie(e()),o=G()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,l=r.modelScope;if(o){var a=ae(e()),i=[].concat(Q()(l),Q()(a)).map((function(e){return"rel".concat(e)}));(function(e){var t=G()(e),n=t[0],r=t.slice(1);return(0,Z.w)(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(Z.c).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat(Q()(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}))),Q()(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(Q()(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:se}}));t(null,n)})).catch((function(e){return t(e)}))}},ue=function(e,t){return t?"".concat(e," (").concat(t,")"):e},de=function(e){return(0,Z.w)("entities").then(Z.c).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:ue(t,n),value:t,score:se}}));e(null,n)})).catch((function(t){return e(t)}))},fe=function(){return M.wk.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const he=function(e){return{getCompletions:function(t,n,r,o,l){var a=function(){return new J(n,r.row,r.column)},i=a(),s=i.getCurrentToken(),c=i.stepBackward()?i.getCurrentToken():null;switch(X(s)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ce(a,l,e);break;case"where":case"conjunction":ce(a,l,e),l(null,fe());break;case"nice_function":l(null,fe());break;case"find":de(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,M.V5.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,M._O.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ce(a,l,e),c&&"relation"!==X(c)&&de(l);break;case null:e&&ce(a,l,e),l(null,fe())}}}};function pe(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var be=function(e){P()(n,e);var t=pe(n);function n(){var e;return I()(this,n),(e=t.call(this)).HighlightRules=W,e.completer=he(),e}return R()(n)}(s().require("ace/mode/ftl").Mode);function ge(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var ve,ye=function(e){P()(n,e);var t=ge(n);function n(e){var r,o=e.implicitModelName;return I()(this,n),(r=t.call(this)).HighlightRules=z(o),r.completer=he(o),r.snippedIdField=null,r}return R()(n)}(s().require("ace/mode/text").Mode),me=n(85893),xe=j.ZP.div.withConfig({displayName:"StyledEditor"})(ve||(ve=a()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ke={groovy:function(){return new u.Mode},html:function(){return new d.Mode},xml:function(){return new g.Mode},properties:function(){return new p.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new be},freemarkermixed:function(){return new be},ftl:function(){return new be},tql:function(e){return new ye(e)},less:function(){return new h.Mode},drools:function(){return new c.Mode},text:function(){return new b.Mode}},Ee=function(e,t){var n=t.mode,r=t.theme,l=t.showGutter,a=t.editorOptions,i=void 0===a?{}:a;(function(e){return _()(e)?Promise.resolve(e):E()(e)?(0,Z.w)("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(Z.c).then((function(e){return y()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return y()(ke,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(t){var n=o()(t,2),r=n[0],l=n[1];e.setOption(r,l)})),e.renderer.setShowGutter(l),e.resize()};const we=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,l=e.onChange,a=e.showGutter,i=void 0===a||a,c=e.editorOptions,u=void 0===c?{}:c,d=e.implicitModel,f=(0,O.useRef)(null),h=(0,O.useRef)(null),p=(0,O.useMemo)((function(){return{mode:t,theme:r,showGutter:i,editorOptions:u,implicitModel:d}}),[t,r,i,u,d]);return(0,O.useEffect)((function(){var e=s().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),Ee(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,O.useEffect)((function(){h.current&&Ee(h.current,p)}),[p]),(0,O.useEffect)((function(){h.current&&!x()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,me.jsx)(xe,{ref:f})}},72049:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>r,HZ:()=>o,V5:()=>l,_O:()=>a,wk:()=>i});var r=/^(3|82)0$/.test(n.j)?null:["==","!=","<=",">=","<",">","~="],o=/^(3|82)0$/.test(n.j)?null:["true","false","null"],l=/^(3|82)0$/.test(n.j)?null:["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],a=/^(3|82)0$/.test(n.j)?null:["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],i=/^(3|82)0$/.test(n.j)?null:["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"]},64886:(e,t,n)=>{"use strict";if(n.d(t,{c:()=>l,w:()=>o}),!/^(3|82)0$/.test(n.j))var r=n(54159);var o=function(e){return r.Z.executeRequest("rest/".concat(e))},l=function(e){return 200===e.status?e.json():null}},48078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(52817),o=n(41609),l=n.n(o),a=n(41291),i=n(85893);const s=function(e){var t=e.value,n=e.breakWords,o=(0,r._)(t),s=l()(o)?t:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(t),target:"_blank",onClick:function(e){return e.stopPropagation()},label:s,breakWords:n})}},83418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=n(59713),o=n.n(r),l=n(72757),a=n(1024),i=n(86896),s=n(93913),c=n.n(s),u=n(34575),d=n.n(u),f=n(2205),h=n.n(f),p=n(78585),b=n.n(p),g=n(29754),v=n.n(g),y=n(11820),m=n(39269),x=n(96840),k=n(75528),E=n(52079),w=n(84184),_=n(40569),O=n(75460),j=n(65761),Z=n(53626),S=n(73043),R=n(16797),T=n(71297),I=n(55444),N=n(6672),P=n(18195),D=n(23132),A=n(37060),C=n(4175),L=n(21094),B=n(20211),F=n(51778),q=n(87388),$=n(89906),M=n(41831);function U(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=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var z=function(e){h()(n,e);var t=U(n);function n(){return d()(this,n),t.apply(this,arguments)}return c()(n)}(y.Z);z.builtinPlugins=[m.Z,x.Z,_.Z,O.Z,j.Z,Z.Z,S.Z,T.Z,R.Z,I.Z,N.Z,P.Z,k.Z,D.Z,A.Z,C.Z,L.Z,B.Z,F.Z,E.Z,q.Z,$.Z,M.Z,w.Z],z.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const V=z;var H,W=n(28655),Y=n.n(W),G=n(38205),K=n(56822),Q=G.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(H||(H=Y()(["\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,K.L)(e,"ckeditor")})),J=n(85893);function X(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}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=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;default:return"de"}},ne=function(e){var t=e.value,n=e.onChange,r=e.contentLang,o=e.ckEditorConfig,s=(0,i.Z)().locale,c=(0,a.useRef)(!1);return(0,J.jsx)(Q,{children:(0,J.jsx)(l.CKEditor,{editor:V,config:ee({language:{ui:te(s),content:r}},o),data:t,onChange:function(e,t){if(t.plugins.get("SourceEditing").isSourceEditingMode){if(!0===c.current)return;c.current=!0}var r=t.getData();n(r)}})})};ne.defaultProps={value:"",contentLang:"de"};const re=ne},17676:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>o}),!/^(3|82)0$/.test(n.j))var r=n(83418);const o=/^(3|82)0$/.test(n.j)?null:r.Z},81251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(59713),o=n.n(r),l=n(88162),a=n(85893);function i(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}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c=function(e){var t=e.size,n=e.style,r=e.icon;return(0,a.jsx)(l.Z,s(s({},n),{},{style:{fontSize:t},spin:!0,icon:r||"circle-notch"}))}},55661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r,o,l=n(1024),a=n.n(l),i=n(34206),s=n(78958),c=n(28655),u=n.n(c),d=n(59713),f=n.n(d),h=n(27361),p=n.n(h),b=n(38205),g=n(24875),v=n(58664),y=n(7281),m=[s.Z.condition.BASE,s.Z.condition.DANGER,s.Z.condition.SUCCESS,s.Z.condition.WARNING],x=(r={},f()(r,s.Z.condition.DANGER,g.FS.color("signal.danger.text")),f()(r,s.Z.condition.SUCCESS,g.FS.color("signal.success.text")),f()(r,s.Z.condition.WARNING,g.FS.color("signal.warning.text")),f()(r,s.Z.condition.BASE,(function(e){return(0,v.HO)(p()(e.theme,"colors.paper"),1)})),r),k=b.ZP.div.withConfig({displayName:"StyledSignalBox"})(o||(o=u()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n ","\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return x[e.condition]||(0,v.HO)(p()(e.theme,"colors.paper"),1)}(e)}),y.Z.space(-1),y.Z.space(-1),g.FS.radii("radii.regular"),(function(e){var t=e.condition,n=e.theme;return"base"!==t&&"\n * {\n color: ".concat(n.colors.paper,";\n }\n ")}));k.propTypes={condition:s.Z.oneOfPropTypeAndCompletelyMapped(m,x)};var E=n(85893),w=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,E.jsxs)(k,{condition:t,children:[n&&(0,E.jsx)(i.ZP.H5,{children:n}),a().Children.map(r,(function(e){return a().cloneElement(e)})),o&&(0,E.jsx)(i.ZP.Small,{children:o})]})};w.defaultProps={condition:s.Z.condition.BASE};const _=w},28368:(e,t,n)=>{var r=n(90939);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},14293:e=>{e.exports=function(e){return null==e}},30084:(e,t,n)=>{var r=n(29932),o=n(278),l=n(1469),a=n(33448),i=n(55514),s=n(40327),c=n(79833);e.exports=function(e){return l(e)?r(e,s):a(e)?[e]:o(i(c(e)))}},66448:(e,t,n)=>{"use strict";n.d(t,{$U:()=>h,CO:()=>x,EK:()=>_,En:()=>m,FT:()=>o,IV:()=>v,Kn:()=>k,LD:()=>c,Lo:()=>S,O4:()=>r,Qm:()=>D,VZ:()=>R,Ve:()=>g,WF:()=>L,WL:()=>d,Wu:()=>j,_V:()=>Z,bh:()=>T,c4:()=>N,cc:()=>E,dO:()=>b,gV:()=>A,gm:()=>I,gy:()=>i,hL:()=>l,kF:()=>B,m$:()=>s,ou:()=>p,qh:()=>w,td:()=>O,tn:()=>C,ud:()=>f,v7:()=>y,w8:()=>u,z$:()=>a,zD:()=>P});var r="@@redux-form/",o=r+"ARRAY_INSERT",l=r+"ARRAY_MOVE",a=r+"ARRAY_POP",i=r+"ARRAY_PUSH",s=r+"ARRAY_REMOVE",c=r+"ARRAY_REMOVE_ALL",u=r+"ARRAY_SHIFT",d=r+"ARRAY_SPLICE",f=r+"ARRAY_UNSHIFT",h=r+"ARRAY_SWAP",p=r+"AUTOFILL",b=r+"BLUR",g=r+"CHANGE",v=r+"CLEAR_FIELDS",y=r+"CLEAR_SUBMIT",m=r+"CLEAR_SUBMIT_ERRORS",x=r+"CLEAR_ASYNC_ERROR",k=r+"DESTROY",E=r+"FOCUS",w=r+"INITIALIZE",_=r+"REGISTER_FIELD",O=r+"RESET",j=r+"RESET_SECTION",Z=r+"SET_SUBMIT_FAILED",S=r+"SET_SUBMIT_SUCCEEDED",R=r+"START_ASYNC_VALIDATION",T=r+"START_SUBMIT",I=r+"STOP_ASYNC_VALIDATION",N=r+"STOP_SUBMIT",P=r+"SUBMIT",D=r+"TOUCH",A=r+"UNREGISTER_FIELD",C=r+"UNTOUCH",L=r+"UPDATE_SYNC_ERRORS",B=r+"UPDATE_SYNC_WARNINGS"},883:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30084),o=n.n(r);const l=/^(201|30|535|820)$/.test(n.j)?null:function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,l=e.getIn,a=e.deleteIn,i=e.setIn;return function(s){void 0===s&&(s=t);return function t(c,u){if("]"===u[u.length-1]){var d=o()(u);return d.pop(),l(c,d.join("."))?i(c,u):c}var f=c;s(e)(c,u)&&(f=a(c,u));var h=u.lastIndexOf(".");if(h>0){var p=u.substring(0,h);if("]"!==p[p.length-1]){var b=l(f,p);if(n(b,r))return t(f,p)}}return f}}}},85300:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(37316),o=n.n(r),l=n(23560),a=n.n(l),i=n(66448),s=n(883),c=n(14892),u=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}};const d=function(e){var t,n=e.deepEqual,r=e.empty,l=e.forEach,d=e.getIn,f=e.setIn,h=e.deleteIn,p=e.fromJS,b=e.keys,g=e.size,v=e.some,y=e.splice,m=(0,s.Z)(e)(u),x=(0,s.Z)(c.Z)(u),k=function(e,t,n,r,o,l,a){var i=d(e,t+"."+n);return i||a?f(e,t+"."+n,y(i,r,o,l)):e},E=function(e,t,n,r,o,l,a){var i=d(e,t),s=c.Z.getIn(i,n);return s||a?f(e,t,c.Z.setIn(i,n,c.Z.splice(s,r,o,l))):e},w=["values","fields","submitErrors","asyncErrors"],_=function(e,t,n,o,l){var a=e,i=null!=l?r:void 0;return a=k(a,"values",t,n,o,l,!0),a=k(a,"fields",t,n,o,i),a=E(a,"syncErrors",t,n,o,void 0),a=E(a,"syncWarnings",t,n,o,void 0),a=k(a,"submitErrors",t,n,o,void 0),a=k(a,"asyncErrors",t,n,o,void 0)},O=((t={})[i.FT]=function(e,t){var n=t.meta,r=n.field,o=n.index,l=t.payload;return _(e,r,o,0,l)},t[i.hL]=function(e,t){var n=t.meta,r=n.field,o=n.from,l=n.to,a=d(e,"values."+r),i=a?g(a):0,s=e;return i&&w.forEach((function(e){var t=e+"."+r;if(d(s,t)){var n=d(s,t+"["+o+"]");s=f(s,t,y(d(s,t),o,1)),s=f(s,t,y(d(s,t),l,0,n))}})),s},t[i.z$]=function(e,t){var n=t.meta.field,r=d(e,"values."+n),o=r?g(r):0;return o?_(e,n,o-1,1):e},t[i.gy]=function(e,t){var n=t.meta.field,r=t.payload,o=d(e,"values."+n),l=o?g(o):0;return _(e,n,l,0,r)},t[i.m$]=function(e,t){var n=t.meta,r=n.field,o=n.index;return _(e,r,o,1)},t[i.LD]=function(e,t){var n=t.meta.field,r=d(e,"values."+n),o=r?g(r):0;return o?_(e,n,0,o):e},t[i.w8]=function(e,t){var n=t.meta.field;return _(e,n,0,1)},t[i.WL]=function(e,t){var n=t.meta,r=n.field,o=n.index,l=n.removeNum,a=t.payload;return _(e,r,o,l,a)},t[i.$U]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,l=n.indexB,a=e;return w.forEach((function(e){var t=d(a,e+"."+r+"["+o+"]"),n=d(a,e+"."+r+"["+l+"]");void 0===t&&void 0===n||(a=f(a,e+"."+r+"["+o+"]",n),a=f(a,e+"."+r+"["+l+"]",t))})),a},t[i.ud]=function(e,t){var n=t.meta.field,r=t.payload;return _(e,n,0,0,r)},t[i.ou]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=m(o,"asyncErrors."+n),o=m(o,"submitErrors."+n),o=f(o,"fields."+n+".autofilled",!0),o=f(o,"values."+n,r)},t[i.dO]=function(e,t){var n=t.meta,r=n.field,o=n.touch,l=t.payload,a=e;return void 0===d(a,"initial."+r)&&""===l?a=m(a,"values."+r):void 0!==l&&(a=f(a,"values."+r,l)),r===d(a,"active")&&(a=h(a,"active")),a=h(a,"fields."+r+".active"),o&&(a=f(a,"fields."+r+".touched",!0),a=f(a,"anyTouched",!0)),a},t[i.Ve]=function(e,t){var n=t.meta,r=n.field,o=n.touch,l=n.persistentSubmitErrors,i=t.payload,s=e;if(void 0===d(s,"initial."+r)&&""===i||void 0===i)s=m(s,"values."+r);else if(a()(i)){var c=d(e,"values."+r);s=f(s,"values."+r,i(c,e.values))}else s=f(s,"values."+r,i);return s=m(s,"asyncErrors."+r),l||(s=m(s,"submitErrors."+r)),s=m(s,"fields."+r+".autofilled"),o&&(s=f(s,"fields."+r+".touched",!0),s=f(s,"anyTouched",!0)),s},t[i.v7]=function(e){return h(e,"triggerSubmit")},t[i.En]=function(e){var t=e;return t=m(t,"submitErrors"),t=h(t,"error")},t[i.CO]=function(e,t){var n=t.meta.field;return h(e,"asyncErrors."+n)},t[i.IV]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,l=n.fields,a=e;l.forEach((function(t){a=m(a,"asyncErrors."+t),o||(a=m(a,"submitErrors."+t)),a=m(a,"fields."+t+".autofilled"),r||(a=h(a,"fields."+t+".touched"));var n=d(e,"initial."+t);a=n?f(a,"values."+t,n):m(a,"values."+t)}));var i=v(b(d(a,"registeredFields")),(function(e){return d(a,"fields."+e+".touched")}));return a=i?f(a,"anyTouched",!0):h(a,"anyTouched")},t[i.cc]=function(e,t){var n=t.meta.field,r=e,o=d(e,"active");return r=h(r,"fields."+o+".active"),r=f(r,"fields."+n+".visited",!0),r=f(r,"fields."+n+".active",!0),r=f(r,"active",n)},t[i.qh]=function(e,t){var o=t.payload,a=t.meta,i=a.keepDirty,s=a.keepSubmitSucceeded,c=a.updateUnregisteredFields,u=a.keepValues,h=p(o),g=r,v=d(e,"warning");v&&(g=f(g,"warning",v));var y=d(e,"syncWarnings");y&&(g=f(g,"syncWarnings",y));var m=d(e,"error");m&&(g=f(g,"error",m));var x=d(e,"syncErrors");x&&(g=f(g,"syncErrors",x));var k=d(e,"registeredFields");k&&(g=f(g,"registeredFields",k));var E=d(e,"values"),w=d(e,"initial"),_=h,O=E;if(i&&k){if(!n(_,w)){var j=function(e){var t=d(w,e),r=d(E,e);if(n(r,t)){var o=d(_,e);d(O,e)!==o&&(O=f(O,e,o))}};c||l(b(k),(function(e){return j(e)})),l(b(_),(function(e){if(void 0===d(w,e)){var t=d(_,e);O=f(O,e,t)}c&&j(e)}))}}else O=_;return u&&(l(b(E),(function(e){var t=d(E,e);O=f(O,e,t)})),l(b(w),(function(e){var t=d(w,e);_=f(_,e,t)}))),s&&d(e,"submitSucceeded")&&(g=f(g,"submitSucceeded",!0)),g=f(g,"values",O),g=f(g,"initial",_)},t[i.EK]=function(e,t){var n=t.payload,r=n.name,o=n.type,l="registeredFields['"+r+"']",a=d(e,l);if(a){var i=d(a,"count")+1;a=f(a,"count",i)}else a=p({name:r,type:o,count:1});return f(e,l,a)},t[i.td]=function(e){var t=r,n=d(e,"registeredFields");n&&(t=f(t,"registeredFields",n));var o=d(e,"initial");return o&&(t=f(t,"values",o),t=f(t,"initial",o)),t},t[i.Wu]=function(e,t){var n=t.meta.sections,r=e;n.forEach((function(t){r=m(r,"asyncErrors."+t),r=m(r,"submitErrors."+t),r=m(r,"fields."+t);var n=d(e,"initial."+t);r=n?f(r,"values."+t,n):m(r,"values."+t)}));var o=v(b(d(r,"registeredFields")),(function(e){return d(r,"fields."+e+".touched")}));return r=o?f(r,"anyTouched",!0):h(r,"anyTouched")},t[i.zD]=function(e){return f(e,"triggerSubmit",!0)},t[i.VZ]=function(e,t){var n=t.meta.field;return f(e,"asyncValidating",n||!0)},t[i.bh]=function(e){return f(e,"submitting",!0)},t[i.gm]=function(e,t){var n=t.payload,r=e;if(r=h(r,"asyncValidating"),n&&Object.keys(n).length){var l=n._error,a=o()(n,["_error"]);l&&(r=f(r,"error",l)),Object.keys(a).length&&(r=f(r,"asyncErrors",p(a)))}else r=h(r,"error"),r=h(r,"asyncErrors");return r},t[i.c4]=function(e,t){var n=t.payload,r=e;if(r=h(r,"submitting"),r=h(r,"submitFailed"),r=h(r,"submitSucceeded"),n&&Object.keys(n).length){var l=n._error,a=o()(n,["_error"]);r=l?f(r,"error",l):h(r,"error"),r=Object.keys(a).length?f(r,"submitErrors",p(a)):h(r,"submitErrors"),r=f(r,"submitFailed",!0)}else r=h(r,"error"),r=h(r,"submitErrors");return r},t[i._V]=function(e,t){var n=t.meta.fields,r=e;return r=f(r,"submitFailed",!0),r=h(r,"submitSucceeded"),r=h(r,"submitting"),n.forEach((function(e){return r=f(r,"fields."+e+".touched",!0)})),n.length&&(r=f(r,"anyTouched",!0)),r},t[i.Lo]=function(e){var t=e;return t=h(t,"submitFailed"),t=f(t,"submitSucceeded",!0)},t[i.Qm]=function(e,t){var n=t.meta.fields,r=e;return n.forEach((function(e){return r=f(r,"fields."+e+".touched",!0)})),r=f(r,"anyTouched",!0)},t[i.gV]=function(e,t){var o=t.payload,l=o.name,a=o.destroyOnUnmount,i=e,s="registeredFields['"+l+"']",u=d(i,s);if(!u)return i;var p=d(u,"count")-1;if(p<=0&&a){i=h(i,s),n(d(i,"registeredFields"),r)&&(i=h(i,"registeredFields"));var b=d(i,"syncErrors");b&&(b=x(b,l),i=c.Z.deepEqual(b,c.Z.empty)?h(i,"syncErrors"):f(i,"syncErrors",b));var g=d(i,"syncWarnings");g&&(g=x(g,l),i=c.Z.deepEqual(g,c.Z.empty)?h(i,"syncWarnings"):f(i,"syncWarnings",g)),i=m(i,"submitErrors."+l),i=m(i,"asyncErrors."+l)}else u=f(u,"count",p),i=f(i,s,u);return i},t[i.tn]=function(e,t){var n=t.meta.fields,r=e;n.forEach((function(e){return r=h(r,"fields."+e+".touched")}));var o=v(b(d(r,"registeredFields")),(function(e){return d(r,"fields."+e+".touched")}));return r=o?f(r,"anyTouched",!0):h(r,"anyTouched")},t[i.WF]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,l=e;return o?(l=f(l,"error",o),l=f(l,"syncError",!0)):(l=h(l,"error"),l=h(l,"syncError")),l=Object.keys(r).length?f(l,"syncErrors",r):h(l,"syncErrors")},t[i.kF]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,l=e;return l=o?f(l,"warning",o):h(l,"warning"),l=Object.keys(r).length?f(l,"syncWarnings",r):h(l,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var o=this;return void 0===n&&(n={}),e((function(e,l){void 0===e&&(e=r),void 0===l&&(l={type:"NONE"});var a=function(n,r){var o=d(n,r),a=t[r](o,l,d(e,r));return a!==o?f(n,r,a):n},i=o(e,l),s=l&&l.meta&&l.meta.form;return s&&!n.receiveAllFormActions?t[s]?a(i,s):i:Object.keys(t).reduce(a,i)}))},t}(function(e){return function(t,n){void 0===t&&(t=r),void 0===n&&(n={type:"NONE"});var o=n&&n.meta&&n.meta.form;if(!o||!function(e){return e&&e.type&&e.type.length>i.O4.length&&e.type.substring(0,i.O4.length)===i.O4}(n))return t;if(n.type===i.Kn&&n.meta&&n.meta.form)return n.meta.form.reduce((function(e,t){return m(e,t)}),t);var l=d(t,o),a=e(l,n);return a===l?t:f(t,o,a)}}((function(e,t){void 0===e&&(e=r);var n=O[t.type];return n?n(e,t):e})))},f=d(c.Z)},14892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});const r=function(e,t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var l=[].concat(e);return l.splice(t,n,r),l}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var i=[].concat(e);return i[t]=r,i};var o=n(30084),l=n.n(o);const a=function(e,t){if(!e)return e;var n=l()(t),r=n.length;if(r){for(var o=e,a=0;a<r&&o;++a)o=o[n[a]];return o}};var i=n(67154),s=n.n(i),c=function e(t,n,r,o){var l;if(o>=r.length)return n;var a=r[o],i=e(t&&(Array.isArray(t)?t[Number(a)]:t[a]),n,r,o+1);if(!t){var c;if(isNaN(a))return(c={})[a]=i,c;var u=[];return u[parseInt(a,10)]=i,u}if(Array.isArray(t)){var d=[].concat(t);return d[parseInt(a,10)]=i,d}return s()({},t,((l={})[a]=i,l))};const u=function(e,t,n){return c(e,n,l()(t),0)};var d=n(14293),f=n.n(d),h=n(28368),p=n.n(h),b=n(1024),g=n.n(b),v=function(e){return f()(e)||""===e||isNaN(e)},y=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!g().isValidElement(e)&&!g().isValidElement(t)&&void 0)):v(e)===v(t))};function m(e,t){if(null==e||null==t)return e;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length){if(Array.isArray(e)){if(isNaN(t))throw new Error('Must access array elements with a number, not "'+String(t)+'".');var l=Number(t);if(l<e.length){var a=m.apply(void 0,[e&&e[l]].concat(r));if(a!==e[l]){var i=[].concat(e);return i[l]=a,i}}return e}if(t in e){var c,u=m.apply(void 0,[e&&e[t]].concat(r));return e[t]===u?e:s()({},e,((c={})[t]=u,c))}return e}if(Array.isArray(e)){if(isNaN(t))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(t));var d=Number(t);if(d<e.length){var f=[].concat(e);return f.splice(d,1),f}return e}if(t in e){var h=s()({},e);return delete h[t],h}return e}const x={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:a,setIn:u,deepEqual:function(e,t){return p()(e,t,y)},deleteIn:function(e,t){return m.apply(void 0,[e].concat(l()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map((function(e){return e.name})):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:r,equals:function(e,t){return t.every((function(t){return~e.indexOf(t)}))},orderChanged:function(e,t){return t.some((function(t,n){return t!==e[n]}))},toJS:function(e){return e}}}}]);
1
+ (self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[85],{67154:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},33700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r,o,l=n(74806),a=n(50558),i=n(8128),s=n(1024),c=n(50258),u=n(37873),d=n(539),f=n(85893);const h=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,l=e.deletingInProgress,a=e.intl;(0,s.useEffect)((function(){t()}),[t]);var i;return l?r||(r=(0,f.jsx)(u.Z,{})):(0,f.jsx)(c.Z,{required:[n],loadingText:(i="client.delete.loadingText",a.formatMessage({id:i})),children:n&&(o||(o=(0,f.jsx)(d.Z,{})))})};var p={loadDialogInfo:i.sq};const b=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),p)((0,l.ZP)(h))},19456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r,o,l=n(74806),a=n(50558),i=n(8128),s=n(44012),c=n(93235),u=n(34206),d=n(45253),f=n(22892),h=n(85893);const p=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,h.jsxs)(h.Fragment,{children:[r||(r=(0,h.jsx)(f.M,{children:(0,h.jsx)(c.Z,{size:"30px"})})),o||(o=(0,h.jsx)(u.ZP.P,{children:(0,h.jsx)(s.Z,{id:"client.delete.deleteInProgress"})})),(0,h.jsx)(d.Z,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var b={doDelete:i.q1};const g=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),b)((0,l.ZP)(p))},22892:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var r,o=n(28655),l=n.n(o),a=n(38205),i=n(7281),s=a.ZP.div.withConfig({displayName:"StyledIconWrapper"})(r||(r=l()(["\n margin-bottom: ",";\n"])),i.Z.space(.2))},37873:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),!/^(201|30|377|535|820)$/.test(n.j))var r=n(19456);const o=/^(201|30|377|535|820)$/.test(n.j)?null:r.Z},539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r,o,l,a,i,s=n(74806),c=n(50558),u=n(8128),d=n(44012),f=n(34206),h=n(55661),p=n(65035),b=n(45253),g=n(96871),v=n(85893);const y=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,s=t.rootEntitiesNotDeletable,c=t.relatedDeletable,u=t.relatedNotDeletable,y=t.hasUnreadableEntities,m=e.doDelete,x=e.onCancel,k=e.navigationStrategy;return(0,v.jsxs)(v.Fragment,{children:[r||(r=(0,v.jsx)(f.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.confirmText"})})),(0,v.jsx)(b.Z,{rootEntities:n,relatedEntities:c,maxCountLink:100,navigationStrategy:k},"infopart-deletable"),Object.keys(s).length>0&&(0,v.jsxs)(g.z,{children:[o||(o=(0,v.jsx)(f.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.textNotDeletable"})})),(0,v.jsx)(b.Z,{rootEntities:s,relatedEntities:u,maxCountLink:100,navigationStrategy:k},"infopart-notdeletable")]}),y&&(l||(l=(0,v.jsx)(g.z,{children:(0,v.jsx)(h.Z,{condition:"warning",children:(0,v.jsx)(f.ZP.Span,{children:(0,v.jsx)(d.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,v.jsx)(g.z,{children:(0,v.jsxs)(g.W,{children:[(0,v.jsx)(p.Z,{onClick:m,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:a||(a=(0,v.jsx)(d.Z,{id:"client.delete.deleteButton"}))}),(0,v.jsx)(p.Z,{ink:"primary",onClick:x,children:i||(i=(0,v.jsx)(d.Z,{id:"client.delete.cancelButton"}))})]})})]})};var m={doDelete:u.q1,onCancel:u.K3};const x=(0,c.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),m)((0,s.ZP)(y))},96871:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,z:()=>u});var r,o,l=n(28655),a=n.n(l),i=n(38205),s=n(7281),c=n(58129),u=i.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(r||(r=a()(["\n padding-top: ",";\n"])),s.Z.space(.6)),d=i.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=a()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),c.Z)},45253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(319),o=n.n(r),l=n(63038),a=n.n(l),i=n(28655),s=n.n(i),c=n(1024),u=n.n(c),d=n(38205);if(!/^(201|30|377|535|820)$/.test(n.j))var f=n(34206);if(!/^(201|30|377|535|820)$/.test(n.j))var h=n(13535);var p,b,g=n(85893),v=d.ZP.span.withConfig({displayName:"NonBreakingText"})(p||(p=s()(["\n white-space: nowrap;\n"])));const y=/^(201|30|377|535|820)$/.test(n.j)?null:function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,l=e.navigationStrategy;return(0,g.jsxs)(f.ZP.Span,{children:[(0,g.jsx)(f.ZP.B,{children:Object.entries(t).map((function(e){var t=a()(e,2),n=t[0],r=t[1];return(0,g.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&l.ListLink?(0,g.jsx)(l.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,g.jsx)(f.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,g.jsxs)(g.Fragment,{children:[b||(b=(0,g.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],a=[].concat(o()(t.keys),o()(t.keysOtherBu)).length,i=t.keys.length>0&&l.ListLink?(0,g.jsx)(l.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:a}):(0,g.jsx)(f.ZP.Span,{children:a}),s=(0,g.jsx)(h.Z,{relatedEntity:t,maxCountLink:r,children:i});return(0,g.jsx)(u().Fragment,{children:(0,g.jsxs)(v,{children:[t.entityLabel," (",s,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})}},13535:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),!/^(201|30|377|535|820)$/.test(n.j))var r=n(44012);if(!/^(201|30|377|535|820)$/.test(n.j))var o=n(34206);if(!/^(201|30|377|535|820)$/.test(n.j))var l=n(76791);var a,i=n(85893);const s=/^(201|30|377|535|820)$/.test(n.j)?null:function(e){var t=e.relatedEntity,n=e.children,s=e.maxCountLink;if(t.keys.length<s&&0===t.keysOtherBu.length)return n;var c=(0,i.jsxs)(i.Fragment,{children:[t.keys.length>s&&(a||(a=(0,i.jsx)(o.ZP.P,{children:(0,i.jsx)(r.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,i.jsx)(o.ZP.P,{children:(0,i.jsx)(r.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,i.jsx)(l.Z,{content:c,placement:"top",children:n})}},12750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>le});var r=n(45697),o=n.n(r),l=n(50600),a=n(87533),i=n(19241),s=n(27023),c=n(73665);const u=n(33700).Z;var d,f=n(59713),h=n.n(f),p=n(81770),b=n(8128),g=(d={},h()(d,b.uT,p.Z.singleTransferReducer("dialogInfo")),h()(d,b.Yq,p.Z.singleTransferReducer("entitiesToDelete")),h()(d,b.mT,p.Z.singleTransferReducer("deletingInProgress")),d),v={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var y=n(319),m=n.n(y),x=n(63038),k=n.n(x),E=n(87757),w=n.n(E),_=n(34857),O=n(81719),j=n(27361),Z=n.n(j);function S(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}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T="DELETABLE",I=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,l=r.entityLabel,a=r.key;if(a.includes("/")){var i=a.split("/"),s=k()(i,2),c=s[0],u=s[1];return R(R({},e),{},h()({},c,{entityLabel:l,keys:[].concat(m()(Z()(e,[c,"keys"],[])),m()(n?[u]:[]))}))}return R(R({},e),{},h()({},o,{entityLabel:l,keys:[].concat(m()(Z()(e,[o,"keys"],[])),m()(n?[a]:[]))}))},N=function(e){return e.rootEntity.deleteStatus===T&&!e.affectedEntities.find((function(e){return e.deleteStatus!==T}))},P=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=N(n),o=r?"relatedDeletable":"relatedNotDeletable";return R(R(R({},e),{},{rootEntitiesDeletable:I(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:I(e.rootEntitiesNotDeletable,n)}),{},h()({},o,function(e,t,n,r){return R({},t.affectedEntities.reduce((function(e,t){return R(R({},e),n||t.deleteStatus!==T?h()({},t.entityName,R(R({},Z()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(m()(Z()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(m()(Z()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),R({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},D=function(e){var t=e.entitiesToDelete;return{entityName:Z()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(m()(e),m()(N(t)?[t.rootEntity.key]:[]))}),[])}},A=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),C=(o().shape({rootEntitiesDeletable:o().objectOf(A).isRequired,rootEntitiesNotDeletable:o().objectOf(A).isRequired,relatedDeletable:o().objectOf(A).isRequired,relatedNotDeletable:o().objectOf(A).isRequired,hasUnreadableEntities:o().bool}),w().mark(V)),L=w().mark(H),B=w().mark(W),F=w().mark(Y),q=w().mark(G),$=w().mark(K),M=function(e){return e.input},U=function(e){return e.intl.messages},z=function(e){return e.del.entitiesToDelete};function V(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,_.Ys)(M);case 2:return e=r.sent,t=e.selection,r.next=6,(0,_.RE)(c.Z.getEntities,t,O.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),C)}function H(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,_.Ys)(M);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),L)}function W(){var e,t,n,r,o,l,a,i;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,_.RE)(V);case 2:return e=s.sent,s.next=5,(0,_.RE)(H);case 5:return t=s.sent,s.next=8,(0,_.$6)([(0,_.RE)(O.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,_.RE)(O.Z.fetchPrincipal)]);case 8:return n=s.sent,r=k()(n,2),o=r[0],l=r[1],s.next=14,(0,_.RE)(P,o.body,l.currentBusinessUnit.id);case 14:return a=s.sent,s.next=17,(0,_.gz)(b.ik(a));case 17:return s.next=19,(0,_.RE)(D,o.body);case 19:return i=s.sent,s.next=22,(0,_.gz)(b.OJ(i));case 22:case"end":return s.stop()}}),B)}function Y(){var e,t,n,r,o,l,a;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,_.Ys)(z);case 2:return e=s.sent,s.next=5,(0,_.gz)(b.T3(!0));case 5:return s.next=7,(0,_.RE)(H);case 7:return t=s.sent,s.next=10,(0,_.RE)(O.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedStatusCodes:[409]});case 10:return n=s.sent,s.next=13,(0,_.Ys)(U);case 13:if(r=s.sent,!n.ok){s.next=22;break}return o=n.body,l=Object.keys(o.deletedEntities).reduce((function(e,t){return[].concat(m()(e),m()(o.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:l}}],s.next=20,(0,_.gz)(i.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:s.next=29;break;case 22:if(409!==n.status||!n.body.information){s.next=27;break}return s.next=25,(0,_.gz)(i.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:return s.next=29,(0,_.gz)(i.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 29:case"end":return s.stop()}}),F)}function G(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.gz)(i.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),q)}function K(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.$6)([(0,_.Fm)(b.qD,W),(0,_.Fm)(b.lB,Y),(0,_.Fm)(b.DV,G)]);case 2:case"end":return e.stop()}}),$)}const Q={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=g[t.type];return n?n(e,t):e}};var J,X=[K],ee=n(85893),te="delete",ne=["onSuccess","onCancel","onError","emitAction"],re=function(e,t,n,r){var o=J||(J=(0,ee.jsx)(u,{})),c=a.Z.createStore(Q,X,t,te);l.Z.addToStore(c,(function(e){return e.input.emitAction}));var d=!n.emitAction;return s.Z.addToStore(c,d),i.Z.addToStore(c,(function(e){return a.Z.getEvents(ne,e.input)})),a.Z.createApp(te,o,c,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",te]})};a.Z.registerAppInRegistry(te,re);var oe=function(e){return a.Z.useApp({initApp:re,props:e,packageName:te,externalEvents:ne}).component};oe.propTypes={selection:c.Z.propType.isRequired,customDeleteEndpoint:o().string};const le=oe;a.Z.createBundleableApp(te,re,oe)},8128:(e,t,n)=>{"use strict";n.d(t,{DV:()=>i,K3:()=>h,OJ:()=>p,T3:()=>f,Yq:()=>s,ik:()=>u,lB:()=>l,mT:()=>a,q1:()=>d,qD:()=>r,sq:()=>c,uT:()=>o});var r="root/LOAD_DIALOG_INFO",o="delete/SET_DELETE_DIALOG_INFO",l="delete/DO_DELETE",a="delete/SET_DELETING_IN_PROGRESS",i="delete/ON_CANCEL",s="delete/SET_ENTITIES_TO_DELETE",c=function(){return{type:r}},u=function(e){return{type:o,payload:{dialogInfo:e}}},d=function(){return{type:l}},f=function(e){return{type:a,payload:{deletingInProgress:e}}},h=function(){return{type:i}},p=function(e){return{type:s,payload:{entitiesToDelete:e}}}},73665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(45697),o=n.n(r);const l={ID:"ID",QUERY:"QUERY"},a=o().shape({entityName:o().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===l.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===l.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o().oneOf(Object.keys(l)).isRequired,count:o().number});var i=n(59713),s=n.n(i),c=n(87757),u=n.n(c),d=n(34857),f=n(44759),h=u().mark(v);function p(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}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=1e5;function v(e,t){var n,r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.QUERY){o.next=9;break}return o.next=4,(0,d.RE)(t,e.entityName,b(b({},e.query),{},{limit:g}));case 4:if(!((r=o.sent).length>g)){o.next=8;break}return o.next=8,(0,d.RE)(f.Z.logError,"Selected records exceed limit of ".concat(g));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),h)}const y={getEntities:v,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:a,selectionTypes:l}},30919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>we});var r=n(63038),o=n.n(r),l=n(28655),a=n.n(l),i=n(22085),s=n.n(i),c=(n(66245),n(56544)),u=n(7197),d=n(81272),f=n(82341),h=n(97595),p=n(66679),b=n(38794),g=n(12964),v=n(27361),y=n.n(v),m=n(14293),x=n.n(m),k=n(13218),E=n.n(k),w=n(47037),_=n.n(w),O=n(1024),j=n(38205),Z=(n(36976),n(92194),n(2565),n(8821),n(71083),n(42061),n(74576),n(82454),n(55872),n(58119),n(64886)),S=n(93913),R=n.n(S),T=n(34575),I=n.n(T),N=n(2205),P=n.n(N),D=n(78585),A=n.n(D),C=n(29754),L=n.n(C),B=(n(51500),n(1469)),F=n.n(B),q=n(30236),$=n.n(q),M=n(72049);function U(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}const z=function(e){return function(t){P()(r,t);var n=U(r);function r(){var t;I()(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(M.wk.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],l={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(M.Gn.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(M._O.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(M.HZ.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(M.V5.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=$()(t.$rules,l,(function(e,t){return F()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return R()(r)}(s().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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var H=function(e){P()(n,e);var t=V(n);function n(){var e;I()(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 R()(n)}(s().require("ace/mode/text_highlight_rules").TextHighlightRules),W=function(e){P()(n,e);var t=V(n);function n(){var e;I()(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 l in e.$rules)e.$rules[l].unshift.apply(e.$rules[l],o);e.embedRules(H,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(z(),"tql-",a,["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=$()(e.$rules,i,(function(e,t){return F()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return R()(n)}(s().require("ace/mode/html_highlight_rules").HtmlHighlightRules),Y=n(68551),G=n.n(Y),K=n(319),Q=n.n(K),J=s().require("ace/token_iterator").TokenIterator,X=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ee=function(e,t){return X(e.getCurrentToken())===t},te=function(e){if(ee(e,"model")&&e.stepBackward(),(ee(e,"field")||ee(e,"relation"))&&e.stepBackward(),!ee(e,"chaining"))return null;if(e.stepBackward(),ee(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},ne=function(e,t){for(;!ee(e,t);)if(!e.stepBackward())return!1;return!0},re=function(e,t){return ee(e,"rparen")?1:t>0&&ee(e,"lparen")?(e.stepBackward(),-1):0},oe=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&ee(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat(Q()(ae(e))):[]}if(ee(e,"order_by")){if(ne(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=re(e,t),!e.stepBackward())return null}return null},le=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},ae=function(e){return le(e,te)},ie=function(e){return le(e,oe)},se=1e3,ce=function(e,t,n){var r=function(e,t){if(t){var n=ie(e());return{baseModel:t,modelScope:G()(n).slice(0)}}var r=ie(e()),o=G()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,l=r.modelScope;if(o){var a=ae(e()),i=[].concat(Q()(l),Q()(a)).map((function(e){return"rel".concat(e)}));(function(e){var t=G()(e),n=t[0],r=t.slice(1);return(0,Z.w)(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(Z.c).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat(Q()(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}))),Q()(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(Q()(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:se}}));t(null,n)})).catch((function(e){return t(e)}))}},ue=function(e,t){return t?"".concat(e," (").concat(t,")"):e},de=function(e){return(0,Z.w)("entities").then(Z.c).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:ue(t,n),value:t,score:se}}));e(null,n)})).catch((function(t){return e(t)}))},fe=function(){return M.wk.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const he=function(e){return{getCompletions:function(t,n,r,o,l){var a=function(){return new J(n,r.row,r.column)},i=a(),s=i.getCurrentToken(),c=i.stepBackward()?i.getCurrentToken():null;switch(X(s)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ce(a,l,e);break;case"where":case"conjunction":ce(a,l,e),l(null,fe());break;case"nice_function":l(null,fe());break;case"find":de(l);break;case"type":case"tocco_placeholder":case"comparison":l(null,M.V5.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),l(null,M._O.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ce(a,l,e),c&&"relation"!==X(c)&&de(l);break;case null:e&&ce(a,l,e),l(null,fe())}}}};function pe(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var be=function(e){P()(n,e);var t=pe(n);function n(){var e;return I()(this,n),(e=t.call(this)).HighlightRules=W,e.completer=he(),e}return R()(n)}(s().require("ace/mode/ftl").Mode);function ge(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=L()(e);if(t){var o=L()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var ve,ye=function(e){P()(n,e);var t=ge(n);function n(e){var r,o=e.implicitModelName;return I()(this,n),(r=t.call(this)).HighlightRules=z(o),r.completer=he(o),r.snippedIdField=null,r}return R()(n)}(s().require("ace/mode/text").Mode),me=n(85893),xe=j.ZP.div.withConfig({displayName:"StyledEditor"})(ve||(ve=a()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ke={groovy:function(){return new u.Mode},html:function(){return new d.Mode},xml:function(){return new g.Mode},properties:function(){return new p.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new be},freemarkermixed:function(){return new be},ftl:function(){return new be},tql:function(e){return new ye(e)},less:function(){return new h.Mode},drools:function(){return new c.Mode},text:function(){return new b.Mode}},Ee=function(e,t){var n=t.mode,r=t.theme,l=t.showGutter,a=t.editorOptions,i=void 0===a?{}:a;(function(e){return _()(e)?Promise.resolve(e):E()(e)?(0,Z.w)("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(Z.c).then((function(e){return y()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return y()(ke,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(r)),Object.entries(i).forEach((function(t){var n=o()(t,2),r=n[0],l=n[1];e.setOption(r,l)})),e.renderer.setShowGutter(l),e.resize()};const we=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,l=e.onChange,a=e.showGutter,i=void 0===a||a,c=e.editorOptions,u=void 0===c?{}:c,d=e.implicitModel,f=(0,O.useRef)(null),h=(0,O.useRef)(null),p=(0,O.useMemo)((function(){return{mode:t,theme:r,showGutter:i,editorOptions:u,implicitModel:d}}),[t,r,i,u,d]);return(0,O.useEffect)((function(){var e=s().edit(f.current);return e.getSession().setValue(o||""),e.on("change",(function(){return l(e.getValue())})),Ee(e,p),h.current=e,function(){return e.destroy()}}),[]),(0,O.useEffect)((function(){h.current&&Ee(h.current,p)}),[p]),(0,O.useEffect)((function(){h.current&&!x()(o)&&o!==h.current.getValue()&&h.current.getSession().setValue(o)}),[o]),(0,me.jsx)(xe,{ref:f})}},72049:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>r,HZ:()=>o,V5:()=>l,_O:()=>a,wk:()=>i});var r=/^(3|82)0$/.test(n.j)?null:["==","!=","<=",">=","<",">","~="],o=/^(3|82)0$/.test(n.j)?null:["true","false","null"],l=/^(3|82)0$/.test(n.j)?null:["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],a=/^(3|82)0$/.test(n.j)?null:["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],i=/^(3|82)0$/.test(n.j)?null:["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"]},64886:(e,t,n)=>{"use strict";if(n.d(t,{c:()=>l,w:()=>o}),!/^(3|82)0$/.test(n.j))var r=n(54159);var o=function(e){return r.Z.executeRequest("rest/".concat(e))},l=function(e){return 200===e.status?e.json():null}},48078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(52817),o=n(41609),l=n.n(o),a=n(41291),i=n(85893);const s=function(e){var t=e.value,n=e.breakWords,o=(0,r._)(t),s=l()(o)?t:o.formatInternational();return(0,i.jsx)(a.Z,{href:"tel:".concat(t),target:"_blank",onClick:function(e){return e.stopPropagation()},label:s,breakWords:n})}},83418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=n(59713),o=n.n(r),l=n(72757),a=n(1024),i=n(86896),s=n(93913),c=n.n(s),u=n(34575),d=n.n(u),f=n(2205),h=n.n(f),p=n(78585),b=n.n(p),g=n(29754),v=n.n(g),y=n(11820),m=n(39269),x=n(96840),k=n(75528),E=n(52079),w=n(84184),_=n(40569),O=n(75460),j=n(65761),Z=n(53626),S=n(73043),R=n(16797),T=n(71297),I=n(55444),N=n(6672),P=n(18195),D=n(23132),A=n(37060),C=n(4175),L=n(21094),B=n(20211),F=n(51778),q=n(87388),$=n(89906),M=n(41831);function U(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=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var z=function(e){h()(n,e);var t=U(n);function n(){return d()(this,n),t.apply(this,arguments)}return c()(n)}(y.Z);z.builtinPlugins=[m.Z,x.Z,_.Z,O.Z,j.Z,Z.Z,S.Z,T.Z,R.Z,I.Z,N.Z,P.Z,k.Z,D.Z,A.Z,C.Z,L.Z,B.Z,F.Z,E.Z,q.Z,$.Z,M.Z,w.Z],z.defaultConfig={toolbar:{items:["bold","italic","underline","strikethrough","removeFormat","|","heading","fontFamily","fontSize","fontColor","|","numberedList","bulletedList","|","link","|","insertTable","|","undo","redo","|","sourceEditing"]},language:{ui:"de",content:"de"},link:{addTargetToExternalLinks:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"},{model:"normal",view:"div",title:"Normal (DIV)",class:"ck-heading_normal"}]},fontFamily:{options:["default","Arial,Helvetica,sans-serif","Comic Sans MS,cursive","Courier New,Courier,monospace","Georgia,serif","Lucida Sans Unicode,Lucida Grande,sans-serif","Tahoma,Geneva,sans-serif","Times New Roman,Times,serif","Trebuchet MS,Helvetica,sans-serif","Verdana,Geneva,sans-serif"],supportAllValues:!0},fontSize:{options:[8,10,11,12,"default",15,16,17,19,22,24,26,29,32,36,37,48,64],supportAllValues:!0},fontColor:{columns:10,colors:[{color:"hsl(6, 54%, 95%)",label:" "},{color:"hsl(6, 54%, 89%)",label:" "},{color:"hsl(6, 54%, 78%)",label:" "},{color:"hsl(6, 54%, 68%)",label:" "},{color:"hsl(6, 54%, 57%)",label:" "},{color:"hsl(6, 63%, 46%)",label:" "},{color:"hsl(6, 63%, 41%)",label:" "},{color:"hsl(6, 63%, 35%)",label:" "},{color:"hsl(6, 63%, 29%)",label:" "},{color:"hsl(6, 63%, 24%)",label:" "},{color:"hsl(6, 78%, 96%)",label:" "},{color:"hsl(6, 78%, 91%)",label:" "},{color:"hsl(6, 78%, 83%)",label:" "},{color:"hsl(6, 78%, 74%)",label:" "},{color:"hsl(6, 78%, 66%)",label:" "},{color:"hsl(6, 78%, 57%)",label:" "},{color:"hsl(6, 59%, 50%)",label:" "},{color:"hsl(6, 59%, 43%)",label:" "},{color:"hsl(6, 59%, 37%)",label:" "},{color:"hsl(6, 59%, 30%)",label:" "},{color:"hsl(283, 39%, 95%)",label:" "},{color:"hsl(283, 39%, 91%)",label:" "},{color:"hsl(283, 39%, 81%)",label:" "},{color:"hsl(283, 39%, 72%)",label:" "},{color:"hsl(283, 39%, 63%)",label:" "},{color:"hsl(283, 39%, 53%)",label:" "},{color:"hsl(283, 34%, 47%)",label:" "},{color:"hsl(283, 34%, 40%)",label:" "},{color:"hsl(283, 34%, 34%)",label:" "},{color:"hsl(283, 34%, 28%)",label:" "},{color:"hsl(282, 39%, 95%)",label:" "},{color:"hsl(282, 39%, 89%)",label:" "},{color:"hsl(282, 39%, 79%)",label:" "},{color:"hsl(282, 39%, 68%)",label:" "},{color:"hsl(282, 39%, 58%)",label:" "},{color:"hsl(282, 44%, 47%)",label:" "},{color:"hsl(282, 44%, 42%)",label:" "},{color:"hsl(282, 44%, 36%)",label:" "},{color:"hsl(282, 44%, 30%)",label:" "},{color:"hsl(282, 44%, 25%)",label:" "},{color:"hsl(204, 51%, 94%)",label:" "},{color:"hsl(204, 51%, 89%)",label:" "},{color:"hsl(204, 51%, 78%)",label:" "},{color:"hsl(204, 51%, 67%)",label:" "},{color:"hsl(204, 51%, 55%)",label:" "},{color:"hsl(204, 64%, 44%)",label:" "},{color:"hsl(204, 64%, 39%)",label:" "},{color:"hsl(204, 64%, 34%)",label:" "},{color:"hsl(204, 64%, 28%)",label:" "},{color:"hsl(204, 64%, 23%)",label:" "},{color:"hsl(204, 70%, 95%)",label:" "},{color:"hsl(204, 70%, 91%)",label:" "},{color:"hsl(204, 70%, 81%)",label:" "},{color:"hsl(204, 70%, 72%)",label:" "},{color:"hsl(204, 70%, 63%)",label:" "},{color:"hsl(204, 70%, 53%)",label:" "},{color:"hsl(204, 62%, 47%)",label:" "},{color:"hsl(204, 62%, 40%)",label:" "},{color:"hsl(204, 62%, 34%)",label:" "},{color:"hsl(204, 62%, 28%)",label:" "},{color:"hsl(168, 55%, 94%)",label:" "},{color:"hsl(168, 55%, 88%)",label:" "},{color:"hsl(168, 55%, 77%)",label:" "},{color:"hsl(168, 55%, 65%)",label:" "},{color:"hsl(168, 55%, 54%)",label:" "},{color:"hsl(168, 76%, 42%)",label:" "},{color:"hsl(168, 76%, 37%)",label:" "},{color:"hsl(168, 76%, 32%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 22%)",label:" "},{color:"hsl(168, 42%, 94%)",label:" "},{color:"hsl(168, 42%, 87%)",label:" "},{color:"hsl(168, 42%, 74%)",label:" "},{color:"hsl(168, 42%, 61%)",label:" "},{color:"hsl(168, 45%, 49%)",label:" "},{color:"hsl(168, 76%, 36%)",label:" "},{color:"hsl(168, 76%, 31%)",label:" "},{color:"hsl(168, 76%, 27%)",label:" "},{color:"hsl(168, 76%, 23%)",label:" "},{color:"hsl(168, 76%, 19%)",label:" "},{color:"hsl(145, 45%, 94%)",label:" "},{color:"hsl(145, 45%, 88%)",label:" "},{color:"hsl(145, 45%, 77%)",label:" "},{color:"hsl(145, 45%, 65%)",label:" "},{color:"hsl(145, 45%, 53%)",label:" "},{color:"hsl(145, 63%, 42%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 32%)",label:" "},{color:"hsl(145, 63%, 27%)",label:" "},{color:"hsl(145, 63%, 22%)",label:" "},{color:"hsl(145, 61%, 95%)",label:" "},{color:"hsl(145, 61%, 90%)",label:" "},{color:"hsl(145, 61%, 80%)",label:" "},{color:"hsl(145, 61%, 69%)",label:" "},{color:"hsl(145, 61%, 59%)",label:" "},{color:"hsl(145, 63%, 49%)",label:" "},{color:"hsl(145, 63%, 43%)",label:" "},{color:"hsl(145, 63%, 37%)",label:" "},{color:"hsl(145, 63%, 31%)",label:" "},{color:"hsl(145, 63%, 25%)",label:" "},{color:"hsl(48, 89%, 95%)",label:" "},{color:"hsl(48, 89%, 90%)",label:" "},{color:"hsl(48, 89%, 80%)",label:" "},{color:"hsl(48, 89%, 70%)",label:" "},{color:"hsl(48, 89%, 60%)",label:" "},{color:"hsl(48, 89%, 50%)",label:" "},{color:"hsl(48, 88%, 44%)",label:" "},{color:"hsl(48, 88%, 38%)",label:" "},{color:"hsl(48, 88%, 32%)",label:" "},{color:"hsl(48, 88%, 26%)",label:" "},{color:"hsl(37, 90%, 95%)",label:" "},{color:"hsl(37, 90%, 90%)",label:" "},{color:"hsl(37, 90%, 80%)",label:" "},{color:"hsl(37, 90%, 71%)",label:" "},{color:"hsl(37, 90%, 61%)",label:" "},{color:"hsl(37, 90%, 51%)",label:" "},{color:"hsl(37, 86%, 45%)",label:" "},{color:"hsl(37, 86%, 39%)",label:" "},{color:"hsl(37, 86%, 33%)",label:" "},{color:"hsl(37, 86%, 27%)",label:" "},{color:"hsl(28, 80%, 95%)",label:" "},{color:"hsl(28, 80%, 90%)",label:" "},{color:"hsl(28, 80%, 81%)",label:" "},{color:"hsl(28, 80%, 71%)",label:" "},{color:"hsl(28, 80%, 61%)",label:" "},{color:"hsl(28, 80%, 52%)",label:" "},{color:"hsl(28, 74%, 46%)",label:" "},{color:"hsl(28, 74%, 39%)",label:" "},{color:"hsl(28, 74%, 33%)",label:" "},{color:"hsl(28, 74%, 27%)",label:" "},{color:"hsl(24, 71%, 94%)",label:" "},{color:"hsl(24, 71%, 88%)",label:" "},{color:"hsl(24, 71%, 77%)",label:" "},{color:"hsl(24, 71%, 65%)",label:" "},{color:"hsl(24, 71%, 53%)",label:" "},{color:"hsl(24, 100%, 41%)",label:" "},{color:"hsl(24, 100%, 36%)",label:" "},{color:"hsl(24, 100%, 31%)",label:" "},{color:"hsl(24, 100%, 26%)",label:" "},{color:"hsl(24, 100%, 22%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 99%)",label:" "},{color:"hsl(192, 15%, 97%)",label:" "},{color:"hsl(192, 15%, 96%)",label:" "},{color:"hsl(192, 15%, 95%)",label:" "},{color:"hsl(192, 15%, 94%)",label:" "},{color:"hsl(192, 5%, 82%)",label:" "},{color:"hsl(192, 3%, 71%)",label:" "},{color:"hsl(192, 2%, 60%)",label:" "},{color:"hsl(192, 1%, 49%)",label:" "},{color:"hsl(204, 8%, 98%)",label:" "},{color:"hsl(204, 8%, 95%)",label:" "},{color:"hsl(204, 8%, 90%)",label:" "},{color:"hsl(204, 8%, 86%)",label:" "},{color:"hsl(204, 8%, 81%)",label:" "},{color:"hsl(204, 8%, 76%)",label:" "},{color:"hsl(204, 5%, 67%)",label:" "},{color:"hsl(204, 4%, 58%)",label:" "},{color:"hsl(204, 3%, 49%)",label:" "},{color:"hsl(204, 3%, 40%)",label:" "},{color:"hsl(184, 9%, 96%)",label:" "},{color:"hsl(184, 9%, 92%)",label:" "},{color:"hsl(184, 9%, 85%)",label:" "},{color:"hsl(184, 9%, 77%)",label:" "},{color:"hsl(184, 9%, 69%)",label:" "},{color:"hsl(184, 9%, 62%)",label:" "},{color:"hsl(184, 6%, 54%)",label:" "},{color:"hsl(184, 5%, 47%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 32%)",label:" "},{color:"hsl(184, 6%, 95%)",label:" "},{color:"hsl(184, 6%, 91%)",label:" "},{color:"hsl(184, 6%, 81%)",label:" "},{color:"hsl(184, 6%, 72%)",label:" "},{color:"hsl(184, 6%, 62%)",label:" "},{color:"hsl(184, 6%, 53%)",label:" "},{color:"hsl(184, 5%, 46%)",label:" "},{color:"hsl(184, 5%, 40%)",label:" "},{color:"hsl(184, 5%, 34%)",label:" "},{color:"hsl(184, 5%, 27%)",label:" "},{color:"hsl(210, 12%, 93%)",label:" "},{color:"hsl(210, 12%, 86%)",label:" "},{color:"hsl(210, 12%, 71%)",label:" "},{color:"hsl(210, 12%, 57%)",label:" "},{color:"hsl(210, 15%, 43%)",label:" "},{color:"hsl(210, 29%, 29%)",label:" "},{color:"hsl(210, 29%, 25%)",label:" "},{color:"hsl(210, 29%, 22%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 15%)",label:" "},{color:"hsl(210, 9%, 92%)",label:" "},{color:"hsl(210, 9%, 85%)",label:" "},{color:"hsl(210, 9%, 70%)",label:" "},{color:"hsl(210, 9%, 55%)",label:" "},{color:"hsl(210, 14%, 39%)",label:" "},{color:"hsl(210, 29%, 24%)",label:" "},{color:"hsl(210, 29%, 21%)",label:" "},{color:"hsl(210, 29%, 18%)",label:" "},{color:"hsl(210, 29%, 16%)",label:" "},{color:"hsl(210, 29%, 13%)",label:" "}]}};const V=z;var H,W=n(28655),Y=n.n(W),G=n(38205),K=n(56822),Q=G.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(H||(H=Y()(["\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,K.L)(e,"ckeditor")})),J=n(85893);function X(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}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=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;default:return"de"}},ne=function(e){var t=e.value,n=e.onChange,r=e.contentLang,o=e.ckEditorConfig,s=(0,i.Z)().locale,c=(0,a.useRef)(!1);return(0,J.jsx)(Q,{children:(0,J.jsx)(l.CKEditor,{editor:V,config:ee({language:{ui:te(s),content:r}},o),data:t,onChange:function(e,t){if(t.plugins.get("SourceEditing").isSourceEditingMode){if(!0===c.current)return;c.current=!0}var r=t.getData();n(r)}})})};ne.defaultProps={value:"",contentLang:"de"};const re=ne},17676:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>o}),!/^(3|82)0$/.test(n.j))var r=n(83418);const o=/^(3|82)0$/.test(n.j)?null:r.Z},81251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(59713),o=n.n(r),l=n(88162),a=n(85893);function i(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}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c=function(e){var t=e.size,n=e.style,r=e.icon;return(0,a.jsx)(l.Z,s(s({},n),{},{style:{fontSize:t},spin:!0,icon:r||"circle-notch"}))}},55661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r,o,l=n(1024),a=n.n(l),i=n(34206),s=n(78958),c=n(28655),u=n.n(c),d=n(59713),f=n.n(d),h=n(27361),p=n.n(h),b=n(38205),g=n(24875),v=n(58664),y=n(7281),m=[s.Z.condition.BASE,s.Z.condition.DANGER,s.Z.condition.SUCCESS,s.Z.condition.WARNING],x=(r={},f()(r,s.Z.condition.DANGER,g.FS.color("signal.danger.text")),f()(r,s.Z.condition.SUCCESS,g.FS.color("signal.success.text")),f()(r,s.Z.condition.WARNING,g.FS.color("signal.warning.text")),f()(r,s.Z.condition.BASE,(function(e){return(0,v.HO)(p()(e.theme,"colors.paper"),1)})),r),k=b.ZP.div.withConfig({displayName:"StyledSignalBox"})(o||(o=u()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n ","\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return x[e.condition]||(0,v.HO)(p()(e.theme,"colors.paper"),1)}(e)}),y.Z.space(-1),y.Z.space(-1),g.FS.radii("radii.regular"),(function(e){var t=e.condition,n=e.theme;return"base"!==t&&"\n * {\n color: ".concat(n.colors.paper,";\n }\n ")}));k.propTypes={condition:s.Z.oneOfPropTypeAndCompletelyMapped(m,x)};var E=n(85893),w=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,E.jsxs)(k,{condition:t,children:[n&&(0,E.jsx)(i.ZP.H5,{children:n}),a().Children.map(r,(function(e){return a().cloneElement(e)})),o&&(0,E.jsx)(i.ZP.Small,{children:o})]})};w.defaultProps={condition:s.Z.condition.BASE};const _=w},28368:(e,t,n)=>{var r=n(90939);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},14293:e=>{e.exports=function(e){return null==e}},30084:(e,t,n)=>{var r=n(29932),o=n(278),l=n(1469),a=n(33448),i=n(55514),s=n(40327),c=n(79833);e.exports=function(e){return l(e)?r(e,s):a(e)?[e]:o(i(c(e)))}},66448:(e,t,n)=>{"use strict";n.d(t,{$U:()=>h,CO:()=>x,EK:()=>_,En:()=>m,FT:()=>o,IV:()=>v,Kn:()=>k,LD:()=>c,Lo:()=>S,O4:()=>r,Qm:()=>D,VZ:()=>R,Ve:()=>g,WF:()=>L,WL:()=>d,Wu:()=>j,_V:()=>Z,bh:()=>T,c4:()=>N,cc:()=>E,dO:()=>b,gV:()=>A,gm:()=>I,gy:()=>i,hL:()=>l,kF:()=>B,m$:()=>s,ou:()=>p,qh:()=>w,td:()=>O,tn:()=>C,ud:()=>f,v7:()=>y,w8:()=>u,z$:()=>a,zD:()=>P});var r="@@redux-form/",o=r+"ARRAY_INSERT",l=r+"ARRAY_MOVE",a=r+"ARRAY_POP",i=r+"ARRAY_PUSH",s=r+"ARRAY_REMOVE",c=r+"ARRAY_REMOVE_ALL",u=r+"ARRAY_SHIFT",d=r+"ARRAY_SPLICE",f=r+"ARRAY_UNSHIFT",h=r+"ARRAY_SWAP",p=r+"AUTOFILL",b=r+"BLUR",g=r+"CHANGE",v=r+"CLEAR_FIELDS",y=r+"CLEAR_SUBMIT",m=r+"CLEAR_SUBMIT_ERRORS",x=r+"CLEAR_ASYNC_ERROR",k=r+"DESTROY",E=r+"FOCUS",w=r+"INITIALIZE",_=r+"REGISTER_FIELD",O=r+"RESET",j=r+"RESET_SECTION",Z=r+"SET_SUBMIT_FAILED",S=r+"SET_SUBMIT_SUCCEEDED",R=r+"START_ASYNC_VALIDATION",T=r+"START_SUBMIT",I=r+"STOP_ASYNC_VALIDATION",N=r+"STOP_SUBMIT",P=r+"SUBMIT",D=r+"TOUCH",A=r+"UNREGISTER_FIELD",C=r+"UNTOUCH",L=r+"UPDATE_SYNC_ERRORS",B=r+"UPDATE_SYNC_WARNINGS"},883:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30084),o=n.n(r);const l=/^(201|30|535|820)$/.test(n.j)?null:function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,l=e.getIn,a=e.deleteIn,i=e.setIn;return function(s){void 0===s&&(s=t);return function t(c,u){if("]"===u[u.length-1]){var d=o()(u);return d.pop(),l(c,d.join("."))?i(c,u):c}var f=c;s(e)(c,u)&&(f=a(c,u));var h=u.lastIndexOf(".");if(h>0){var p=u.substring(0,h);if("]"!==p[p.length-1]){var b=l(f,p);if(n(b,r))return t(f,p)}}return f}}}},85300:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(37316),o=n.n(r),l=n(23560),a=n.n(l),i=n(66448),s=n(883),c=n(14892),u=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}};const d=function(e){var t,n=e.deepEqual,r=e.empty,l=e.forEach,d=e.getIn,f=e.setIn,h=e.deleteIn,p=e.fromJS,b=e.keys,g=e.size,v=e.some,y=e.splice,m=(0,s.Z)(e)(u),x=(0,s.Z)(c.Z)(u),k=function(e,t,n,r,o,l,a){var i=d(e,t+"."+n);return i||a?f(e,t+"."+n,y(i,r,o,l)):e},E=function(e,t,n,r,o,l,a){var i=d(e,t),s=c.Z.getIn(i,n);return s||a?f(e,t,c.Z.setIn(i,n,c.Z.splice(s,r,o,l))):e},w=["values","fields","submitErrors","asyncErrors"],_=function(e,t,n,o,l){var a=e,i=null!=l?r:void 0;return a=k(a,"values",t,n,o,l,!0),a=k(a,"fields",t,n,o,i),a=E(a,"syncErrors",t,n,o,void 0),a=E(a,"syncWarnings",t,n,o,void 0),a=k(a,"submitErrors",t,n,o,void 0),a=k(a,"asyncErrors",t,n,o,void 0)},O=((t={})[i.FT]=function(e,t){var n=t.meta,r=n.field,o=n.index,l=t.payload;return _(e,r,o,0,l)},t[i.hL]=function(e,t){var n=t.meta,r=n.field,o=n.from,l=n.to,a=d(e,"values."+r),i=a?g(a):0,s=e;return i&&w.forEach((function(e){var t=e+"."+r;if(d(s,t)){var n=d(s,t+"["+o+"]");s=f(s,t,y(d(s,t),o,1)),s=f(s,t,y(d(s,t),l,0,n))}})),s},t[i.z$]=function(e,t){var n=t.meta.field,r=d(e,"values."+n),o=r?g(r):0;return o?_(e,n,o-1,1):e},t[i.gy]=function(e,t){var n=t.meta.field,r=t.payload,o=d(e,"values."+n),l=o?g(o):0;return _(e,n,l,0,r)},t[i.m$]=function(e,t){var n=t.meta,r=n.field,o=n.index;return _(e,r,o,1)},t[i.LD]=function(e,t){var n=t.meta.field,r=d(e,"values."+n),o=r?g(r):0;return o?_(e,n,0,o):e},t[i.w8]=function(e,t){var n=t.meta.field;return _(e,n,0,1)},t[i.WL]=function(e,t){var n=t.meta,r=n.field,o=n.index,l=n.removeNum,a=t.payload;return _(e,r,o,l,a)},t[i.$U]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,l=n.indexB,a=e;return w.forEach((function(e){var t=d(a,e+"."+r+"["+o+"]"),n=d(a,e+"."+r+"["+l+"]");void 0===t&&void 0===n||(a=f(a,e+"."+r+"["+o+"]",n),a=f(a,e+"."+r+"["+l+"]",t))})),a},t[i.ud]=function(e,t){var n=t.meta.field,r=t.payload;return _(e,n,0,0,r)},t[i.ou]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=m(o,"asyncErrors."+n),o=m(o,"submitErrors."+n),o=f(o,"fields."+n+".autofilled",!0),o=f(o,"values."+n,r)},t[i.dO]=function(e,t){var n=t.meta,r=n.field,o=n.touch,l=t.payload,a=e;return void 0===d(a,"initial."+r)&&""===l?a=m(a,"values."+r):void 0!==l&&(a=f(a,"values."+r,l)),r===d(a,"active")&&(a=h(a,"active")),a=h(a,"fields."+r+".active"),o&&(a=f(a,"fields."+r+".touched",!0),a=f(a,"anyTouched",!0)),a},t[i.Ve]=function(e,t){var n=t.meta,r=n.field,o=n.touch,l=n.persistentSubmitErrors,i=t.payload,s=e;if(void 0===d(s,"initial."+r)&&""===i||void 0===i)s=m(s,"values."+r);else if(a()(i)){var c=d(e,"values."+r);s=f(s,"values."+r,i(c,e.values))}else s=f(s,"values."+r,i);return s=m(s,"asyncErrors."+r),l||(s=m(s,"submitErrors."+r)),s=m(s,"fields."+r+".autofilled"),o&&(s=f(s,"fields."+r+".touched",!0),s=f(s,"anyTouched",!0)),s},t[i.v7]=function(e){return h(e,"triggerSubmit")},t[i.En]=function(e){var t=e;return t=m(t,"submitErrors"),t=h(t,"error")},t[i.CO]=function(e,t){var n=t.meta.field;return h(e,"asyncErrors."+n)},t[i.IV]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,l=n.fields,a=e;l.forEach((function(t){a=m(a,"asyncErrors."+t),o||(a=m(a,"submitErrors."+t)),a=m(a,"fields."+t+".autofilled"),r||(a=h(a,"fields."+t+".touched"));var n=d(e,"initial."+t);a=n?f(a,"values."+t,n):m(a,"values."+t)}));var i=v(b(d(a,"registeredFields")),(function(e){return d(a,"fields."+e+".touched")}));return a=i?f(a,"anyTouched",!0):h(a,"anyTouched")},t[i.cc]=function(e,t){var n=t.meta.field,r=e,o=d(e,"active");return r=h(r,"fields."+o+".active"),r=f(r,"fields."+n+".visited",!0),r=f(r,"fields."+n+".active",!0),r=f(r,"active",n)},t[i.qh]=function(e,t){var o=t.payload,a=t.meta,i=a.keepDirty,s=a.keepSubmitSucceeded,c=a.updateUnregisteredFields,u=a.keepValues,h=p(o),g=r,v=d(e,"warning");v&&(g=f(g,"warning",v));var y=d(e,"syncWarnings");y&&(g=f(g,"syncWarnings",y));var m=d(e,"error");m&&(g=f(g,"error",m));var x=d(e,"syncErrors");x&&(g=f(g,"syncErrors",x));var k=d(e,"registeredFields");k&&(g=f(g,"registeredFields",k));var E=d(e,"values"),w=d(e,"initial"),_=h,O=E;if(i&&k){if(!n(_,w)){var j=function(e){var t=d(w,e),r=d(E,e);if(n(r,t)){var o=d(_,e);d(O,e)!==o&&(O=f(O,e,o))}};c||l(b(k),(function(e){return j(e)})),l(b(_),(function(e){if(void 0===d(w,e)){var t=d(_,e);O=f(O,e,t)}c&&j(e)}))}}else O=_;return u&&(l(b(E),(function(e){var t=d(E,e);O=f(O,e,t)})),l(b(w),(function(e){var t=d(w,e);_=f(_,e,t)}))),s&&d(e,"submitSucceeded")&&(g=f(g,"submitSucceeded",!0)),g=f(g,"values",O),g=f(g,"initial",_)},t[i.EK]=function(e,t){var n=t.payload,r=n.name,o=n.type,l="registeredFields['"+r+"']",a=d(e,l);if(a){var i=d(a,"count")+1;a=f(a,"count",i)}else a=p({name:r,type:o,count:1});return f(e,l,a)},t[i.td]=function(e){var t=r,n=d(e,"registeredFields");n&&(t=f(t,"registeredFields",n));var o=d(e,"initial");return o&&(t=f(t,"values",o),t=f(t,"initial",o)),t},t[i.Wu]=function(e,t){var n=t.meta.sections,r=e;n.forEach((function(t){r=m(r,"asyncErrors."+t),r=m(r,"submitErrors."+t),r=m(r,"fields."+t);var n=d(e,"initial."+t);r=n?f(r,"values."+t,n):m(r,"values."+t)}));var o=v(b(d(r,"registeredFields")),(function(e){return d(r,"fields."+e+".touched")}));return r=o?f(r,"anyTouched",!0):h(r,"anyTouched")},t[i.zD]=function(e){return f(e,"triggerSubmit",!0)},t[i.VZ]=function(e,t){var n=t.meta.field;return f(e,"asyncValidating",n||!0)},t[i.bh]=function(e){return f(e,"submitting",!0)},t[i.gm]=function(e,t){var n=t.payload,r=e;if(r=h(r,"asyncValidating"),n&&Object.keys(n).length){var l=n._error,a=o()(n,["_error"]);l&&(r=f(r,"error",l)),Object.keys(a).length&&(r=f(r,"asyncErrors",p(a)))}else r=h(r,"error"),r=h(r,"asyncErrors");return r},t[i.c4]=function(e,t){var n=t.payload,r=e;if(r=h(r,"submitting"),r=h(r,"submitFailed"),r=h(r,"submitSucceeded"),n&&Object.keys(n).length){var l=n._error,a=o()(n,["_error"]);r=l?f(r,"error",l):h(r,"error"),r=Object.keys(a).length?f(r,"submitErrors",p(a)):h(r,"submitErrors"),r=f(r,"submitFailed",!0)}else r=h(r,"error"),r=h(r,"submitErrors");return r},t[i._V]=function(e,t){var n=t.meta.fields,r=e;return r=f(r,"submitFailed",!0),r=h(r,"submitSucceeded"),r=h(r,"submitting"),n.forEach((function(e){return r=f(r,"fields."+e+".touched",!0)})),n.length&&(r=f(r,"anyTouched",!0)),r},t[i.Lo]=function(e){var t=e;return t=h(t,"submitFailed"),t=f(t,"submitSucceeded",!0)},t[i.Qm]=function(e,t){var n=t.meta.fields,r=e;return n.forEach((function(e){return r=f(r,"fields."+e+".touched",!0)})),r=f(r,"anyTouched",!0)},t[i.gV]=function(e,t){var o=t.payload,l=o.name,a=o.destroyOnUnmount,i=e,s="registeredFields['"+l+"']",u=d(i,s);if(!u)return i;var p=d(u,"count")-1;if(p<=0&&a){i=h(i,s),n(d(i,"registeredFields"),r)&&(i=h(i,"registeredFields"));var b=d(i,"syncErrors");b&&(b=x(b,l),i=c.Z.deepEqual(b,c.Z.empty)?h(i,"syncErrors"):f(i,"syncErrors",b));var g=d(i,"syncWarnings");g&&(g=x(g,l),i=c.Z.deepEqual(g,c.Z.empty)?h(i,"syncWarnings"):f(i,"syncWarnings",g)),i=m(i,"submitErrors."+l),i=m(i,"asyncErrors."+l)}else u=f(u,"count",p),i=f(i,s,u);return i},t[i.tn]=function(e,t){var n=t.meta.fields,r=e;n.forEach((function(e){return r=h(r,"fields."+e+".touched")}));var o=v(b(d(r,"registeredFields")),(function(e){return d(r,"fields."+e+".touched")}));return r=o?f(r,"anyTouched",!0):h(r,"anyTouched")},t[i.WF]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,l=e;return o?(l=f(l,"error",o),l=f(l,"syncError",!0)):(l=h(l,"error"),l=h(l,"syncError")),l=Object.keys(r).length?f(l,"syncErrors",r):h(l,"syncErrors")},t[i.kF]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,l=e;return l=o?f(l,"warning",o):h(l,"warning"),l=Object.keys(r).length?f(l,"syncWarnings",r):h(l,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var o=this;return void 0===n&&(n={}),e((function(e,l){void 0===e&&(e=r),void 0===l&&(l={type:"NONE"});var a=function(n,r){var o=d(n,r),a=t[r](o,l,d(e,r));return a!==o?f(n,r,a):n},i=o(e,l),s=l&&l.meta&&l.meta.form;return s&&!n.receiveAllFormActions?t[s]?a(i,s):i:Object.keys(t).reduce(a,i)}))},t}(function(e){return function(t,n){void 0===t&&(t=r),void 0===n&&(n={type:"NONE"});var o=n&&n.meta&&n.meta.form;if(!o||!function(e){return e&&e.type&&e.type.length>i.O4.length&&e.type.substring(0,i.O4.length)===i.O4}(n))return t;if(n.type===i.Kn&&n.meta&&n.meta.form)return n.meta.form.reduce((function(e,t){return m(e,t)}),t);var l=d(t,o),a=e(l,n);return a===l?t:f(t,o,a)}}((function(e,t){void 0===e&&(e=r);var n=O[t.type];return n?n(e,t):e})))},f=d(c.Z)},14892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});const r=function(e,t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var l=[].concat(e);return l.splice(t,n,r),l}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var i=[].concat(e);return i[t]=r,i};var o=n(30084),l=n.n(o);const a=function(e,t){if(!e)return e;var n=l()(t),r=n.length;if(r){for(var o=e,a=0;a<r&&o;++a)o=o[n[a]];return o}};var i=n(67154),s=n.n(i),c=function e(t,n,r,o){var l;if(o>=r.length)return n;var a=r[o],i=e(t&&(Array.isArray(t)?t[Number(a)]:t[a]),n,r,o+1);if(!t){var c;if(isNaN(a))return(c={})[a]=i,c;var u=[];return u[parseInt(a,10)]=i,u}if(Array.isArray(t)){var d=[].concat(t);return d[parseInt(a,10)]=i,d}return s()({},t,((l={})[a]=i,l))};const u=function(e,t,n){return c(e,n,l()(t),0)};var d=n(14293),f=n.n(d),h=n(28368),p=n.n(h),b=n(1024),g=n.n(b),v=function(e){return f()(e)||""===e||isNaN(e)},y=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!g().isValidElement(e)&&!g().isValidElement(t)&&void 0)):v(e)===v(t))};function m(e,t){if(null==e||null==t)return e;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length){if(Array.isArray(e)){if(isNaN(t))throw new Error('Must access array elements with a number, not "'+String(t)+'".');var l=Number(t);if(l<e.length){var a=m.apply(void 0,[e&&e[l]].concat(r));if(a!==e[l]){var i=[].concat(e);return i[l]=a,i}}return e}if(t in e){var c,u=m.apply(void 0,[e&&e[t]].concat(r));return e[t]===u?e:s()({},e,((c={})[t]=u,c))}return e}if(Array.isArray(e)){if(isNaN(t))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(t));var d=Number(t);if(d<e.length){var f=[].concat(e);return f.splice(d,1),f}return e}if(t in e){var h=s()({},e);return delete h[t],h}return e}const x={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:a,setIn:u,deepEqual:function(e,t){return p()(e,t,y)},deleteIn:function(e,t){return m.apply(void 0,[e].concat(l()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map((function(e){return e.name})):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:r,equals:function(e,t){return t.every((function(t){return~e.indexOf(t)}))},orderChanged:function(e,t){return t.some((function(t,n){return t!==e[n]}))},toJS:function(e){return e}}}}]);