text: (this["webpackJsonpentando-pam-widgets"]=this["webpackJsonpentando-pam-widgets"]||[]).push([[0],{113:function(e,t,a){"use strict";a.d(t,"c",(function(){return p})),a.d(t,"a",(function(){return g})),a.d(t,"b",(function(){return f})),a.d(t,"d",(function(){return A}));var n=a(4),r=a.n(n),o=a(10),i=a(14),s={payload:[{reusableSubProcesses:null,"process-id":"Mortgage_Process.MortgageApprovalProcess",associatedEntities:null,"container-id":"mortgage-process_1.0.0-SNAPSHOT",package:"com.myspace.mortgage_app","process-name":"MortgageApprovalProcess",dynamic:!1,serviceTasks:null,processVariables:null,"process-version":"1.0"},{reusableSubProcesses:null,"process-id":"evaluation",associatedEntities:null,"container-id":"evaluation_1.0.0-SNAPSHOT",package:"Evaluation.src.main.resources","process-name":"Evaluation",dynamic:!1,serviceTasks:null,processVariables:null,"process-version":"1"},{reusableSubProcesses:null,"process-id":"itorders.orderhardware",associatedEntities:null,"container-id":"itorders_1.0.0-SNAPSHOT",package:"org.jbpm.demo.itorders","process-name":"Order for IT hardware",dynamic:!0,serviceTasks:null,processVariables:null,"process-version":"1.0"},{reusableSubProcesses:null,"process-id":"Mortgage_Process.MortgageApprovalProcess",associatedEntities:null,"container-id":"mortgage-process_1.0.1-SNAPSHOT",package:"com.myspace.mortgage_app","process-name":"MortgageApprovalProcess",dynamic:!1,serviceTasks:null,processVariables:null,"process-version":"1.0"},{reusableSubProcesses:null,"process-id":"com.redhat.bpms.examples.mortgage.MortgageApplication",associatedEntities:null,"container-id":"mortgage_1.0",package:"com.redhat.bpms.examples.mortgage","process-name":"MortgageApplication",dynamic:!1,serviceTasks:null,processVariables:null,"process-version":"1.0"},{reusableSubProcesses:null,"process-id":"itorders-data.place-order",associatedEntities:null,"container-id":"itorders_1.0.0-SNAPSHOT",package:"org.jbpm.demo.itorders","process-name":"place-order",dynamic:!1,serviceTasks:null,processVariables:null,"process-version":"1.0"}],errors:[]},c={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://entando.org/schemas/pda-form.json",type:"object",properties:{"d1e6dd47-b24c-4f93-ba25-337832926124":{title:"evaluation-taskform.frm",type:"object",required:["employee","reason","list"],properties:{employee:{type:"string",title:"Employee",description:"Employee",maxLength:100},reason:{type:"string",title:"Reason",description:"Reason"},list:{type:"string",title:"List"},checkBox:{type:"boolean",title:"Agree"}}}}},l={payload:"100",errors:[]},u=a(684),d=a.n(u),m=a(39),p=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/processes/definitions"),method:i.d.GET,mockResponse:s,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=Object(o.a)(r.a.mark((function e(t,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/processes/").concat(a,"/diagram"),method:i.d.GET,mockResponse:d.a,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),f=function(){var e=Object(o.a)(r.a.mark((function e(t,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/processes/definitions/").concat(a,"/form"),method:i.d.GET,mockResponse:c,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),A=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/processes/definitions/").concat(a,"/form"),method:i.d.POST,headers:{"Content-Type":"application/json"},body:JSON.stringify(n),mockResponse:l,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}()},14:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"e",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return s}));var n={PDA:"/pda",APP_BUILDER:"/entando-de-app"},r=!1,o=800,i="true"===Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_DOMAIN:"/pda",REACT_APP_APP_BUILDER_DOMAIN:"/entando-de-app",REACT_APP_MOCKED_API:"false"}).REACT_APP_LOCAL,s={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"}},1431:function(e,t,a){},1432:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),o=a(16),i=a.n(o),s=a(7),c=a(720),l={en:a(671),it:a(672)},u={interpolation:{escapeValue:!1,format:function(e,t){var a="number"===typeof e&&e>999?e.toLocaleString():e.toString();switch(t){case"number":return a;case"days":return"".concat(a," day").concat(1!==e&&"s");case"currency":return"$ ".concat(a);default:return e}}},ns:["translation"]};s.a.use(c.a).init(u),Object.keys(l).forEach((function(e){s.a.addResourceBundle(e,u.ns[0],l[e])}));var d=a(17),m=a(15),p=a(19),g=a(18),f=a(52),A=a(372),h=a(349),v=a(350),b=a(351),E=a(352),k=a(353),y=a(354),S=a(355),C=a(356),O=[{name:"task-list-config",Component:A.a,className:"TaskListConfigElement"},{name:"task-comments-config",Component:h.a,className:"TaskCommentsConfigElement"},{name:"task-completion-form-config",Component:v.a,className:"TaskCompletionFormConfigElement"},{name:"task-details-config",Component:b.a,className:"TaskDetailsConfigElement"},{name:"process-form-config",Component:E.a,className:"ProcessFormConfigElement"},{name:"summary-card-config",Component:k.a,className:"SummaryCardConfigElement"},{name:"overtime-graph-config",Component:y.a,className:"OvertimeGraphConfigElement"},{name:"task-attachments-config",Component:S.a,className:"AttachmentsConfigElement"},{name:"process-definition-config",Component:C.a,className:"ProcessDefinitionConfigElement"}],w={};O.forEach((function(e){var t=e.name,a=e.Component,n=e.className;w[n]=function(e){Object(g.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(d.a)(this,n),(e=t.call(this)).newConfig={},e.container=null,e.reactRootRef=r.a.createRef(),e}return Object(m.a)(n,[{key:"connectedCallback",value:function(){this.container=document.createElement("div"),this.appendChild(this.container),this.render()}},{key:"render",value:function(){var e=this.getAttribute("locale")||"en";s.a.changeLanguage(e),i.a.render(r.a.createElement(a,{ref:this.reactRootRef,config:Object.keys(this.newConfig)?this.newConfig:this.config}),this.container)}},{key:"config",get:function(){var e=this.reactRootRef.current?this.reactRootRef.current.state.config:{};return Object.keys(e).forEach((function(t){e[t]="string"===typeof e[t]?e[t]:JSON.stringify(e[t])})),e},set:function(e){this.newConfig=e,this.render()}}]),n}(Object(f.a)(HTMLElement)),customElements.define(t,w[n])}));var T=a(12),P=a(367),j=function(e){return function(t){var a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},x=function(e,t){return window.addEventListener(e,t),function(){window.removeEventListener(e,t)}},I="".concat("task.details",".onPressPrevious"),N="".concat("task.details",".onPressNext"),D="".concat("task.details",".onError"),R="".concat("task.list",".onError"),M="".concat("task.form",".onSubmitForm"),L="".concat("task.form",".onError"),B="".concat("widgets",".onSelectTask"),F={id:"id",taskPos:"task-pos",groups:"groups",locale:"locale",pageCode:"page-code",frameId:"frame-id",serviceUrl:"service-url",activeTask:"active-task"},_=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).container=null,n.onSelectTask=j(B),n.onError=j(R),n.updateTask=n.updateTask.bind(Object(T.a)(n)),n}return Object(m.a)(a,[{key:"attributeChangedCallback",value:function(e,t,a){if(!Object.values(F).includes(e))throw new Error("Untracked changed attribute: ".concat(e));this.container&&a!==t&&this.render()}},{key:"updateTask",value:function(e){var t=e.detail;this.setAttribute(F.activeTask,t.id)}},{key:"connectedCallback",value:function(){this.container=document.createElement("div"),this.appendChild(this.container),this.unsubscribeFromOnSelectTaskEvent=x(B,this.updateTask),this.render()}},{key:"render",value:function(){var e=this.getAttribute("locale")||"en";s.a.changeLanguage(e);var t=this.getAttribute(F.pageCode),a=this.getAttribute(F.frameId),n=this.getAttribute(F.serviceUrl),o=this.getAttribute(F.activeTask),c=r.a.createElement(P.a,{onError:this.onError,pageCode:t,frameId:a,serviceUrl:n,activeTask:o,onSelectTask:this.onSelectTask},null);i.a.render(c,this.container)}},{key:"disconnectedCallback",value:function(){this.unsubscribeFromOnSelectTaskEvent&&this.unsubscribeFromOnSelectTaskEvent()}}],[{key:"observedAttributes",get:function(){return Object.values(F)}}]),a}(Object(f.a)(HTMLElement));customElements.define("task-list",_);var H=a(368),Z={id:"id",taskPos:"task-pos",groups:"groups",locale:"locale",pageCode:"page-code",frameId:"frame-id",serviceUrl:"service-url",lastPage:"last-page"},z=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).container=null,n.unsubscribeFromTaskListEvents=null,n.onSelectTask=j(B),n.onPressPrevious=j(I),n.onPressNext=j(N),n.onError=j(D),n.updateTask=n.updateTask.bind(Object(T.a)(n)),n}return Object(m.a)(a,[{key:"attributeChangedCallback",value:function(e,t,a){if(!Object.values(Z).includes(e))throw new Error("Untracked changed attribute: ".concat(e));this.container&&a!==t&&this.render()}},{key:"updateTask",value:function(e){var t=e.detail;t.groups&&this.setAttribute(Z.groups,t.groups),this.setAttribute(Z.taskPos,t.pos),this.setAttribute(Z.lastPage,t.lastPage),this.setAttribute(Z.id,t.id)}},{key:"render",value:function(){var e=this.getAttribute(Z.locale)||"en";s.a.changeLanguage(e);var t=this.getAttribute(Z.pageCode),a=this.getAttribute(Z.frameId),n=this.getAttribute(Z.serviceUrl),o=this.getAttribute(Z.id),c=this.getAttribute(Z.taskPos),l=this.getAttribute(Z.groups),u=this.getAttribute(Z.lastPage),d=r.a.createElement(H.a,{onError:this.onError,onSelectTask:this.onSelectTask,onPressPrevious:this.onPressPrevious,onPressNext:this.onPressNext,pageCode:t,frameId:a,serviceUrl:n,taskId:o,taskPos:c?Number(c):0,lastPage:u?Number(u):0,groups:l},null);i.a.render(d,this.container)}},{key:"connectedCallback",value:function(){this.container=document.createElement("div"),this.appendChild(this.container),this.unsubscribeFromOnSelectTaskEvent=x(B,this.updateTask),this.render()}},{key:"disconnectedCallback",value:function(){this.unsubscribeFromOnSelectTaskEvent&&this.unsubscribeFromOnSelectTaskEvent()}}],[{key:"observedAttributes",get:function(){return Object.values(Z)}}]),a}(Object(f.a)(HTMLElement));customElements.define("task-details",z);var V=a(361),U={id:"id",locale:"locale",pageCode:"page-code",frameId:"frame-id",serviceUrl:"service-url"},q=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).mountPoint=null,n.onSubmitForm=j(M),n.onError=j(L),n.updateTaskId=n.updateTaskId.bind(Object(T.a)(n)),n}return Object(m.a)(a,[{key:"attributeChangedCallback",value:function(e,t,a){if(!Object.values(U).includes(e))throw new Error("Untracked changed attribute: ".concat(e));this.mountPoint&&a!==t&&this.render()}},{key:"updateTaskId",value:function(e){var t=e.detail;this.setAttribute(U.id,t.id)}},{key:"render",value:function(){var e=this.getAttribute(U.locale)||"en";s.a.changeLanguage(e);var t=this.getAttribute(U.pageCode),a=this.getAttribute(U.frameId),n=this.getAttribute(U.serviceUrl),o=this.getAttribute(U.id),c=r.a.createElement(V.a,{onError:this.onError,onSubmitForm:this.onSubmitForm,pageCode:t,frameId:a,serviceUrl:n,taskId:o},null);i.a.render(c,this.mountPoint)}},{key:"connectedCallback",value:function(){this.mountPoint=document.createElement("div"),this.appendChild(this.mountPoint),this.unsubscribeFromOnSelectTask=x(B,this.updateTaskId),this.render()}},{key:"disconnectedCallback",value:function(){this.unsubscribeFromOnSelectTask&&this.unsubscribeFromOnSelectTask()}}],[{key:"observedAttributes",get:function(){return Object.values(U)}}]),a}(Object(f.a)(HTMLElement));customElements.define("task-completion-form",q);var K=a(369),G="".concat("task.comments",".onClickAddComment"),W="".concat("task.comments",".onClickRemoveComment"),J="".concat("task.comments",".onError"),Y={id:"id",locale:"locale",pageCode:"page-code",frameId:"frame-id",serviceUrl:"service-url"},X=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).mountPoint=null,n.onClickAddComment=j(G),n.onClickRemoveComment=j(W),n.onError=j(J),n.updateTaskId=n.updateTaskId.bind(Object(T.a)(n)),n}return Object(m.a)(a,[{key:"attributeChangedCallback",value:function(e,t,a){if(!Object.values(Y).includes(e))throw new Error("Untracked changed attribute: ".concat(e));this.mountPoint&&a!==t&&this.render()}},{key:"updateTaskId",value:function(e){var t=e.detail;this.setAttribute(Y.id,t.id)}},{key:"render",value:function(){var e=this.getAttribute(Y.locale)||"en";s.a.changeLanguage(e);var t=this.getAttribute(Y.pageCode),a=this.getAttribute(Y.frameId),n=this.getAttribute(Y.serviceUrl),o=this.getAttribute(Y.id),c=r.a.createElement(K.a,{onError:this.onError,onClickAddComment:this.onClickAddComment,onClickRemoveComment:this.onClickRemoveComment,pageCode:t,frameId:a,serviceUrl:n,taskId:o},null);i.a.render(c,this.mountPoint)}},{key:"connectedCallback",value:function(){this.mountPoint=document.createElement("div"),this.appendChild(this.mountPoint),this.unsubscribeFromOnSelectTask=x(B,this.updateTaskId),this.render()}},{key:"disconnectedCallback",value:function(){this.unsubscribeFromOnSelectTask&&this.unsubscribeFromOnSelectTask()}}],[{key:"observedAttributes",get:function(){return Object.values(Y)}}]),a}(Object(f.a)(HTMLElement));customElements.define("task-comments",X);var Q=a(374),$="".concat("summarycard",".onError"),ee=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).onError=j($),n}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a=this.getAttribute("page-code"),n=this.getAttribute("frame-id"),o=this.getAttribute("service-url"),c=r.a.createElement(Q.a,{onError:this.onError,pageCode:a,frameId:n,serviceUrl:o},null);i.a.render(c,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("summary-card",ee);var te=a(363),ae="".concat("processform",".onSubmitForm"),ne="".concat("processform",".onError"),re=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).onSubmitForm=j(ae),n.onError=j(ne),n}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a=this.getAttribute("page-code"),n=this.getAttribute("frame-id"),o=this.getAttribute("service-url"),c=r.a.createElement(te.a,{onError:this.onError,onSubmitForm:this.onSubmitForm,pageCode:a,frameId:n,serviceUrl:o},null);i.a.render(c,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("process-form",re);var oe=a(364),ie="".concat("processdefinition",".onSubmitForm"),se="".concat("processdefinition",".onError"),ce=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).onSubmitForm=j(ie),n.onError=j(se),n}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a=this.getAttribute("page-code"),n=this.getAttribute("frame-id"),o=this.getAttribute("service-url"),c=r.a.createElement(oe.a,{onError:this.onError,onSubmitForm:this.onSubmitForm,pageCode:a,frameId:n,serviceUrl:o},null);i.a.render(c,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("process-definition",ce);var le=a(698),ue=a.n(le),de=a(64),me=a(26),pe=a.n(me),ge=a(378),fe=a(699),Ae=a.n(fe),he=a(1532),ve=pe()({container:{display:"flex",alignItems:"center",alignSelf:"center",fontWeight:"bold",fontSize:"14px",lineHeight:"19px",color:"#757575",marginLeft:"10px"},avatar:{width:"30px",height:"30px",backgroundColor:"#757575"},username:{margin:"0px 5px"},icon:{color:"#757575"}})((function(e){var t=e.classes,a=e.user,n=e.onClickLogout;return r.a.createElement("div",{className:t.container},r.a.createElement(he.a,{className:t.avatar},a.username.charAt(0)),r.a.createElement("span",{className:t.username},a.username),r.a.createElement(ge.a,{size:"small","aria-label":"logout",onClick:n},r.a.createElement(Ae.a,{className:t.icon})))})),be=a(700),Ee=a.n(be),ke=pe()({icon:{color:"#757575"}})((function(e){var t=e.classes,a=e.onClickLogin;return r.a.createElement(ge.a,{size:"small","aria-label":"login",onClick:a},r.a.createElement(Ee.a,{className:t.icon}))})),ye=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;Object(d.a)(this,a),(n=t.call(this,e)).closeNotification=function(){n.setState({errorMessage:""})};var r=e.keycloakAuthUrl,o=e.keycloakRealm,i=e.keycloakClientId,s=ue()(r?{url:r,realm:o,clientId:i}:"".concat("/entando-de-app","/keycloak.json"));return s.onReady=function(){a.createKcDispatcher({eventType:"onReady"})()},s.onAuthSuccess=function(){a.createKcDispatcher({eventType:"onAuthSuccess"})},s.onAuthError=function(){a.createKcDispatcher({eventType:"onAuthError"})},s.onAuthRefreshSuccess=function(){a.createKcDispatcher({eventType:"onAuthRefreshSuccess"})},s.onAuthRefreshError=function(){a.createKcDispatcher({eventType:"onAuthRefreshError"})},s.onAuthLogout=function(){a.createKcDispatcher({eventType:"onAuthLogout"})},s.onTokenExpired=function(){a.createKcDispatcher({eventType:"onTokenExpired"})},n.state={keycloak:s,authenticated:!1,user:null,errorMessage:""},n.onClickLogin=n.onClickLogin.bind(Object(T.a)(n)),n.onClickLogout=n.onClickLogout.bind(Object(T.a)(n)),n.closeNotification=n.closeNotification.bind(Object(T.a)(n)),n.handleError=n.handleError.bind(Object(T.a)(n)),n}return Object(m.a)(a,null,[{key:"createKcDispatcher",value:function(e){return function(){return window.dispatchEvent(new CustomEvent("keycloak",{detail:e}))}}},{key:"onInit",value:function(){a.createKcDispatcher({eventType:"onInit"})()}}]),Object(m.a)(a,[{key:"componentDidMount",value:function(){var e=this,t=this.state.keycloak;t.init({promiseType:"native",enableLogging:!0,onLoad:"check-sso"}).then((function(n){a.onInit(),n?t.loadUserProfile().then((function(a){e.setState({user:a,authenticated:n}),localStorage.setItem("token",t.token)})):e.setState({authenticated:n})})).catch((function(t){e.handleError(t)}))}},{key:"onClickLogin",value:function(){var e=this.state,t=e.keycloak,a=e.authenticated;t&&!a&&t.login({redirectUri:window.location})}},{key:"onClickLogout",value:function(){var e=this.state.keycloak;e&&e.logout()}},{key:"handleError",value:function(e){(0,this.props.onError)(e),this.setState({errorMessage:e.toString()})}},{key:"render",value:function(){var e=this.state,t=e.authenticated,a=e.user,n=e.errorMessage;return r.a.createElement(r.a.Fragment,null,t?r.a.createElement(ve,{user:a,onClickLogout:this.onClickLogout}):r.a.createElement(ke,{onClickLogin:this.onClickLogin}),r.a.createElement(de.a,{type:"error",message:n,onClose:this.closeNotification}))}}]),a}(r.a.Component);ye.defaultProps={keycloakAuthUrl:"",keycloakRealm:"",keycloakClientId:"",onError:function(){}};var Se=ye,Ce="".concat("userAuth",".onError"),Oe=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).onError=j(Ce),n}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a={onError:this.onError};this.getAttribute("kc-auth-url")&&(a.keycloakAuthUrl=this.getAttribute("kc-auth-url"),a.keycloakRealm=this.getAttribute("kc-realm"),a.keycloakClientId=this.getAttribute("kc-client-id"));var n=r.a.createElement(Se,a,null);i.a.render(n,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("user-auth",Oe);var we=a(373),Te="".concat("overtimegraph",".onError"),Pe=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).onError=j(Te),n}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a=this.getAttribute("page-code"),n=this.getAttribute("frame-id"),o=this.getAttribute("service-url"),c=r.a.createElement(we.a,{onError:this.onError,pageCode:a,frameId:n,serviceUrl:o},null);i.a.render(c,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("overtime-graph",Pe);var je=a(370),xe=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(){return Object(d.a)(this,a),t.apply(this,arguments)}return Object(m.a)(a,[{key:"connectedCallback",value:function(){var e=document.createElement("div");this.appendChild(e);var t=this.getAttribute("locale")||"en";s.a.changeLanguage(t);var a=this.getAttribute("page-code"),n=this.getAttribute("frame-id"),o=this.getAttribute("service-url"),c=r.a.createElement(je.a,{pageCode:a,frameId:n,serviceUrl:o},null);i.a.render(c,e)}}]),a}(Object(f.a)(HTMLElement));customElements.define("pda-connections",xe);var Ie=a(371),Ne={id:"id",locale:"locale",pageCode:"page-code",frameId:"frame-id",serviceUrl:"service-url"},De=function(e){Object(g.a)(a,e);var t=Object(p.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).mountPoint=null,n.updateTaskId=n.updateTaskId.bind(Object(T.a)(n)),n}return Object(m.a)(a,[{key:"attributeChangedCallback",value:function(e,t,a){if(!Object.values(Ne).includes(e))throw new Error("Untracked changed attribute: ".concat(e));this.mountPoint&&a!==t&&this.render()}},{key:"updateTaskId",value:function(e){var t=e.detail;this.setAttribute(Ne.id,t.id)}},{key:"render",value:function(){var e=this.getAttribute(Ne.locale)||"en";s.a.changeLanguage(e);var t=this.getAttribute(Ne.pageCode),a=this.getAttribute(Ne.frameId),n=this.getAttribute(Ne.serviceUrl),o=this.getAttribute(Ne.id),c=r.a.createElement(Ie.a,{pageCode:t,frameId:a,serviceUrl:n,taskId:o},null);i.a.render(c,this.mountPoint)}},{key:"connectedCallback",value:function(){this.mountPoint=document.createElement("div"),this.appendChild(this.mountPoint),this.unsubscribeFromOnSelectTask=x(B,this.updateTaskId),this.render()}},{key:"disconnectedCallback",value:function(){this.unsubscribeFromOnSelectTask&&this.unsubscribeFromOnSelectTask()}}],[{key:"observedAttributes",get:function(){return Object.values(Ne)}}]),a}(Object(f.a)(HTMLElement));customElements.define("task-attachments",De);if("true"===Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_DOMAIN:"/pda",REACT_APP_APP_BUILDER_DOMAIN:"/entando-de-app",REACT_APP_MOCKED_API:"false"}).REACT_APP_LOCAL){var Re=a(1433).default;s.a.changeLanguage("en"),i.a.render(r.a.createElement(Re,null),document.getElementById("root"))}},1433:function(e,t,a){"use strict";a.r(t);var n=a(4),r=a.n(n),o=a(10),i=a(41),s=a(0),c=a.n(s),l=a(181),u=a(178),d=a(1526),m=a(1458),p=a(470),g=a(1505),f=a(1492),A=a(82),h=a(378),v=a(1527),b=a(123),E=a(56),k=a(21),y=a(96),S=a(1439),C=a(1440),O=a(1504),w=a(1503),T=a(1529),P=a(1456),j=a(1512),x=a(1513),I=a(1514),N=a(1515),D=a(1516),R=a(1517),M=a(1518),L=a(1519),B=a(1520),F=a(1521),_=a(1522),H=a(1523),Z=a(8),z=[{linkTo:"/Connections",linkText:"Connections",Icon:c.a.createElement(j.a,null)},{linkTo:"/TaskList",linkText:"Task list",Icon:c.a.createElement(x.a,null),configLinkTo:"/TaskListConfig"},{linkTo:"/TaskDetails",linkText:"Task details",Icon:c.a.createElement(I.a,null),configLinkTo:"/TaskDetailsConfig"},{linkTo:"/TaskCompletionForm",linkText:"Task completion form",Icon:c.a.createElement(N.a,null),configLinkTo:"/TaskCompletionFormConfig"},{linkTo:"/TaskComments",linkText:"Task comments",Icon:c.a.createElement(D.a,null),configLinkTo:"/TaskCommentsConfig"},{linkTo:"/SummaryCard",linkText:"Summary card",Icon:c.a.createElement(R.a,null),configLinkTo:"/SummaryCardConfig"},{linkTo:"/ProcessForm",linkText:"Process form",Icon:c.a.createElement(I.a,null),configLinkTo:"/ProcessFormConfig"},{linkTo:"/ProcessDefinition",linkText:"Process Definition",Icon:c.a.createElement(M.a,null),configLinkTo:"ProcessDefinitionConfig"},{linkTo:"/OvertimeGraph",linkText:"Overtime graph",Icon:c.a.createElement(L.a,null),configLinkTo:"/OvertimeGraphConfig"},{linkTo:"/Attachments",linkText:"Attachments",Icon:c.a.createElement(B.a,null),configLinkTo:"/AttachmentsConfig"}],V=function(e){var t=e.open,a=e.setOpen,n=e.classes;return c.a.createElement(T.a,{open:t,onClose:function(){return a(!1)}},c.a.createElement("div",{className:"app-list"},c.a.createElement(S.a,null,c.a.createElement(C.a,{button:!0,component:l.b,to:"/",onClick:function(){return a(!1)}},c.a.createElement(w.a,null,c.a.createElement(F.a,{fontSize:"small"})),c.a.createElement(O.a,{primary:"Home"})),c.a.createElement(C.a,{button:!0,component:l.b,to:"/task-details-page/",onClick:function(){return a(!1)}},c.a.createElement(w.a,null,c.a.createElement(_.a,{fontSize:"small"})),c.a.createElement(O.a,{primary:"Task Details page"})),c.a.createElement(C.a,{button:!0,component:l.b,to:"/smart-inbox-page/",onClick:function(){return a(!1)}},c.a.createElement(w.a,null,c.a.createElement(_.a,{fontSize:"small"})),c.a.createElement(O.a,{primary:"Smart Inbox page"})),c.a.createElement(A.a,{variant:"overline"},"Widgets"),c.a.createElement(P.a,null),z.map((function(e){var t=e.linkTo,r=e.Icon,o=e.linkText,i=e.configLinkTo;return c.a.createElement("div",{className:n.item,key:t},c.a.createElement(C.a,{className:n.listItem,button:!0,component:l.b,to:t,onClick:function(){return a(!1)}},r,c.a.createElement(O.a,{style:{marginLeft:5},primary:o})),i&&c.a.createElement(h.a,{className:n.iconButton,size:"small",component:l.b,to:i,onClick:function(){return a(!1)}},c.a.createElement(H.a,{fontSize:"small"})))})))))};V.defaultProps={classes:{},open:!1,setOpen:function(){}};var U=Object(Z.a)({item:{position:"relative"},listItem:{paddingLeft:10,paddingRight:10},iconButton:{position:"absolute",right:5,top:12}})(V),q=a(53),K=a(11),G=a(721),W=a(194),J=a(1524),Y=a(1525),X=a(1488),Q=(a(1428),a(1429),a(1430),function(e){var t=e.children,a=e.config,n=Object(G.a)(e,["children","config"]),l=Object(s.useState)(!1),u=Object(i.a)(l,2),d=u[0],m=u[1],p=Object(s.useState)({}),g=Object(i.a)(p,2),f=g[0],A=g[1],h=Object(s.useState)({}),v=Object(i.a)(h,2),b=v[0],k=v[1],y=Object(s.useState)(!1),S=Object(i.a)(y,2),C=S[0],O=S[1],w=Object(s.useState)({}),T=Object(i.a)(w,2),P=T[0],j=T[1],x=Object(s.useRef)(null),I=n.pageCode,N=n.frameId,D=function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),t=x.current.state.config,a=Object.keys(t).reduce((function(e,a){return Object(K.a)({},e,Object(q.a)({},a,"string"===typeof t[a]?t[a]:JSON.stringify(t[a])))}),{}),e.next=5,Object(E.c)(I,N,JSON.stringify({code:f,config:a}));case 5:n=e.sent,o=n&&n.errors&&0===n.errors.length||!1,O(!1),j({success:o}),setTimeout((function(){j({})}),2e3);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(s.useEffect)((function(){function e(){return(e=Object(o.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=6;break}A(a.code),k(a.config),m(!0),e.next=12;break;case 6:return e.next=8,Object(E.b)(I,N);case 8:t=e.sent,A(t.payload.code),k(t.payload.config),m(!0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[I,N,a]);var R=c.a.Children.map(t,(function(e){return c.a.cloneElement(e,Object(K.a)({},n,{config:b,ref:x}))})),M=C||"boolean"===typeof P.success;return c.a.createElement("div",null,d&&R,c.a.createElement(W.a,{onClick:D,variant:"outlined",color:"primary",disabled:M},C?c.a.createElement(X.a,{size:24}):"boolean"===typeof P.success?P.success?c.a.createElement(J.a,null):c.a.createElement(Y.a,null):"Save"))});Q.defaultProps={config:null};var $=Q,ee=(a(1431),a(663),a(664),function(){var e=new URLSearchParams(window.location.search),t=e.get("taskId"),a=e.get("taskPos");return c.a.createElement("div",{className:"pda-wrapper"},c.a.createElement("header",{className:"pda-header"},c.a.createElement("div",{className:"header-container"},c.a.createElement("div",{className:"header-logo"},c.a.createElement("a",{href:"/"},c.a.createElement("svg",{width:"132",height:"39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{fill:"url(#pattern0)",d:"M0 0h132v39H0z"}),c.a.createElement("defs",null,c.a.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},c.a.createElement("use",{xlinkHref:"#image0",transform:"matrix(.00394 0 0 .01333 0 -.346)"})),c.a.createElement("image",{id:"image0",width:"254",height:"127",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP4AAAB/CAMAAAD4pI8eAAADAFBMVEX///8uq+L8//8jqOGy3PP2/f8JpODu+P0bpuGi1fC+4/Xl9PtMtOVDseRnvulxwOqOzO1ZuObT7Pjb8Pp0xOp+y+2U0u/L6fed2PGK0O6o2vIAoN+24PSFyOxzyOzG5fZQvOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx33BxAAAL0klEQVR4Ae1aDXujKhNVCEHFGL+NVpP9/7/yPTOgwTbt3bbpvvs8i/dujSLDnDMfDGgUhSMwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBj4FxkQSvwc7B8V/n21RZ2WS/Z9OY8kqHpKy/PtUdPfck+fEykPP2P+OpdSvhz+FqiP9GhOcRz/kIZ1DtnHHxL+CMzn792SH4RP1P7d8A//NHyxyH/Z+qr6CL4QH+bE95vRgp71Q+d/v9fnQ/d1D9VkZdeV/dwo2yS0aQz9FKaeuCkzDpMY0r6F7eO46vhoJw+txuMtjjIdmrUHhDT1QNIwTt+hdZlqNxDdpUOYW7pwx6kk2X7srzK7tNb26af+FUN5ipPj8ZjE+cJqRkNR5QXw132FJjriKrVj6yJJyPZxLLkheSk3+Ho+n9zd5JRXfcYURibPT6cmEnWZW2GJPC21jwHjQAOSd5Qs/A5fH84nOxB6nbNtLL/7d36b5WSHBCD8uJCsG37GB1MCjIWKtrhgjXUONRm+g3LX1BTUzR2QJWXOpZEGYUnZlCcUC1vr6V41iX7TYO29CR32MuPSMvodwLu+A5TCoFDM6pZcQHBDc28cE0yGYa9y8ljVt4t1/nzp8N/SNU7ecGJwFqH9e0y5DdyRJDtKbBmV8Ad7iOVI7Y4a19HN+9m9yalXrN1c7++dMtIZZlrmbGqtmqg3dWG1kKfqkt2yjrJRHL9YMBG8mZrXK6cAqjXclHmZDcMwpxX1cPCv7C5SntoD2g4FE5As1pFVz/3iIr0Nw23umHln/RsNLBF4aJpaJiBpn5gAasrh8jRxmhI3RrCoSJWkUhyXA48lmtZCcwlL83P7wkzbR5bGRWdDkh38y5GEnUqX8BRnN2d+kTHE08GhstcJCzdkBRm7rCMO7F7J9D2De71VB7vIeFtf3Gi4ykSiJ3ud7lU9KxJLmxijR/B7gijLLaOzAyXWQyZqO81b2tILrmPJjabYq+BPfCmR7sG1rpo/LfyR4vDfPQmRzjKuLXxZbFii6EAInDEfwdfkmZJmC3cYsr6DT52J1e24EfykpOsDQ/QC6T7vKw5Mz9mF5WPvdpvQT/8Q7LD9ZpVIUTkHG4uUTOLDNxSSSWoffWB9dhd/FcTwHV/Za/j6DGmyhTTxi0b0DVoTaI59Lq3j2YPFS62E+j3jMDB1vGVgSGTrk5mI5h18wWHopvi38PWZOvgG/hA+V80M35BXyXvp4Fd9nH9zP9MLpi13MfhNCsS82mAVRE4pydvewI8Ynwvtt/DZY5PWixZTwYGc87+xfkSpleFzUMV+NtucXzHj512ip1wVx/2q77fOqiC0niyeuySFVkotvvNHZwqHd+FnpNWaGlipD63P8NmJS8Jz8s25wa9J5jqkA8oxJjlpfAs6ddY05SQu8Sldl5IhUmR91voHUjXxURia+N+L/c36oqUhdw6+xT5TKr3MBL1mYksupP23D4YvL01do9zoC6482fUBn7R6Y/3kPesLLl0Sv47nqfJD5yfrK5sz/PjerJ8xVG9OAGB770nwyWTxiRYkxCn9k6UNtQfWJ0Leg88zRpz4KBj+h9b34Htz4n3en0mjXVp4MnyuomgMOqQ8xufazSlfg++j8Of9x6mP4XPR488YfxI+wablGNZwed5OK/jPOz8XyXvr/1bmV5RR48p3m835Oc5frSwoKFGLfzvuSYCmUkYWZVmmadYYb9b6UuqT+9j3av7H1qeJj1Nf/Cr1QSsqezJ2fr8kiDhlPnXiS+bowebUg4kPyryb+iI78fnVqPaK3uwFNO88nBY9PO/zRH7yc+ZAiYjg88QXYwHmHbzJePLLBK/xkz9FR5C8ef/e/3Hs7+Cf/Gp0gMp7Ubxl8H7qW+HzSmlX2M4rfLuj6C0j3EJ8T+Rd50//Yn53VllFPLA+om4HP/bdkmf55OxZiiN3nfjeWh/Es/UHNO2KXrvW5pqfVyS7ksgulR4abNX8E2fm91VhYbs/tv5u4pO+Wwqq3qSvKm8JrPBfL3nuVZ8it4k9EzTckeFz8PvrAVteYEX6pGNipX0vxm4WyX5Q9nixr3JyhV01buuR++J0pqXMxzU/F73Rwmueu0GvGMfGfqSICW83AnMibhyfteBDLFF+kn7o6Wmhwudj63PSiHlxsNmBjba6h+AimLIB1xHEzT5iaaK08BlSLF02s/sswMjXB9pESDafMrz+j/3Sehv+az9uXPkkbdZojb39uUXtQ87wIPaJKFf12TkpwV4w+tzspD2gHbpWmEHNjaMWlzCdBgGPJz4LX/TUDzZFx+ZAxQIdsqBXDraYlMlCQofUFqbPSfuWLpiJ1E5kXpzPRU5b2Anl2gfOTxZc4dsAlbIq0MdaWIyMXyZ5VUFMkmNTHz1OLdh5AJ8GtV5saNWDqzj/RauOpCXPwzKohxcaroqorapijhJJt593iIzFouSlg9R4YfikwW7JQwbd4AvevaNnsDnW2XxvWg53vodSslYl60u++hg+Z34gMb8o+9t+8bFoRM4dOR2a4sWyyk/ATKk3uTyFBdPjLQrBoP/pZQa8VfRHmRwrf6gC71+OW7IXF3gNEYJ3Pbmzh5igHt3DnxYehH1UXNOCen5BYe1vaCHh4YXOSq/Caw6CD1nxiNGxSUzPc1CJqWK74A+9G/Kr46egJ/qnpcKyL8+rcnby62ma0t0bpSzFrYEzGY9b9wU6VFXprRQaFpQXqctOtylNZ/Lh6XA4ZD6ZNW4ctg3mqJnaHNKWyQ6vsindxtJzCe3yqignf0n1LPAkR5mmqZt92f9f8oVBJ7NbKVhBhrLdZw/k0Ma8E9aknXk90mcHCM8HBgIDgYHAQGAgMBAY8Bn4ylfaasj232kJVC/aVY9q/dphHUXPt3eKm/WJ/99ZtPt3Kr+jiUjbaeruny6gZMdr8MztX5j93oS+dOl0vX9P8J8DDD9V5z4auakWO5zSXMwqW2lqW8aiyqWyHVd+XzXC0HrEBhSXuq7ezWhVLrQeOr8AFpdtsa5caXw/2/IZfezagAdVS/aVCtrX7xO/+6lny5gLr3fohGVJ0196nESWXgCyuaSzv3hRPfn5PESKFjcKbmCwX5Lh+ziBdcvS+sObfu3ZXKYLiRku6WXCuenTy4WoP+DzSqL3dpmwwhmqdrdS8oU9/be+mhvvXYwZ9n7wCdtN4aTxfVODr9ea3uAqgj47g6h+NibDJoSiL9w0nL3GSxiCn41a3a6+lvUaW/paazMeIjXetO5BV3/Qekaf+ldtalBYtxgMb0CX7CvpyB/z938frqb+BRMYa7LBxu/QQ495ipqRM1w37dBHoivK5dwZC18BfjMyfJAJUTvnH1b4EMdt+gJCGwyH/pHulOCvFrHs7d1ubupS6O+D+PKTqr2OYw7F6o5lOGXrIk3TBe+ChkuP9b6e+t2Oi6Kwp1TH1t/BJ2g7+Jv1Z9pP1Fele8Bm+OQ5VxWVaTMMiAJKKHSsNNirH/1b91hUNzCfs35trV93604APsolrXTqv8yy8Jvr6vwUxxS6uH5jfTNSWOPgzAjP2KxPggk+ggBKiKh3GyacWGyfH/4rKM1F0QWGaW9CKTgjPvFC7I+DoHDHP7pjlDgAH9rtgfBF8wVxm6aR4PiF89D5MAoxkyOtj6K5NwK5HQTXQo8TZDvr0y6WxqdBNwQAZZi6QzLBpIG8gPegmwA35k+cNGVuKAHFTT/STI7TiJmgGa9XxKjuuxHbX3M30mZr44ITkNqu6yl7q2nsLjhT5q/RT0zXkZw7um3qC3zQ3lG0NOU44qNJlUGUQUY44DlNX8Zn3bUjM2TjSDOB7vBJp97tupGSP3Cs73lposYUvz8RAEzR1KRtE7XzAWu5qTqyvagAsMLso7YgWJ92m1ZiXz2wNP7jioy1vFAY849Y3+kXToGBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA3+Cgf8BwkaM2lVp8OwAAAAASUVORK5CYII="}))))),c.a.createElement("div",{className:"header-controls"}))),c.a.createElement("aside",{className:"pda-sidebar"},c.a.createElement("div",{style:{padding:"30px 12px 12px 12px",display:"flex"}},c.a.createElement("ul",{className:"pda-navigation",style:{listStyleType:"none"}},c.a.createElement("li",null,c.a.createElement("a",{href:"/smart-inbox-page/"},"Smart Inbox")),c.a.createElement("li",null,c.a.createElement("a",{href:"/task-details-page/"},"Task details"))))),c.a.createElement("main",{className:"pda-content"},c.a.createElement("div",{className:"content-wrapper task-details-page"},c.a.createElement("div",{className:"frame5"},c.a.createElement("task-details",{"service-url":"/pda",id:t||k.a.ATTACHMENTS.taskId,"page-code":k.a.TASK_DETAILS.pageCode,"frame-id":k.a.TASK_DETAILS.frameId,"task-pos":a||"0"})),c.a.createElement("div",{className:"frame6"},c.a.createElement("task-completion-form",{"service-url":"/pda",id:t||k.a.ATTACHMENTS.taskId,"page-code":k.a.COMPLETION_FORM.pageCode,"frame-id":k.a.COMPLETION_FORM.frameId})),c.a.createElement("div",{className:"frame7"},c.a.createElement("task-comments",{"service-url":"/pda",id:t||k.a.ATTACHMENTS.taskId,"page-code":k.a.TASK_COMMENTS.pageCode,"frame-id":k.a.TASK_COMMENTS.frameId})),c.a.createElement("div",{className:"frame8"},c.a.createElement("task-attachments",{"service-url":"/pda",id:t||k.a.ATTACHMENTS.taskId,"page-code":k.a.ATTACHMENTS.pageCode,"frame-id":k.a.ATTACHMENTS.frameId})))),c.a.createElement("footer",{className:"pda-footer"}))}),te=function(){var e=new URLSearchParams(window.location.search),t=e.get("taskId"),a=e.get("taskPos");return c.a.createElement("div",{className:"pda-wrapper"},c.a.createElement("header",{className:"pda-header"},c.a.createElement("div",{className:"header-container"},c.a.createElement("div",{className:"header-logo"},c.a.createElement("a",{href:"/"},c.a.createElement("svg",{width:"132",height:"39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{fill:"url(#pattern0)",d:"M0 0h132v39H0z"}),c.a.createElement("defs",null,c.a.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},c.a.createElement("use",{xlinkHref:"#image0",transform:"matrix(.00394 0 0 .01333 0 -.346)"})),c.a.createElement("image",{id:"image0",width:"254",height:"127",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP4AAAB/CAMAAAD4pI8eAAADAFBMVEX///8uq+L8//8jqOGy3PP2/f8JpODu+P0bpuGi1fC+4/Xl9PtMtOVDseRnvulxwOqOzO1ZuObT7Pjb8Pp0xOp+y+2U0u/L6fed2PGK0O6o2vIAoN+24PSFyOxzyOzG5fZQvOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx33BxAAAL0klEQVR4Ae1aDXujKhNVCEHFGL+NVpP9/7/yPTOgwTbt3bbpvvs8i/dujSLDnDMfDGgUhSMwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBgIDAQGAgOBgcBAYCAwEBj4FxkQSvwc7B8V/n21RZ2WS/Z9OY8kqHpKy/PtUdPfck+fEykPP2P+OpdSvhz+FqiP9GhOcRz/kIZ1DtnHHxL+CMzn792SH4RP1P7d8A//NHyxyH/Z+qr6CL4QH+bE95vRgp71Q+d/v9fnQ/d1D9VkZdeV/dwo2yS0aQz9FKaeuCkzDpMY0r6F7eO46vhoJw+txuMtjjIdmrUHhDT1QNIwTt+hdZlqNxDdpUOYW7pwx6kk2X7srzK7tNb26af+FUN5ipPj8ZjE+cJqRkNR5QXw132FJjriKrVj6yJJyPZxLLkheSk3+Ho+n9zd5JRXfcYURibPT6cmEnWZW2GJPC21jwHjQAOSd5Qs/A5fH84nOxB6nbNtLL/7d36b5WSHBCD8uJCsG37GB1MCjIWKtrhgjXUONRm+g3LX1BTUzR2QJWXOpZEGYUnZlCcUC1vr6V41iX7TYO29CR32MuPSMvodwLu+A5TCoFDM6pZcQHBDc28cE0yGYa9y8ljVt4t1/nzp8N/SNU7ecGJwFqH9e0y5DdyRJDtKbBmV8Ad7iOVI7Y4a19HN+9m9yalXrN1c7++dMtIZZlrmbGqtmqg3dWG1kKfqkt2yjrJRHL9YMBG8mZrXK6cAqjXclHmZDcMwpxX1cPCv7C5SntoD2g4FE5As1pFVz/3iIr0Nw23umHln/RsNLBF4aJpaJiBpn5gAasrh8jRxmhI3RrCoSJWkUhyXA48lmtZCcwlL83P7wkzbR5bGRWdDkh38y5GEnUqX8BRnN2d+kTHE08GhstcJCzdkBRm7rCMO7F7J9D2De71VB7vIeFtf3Gi4ykSiJ3ud7lU9KxJLmxijR/B7gijLLaOzAyXWQyZqO81b2tILrmPJjabYq+BPfCmR7sG1rpo/LfyR4vDfPQmRzjKuLXxZbFii6EAInDEfwdfkmZJmC3cYsr6DT52J1e24EfykpOsDQ/QC6T7vKw5Mz9mF5WPvdpvQT/8Q7LD9ZpVIUTkHG4uUTOLDNxSSSWoffWB9dhd/FcTwHV/Za/j6DGmyhTTxi0b0DVoTaI59Lq3j2YPFS62E+j3jMDB1vGVgSGTrk5mI5h18wWHopvi38PWZOvgG/hA+V80M35BXyXvp4Fd9nH9zP9MLpi13MfhNCsS82mAVRE4pydvewI8Ynwvtt/DZY5PWixZTwYGc87+xfkSpleFzUMV+NtucXzHj512ip1wVx/2q77fOqiC0niyeuySFVkotvvNHZwqHd+FnpNWaGlipD63P8NmJS8Jz8s25wa9J5jqkA8oxJjlpfAs6ddY05SQu8Sldl5IhUmR91voHUjXxURia+N+L/c36oqUhdw6+xT5TKr3MBL1mYksupP23D4YvL01do9zoC6482fUBn7R6Y/3kPesLLl0Sv47nqfJD5yfrK5sz/PjerJ8xVG9OAGB770nwyWTxiRYkxCn9k6UNtQfWJ0Leg88zRpz4KBj+h9b34Htz4n3en0mjXVp4MnyuomgMOqQ8xufazSlfg++j8Of9x6mP4XPR488YfxI+wablGNZwed5OK/jPOz8XyXvr/1bmV5RR48p3m835Oc5frSwoKFGLfzvuSYCmUkYWZVmmadYYb9b6UuqT+9j3av7H1qeJj1Nf/Cr1QSsqezJ2fr8kiDhlPnXiS+bowebUg4kPyryb+iI78fnVqPaK3uwFNO88nBY9PO/zRH7yc+ZAiYjg88QXYwHmHbzJePLLBK/xkz9FR5C8ef/e/3Hs7+Cf/Gp0gMp7Ubxl8H7qW+HzSmlX2M4rfLuj6C0j3EJ8T+Rd50//Yn53VllFPLA+om4HP/bdkmf55OxZiiN3nfjeWh/Es/UHNO2KXrvW5pqfVyS7ksgulR4abNX8E2fm91VhYbs/tv5u4pO+Wwqq3qSvKm8JrPBfL3nuVZ8it4k9EzTckeFz8PvrAVteYEX6pGNipX0vxm4WyX5Q9nixr3JyhV01buuR++J0pqXMxzU/F73Rwmueu0GvGMfGfqSICW83AnMibhyfteBDLFF+kn7o6Wmhwudj63PSiHlxsNmBjba6h+AimLIB1xHEzT5iaaK08BlSLF02s/sswMjXB9pESDafMrz+j/3Sehv+az9uXPkkbdZojb39uUXtQ87wIPaJKFf12TkpwV4w+tzspD2gHbpWmEHNjaMWlzCdBgGPJz4LX/TUDzZFx+ZAxQIdsqBXDraYlMlCQofUFqbPSfuWLpiJ1E5kXpzPRU5b2Anl2gfOTxZc4dsAlbIq0MdaWIyMXyZ5VUFMkmNTHz1OLdh5AJ8GtV5saNWDqzj/RauOpCXPwzKohxcaroqorapijhJJt593iIzFouSlg9R4YfikwW7JQwbd4AvevaNnsDnW2XxvWg53vodSslYl60u++hg+Z34gMb8o+9t+8bFoRM4dOR2a4sWyyk/ATKk3uTyFBdPjLQrBoP/pZQa8VfRHmRwrf6gC71+OW7IXF3gNEYJ3Pbmzh5igHt3DnxYehH1UXNOCen5BYe1vaCHh4YXOSq/Caw6CD1nxiNGxSUzPc1CJqWK74A+9G/Kr46egJ/qnpcKyL8+rcnby62ma0t0bpSzFrYEzGY9b9wU6VFXprRQaFpQXqctOtylNZ/Lh6XA4ZD6ZNW4ctg3mqJnaHNKWyQ6vsindxtJzCe3yqignf0n1LPAkR5mmqZt92f9f8oVBJ7NbKVhBhrLdZw/k0Ma8E9aknXk90mcHCM8HBgIDgYHAQGAgMBAY8Bn4ylfaasj232kJVC/aVY9q/dphHUXPt3eKm/WJ/99ZtPt3Kr+jiUjbaeruny6gZMdr8MztX5j93oS+dOl0vX9P8J8DDD9V5z4auakWO5zSXMwqW2lqW8aiyqWyHVd+XzXC0HrEBhSXuq7ezWhVLrQeOr8AFpdtsa5caXw/2/IZfezagAdVS/aVCtrX7xO/+6lny5gLr3fohGVJ0196nESWXgCyuaSzv3hRPfn5PESKFjcKbmCwX5Lh+ziBdcvS+sObfu3ZXKYLiRku6WXCuenTy4WoP+DzSqL3dpmwwhmqdrdS8oU9/be+mhvvXYwZ9n7wCdtN4aTxfVODr9ea3uAqgj47g6h+NibDJoSiL9w0nL3GSxiCn41a3a6+lvUaW/paazMeIjXetO5BV3/Qekaf+ldtalBYtxgMb0CX7CvpyB/z938frqb+BRMYa7LBxu/QQ495ipqRM1w37dBHoivK5dwZC18BfjMyfJAJUTvnH1b4EMdt+gJCGwyH/pHulOCvFrHs7d1ubupS6O+D+PKTqr2OYw7F6o5lOGXrIk3TBe+ChkuP9b6e+t2Oi6Kwp1TH1t/BJ2g7+Jv1Z9pP1Fele8Bm+OQ5VxWVaTMMiAJKKHSsNNirH/1b91hUNzCfs35trV93604APsolrXTqv8yy8Jvr6vwUxxS6uH5jfTNSWOPgzAjP2KxPggk+ggBKiKh3GyacWGyfH/4rKM1F0QWGaW9CKTgjPvFC7I+DoHDHP7pjlDgAH9rtgfBF8wVxm6aR4PiF89D5MAoxkyOtj6K5NwK5HQTXQo8TZDvr0y6WxqdBNwQAZZi6QzLBpIG8gPegmwA35k+cNGVuKAHFTT/STI7TiJmgGa9XxKjuuxHbX3M30mZr44ITkNqu6yl7q2nsLjhT5q/RT0zXkZw7um3qC3zQ3lG0NOU44qNJlUGUQUY44DlNX8Zn3bUjM2TjSDOB7vBJp97tupGSP3Cs73lposYUvz8RAEzR1KRtE7XzAWu5qTqyvagAsMLso7YgWJ92m1ZiXz2wNP7jioy1vFAY849Y3+kXToGBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA4GBwEBgIDAQGAgMBAYCA3+Cgf8BwkaM2lVp8OwAAAAASUVORK5CYII="}))))),c.a.createElement("div",{className:"header-controls"}))),c.a.createElement("aside",{className:"pda-sidebar"},c.a.createElement("div",{style:{padding:"30px 12px 12px 12px",display:"flex"}},c.a.createElement("ul",{className:"pda-navigation",style:{listStyleType:"none"}},c.a.createElement("li",null,c.a.createElement("a",{href:"/smart-inbox-page/"},"Smart Inbox")),c.a.createElement("li",null,c.a.createElement("a",{href:"/task-details-page/"},"Task details"))))),c.a.createElement("main",{className:"pda-content"},c.a.createElement("div",{className:"content-wrapper smart-inbox-page"},c.a.createElement("div",{className:"frame5"},c.a.createElement("task-list",{"service-url":"/pda","page-code":k.a.TASK_LIST.pageCode,"frame-id":k.a.TASK_LIST.frameId})),c.a.createElement("div",{className:"frame6"},c.a.createElement("task-details",{"service-url":"/pda",id:t,"task-pos":a,"page-code":k.a.TASK_DETAILS.pageCode,"frame-id":k.a.TASK_DETAILS.frameId})),c.a.createElement("div",{className:"frame7"},c.a.createElement("task-comments",{"service-url":"/pda",id:t,"page-code":k.a.TASK_COMMENTS.pageCode,"frame-id":k.a.TASK_COMMENTS.frameId})),c.a.createElement("div",{className:"frame8"},c.a.createElement("task-attachments",{"service-url":"/pda",id:t,"page-code":k.a.ATTACHMENTS.pageCode,"frame-id":k.a.ATTACHMENTS.frameId})))),c.a.createElement("footer",{className:"pda-footer"}))},ae=function(){return c.a.createElement("div",{className:"app-home"},c.a.createElement(A.a,{variant:"h1",style:{fontSize:"1.5rem"}},"Entando Process Automation Manager"),c.a.createElement(A.a,{variant:"body1"},"This is a demo page of all available Entando PAM widgets"))},ne=a(370),re=a(367),oe=a(372),ie=a(373),se=a(354),ce=a(374),le=a(353),ue=a(368),de=a(351),me=a(361),pe=a(350),ge=a(369),fe=a(349),Ae=a(363),he=a(352),ve=a(371),be=a(355),Ee=a(364),ke=a(356),ye=Object(b.a)((function(e){return{appBar:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1,fontSize:"1.5rem"},userAuth:{marginLeft:"20px"}}}));t.default=function(){var e=c.a.useState(!1),t=Object(i.a)(e,2),a=t[0],n=t[1],s=c.a.useState(!0),b=Object(i.a)(s,2),S=b[0],C=b[1],O=c.a.useState(!1),w=Object(i.a)(O,2),T=w[0],P=w[1];c.a.useEffect((function(){function e(){return(e=Object(o.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Fetching authentication token for ease of development! DEV ONLY"),e.next=3,Object(E.a)();case 3:(t=e.sent)&&t.access_token&&(console.log("New authentication token is:",t.access_token),localStorage.setItem("token",t.access_token));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var j=ye();return c.a.createElement("div",{className:"App"},c.a.createElement(l.a,null,c.a.createElement(u.c,null,c.a.createElement(u.a,{path:"/task-details-page/"},c.a.createElement(ee,null)),c.a.createElement(u.a,{path:"/smart-inbox-page/"},c.a.createElement(te,null)),c.a.createElement(u.a,{path:"/"},c.a.createElement(d.a,{position:"static",className:j.appBar},c.a.createElement(f.a,null,c.a.createElement(h.a,{edge:"start",color:"inherit","aria-label":"menu",onClick:function(){return n(!0)},className:j.menuButton},c.a.createElement(v.a,null)),c.a.createElement(A.a,{variant:"h2",className:j.title},"Entando - PAM Plugin"),c.a.createElement(g.a,{control:c.a.createElement(m.a,{checked:T,onChange:function(){return P(!T)}}),label:"Show skeleton",labelPlacement:"start"}),c.a.createElement(g.a,{control:c.a.createElement(m.a,{checked:S,onChange:function(){return C(!S)}}),label:"Lazy Loading",labelPlacement:"start"}),c.a.createElement("user-auth",{"kc-auth-url":"http://test-keycloak.51.91.30.184.nip.io/auth","kc-realm":"entando","kc-client-id":"eti-dig-ex","base-url":"",class:j.userAuth}))),c.a.createElement(U,{open:a,setOpen:n}),c.a.createElement(p.a,{className:"app-container",maxWidth:!1},c.a.createElement(u.a,{path:"/",exact:!0,component:ae}),c.a.createElement(u.a,{path:"/Connections",exact:!0,component:ne.a}),c.a.createElement(u.a,{path:"/TaskList/",render:function(){return c.a.createElement(re.a,{lazyLoading:S,pageCode:k.a.TASK_LIST.pageCode,frameId:k.a.TASK_LIST.frameId})}}),c.a.createElement(u.a,{path:"/TaskListConfig",render:function(){return c.a.createElement($,{pageCode:k.a.TASK_LIST.pageCode,frameId:k.a.TASK_LIST.frameId},c.a.createElement(oe.a,null))}}),c.a.createElement(u.a,{path:"/TaskDetails/",render:function(){return c.a.createElement(ue.a,{taskId:k.a.TASK_DETAILS.taskId,pageCode:k.a.TASK_DETAILS.pageCode,frameId:k.a.TASK_DETAILS.frameId,widgetCode:k.a.TASK_DETAILS.widgetCode,taskPos:"0",groups:y.a.TASK_LIST.payload.config.groups})}}),c.a.createElement(u.a,{path:"/TaskDetailsConfig",render:function(){return c.a.createElement($,{pageCode:k.a.TASK_DETAILS.pageCode,frameId:k.a.TASK_DETAILS.frameId},c.a.createElement(de.a,null))}}),c.a.createElement(u.a,{path:"/TaskCompletionForm/",render:function(){return c.a.createElement(me.a,{taskId:k.a.COMPLETION_FORM.taskId,pageCode:k.a.COMPLETION_FORM.pageCode,frameId:k.a.COMPLETION_FORM.frameId,widgetCode:k.a.COMPLETION_FORM.widgetCode})}}),c.a.createElement(u.a,{path:"/TaskCompletionFormConfig",render:function(){return c.a.createElement($,{pageCode:k.a.COMPLETION_FORM.pageCode,frameId:k.a.COMPLETION_FORM.frameId},c.a.createElement(pe.a,null))}}),c.a.createElement(u.a,{path:"/TaskComments/",render:function(){return c.a.createElement(ge.a,{taskId:k.a.TASK_COMMENTS.taskId,pageCode:k.a.TASK_COMMENTS.pageCode,frameId:k.a.TASK_COMMENTS.frameId,widgetCode:k.a.TASK_COMMENTS.widgetCode})}}),c.a.createElement(u.a,{path:"/TaskCommentsConfig",render:function(){return c.a.createElement($,{pageCode:k.a.TASK_COMMENTS.pageCode,frameId:k.a.TASK_COMMENTS.frameId},c.a.createElement(fe.a,null))}}),c.a.createElement(u.a,{path:"/SummaryCard/",render:function(){return c.a.createElement(ce.a,{pageCode:k.a.SUMMARY_CARD.pageCode,frameId:k.a.SUMMARY_CARD.frameId,widgetCode:k.a.SUMMARY_CARD.widgetCode})}}),c.a.createElement(u.a,{path:"/SummaryCardConfig/",render:function(){return c.a.createElement($,{pageCode:k.a.SUMMARY_CARD.pageCode,frameId:k.a.SUMMARY_CARD.frameId},c.a.createElement(le.a,null))}}),c.a.createElement(u.a,{path:"/ProcessForm",render:function(){return c.a.createElement(Ae.a,{pageCode:k.a.PROCESS_FORM.pageCode,frameId:k.a.PROCESS_FORM.frameId,widgetCode:k.a.PROCESS_FORM.widgetCode})}}),c.a.createElement(u.a,{path:"/ProcessFormConfig",render:function(){return c.a.createElement($,{pageCode:k.a.PROCESS_FORM.pageCode,frameId:k.a.PROCESS_FORM.frameId},c.a.createElement(he.a,null))}}),c.a.createElement(u.a,{path:"/OvertimeGraph",render:function(){return c.a.createElement(ie.a,{pageCode:k.a.OVERTIME_GRAPH.pageCode,frameId:k.a.OVERTIME_GRAPH.frameId,widgetCode:k.a.OVERTIME_GRAPH.widgetCode})}}),c.a.createElement(u.a,{path:"/OvertimeGraphConfig",render:function(){return c.a.createElement($,{pageCode:k.a.OVERTIME_GRAPH.pageCode,frameId:k.a.OVERTIME_GRAPH.frameId},c.a.createElement(se.a,null))}}),c.a.createElement(u.a,{path:"/Attachments",render:function(){return c.a.createElement(ve.a,{taskId:k.a.ATTACHMENTS.taskId,pageCode:k.a.ATTACHMENTS.pageCode,frameId:k.a.ATTACHMENTS.frameId,widgetCode:k.a.ATTACHMENTS.widgetCode})}}),c.a.createElement(u.a,{path:"/AttachmentsConfig",render:function(){return c.a.createElement($,{pageCode:k.a.ATTACHMENTS.pageCode,frameId:k.a.ATTACHMENTS.frameId},c.a.createElement(be.a,null))}}),c.a.createElement(u.a,{path:"/ProcessDefinition",render:function(){return c.a.createElement(Ee.a,{taskId:k.a.PROCESS_DEFINITION.taskId,pageCode:k.a.PROCESS_DEFINITION.pageCode,frameId:k.a.PROCESS_DEFINITION.frameId,widgetCode:k.a.PROCESS_DEFINITION.widgetCode})}}),c.a.createElement(u.a,{path:"/ProcessDefinitionConfig",render:function(){return c.a.createElement($,{pageCode:k.a.PROCESS_DEFINITION.pageCode,frameId:k.a.PROCESS_DEFINITION.frameId},c.a.createElement(ke.a,null))}}))))))}},173:function(e,t,a){"use strict";var n=a(0),r=a.n(n).a.createContext({selectedRows:new Set});r.displayName="TableBulkSelectContext",t.a=r},175:function(e,t,a){"use strict";var n=a(0),r=a.n(n).a.createContext({});t.a=r},176:function(e,t,a){"use strict";a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return f}));var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(39),c=a(14),l={payload:["requests","impressions"],errors:[]},u={payload:{value:2123,percentage:.9243},errors:[]},d={payload:{series:[{id:"requests",values:[{date:"2020-01-01",value:18},{date:"2019-01-01",value:111},{date:"2018-01-01",value:72},{date:"2017-01-01",value:64},{date:"2016-01-01",value:40},{date:"2015-01-01",value:18},{date:"2014-01-01",value:72},{date:"2013-01-01",value:85},{date:"2012-01-01",value:40},{date:"2011-01-01",value:64}],card:{value:5,percentage:.16216216216216217}},{id:"cases",values:[{date:"2020-01-01",value:5},{date:"2019-01-01",value:85},{date:"2018-01-01",value:32},{date:"2017-01-01",value:48},{date:"2016-01-01",value:19.5},{date:"2015-01-01",value:10},{date:"2014-01-01",value:57},{date:"2013-01-01",value:29},{date:"2012-01-01",value:18},{date:"2011-01-01",value:48}],card:{value:18,percentage:.6216216216216217}}]},errors:[]},m=function(e){switch(e){case"Card":return u;case"TimeSeries":return d;default:return{}}},p=function(){var e=Object(i.a)(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.a)({domain:c.a.PDA,uri:"/connections/".concat(t,"/summaries/repositories"),method:c.d.GET,mockResponse:l,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g={frequency:"DAILY"},f=function(){var e=Object(i.a)(o.a.mark((function e(t,a,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(s.a)({domain:c.a.PDA,uri:"/connections/".concat(t,"/summaries/summaryTypes/").concat(a),method:c.d.POST,body:JSON.stringify(Object(n.a)({},g,{},r)),mockResponse:m(a),useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}()},179:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return s}));var n=a(90),r=a.n(n);function o(e,t){return function(a,n){var o=a[e],i=n[e];return"asc"===t?r()(o).isBefore(i)?-1:r()(i).isBefore(o)?1:0:r()(o).isBefore(i)?1:r()(i).isBefore(o)?-1:0}}function i(e,t){return function(a,n){var r=a[e]?a[e].toUpperCase():"",o=n[e]?n[e].toUpperCase():"";return"asc"===t?r<o?-1:r>o?1:0:r<o?1:r>o?-1:0}}function s(e,t){return function(a,n){var r=a[e],o=n[e];return"asc"===t?r-o:o-r}}},182:function(e,t,a){"use strict";a.d(t,"b",(function(){return D})),a.d(t,"a",(function(){return R})),a.d(t,"e",(function(){return M})),a.d(t,"c",(function(){return L})),a.d(t,"d",(function(){return B}));var n=a(79),r=a(11),o=a(0),i=a.n(o),s=a(90),c=a.n(s),l=a(680),u=a.n(l),d=a(681),m=a.n(d),p=a(682),g=a.n(p),f=a(7),A=a(17),h=a(15),v=a(19),b=a(18),E=a(679),k=a(1483),y=a(678),S=a.n(y),C=a(378),O=function(e){Object(b.a)(a,e);var t=Object(v.a)(a);function a(){var e;Object(A.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={anchorEl:null,open:!1},e.handleClick=function(t){t.stopPropagation(),e.setState({open:!0,anchorEl:t.currentTarget})},e.handleClose=function(t){t.stopPropagation(),e.setState({open:!1})},e}return Object(h.a)(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.menuItems,n=t.id,r=t.minMenuWidth,o=this.state,s=o.open,c=o.anchorEl;return i.a.createElement(i.a.Fragment,null,i.a.createElement(C.a,{onClick:this.handleClick,"aria-owns":s?n:null,"aria-haspopup":"true",open:s,size:"small"},i.a.createElement(S.a,{fontSize:"small"})),i.a.createElement(E.a,{id:n,anchorEl:c,open:s,onClose:this.handleClose,PaperProps:{style:{maxHeight:200,minWidth:r}}},a.map((function(t){var a=t.onClick,n=t.text,r=t.icon;return i.a.createElement(k.a,{onClick:function(t){a&&a(),e.handleClose(t)},key:n,dense:!0},r," ","\xa0".concat(n))}))))}}]),a}(i.a.Component);O.defaultProps={id:"",menuItems:[],minMenuWidth:0};var w=O,T=function(e,t){var a=t.openDiagram;return function(t){var n=[];return e.showComplete&&n.push({text:f.a.t("taskList.actionButtons.complete"),icon:i.a.createElement(u.a,{fontSize:"small"})}),e.showClaim&&n.push({text:f.a.t("taskList.actionButtons.claim"),icon:i.a.createElement(m.a,{fontSize:"small"})}),n.push({text:f.a.t("taskList.actionButtons.diagram"),icon:i.a.createElement(g.a,{fontSize:"small"}),onClick:a(t.row)}),i.a.createElement(w,{menuItems:n})}},P=a(343),j=a(179),x=a(345),I=function(e,t){var a=j.c;return t[e]instanceof Date?a=j.a:"number"===typeof t[e]&&(a=j.b),a},N=function(e){var t=c()(),a=c()(e);return t.diff(a,"hours")<=24?"success":t.diff(a,"days")<=7?"warning":"error"},D=function(e,t){var a=e.filter((function(e){return e.isVisible})).map((function(e){return{header:e.header,accessor:e.name,position:e.position,sortFunction:I(e,t)}}));return a.sort((function(e,t){return e.position>t.position?1:e.position<t.position?-1:0})),a.map((function(e){return"status"===e.accessor?Object(r.a)({},e,{customCell:function(e){var t=e.row;return i.a.createElement(x.a,{label:t.status,value:N(t.createdAt)})}}):e}))},R=function(e,t,a){var r=a.openDiagram,o=a.selectTask,i=t.reduce((function(e,t){return e[t.key]=t.checked,e}),{}),s={header:"_checkbox",customCell:Object(P.b)(),styles:{position:"sticky",left:0,zIndex:10,width:20,borderRight:"1px solid #eee",paddingRight:16,textAlign:"center"}},c={header:"Actions",accessor:"action",customCell:T(i,{openDiagram:r,selectTask:o}),styles:{position:"sticky",right:0,width:20,borderLeft:"1px solid #eee",paddingLeft:16,textAlign:"center"}};return[s].concat(Object(n.a)(e),[c])},M=function(e){return e.map((function(e){var t={};return Object.keys(e).forEach((function(a){e[a]instanceof Object?t[a]="":t[a]=String(e[a])})),t}))},L=function(e){return e.map((function(e,t){return{name:e,position:t,isVisible:!0}}))},B=function(e){return e.map((function(e){return{label:e,key:e,checked:!0}}))}},21:function(e,t,a){"use strict";var n=a(96),r="dev_env_page",o="30@mortgage-process_1.0.0-SNAPSHOT";t.a={TASK_LIST:{pageCode:r,frameId:"0",widgetCode:"entando_widgets_task_list",configs:n.a.TASK_LIST},TASK_DETAILS:{pageCode:r,taskId:o,frameId:"1",widgetCode:"entando_widgets_task_details",configs:n.a.TASK_DETAILS},COMPLETION_FORM:{pageCode:r,taskId:o,frameId:"2",widgetCode:"entando_widgets_completion_form",configs:n.a.COMPLETION_FORM},TASK_COMMENTS:{pageCode:r,taskId:o,frameId:"3",widgetCode:"entando_widgets_comments",configs:n.a.TASK_COMMENTS},SUMMARY_CARD:{pageCode:r,frameId:"4",widgetCode:"entando_widgets_summary_card",configs:n.a.SUMMARY_CARD},PROCESS_FORM:{pageCode:r,frameId:"5",widgetCode:"entando_widgets_process_form",configs:n.a.PROCESS_FORM},OVERTIME_GRAPH:{pageCode:r,frameId:"6",widgetCode:"entando_widgets_overtime_graph",configs:n.a.OVERTIME_GRAPH},ATTACHMENTS:{pageCode:r,taskId:o,frameId:"7",widgetCode:"entando_widgets_widgets_attachments",configs:n.a.ATTACHMENTS},PROCESS_DEFINITION:{pageCode:r,taskId:o,frameId:"8",widgetCode:"entando_widgets_process_definition",configs:n.a.PROCESS_DEFINITION}}},224:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=function(){var e=Object(o.a)(r.a.mark((function e(t){var a,n=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",new Promise((function(e){a.ref=setTimeout(e,t)})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.a={timeout:i,toBase64:function(e){return new Promise((function(t,a){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){var a=n.result.split(";"),r="".concat(a[0],";name=").concat(e.name,";").concat(a[1]);t(r)},n.onerror=function(e){return a(e)}}))}}},231:function(e,t,a){"use strict";var n=a(11),r=a(0),o=a.n(r),i=a(7),s=a(279),c=a(467),l=a(8),u=a(278),d=a(719),m=a(194),p=a(175),g=a(26),f=a.n(g),A=a(1497),h=a(1456),v=f()({header:{marginTop:"20px"},divider:{marginTop:"25px",marginBottom:"53px"},item:{marginBottom:"53px"},field:{marginTop:"8px",marginBottom:"3px"},controls:{display:"flex",justifyContent:"flex-end",marginTop:"20px"}})((function(e){var t=e.classes;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement(A.a,{width:"280px",height:18,variant:"rect",className:t.header}),o.a.createElement(h.a,{className:t.divider})),o.a.createElement("div",{className:t.item},o.a.createElement(A.a,{width:"80px",height:15,variant:"rect"}),o.a.createElement(h.a,{className:t.field}),o.a.createElement(A.a,{width:"120px",height:12,variant:"rect"})),o.a.createElement("div",null,o.a.createElement(A.a,{width:"80px",height:15,variant:"rect"}),o.a.createElement(h.a,{className:t.field}),o.a.createElement(A.a,{width:"160px",height:12,variant:"rect"})),o.a.createElement("div",{className:t.controls},o.a.createElement(A.a,{width:"80px",height:30,variant:"rect"})))})),b=a(3),E=a.n(b),k=a(123),y=a(1502),S=Object(k.a)({label:{marginTop:"5px",marginBottom:"15px",fontWeight:"bold",fontSize:"13px",lineHeight:"15px",color:"#676A6C"},disabled:{cursor:"not-allowed"},disabledLabel:{color:"#BBBBBB",cursor:"not-allowed"},error:{color:"#f44336"}}),C=function(e){var t=S(e),a=e.id,n=e.label,r=e.required,i=e.displayLabel,s=e.children,c=e.disabled,l=e.uiSchema,u=e.errors.props.errors,d=e.hidden,m=l&&l["ui:options"]||{},p=i&&!d;return o.a.createElement("div",{className:E()(t.container,c&&t.disabled)},p&&o.a.createElement("label",{htmlFor:a,className:E()(t.label,c&&t.disabledLabel,u&&t.error)},n,r?" *":null),m.innerSize?o.a.createElement(y.a,{container:!0,spacing:3,className:t.gridContainer},o.a.createElement(y.a,{item:!0,xs:m.innerSize},s)):o.a.createElement("div",{className:t.field},s))};C.defaultProps={displayLabel:!0,disabled:!1,hidden:!1,required:!1,label:""};var O=C,w=Object(k.a)({header:{fontSize:function(e){var t=e.idSchema;return t&&t.$id&&"root"===t.$id?"20px":"initial"},marginBottom:function(e){var t=e.idSchema;return t&&t.$id&&"root"===t.$id?"20px":"initial"}},gridContainer:{padding:"0px"},divider:{marginTop:"11px",marginBottom:"11px"},description:{fontSize:"12px",marginBottom:"20px"},gridItem:{padding:"0px",marginLeft:function(e){var t=e.uiSchema;return t&&t["ui:options"]&&t["ui:options"].group?"-12px":"initial"},marginRight:function(e){var t=e.uiSchema;return t&&t["ui:options"]&&t["ui:options"].group?"-12px":"initial"}}}),T=function(e){var t=function(t){var a=w(t),n=t.title,r=t.description,i=t.properties,s=t.uiSchema,c=t.idSchema,l=s&&s["ui:options"]||{},u=!l.hideHeader&&!l.group,d=l.hideDivider||c&&c.$id&&"root"===c.$id;return o.a.createElement("div",null,u&&o.a.createElement("div",{className:a.header},n,!d&&o.a.createElement(h.a,{className:a.divider}),r&&o.a.createElement("div",{className:a.description},r)),o.a.createElement(y.a,{container:!0,spacing:3,direction:l.direction||"row",className:a.gridContainer},i.map((function(t){var n=(t.content.props&&t.content.props.uiSchema&&t.content.props.uiSchema["ui:options"]||{}).size||e||12;return o.a.createElement(y.a,{item:!0,xs:n,className:a.gridItem,key:t.content.key},t.content)}))))};return t.defaultProps={description:"",title:"",uiSchema:{},idSchema:{}},t},P=a(60),j=a(1506),x=a(362),I=a(1451),N=Object(k.a)({formControl:{width:"100%"}}),D=function(e){var t=N(),a=e.id,n=e.required,r=e.disabled,i=e.readonly,s=e.value,c=e.onChange,l=e.options,u=e.label,d=e.schema;return o.a.createElement(P.a,{utils:x.a},o.a.createElement(I.a,{required:n,className:t.formControl},o.a.createElement(j.a,{id:a,label:u||d.title,inputVariant:"outlined",format:l.format||"YYYY-MM-DD",InputProps:{notched:!1},value:s,onChange:function(e){c(e?e.toString():l.emptyValue||null)},disabled:r||i,clearable:!0})))};D.defaultProps={id:"",required:!1,value:"",onChange:function(){},disabled:!1,readonly:!1,label:"",options:{emptyValue:""},schema:{title:""}};var R=D,M=a(1533),L=Object(k.a)({formControl:{width:"100%"}}),B=function(e){var t=L(),a=e.id,n=e.required,r=e.disabled,i=e.readonly,s=e.value,c=e.onChange,l=e.options,u=e.label,d=e.schema;return o.a.createElement(P.a,{utils:x.a},o.a.createElement(I.a,{required:n,className:t.formControl},o.a.createElement(M.a,{id:a,label:u||d.title,inputVariant:"outlined",ampm:l.ampm||!1,format:l.format||"YYYY-MM-DD HH:mm",InputProps:{notched:!1},value:s||null,onChange:function(e){c(e?e.toString():l.emptyValue||null)},disabled:r||i,clearable:!0})))};B.defaultProps={id:"",required:!1,value:"",onChange:function(){},disabled:!1,readonly:!1,label:"",options:{emptyValue:""},schema:{title:""}};var F=B,_=a(1496),H=Object(k.a)({formControl:{width:"100%"}}),Z=function(e){var t=H(),a=e.id,n=e.required,r=e.disabled,i=e.readonly,s=e.value,c=e.onChange,l=e.onBlur,u=e.onFocus,d=e.options,m=e.label,p=e.schema,g=e.error;return o.a.createElement(I.a,{required:n,className:t.formControl},o.a.createElement(_.a,{id:a,label:m||p.title,type:"email",error:g,onChange:function(e){return c(""===s?d.emptyValue:e.target.value)},onBlur:function(e){return l(e.target.value)},onFocus:function(e){return u(e.target.value)},disabled:r||i}))};Z.defaultProps={id:"",required:!1,error:!1,value:"",onChange:function(){},onBlur:function(){},onFocus:function(){},disabled:!1,readonly:!1,label:"",options:{emptyValue:""},schema:{title:""}};var z=Z,V=Object(k.a)({formControl:{width:"100%"}}),U=function(e){var t=V(),a=e.id,n=e.required,r=e.disabled,i=e.readonly,s=e.value,c=e.onChange,l=e.onBlur,u=e.onFocus,d=e.options,m=e.label,p=e.schema,g=e.error;return o.a.createElement(I.a,{required:n,className:t.formControl},o.a.createElement(_.a,{id:a,label:m||p.title,type:"number",error:g,onChange:function(e){return c(""===s?d.emptyValue:e.target.value)},onBlur:function(e){return l(e.target.value)},onFocus:function(e){return u(e.target.value)},disabled:r||i}))};U.defaultProps={id:"",required:!1,error:!1,value:"",onChange:function(){},onBlur:function(){},onFocus:function(){},disabled:!1,readonly:!1,label:"",options:{emptyValue:""},schema:{title:""}};var q=U,K=function(e){var t=e.classes,a=e.loading,r=e.submitting,l=e.formSchema,g=e.formData,f=e.uiSchema,A=e.uiSchemas,h=e.defaultColumnSize,b=e.customization,E=b.fields,k=void 0===E?{}:E,y=b.templates,S=void 0===y?{}:y,C=b.widgets,w=void 0===C?{}:C;if(a)return o.a.createElement(v,null);if(!a&&!l)return i.a.t("messages.warnings.noFormSchema");var P=Object(s.a)({overrides:{MuiOutlinedInput:{root:{borderRadius:"0px"},multiline:{paddingTop:"0px",paddingBottom:"0px"},input:{paddingTop:"8px",paddingBottom:"8px"},inputMultiline:{paddingTop:"8px",paddingBottom:"8px"}},MuiFormLabel:{root:{display:"none"}},MuiInputLabel:{root:{display:"none"}}},props:{MuiFormControl:{hiddenLabel:!0},MuiTextField:{variant:"outlined",InputProps:{notched:!1},InputLabelProps:{shrink:!0}},MuiOutlinedInput:{notched:!1},MuiSelect:{size:"small",variant:"outlined"},MuiSlider:{marks:!0,valueLabelDisplay:"auto"},MuiCheckbox:{color:"primary"}}}),j=Object(u.withTheme)(d.a),x=T(h),I=Object(n.a)({FieldTemplate:O,ObjectFieldTemplate:x},S),N=Object(n.a)({DateWidget:R,DateTimeWidget:F,EmailWidget:z,UpDownWidget:q},w),D=l.$id,M=function(){if(f)return f;var e=A.find((function(e){return e.formSchemaId===D}));if(e)return e.uiSchema;var t=A.find((function(e){return"*"===e.formSchemaId}));return t?t.uiSchema:{}}();return o.a.createElement(p.a.Consumer,null,(function(e){var n=e.onSubmitForm;return o.a.createElement("div",null,a&&o.a.createElement(v,null),!a&&o.a.createElement(c.a,{theme:P},o.a.createElement(j,Object.assign({schema:l,uiSchema:M},I,{widgets:N,fields:k,formData:g,className:t.themedForm,onSubmit:function(e){return n(e)}}),o.a.createElement("div",{className:t.actionButtons},o.a.createElement(m.a,{type:"submit",variant:"contained",color:"primary",disabled:r},i.a.t(r?"messages.notify.submitting":"common.submit"))))))}))};K.defaultProps={loading:!1,submitting:!1,formSchema:null,formData:{},uiSchema:null,uiSchemas:[],defaultColumnSize:12,customization:{}};t.a=Object(l.a)({actionButtons:{display:"flex",justifyContent:"flex-end",marginTop:"10px"},divider:{marginTop:"20px",marginBottom:"10px"},themedForm:{"& .MuiInputBase-input.MuiInputBase-inputMultiline":{resize:"vertical"}}})(K)},232:function(e,t,a){"use strict";var n=a(79),r=a(17),o=a(12),i=a(15),s=a(19),c=a(18),l=a(0),u=a.n(l),d=a(7),m=a(8),p=a(1487),g=a(41),f=a(1446),A=a(1447),h=a(3),v=a.n(h),b=a(194),E=a(468),k=a(729),y=a(469),S=a(728),C=function(e){var t=e.classes,a=e.isOpen,n=e.isNew,r=e.onClickClose,o=e.onClickAccept,i=e.formSchemaId,s=e.uiSchema,c=Object(l.useState)(i),m=Object(g.a)(c,2),p=m[0],f=m[1],A=Object(l.useState)(s),h=Object(g.a)(A,2),C=h[0],O=h[1],w=Object(l.useState)(!0),T=Object(g.a)(w,2),P=T[0],j=T[1],x=Object(l.useState)(!0),I=Object(g.a)(x,2),N=I[0],D=I[1];Object(l.useEffect)((function(){return f(i)}),[i]),Object(l.useEffect)((function(){return O(s)}),[s]),Object(l.useEffect)((function(){return function(e){if(""===e)D(!0);else try{JSON.parse(e),D(!0)}catch(t){D(!1)}}(C)}),[C]);var R=function(e){var t=e.target.value;f(t),j(""!==t)},M=!P||!N||""===p;return u.a.createElement(E.a,{open:a,onClose:r,"aria-labelledby":d.a.t("config.editUiSchema"),fullWidth:!0,maxWidth:"lg"},u.a.createElement(S.a,{id:"form-dialog-title"},n?d.a.t("config.createUiSchema"):d.a.t("config.editUiSchema")),u.a.createElement(y.a,null,u.a.createElement("div",{className:t.container},u.a.createElement("div",{className:t.field},u.a.createElement("div",{className:t.fieldLabel},d.a.t("config.formSchemaId")),u.a.createElement("div",null,u.a.createElement("input",{required:!0,className:v()(t.formSchemaId,!P&&t.invalid),value:p,onChange:R,onKeyDown:R}),u.a.createElement("span",{className:t.note},d.a.t("config.genericSchemaRule")))),u.a.createElement("div",{className:t.field},u.a.createElement("div",{className:t.fieldLabel},d.a.t("config.uiSchemas"),":"),u.a.createElement("textarea",{rows:10,className:v()(t.uiSchema,!N&&t.invalid),value:C,onChange:function(e){var t=e.target.value;return O(t)},onBlur:function(e){var t=e.target.value;N&&O(JSON.stringify(JSON.parse(t),null,2))}})))),u.a.createElement(k.a,null,u.a.createElement(b.a,{onClick:r,color:"primary"},d.a.t("common.cancel")),u.a.createElement(b.a,{disabled:M,onClick:function(){P&&N&&(o(i,p,JSON.parse(C)),r(),f(""),O("{}"))},color:"primary"},n?d.a.t("common.add"):d.a.t("common.change"))))};C.defaultProps={isNew:!1,formSchemaId:"",uiSchema:"{}"};var O=Object(m.a)({container:{"& > div + div":{marginTop:"10px"}},field:{flexGrow:1,"& label, & input":{display:"block"}},note:{fontSize:"12px"},fieldLabel:{fontWeight:600},formSchemaId:{width:"100%"},uiSchema:{width:"100%",fontFamily:"monospace, monospace",fontSize:"14px",resize:"vertical"},invalid:{backgroundColor:"#ffc4b1"},disabled:{backgroundColor:"#dddddd"}})(C),w=a(1485),T=a(1486),P=Object(m.a)({controls:{display:"flex",alignItems:"center",marginLeft:"30px",padding:"10px 10px","& > div + div ":{marginLeft:"20px"}},button:{border:"0px",backgroundColor:"inherit",display:"flex",alignItems:"center","& > svg":{fill:"#888888"},"&:hover > svg":{fill:"#555555"},"& > * + *":{marginLeft:"3px"}}})((function(e){var t=e.classes,a=e.name,n=e.onClickEdit,r=e.onClickRemove;return u.a.createElement("div",{className:t.controls},u.a.createElement("button",{type:"button",onClick:function(){return n(a)},className:t.button,title:d.a.t("config.editUiSchema")},u.a.createElement(w.a,{fontSize:"small"}),u.a.createElement("span",null,d.a.t("common.edit"))),u.a.createElement("button",{type:"button",onClick:function(){return r(a)},className:t.button,title:d.a.t("config.removeUiSchema")},u.a.createElement(T.a,{fontSize:"small"}),u.a.createElement("span",null,d.a.t("common.remove"))))})),j=function(e){var t=e.classes,a=e.name,n=e.uiSchema,r=e.onChangeValues,o=e.onClickRemove,i=Object(l.useState)(!1),s=Object(g.a)(i,2),c=s[0],m=s[1],p=Object(l.useState)(!1),h=Object(g.a)(p,2),v=h[0],b=h[1],E=function(){return m(!c)};return u.a.createElement("div",{className:t.container},u.a.createElement("div",{className:t.top},u.a.createElement("div",{className:t.field},u.a.createElement("div",{className:t.fieldLabel},d.a.t("config.formSchemaId")),u.a.createElement("div",null,a)),u.a.createElement(P,{name:a,onClickEdit:E,onClickRemove:function(){return o(a)}})),u.a.createElement("div",{className:t.field},u.a.createElement("button",{type:"button",onClick:function(){return b(!v)},className:t.expandButton},u.a.createElement("div",{className:t.fieldLabel},d.a.t("config.uiSchema")),v?u.a.createElement(f.a,null):u.a.createElement(A.a,null)),v&&u.a.createElement("textarea",{disabled:!0,rows:5,className:t.uiSchema,value:n})),u.a.createElement(O,{isOpen:c,onClickClose:E,onClickAccept:r,formSchemaId:a,uiSchema:n}))};j.defaultProps={name:"",uiSchema:""};var x=Object(m.a)({container:{margin:"15px 0",paddingLeft:"15px",borderLeft:"4px solid #888888",fontSize:"12px"},top:{display:"flex",justifyContent:"space-between",alignItems:"center"},field:{flexGrow:1,"& label, & input":{display:"block"}},fieldLabel:{fontWeight:600,display:"flex",alignItems:"center"},expandButton:{border:"0px",padding:"0px",marginBottom:"5px",backgroundColor:"inherit",display:"flex",alignItems:"center"},uiSchema:{width:"100%",fontFamily:"monospace, monospace",fontSize:"12px",resize:"vertical",backgroundColor:"#dddddd",cursor:"not-allowed"}})(j),I=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(e){var n;return Object(r.a)(this,a),(n=t.call(this,e)).state={addDialogOpen:!1},n.toggleDialog=n.toggleDialog.bind(Object(o.a)(n)),n.handleClickAddSchema=n.handleClickAddSchema.bind(Object(o.a)(n)),n.handleChangeValues=n.handleChangeValues.bind(Object(o.a)(n)),n.handleClickRemove=n.handleClickRemove.bind(Object(o.a)(n)),n}return Object(i.a)(a,null,[{key:"parseSchema",value:function(e){try{return JSON.parse(e)}catch(t){return[]}}}]),Object(i.a)(a,[{key:"toggleDialog",value:function(){var e=this.state.addDialogOpen;this.setState({addDialogOpen:!e})}},{key:"handleClickAddSchema",value:function(e,t,r){var o=this.props,i=o.schemas,s=o.onChange,c=a.parseSchema(i);s(JSON.stringify([].concat(Object(n.a)(c),[{formSchemaId:t,uiSchema:r}])))}},{key:"handleChangeValues",value:function(e,t,n){var r=this.props,o=r.schemas,i=r.onChange,s=a.parseSchema(o);i(JSON.stringify(s.map((function(a){return a.formSchemaId===e?{formSchemaId:t,uiSchema:n}:a})),null,2))}},{key:"handleClickRemove",value:function(e){var t=this.props,n=t.schemas,r=t.onChange,o=a.parseSchema(n);r(JSON.stringify(o.filter((function(t){return t.formSchemaId!==e})),null,2))}},{key:"render",value:function(){var e=this,t=this.state.addDialogOpen,n=this.props,r=n.classes,o=n.schemas,i=a.parseSchema(o);return u.a.createElement("div",null,u.a.createElement("div",null,u.a.createElement("button",{type:"button",onClick:this.toggleDialog,className:r.addButton,title:d.a.t("config.addNewSchemaTitle")},u.a.createElement(p.a,{fontSize:"small"}),u.a.createElement("span",null,d.a.t("config.addNewSchema")))),i.map((function(t){var a=t.formSchemaId,n=t.uiSchema;return u.a.createElement(x,{key:a,name:a,uiSchema:JSON.stringify(n,null,2),onChangeValues:e.handleChangeValues,onClickRemove:e.handleClickRemove})})),u.a.createElement(O,{isNew:!0,isOpen:t,onClickClose:this.toggleDialog,onClickAccept:this.handleClickAddSchema}))}}]),a}(u.a.Component);I.defaultProps={schemas:""};t.a=Object(m.a)({addButton:{border:"0px",backgroundColor:"inherit",fontSize:"12px",display:"flex",alignItems:"center","& > svg":{fill:"#888888"},"&:hover > svg":{fill:"#555555"},"& > * + *":{marginLeft:"5px"}}})(I)},236:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n),o=a(152);r.a.memo(r.a.forwardRef((function(e,t){var a=e.className;return r.a.createElement(o.a,{ref:t,width:"7",height:"13",viewBox:"0 0 7 13",fill:"none",className:a},r.a.createElement("path",{d:"M6.91208 3.84435C6.84678 3.77905 6.75971 3.73552 6.66539 3.73552C6.63637 3.73552 6.60734 3.74277 6.57832 3.75003L3.70511 4.46107L4.94582 1.10174C4.96758 1.05821 4.98209 1.01467 4.98209 0.97114C4.98209 0.804262 4.83698 0.666406 4.65559 0.666406H2.27576C2.1234 0.666406 1.9928 0.760728 1.95652 0.898584L0.498146 6.88444C0.476379 6.98602 0.505402 7.09485 0.592469 7.16741C0.650513 7.21819 0.73758 7.24722 0.817392 7.24722C0.846414 7.24722 0.875436 7.24722 0.904459 7.23996L3.85022 6.50715L2.42087 12.3697C2.3846 12.522 2.47892 12.6744 2.63854 12.7252C2.67482 12.7324 2.7111 12.7397 2.74012 12.7397C2.87072 12.7397 2.98681 12.6671 3.04485 12.5583L6.96287 4.1636C7.01366 4.05476 6.99189 3.93142 6.91208 3.84435Z",fill:"currentcolor"}))}))).displayName="HotTrendIcon";var i=r.a.memo(r.a.forwardRef((function(e,t){var a=e.className;return r.a.createElement(o.a,{ref:t,width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",className:a},r.a.createElement("path",{d:"M7.38618 4.23054C7.46599 4.07092 7.43697 3.87502 7.32088 3.73716L4.99909 0.951021C4.82496 0.740609 4.46218 0.740609 4.28805 0.951021L1.96626 3.73716C1.85017 3.87502 1.82841 4.07092 1.90096 4.23054C1.98077 4.39742 2.1404 4.499 2.32179 4.499H3.71486V9.14257H1.39307C1.32777 9.14257 1.25522 9.17159 1.21168 9.22238L0.0507891 10.6155C-0.00725558 10.688 -0.0145112 10.7823 0.0217667 10.8694C0.0580446 10.9492 0.145112 11 0.232179 11H5.34011C5.47071 11 5.57229 10.8984 5.57229 10.7678V4.499H6.96536C7.14675 4.499 7.30637 4.39742 7.38618 4.23054Z",fill:"currentcolor"}))})));i.displayName="UpTrendIcon";var s=r.a.memo(r.a.forwardRef((function(e,t){var a=e.className;return r.a.createElement(o.a,{ref:t,width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",className:a},r.a.createElement("path",{d:"M0.997315 0.366849C0.910248 0.366849 0.823181 0.424893 0.786903 0.504704C0.750626 0.584516 0.757881 0.686094 0.815926 0.751394L1.97682 2.14447C2.02761 2.19525 2.09291 2.22428 2.15821 2.22428H4.47999V6.86785H3.08692C2.90553 6.86785 2.74591 6.97668 2.6661 7.13631C2.59354 7.30318 2.61531 7.49908 2.7314 7.63694L5.05318 10.4231C5.22732 10.6335 5.5901 10.6335 5.76423 10.4231L8.08602 7.63694C8.20211 7.49908 8.23113 7.30318 8.15132 7.13631C8.07151 6.97668 7.91188 6.86785 7.73049 6.86785H6.33742V0.606283C6.33742 0.475682 6.23584 0.366849 6.10524 0.366849H0.997315Z",fill:"currentcolor"}))})));s.displayName="DownTrendIcon"},240:function(e){e.exports=JSON.parse('{"payload":[{"id":"294@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2020-01-07T04:17:51Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2020-01-07T04:17:51Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":160,"parentId":-1},{"id":"293@evaluation_1.0.0-SNAPSHOT","name":"PM Evaluation","description":"You need to evaluate Alessio.","createdBy":"pamAdmin","createdAt":"2019-11-14T09:26:30Z","status":"CREATED","priority":0,"subject":"You need to evaluate Alessio.","activatedAt":"2019-11-14T09:26:30Z","skipable":false,"processDefinitionId":"evaluation","processId":159,"parentId":-1},{"id":"292@evaluation_1.0.0-SNAPSHOT","name":"HR Evaluation","description":"You need to evaluate Alessio.","createdBy":"pamAdmin","createdAt":"2019-11-14T09:26:30Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"You need to evaluate Alessio.","activatedAt":"2019-11-14T09:26:30Z","skipable":false,"processDefinitionId":"evaluation","processId":159,"parentId":-1},{"id":"289@evaluation_1.0.0-SNAPSHOT","name":"HR Evaluation","description":"You need to evaluate Sabrina.","createdBy":"pamAdmin","createdAt":"2019-11-14T09:11:28Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"You need to evaluate Sabrina.","activatedAt":"2019-11-14T09:11:28Z","skipable":false,"processDefinitionId":"evaluation","processId":152,"parentId":-1},{"id":"288@evaluation_1.0.0-SNAPSHOT","name":"PM Evaluation","description":"You need to evaluate aaaa.","createdBy":"pamAdmin","createdAt":"2019-11-13T02:52:06Z","status":"CREATED","priority":0,"subject":"You need to evaluate aaaa.","activatedAt":"2019-11-13T02:52:06Z","skipable":false,"processDefinitionId":"evaluation","processId":156,"parentId":-1},{"id":"287@evaluation_1.0.0-SNAPSHOT","name":"HR Evaluation","description":"You need to evaluate aaaa.","createdBy":"pamAdmin","createdAt":"2019-11-13T02:52:06Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"You need to evaluate aaaa.","activatedAt":"2019-11-13T02:52:06Z","skipable":false,"processDefinitionId":"evaluation","processId":156,"parentId":-1},{"id":"286@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-08-28T03:01:56Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-08-28T03:01:56Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":158,"parentId":-1},{"id":"284@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-07-21T04:31:48Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-07-21T04:31:48Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":157,"parentId":-1},{"id":"281@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-05-21T03:11:48Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-21T03:11:48Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":149,"parentId":-1},{"id":"279@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-05-21T03:10:17Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-21T03:10:17Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":150,"parentId":-1},{"id":"278@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-05-21T03:08:53Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-21T03:08:53Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":155,"parentId":-1},{"id":"276@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-05-21T02:41:47Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-21T02:41:47Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":153,"parentId":-1},{"id":"275@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-05-21T02:25:38Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-21T02:25:38Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":154,"parentId":-1},{"id":"268@itorders_1.0.0-SNAPSHOT","name":"Place order","description":"Approved oroder  to be placed","createdBy":"pamAdmin","createdAt":"2019-05-10T09:23:49Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-10T09:23:49Z","skipable":true,"processDefinitionId":"itorders-data.place-order","processId":148,"parentId":-1},{"id":"267@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-05-08T07:20:04Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-05-08T07:20:04Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":143,"parentId":-1},{"id":"266@evaluation_1.0.0-SNAPSHOT","name":"Self Evaluation","description":"Please perform a self-evalutation.","createdBy":"pamAdmin","createdAt":"2019-05-06T09:35:17Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"Please perform a self-evalutation.","activatedAt":"2019-05-06T09:35:17Z","skipable":false,"processDefinitionId":"evaluation","processId":147,"parentId":-1},{"id":"264@evaluation_1.0.0-SNAPSHOT","name":"PM Evaluation","description":"You need to evaluate Sabrina.","createdBy":"pamAdmin","createdAt":"2019-04-30T10:09:14Z","status":"CREATED","priority":0,"subject":"You need to evaluate Sabrina.","activatedAt":"2019-04-30T10:09:14Z","skipable":false,"processDefinitionId":"evaluation","processId":146,"parentId":-1},{"id":"257@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-04-23T09:52:20Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-23T09:52:20Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":142,"parentId":-1},{"id":"255@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-04-23T08:19:58Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-23T08:19:58Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":140,"parentId":-1},{"id":"253@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-04-23T08:06:45Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-23T08:06:45Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":139,"parentId":-1},{"id":"250@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-04-18T04:13:07Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-18T04:13:07Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":137,"parentId":-1},{"id":"243@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-04-16T03:30:16Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-16T03:30:16Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":134,"parentId":-1},{"id":"233@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-04-16T10:14:55Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-16T10:14:55Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":118,"parentId":-1},{"id":"232@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-04-15T04:03:46Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-15T04:03:46Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":124,"parentId":-1},{"id":"228@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-04-09T10:19:01Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-09T10:19:01Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":123,"parentId":-1},{"id":"209@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-04-08T09:16:41Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-08T09:16:41Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":120,"parentId":-1},{"id":"206@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-04-08T09:13:44Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-08T09:13:44Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":117,"parentId":-1},{"id":"202@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-04-02T04:15:22Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-04-02T04:15:22Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":116,"parentId":-1},{"id":"197@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-21T12:55:53Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-21T12:55:53Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":112,"parentId":-1},{"id":"196@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-21T12:54:46Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-21T12:54:46Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":111,"parentId":-1},{"id":"195@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-21T12:54:46Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-21T12:54:46Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":111,"parentId":-1},{"id":"192@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:46:35Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:46:35Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":109,"parentId":-1},{"id":"191@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:46:35Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:46:35Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":109,"parentId":-1},{"id":"188@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:36:51Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:36:51Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":107,"parentId":-1},{"id":"187@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:36:51Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:36:51Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":107,"parentId":-1},{"id":"186@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:28:14Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:28:14Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":106,"parentId":-1},{"id":"185@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-20T09:28:14Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-20T09:28:14Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":106,"parentId":-1},{"id":"184@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T05:22:48Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T05:22:48Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":105,"parentId":-1},{"id":"181@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T05:20:27Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T05:20:27Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":104,"parentId":-1},{"id":"178@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T03:33:38Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T03:33:38Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":102,"parentId":-1},{"id":"177@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T03:33:38Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T03:33:38Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":102,"parentId":-1},{"id":"176@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T03:33:32Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T03:33:32Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":101,"parentId":-1},{"id":"172@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T03:22:15Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T03:22:15Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":99,"parentId":-1},{"id":"171@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T03:18:38Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T03:18:38Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":98,"parentId":-1},{"id":"167@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:48:16Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:48:16Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":94,"parentId":-1},{"id":"166@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:47:45Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:47:45Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":93,"parentId":-1},{"id":"165@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:47:14Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:47:14Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":92,"parentId":-1},{"id":"164@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:30:53Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:30:53Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":71,"parentId":-1},{"id":"161@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:15:27Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:15:27Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":72,"parentId":-1},{"id":"160@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:07:21Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:07:21Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":90,"parentId":-1},{"id":"159@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:07:21Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:07:21Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":90,"parentId":-1},{"id":"156@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:04:40Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:04:40Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":88,"parentId":-1},{"id":"155@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:04:40Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:04:40Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":88,"parentId":-1},{"id":"154@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:04:24Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:04:24Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":87,"parentId":-1},{"id":"153@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T02:04:24Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T02:04:24Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":87,"parentId":-1},{"id":"151@hondademo_1.0.4","name":"approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-19T01:52:29Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-19T01:52:29Z","skipable":false,"processDefinitionId":"hondaapprovalprocess.designChangeProcessor","processId":86,"parentId":-1},{"id":"105@itorders_1.0.0-SNAPSHOT","name":"Prepare hardware spec","description":"Prepare hardware specification for pamAdmin (order number )","createdBy":"${initiator}","createdAt":"2019-03-18T11:12:05Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-18T11:12:05Z","skipable":true,"processDefinitionId":"itorders.orderhardware","processId":60,"parentId":-1},{"id":"104@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-14T03:46:19Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-14T03:46:19Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":59,"parentId":-1},{"id":"103@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-13T04:55:18Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-13T04:55:18Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":44,"parentId":-1},{"id":"102@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-13T04:21:23Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-13T04:21:23Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":48,"parentId":-1},{"id":"101@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-13T04:21:06Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-13T04:21:06Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":45,"parentId":-1},{"id":"100@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-13T04:18:41Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-13T04:18:41Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":57,"parentId":-1},{"id":"99@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-13T04:15:38Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-13T04:15:38Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":58,"parentId":-1},{"id":"77@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-11T01:52:50Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-11T01:52:50Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":43,"parentId":-1},{"id":"76@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-08T09:47:03Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-08T09:47:03Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":42,"parentId":-1},{"id":"74@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-08T09:34:08Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-08T09:34:08Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":41,"parentId":-1},{"id":"73@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-03-08T09:08:54Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-08T09:08:54Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":40,"parentId":-1},{"id":"59@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-07T12:46:59Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-07T12:46:59Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":31,"parentId":-1},{"id":"58@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-07T11:17:04Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-07T11:17:04Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":32,"parentId":-1},{"id":"57@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-03-07T11:01:53Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-03-07T11:01:53Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":33,"parentId":-1},{"id":"55@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-02-25T04:24:30Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-25T04:24:30Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":16,"parentId":-1},{"id":"54@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-02-25T04:18:22Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-25T04:18:22Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":26,"parentId":-1},{"id":"53@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-02-25T03:48:10Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-25T03:48:10Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":29,"parentId":-1},{"id":"45@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-22T04:14:32Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-22T04:14:32Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":30,"parentId":-1},{"id":"42@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:38:34Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:38:34Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":27,"parentId":-1},{"id":"40@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:33:52Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:33:52Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":25,"parentId":-1},{"id":"39@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:32:59Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:32:59Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":24,"parentId":-1},{"id":"38@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:25:13Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:25:13Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":23,"parentId":-1},{"id":"37@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:23:48Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:23:48Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":22,"parentId":-1},{"id":"36@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:22:27Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:22:27Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":21,"parentId":-1},{"id":"35@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:21:12Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:21:12Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":20,"parentId":-1},{"id":"34@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:20:21Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:20:21Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":19,"parentId":-1},{"id":"33@mortgage-process_1.0.0-SNAPSHOT","name":"Correct Data","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:08:08Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:08:08Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":18,"parentId":-1},{"id":"32@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T11:06:56Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T11:06:56Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":17,"parentId":-1},{"id":"30@mortgage-process_1.0.0-SNAPSHOT","name":"Final Approval","description":"","createdBy":"pamAdmin","createdAt":"2019-02-21T10:39:24Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-21T10:39:24Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":15,"parentId":-1},{"id":"28@mortgage-process_1.0.0-SNAPSHOT","name":"Qualify","description":"","createdBy":"pamAdmin","createdAt":"2019-02-14T03:40:04Z","status":"RESERVED","owner":"pamAdmin","priority":0,"subject":"","activatedAt":"2019-02-14T03:40:04Z","skipable":false,"processDefinitionId":"Mortgage_Process.MortgageApprovalProcess","processId":14,"parentId":-1}],"errors":[],"metadata":{"page":1,"pageSize":100,"lastPage":1,"totalItems":-1,"filters":[],"additionalParams":{}}}')},284:function(e,t,a){"use strict";var n=a(9),r=a(0),o=a.n(r),i=function(e){var t=e.id,a=e.label,r=e.checked,i=e.onChange;return o.a.createElement(n.FormGroup,{controlId:t},o.a.createElement(n.InputGroup,null,o.a.createElement(n.Switch,{baseClass:"bootstrap-switch",bsSize:"normal",title:"normal",value:r,defaultValue:null,onChange:i}),o.a.createElement(n.ControlLabel,{className:"switch-label"},a)))};i.defaultProps={checked:!0,onChange:function(){}},t.a=i},343:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(0),r=a.n(n),o=a(1458),i=a(8),s=a(173),c=Object(i.a)({root:{padding:"3px 5px"}})(o.a);t.b=function(){return function(e){var t=e.row;return r.a.createElement(s.a.Consumer,null,(function(e){var a=e.selectedRows,n=e.onToggleItem;return r.a.createElement(c,{checked:a.has(t.id),value:t.id,onChange:function(){return n(t)}})}))}}},345:function(e,t,a){"use strict";var n=a(11),r=a(0),o=a.n(r),i=a(683),s=a.n(i),c=a(1459),l={success:{bgColor:"#1AB394",color:"#FFFFFF"},error:{bgColor:"#e14c38",color:"#FFFFFF"},pending:{bgColor:"#faf0cb",color:"#000000"},defaults:{color:"#FFFEFE",bgColor:"#1AB394"}},u=function(e){var t=l.defaults;if(e.color||e.bgColor)return Object(n.a)({},t,{},e.color?{color:e.color}:{},{},e.bgColor?{bgColor:e.bgColor}:{});if(e.styles){var a=JSON.parse(e.styles);if(a&&a[e.value])return a[e.value]}return l[e.value]?l[e.value]:t},d=s()({root:{backgroundColor:function(e){return u(e).bgColor},borderRadius:"5px",fontWeight:700,fontSize:"11px",lineHeight:"13px",color:function(e){return u(e).color}}}),m=function(e){var t=d(e),a=e.label;return o.a.createElement(c.a,{className:t.root,label:a})};m.defaultProps={label:"",value:"",bgColor:"",color:"",styles:""},t.a=m},349:function(e,t,a){"use strict";var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(54),h=a(64),v=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).closeNotification=function(){n.setState({errorMessage:""})},n.state={sourceList:[],errorMessage:"",config:{knowledgeSource:""}},n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(l.a)(n)),n.closeNotification=n.closeNotification.bind(Object(l.a)(n)),n.handleError=n.handleError.bind(Object(l.a)(n)),n.fetchScreen=n.fetchScreen.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(A.c)();case 3:t=e.sent,this.setState({sourceList:t.payload},this.fetchScreen),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this.handleError(e.t0.message);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchScreen()}},{key:"onChangeKnowledgeSource",value:function(e){var t=this.state.config,a=e.target?e.target.value:e;this.setState({config:Object(n.a)({},t,{knowledgeSource:a})})}},{key:"handleError",value:function(e){this.setState({errorMessage:e})}},{key:"fetchScreen",value:function(){var e=this.props.config;e&&e.knowledgeSource&&this.onChangeKnowledgeSource(e.knowledgeSource)}},{key:"render",value:function(){var e=this.state,t=e.sourceList,a=e.errorMessage,n=e.config.knowledgeSource;return p.a.createElement("div",null,p.a.createElement(h.a,{type:"error",message:a,onClose:this.closeNotification}),p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{className:"form-control",value:n,onChange:this.onChangeKnowledgeSource},p.a.createElement("option",{value:""},g.a.t("config.selectOption")),t.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections")))))))}}]),a}(p.a.Component);v.defaultProps={config:{}},t.a=v},350:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=a(53),s=a(11),c=a(17),l=a(15),u=a(12),d=a(19),m=a(18),p=a(0),g=a.n(p),f=a(7),A=a(9),h=a(54),v=a(232),b=function(e){Object(m.a)(a,e);var t=Object(d.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={loading:!1,sourceList:[],config:{knowledgeSource:"",settings:{uiSchemas:"[]",defaultColumnSize:""}}},n.fetchOnLoad=n.fetchOnLoad.bind(Object(u.a)(n)),n.fetchFromKnowledgeSource=n.fetchFromKnowledgeSource.bind(Object(u.a)(n)),n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(u.a)(n)),n.onChangeUiSchemas=n.onChangeUiSchemas.bind(Object(u.a)(n)),n.onChangeSettingValue=n.onChangeSettingValue.bind(Object(u.a)(n)),n}return Object(l.a)(a,[{key:"componentDidMount",value:function(){this.fetchOnLoad()}},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchOnLoad()}},{key:"onChangeKnowledgeSource",value:function(e){var t=e.target.value,a=this.state.config;this.setState({config:Object(s.a)({},a,{knowledgeSource:t})})}},{key:"onChangeUiSchemas",value:function(e){var t=this.state.config;this.setState({config:Object(s.a)({},t,{settings:Object(s.a)({},t.settings,{uiSchemas:e})})})}},{key:"onChangeSettingValue",value:function(e,t){var a=t.state?t.state.value:t.target.value,n=this.state.config;this.setState({config:Object(s.a)({},n,{settings:Object(s.a)({},n.settings,Object(i.a)({},e,a))})})}},{key:"fetchOnLoad",value:function(){var e=this,t=this.props.config;this.setState({loading:!0},Object(o.a)(r.a.mark((function a(){var n,o,i,c,l,u;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.fetchFromKnowledgeSource();case 2:n=a.sent,o=n.sourceList,i=void 0===o?null:o,c=n.selectedKnowledgeSource,l=void 0===c?"":c,u=t.settings?JSON.parse(t.settings):{},e.setState({loading:!1,sourceList:i,config:Object(s.a)({},t,{settings:u,knowledgeSource:l})});case 9:case"end":return a.stop()}}),a)}))))}},{key:"fetchFromKnowledgeSource",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.config.knowledgeSource,e.next=3,Object(h.c)();case 3:return a=e.sent,n=a.payload,o=t&&n.some((function(e){return e.name===t})),e.abrupt("return",Object(s.a)({sourceList:n},o?{selectedKnowledgeSource:t}:{selectedKnowledgeSource:""}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state,a=t.sourceList,n=t.config,r=t.loading,o=n.knowledgeSource,i=n.settings;return g.a.createElement("div",null,g.a.createElement("form",null,g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{controlId:"connection"},g.a.createElement(A.ControlLabel,null,f.a.t("config.knowledgeSource")),g.a.createElement("select",{disabled:r,className:"form-control",value:o,onChange:this.onChangeKnowledgeSource},g.a.createElement("option",{disabled:!0,value:""},f.a.t("config.selectOption")),a.map((function(e){return g.a.createElement("option",{key:e.name,value:e.name},e.name)}))),g.a.createElement(A.HelpBlock,null,f.a.t("config.selectConnections"))))),o&&g.a.createElement("section",null,g.a.createElement("legend",null,f.a.t("config.settings")),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group",controlId:"textarea"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},f.a.t("config.uiSchemas")),g.a.createElement(v.a,{schemas:i.uiSchemas,onChange:this.onChangeUiSchemas})))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},f.a.t("config.defaultColumnSize")),g.a.createElement("input",{className:"form-control",type:"number",value:i.defaultColumnSize,onChange:function(t){e.onChangeSettingValue("defaultColumnSize",t)}})))))))}}]),a}(g.a.Component);b.defaultProps={config:{}},t.a=b},351:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=a(53),s=a(11),c=a(17),l=a(15),u=a(12),d=a(19),m=a(18),p=a(0),g=a.n(p),f=a(7),A=a(9),h=a(54),v=a(284),b=["taskDetails.overview.title","taskDetails.overview.detailsTitle"],E=function(e){Object(m.a)(a,e);var t=Object(d.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).onChangeSettings=function(e){return function(t){var a=n.state.config,r=a.settings,o=t.state?t.state.value:t.target.value;n.setState({config:Object(s.a)({},a,{settings:Object(s.a)({},r,Object(i.a)({},e,o))})})}},n.state={sourceList:[],config:{knowledgeSource:"",settings:{header:"",hasGeneralInformation:!0,destinationPageCode:""}}},n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(u.a)(n)),n.fetchScreen=n.fetchScreen.bind(Object(u.a)(n)),n}return Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.c)();case 2:t=e.sent,this.setState({sourceList:t.payload},this.fetchScreen);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchScreen()}},{key:"onChangeKnowledgeSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=this.state.config,n=e.target?e.target.value:e;this.setState({config:Object(s.a)({},a,{knowledgeSource:n})},t)}},{key:"fetchScreen",value:function(){var e=this,t=this.props.config;t&&t.knowledgeSource&&this.onChangeKnowledgeSource(t.knowledgeSource,(function(){t.settings&&e.setState({config:Object(s.a)({},t,{settings:JSON.parse(t.settings)})})}))}},{key:"render",value:function(){var e=this.state,t=e.sourceList,a=e.config,n=a.knowledgeSource,r=a.settings;return g.a.createElement("div",null,g.a.createElement("form",null,g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{controlId:"connection"},g.a.createElement(A.ControlLabel,null,f.a.t("config.knowledgeSource")),g.a.createElement("select",{className:"form-control",value:n,onChange:this.onChangeKnowledgeSource},g.a.createElement("option",{value:""},f.a.t("config.selectOption")),t.map((function(e){return g.a.createElement("option",{key:e.name,value:e.name},e.name)}))),g.a.createElement(A.HelpBlock,null,f.a.t("config.selectConnections"))))),n&&g.a.createElement("section",null,g.a.createElement("legend",null,f.a.t("config.settings")),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Header label"),g.a.createElement("select",{className:"form-control",value:r.header,onChange:this.onChangeSettings("header")},g.a.createElement("option",{value:""},f.a.t("config.selectOption")),b.map((function(e){return g.a.createElement("option",{key:e,value:e},f.a.t(e))})))))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Page code for the Task Details destination link"),g.a.createElement("input",{className:"form-control",type:"text",value:r.destinationPageCode,onChange:this.onChangeSettings("destinationPageCode")})))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Show General Information"),g.a.createElement(v.a,{id:"showGeneralInformation",label:"",checked:r.hasGeneralInformation,onChange:this.onChangeSettings("hasGeneralInformation")})))))))}}]),a}(g.a.Component);E.defaultProps={config:{}},t.a=E},352:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(11),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(232),h=a(54),v=a(113),b=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).state={loading:!1,sourceList:null,processList:null,config:{settings:{uiSchemas:"[]"},knowledgeSource:"",process:""}},n.fetchOnLoad=n.fetchOnLoad.bind(Object(l.a)(n)),n.fetchFromKnowledgeSource=n.fetchFromKnowledgeSource.bind(Object(l.a)(n)),n.fetchFromProcesses=n.fetchFromProcesses.bind(Object(l.a)(n)),n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(l.a)(n)),n.onChangeProcess=n.onChangeProcess.bind(Object(l.a)(n)),n.onChangeUiSchemas=n.onChangeUiSchemas.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){this.fetchOnLoad()}},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchOnLoad()}},{key:"onChangeKnowledgeSource",value:function(e){var t=this,a=e.target.value,n=this.state.config;this.setState({loading:!0},Object(i.a)(r.a.mark((function e(){var i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchFromProcesses(a);case 2:i=e.sent,t.setState(Object(o.a)({loading:!1},i,{config:Object(o.a)({},n,{knowledgeSource:a,process:""})}));case 4:case"end":return e.stop()}}),e)}))))}},{key:"onChangeProcess",value:function(e){var t=e.target.value,a=this.state.config;this.setState({config:Object(o.a)({},a,{process:t})})}},{key:"onChangeUiSchemas",value:function(e){var t=this.state.config;this.setState({config:Object(o.a)({},t,{settings:Object(o.a)({},t.settings,{uiSchemas:e})})})}},{key:"fetchOnLoad",value:function(){var e=this,t=this.props.config;this.setState({loading:!0},Object(i.a)(r.a.mark((function a(){var n,i,s,c,l,u,d,m,p,g;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.fetchFromKnowledgeSource();case 2:n=a.sent,i=n.sourceList,s=void 0===i?null:i,c=n.selectedKnowledgeSource,l=void 0===c?"":c,u=n.processList,d=void 0===u?null:u,m=n.selectedProcess,p=void 0===m?"":m,g=t.settings?JSON.parse(t.settings):{},e.setState({loading:!1,sourceList:s,processList:d,config:Object(o.a)({},t,{settings:g,knowledgeSource:l,process:p})});case 13:case"end":return a.stop()}}),a)}))))}},{key:"fetchFromKnowledgeSource",value:function(){var e=Object(i.a)(r.a.mark((function e(){var t,a,n,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.config.knowledgeSource,e.next=3,Object(h.c)();case 3:if(a=e.sent,n=a.payload,!(t&&n.some((function(e){return e.name===t})))){e.next=11;break}return e.next=9,this.fetchFromProcesses(t);case 9:return i=e.sent,e.abrupt("return",Object(o.a)({sourceList:n,selectedKnowledgeSource:t},i));case 11:return e.abrupt("return",{sourceList:n,selectedKnowledgeSource:""});case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fetchFromProcesses",value:function(){var e=Object(i.a)(r.a.mark((function e(t){var a,n,i,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}return a=this.props.config.process,e.next=4,Object(v.c)(t);case 4:return n=e.sent,i=n.payload,s=a&&i.some((function(e){var t=e["process-id"],n=e["container-id"];return"".concat(t,"@").concat(n)===a})),e.abrupt("return",Object(o.a)({processList:i},s?{selectedProcess:a}:{selectedProcess:""}));case 8:return e.abrupt("return",{});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.config,a=e.sourceList,n=e.processList,r=e.loading,o=t.knowledgeSource,i=t.process,s=void 0===i?"":i,c=t.settings;return p.a.createElement("div",null,p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{disabled:r,className:"form-control",value:o,onChange:this.onChangeKnowledgeSource},p.a.createElement("option",{disabled:!0,value:""},g.a.t("config.selectOption")),a&&a.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections"))),p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.process")),p.a.createElement("select",{disabled:r,className:"form-control",value:s,onChange:this.onChangeProcess},p.a.createElement("option",{disabled:!0,value:""},g.a.t("config.selectOption")),n&&n.map((function(e){return p.a.createElement("option",{key:"".concat(e["process-id"],"@").concat(e["container-id"]),value:"".concat(e["process-id"],"@").concat(e["container-id"])},"".concat(e["process-name"]," @ ").concat(e["container-id"]))}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectBpmProcess"))))),s&&p.a.createElement("section",null,p.a.createElement("legend",null,g.a.t("config.settings")),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{bsClass:"form-group",controlId:"textarea"},p.a.createElement(f.ControlLabel,{bsClass:"control-label"},g.a.t("config.uiSchemas")),p.a.createElement(A.a,{schemas:c.uiSchemas,onChange:this.onChangeUiSchemas})))))))}}]),a}(p.a.Component);b.defaultProps={config:{}},t.a=b},353:function(e,t,a){"use strict";var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(54),h=a(176),v=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).state={sourceList:[],dataTypes:[],config:{settings:{type:""},knowledgeSource:""}},n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(l.a)(n)),n.onChangeSettings=n.onChangeSettings.bind(Object(l.a)(n)),n.fetchScreen=n.fetchScreen.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(A.c)();case 2:t=e.sent,this.setState({sourceList:t.payload},this.fetchScreen);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchScreen()}},{key:"onChangeKnowledgeSource",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=this.state.config,o=e.target?e.target.value:e;this.setState({config:Object(n.a)({},r,{knowledgeSource:o})}),Object(h.b)(o).then((function(e){t.setState({dataTypes:e.payload}),a()}))}},{key:"onChangeSettings",value:function(e){var t=e.target.value,a=this.state.config;this.setState({config:Object(n.a)({},a,{settings:{type:t}})})}},{key:"fetchScreen",value:function(){var e=this,t=this.props.config;t&&t.knowledgeSource&&this.onChangeKnowledgeSource(t.knowledgeSource,(function(){t.settings&&e.setState({config:Object(n.a)({},t,{settings:JSON.parse(t.settings)})})}))}},{key:"render",value:function(){var e=this.state,t=e.sourceList,a=e.dataTypes,n=e.config,r=n.knowledgeSource,o=n.settings;return p.a.createElement("div",null,p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{className:"form-control",value:r,onChange:this.onChangeKnowledgeSource},p.a.createElement("option",{value:""},g.a.t("config.selectOption")),t.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections"))))),r&&p.a.createElement("section",null,p.a.createElement("legend",null,g.a.t("config.settings")),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{bsClass:"form-group",controlId:"textarea"},p.a.createElement(f.ControlLabel,{bsClass:"control-label"},"Data Type"),p.a.createElement("select",{className:"form-control",value:o.type,onChange:this.onChangeSettings},p.a.createElement("option",{value:""},g.a.t("config.selectOption")),a.map((function(e){return p.a.createElement("option",{key:e,value:e},g.a.t("summary.labels.".concat(e,".title")))}))),p.a.createElement(f.HelpBlock,null,"Choose a data type to display information on your card.")))))))}}]),a}(p.a.Component);v.defaultProps={config:{}},t.a=v},354:function(e,t,a){"use strict";var n=a(53),r=a(11),o=a(4),i=a.n(o),s=a(10),c=a(17),l=a(15),u=a(12),d=a(19),m=a(18),p=a(0),g=a.n(p),f=a(7),A=a(9),h=a(54),v=a(176),b=function(e){Object(m.a)(a,e);var t=Object(d.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).state={sourceList:[],dataTypes:[],config:{knowledgeSource:"",settings:{dataType1:"",dataType2:"",dailyFreqPeriods:1,monthlyFreqPeriods:1,annualFreqPeriods:1}}},n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(u.a)(n)),n.fetchScreen=n.fetchScreen.bind(Object(u.a)(n)),n.handleSeriesDataTypeChange=n.handleSeriesDataTypeChange.bind(Object(u.a)(n)),n.handleFreqPeriodsChange=n.handleFreqPeriodsChange.bind(Object(u.a)(n)),n}return Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.c)();case 2:t=e.sent,this.setState({sourceList:t.payload},this.fetchScreen);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onChangeKnowledgeSource",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=this.state.config,o=e.target?e.target.value:e;this.setState({config:Object(r.a)({},n,{knowledgeSource:o})}),Object(v.b)(o).then((function(e){t.setState({dataTypes:e.payload}),a()}))}},{key:"fetchScreen",value:function(){var e=this,t=this.props.config;t&&t.knowledgeSource&&this.onChangeKnowledgeSource(t.knowledgeSource,(function(){t.settings&&e.setState({config:Object(r.a)({},t,{settings:JSON.parse(t.settings)})})}))}},{key:"handleSeriesDataTypeChange",value:function(e,t){var a=this.state.config,o="dataType".concat(e);this.setState({config:Object(r.a)({},a,{settings:Object(r.a)({},a.settings,Object(n.a)({},o,t))})})}},{key:"handleFreqPeriodsChange",value:function(e,t){var a=this.state.config,o="".concat(e,"FreqPeriods");this.setState({config:Object(r.a)({},a,{settings:Object(r.a)({},a.settings,Object(n.a)({},o,t))})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.config,n=t.sourceList,r=t.dataTypes,o=a.knowledgeSource,i=a.settings;return g.a.createElement("div",null,g.a.createElement("form",null,g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{controlId:"connection"},g.a.createElement(A.ControlLabel,null,f.a.t("config.knowledgeSource")),g.a.createElement("select",{className:"form-control",value:o,onChange:this.onChangeKnowledgeSource},g.a.createElement("option",{value:""},f.a.t("config.selectOption")),n.map((function(e){return g.a.createElement("option",{key:e.name,value:e.name},e.name)}))),g.a.createElement(A.HelpBlock,null,f.a.t("config.selectConnections"))))),o&&g.a.createElement("section",null,g.a.createElement("legend",null,f.a.t("config.settings")),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Series 1 Data Type"),g.a.createElement("select",{className:"form-control",value:i.dataType1,onChange:function(t){var a=t.target.value;e.handleSeriesDataTypeChange(1,a)}},g.a.createElement("option",{value:""},f.a.t("config.selectOption")),r.map((function(e){return g.a.createElement("option",{key:e,value:e},e)})))))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Series 2 Data Type"),g.a.createElement("select",{className:"form-control",value:i.dataType2,onChange:function(t){var a=t.target.value;e.handleSeriesDataTypeChange(2,a)}},g.a.createElement("option",{value:""},f.a.t("config.selectOption")),r.map((function(e){return g.a.createElement("option",{key:e,value:e},e)})))))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Daily Frequency Periods"),g.a.createElement("input",{className:"form-control",type:"number",value:i.dailyFreqPeriods,min:1,onChange:function(t){var a=t.target.value;e.handleFreqPeriodsChange("daily",a)}})))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Monthly Frequency Periods"),g.a.createElement("input",{className:"form-control",type:"number",value:i.monthlyFreqPeriods,min:1,onChange:function(t){var a=t.target.value;e.handleFreqPeriodsChange("monthly",a)}})))),g.a.createElement(A.Row,null,g.a.createElement(A.Col,{xs:12},g.a.createElement(A.FormGroup,{bsClass:"form-group"},g.a.createElement(A.ControlLabel,{bsClass:"control-label"},"Annual Frequency Periods"),g.a.createElement("input",{className:"form-control",type:"number",value:i.annualFreqPeriods,min:1,onChange:function(t){var a=t.target.value;e.handleFreqPeriodsChange("annual",a)}})))))))}}]),a}(g.a.Component);b.defaultProps={config:{}},t.a=b},355:function(e,t,a){"use strict";var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(54),h=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).state={sourceList:[],config:{knowledgeSource:"",settings:{header:"",hasGeneralInformation:!0,destinationPageCode:""}}},n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(l.a)(n)),n.fetchScreen=n.fetchScreen.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(A.c)();case 2:t=e.sent,this.setState({sourceList:t.payload},this.fetchScreen);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchScreen()}},{key:"onChangeKnowledgeSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=this.state.config,r=e.target?e.target.value:e;this.setState({config:Object(n.a)({},a,{knowledgeSource:r})},t)}},{key:"fetchScreen",value:function(){var e=this.props.config;e&&e.knowledgeSource&&this.onChangeKnowledgeSource(e.knowledgeSource)}},{key:"render",value:function(){var e=this.state,t=e.sourceList,a=e.config.knowledgeSource;return p.a.createElement("div",null,p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{className:"form-control",value:a,onChange:this.onChangeKnowledgeSource},p.a.createElement("option",{value:""},g.a.t("config.selectOption")),t.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections")))))))}}]),a}(p.a.Component);h.defaultProps={config:{}},t.a=h},356:function(e,t,a){"use strict";var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(113),h=a(54),v=a(232),b=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).fetchProcess=Object(i.a)(o.a.mark((function e(){var t,a,r,i,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state.config,!(a=t&&t.knowledgeSource||"").length){e.next=16;break}return e.prev=3,e.next=6,Object(A.c)(a);case 6:if(r=e.sent,i=r.payload,!(s=r.errors)||!s.length){e.next=10;break}throw s[0];case 10:return e.abrupt("return",i.map((function(e){return{label:e["process-name"],value:"".concat(e["process-id"],"@").concat(e["container-id"])}})));case 13:e.prev=13,e.t0=e.catch(3),n.handleError(e.t0.message);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[3,13]])}))),n.state={loading:!1,sourceList:[],processList:[],config:{settings:{uiSchemas:"[]",processDefinition:""},knowledgeSource:""}},n.fetchOnLoad=n.fetchOnLoad.bind(Object(l.a)(n)),n.fetchFromKnowledgeSource=n.fetchFromKnowledgeSource.bind(Object(l.a)(n)),n.onChangeKnowledgeSource=n.onChangeKnowledgeSource.bind(Object(l.a)(n)),n.onChangeProcessDefinition=n.onChangeProcessDefinition.bind(Object(l.a)(n)),n.onChangeUiSchemas=n.onChangeUiSchemas.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){this.fetchOnLoad()}},{key:"componentDidUpdate",value:function(e){var t=this.props.config;JSON.stringify(t)!==JSON.stringify(e.config)&&this.fetchOnLoad()}},{key:"onChangeKnowledgeSource",value:function(e){var t=this,a=e.target.value,r=this.state.config;this.setState({config:Object(n.a)({},r,{knowledgeSource:a})},Object(i.a)(o.a.mark((function e(){var a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchProcess();case 2:a=e.sent,t.setState({processList:a});case 4:case"end":return e.stop()}}),e)}))))}},{key:"onChangeProcessDefinition",value:function(e){var t=e.target.value,a=this.state.config;this.setState({config:Object(n.a)({},a,{settings:Object(n.a)({},a.settings,{processDefinition:t})})})}},{key:"onChangeUiSchemas",value:function(e){var t=this.state.config;this.setState({config:Object(n.a)({},t,{settings:Object(n.a)({},t.settings,{uiSchemas:e})})})}},{key:"fetchOnLoad",value:function(){var e=this,t=this.props.config;this.setState({loading:!0},Object(i.a)(o.a.mark((function a(){var r,s,c,l,u,d;return o.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.fetchFromKnowledgeSource();case 2:r=a.sent,s=r.sourceList,c=void 0===s?null:s,l=r.selectedKnowledgeSource,u=void 0===l?"":l,d=t.settings?JSON.parse(t.settings):{},u.length&&e.fetchProcess(),e.setState({loading:!1,sourceList:c,config:Object(n.a)({},t,{settings:d,knowledgeSource:u})},Object(i.a)(o.a.mark((function t(){var a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchProcess();case 2:a=t.sent,e.setState({processList:a});case 4:case"end":return t.stop()}}),t)}))));case 10:case"end":return a.stop()}}),a)}))))}},{key:"fetchFromKnowledgeSource",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t,a,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.config.knowledgeSource,e.next=3,Object(h.c)();case 3:return a=e.sent,r=a.payload,i=t&&r.some((function(e){return e.name===t})),e.abrupt("return",Object(n.a)({sourceList:r},i?{selectedKnowledgeSource:t}:{selectedKnowledgeSource:""}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.config,a=e.sourceList,n=e.loading,r=e.processList,o=t.knowledgeSource,i=t.settings;return p.a.createElement("div",null,p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{disabled:n,className:"form-control",value:o,onChange:this.onChangeKnowledgeSource},p.a.createElement("option",{disabled:!0,value:""},g.a.t("config.selectOption")),a.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections"))))),o&&p.a.createElement("section",null,p.a.createElement("legend",null,g.a.t("config.settings")),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{bsClass:"form-group",controlId:"textarea"},p.a.createElement(f.ControlLabel,{bsClass:"control-label"},g.a.t("config.processDefinition")),p.a.createElement("select",{disabled:n,className:"form-control",value:i.processDefinition,onChange:this.onChangeProcessDefinition},p.a.createElement("option",{disabled:!0,value:""},g.a.t("config.selectOption")),r.map((function(e){return p.a.createElement("option",{key:e.value,value:e.value},e.label)})))))),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{bsClass:"form-group",controlId:"textarea"},p.a.createElement(f.ControlLabel,{bsClass:"control-label"},g.a.t("config.uiSchemas")),p.a.createElement(v.a,{schemas:i.uiSchemas,onChange:this.onChangeUiSchemas})))))))}}]),a}(p.a.Component);b.defaultProps={config:{}},t.a=b},359:function(e,t,a){"use strict";var n=a(0),r=a.n(n),o=a(468),i=a(728),s=a(469),c=function(e){var t=e.title,a=e.body,n=e.open,c=e.onClose,l=e.fullWidth,u=e.maxWidth;return r.a.createElement(o.a,{open:n,onClose:c,fullWidth:l,maxWidth:u},r.a.createElement(i.a,null,t),r.a.createElement(s.a,null,a))};c.defaultProps={fullWidth:!1,maxWidth:"md"},t.a=c},360:function(e,t,a){"use strict";var n=a(0),r=a.n(n),o=a(194),i=a(468),s=a(728),c=a(469),l=a(729),u=a(1455);t.a=function(e){var t=e.title,a=e.message,n=e.open,d=e.onClose,m=e.onConfirm;return r.a.createElement(i.a,{open:n,onClose:d},r.a.createElement(s.a,{disableTypography:!0},t),r.a.createElement(c.a,null,"string"===typeof a?r.a.createElement(u.a,null,a):a),r.a.createElement(l.a,null,r.a.createElement(o.a,{variant:"outlined",color:"default",autoFocus:!0,onClick:d},"Cancel"),r.a.createElement(o.a,{variant:"contained",color:"primary",onClick:m},"Confirm")))}},361:function(e,t,a){"use strict";var n=a(53),r=a(11),o=a(4),i=a.n(o),s=a(10),c=a(17),l=a(12),u=a(15),d=a(19),m=a(18),p=a(0),g=a.n(p),f=a(7),A=a(467),h=a(470),v=a(65),b=a(86),E=a(81),k=a(56),y=a(175),S=a(87),C=a(231),O=function(e){Object(m.a)(a,e);var t=Object(d.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).componentDidUpdate=function(e){var t=n.props.taskId;e.taskId!==t&&n.fetchForm()},n.state={config:null,loading:!1,submitting:!1,formSchema:null,formData:{}},n.fetchForm=n.fetchForm.bind(Object(l.a)(n)),n.fetchTaskFormData=n.fetchTaskFormData.bind(Object(l.a)(n)),n.fetchSchema=n.fetchSchema.bind(Object(l.a)(n)),n.submitProcessForm=n.submitProcessForm.bind(Object(l.a)(n)),n}return Object(u.a)(a,null,[{key:"extractProperties",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return[];if("object"===e.type){var r=Object.keys(e.properties),o=r.map((function(r){return a.extractProperties(e.properties[r],r,n?"".concat(n,".").concat(t):t)}));return o.flat()}return n?"".concat(n,".").concat(t):t}}]),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.setState({loading:!0},Object(s.a)(i.a.mark((function t(){var a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:a=t.sent,e.setState({config:a},e.fetchForm);case 4:case"end":return t.stop()}}),t)}))))}},{key:"fetchWidgetConfigs",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,a,o,s,c,l,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,o=t.frameId,e.prev=1,e.next=4,Object(k.b)(a,o);case 4:if(!(s=e.sent).errors||!s.errors.length){e.next=7;break}throw s.errors[0];case 7:return c=s.payload.config,l=c.settings&&JSON.parse(c.settings)||{},u=Object.keys(l).reduce((function(e,t){return Object(r.a)({},e,Object(n.a)({},t,JSON.parse(l[t])))}),{}),e.abrupt("return",Object(r.a)({},c,{settings:u}));case 13:e.prev=13,e.t0=e.catch(1),this.handleError(e.t0.message);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,this,[[1,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchForm",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,o,s,c,l,u,d,m;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({loading:!0}),t=this.fetchTaskFormData(),o=this.fetchSchema(),e.next=5,t;case 5:return s=e.sent,e.next=8,o;case 8:c=e.sent,l=a.extractProperties(c),u=Object(r.a)({},s.inputData,{},s.outputData),d=Object.keys(u).reduce((function(e,t){return l.includes(t)?Object(r.a)({},e,Object(n.a)({},t,u[t])):e}),{}),m=Object.keys(d).reduce((function(e,t){for(var a=t.split("."),o=c,i=0;i<a.length;i+=1)o=o.properties[a[i]];return"array"!==o.type||Array.isArray(d[t])?Object(r.a)({},e,Object(n.a)({},t,d[t])):Object(r.a)({},e,Object(n.a)({},t,[d[t]]))}),{}),this.setState({formData:m,formSchema:c,loading:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fetchTaskFormData",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,a,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.config,a=this.props.taskId,n=t&&t.knowledgeSource){e.next=7;break}this.handleError(f.a.t("messages.errors.noConnection")),e.next=17;break;case 7:return e.prev=7,e.next=10,Object(E.d)(n,a);case 10:return r=e.sent,e.abrupt("return",r&&r.payload&&{outputData:r.payload.outputData,inputData:r.payload.inputData}||{outputData:{},inputData:{}});case 14:e.prev=14,e.t0=e.catch(7),this.handleError(e.t0.message);case 17:return e.abrupt("return",{});case 18:case"end":return e.stop()}}),e,this,[[7,14]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchSchema",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,a,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.state.config,a=this.props.taskId,n=t&&t.knowledgeSource||"",e.prev=3,e.next=6,Object(E.e)(n,a);case 6:return r=e.sent,e.abrupt("return",r);case 10:e.prev=10,e.t0=e.catch(3),this.handleError(e.t0.message);case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"submitProcessForm",value:function(e){var t=this;this.setState({submitting:!0},Object(s.a)(i.a.mark((function a(){var n,o,s,c,l,u;return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.state.config,o=t.props,s=o.taskId,c=o.onSubmitForm,l=n&&n.knowledgeSource||"",a.prev=3,a.next=6,Object(E.g)(l,s,e.formData);case 6:u=a.sent,c(Object(r.a)({},e,{response:u})),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(3),t.handleError(a.t0.message);case 13:return a.prev=13,t.setState({submitting:!1}),a.finish(13);case 16:case"end":return a.stop()}}),a,null,[[3,10,13,16]])}))))}},{key:"handleError",value:function(e){(0,this.props.onError)(e)}},{key:"render",value:function(){var e=this.state,t=e.loading,a=e.submitting,n=e.formData,r=e.formSchema,o=e.config,i=this.props.onError,s=o&&o.settings&&o.settings.uiSchemas||[],c=o&&o.settings&&o.settings.defaultColumnSize||12;return g.a.createElement(y.a.Provider,{value:{onSubmitForm:this.submitProcessForm,onError:i}},g.a.createElement(A.a,{theme:v.a},g.a.createElement(h.a,{disableGutters:!0},g.a.createElement(S.a,null,g.a.createElement(C.a,{loading:t,formSchema:r,formData:n,uiSchemas:s,submitting:a,defaultColumnSize:c})))))}}]),a}(g.a.Component);O.defaultProps={onError:function(){},onSubmitForm:function(){},pageCode:"",frameId:""},t.a=Object(b.a)(O,["task-get","task-form-get","task-form-submit"])},363:function(e,t,a){"use strict";var n=a(53),r=a(11),o=a(4),i=a.n(o),s=a(10),c=a(17),l=a(15),u=a(12),d=a(19),m=a(18),p=a(0),g=a.n(p),f=a(467),A=a(470),h=a(65),v=a(175),b=a(87),E=a(231),k=a(64),y=a(113),S=a(56),C=a(86),O=function(e){Object(m.a)(a,e);var t=Object(d.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).closeNotification=function(){n.setState({errorMessage:""})},n.state={config:null,loading:!1,submitting:!1,formSchema:null,errorMessage:""},n.closeNotification=n.closeNotification.bind(Object(u.a)(n)),n.handleError=n.handleError.bind(Object(u.a)(n)),n.fetchSchema=n.fetchSchema.bind(Object(u.a)(n)),n.submitProcessForm=n.submitProcessForm.bind(Object(u.a)(n)),n}return Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.setState({loading:!0},Object(s.a)(i.a.mark((function t(){var a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:a=t.sent,e.setState({config:a},Object(s.a)(i.a.mark((function t(){var a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchSchema();case 2:a=t.sent,e.setState({formSchema:a,loading:!1});case 4:case"end":return t.stop()}}),t)}))));case 4:case"end":return t.stop()}}),t)}))))}},{key:"fetchWidgetConfigs",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,a,o,s,c,l,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,o=t.frameId,e.prev=1,e.next=4,Object(S.b)(a,o);case 4:if(!(s=e.sent).errors||!s.errors.length){e.next=7;break}throw s.errors[0];case 7:return c=s.payload.config,l=c.settings&&JSON.parse(c.settings)||{},u=Object.keys(l).reduce((function(e,t){return Object(r.a)({},e,Object(n.a)({},t,JSON.parse(l[t])))}),{}),e.abrupt("return",Object(r.a)({},c,{settings:u}));case 13:e.prev=13,e.t0=e.catch(1),this.handleError(e.t0.message);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,this,[[1,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchSchema",value:function(){var e=Object(s.a)(i.a.mark((function e(){var t,a,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.state.config,a=t&&t.knowledgeSource||"",n=t&&t.process||"",e.prev=3,e.next=6,Object(y.b)(a,n);case 6:return r=e.sent,e.abrupt("return",r);case 10:e.prev=10,e.t0=e.catch(3),this.handleError(e.t0.message);case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"submitProcessForm",value:function(e){var t=this;this.setState({submitting:!0},Object(s.a)(i.a.mark((function a(){var n,o,s,c,l;return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.state.config,o=t.props.onSubmitForm,s=n&&n.knowledgeSource||"",c=n&&n.process||"",a.prev=4,a.next=7,Object(y.d)(s,c,e.formData);case 7:l=a.sent,o(Object(r.a)({},e,{response:l})),a.next=14;break;case 11:a.prev=11,a.t0=a.catch(4),t.handleError(a.t0.message);case 14:return a.prev=14,t.setState({submitting:!1}),a.finish(14);case 17:case"end":return a.stop()}}),a,null,[[4,11,14,17]])}))))}},{key:"handleError",value:function(e){this.setState({errorMessage:e}),(0,this.props.onError)(e)}},{key:"render",value:function(){var e=this.state,t=e.loading,a=e.formSchema,n=e.config,r=e.submitting,o=e.errorMessage,i=this.props.onError,s=n&&n.settings&&n.settings.uiSchemas||[];return g.a.createElement(v.a.Provider,{value:{onSubmitForm:this.submitProcessForm,onError:i}},g.a.createElement(f.a,{theme:h.a},g.a.createElement(A.a,{disableGutters:!0},g.a.createElement(b.a,null,g.a.createElement(E.a,{loading:t,formSchema:a,uiSchemas:s,submitting:r}))),g.a.createElement(k.a,{message:o,type:"error",onClose:this.closeNotification})))}}]),a}(g.a.Component);O.defaultProps={onError:function(){},onSubmitForm:function(){},pageCode:"",frameId:""},t.a=Object(C.a)(O,["process-definition-form-get","process-definition-form-submit"])},364:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(53),i=a(11),s=a(10),c=a(17),l=a(15),u=a(19),d=a(18),m=a(467),p=a(0),g=a.n(p),f=a(470),A=a(113),h=a(56),v=a(65),b=a(175),E=a(87),k=a(231),y=a(64),S=a(86);function C(e){try{JSON.parse(e)}catch(t){return!1}return!0}var O=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,l=new Array(n),u=0;u<n;u++)l[u]=arguments[u];return(e=t.call.apply(t,[this].concat(l))).state={config:null,selectedProcess:"",loading:!1,submitting:!1,formSchema:null,errorMessage:""},e.fetchWidgetConfigs=Object(s.a)(r.a.mark((function t(){var a,n,s,c,l,u,d;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.props,n=a.pageCode,s=a.frameId,t.prev=1,t.next=4,Object(h.b)(n,s);case 4:if(!(c=t.sent).errors||!c.errors.length){t.next=7;break}throw c.errors[0];case 7:return l=c.payload.config,u=l.settings&&JSON.parse(l.settings)||{},d=Object.keys(u).reduce((function(e,t){return Object(i.a)({},e,Object(o.a)({},t,C(u[t])?JSON.parse(u[t]):u[t]))}),{}),t.abrupt("return",Object(i.a)({},l,{settings:d}));case 13:t.prev=13,t.t0=t.catch(1),e.handleError(t.t0.message);case 16:return t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[1,13]])}))),e.closeNotification=function(){e.setState({errorMessage:""})},e.fetchSchema=Object(s.a)(r.a.mark((function t(){var a,n,o,i,s,c;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.state.config,n=a.knowledgeSource,o=void 0===n?"":n,i=a.settings,s=(void 0===i?{}:i).processDefinition,t.prev=3,t.next=6,Object(A.b)(o,s);case 6:return c=t.sent,t.abrupt("return",c);case 10:t.prev=10,t.t0=t.catch(3),e.handleError(t.t0.message);case 13:return t.abrupt("return",null);case 14:case"end":return t.stop()}}),t,null,[[3,10]])}))),e.submitProcessForm=function(t){e.setState({submitting:!0},Object(s.a)(r.a.mark((function a(){var n,o,s,c,l,u;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.state,o=n.config,s=n.selectedProcess,c=e.props.onSubmitForm,l=o&&o.knowledgeSource||"",a.prev=3,a.next=6,Object(A.d)(l,s,t.formData);case 6:u=a.sent,c(Object(i.a)({},t,{response:u})),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(3),e.handleError(a.t0.message);case 13:return a.prev=13,e.setState({submitting:!1,selectedProcess:""}),a.finish(13);case 16:case"end":return a.stop()}}),a,null,[[3,10,13,16]])}))))},e.handleError=function(t){e.setState({errorMessage:t}),(0,e.props.onError)(t)},e}return Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.setState({loading:!0},Object(s.a)(r.a.mark((function t(){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:(a=t.sent)&&e.setState({config:a,loading:!1},Object(s.a)(r.a.mark((function t(){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchSchema();case 2:a=t.sent,e.setState({formSchema:a});case 4:case"end":return t.stop()}}),t)}))));case 4:case"end":return t.stop()}}),t)}))))}},{key:"render",value:function(){var e=this.state,t=e.loading,a=e.formSchema,n=e.config,r=e.submitting,o=e.errorMessage,i=this.props.onError,s=n&&n.settings&&n.settings.uiSchemas||[];return g.a.createElement(b.a.Provider,{value:{onSubmitForm:this.submitProcessForm,onError:i}},g.a.createElement(m.a,{theme:v.a},g.a.createElement(f.a,{disableGutters:!0},g.a.createElement(E.a,null,g.a.createElement(k.a,{loading:t,formSchema:a,uiSchemas:s,submitting:r}))),g.a.createElement(y.a,{message:o,type:"error",onClose:this.closeNotification})))}}]),a}(g.a.Component);O.defaultProps={onError:function(){},onSubmitForm:function(){},pageCode:"",frameId:""},t.a=Object(S.a)(O,["process-definition-form-get","process-definition-form-submit"])},367:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(11),i=a(10),s=a(17),c=a(15),l=a(19),u=a(18),d=a(467),m=a(0),p=a.n(m),g=a(7),f=a(241),A=a(26),h=a.n(A),v=a(685),b=a.n(v),E=a(1492),k=a(82),y=a(1528),S=a(1500),C=a(1496),O=a(14),w=a(81),T=a(113),P=a(56),j=a(173),x=a(224),I=a(86),N=a(194),D=a(1489),R=a(686),M=a.n(R),L=a(1444),B=a(1490),F=a(1483),_=a(1438),H=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={open:!1,selectedIndex:0},e.anchorRef=p.a.createRef(),e.handleClick=function(){var t=e.props;(0,t.onClick)(t.options[e.state.selectedIndex])},e.handleToggle=function(){e.setState((function(e){return{open:!e.open}}))},e.handleClose=function(t){e.anchorRef.current&&e.anchorRef.current.contains(t.target)||e.setState({open:!1})},e.handleMenuItemClick=function(t){e.setState({selectedIndex:t,open:!1})},e}return Object(c.a)(a,[{key:"render",value:function(){var e=this,t=this.state,a=t.selectedIndex,n=t.open,r=this.props,o=r.options,i=r.disabled;return p.a.createElement(p.a.Fragment,null,p.a.createElement(D.a,{color:"primary",ref:this.anchorRef,disabled:i,variant:"outlined"},p.a.createElement(N.a,{onClick:this.handleClick},o[a]),p.a.createElement(N.a,{size:"small",onClick:this.handleToggle},p.a.createElement(M.a,null))),p.a.createElement(B.a,{open:n,anchorEl:this.anchorRef.current,placement:"bottom-end"},p.a.createElement(f.a,null,p.a.createElement(L.a,{onClickAway:this.handleClose},p.a.createElement(_.a,{id:"split-button-menu"},o.map((function(t,n){return p.a.createElement(F.a,{key:t,selected:n===a,onClick:function(){return e.handleMenuItemClick(n)}},t)})))))))}}]),a}(p.a.Component);H.defaultProps={options:[],onClick:function(){},disabled:!1};var Z=H,z=a(182),V=a(730),U=a(688),q=a.n(U),K=function(e){var t=e.classes,a=e.onChange,n=e.value;return p.a.createElement("div",{className:t.root},p.a.createElement(V.a,{className:t.input,placeholder:"Search...",value:n,onChange:a}),p.a.createElement(q.a,null))};K.defaultProps={classes:{},value:""};var G=h()({root:{padding:"2px 4px",display:"flex",alignItems:"center",width:200},input:{flex:1}})(K),W=a(64),J=a(691),Y=a.n(J),X=a(689),Q=a.n(X),$=a(690),ee=a.n($),te=a(8),ae=Object(te.a)({root:{position:"absolute",textAlign:"center",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},icon:{fontSize:72,paddingBottom:10}})((function(e){var t=e.classes,a=e.message,n=function(e){switch(e){case"taskList.emptyList":return Q.a;case"messages.errors.errorResponse":return ee.a;default:return Y.a}}(a);return p.a.createElement("div",{className:t.root},p.a.createElement(n,{className:t.icon}),p.a.createElement(k.a,null,g.a.t(a)))})),ne=a(3),re=a.n(ne),oe=a(1499),ie=a(1493),se=a(1498),ce=a(1),le=(Object(ce.shape)({header:ce.string,accessor:ce.string,align:ce.string,styles:ce.object,sortFunction:ce.func}),a(1530)),ue=h()({spacer:{flex:"unset"},selectIcon:{top:"calc(50% - 12px)",color:"inherit"}})(le.a),de=function(e){var t=e.classes,a=e.colspan,n=e.text,r=e.height;return p.a.createElement("tbody",null,p.a.createElement("tr",{className:t.root},p.a.createElement("td",{colSpan:a,style:{height:r}},p.a.createElement(k.a,{variant:"body1",className:t.text},n))))};de.defaultProps={classes:{},colspan:1,text:"No data to display",height:250};var me=h()({root:{background:"transparent !important","& td":{textAlign:"center",padding:0}},text:{color:"#ccc"}})(de),pe=a(1494),ge=a(1491),fe=Object(te.a)({root:{whiteSpace:"nowrap",padding:"9px 16px 10px"}},{name:"StyledTableCell"})(ge.a),Ae=function(e){var t=e.column,a=e.row,n=t.customCell;return p.a.createElement(fe,{size:"small",key:t.accessor,align:t.align,style:t.styles},n?p.a.createElement(n,{row:a}):a[t.accessor])},he=h()({root:{color:"#e7eaec","& > *":{backgroundColor:"#ffffff"},"&.activeTask > *":{backgroundColor:"#e8f3f9"},"&:hover > *":{backgroundColor:"#f9f8f8",cursor:"pointer"}},selected:{"& > *":{backgroundColor:"#f4f6f7"},"&.activeTask > *":{backgroundColor:"#dce7ed"}}},{name:"StyledTableRowHover"})(ie.a),ve=function(e){var t=e.columns,a=e.rows,n=e.emptyRows,r=e.rowHeight,o=e.onRowClick,i=e.activeTaskId;return p.a.createElement(pe.a,null,a.map((function(e,a){return p.a.createElement(j.a.Consumer,{key:JSON.stringify(e)},(function(n){var s=n.selectedRows,c=n.rowAccessor;return p.a.createElement(he,{style:{height:r,cursor:e.onClick?"pointer":"initial"},hover:!0,className:e.id===i?"activeTask":"",selected:s.has(e[c]),onClick:function(t){o(e,a,t)}},t.map((function(t){return p.a.createElement(Ae,{key:JSON.stringify(t),column:t,row:e})})))}))})),n>0&&p.a.createElement(ie.a,{style:{height:r*n,background:"white"}},p.a.createElement(ge.a,null)))};ve.defaultProps={columns:[],rows:[],emptyRows:0,rowHeight:55,onRowClick:function(){},activeTaskId:""};var be=ve,Ee=a(1495),ke=a(1531),ye=function(e){var t=e.direction,a=e.classes,n=e.active,r=e.className,o=e.children,i=e.onClick;return p.a.createElement(ke.a,{className:re()(a[n?"".concat(t,"Active"):"notActive"],r),active:n,direction:t,onClick:i},o)};ye.defaultProps={classes:{},direction:"asc",className:""};var Se=h()({ascActive:{"&:hover":{"@global svg":{transform:"rotate(180deg)"}}},descActive:{"&:hover":{"@global svg":{transform:"rotate(0deg)"}}},notActive:{"@global svg":{transform:"rotate(0deg)"}}})(ye),Ce=a(343),Oe=h()({head:{backgroundColor:"#e5e6e7",color:"#323233",fontWeight:"bold",borderBottom:"1px solid #e7eaec",padding:"9px 16px 10px"}},{name:"StyledHeaderCell"})(ge.a);function we(e){var t=e.column,a=e.createSortHandler,n=e.sortedColumn,r=e.sortOrder,i="_checkbox"===t.header&&p.a.createElement(j.a.Consumer,null,(function(e){var t=e.onSelectAll,a=e.onSelectNone;return p.a.createElement(Ce.a,{onChange:function(e){return e.target.checked?t():a()}})}))||t.header||t.accessor,s=t.sortFunction?p.a.createElement(Se,{key:t.accessor,active:t.accessor===n,onClick:a(t.accessor),direction:r},i):i;return p.a.createElement(Oe,{variant:"head",key:t.accessor,align:t.align,style:Object(o.a)({whiteSpace:"nowrap"},t.styles)},s)}we.defaultProps={createSortHandler:function(){return function(){}},sortedColumn:""};var Te=we;function Pe(e){var t=e.columns,a=e.createSortHandler,n=e.sortedColumn,r=e.sortOrder;return p.a.createElement(Ee.a,null,p.a.createElement(ie.a,null,t.map((function(e){return p.a.createElement(Te,{key:JSON.stringify(e),column:e,createSortHandler:a,sortedColumn:n,sortOrder:r})}))))}Pe.defaultProps={createSortHandler:function(){return function(){}},sortedColumn:"",sortOrder:"asc"};var je=a(235),xe=a.n(je),Ie=a(692),Ne=a.n(Ie),De=a(358),Re=a.n(De),Me=a(378),Le=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).setPageNumber=function(e){n.setState({pageNumber:e})},n.handlePageNumberInputChange=function(e){var t=e.target.value,a=n.props.onChangePage;n.setPageNumber(t);var r=+t;r&&r<=n.numberOfPages&&a(r-1)},n.handleFirstPageButtonClick=function(){(0,n.props.onChangePage)(0)},n.handlePrevButtonClick=function(){var e=n.props;(0,e.onChangePage)(e.page-1)},n.handleNextButtonClick=function(){var e=n.props;(0,e.onChangePage)(e.page+1)},n.handleLastPageButtonClick=function(){var e=n.props,t=e.onChangePage,a=e.count,r=e.rowsPerPage;t(Math.max(0,Math.ceil(a/r)-1))},n.state={pageNumber:e&&e.page+1},n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this.props.page;this.setPageNumber(e+1)}},{key:"render",value:function(){var e=this,t=this.props,a=t.page,n=t.count,r=t.rowsPerPage,o=t.classes,i=this.state.pageNumber,s="".concat(this.numberOfPages).length;return p.a.createElement("div",{className:o.root},p.a.createElement(Me.a,{size:"small",onClick:this.handleFirstPageButtonClick,disabled:0===a},p.a.createElement(Re.a,null)),p.a.createElement(Me.a,{size:"small",onClick:this.handlePrevButtonClick,disabled:0===a},p.a.createElement(xe.a,{className:o.previousIcon})),p.a.createElement(C.a,{className:o.pageNumberInput,style:{width:25+10*s},value:i,onChange:function(t){return e.handlePageNumberInputChange(t)}}),p.a.createElement(k.a,null,"".concat(g.a.t("common.of")," ").concat(this.numberOfPages)),p.a.createElement(Me.a,{size:"small",onClick:this.handleNextButtonClick,disabled:a>=Math.ceil(n/r)-1},p.a.createElement(xe.a,null)),p.a.createElement(Me.a,{size:"small",onClick:this.handleLastPageButtonClick,disabled:a>=Math.ceil(n/r)-1},p.a.createElement(Ne.a,null)))}},{key:"numberOfPages",get:function(){var e=this.props,t=e.count,a=e.rowsPerPage;return Math.ceil(t/a)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=Math.floor(e.count/e.rowsPerPage)-1;return e.page===a||e.page!==+t.pageNumber+1?{pageNumber:e.page+1}:t}}]),a}(p.a.Component);Le.defaultProps={classes:{}};var Be=h()({root:{marginLeft:"auto",marginRight:20,display:"flex",alignItems:"center"},previousIcon:{transform:"rotate(180deg)"},pageNumberInput:{marginRight:10}})(Le),Fe=a(1457),_e=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).handleFirstPageButtonClick=function(){(0,e.props.onChangePage)(0)},e.handlePrevButtonClick=function(){var t=e.props;(0,t.onChangePage)(t.page-1)},e.handleNextButtonClick=function(){var t=e.props;(0,t.onChangePage)(t.page+1)},e.handleRowsPerPage=function(t){(0,e.props.onChangeRowsPerPage)(t)},e}return Object(c.a)(a,[{key:"render",value:function(){var e=this.props,t=e.page,a=e.rowsPerPage,n=e.rowsPerPageOptions,r=e.lastPage,o=e.classes;return p.a.createElement(ge.a,{className:o.root},p.a.createElement("div",{className:o.pageControl},p.a.createElement(k.a,{variant:"caption"},g.a.t("table.rowsPerPage")),p.a.createElement(Fe.a,{value:a,className:o.select,onChange:this.handleRowsPerPage},n.map((function(e){return p.a.createElement(F.a,{key:e,value:e},e)})))),p.a.createElement("div",{className:o.pageControl},p.a.createElement(Me.a,{size:"small",onClick:this.handleFirstPageButtonClick,disabled:0===t},p.a.createElement(Re.a,null)),p.a.createElement(Me.a,{size:"small",onClick:this.handlePrevButtonClick,disabled:0===t},p.a.createElement(xe.a,{className:o.previousIcon})),p.a.createElement(k.a,null,t+1),p.a.createElement(Me.a,{size:"small",onClick:this.handleNextButtonClick,disabled:r},p.a.createElement(xe.a,null))))}}]),a}(p.a.Component);_e.defaultProps={classes:{}};var He=h()({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},pageControl:{display:"flex",alignItems:"center"},previousIcon:{transform:"rotate(180deg)"},select:{textAlign:"right",textAlignLast:"right",marginLeft:8,fontSize:"inherit","&:before, &:hover:before":{content:"none"}}})(_e),Ze=a(79),ze=a(1497),Ve=function(e,t){return e-t},Ue=function(e){var t=e.classes,a=e.rows;return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",null,p.a.createElement(ze.a,{width:"100%",height:40,variant:"rect"}),Object(Ze.a)(Array(a)).map((function(e,n){return p.a.createElement(ze.a,{key:Ve(a,n),className:t.tableRows,width:"98%",height:10})}))),p.a.createElement("div",null,p.a.createElement(ze.a,{width:"100%",height:50,variant:"rect"})))};Ue.defaultProps={classes:{},rows:10};var qe=h()({tableRows:{margin:"40px auto 40px auto"}})(Ue),Ke=function(e){var t=e.from,a=e.to,n=e.count;return g.a.t("table.showing").replace("$1",t).replace("$2",a).replace("$3",n)},Ge=function(e){return"asc"===e?"desc":"asc"},We=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).createSortHandler=function(e){return function(){var t=n.props,a=t.columns,r=t.lazyLoadingProps;if(r&&r.onChange){var o=n.state,i=o.sortOrder,s=o.sortedColumn,c=o.rowsPerPage,l=o.filter,u=s===e?Ge(i):"asc";r.onChange(0,c,e,u,l,(function(){return n.setState({page:0,sortedColumn:e,sortOrder:u})}))}else{var d=a.find((function(t){return t.accessor===e})).sortFunction;n.setState((function(t){var a=t.sortOrder,n=t.sortedColumn;return{page:0,sortedColumn:e,sortFunction:d,sortOrder:n===e?Ge(a):"asc"}}))}}},n.handleChangeRowsPerPage=function(e){var t=n.props,a=t.lazyLoadingProps,r=t.onChangePage,o=n.state,i=o.sortedColumn,s=o.sortOrder,c=o.filter,l=e.target.value;a&&a.onChange?a.onChange(0,l,i,s,c,(function(){return n.setState({page:0,rowsPerPage:l})})):n.setState({page:0,rowsPerPage:l}),r(0,l)},n.handleChangePage=function(e){var t=n.props,a=t.lazyLoadingProps,r=t.onChangePage,o=n.state,i=o.rowsPerPage,s=o.sortedColumn,c=o.sortOrder,l=o.filter;n.setState({page:e}),r(e),a&&a.onChange&&a.onChange(e,i,s,c,l)},n.state={page:0,rowsPerPage:e.rowsPerPageOptions[0],sortedColumn:e.initialSortedColumn,sortFunction:e.initialSortedColumn&&e.columns.find((function(t){return t.accessor===e.initialSortedColumn})).sortFunction,sortOrder:e.initialSortOrder,filter:""},n}return Object(c.a)(a,[{key:"render",value:function(){var e=this.props,t=e.columns,a=e.rows,n=void 0===a?[]:a,r=e.rowsPerPageOptions,o=e.hidePagination,i=e.classes,s=e.lazyLoadingProps,c=e.loading,l=e.onRowClick,u=e.activeTaskId,d=this.state,m=d.rowsPerPage,f=d.page,A=d.sortedColumn,h=d.sortOrder,v=d.sortFunction,b=d.filter,E=void 0!==s,k=n,y=n.length;if(!E){b&&(k=[],n.forEach((function(e){for(var t=Object.keys(e),a=0;a<t.length;a+=1)if(e[t[a]]&&e[t[a]].toString().toUpperCase().includes(b.toUpperCase())){k.push(e);break}})),y=k.length),k=v?k.sort(v(A,h)):k;var S=f*m,C=S+m;k=o?k:k.slice(S,C)}return c?p.a.createElement(qe,{rows:m}):p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:i.tableWrapper},p.a.createElement(se.a,{className:re()(o&&i.hideShadows)},p.a.createElement(Pe,{columns:t,createSortHandler:this.createSortHandler,sortedColumn:A,sortOrder:h}),k.length?p.a.createElement(be,{activeTaskId:u,columns:t,rows:k,emptyRows:m-k.length,onRowClick:l}):p.a.createElement(me,{colspan:t.length,height:55*m}))),p.a.createElement(se.a,null,!o&&p.a.createElement(oe.a,null,p.a.createElement(ie.a,null,E?p.a.createElement(He,{rowsPerPage:m,page:f,rowsPerPageOptions:r,onChangePage:this.handleChangePage,onChangeRowsPerPage:this.handleChangeRowsPerPage,lastPage:s.lastPage}):p.a.createElement(ue,{colSpan:t.length,count:y,rowsPerPage:m,page:f,labelDisplayedRows:Ke,rowsPerPageOptions:r,onChangePage:this.handleChangePage,onChangeRowsPerPage:this.handleChangeRowsPerPage,ActionsComponent:Be,labelRowsPerPage:g.a.t("table.rowsPerPage")})))))}}]),a}(p.a.Component);We.defaultProps={classes:{},loading:!1,lazyLoadingProps:void 0,rowsPerPageOptions:[5,10,15],hidePagination:!1,initialSortedColumn:"",initialSortOrder:"asc",rows:[],columns:[],onRowClick:function(){},onChangePage:function(){},activeTaskId:""};var Je=h()({hideShadows:{boxShadow:"none"},tableWrapper:{overflow:"auto",position:"relative"}})(We),Ye=a(359),Xe=a(360),Qe=a(65),$e=[10,25,50,100],et=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];return(e=t.call.apply(t,[this].concat(c))).state={loading:!0,columns:[],rows:[],size:0,connection:"",filter:"",blocker:"",errorAlert:null,lastPage:!1,activeTab:0,diagramModal:{open:!1,title:"",body:""},selectedRows:[],groups:[],page:0,rowsPerPage:$e[0],activeTaskId:"",userDialog:{open:!1,value:""}},e.timer={ref:null},e.componentDidMount=Object(i.a)(r.a.mark((function t(){var a,n,i,s,c,l,u,d,m,p,g,f,A,h,v,b;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.props,n=a.lazyLoading,i=a.serviceUrl,s=a.pageCode,c=a.frameId,l=a.onSelectTask,O.c||(O.a.PDA=i),t.prev=2,t.next=5,Object(P.b)(s,c);case 5:if(!(u=t.sent).errors||!u.errors.length){t.next=8;break}throw u.errors[0];case 8:if(u.payload){t.next=10;break}throw new Error("messages.errors.widgetConfig");case 10:if(d=u.payload.config,m=d.knowledgeSource,p=e.state.groups,g=d.groups?JSON.parse(d.groups).filter((function(e){return e.checked})).map((function(e){return e.key})):p,!n){t.next=20;break}return t.next=17,Object(w.f)({connection:m,groups:g,page:0,pageSize:10});case 17:t.t0=t.sent,t.next=23;break;case 20:return t.next=22,Object(w.f)({connection:m,groups:g});case 22:t.t0=t.sent;case 23:if((f=t.t0).payload){t.next=26;break}throw new Error("messages.errors.errorResponse");case 26:f.payload.length?(A=d.options?JSON.parse(d.options):[],h=Object(z.e)(f.payload),v=e.state.columns,e.setState({activeTaskId:h[0].id},(function(){l(Object(o.a)({},h[0],{pos:0,lastPage:f.metadata.lastPage,groups:g}))})),b=Object(z.b)(d.columns?JSON.parse(d.columns):v,h[0]),e.setState({loading:!1,columns:Object(z.a)(b,A,{openDiagram:e.openDiagram,selectTask:l}),rows:h,lastPage:1===f.metadata.lastPage,size:f.metadata.size,connection:d.knowledgeSource,groups:g})):e.setState({blocker:"taskList.emptyList"}),t.next=32;break;case 29:t.prev=29,t.t1=t.catch(2),e.handleError(t.t1.message,"messages.errors.dataLoading");case 32:case"end":return t.stop()}}),t,null,[[2,29]])}))),e.componentDidUpdate=function(t){var a=e.props,n=a.lazyLoading,r=a.activeTask;t.lazyLoading!==n&&e.updateRows(n?0:void 0),t.activeTask!==r&&e.updateActiveTask(r)},e.updateActiveTask=function(t){e.setState({activeTaskId:t})},e.updateRows=function(){var t=Object(i.a)(r.a.mark((function t(a){var n,o,i,s,c,l,u,d,m,p,g=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:10,o=g.length>2?g[2]:void 0,i=g.length>3?g[3]:void 0,s=g.length>4?g[4]:void 0,c=g.length>5&&void 0!==g[5]?g[5]:function(){},l=g.length>6?g[6]:void 0,u=e.state,d=u.connection,m=u.groups,!l){t.next=11;break}return clearTimeout(e.timer.ref),t.next=11,x.a.timeout(800,e.timer);case 11:return e.setState({loading:!0}),t.prev=12,t.next=15,Object(w.f)({connection:d,groups:m,page:a,pageSize:n,sortedColumn:o,sortOrder:i,filter:s});case 15:if((p=t.sent).payload){t.next=18;break}throw p.message;case 18:e.setState({rows:Object(z.e)(p.payload),size:p.metadata.size,lastPage:1===p.metadata.lastPage,loading:!1}),c(),t.next=26;break;case 22:t.prev=22,t.t0=t.catch(12),e.handleError(t.t0,"messages.errors.dataLoading"),e.setState({loading:!1});case 26:case"end":return t.stop()}}),t,null,[[12,22]])})));return function(e){return t.apply(this,arguments)}}(),e.openDiagram=function(t){return Object(i.a)(r.a.mark((function a(){var n,o,i;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.state.connection,!t.processId||!t.id){a.next=17;break}return o="".concat(t.processId,"@").concat(t.id.split("@")[1]),e.setState({loading:!0}),a.prev=4,a.next=7,Object(T.a)(n,o);case 7:i=a.sent,e.setState({diagramModal:{title:"".concat(g.a.t("taskList.diagramModalTitle"),": ").concat(o),body:p.a.createElement(b.a,{src:i}),open:!0}}),a.next=14;break;case 11:a.prev=11,a.t0=a.catch(4),e.handleError(a.t0);case 14:return a.prev=14,e.setState({loading:!1}),a.finish(14);case 17:case"end":return a.stop()}}),a,null,[[4,11,14,17]])})))},e.onCloseDiagramModal=function(){var t=e.state.diagramModal;e.setState({diagramModal:Object(o.a)({},t,{open:!1})})},e.closeNotification=function(){e.setState({errorAlert:null})},e.changeBulkAction=function(t,a){var n=e.state,o=n.connection,s=n.selectedRows,c=n.page,l=e.props.lazyLoading;e.setState({loading:!0},Object(i.a)(r.a.mark((function n(){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(w.h)(o,t,s,a);case 3:e.setState({selectedRows:[]},(function(){return e.updateRows(l?c:void 0)})),n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),e.handleError(n.t0);case 9:case"end":return n.stop()}}),n,null,[[0,6]])}))))},e.toggleUserDialog=function(){e.setState((function(e){return{userDialog:{value:"",open:!e.userDialog.open}}}))},e.handleChangeUser=function(t){var a=t.target.value;e.setState((function(e){return{userDialog:Object(o.a)({},e.userDialog,{value:a})}}))},e.handleClickBulkAction=function(t){var a=t.toLowerCase();a===w.a[0]?e.toggleUserDialog():e.changeBulkAction(a)},e.handleChangeFilter=function(t){var a=e.props.lazyLoading,n=e.state,r=n.rowsPerPage,o=n.sortedColumn,i=n.sortOrder,s=t.target.value;e.setState({filter:s}),a&&e.updateRows(0,r,o,i,s,void 0,!0)},e.handleChangeTab=function(t,a){e.setState({activeTab:a})},e.handleChangePage=function(t,a){e.setState(Object(o.a)({page:t},a?{rowsPerPage:a}:{}))},e.handleRowClicked=function(t,a,n){var r=e.props.onSelectTask,i=e.state,s=i.page,c=i.rowsPerPage,l=i.lastPage,u=i.rows,d=s*(c||10)+a;if("checkbox"!==n.target.type){var m=l&&a===u.length-1;e.setState({activeTaskId:t.id},(function(){r(Object(o.a)({},t,{pos:d,lastPage:m?1:0}))}))}},e.handleRowSelectAll=function(){var t=e.state.rows,a=e.props.rowAccessor,n=t.map((function(e){return e[a]}));e.setState({selectedRows:n})},e.handleRowSelectNone=function(){return e.setState({selectedRows:[]})},e.handleRowToggleItem=function(t){var a=e.props.rowAccessor,n=e.state.selectedRows,r=t[a],o=new Set(n);o.has(r)?o.delete(r):o.add(r),e.setState({selectedRows:Array.from(o)})},e}return Object(c.a)(a,[{key:"handleError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=this.props.onError;a(e),this.setState({errorAlert:e.toString(),blocker:t,loading:!1})}},{key:"render",value:function(){var e,t=this,a=this.state,n=a.loading,r=a.columns,o=a.rows,i=a.size,s=a.blocker,c=a.errorAlert,l=a.lastPage,u=a.diagramModal,m=a.filter,A=a.activeTab,h=a.selectedRows,v=a.userDialog,b=a.activeTaskId,O=this.props,T=O.classes,P=O.lazyLoading,x=O.rowAccessor;P&&(e={onChange:this.updateRows,size:i,lastPage:l});var I=new Set(h);return p.a.createElement(d.a,{theme:Qe.a},p.a.createElement(f.a,{className:T.paper},s?p.a.createElement(ae,{message:s}):p.a.createElement(p.a.Fragment,null,p.a.createElement(E.a,{className:T.toolbar},p.a.createElement("div",{className:T.title},p.a.createElement(k.a,{variant:"h2"},g.a.t("table.title"))),p.a.createElement(G,{value:m,onChange:this.handleChangeFilter})),p.a.createElement("div",{className:T.tabs},p.a.createElement(y.a,{indicatorColor:"primary",textColor:"primary",onChange:this.handleChangeTab,value:A},p.a.createElement(S.a,{label:g.a.t("taskList.tabs.myTasks")})),p.a.createElement("div",{className:T.dropdown},p.a.createElement(Z,{disabled:!I.size,options:w.a.map((function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))})),onClick:this.handleClickBulkAction}))),p.a.createElement(j.a.Provider,{value:{selectedRows:I,onSelectAll:this.handleRowSelectAll,onSelectNone:this.handleRowSelectNone,onToggleItem:this.handleRowToggleItem,rowAccessor:x}},p.a.createElement(Je,{loading:n,columns:r,rows:o,rowsPerPageOptions:$e,lazyLoadingProps:e,onRowClick:this.handleRowClicked,onChangePage:this.handleChangePage,activeTaskId:b})))),p.a.createElement(Ye.a,{open:u.open,title:u.title,body:u.body,onClose:this.onCloseDiagramModal,maxWidth:"xl",fullWidth:!0}),p.a.createElement(Xe.a,{open:v.open,title:g.a.t("taskList.selectAssign"),message:p.a.createElement(C.a,{type:"text",value:v.value,onChange:this.handleChangeUser,fullWidth:!0}),onClose:this.toggleUserDialog,onConfirm:function(){t.changeBulkAction(w.a[0],v.value),t.toggleUserDialog()}}),p.a.createElement(W.a,{type:"error",message:c,onClose:this.closeNotification}))}}]),a}(p.a.Component);et.defaultProps={classes:{},lazyLoading:!0,onError:function(){},onSelectTask:function(){},serviceUrl:"",pageCode:"",frameId:"",rowAccessor:"id",activeTask:""};var tt=h()({toolbar:{justifyContent:"space-between",padding:"16px 16px 8px 16px",minHeight:"unset"},noSubtitleToolbar:{padding:"8px 16px"},bulkDropdown:{width:200,top:-5},title:{textAlign:"left"},paper:{minHeight:459,position:"relative"},tabs:{display:"flex",justifyContent:"space-between"},dropdown:{padding:8}})(et);t.a=Object(I.a)(tt,["task-list","process-diagram"])},368:function(e,t,a){"use strict";var n=a(11),r=a(4),o=a.n(r),i=a(10),s=a(17),c=a(15),l=a(12),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(467),A=a(470),h=a(731),v=a(81),b=a(56),E=a(14),k=a(65),y=p.a.createContext({}),S=a(1501),C=a(82),O=a(194),w=a(1489),T=a(693),P=a.n(T),j=a(694),x=a.n(j),I=function(){return p.a.createElement(y.Consumer,null,(function(e){var t=e.onPressPrevious,a=e.onPressNext,n=e.isFirst,r=e.isLast;return p.a.createElement(w.a,{color:"primary","aria-label":"outlined primary button group"},p.a.createElement(O.a,{startIcon:p.a.createElement(P.a,null),onClick:t,disabled:n},g.a.t("taskDetails.overview.previous")),p.a.createElement(O.a,{endIcon:p.a.createElement(x.a,null),onClick:a,disabled:r},g.a.t("taskDetails.overview.next")))}))},N=function(e){var t=e.title,a=e.taskLink;return p.a.createElement(h.a,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},t.toLowerCase().includes("overview")?p.a.createElement(S.a,{href:a,variant:"h2"},t):p.a.createElement(C.a,{variant:"h2"},t),p.a.createElement(I,null))};N.defaultProps={taskLink:null};var D=N,R=a(26),M=a.n(R),L=a(1502),B=a(1453),F=a(90),_=a.n(F),H=a(345),Z=function(e){return e?new Date(e).toLocaleString(g.a.language||"en"):"-"},z=[{label:"task.fields.createdBy",value:"createdBy"},{label:"task.fields.name",value:"name"},{label:"task.fields.createdOn",value:"createdAt",parse:Z},{label:"task.fields.status",value:"status",render:function(e,t){return p.a.createElement(H.a,{label:e,value:t})}},{label:"task.fields.due",value:"expirationTime",parse:Z}],V=M()({root:{marginTop:-18},value:{marginTop:"20px"}})((function(e){var t=e.task,a=e.classes,n=t.createdAt;return p.a.createElement(L.a,{container:!0,spacing:8,className:a.root},z.map((function(e){var r="function"===typeof e.parse?e.parse(t[e.value]):t[e.value],o="function"===typeof e.render;return p.a.createElement(L.a,{item:!0,key:e.label},p.a.createElement(B.a,null,g.a.t(e.label)),p.a.createElement("div",{className:a.value},o&&e.render(r,function(e){var t=_()(),a=_()(e);return t.diff(a,"hours")<=24?"success":t.diff(a,"days")<=7?"warning":"error"}(n)),!o&&p.a.createElement(C.a,{variant:"body1"},r)))})))})),U=a(1497),q=M()({header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},value:{marginTop:"20px"}})((function(e){var t=e.classes;return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:t.header},p.a.createElement(U.a,{width:"200px",height:33,variant:"rect"}),p.a.createElement(U.a,{width:"230px",height:40,variant:"rect"})),p.a.createElement("div",null,p.a.createElement(L.a,{container:!0,spacing:8},p.a.createElement(L.a,{item:!0},p.a.createElement(U.a,{width:"80px",variant:"rect"}),p.a.createElement("div",{className:t.value},p.a.createElement(U.a,{width:"60px",variant:"rect"}))),p.a.createElement(L.a,{item:!0},p.a.createElement(U.a,{width:"80px",variant:"rect"}),p.a.createElement("div",{className:t.value},p.a.createElement(U.a,{width:"100px",variant:"rect"}))),p.a.createElement(L.a,{item:!0},p.a.createElement(U.a,{width:"80px",variant:"rect"}),p.a.createElement("div",{className:t.value},p.a.createElement(U.a,{width:"120px",variant:"rect"}))),p.a.createElement(L.a,{item:!0},p.a.createElement(U.a,{width:"80px",variant:"rect"}),p.a.createElement("div",{className:t.value},p.a.createElement(U.a,{width:"100px",height:32,variant:"rect"}))),p.a.createElement(L.a,{item:!0},p.a.createElement(U.a,{width:"80px",variant:"rect"}),p.a.createElement("div",{className:t.value},p.a.createElement(U.a,{width:"100px",variant:"rect"}))))))})),K=a(87),G=function(e){var t=e.task,a=e.loadingTask,n=e.headerLabel,r=e.taskLink;return p.a.createElement(K.a,null,a&&p.a.createElement(q,null),!a&&t&&p.a.createElement(p.a.Fragment,null,p.a.createElement(D,{title:"".concat(g.a.t(n)," - ").concat(t.workItemId||""),taskLink:r}),p.a.createElement(V,{task:t})))};G.defaultProps={task:null,loadingTask:!1,headerLabel:"taskDetails.overview.title",taskLink:null};var W=G,J=a(1456),Y=M()({divider:{marginTop:"20px",marginBottom:"15px"},dataRow:{display:"flex",marginTop:"10px",marginBottom:"5px"},value:{marginLeft:"10px"}})((function(e){var t=e.classes;return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",null,p.a.createElement(U.a,{width:"190px",height:25,variant:"rect"}),p.a.createElement(J.a,{className:t.divider})),p.a.createElement("div",null,p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"100px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"100px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"150px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"80px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"100px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"100px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"150px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"80px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"100px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"100px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"150px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"})),p.a.createElement("div",{className:t.dataRow},p.a.createElement(U.a,{width:"80px",height:15,variant:"rect"}),p.a.createElement(U.a,{className:t.value,width:"190px",height:15,variant:"rect"}))))})),X=function(e){var t=e.classes,a=e.taskInputData,n=e.loadingTask,r=e.noHeadline,o=!a||0===Object.keys(a).length;if(n)return p.a.createElement(K.a,null,p.a.createElement(Y,null));var i=r?null:p.a.createElement(C.a,{variant:"h3"},g.a.t("taskDetails.generalInformation.title"));return p.a.createElement(K.a,{title:i,collapsible:!0,hasDivider:!0},o?g.a.t("taskDetails.generalInformation.noInformation"):p.a.createElement(L.a,{container:!0,spacing:1},Object.keys(a).map((function(e){return p.a.createElement(L.a,{item:!0,xs:12,md:6,key:e},p.a.createElement(C.a,{variant:"body1"},p.a.createElement("span",{className:t.label},g.a.t("task.inputData.".concat(e)),":"),a[e]))}))))};X.defaultProps={taskInputData:null,loadingTask:!1,noHeadline:!1};var Q=M()({label:{color:"#676A6C",fontSize:"13px",lineHeight:"15px",fontWeight:700,marginRight:"10px"}})(X),$=a(86),ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pda_task_details",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en";return"".concat(E.a.APP_BUILDER,"/").concat(r,"/").concat(e,".page?taskId=").concat(t,"&taskPos=").concat(a,"&groups=").concat(n)},te=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).componentDidUpdate=function(e){var t=n.props.taskId;e.taskId!==t&&n.fetchTask()},n.state={config:null,loadingTask:!1,task:null,taskPos:0,isLast:!1},n.fetchWidgetConfigs=n.fetchWidgetConfigs.bind(Object(l.a)(n)),n.handlePressPrevious=n.handlePressPrevious.bind(Object(l.a)(n)),n.handlePressNext=n.handlePressNext.bind(Object(l.a)(n)),n.fetchTaskListEntry=n.fetchTaskListEntry.bind(Object(l.a)(n)),n.fetchTask=n.fetchTask.bind(Object(l.a)(n)),n}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.setState({loadingTask:!0},Object(i.a)(o.a.mark((function t(){var a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:a=t.sent,e.setState({config:a},e.fetchTask);case 4:case"end":return t.stop()}}),t)}))))}},{key:"fetchWidgetConfigs",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t,a,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,n=t.frameId,e.prev=1,e.next=4,Object(b.b)(a,n);case 4:if(!(r=e.sent).errors||!r.errors.length){e.next=7;break}throw r.errors[0];case 7:return e.abrupt("return",r.payload.config);case 10:e.prev=10,e.t0=e.catch(1),this.handleError(e.t0.message);case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[1,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchTaskListEntry",value:function(){var e=Object(i.a)(o.a.mark((function e(t){var a,r,i,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this.state.config,r=a&&a.knowledgeSource){e.next=6;break}this.handleError(g.a.t("messages.errors.noConnection")),e.next=13;break;case 6:return this.setState({loadingTask:!0}),e.next=9,Object(v.b)({connection:r,taskPosition:t,onError:this.handleError});case 9:return i=e.sent,s=i.task,c=i.metadata,e.abrupt("return",Object(n.a)({},s,{pos:t,lastPage:c.lastPage}));case 13:return e.abrupt("return",{});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchTask",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t,a,n,r,s,c,l=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.config,a=this.props,n=a.taskPos,r=a.taskId,s=a.lastPage,(c=t&&t.knowledgeSource)?r&&this.setState({loadingTask:!0},Object(i.a)(o.a.mark((function e(){var t,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(v.d)(c,r);case 3:t=e.sent,a=t.payload,l.setState({task:a||null,taskPos:n,isLast:1===s}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.handleError(e.t0.message);case 11:return e.prev=11,l.setState({loadingTask:!1}),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))):this.handleError(g.a.t("messages.errors.noConnection"));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"handlePressPrevious",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t,a,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,a=t.onSelectTask,!((n=t.taskPos)>0)){e.next=6;break}return e.next=4,this.fetchTaskListEntry(n-1);case 4:r=e.sent,a(r);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"handlePressNext",value:function(){var e=Object(i.a)(o.a.mark((function e(){var t,a,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.isLast,a=this.props,n=a.onSelectTask,r=a.taskPos,t){e.next=7;break}return e.next=5,this.fetchTaskListEntry(r+1);case 5:i=e.sent,n(i);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"handleError",value:function(e){(0,this.props.onError)(e)}},{key:"render",value:function(){var e=this.state,t=e.loadingTask,a=e.task,n=e.taskPos,r=e.isLast,o=e.config,i=e.groups,s=this.props,c=s.onError,l=s.taskId,u=0===n,d=o&&o.settings,m="string"===typeof d?JSON.parse(o.settings):d,g=l&&m&&m.hasGeneralInformation||!1,v=a&&a.inputData||{};return p.a.createElement(y.Provider,{value:{onPressPrevious:this.handlePressPrevious,onPressNext:this.handlePressNext,onError:c,isFirst:u,isLast:r}},p.a.createElement(f.a,{theme:k.a},p.a.createElement(A.a,{maxWidth:!1,disableGutters:!0},p.a.createElement(h.a,{mb:g?"20px":"0px"},p.a.createElement(W,{task:a,loadingTask:t,headerLabel:m&&m.header,taskLink:ee(m&&m.destinationPageCode,a&&a.id,n,i)})),g&&p.a.createElement(Q,{taskInputData:v,loadingTask:t}))))}}]),a}(p.a.Component);te.defaultProps={onError:function(){},onSelectTask:function(){},pageCode:"",frameId:""};t.a=Object($.a)(te,["task-get"])},369:function(e,t,a){"use strict";var n=a(53),r=a(11),o=a(79),i=a(4),s=a.n(i),c=a(10),l=a(17),u=a(15),d=a(12),m=a(19),p=a(18),g=a(0),f=a.n(g),A=a(467),h=a(7),v=a(26),b=a.n(v),E=a(470),k=a(82),y=a(86),S=a(14),C=a(39),O={payload:[{id:"35",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis volutpat est ipsum, quis congue est pharetra ut. Morbi mollis sem eu tellus elementum, et bibendum dolor viverra. Donec maximus quam ligula, et commodo risus ultricies vel. Morbi mollis dui odio, id accumsan turpis pulvinar vitae. Mauris fringilla in mauris nec ullamcorper. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed eu sagittis metus, vitae posuere neque. Etiam ultrices, leo a convallis pharetra, magna ante mollis est, ut tristique neque mauris quis lacus.\n\nIn pulvinar, leo quis congue molestie, metus dolor sagittis magna, nec efficitur leo tortor at orci. Sed fringilla urna non urna dapibus, ac imperdiet libero condimentum. Phasellus vulputate vel est eu facilisis. Pellentesque eu purus egestas, condimentum ante finibus, consectetur purus. Sed commodo ante aliquam, vestibulum est at, laoreet lorem. Etiam blandit mi sed lectus fermentum, sit amet lacinia ligula egestas. Curabitur id elit mattis, ultricies mauris sagittis, viverra nulla. Nunc id ligula a dolor placerat porttitor ut in neque. Curabitur imperdiet felis a magna fringilla, nec tempus justo scelerisque.",createdBy:"pamAdmin",createdAt:"2020-01-01T12:00:00Z"},{id:"36",text:"Aenean felis nisi, elementum eu pretium sit amet, condimentum vitae ligula. Quisque facilisis lorem sit amet diam gravida luctus non sit amet eros. Donec id pulvinar lectus. Nunc at sollicitudin nunc. In lorem urna, molestie at ex auctor, tincidunt congue mi. Quisque nunc eros, efficitur eu ex dictum, tincidunt convallis velit. Phasellus et dui metus. Pellentesque ut varius augue, nec maximus elit. Mauris aliquam turpis vel enim egestas rhoncus. Aliquam facilisis magna id nibh cursus auctor. Mauris tellus mauris, auctor eu elementum id, maximus in lorem. Aenean in justo lacinia, malesuada nibh vitae, eleifend nisi. Nulla dapibus odio et dui ullamcorper congue. Sed porttitor sit amet leo et suscipit. Ut ac mattis metus, id venenatis ipsum. In quam metus, semper a magna ac, laoreet eleifend ex.",createdBy:"pamAdmin",createdAt:"2020-01-01T12:00:00Z"},{id:"37",text:"Pellentesque pretium bibendum eros eget hendrerit. Aliquam mollis augue nibh, id lobortis.",createdBy:"pamAdmin",createdAt:"2020-01-01T12:00:00Z"}],errors:[]},w={payload:{id:"38",text:"In justo ex, scelerisque sed ultrices sed, scelerisque sit amet purus. Vivamus.",createdBy:"pamAdmin",createdAt:"2020-01-29T09:29:05Z"},errors:[]},T={payload:"37",errors:[]},P=function(){var e=Object(c.a)(s.a.mark((function e(t,a){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(C.a)({domain:S.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/comments"),method:S.d.GET,mockResponse:O,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),j=function(){var e=Object(c.a)(s.a.mark((function e(t,a,n){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(C.a)({domain:S.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/comments"),method:S.d.POST,headers:{"Content-Type":"application/json"},body:JSON.stringify({comment:n}),mockResponse:w,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),x=function(){var e=Object(c.a)(s.a.mark((function e(t,a,n){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(C.a)({domain:S.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/comments/").concat(n),method:S.d.DELETE,mockResponse:T,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),I=a(56),N=a(65),D=a(64),R=a(87),M=a(1532),L=function(e){Object(p.a)(a,e);var t=Object(m.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).state={prompt:!1},n.togglePrompt=n.togglePrompt.bind(Object(d.a)(n)),n.handleClickRemove=n.handleClickRemove.bind(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"togglePrompt",value:function(){var e=this.state.prompt;this.setState({prompt:!e})}},{key:"handleClickRemove",value:function(){var e=this.props,t=e.comment.id;(0,e.onClickRemoveComment)(t)}},{key:"render",value:function(){var e=this.state.prompt,t=this.props,a=t.classes,n=t.comment,r=n.text,o=n.createdBy,i=n.createdAt;return f.a.createElement("div",{className:a.comment},f.a.createElement("div",{className:a.avatar},f.a.createElement(M.a,{alt:o,src:"/"})),f.a.createElement("div",{className:a.commentText},f.a.createElement("div",null,r),f.a.createElement("div",{className:a.created},"".concat(o," - ").concat(new Date(i).toLocaleString(h.a.language||"en")," - "),f.a.createElement("span",{onClick:this.togglePrompt,onKeyPress:this.togglePrompt,role:"button",tabIndex:0},h.a.t("taskComments.remove")),e&&f.a.createElement("span",null,f.a.createElement("span",{onClick:this.handleClickRemove,onKeyPress:this.handleClickRemove,role:"button",tabIndex:0,className:a.removeAnswers},h.a.t("common.yes")),"/",f.a.createElement("span",{onClick:this.togglePrompt,onKeyPress:this.togglePrompt,role:"button",tabIndex:0,className:a.removeAnswers},h.a.t("common.no"))))))}}]),a}(f.a.Component);L.defaultProps={onClickRemoveComment:function(){}};var B=b()({comment:{display:"flex",padding:"5px 10px",margin:"10px 0px"},avatar:{margin:"0px 30px"},commentText:{fontSize:"13px",lineHeight:"15px",color:"#686C6E"},created:{fontSize:"10px",lineHeight:"12px",color:"#8B8888",marginTop:"10px",marginLeft:"7px"},removeAnswers:{marginLeft:"5px",marginRight:"5px"}})(L),F=a(1448),_=a(194),H=a(1488),Z=function(e){Object(p.a)(a,e);var t=Object(m.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).state={comment:""},n.onChangeComment=n.onChangeComment.bind(Object(d.a)(n)),n.handleAddCommentClick=n.handleAddCommentClick.bind(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"onChangeComment",value:function(e){var t=e.target.value;this.setState({comment:t})}},{key:"handleAddCommentClick",value:function(){var e=this.state.comment;e.trim()&&(0,this.props.onClickAddComment)(e.trim());this.setState({comment:""})}},{key:"render",value:function(){var e=this.state.comment,t=this.props,a=t.classes,n=t.loading,r=200-e.length;return f.a.createElement("div",null,f.a.createElement("label",{htmlFor:"comment-entry",className:a.addNoteLabel},h.a.t("taskComments.addNote")),f.a.createElement(F.a,{id:"comment-entry",className:a.addNoteField,rowsMin:2,value:e,onChange:this.onChangeComment,disabled:n}),f.a.createElement(k.a,{color:r<0?"error":"initial",className:a.addNoteLimit},h.a.t("taskComments.maxChars",{max:200,rem:r})),f.a.createElement("div",{className:a.actionButtons},n?f.a.createElement(_.a,{disabled:!0,variant:"outlined",color:"primary"},f.a.createElement(H.a,{size:"20px"})):f.a.createElement(_.a,{onClick:this.handleAddCommentClick,variant:"outlined",color:"primary"},h.a.t("common.add"))))}}]),a}(f.a.Component);Z.defaultProps={onClickAddComment:function(){},loading:!1};var z=b()({addNoteField:{width:"100%",border:"1px solid #E5E6E7"},addNoteLabel:{color:"#A1A1A1",margin:"6px 2px"},addNoteLimit:{fontSize:"10px",margin:"2px"},actionButtons:{marginTop:"25px",display:"flex",justifyContent:"flex-end"}})(Z),V=a(1497),U=a(1456),q=b()({divider:{marginTop:"15px",marginBottom:"20px"},comment:{display:"flex",marginTop:"10px",marginBottom:"5px",paddingLeft:"10px"},avatar:{margin:"5px 25px 5px 30px"},commentText:{marginTop:"5px"},commentInfo:{marginLeft:"15px",marginTop:"10px"},addComment:{marginTop:"30px"},textField:{marginTop:"40px"},controls:{display:"flex",justifyContent:"flex-end",marginTop:"20px"}})((function(e){var t=e.classes;return f.a.createElement(f.a.Fragment,null,f.a.createElement("div",null,f.a.createElement(V.a,{width:"190px",height:20,variant:"rect"}),f.a.createElement(U.a,{className:t.divider})),f.a.createElement("div",null,f.a.createElement("div",{className:t.comment},f.a.createElement(V.a,{className:t.avatar,width:"40px",height:"40px",variant:"circle"}),f.a.createElement("div",null,f.a.createElement(V.a,{className:t.commentText,width:"90px",height:15,variant:"rect"}),f.a.createElement(V.a,{className:t.commentInfo,width:"190px",height:12,variant:"rect"}))),f.a.createElement("div",{className:t.comment},f.a.createElement(V.a,{className:t.avatar,width:"40px",height:"40px",variant:"circle"}),f.a.createElement("div",null,f.a.createElement(V.a,{className:t.commentText,width:"220px",height:15,variant:"rect"}),f.a.createElement(V.a,{className:t.commentInfo,width:"190px",height:12,variant:"rect"}))),f.a.createElement("div",{className:t.comment},f.a.createElement(V.a,{className:t.avatar,width:"40px",height:"40px",variant:"circle"}),f.a.createElement("div",null,f.a.createElement(V.a,{className:t.commentText,width:"320px",height:15,variant:"rect"}),f.a.createElement(V.a,{className:t.commentInfo,width:"190px",height:12,variant:"rect"}))),f.a.createElement("div",{className:t.addComment},f.a.createElement(V.a,{width:"50px",variant:"rect"}),f.a.createElement(U.a,{className:t.textField})),f.a.createElement("div",{className:t.controls},f.a.createElement(V.a,{width:"70px",height:30,variant:"rect"}))))})),K=function(e){Object(p.a)(a,e);var t=Object(m.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).componentDidUpdate=function(e){var t=n.props.taskId;e.taskId!==t&&n.fetchComments()},n.closeNotification=function(){n.setState({errorMessage:""})},n.state={loading:!1,addingComment:!1,config:{},comments:[],errorMessage:""},n.closeNotification=n.closeNotification.bind(Object(d.a)(n)),n.handleError=n.handleError.bind(Object(d.a)(n)),n.fetchWidgetConfigs=n.fetchWidgetConfigs.bind(Object(d.a)(n)),n.fetchComments=n.fetchComments.bind(Object(d.a)(n)),n.onClickAddComment=n.onClickAddComment.bind(Object(d.a)(n)),n.onClickRemoveComment=n.onClickRemoveComment.bind(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.setState({loading:!0},Object(c.a)(s.a.mark((function t(){var a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:a=t.sent,e.setState({config:a},(function(){return e.fetchComments()}));case 4:case"end":return t.stop()}}),t)}))))}},{key:"onClickAddComment",value:function(e){var t=this;this.setState({addingComment:!0},Object(c.a)(s.a.mark((function a(){var n,r,i,c,l,u,d,m;return s.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.state,r=n.config,i=n.comments,c=t.props,l=c.taskId,u=c.onClickAddComment,d=r&&r.knowledgeSource||"",a.prev=3,a.next=6,j(d,l,e);case 6:m=a.sent,t.setState({comments:[].concat(Object(o.a)(i),[m.payload]),addingComment:!1}),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(3),t.handleError(a.t0.message);case 13:u(e);case 14:case"end":return a.stop()}}),a,null,[[3,10]])}))))}},{key:"onClickRemoveComment",value:function(){var e=Object(c.a)(s.a.mark((function e(t){var a,n,r,o,i,c,l;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.state,n=a.config,r=a.comments,o=this.props,i=o.taskId,c=o.onClickRemoveComment,l=n&&n.knowledgeSource||"",e.prev=3,e.next=6,x(l,i,t);case 6:this.setState({comments:r.filter((function(e){return e.id!==t}))}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),this.handleError(e.t0.message);case 12:c(t);case 13:case"end":return e.stop()}}),e,this,[[3,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComments",value:function(){var e=Object(c.a)(s.a.mark((function e(){var t,a,n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.config,a=this.props.taskId,n=t&&t.knowledgeSource||"",!a||!a.length){e.next=14;break}return e.prev=4,e.next=7,P(n,a);case 7:r=e.sent,this.setState({comments:r.payload||[],loading:!1}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),this.handleError(e.t0.message);case 14:case"end":return e.stop()}}),e,this,[[4,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"handleError",value:function(e){this.setState({errorMessage:e}),(0,this.props.onError)(e)}},{key:"fetchWidgetConfigs",value:function(){var e=Object(c.a)(s.a.mark((function e(){var t,a,o,i,c,l,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,o=t.frameId,e.prev=1,e.next=4,Object(I.b)(a,o);case 4:if(!(i=e.sent).errors||!i.errors.length){e.next=7;break}throw i.errors[0];case 7:return c=i.payload.config,l=c.settings&&JSON.parse(c.settings)||{},u=Object.keys(l).reduce((function(e,t){return Object(r.a)({},e,Object(n.a)({},t,JSON.parse(l[t])))}),{}),e.abrupt("return",Object(r.a)({},c,{settings:u}));case 13:e.prev=13,e.t0=e.catch(1),this.handleError(e.t0.message);case 16:return e.abrupt("return",{});case 17:case"end":return e.stop()}}),e,this,[[1,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state,a=t.comments,n=t.loading,r=t.addingComment,o=t.errorMessage,i=this.props,s=i.classes,c=i.taskId,l=a.length>0;if(n)return f.a.createElement(R.a,null,f.a.createElement(q,null));var u=f.a.createElement(k.a,{variant:"h3"},h.a.t("taskComments.title")," - ",c);return f.a.createElement(A.a,{theme:N.a},f.a.createElement(E.a,{disableGutters:!0},f.a.createElement(R.a,{title:u,collapsible:!0,hasDivider:!0},!l&&f.a.createElement(k.a,{className:s.noComments,variant:"body1"},h.a.t("taskComments.noComments")),l&&f.a.createElement("div",{className:s.commentContainer},a.map((function(t){return f.a.createElement(B,{key:t.id,comment:t,onClickRemoveComment:e.onClickRemoveComment})}))),f.a.createElement(z,{loading:r,onClickAddComment:this.onClickAddComment}))),f.a.createElement(D.a,{type:"error",message:o,onClose:this.closeNotification}))}}]),a}(f.a.Component);K.defaultProps={onClickAddComment:function(){},onClickRemoveComment:function(){},onError:function(){},pageCode:"",frameId:""};var G=b()({noComments:{marginTop:"10px"},commentContainer:{marginTop:"10px",maxHeight:"400px",overflowY:"auto"}})(K);t.a=Object(y.a)(G,["task-comments-list","task-comments-get","task-comments-create","task-comments-delete"])},370:function(e,t,a){"use strict";var n=a(53),r=a(11),o=a(4),i=a.n(o),s=a(10),c=a(17),l=a(15),u=a(19),d=a(18),m=a(470),p=a(194),g=a(1502),f=a(82),A=a(467),h=a(26),v=a.n(h),b=a(0),E=a.n(b),k=a(7),y=a(14),S=a(54),C=a(65),O=a(3),w=a.n(O),T=a(241),P=a(731),j=a(1456),x=function(e){var t=e.title,a=e.topRightComp,n=e.hasDivider,r=e.classes,o=e.className,i=e.children,s=e.expanded,c=t;return"string"===typeof t&&(c=E.a.createElement(f.a,{variant:"h2"},t)),E.a.createElement(T.a,{variant:"outlined",square:!0,className:w()(r.widgetBox,o)},t&&E.a.createElement(P.a,{display:"flex",justifyContent:"space-between",alignItems:"center",p:"20px 25px"},c,E.a.createElement("div",null,a)),s&&E.a.createElement(E.a.Fragment,null,n&&E.a.createElement(j.a,null),i&&E.a.createElement(P.a,{p:"20px 25px"},i)))};x.defaultProps={title:null,topRightComp:null,hasDivider:!1,className:"",expanded:!1};var I=v()({widgetBox:{background:"#FEFEFE"}})(x),N=a(1507),D=a(1508),R=a(1532),M=a(1509),L=a(1510),B=a(378),F=a(230),_=a.n(F),H=a(712),Z=a.n(H),z=v()({online:{backgroundColor:"green"},offline:{backgroundColor:"red"},cardContent:{minHeight:170}})((function(e){var t=e.classes,a=e.connection,n=e.onEdit,r=e.onDelete,o=e.onTest;return E.a.createElement(g.a,{item:!0,xs:3},E.a.createElement(N.a,{variant:"outlined",square:!0},E.a.createElement(D.a,{avatar:E.a.createElement(R.a,{className:t[a.online]},a.name.charAt(0)),title:a.name,subheader:a.engine}),E.a.createElement(M.a,{className:t.cardContent},E.a.createElement(f.a,{color:"textSecondary",gutterBottom:!0,style:{paddingBottom:10}},a.url),E.a.createElement(f.a,{variant:"body2",gutterBottom:!0},E.a.createElement("b",null,"Username: ")," ",a.username),E.a.createElement(f.a,{variant:"body2",gutterBottom:!0},E.a.createElement("b",null,"Timeout: ")," ",a.connectionTimeout)),E.a.createElement(L.a,null,E.a.createElement(p.a,{variant:"outlined",onClick:o(a.name)},"Test connection"),E.a.createElement(B.a,{title:k.a.t("common.delete"),size:"small",style:{marginLeft:"auto"},onClick:r(a.name)},E.a.createElement(_.a,{fontSize:"small"})),E.a.createElement(B.a,{title:k.a.t("common.edit"),size:"small",onClick:n(a)},E.a.createElement(Z.a,{fontSize:"small"})))))})),V=a(1497),U=function(){return E.a.createElement(g.a,{item:!0,xs:3},E.a.createElement(N.a,{variant:"outlined",square:!0},E.a.createElement(D.a,{avatar:E.a.createElement(V.a,{variant:"circle",width:40,height:40}),title:E.a.createElement(V.a,{variant:"text"}),subheader:E.a.createElement(V.a,{variant:"text",width:"40%"})}),E.a.createElement(M.a,null,E.a.createElement(V.a,{variant:"text"}),E.a.createElement(V.a,{variant:"text",width:"80%"}),E.a.createElement(V.a,{variant:"text",width:"70%"}),E.a.createElement(V.a,{variant:"text",width:"60%"})),E.a.createElement(L.a,null,E.a.createElement(V.a,{variant:"rect",width:136,height:31}),E.a.createElement(V.a,{variant:"circle",width:24,height:24,style:{marginLeft:"auto"}}),E.a.createElement(V.a,{variant:"circle",width:24,height:24}))))},q=a(1496),K=[{key:"name",label:"Name",size:3},{key:"engine",label:"Engine",size:3},{key:"url",label:"Connection URL",size:6},{key:"username",label:"Username",size:3},{key:"password",label:"Password",size:3},{key:"connectionTimeout",label:"Timeout",size:3}],G=v()({title:{paddingBottom:20},footer:{paddingTop:10,textAlign:"right"}})((function(e){var t=e.classes,a=e.onChange,n=e.onCancel,r=e.onSave,o=e.form;return E.a.createElement("div",null,E.a.createElement(f.a,{className:t.title,variant:"h4"},"Create new connection"),E.a.createElement("div",null,E.a.createElement(g.a,{container:!0,spacing:3},K.map((function(e){return E.a.createElement(g.a,{key:e.key,item:!0,xs:e.size},E.a.createElement(q.a,{id:e.key,label:e.label,onChange:a(e.key),value:o[e.key],type:"password"===e.key?e.key:"text",disabled:"name"===e.key&&o.edit,fullWidth:!0,InputLabelProps:{shrink:!0}}))})))),E.a.createElement("div",{className:t.footer},E.a.createElement(p.a,{variant:"contained",disableElevation:!0,onClick:n},"Cancel")," ",E.a.createElement(p.a,{color:"primary",variant:"contained",disableElevation:!0,onClick:r},"Save")))})),W=a(64),J=a(1488),Y=function(e){var t=e.loading,a=e.classes;return t&&E.a.createElement("div",{className:a.root},E.a.createElement(J.a,{className:a.loader}))};Y.defaultProps={loading:!1};var X=v()({root:{width:"100%",height:"100%",position:"fixed",backgroundColor:"rgba(0,0,0,.4)",top:0,left:0},loader:{position:"absolute",left:"50%",top:"50%",marginLeft:-20,marginTop:-20}})(Y),Q={name:"",engine:"",url:"",connectionTimeout:"",username:"",password:""},$=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return(e=t.call.apply(t,[this].concat(l))).state={connectionsList:[],showForm:!1,formData:Q,listLoader:!0,loader:!1,notification:{message:"",type:"error"}},e.componentDidMount=function(){var t=e.props.serviceUrl;y.c||(y.a.PDA=t),e.fetchConnections()},e.fetchConnections=Object(s.a)(i.a.mark((function t(){var a,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(S.c)();case 2:a=t.sent,n=a.payload,e.setState({connectionsList:n,listLoader:!1});case 5:case"end":return t.stop()}}),t)}))),e.handleAddButton=function(){e.setState({showForm:!0})},e.handleFormChange=function(t){return function(a){var o=a.target.value,i=e.state.formData,s=Object(r.a)({},i,Object(n.a)({},t,o));e.setState({formData:s})}},e.handleCancelForm=function(){e.setState({formData:Q,showForm:!1})},e.handleSave=Object(s.a)(i.a.mark((function t(){var a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.state.formData,t.prev=1,!a.edit){t.next=8;break}return t.next=5,Object(S.d)(a);case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,Object(S.a)(a);case 10:t.t0=t.sent;case 11:t.t0.payload&&e.setState({showForm:!1,notification:{message:k.a.t("messages.success.saved"),type:"success"}},e.fetchConnections),t.next=18;break;case 15:t.prev=15,t.t1=t.catch(1),e.setState({notification:{message:t.t1.message,type:"error"}});case 18:case"end":return t.stop()}}),t,null,[[1,15]])}))),e.handleEdit=function(t){return function(){var a=Object(r.a)({},Q,{},t,{edit:!0});e.setState({formData:a,showForm:!0})}},e.handleDelete=function(t){return Object(s.a)(i.a.mark((function a(){return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.setState({loader:!0}),a.prev=1,a.next=4,Object(S.b)(t);case 4:e.fetchConnections(),a.next=10;break;case 7:a.prev=7,a.t0=a.catch(1),e.setState({notification:{message:a.t0.message,type:"error"}});case 10:return a.prev=10,e.setState({loader:!1}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[1,7,10,13]])})))},e.handleTestConnection=function(t){return Object(s.a)(i.a.mark((function a(){var n,o;return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.state.connectionsList,e.setState({loader:!0}),a.prev=2,a.next=5,Object(S.e)(t);case 5:o=n.map((function(e){return e.name===t?Object(r.a)({},e,{online:"online"}):e})),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(2),o=n.map((function(e){return e.name===t?Object(r.a)({},e,{online:"offline"}):e}));case 11:e.setState({connectionsList:o,loader:!1});case 12:case"end":return a.stop()}}),a,null,[[2,8]])})))},e.handleCloseNotifications=function(){e.setState({notification:{message:""}})},e}return Object(l.a)(a,[{key:"render",value:function(){var e=this,t=this.props.classes,a=this.state,n=a.connectionsList,r=a.showForm,o=a.formData,i=a.listLoader,s=a.loader,c=a.notification;return E.a.createElement(A.a,{theme:C.a},E.a.createElement(m.a,null,E.a.createElement(I,{title:"Connections",topRightComp:E.a.createElement(p.a,{color:"primary",variant:"contained",onClick:this.handleAddButton,disableElevation:!0},"Create new connection"),expanded:r,hasDivider:!0},E.a.createElement(G,{form:o,onChange:this.handleFormChange,onCancel:this.handleCancelForm,onSave:this.handleSave})),E.a.createElement(g.a,{className:t.gridContainer,container:!0,spacing:2},i&&E.a.createElement(E.a.Fragment,null,E.a.createElement(U,null),E.a.createElement(U,null),E.a.createElement(U,null),E.a.createElement(U,null)),n?n.map((function(t){return E.a.createElement(z,{key:t.name,connection:t,onEdit:e.handleEdit,onDelete:e.handleDelete,onTest:e.handleTestConnection})})):E.a.createElement(f.a,null,"No connections found.")),E.a.createElement(X,{loading:s}),E.a.createElement(W.a,{message:c.message,type:c.type,onClose:this.handleCloseNotifications})))}}]),a}(E.a.Component);$.defaultProps={serviceUrl:""};t.a=v()({gridContainer:{marginTop:10}})($)},371:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=a(17),s=a(15),c=a(19),l=a(18),u=a(467),d=a(0),m=a.n(d),p=a(7),g=a(1439),f=a(26),A=a.n(f),h=a(194),v=a(470),b=a(82),E=a(14),k=a(224),y={payload:[{id:"2",name:"55954396_2301387639927701_986123889866178560_o.jpg",createdBy:"pamAdmin",createdAt:"2020-01-27T08:11:25Z",type:"[B",size:113905},{id:"4",name:"55954396_2301387639927701_986123889866178560_o.jpg",createdBy:"pamAdmin",createdAt:"2020-01-28T12:48:36Z",type:"[B",size:113905}],errors:[]},S=a(39),C=function(){var e=Object(o.a)(r.a.mark((function e(t,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(S.a)({domain:E.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/attachments"),method:E.d.GET,mockResponse:y,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),O=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n){var o,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.a.toBase64(n);case 2:return o=e.sent,i={file:o},e.abrupt("return",Object(S.a)({domain:E.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/attachments"),method:E.d.POST,body:JSON.stringify(i),mockResponse:{},useAuthentication:!0}));case 5:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),w=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(S.a)({domain:E.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/attachments/").concat(n),method:E.d.DELETE,mockResponse:{},useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),T=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(S.a)({domain:E.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/attachments/").concat(n,"/download"),method:E.d.GET,mockResponse:y,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),P=a(56),j=a(65),x=a(87),I=a(359),N=a(64),D=a(79),R=a(1497),M=a(1440),L=a(1504),B=a(1503),F=a(1511),_=function(e,t){return e-t},H=function(e){var t=e.classes,a=e.rows;return m.a.createElement("div",null,m.a.createElement(g.a,null,Object(D.a)(Array(a)).map((function(e,n){return m.a.createElement(M.a,{key:_(a,n),className:t.listItem},m.a.createElement(B.a,null,m.a.createElement(R.a,{variant:"circle",width:20,height:20})),m.a.createElement(L.a,null,m.a.createElement(R.a,{width:"80%"})),m.a.createElement(F.a,null,m.a.createElement(R.a,{variant:"circle",width:20,height:20})))}))))};H.defaultProps={classes:{},rows:10};var Z=A()({listItem:{border:"solid 1px #eee",marginBottom:2,background:"white",borderRadius:3,height:52}})(H),z=a(722),V=function(e){Object(l.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(i.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={files:[]},e.handleChange=function(t){e.setState({files:t})},e.handleUploadButton=function(){var t=e.state.files;(0,e.props.onUpload)(t)},e}return Object(s.a)(a,[{key:"render",value:function(){var e=this.state.files,t=this.props,a=t.classes,n=t.onClose;return m.a.createElement(m.a.Fragment,null,m.a.createElement(z.a,{onChange:this.handleChange,dropzoneText:"Click or Drag and Drop your attachments",dropzoneParagraphClass:a.dropZoneText,dropzoneClass:a.dropZone}),m.a.createElement("div",{className:a.buttonWrapper},m.a.createElement(h.a,{variant:"outlined",color:"default",onClick:n},"Close")," ",m.a.createElement(h.a,{disabled:!e.length,variant:"contained",color:"primary",onClick:this.handleUploadButton},"Upload files")))}}]),a}(m.a.Component),U=A()({buttonWrapper:{padding:"10px 0",textAlign:"right"},dropZone:{width:400},dropZoneText:{padding:10,fontSize:15}})(V),q=a(717),K=a.n(q),G=a(230),W=a.n(G),J=a(378),Y=a(1501),X=a(360),Q=function(e){Object(l.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(i.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={dialogOpen:!1},e.handleDeleteDialog=function(){e.setState((function(e){return{dialogOpen:!e.dialogOpen}}))},e}return Object(s.a)(a,[{key:"render",value:function(){var e=this.state.dialogOpen,t=this.props,a=t.classes,n=t.item,r=t.onDelete,o=t.onDownload;return m.a.createElement(m.a.Fragment,null,m.a.createElement(M.a,{className:a.listItem},m.a.createElement(B.a,null,m.a.createElement(K.a,{fontSize:"small"})),m.a.createElement(L.a,{className:a.truncate},m.a.createElement(Y.a,{className:a.filename,onClick:o(n)},n.name)),m.a.createElement(F.a,null,m.a.createElement(J.a,{size:"small",onClick:this.handleDeleteDialog},m.a.createElement(W.a,{fontSize:"small"})))),m.a.createElement(X.a,{title:"Attachment exclusion",message:m.a.createElement(m.a.Fragment,null,m.a.createElement(b.a,{gutterBottom:!0},p.a.t("messages.warning.deleteFilePermanently")),m.a.createElement(b.a,{variant:"body2"},n.name)),open:e,onClose:this.handleDeleteDialog,onConfirm:r(n),maxWidth:"md"}))}}]),a}(m.a.Component);Q.defaultProps={classes:{},item:{}};var $=A()({listItem:{border:"solid 1px #eee",marginBottom:2,background:"white",borderRadius:3},truncate:{display:"block",overflow:"hidden",width:"80%",textOverflow:"ellipsis"},filename:{lineHeight:"24px"}})(Q),ee=function(e){Object(l.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(i.a)(this,a);for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return(e=t.call.apply(t,[this].concat(s))).state={attachments:[],loading:!0,dialogOpen:!1,connection:"",notification:{}},e.componentDidMount=Object(o.a)(r.a.mark((function t(){var a,n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.props.serviceUrl,E.c||(E.a.PDA=a),t.next=4,e.fetchConfigs();case 4:n=t.sent,e.setState({connection:n.knowledgeSource},Object(o.a)(r.a.mark((function t(){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchAttachments();case 2:a=t.sent,e.setState({attachments:a,loading:!1});case 4:case"end":return t.stop()}}),t)}))));case 6:case"end":return t.stop()}}),t)}))),e.componentDidUpdate=function(){var t=Object(o.a)(r.a.mark((function t(a){var n,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.props.taskId,a.taskId===n){t.next=6;break}return t.next=4,e.fetchAttachments();case 4:o=t.sent,e.setState({attachments:o});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.fetchConfigs=Object(o.a)(r.a.mark((function t(){var a,n,o,i,s;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.props,n=a.pageCode,o=a.frameId,t.prev=1,t.next=4,Object(P.b)(n,o);case 4:if(!(i=t.sent).errors.length){t.next=7;break}throw i.errors[0];case 7:if(i.payload){t.next=9;break}throw new Error(p.a.t("messages.errors.widgetConfig"));case 9:return s=i.payload.config,t.abrupt("return",s);case 13:t.prev=13,t.t0=t.catch(1),e.handleError(t.t0);case 16:return t.abrupt("return",{});case 17:case"end":return t.stop()}}),t,null,[[1,13]])}))),e.fetchAttachments=Object(o.a)(r.a.mark((function t(){var a,n,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.state.connection,!(n=e.props.taskId)){t.next=15;break}return t.prev=3,t.next=6,C(a,n);case 6:if(!(o=t.sent).errors.length){t.next=9;break}throw o.errors[0];case 9:return t.abrupt("return",o.payload);case 12:t.prev=12,t.t0=t.catch(3),t.t0.message.includes("404")||e.handleError(t.t0);case 15:return t.abrupt("return",[]);case 16:case"end":return t.stop()}}),t,null,[[3,12]])}))),e.toggleDialog=function(){e.setState((function(e){return{dialogOpen:!e.dialogOpen}}))},e.handleUpload=function(){var t=Object(o.a)(r.a.mark((function t(a){var n,i,s,c;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state.connection,i=e.props.taskId,e.setState({loading:!0},e.toggleDialog),t.prev=3,s=a.map(function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(n,i,t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.next=7,Promise.all(s);case 7:if(!t.sent.length){t.next=13;break}return t.next=11,e.fetchAttachments();case 11:c=t.sent,e.setState({attachments:c});case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),e.handleError(t.t0);case 18:e.setState({loading:!1});case 19:case"end":return t.stop()}}),t,null,[[3,15]])})));return function(e){return t.apply(this,arguments)}}(),e.handleDelete=function(t){return Object(o.a)(r.a.mark((function a(){var n,o,i;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.state.connection,o=e.props.taskId,a.prev=2,e.setState({loading:!0}),a.next=6,w(n,o,t.id);case 6:return a.next=8,e.fetchAttachments();case 8:i=a.sent,e.setState({attachments:i}),a.next=15;break;case 12:a.prev=12,a.t0=a.catch(2),e.handleError(a.t0);case 15:return a.prev=15,e.setState({loading:!1}),a.finish(15);case 18:case"end":return a.stop()}}),a,null,[[2,12,15,18]])})))},e.handleError=function(t){e.setState({notification:{message:"object"===typeof t?t.message:t,type:"error"}})},e.handleCloseNotifications=function(){e.setState({notification:{}})},e.handleDownload=function(t){return function(){var a=Object(o.a)(r.a.mark((function a(n){var o,i,s,c,l,u,d,m,p,g;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=e.state.connection,i=e.props.taskId,n.preventDefault(),a.prev=3,e.setState({loading:!0}),a.next=7,T(o,i,t.id);case 7:s=a.sent,c=s.body.getReader(),l=[];case 10:return a.next=13,c.read();case 13:if(u=a.sent,d=u.done,m=u.value,!d){a.next=18;break}return a.abrupt("break",21);case 18:l.push(m),a.next=10;break;case 21:p=window.URL.createObjectURL(new Blob(l)),(g=document.createElement("a")).href=p,g.setAttribute("download",t.name),document.body.appendChild(g),g.click(),g.parentNode.removeChild(g),a.next=33;break;case 30:a.prev=30,a.t0=a.catch(3),e.handleError(a.t0);case 33:return a.prev=33,e.setState({loading:!1}),a.finish(33);case 36:case"end":return a.stop()}}),a,null,[[3,30,33,36]])})));return function(e){return a.apply(this,arguments)}}()},e}return Object(s.a)(a,[{key:"render",value:function(){var e=this,t=this.state,a=t.attachments,n=t.loading,r=t.dialogOpen,o=t.notification,i=this.props.classes;return m.a.createElement(u.a,{theme:j.a},m.a.createElement(v.a,{disableGutters:!0},m.a.createElement(x.a,null,m.a.createElement(b.a,{variant:"h3"},"Attachments"),n?m.a.createElement(Z,{rows:3}):a.length?m.a.createElement(g.a,null,a.map((function(t){return m.a.createElement($,{key:t.id,item:t,onDelete:e.handleDelete,onDownload:e.handleDownload})}))):m.a.createElement("div",{className:i.empty},m.a.createElement(b.a,null,"".concat(p.a.t("messages.warnings.noAttachments"),"."))),m.a.createElement("div",{className:i.footer},m.a.createElement(h.a,{variant:"outlined",color:"primary",onClick:this.toggleDialog},"Add")))),m.a.createElement(I.a,{title:"Add new Attachment",open:r,body:m.a.createElement(U,{onUpload:this.handleUpload,onClose:this.toggleDialog}),onClose:this.toggleDialog,maxWidth:"md"}),m.a.createElement(N.a,{message:o.message,type:o.type,onClose:this.handleCloseNotifications}))}}]),a}(m.a.Component);ee.defaultProps={classes:{},serviceUrl:"",pageCode:"",frameId:""};t.a=A()({footer:{textAlign:"right"},empty:{border:"1px solid #eeeeee",marginTop:8,marginBottom:8,background:"white",borderRadius:3,padding:18,textAlign:"center",minHeight:52}})(ee)},372:function(e,t,a){"use strict";var n=a(79),r=a(11),o=a(4),i=a.n(o),s=a(10),c=a(17),l=a(15),u=a(19),d=a(18),m=a(0),p=a.n(m),g=a(7),f=a(9),A=a(462),h=a(677),v=a.n(h),b=a(8),E=a(54),k=a(14),y={payload:["Administrators","broker","admin","rest-all","kiemgmt","kie-server","appraiser","manager","supplier","IT","PM","approver"],errors:{}},S=a(39),C=function(){var e=Object(s.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(S.a)({domain:k.a.PDA,uri:"/connections/".concat(t,"/groups"),method:k.d.GET,mockResponse:y,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=a(81),w=a(182),T=a(1),P=(Object(T.shape)({knowledgeSource:T.string,process:T.string,options:T.string,groups:T.string,columns:T.string}),a(284)),j=a(64),x=[{key:"newPageOnClick",label:"Open new page on table row click",checked:!1},{key:"showClaim",label:"Show Claim Button",checked:!0},{key:"showComplete",label:"Show Complete Button",checked:!0}],I=Object(A.b)((function(e){var t=e.value,a=e.onColumnChange;return p.a.createElement("tr",null,p.a.createElement("td",null,p.a.createElement("i",{className:"fa fa-bars",style:{cursor:"ns-resize"}})," ",t.position),p.a.createElement("td",null,t.name),p.a.createElement("td",null,p.a.createElement(f.Checkbox,{style:{margin:0},bsClass:"checkbox",checked:t.isVisible,onChange:a})),p.a.createElement("td",null,p.a.createElement("input",{type:"text",className:"form-control",onChange:a,value:t.header||""})))})),N=Object(A.a)((function(e){var t=e.items,a=e.onColumnChange;return p.a.createElement("tbody",null,t.map((function(e,t){return p.a.createElement(I,{key:e.name,index:t,value:e,onColumnChange:a(t)})})))})),D=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return(e=t.call.apply(t,[this].concat(l))).state={config:{knowledgeSource:"",options:x,groups:[],columns:[]},sourceList:[],errorAlert:null},e.componentDidMount=Object(s.a)(i.a.mark((function t(){var a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(E.c)();case 3:if(!(a=t.sent).errors||!a.errors.length){t.next=6;break}throw a.errors[0];case 6:e.setState({sourceList:a.payload},e.fetchScreen),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),e.handleError(t.t0.message);case 12:case"end":return t.stop()}}),t,null,[[0,9]])}))),e.componentDidUpdate=function(){var t=Object(s.a)(i.a.mark((function t(a){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.props.config,JSON.stringify(n)!==JSON.stringify(a.config)&&e.fetchScreen();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.fetchScreen=function(){var t=e.props.config;t&&t.knowledgeSource&&e.onChangeSource(t.knowledgeSource,(function(){e.setState({config:Object(r.a)({},t,{groups:JSON.parse(t.groups),options:JSON.parse(t.options),columns:JSON.parse(t.columns)})})}))},e.onChangeSource=function(t,a){var n=e.state.config,o=t.target?t.target.value:t;e.setState({config:Object(r.a)({},n,{options:[].concat(x),groups:[],columns:[],knowledgeSource:o})},Object(s.a)(i.a.mark((function t(){var n,s,c,l;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}a(),t.next=19;break;case 4:return t.prev=4,t.next=7,C(o);case 7:return n=t.sent,s=n.payload,t.next=11,Object(O.c)(o);case 11:c=t.sent,l=c.payload,e.setState((function(e){return{config:Object(r.a)({},e.config,{groups:Object(w.d)(s),columns:Object(w.c)(l)})}})),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(4),console.log("Error while trying to fetch groups and columns from PDA server",t.t0);case 19:case"end":return t.stop()}}),t,null,[[4,16]])}))))},e.handleSortStart=function(e){var t=e.node,a=document.getElementsByClassName("table-sortableHelper")[0].childNodes;t.childNodes.forEach((function(e,t){a[t].style.width="".concat(e.offsetWidth,"px")}))},e.handleSortEnd=function(t){var a=t.oldIndex,n=t.newIndex;e.setState((function(e){var t=e.config;return{config:Object(r.a)({},t,{columns:v()(t.columns,a,n).map((function(e,t){return Object(r.a)({},e,{position:t})}))})}}))},e.handleColumnChange=function(t){return function(a){var o=e.state.config,i=a.target,s=i.value,c=i.checked,l=i.type,u=Object(n.a)(o.columns);"checkbox"===l?u[t].isVisible=c:u[t].header=s,e.setState({config:Object(r.a)({},o,{columns:u})})}},e.handleOptions=function(t){return function(a){var o=e.state.config,i=a.state.value,s=Object(n.a)(o.options);s[t].checked=i,e.setState({config:Object(r.a)({},o,{options:s})})}},e.handleGroups=function(t){return function(a){var o=e.state.config,i=a.state.value,s=Object(n.a)(o.groups);s[t].checked=i,e.setState({config:Object(r.a)({},o,{groups:s})})}},e.closeNotification=function(){e.setState({errorAlert:null})},e}return Object(l.a)(a,[{key:"handleError",value:function(e){this.setState({errorAlert:e})}},{key:"render",value:function(){var e=this,t=this.state,a=t.sourceList,n=t.config,r=t.errorAlert,o=n.knowledgeSource,i=n.groups,s=n.columns,c=n.options;return p.a.createElement("div",null,p.a.createElement(j.a,{type:"error",message:r,onClose:this.closeNotification}),p.a.createElement("form",null,p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement(f.FormGroup,{controlId:"connection"},p.a.createElement(f.ControlLabel,null,g.a.t("config.knowledgeSource")),p.a.createElement("select",{className:"form-control",value:o,onChange:this.onChangeSource},p.a.createElement("option",{value:""},g.a.t("config.selectOption")),a.map((function(e){return p.a.createElement("option",{key:e.name,value:e.name},e.name)}))),p.a.createElement(f.HelpBlock,null,g.a.t("config.selectConnections"))))),o&&p.a.createElement("section",null,p.a.createElement("legend",null,"General options"),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},c.map((function(t,a){return p.a.createElement(P.a,{key:t.key,id:t.key,label:t.label,checked:t.checked,onChange:e.handleOptions(a)})})))),p.a.createElement("legend",null,"BPM Groups"),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},i.map((function(t,a){return p.a.createElement(P.a,{key:t.key,id:t.key,label:t.label,checked:t.checked,onChange:e.handleGroups(a)})})))),p.a.createElement("legend",null,"Task Columns"),p.a.createElement(f.Row,null,p.a.createElement(f.Col,{xs:12},p.a.createElement("table",{className:"table"},p.a.createElement("thead",null,p.a.createElement("tr",null,p.a.createElement("th",null,"Position"),p.a.createElement("th",null,"Column Name"),p.a.createElement("th",null,"Visible"),p.a.createElement("th",null,"Override Fields"))),p.a.createElement(N,{items:s,helperClass:"table-sortableHelper",onSortStart:this.handleSortStart,onSortEnd:this.handleSortEnd,onColumnChange:this.handleColumnChange})))))))}}]),a}(p.a.Component);D.defaultProps={config:{}};var R=Object(b.a)({paper:{padding:20},title:{display:"flex",alignItems:"center",paddingBottom:15},subtitle:{padding:"20px 0 20px 0"},formControl:{minWidth:200}})(D);t.a=R},373:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=a(17),s=a(15),c=a(12),l=a(19),u=a(18),d=a(0),m=a.n(d),p=a(90),g=a.n(p),f=a(7),A=a(8),h=a(467),v=a(1456),b=a(1528),E=a(1500),k=a(241),y=a(731),S=a(82),C=a(1502),O=a(1497),w=a(65),T=a(143),P=a(26),j=a.n(P)()({root:{fontSize:11},legend:{padding:0,listStyle:"none","& li i":{display:"inline-block",width:10,height:10,marginRight:10,verticalAlign:"middle"}}},{name:"BarAreaChart"})((function(e){var t=e.data,a=e.legends,n=e.classes;return m.a.createElement(T.f,{className:n.root},m.a.createElement(T.d,{data:t},m.a.createElement(T.g,{dataKey:"x",tickLine:!1,padding:{left:10,right:10}}),m.a.createElement(T.h,{yAxisId:"left",tickLine:!1}),m.a.createElement(T.h,{yAxisId:"right",orientation:"right",tickLine:!1}),m.a.createElement(T.c,{vertical:!1}),m.a.createElement(T.b,{yAxisId:"left",dataKey:"bar",barSize:20,fill:"#1AB394",opacity:.4}),m.a.createElement(T.a,{yAxisId:"right",dataKey:"area",stroke:"#464F88",fill:"#464F88",fillOpacity:.2}),m.a.createElement(T.e,{margin:{top:-10},layout:"vertical",height:1,wrapperStyle:{left:105,top:20},content:function(e){var t=e.payload;return m.a.createElement("ul",{className:n.legend},t.map((function(e){return m.a.createElement("li",{key:e.value},m.a.createElement("i",{style:{backgroundColor:e.color}}),a[e.value])})))}})))})),x=a(236),I=function(e){var t=e.value,a=e.barColor;return m.a.createElement("div",{style:{height:"6px",borderRadius:"4px",backgroundColor:"#F5F5F5",overflow:"hidden"}},m.a.createElement("div",{style:{height:"100%",width:"".concat(t,"%"),backgroundColor:a}}))},N=Object(A.a)({root:{"&.downTrend":{color:"#ED5565"},"&.upTrend":{color:"#1AB394"}},icon:{width:13,height:13}})((function(e){var t=e.classes,a=e.trend;if("none"===a)return null;var n="up"===a?x.b:x.a;return m.a.createElement("span",{className:"".concat(t.root," ").concat(a,"Trend")},m.a.createElement(n,{className:t.icon}))})),D=function(e){var t=e.classes,a=e.value,n=e.label,r=e.percent,o=e.trend,i=e.loading;return m.a.createElement(C.a,{container:!0},m.a.createElement(C.a,{item:!0,xs:12},i?m.a.createElement(O.a,{width:100}):m.a.createElement(S.a,{variant:"h6",className:t.value},a)),m.a.createElement(C.a,{item:!0,xs:9},i?m.a.createElement(O.a,{width:150}):m.a.createElement(S.a,{variant:"caption"},n)),m.a.createElement(C.a,{item:!0,xs:2,style:{textAlign:"right"}},i?m.a.createElement(O.a,{width:50}):m.a.createElement(S.a,{variant:"subtitle1",className:t.percent},r,"%")),m.a.createElement(C.a,{item:!0,xs:1,style:{textAlign:"right"}},i?m.a.createElement(O.a,{width:40}):m.a.createElement(N,{trend:o})),m.a.createElement(C.a,{item:!0,xs:12},m.a.createElement(y.a,{my:1},i?m.a.createElement(O.a,null):m.a.createElement(I,{value:r,barColor:"up"===o?"#1AB394":"down"===o?"#ED5565":""}))))};D.defaultProps={loading:!1,trend:"none",percent:0,value:""};var R=Object(A.a)({value:{fontSize:24},percent:{fontSize:13,fontWeight:"bold"}})(D),M=m.a.createContext({}),L=a(56),B=a(176),F=a(14),_=a(86),H=function(e){return Math.round(100*(e+Number.EPSILON))/100},Z=function(e,t){var a=g()(e,"YYYY-MM-DD");switch(t){case"DAILY":return a.format("MMM DD");case"MONTHLY":return a.format("MMM YYYY");case"ANNUALLY":return a.format("YYYY");default:return null}},z=Object(A.a)({root:{height:4}},{name:"ThickDivider"})(v.a),V=Object(A.a)({root:{minHeight:"unset"},indicator:{display:"none"}})(b.a),U=Object(A.a)({root:{minWidth:64,minHeight:"unset",border:"1px solid #E7EAEC","&:first-child":{borderTopLeftRadius:4,borderBottomLeftRadius:4},"&:last-child":{borderTopRightRadius:4,borderBottomRightRadius:4}},selected:{color:"#1C84C6"}})((function(e){return m.a.createElement(E.a,Object.assign({disableRipple:!0},e))})),q=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(){var e;return Object(i.a)(this,a),(e=t.call(this)).handleTabChange=function(t,a){e.setState({selectedTab:a},(function(){e.fetchSummary()}))},e.state={loading:!0,selectedTab:"DAILY",summary:{graphData:[],card1:{},card2:{}},summaryFetching:!1,config:{}},e.handleError=e.handleError.bind(Object(c.a)(e)),e}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.serviceUrl,F.c||(F.a.PDA=t),e.next=4,this.fetchWidgetConfigs();case 4:return e.next=6,this.fetchSummary();case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fetchWidgetConfigs",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o,i,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,n=t.frameId,e.prev=1,e.next=4,Object(L.b)(a,n);case 4:if(!(o=e.sent).errors||!o.errors.length){e.next=7;break}throw o.errors[0];case 7:i=o.payload||{config:{}},s=i.config,this.setState({config:s}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),this.handleError(e.t0.message);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchSummary",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o,i,s,c,l,u,d,m,p,g,f,A,h,v,b,E,k;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({summaryFetching:!0}),t=this.state,a=t.config,n=t.selectedTab,o=a&&a.knowledgeSource||"",i=a&&a.settings&&JSON.parse(a.settings)||{},s="DAILY"===n?i.dailyFreqPeriods:"MONTHLY"===n?i.monthlyFreqPeriods:i.annualFreqPeriods,c=[i.dataType1,i.dataType2],l={frequency:n,periods:s,series:c},e.prev=7,e.next=10,Object(B.a)(o,"TimeSeries",l);case 10:u=e.sent,(d=u.payload)&&(m=d.series&&d.series[0]||{values:[]},p=d.series&&d.series[1]||{values:[]},g=m.id,f=p.id,A=m.values.reverse().map((function(e,t){var a=e.date,r=e.value;return{x:Z(a,n),bar:r,area:p.values[p.values.length-1-t].value}})),h=m.card&&m.card.value||0,v=m.card&&p.card.value||0,b=m.card&&H(Math.abs(100*m.card.percentage))||0,E=p.card&&H(Math.abs(100*p.card.percentage))||0,k={graphData:A,dataType1:g,dataType2:f,card1:{value:h,percent:b,trend:100!==b?b<100?"down":"up":"none"},card2:{value:v,percent:E,trend:100!==E?E<100?"down":"up":"none"}},this.setState({loading:!1,summaryFetching:!1,summary:k})),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),this.handleError(e.t0.message);case 18:case"end":return e.stop()}}),e,this,[[7,15]])})));return function(){return e.apply(this,arguments)}}()},{key:"handleError",value:function(e){(0,this.props.onError)(e)}},{key:"render",value:function(){var e=this.props,t=e.classes,a=e.onError,n=this.state,r=n.loading,o=n.selectedTab,i=n.summary,s=n.summaryFetching,c=i.graphData,l=i.dataType1,u=i.dataType2,d=i.card1,p=i.card2;return m.a.createElement(M.Provider,{value:{onError:a}},m.a.createElement(h.a,{theme:w.a},m.a.createElement(k.a,null,m.a.createElement(y.a,{p:2},r?m.a.createElement(O.a,{width:250}):m.a.createElement(S.a,{variant:"h2"},f.a.t("summary.labels.chart.title"))),m.a.createElement(v.a,null),m.a.createElement(z,{variant:"middle"}),m.a.createElement(y.a,{p:2},m.a.createElement(C.a,{container:!0},m.a.createElement(C.a,{item:!0,xs:8},m.a.createElement(S.a,{variant:"subtitle1"},r?m.a.createElement(O.a,{width:100}):m.a.createElement(y.a,{fontWeight:"fontWeightBold"},f.a.t("summary.labels.chart.subtitle")))),m.a.createElement(C.a,{item:!0,xs:4},r?null:m.a.createElement(V,{value:o,onChange:this.handleTabChange,centered:!0},m.a.createElement(U,{value:"DAILY",label:f.a.t("summary.frequency.daily")}),m.a.createElement(U,{value:"MONTHLY",label:f.a.t("summary.frequency.monthly")}),m.a.createElement(U,{value:"ANNUALLY",label:f.a.t("summary.frequency.annually")})))),m.a.createElement(y.a,{my:1},m.a.createElement(v.a,null)),m.a.createElement(C.a,{container:!0},m.a.createElement(C.a,{item:!0,xs:8,style:{height:"300px"}},r||s?m.a.createElement(O.a,{variant:"rect",height:"100%",width:"95%"}):m.a.createElement(j,{data:c,legends:{bar:f.a.t("summary.labels.chart.".concat(l)),area:f.a.t("summary.labels.chart.".concat(u))}})),m.a.createElement(C.a,{item:!0,xs:3,className:t.summaries},m.a.createElement(y.a,{mb:1},m.a.createElement(R,{value:d.value,label:f.a.t("summary.labels.chart.card.".concat(l)),percent:d.percent,trend:d.trend,loading:r||s})),m.a.createElement(y.a,{mb:1},m.a.createElement(R,{value:p.value,label:f.a.t("summary.labels.chart.card.".concat(u)),percent:p.percent,trend:p.trend,loading:r||s}))))))))}}]),a}(d.Component);q.defaultProps={pageCode:"",frameId:"",serviceUrl:"",onError:function(){}};var K=Object(A.a)({summaries:{display:"flex",flexDirection:"column",justifyContent:"center"}})(q);t.a=Object(_.a)(K,["summary-get"])},374:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(10),i=a(17),s=a(15),c=a(12),l=a(19),u=a(18),d=a(0),m=a.n(d),p=a(467),g=a(7),f=a(241),A=a(82),h=a(1456),v=a(1457),b=a(1483),E=a(26),k=a.n(E),y=a(14),S=a(65),C=a(56),O=a(176),w=m.a.createContext({}),T=a(64),P=a(1497),j=a(3),x=a.n(j),I=a(236),N=function(e){var t=e.dataType,a=e.values,n=e.classes,r=e.loading,o=a&&"percentage"in a?Math.round(100*a.percentage):null,i=Number.isNaN(o)?"-":"".concat(o<0?0-o:o,"%"),s=0===o?"":o>=0?"up":"down";return m.a.createElement("div",{className:x()(n.root,"".concat(s,"Trend"))},r&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",null,m.a.createElement(P.a,{width:"110px",height:37,variant:"rect"}),m.a.createElement(P.a,{width:"90px",height:14,variant:"rect",className:n.totalLabel})),m.a.createElement("div",null,m.a.createElement(P.a,{width:"50px",height:16,variant:"rect"}))),!r&&a&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",null,m.a.createElement(A.a,{variant:"h1"},g.a.t("summary.labels.".concat(t,".value"),{value:a.value})),m.a.createElement(A.a,{variant:"caption"},g.a.t("summary.labels.".concat(t,".total_label")))),m.a.createElement("div",null,m.a.createElement(A.a,{variant:"body2",component:"span",className:n.trendValue},i," ",function(e){switch(e){case"up":return m.a.createElement(I.b,{className:n.valueIcon});case"down":return m.a.createElement(I.a,{className:n.valueIcon});default:return null}}(s)))))};N.defaultProps={loading:!1,values:{}};var D=k()({root:{display:"flex",padding:"20px 25px",justifyContent:"space-between",alignItems:"flex-end","&.downTrend $trendValue":{color:"#ED5565"},"&.upTrend $trendValue":{color:"#23C6C8"}},totalLabel:{marginTop:15},trendValue:{fontWeight:"bold"},valueIcon:{width:13,height:13}})(N),R=a(86),M=["monthly","annually","daily"],L=function(e){Object(u.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).closeNotification=function(){n.setState({errorMessage:""})},n.state={config:null,loading:!1,loadingValues:!1,summary:null,dataType:"",frequency:M[0],errorMessage:""},n.closeNotification=n.closeNotification.bind(Object(c.a)(n)),n.handleError=n.handleError.bind(Object(c.a)(n)),n.fetchSummary=n.fetchSummary.bind(Object(c.a)(n)),n.fetchWidgetConfigs=n.fetchWidgetConfigs.bind(Object(c.a)(n)),n.handleFrequencyChange=n.handleFrequencyChange.bind(Object(c.a)(n)),n}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this,t=this.props.serviceUrl;y.c||(y.a.PDA=t),this.setState({loading:!0,loadingValues:!0},Object(o.a)(r.a.mark((function t(){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWidgetConfigs();case 2:a=t.sent,e.setState({config:a},(function(){return e.fetchSummary()}));case 4:case"end":return t.stop()}}),t)}))))}},{key:"fetchWidgetConfigs",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.pageCode,n=t.frameId,e.prev=1,e.next=4,Object(C.b)(a,n);case 4:if(!(o=e.sent).errors||!o.errors.length){e.next=7;break}throw o.errors[0];case 7:return i=o.payload.config,e.abrupt("return",i);case 11:e.prev=11,e.t0=e.catch(1),this.handleError(e.t0.message);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchSummary",value:function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o,i,s,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.state,a=t.config,n=t.frequency,o=a&&a.knowledgeSource||"",i=a&&a.settings&&JSON.parse(a.settings)||{},s=i.type,e.prev=4,e.next=7,Object(O.a)(o,"Card",{type:s,frequency:n});case 7:c=e.sent,this.setState({loading:!1,loadingValues:!1,dataType:s,summary:c&&c.payload||null}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),this.handleError(e.t0.message);case 14:case"end":return e.stop()}}),e,this,[[4,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"handleError",value:function(e){this.setState({errorMessage:e}),(0,this.props.onError)(e)}},{key:"handleFrequencyChange",value:function(e){var t=this;this.setState({frequency:e.target.value,loadingValues:!0},(function(){return t.fetchSummary()}))}},{key:"renderSkeletonHeader",value:function(){var e=this.props.classes;return m.a.createElement("div",{className:e.header},m.a.createElement(P.a,{width:"100px",height:27,variant:"rect"}),m.a.createElement(P.a,{width:"60px",height:27,variant:"rect"}))}},{key:"renderHeader",value:function(){var e=this.state,t=e.frequency,a=e.dataType,n=this.props.classes;return m.a.createElement("div",{className:n.header},m.a.createElement(A.a,{variant:"subtitle2",component:"h3",className:n.headline},g.a.t("summary.labels.".concat(a,".title"))),m.a.createElement(v.a,{value:t,variant:"outlined",classes:{root:n.frequencySelectRoot,iconOutlined:n.frequencySelectIcon},onChange:this.handleFrequencyChange},M.map((function(e){return m.a.createElement(b.a,{key:e,value:e,className:n.frequencySelectItem},g.a.t("summary.frequency.".concat(e)))}))))}},{key:"render",value:function(){var e=this.state,t=e.loading,a=e.loadingValues,n=e.summary,r=e.dataType,o=e.errorMessage,i=this.props,s=i.classes,c=i.onError;return m.a.createElement(w.Provider,{value:{onError:c}},m.a.createElement(f.a,{square:!0,elevation:0,className:s.root},t&&this.renderSkeletonHeader(),!t&&n&&this.renderHeader(),m.a.createElement(h.a,null),m.a.createElement(D,{loading:a,dataType:r,values:n})),m.a.createElement(T.a,{type:"error",message:o,onClose:this.closeNotification}))}}]),a}(m.a.Component);L.defaultProps={onError:function(){},serviceUrl:"",pageCode:"",frameId:""};var B=k()((function(e){var t=e.palette;return{root:{background:"#FFF",borderTop:"4px solid #E7EAEC",color:"#676A6C"},header:{display:"flex",padding:"20px 25px",justifyContent:"space-between",alignItems:"center"},headline:{fontWeight:"bold"},frequencySelectRoot:{border:"2px solid ".concat(t.primary.main),padding:"4px 24px 4px 14px",borderRadius:4,fontSize:10,fontWeight:"bold",color:t.primary.main},frequencySelectIcon:{right:3,color:t.primary.main},frequencySelectItem:{fontSize:12}}}))(L);t.a=Object(R.a)((function(e){return m.a.createElement(p.a,{theme:S.a},m.a.createElement(B,e))}),["summary-get"])},39:function(e,t,a){"use strict";var n=a(4),r=a.n(n),o=a(11),i=a(10),s=a(14),c=a(224),l=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]&&""!==e[t]})).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")};t.a=function(){var e=Object(i.a)(r.a.mark((function e(t){var a,n,i,u,d,m,p,g,f,A,h,v,b,E,k,y,S;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.domain,n=t.uri,i=t.method,u=t.mockResponse,d=void 0===u?{}:u,m=t.useAuthentication,p=t.body,g=t.headers,f=void 0===g?{}:g,A=t.queryParams,h=t.forceMock,!s.b&&!h){e.next=5;break}return e.next=4,c.a.timeout(s.e);case 4:return e.abrupt("return",d);case 5:return v="".concat(a||s.a.PDA).concat(n).concat(A?"?".concat(l(A)):""),b=m?new Headers(Object(o.a)({"Content-Type":"application/json",Authorization:"Bearer ".concat(localStorage.getItem("token"))},f)):new Headers(f),E=Object(o.a)({method:i||s.d.GET},p?{body:p}:{},{headers:b}),e.next=10,fetch(v,E);case 10:if((k=e.sent).ok){e.next=16;break}return e.next=14,k.json();case 14:throw y=e.sent,new Error(y.message?y.message:"Bad Response from server: ".concat(k.status," ").concat(k.statusText));case 16:if(!(S=k.headers.get("Content-Type"))||!S.includes("xml")){e.next=19;break}return e.abrupt("return",k.text());case 19:if(!S||!S.includes("octet")){e.next=21;break}return e.abrupt("return",k);case 21:return e.abrupt("return",k.json());case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},54:function(e,t,a){"use strict";a.d(t,"c",(function(){return m})),a.d(t,"b",(function(){return p})),a.d(t,"d",(function(){return g})),a.d(t,"a",(function(){return f})),a.d(t,"e",(function(){return A}));var n=a(4),r=a.n(n),o=a(10),i=a(14),s={payload:"OK",errors:[]},c={payload:"OK",errors:[]},l={payload:{name:"kieStaging2",host:"rhpam7-install-kieserver-rhpam7-install-entando.apps.serv.run",port:"80",schema:"http",app:"/services/rest/server",username:"pamAdmin",connectionTimeout:6e4,engine:"pam"},errors:[]},u={payload:[{name:"kieStaging",url:"http://rhpam7-install-kieserver-rhpam7-install-entando.apps.serv.run:80/services/rest/",username:"pamAdmin",connectionTimeout:6e4,engine:"pam"},{name:"kie2Server",url:"http://rhpam7-install-kieserver-rhpam7-install-entando.apps.serv.run:80/services/rest/",username:"pamAdmin",connectionTimeout:6e4,engine:"pam"},{name:"test",url:"http://rhpam7-install-kieserver-rhpam7-install-entando.apps.serv.run:80/services/rest/",username:"pamAdmin",connectionTimeout:6e4,engine:"pam"}],errors:{}},d=a(39),m=function(){var e=Object(o.a)(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(d.a)({domain:i.a.PDA,uri:"/connections",method:i.d.GET,mockResponse:u,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(d.a)({domain:i.a.PDA,uri:"/connections/".concat(t),method:i.d.DELETE,mockResponse:c,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(d.a)({domain:i.a.PDA,uri:"/connections",method:i.d.PUT,mockResponse:l,useAuthentication:!0,body:JSON.stringify(t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(d.a)({domain:i.a.PDA,uri:"/connections",method:i.d.POST,mockResponse:l,useAuthentication:!0,body:JSON.stringify(t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(d.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/test"),method:i.d.GET,mockResponse:s,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},56:function(e,t,a){"use strict";a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return m})),a.d(t,"a",(function(){return p}));var n=a(4),r=a.n(n),o=a(10),i=a(14),s=a(21),c=a(96),l=a(39),u=function(e){var t=Object.keys(s.a).find((function(t){return s.a[t].frameId===e}));return c.a[t]},d=function(e,t){return Object(l.a)({domain:i.a.APP_BUILDER,uri:"/api/pages/".concat(e,"/widgets/").concat(t),method:i.d.GET,mockResponse:u(t)||{},useAuthentication:!0})},m=function(e,t,a){return Object(l.a)({domain:i.a.APP_BUILDER,uri:"/api/pages/".concat(e,"/widgets/").concat(t),method:i.d.PUT,body:a,useAuthentication:!0})},p=function(){var e=Object(o.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={username:"admin",password:"adminadmin",grant_type:"password"},e.abrupt("return",Object(l.a)({domain:i.a.APP_BUILDER,uri:"/api/oauth/token",method:i.d.POST,mockResponse:{access_token:"MOCKED_ACCESS_TOKEN",token_type:"bearer",refresh_token:"MOCKED_REFRESH_TOKEN",expires_in:3599},body:Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&"),useAuthentication:!1,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic ".concat(btoa("appbuilder:appbuilder_secret"))}}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},64:function(e,t,a){"use strict";var n=a(0),r=a.n(n),o=a(5),i=a(1443),s=a(726),c=a(8),l=a(226),u=a.n(l),d=a(346),m=a.n(d),p=a(347),g=a.n(p),f=a(348),A=a.n(f),h=a(378),v=function(e){var t=e.type,a=e.className;switch(t){case"error":return r.a.createElement(u.a,{className:a});case"success":return r.a.createElement(m.a,{className:a});default:return r.a.createElement(g.a,{className:a})}},b=function(e){var t=e.classes,a=e.message,n=e.type,c=e.onClose,l=r.a.createElement("span",{className:t.message},r.a.createElement(v,{type:n,className:Object(o.a)(t.icon,t.iconVariant)}),a);return a?r.a.createElement(i.a,{open:!0,onClose:c},r.a.createElement(s.a,{className:t[n],message:l,action:[r.a.createElement(h.a,{key:"close","aria-label":"close",color:"inherit",onClick:c},r.a.createElement(A.a,{className:t.icon}))]})):""};b.defaultProps={message:null,type:"warning",onClose:function(){}},t.a=Object(c.a)((function(e){return{message:{display:"flex",alignItems:"center"},icon:{fontSize:20},iconVariant:{opacity:.9,marginRight:e.spacing(1)},error:{backgroundColor:e.palette.error.dark},success:{backgroundColor:e.palette.success.dark},warning:{backgroundColor:e.palette.warning.dark}}}),{withTheme:!0})(b)},65:function(e,t,a){"use strict";var n=a(11),r=a(279),o=a(74),i=a.n(o);t.a=Object(r.a)(Object(n.a)({},i.a,{typography:Object(n.a)({},i.a.typography,{h1:Object(n.a)({},i.a.typography.h1,{marginTop:0,marginBottom:0,fontWeight:"normal"}),h2:Object(n.a)({},i.a.typography.h2,{lineHeight:"33px",marginTop:0,marginBottom:0,fontWeight:"normal"}),h3:Object(n.a)({},i.a.typography.h3,{lineHeight:"25px",marginTop:0,marginBottom:0,fontWeight:"normal"}),h4:Object(n.a)({},i.a.typography.h4,{marginTop:0,marginBottom:0}),h5:Object(n.a)({},i.a.typography.h5,{marginTop:0,marginBottom:0}),body1:Object(n.a)({},i.a.typography.body1,{color:"#696C6E",lineHeight:"15px"})}),palette:Object(n.a)({},i.a.palette,{primary:{light:"#62b3f9",main:"#1c84c6",dark:"#005895",contrastText:"#fff"},text:Object(n.a)({},i.a.palette.text,{primary:"#676A6C"})}),overrides:Object(n.a)({},i.a.overrides,{MuiTable:Object(n.a)({},i.a.overrides.MuiTable,{root:{borderCollapse:"collapse"}}),MuiTableCell:Object(n.a)({},i.a.overrides.MuiTableCell,{root:{border:0,padding:".5rem"},head:{borderBottom:"solid 3px #eee"},footer:{backgroundColor:"#fff"}}),MuiFormLabel:Object(n.a)({},i.a.overrides.MuiFormLabel,{root:{color:"#676A6C",fontSize:"13px",lineHeight:"15px",fontWeight:700}}),MuiButton:Object(n.a)({},i.a.overrides.MuiButton,{root:{height:"31px",borderRadius:"5px",fontWeight:700,fontSize:"13px",lineHeight:"15px",textTransform:"none"},containedPrimary:{backgroundColor:"#1C84C6","&:hover":{backgroundColor:"#135783"},color:"#FFFEFE"}}),MuiInputBase:Object(n.a)({},i.a.overrides.MuiInputBase,{input:Object(n.a)({},i.a.overrides.MuiInputBase.input,{width:"100%"})}),MuiListItemIcon:{root:{minWidth:30}}})}))},663:function(e,t,a){},664:function(e,t,a){},671:function(e){e.exports=JSON.parse('{"common":{"of":"of","submit":"Submit","add":"Add","yes":"Yes","no":"No","edit":"Edit","delete":"Delete","remove":"Remove","cancel":"Cancel","change":"Change"},"config":{"knowledgeSource":"Knowledge Source","process":"Process","processDefinition":"Process Definition","selectConnections":"Select one of the Kie server connections.","selectBpmProcess":"Select one BPM Process.","selectOption":"Select...","settings":"Settings","uiSchemas":"UI Schemas","uiSchema":"UI Schema","formSchemaId":"Form schema ID:","defaultColumnSize":"Default column size","addNewSchema":"Add new schema","addNewSchemaTitle":"Add new UI Schema","editUiSchema":"Edit UI schema","removeUiSchema":"Remove UI schema","createUiSchema":"Create UI schema","genericSchemaRule":"If you would like to create generic rules, use * as Form schema ID."},"summary":{"frequency":{"monthly":"Monthly","annually":"Annual","daily":"Daily"},"labels":{"requests":{"title":"Requests","total_label":"Total Requests","value":"{{value, number}}"},"cases":{"title":"Cases","total_label":"Total Cases","value":"{{value, number}}"},"applications-accepted":{"title":"Applications Accepted","total_label":"Total Accepted","value":"{{value, number}}"},"applications-rejected":{"title":"Applications Rejected","total_label":"Total Rejected","value":"{{value, number}}"},"applications-total":{"title":"Total Applications","total_label":"Total Applications","value":"{{value, number}}"},"chart":{"title":"Requests Volume","subtitle":"Requests","requests":"Number of Requests","cases":"Number of Cases","card":{"requests":"Total requests","cases":"Total cases"}}}},"taskList":{"diagramModalTitle":"Process","tabs":{"myWork":"MY WORK","myTasks":"MY TASKS","myCases":"MY CASES"},"actionButtons":{"complete":"Complete","claim":"Claim","diagram":"Diagram","view":"View"},"emptyList":"You don\'t have any active, assigned or complete tasks","selectAssign":"Inform the user to assign the selected tasks","withSelected":"With Selected"},"table":{"title":"Smart Inbox","subtitle":"List of tasks","searchPlaceholder":"Search...","rowsPerPage":"Rows per page:","showing":"Showing $1-$2 of $3 items"},"taskDetails":{"overview":{"title":"Task Overview","detailsTitle":"Task details","previous":"Previous","next":"Next"},"generalInformation":{"title":"General Information","noInformation":"No information available"}},"taskComments":{"addNote":"Add note","title":"Task notes","noComments":"No notes on this task","remove":"Remove","maxChars":"Maximum {{max}} characters (remaining: {{rem}})"},"task":{"fields":{"createdBy":"Created by","name":"Task name","createdOn":"Date created","status":"Status","due":"Due"},"inputData":{"TaskName":"Task name","BusinessAdministratorId":"Business administrator ID","GroupId":"Group ID","Comment":"Comment","performance":"Performance","Skippable":"Skippable","ActorId":"Actor ID","reason":"Reason","NodeName":"Node name"}},"processes":{"definition":{"title":"Process Definition","selectAProcess":"Select a process definition","noProcesses":"There is no processes to be defined"}},"messages":{"success":{"saved":"Saved successfully."},"notify":{"submitting":"Sending..."},"warnings":{"noData":"There is no data to be displayed","noFormSchema":"Form schema was not provided","noAttachments":"There is no attachment available for this task","deleteFilePermanently":"Do you wish to delete this file permanently?"},"errors":{"widgetConfig":"No configuration found for this widget","errorResponse":"There seems to be an error","dataLoading":"Unable to load server data.","dataSaving":"Unable to save data.","noConnection":"No connection set for widget"}}}')},672:function(e){e.exports=JSON.parse('{"common":{"of":"di","submit":"Submit","add":"Add","yes":"Yes","no":"No","edit":"Modificare","delete":"Elimina","remove":"Remove","cancel":"Cancel","change":"Change"},"config":{"knowledgeSource":"Knowledge Source","process":"Process","processDefinition":"Process Definition","selectConnections":"Select one of the Kie server connections.","selectBpmProcess":"Select one BPM Process.","selectOption":"Select...","settings":"Settings","uiSchemas":"UI Schemas","uiSchema":"UI Schema","formSchemaId":"Form schema ID:","defaultColumnSize":"Default column size","addNewSchema":"Add new schema","addNewSchemaTitle":"Add new UI Schema","editUiSchema":"Edit UI schema","removeUiSchema":"Remove UI schema","createUiSchema":"Create UI schema","genericSchemaRule":"If you would like to create generic rules, use * as Form schema ID."},"summary":{"frequency":{"monthly":"Mensile","annually":"Annuale","daily":"Giornaliero"},"labels":{"requests":{"title":"Richieste","total_label":"Richieste Totali","value":"{{value, number}}"},"cases":{"title":"Casi","total_label":"Casi Totali","value":"{{value, number}}"},"applications-accepted":{"title":"Richieste Accettate","total_label":"Totale accettato","value":"{{value, number}}"},"applications-rejected":{"title":"Applicazioni Respinte","total_label":"Totale Rifiutato","value":"{{value, number}}"},"applications-total":{"title":"Totale Applicazioni","total_label":"Totale Applicazioni","value":"{{value, number}}"},"chart":{"title":"Volume delle richieste","subtitle":"Richieste","requests":"Numero di richieste","cases":"Numero di casi","card":{"requests":"Richieste totali","cases":"Casi totali"}}}},"taskList":{"diagramModalTitle":"Processi","tabs":{"myWork":"IL MIO LAVORO","myTasks":"I MIEI COMPITI","myCases":"I MIEI CASI"},"actionButtons":{"complete":"Completare","claim":"Richiesta","diagram":"Diagramma","view":"Vedere"},"emptyList":"Non hai attivit\xe0 attive, assegnate o complete","selectAssign":"Informa l\'utente ad assegnare le attivit\xe0 selezionate","withSelected":"Con selezionato"},"table":{"title":"Posta in arrivo intelligente","subtitle":"Elenco delle attivit\xe0","searchPlaceholder":"Cerca...","rowsPerPage":"Righe per pagina:","showing":"Mostra $1-$2 di $3 articoli"},"taskDetails":{"overview":{"title":"Task Overview","detailsTitle":"Task details","previous":"Previous","next":"Next"},"generalInformation":{"title":"General Information","noInformation":"No information available"}},"taskComments":{"addNote":"Add note","title":"Task notes","noComments":"No notes on this task","remove":"Remove","maxChars":"Massimo {{max}} caratteri (rimanenti: {{rem}})"},"task":{"fields":{"createdBy":"Created by","name":"Task name","createdOn":"Date created","status":"Status","due":"Due"},"inputData":{"TaskName":"Task name","BusinessAdministratorId":"Business administrator ID","GroupId":"Group ID","Comment":"Comment","performance":"Performance","Skippable":"Skippable","ActorId":"Actor ID","reason":"Reason","NodeName":"Node name"}},"processes":{"definition":{"title":"Definizione del processo","selectAProcess":"Seleziona una definizione del processo","noProcesses":"Non ci sono processi da definire"}},"messages":{"success":{"saved":"Salvato con successo."},"notify":{"submitting":"Invio..."},"warnings":{"noData":"Non ci sono dati da visualizzare","noFormSchema":"Lo schema del modulo non \xe8 stato fornito","noAttachments":"Non \xe8 disponibile alcun allegato per questa attivit\xe0","deleteFilePermanently":"Desideri eliminare definitivamente questo file?"},"errors":{"widgetConfig":"Nessuna configurazione trovata per questo widget","errorResponse":"Sembra esserci un errore","dataLoading":"Impossibile caricare i dati del server","dataSaving":"Impossibile salvare i dati.","noConnection":"No connection set for widget"}}}')},684:function(e,t,a){e.exports=a.p+"static/media/diagram.733b1505.svg"},783:function(e,t,a){e.exports=a(1432)},81:function(e,t,a){"use strict";a.d(t,"f",(function(){return A})),a.d(t,"c",(function(){return h})),a.d(t,"d",(function(){return v})),a.d(t,"e",(function(){return b})),a.d(t,"g",(function(){return E})),a.d(t,"b",(function(){return k})),a.d(t,"a",(function(){return y})),a.d(t,"h",(function(){return S}));var n=a(4),r=a.n(n),o=a(10),i=a(14),s=a(179),c=a(240),l=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"asc",r=arguments.length>4?arguments[4]:void 0,o=c.payload,i=o.length;r&&(o=[],c.payload.forEach((function(e){for(var t=Object.keys(e),a=0;a<t.length;a+=1)if(void 0!==e[t[a]]&&null!==e[t[a]]&&e[t[a]].toString().toUpperCase().includes(r.toUpperCase())){o.push(e);break}})),i=o.length);var l=s.c;a&&(c.payload[0][a]instanceof Date?l=s.a:"number"===typeof c.payload[0][a]&&(l=s.b)),o=a?o.sort(l(a,n)):o;var u=e*t,d=u+t;return{payload:o=Number.isNaN(u)?o:o.slice(u,d),metadata:{size:i,lastPage:e===Math.floor((c.payload.length-1)/t)?1:0}}},u=a(39),d={payload:["id","name","description","createdBy","createdAt","dueTo","status","owner","priority","subject","activatedAt","skipable","processDefinitionId","processId","parentId"],errors:{}},m={payload:{id:"293@evaluation_1.0.0-SNAPSHOT",name:"PM Evaluation",description:"You need to evaluate Alessio.",createdBy:"pamAdmin",createdAt:"2019-11-14T09:26:30Z",status:"CREATED",owner:"",inputData:{Comment:"You need to evaluate Alessio.",reason:"asasd",performance:12,TaskName:"PerformanceEvaluation",NodeName:"PM Evaluation",Skippable:"false",ActorId:"pamAdmin",BusinessAdministratorId:"pamAdmin",GroupId:"PM"},outputData:{"47078d21-7da5-4d3f-8355-0fcd78b09f39":{performance:100,reason:"Showed great results!"},personalInformation:{firstName:"John",lastName:"Smith",fieldOfEmployment:["IT"],streetName:"JFK av.",city:"New York",state:"FIRST_STATE",country:"US",ssn:"12345",dob:"1995-01-16"},datetimes:{date:"1995-01-16",datetime:"1995-01-16 13:59"}},priority:0,subject:"You need to evaluate Alessio.",form:"PerformanceEvaluation",activatedAt:"2019-11-14T09:26:30Z",skipable:!1,workItemId:293,processId:159,processDefinitionId:"evaluation",parentId:-1,potentialOwners:["pamAdmin","PM"],excludedOwners:[],businessAdmins:["Administrator","Administrators","pamAdmin"]},errors:[]},p={MORTGAGE_APPLICATION_FORM:{$schema:"http://json-schema.org/draft-07/schema#",$id:"http://entando.org/schemas/MortgageApplicationForm.json",title:"Mortgage Application Form",type:"object",properties:{personalInformation:{title:"Personal Information",description:"Please fill in your personal information",type:"object",required:["firstName","lastName","streetName","city","state","country","ssn"],properties:{firstName:{type:"string",title:"First name"},lastName:{type:"string",title:"Last name"},streetName:{type:"string",title:"Street name"},city:{type:"string",title:"City"},state:{type:"string",title:"State",enum:["FIRST_STATE","SECOND_STATE","THIRD_STATE"],enumNames:["1st state","2nd state","3rd state"]},country:{type:"string",title:"Country",enum:["LT","IT","US"],enumNames:["Lithuania","Italy","United States of America"]},ssn:{type:"string",title:"Social security number"},dob:{type:"string",title:"Date of Birth",format:"date"}}},propertyInformation:{title:"Property Information",type:"object",required:["typeOfHome","streetName","city","state","country"],properties:{typeOfHome:{type:"string",title:"Type of Home",oneOf:[{const:"SINGLE_FAMILY_HOME",title:"Single Family Home"},{const:"MULTIPLE_FAMILY_DWELLING",title:"Multiple Family Dwelling"},{const:"APARTMENT_OR_CONDO",title:"Apartment or Condo"}]},rooms:{title:"Rooms",type:"object",required:[],properties:{bedrooms:{type:"string",title:"Bedrooms",enum:["1","2","3","4","5"],enumNames:["1 bedroom","2 bedrooms","3 bedrooms","4 bedrooms","5+ bedrooms"]},bathrooms:{type:"string",title:"Bathrooms",enum:[1,2,3],enumNames:["1 bathroom","2 bathrooms","3 bathrooms"]}}},streetName:{type:"string",title:"Street name"},city:{type:"string",title:"City"},state:{type:"string",title:"State",enum:["FIRST_STATE","SECOND_STATE","THIRD_STATE"],enumNames:["1st state","2nd state","3rd state"]},country:{type:"string",title:"Country",enum:["LT","IT","US"],enumNames:["Lithuania","Italy","United States of America"]}}}}},ALL_FIELDS:{$schema:"http://json-schema.org/draft-07/schema#",$id:"http://entando.org/schemas/pda-all-fields-form.json",title:"All supported fields",type:"object",required:[],properties:{attachments:{title:"Attachments",description:"Examples of attachment widgets (string fields with data-url format)",type:"object",required:[],properties:{processDocument:{type:"string",title:"Upload a document for the ProcessDocument process variable",description:"This is an example of single file upload",format:"data-url"},processDocumentList:{type:"array",title:"Upload a list of documents to the ProcessDocumentList process variable",description:"This is an example of multiple file upload",items:{type:"string",format:"data-url"}}}},strings:{title:"String fields",description:"Examples of string widgets",type:"object",required:[],properties:{regularTextField:{type:"string",title:"Regular text field",description:"This is an example of string text field (max length 100)",maxLength:100},textAreaField:{type:"string",title:"String field as Textarea widget",description:"This is an example of string as Textarea widget"},passwordField:{type:"string",title:"String field as Password widget",description:"This is an example of string as Password widget"},emailField:{type:"string",title:"String field as Email widget",description:"This is an example of string as Email widget"},hiddenField:{type:"string",title:"String field as Hidden widget",description:"This is an invisible example of string as Hidden widget"}}},numbers:{title:"Number fields",description:"Examples of number widgets",type:"object",required:[],properties:{doubleField:{type:"number",title:"Double field",description:"This is an example of number field (double)"},integerField:{type:"integer",title:"Integer field",description:"This is an example of Integer field"},rangeField:{type:"integer",title:"Range field",description:"This is an example of integer field as Range widget"},limitedRangeField:{type:"integer",title:"Range field with min/max values",description:"This is an example of integer field as Range widget with min/max values",minimum:1,maximum:50},updownField:{type:"integer",title:"UpDown field",description:"This is an example of integer field as UpDown widget"}}},booleans:{title:"Boolean fields",description:"Examples of boolean widgets",type:"object",required:[],properties:{regularBoolean:{type:"boolean",title:"Boolean (as default checkbox widget)",description:"This is an example of boolean field as Checkbox widget"},radioBoolean:{type:"boolean",title:"Boolean field as Radio widget",description:"This is an example of boolean field as Radio widget"},namedRadioBoolean:{type:"boolean",title:"Boolean field as relabeled Radio widget",description:"This is an example of boolean field as Radio widget with provided labels",enumNames:["Pass","Fail"]},selectBoolean:{type:"boolean",title:"Boolean field as Select widget",description:"This is an example of boolean field as Select widget"}}},datetimes:{title:"Date-related fields",description:"Examples of date and date-time widgets",type:"object",required:[],properties:{date:{type:"string",title:"Date field as Date widget",description:"This is an example of date field as Date widget",format:"date"},datetime:{type:"string",title:"Date-time field as DateTime widget",description:"This is an example of date-time field as DateTime widget",format:"date-time"}}},multichoice:{title:"Multi-choice fields",description:"Examples of multi-choice widgets",type:"object",required:[],properties:{checkbox:{type:"array",title:"A multiple-choice list as Checkboxes widget",items:{type:"string",enum:["Single","Double","Triple"]},uniqueItems:!0},select:{type:"array",title:"A multiple-choice list as Select widget",items:{type:"string",enum:["Single","Double","Triple"]},uniqueItems:!0}}},processList:{type:"array",title:"ProcessList",items:{type:"string",title:"Item"}}}},DEFAULT:{$schema:"http://json-schema.org/draft-07/schema#",$id:"http://entando.org/schemas/pda-form.json",type:"object",properties:{"47078d21-7da5-4d3f-8355-0fcd78b09f39":{title:"PerformanceEvaluation-taskform.frm",type:"object",required:["performance"],properties:{reason:{type:"string",title:"Reason",description:"Please provide reasons"},performance:{type:"integer",title:"Performance",description:"Please evaluate performance"}}}}},POSTE_REGISTRATION_FORM:{$schema:"http://json-schema.org/draft-07/schema#",$id:"http://entando.org/schemas/poste-registration-form.json",title:"Registration Data",type:"object",properties:{organisationDetails:{title:"Organisation Details",description:"Please fill in your personal information",type:"object",required:["organisationName","organisationLegalStructure","companyRegistrationNumber","vatNumber","address","postalCode","city","stateCounty","country"],properties:{organisationName:{title:"Organisation Name",type:"string"},organisationLegalStructure:{title:"Organisation Legal Structure",type:"string"},companyRegistrationNumber:{title:"Company Registration Number",type:"string"},vatNumber:{title:"VAT Number",type:"string"},mainOrganisationPhoneNumber:{title:"Main Organisation Phone Number",type:"string"},address:{title:"Address",type:"string"},postalCode:{title:"Postal Code",type:"string"},city:{title:"City",type:"string"},stateCounty:{type:"array",title:"State / County",items:{type:"string",oneOf:[{const:"FIRST_STATE",title:"1st state"},{const:"SECOND_STATE",title:"2nd state"},{const:"THIRD_STATE",title:"3rd state"}]},uniqueItems:!0},country:{type:"array",title:"Country",items:{type:"string",oneOf:[{const:"LT",title:"Lithuania"},{const:"IT",title:"Italy"},{const:"US",title:"United States of America"},{const:"OTHER",title:"Other"}]},uniqueItems:!0},webSite:{title:"Web site",type:"string"},externalCode:{title:"External Code",type:"string"}}},userDetails:{title:"User Details",type:"object",required:["lastName","firstName","email","phoneNumber","username","userVerificationQuestion","preferredUiLanguage","timezone"],properties:{title:{type:"string",title:"Title",oneOf:[{const:"MR",title:"Mr."},{const:"MS",title:"Ms."}]},lastName:{type:"string",title:"Last Name"},firstName:{type:"string",title:"First Name"},email:{type:"string",description:"IMPORTANT: This email address will be used for access to the site and for all communications. Please ensure you enter the address correctly. Please use ';' (semicolon) to separate multiple addresses.",title:"Email Address"},phoneNumber:{type:"string",title:"Phone Number"},mobileNumber:{title:"Mobile Number",type:"string",description:'(please enter "+" "country code" and "your mobile phone number" with no spaces)'},faxNumber:{type:"string",title:"Fax Number"},roleWithinOrganisation:{type:"array",title:"Role within Organisation",items:{type:"string",oneOf:[{const:"OTHER",title:"Other"},{const:"OWNER",title:"Owner"},{const:"CEO",title:"CEO"}]},uniqueItems:!0},username:{type:"string",title:"Username",description:"(please do not forget your username)"},userVerificationQuestion:{type:"string",title:"User Verification Question",description:"Please specify a question that will help verify your identity should the need arise (e.g. Your mother's maiden name?)"},userVerificationQuestionAnswer:{type:"string",title:"Answer to Your User Verification Question",description:"(The helpdesk may request this information in order to verify your identity)."},preferredContactMethod:{type:"array",title:"Preferred Contact Method",items:{type:"string",oneOf:[{const:"TEL",title:"Telephone"},{const:"FAX",title:"Fax"},{const:"EMAIL",title:"Email"}]},uniqueItems:!0},preferredUiLanguage:{type:"array",title:"Preferred language for use in system interface",items:{type:"string",oneOf:[{const:"IT",title:"Italiano"},{const:"EN-GB",title:"ENGLISH"}]},uniqueItems:!0},timezone:{type:"array",title:"Time Zone",items:{type:"string",oneOf:[{const:"UTC",title:"UTC"},{const:"UTC+1",title:"UTC +1"}]},uniqueItems:!0}}}}}},g={payload:"1",errors:[]},f={payload:[{id:"30@mortgage-process_1.0.0-SNAPSHOT",statusCode:200},{id:"28@mortgage-process_1.0.0-SNAPSHOT",statusCode:403}],errors:[]},A=function(){var e=Object(o.a)(r.a.mark((function e(){var t,a,n,o,s,c,d,m,p,g,f=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},a=t.connection,n=t.groups,o=t.page,s=void 0===o?0:o,c=t.pageSize,d=void 0===c?30:c,m=t.sortedColumn,p=t.sortOrder,g=t.filter,e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:"/connections/".concat(a,"/tasks"),queryParams:{page:s+1,pageSize:d,sort:m,direction:p,filter:g,groups:n},method:i.d.GET,mockResponse:l(s,d,m,p,g),useAuthentication:!0}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=Object(o.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/tasks/columns"),method:i.d.GET,mockResponse:d,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=Object(o.a)(r.a.mark((function e(t,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a),method:i.d.GET,mockResponse:m,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),b=function(){var e=Object(o.a)(r.a.mark((function e(t,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/form"),method:i.d.GET,useAuthentication:!0,mockResponse:p.ALL_FIELDS}));case 1:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),E=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:"/connections/".concat(t,"/tasks/").concat(a,"/form"),method:i.d.POST,body:JSON.stringify(n),mockResponse:g,useAuthentication:!0}));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),k=function(){var e=Object(o.a)(r.a.mark((function e(t){var a,n,o,i,s,c,l;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.taskPosition,n=t.connection,o=t.groups,i=t.onError,e.prev=1,e.next=4,A({connection:n,groups:o,page:a,pageSize:1});case 4:if(s=e.sent,c=s.payload,l=s.metadata,c){e.next=9;break}throw new Error("messages.errors.errorResponse");case 9:return e.abrupt("return",{task:c[0],metadata:l});case 12:e.prev=12,e.t0=e.catch(1),i(e.t0.message);case 15:return e.abrupt("return",{});case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),y=["assign","claim","complete","pause","resume","start","unclaim"],S=function(){var e=Object(o.a)(r.a.mark((function e(t,a,n,o){var s,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s="assign"===a&&o?"/".concat(o):"",c="/connections/".concat(t,"/bulk/tasks/").concat(a).concat(s),e.abrupt("return",Object(u.a)({domain:i.a.PDA,uri:c,method:i.d.PUT,body:JSON.stringify(n),mockResponse:f,useAuthentication:!0}));case 3:case"end":return e.stop()}}),e)})));return function(t,a,n,r){return e.apply(this,arguments)}}()},86:function(e,t,a){"use strict";var n=a(79),r=a(41),o=a(0),i=a.n(o),s=a(14),c=a(8),l=a(470),u=a(1488),d=Object(c.a)({root:{color:"#9D9D9D"}})(u.a),m=Object(c.a)({wrapper:{padding:"20px 20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.05)",minHeight:"100px",textAlign:"center"}})((function(e){var t=e.classes;return i.a.createElement(l.a,{disableGutters:!0,className:t.wrapper},i.a.createElement(d,null))})),p=a(7),g=a(82),f=function(e){var t=e.classes,a=e.missingPermissions;return i.a.createElement(l.a,{disableGutters:!0,className:t.wrapper},i.a.createElement(g.a,null,p.a.t("authentication.missingPermissions"),": ",a.join(", "),"."))};f.defaultProps={missingPermissions:[]};var A=Object(c.a)({wrapper:{padding:"20px 20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.05)",minHeight:"100px",textAlign:"center"}})(f),h=function(){return window&&window.entando&&window.entando.keycloak};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(a){var c=Object(o.useState)(!1),l=Object(r.a)(c,2),u=l[0],d=l[1],p=Object(o.useState)([]),g=Object(r.a)(p,2),f=g[0],v=g[1],b=function(e){if(e){var a=Object(n.a)(t);Object.keys(e.resourceAccess).forEach((function(t){var r=e.resourceAccess[t].roles,o=a.filter((function(e){return!r.includes(e)}));a=Object(n.a)(o)})),v(a)}d(!0)};return Object(o.useEffect)((function(){var e=h();s.c||s.b||!e&&localStorage.getItem("token")?b():e.authenticated?b(e):window.addEventListener("keycloak",(function(t){"onInit"===t.detail.eventType&&e.authenticated&&b(e)}))}),[]),u?f.length>0?i.a.createElement(A,{missingPermissions:f}):i.a.createElement(e,a):i.a.createElement(m,null)}}},87:function(e,t,a){"use strict";var n=a(41),r=a(0),o=a.n(r),i=a(26),s=a.n(i),c=a(3),l=a.n(c),u=a(82),d=a(241),m=a(731),p=a(378),g=a(1456),f=a(1446),A=a(1447),h=function(e){var t=e.title,a=e.hasDivider,i=e.classes,s=e.className,c=e.children,h=e.collapsible,v=e.expanded,b=Object(r.useState)(v),E=Object(n.a)(b,2),k=E[0],y=E[1],S=t;return"string"===typeof t&&(S=o.a.createElement(u.a,{variant:"h2"},t)),o.a.createElement(d.a,{variant:"outlined",square:!0,className:l()(i.widgetBox,s)},t&&o.a.createElement(m.a,{display:"flex",justifyContent:"space-between",alignItems:"center",p:"".concat(h?8:20,"px 25px")},S,o.a.createElement("div",null,h&&o.a.createElement(p.a,{onClick:function(){y(!k)}},k?o.a.createElement(f.a,null):o.a.createElement(A.a,null)))),k&&o.a.createElement(o.a.Fragment,null,a&&o.a.createElement(g.a,null),c&&o.a.createElement(m.a,{p:"20px 25px"},c)))};h.defaultProps={title:null,collapsible:!1,hasDivider:!1,className:"",expanded:!0},t.a=s()({widgetBox:{background:"#FEFEFE"}})(h)},96:function(e,t,a){"use strict";t.a={TASK_LIST:{payload:{code:"entando_widgets_task_list",config:{groups:'[{"label":"Administrators","key":"Administrators","checked":true},{"label":"broker","key":"broker","checked":true},{"label":"admin","key":"admin","checked":false},{"label":"rest-all","key":"rest-all","checked":true},{"label":"kiemgmt","key":"kiemgmt","checked":false},{"label":"kie-server","key":"kie-server","checked":true},{"label":"appraiser","key":"appraiser","checked":false},{"label":"manager","key":"manager","checked":true},{"label":"supplier","key":"supplier","checked":true},{"label":"IT","key":"IT","checked":true},{"label":"PM","key":"PM","checked":true},{"label":"approver","key":"approver","checked":true}]',options:'[{"key":"newPageOnClick","label":"Open new page on table row click","checked":false},{"key":"showClaim","label":"Show Claim Button","checked":true},{"key":"showComplete","label":"Show Complete Button","checked":true}]',columns:'[{"name":"id","position":0,"isVisible":true},{"name":"name","position":1,"isVisible":true},{"name":"createdBy","position":2,"isVisible":true},{"name":"createdAt","position":3,"isVisible":true},{"name":"dueTo","position":4,"isVisible":true},{"name":"status","position":5,"isVisible":true},{"name":"description","position":6,"isVisible":true},{"name":"owner","position":7,"isVisible":true},{"name":"inputData","position":8,"isVisible":true},{"name":"outputData","position":9,"isVisible":true},{"name":"priority","position":10,"isVisible":true},{"name":"subject","position":11,"isVisible":true},{"name":"type","position":12,"isVisible":true},{"name":"form","position":13,"isVisible":true},{"name":"activatedAt","position":14,"isVisible":true},{"name":"skipable","position":15,"isVisible":true},{"name":"workItemId","position":16,"isVisible":true},{"name":"processId","position":17,"isVisible":true},{"name":"processDefinitionId","position":18,"isVisible":true},{"name":"parentId","position":19,"isVisible":true},{"name":"slaCompliance","position":20,"isVisible":true},{"name":"slaDueTo","position":21,"isVisible":true},{"name":"potentialOwners","position":22,"isVisible":true},{"name":"excludedOwners","position":23,"isVisible":true},{"name":"businessAdmins","position":24,"isVisible":true}]',knowledgeSource:"kieStaging",process:"Mortgage_Process.MortgageApprovalProcess@mortgage-process_1.0.1-SNAPSHOT"}},errors:{}},TASK_DETAILS:{payload:{code:"entando_widgets_task_details",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT",settings:'{"header":"taskDetails.overview.detailsTitle","hasGeneralInformation":true,"destinationPageCode":"pda_task_details"}'}},metaData:{status:"draft"},errors:[]},COMPLETION_FORM:{payload:{code:"entando_widgets_completion_form",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT",settings:'{"uiSchema":"{\\"_sliderInteger\\":{\\"ui:widget\\":\\"range\\",\\"ui:options\\":{}},\\"_multipleSelector\\":{\\"ui:widget\\":\\"select\\",\\"ui:options\\":{}},\\"_bigText\\":{\\"ui:widget\\":\\"textarea\\",\\"ui:options\\":{\\"rows\\":3}},\\"__unbound_field_field_62054\\":{\\"ui:widget\\":\\"range\\",\\"ui:options\\":{}},\\"_processList\\":{\\"ui:widget\\":\\"select\\",\\"ui:options\\":{}},\\"_radioWithDefault\\":{\\"ui:widget\\":\\"radio\\",\\"ui:options\\":{}},\\"_radioWithoutDefault\\":{\\"ui:widget\\":\\"radio\\",\\"ui:options\\":{}},\\"_customObject\\":{\\"myDateTime\\":{\\"ui:options\\":{\\"size\\":6}},\\"myBoolean\\":{\\"ui:widget\\":\\"radio\\",\\"ui:options\\":{}},\\"myString\\":{\\"ui:widget\\":\\"uri\\"}}}","uiSchemas":"[{\\"formSchemaId\\":\\"http://entando.org/schemas/MortgageApplicationForm.json\\",\\"uiSchema\\":{\\"myMortgageAmount\\":{\\"ui:options\\":{\\"size\\":6}}}},{\\"formSchemaId\\":\\"http://entando.org/schemas/pda-all-fields-form.json\\",\\"uiSchema\\":{\\"allFielder\\":{\\"ui:options\\":{\\"size\\":12}}}}]","defaultColumnSize":"6"}'}},metaData:{status:"draft"},errors:[]},TASK_COMMENTS:{payload:{code:"entando_widgets_comments",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT"}},metaData:{status:"draft"},errors:[]},SUMMARY_CARD:{payload:{code:"entando_widgets_summary_card",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT",settings:'{"type": "requests"}'}},metaData:{status:"draft"},errors:[]},PROCESS_FORM:{payload:{code:"entando_widgets_process_form",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT",settings:'{"uiSchemas":"[{\\"formSchemaId\\":\\"http://entando.org/schemas/MortgageApplicationForm.json\\",\\"uiSchema\\":{\\"myMortgageAmount\\":{\\"ui:options\\":{\\"size\\":6}}}},{\\"formSchemaId\\":\\"http://entando.org/schemas/pda-all-fields-form.json\\",\\"uiSchema\\":{\\"allFielder\\":{\\"ui:options\\":{\\"size\\":12}}}}]","defaultColumnSize":"6"}'}},metaData:{status:"draft"},errors:[]},OVERTIME_GRAPH:{payload:{code:"entando_widgets_overtime_graph",config:{containerId:"evaluation_1.0.0-SNAPSHOT",knowledgeSource:"kieStaging",process:"evaluation@evaluation_1.0.0-SNAPSHOT",settings:'{"dataType1": "requests", "dataType2": "cases", "dailyFreqPeriods": 30, "monthlyFreqPeriods": 12, "annualFreqPeriods": 10}'}},metaData:{status:"draft"},errors:[]},ATTACHMENTS:{payload:{code:"entando_widgets_widgets_attachments",config:{knowledgeSource:"kieStaging",process:"Mortgage_Process.MortgageApprovalProcess@mortgage-process_1.0.1-SNAPSHOT"}},metaData:{status:"draft"},errors:[]},PROCESS_DEFINITION:{payload:{code:"entando_widgets_process_definition",config:{knowledgeSource:"kieStaging",settings:'{"uiSchema":"{}", "processDefinition":"Mortgage_Process.MortgageApprovalProcess@mortgage-process_1.0.0-SNAPSHOT"}'}},metaData:{status:"draft"},errors:[]}}}},[[783,1,2]]]);
  //# sourceMappingURL=main.7f393e39.chunk.js.map