(this["webpackJsonpworkslist-material-react-free"]=this["webpackJsonpworkslist-material-react-free"]||[]).push([[8],{13:function(e,t,n){"use strict";t.a={appName:"WorksList",appLink:"https://www.worklist-ppm.com/",companyName:"The Works Community Management Co.,Ltd.",releasedYear:2022,basename:"/",defaultPath:"/overview",fontFamily:"'Sukhumvit', 'THSarabunNew', 'Sarabun', 'Poppins', 'Roboto', sans-serif",borderRadius:12,enviroment:"production",development:{server_endpoint:"http://localhost:8085/api/v2",enabledLogs:!0},production:{server_endpoint:"https://worklist-ppm.com/api/v2",enabledLogs:!0}}},138:function(e,t,n){"use strict";n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"a",(function(){return j})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return x}));var o=n(11),a=n(64),r=n(23),i=n.n(r),l=n(15),d=n.n(l),c=n(13),s=n(5),u=n(66),p={requests:[],updateItem:null,requestStatusList:[{name:"Open",TH:"",status:"OPEN",value:"OPEN",isCol:!0,colors:{soft:a.a.Y50,hard:a.a.Y200},cols:["TODO","DOING","DONE","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o={isValid:!1},a=(e.status,e.requestId),r=e.priorityNo,i=e.departmentInCharge,l=e.personsInCharge,c=(e.planning,e.completionDate,e.reason,e.result,e.comment),s=e.updatedBy,u=e.password;return"REORDER"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,priorityNo:r,updatedBy:s}})),"REJECT"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,comment:c,updatedBy:s,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,col:"OPEN",status:"OPEN",departmentInCharge:i,personsInCharge:l,comment:c,updatedBy:s}})),"SUBMIT"===t&&i&&l&&"[]"!==l&&u&&""!==u&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,col:"OPEN",status:"WAITING",departmentInCharge:i,personsInCharge:l,comment:c,updatedBy:s}})),o}},{name:"Waiting",TH:"",status:"OPEN",value:"WAITING",colors:{soft:a.a.Y50,hard:a.a.Y500},cols:["TODO","DOING","DONE","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a={isValid:!1},r=(e.status,e.requestId),i=e.priorityNo,l=e.departmentInCharge,c=e.personsInCharge,s=(e.planning,e.completionDate,e.reason,e.result,e.comment),u=e.updatedBy,p=e.password;("REORDER"===t&&(a=d.a.extend({},a,{isValid:!0,input:{requestId:r,priorityNo:i,updatedBy:u}})),"REJECT"===t&&(a=d.a.extend({},a,{isValid:!0,input:{requestId:r,comment:s,updatedBy:u,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(a=d.a.extend({},a,{isValid:!0,input:{requestId:r,col:"OPEN",status:"WAITING",departmentInCharge:l,personsInCharge:c,comment:s,updatedBy:u}})),"SUBMIT"===t)&&(c&&p&&""!==p&&(a=(null===(o=JSON.parse(c))||void 0===o?void 0:o.filter((function(e){return!e.isCC}))).find((function(e){return!e.isApproved}))?d.a.extend({},a,{isValid:!0,input:{requestId:r,col:"OPEN",status:"WAITING",departmentInCharge:l,personsInCharge:c,comment:s,updatedBy:u}}):d.a.extend({},a,{isValid:!0,input:{requestId:r,col:"TODO",status:"TODO",departmentInCharge:l,personsInCharge:c,comment:s,updatedBy:u}})));return a}},{name:"Approved",TH:"",status:"OPEN",value:"APPROVED",colors:{soft:a.a.Y50,hard:a.a.Y500},cols:["DOING","DONE","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a,r,i,l={isValid:!1},c=(e.status,e.requestId),s=e.priorityNo,u=e.departmentInCharge,p=e.personsInCharge,v=(e.planning,e.completionDate,e.reason,e.result,e.comment),m=e.updatedBy,b=e.password;("REORDER"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,priorityNo:s,updatedBy:m}})),"REJECT"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,comment:v,updatedBy:m,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,col:"OPEN",status:"APPROVED",departmentInCharge:u,personsInCharge:p,comment:v,updatedBy:m}})),"SUBMIT"===t)&&(p&&b&&""!==b&&((null===(o=JSON.parse(p))||void 0===o?void 0:o.filter((function(e){return!e.isCC}))).find((function(e){return!e.isApproved}))||(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,col:"TODO",status:"TODO",departmentInCharge:u,personsInCharge:p,comment:v,updatedBy:m}}))));"MOVE"===t&&("TODO"===(null===n||void 0===n||null===(a=n.destination)||void 0===a||null===(r=a.droppableId)||void 0===r?void 0:r.toUpperCase())&&p&&((null===(i=JSON.parse(p))||void 0===i?void 0:i.filter((function(e){return!e.isCC}))).find((function(e){return!e.isApproved}))||(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,col:"TODO",status:"TODO",departmentInCharge:u,personsInCharge:p,comment:v,updatedBy:m}}))));return l}},{name:"Todo",TH:"",status:"TODO",value:"TODO",isCol:!0,colors:{soft:a.a.B50,hard:a.a.B200},cols:["DOING","DONE","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a,r={isValid:!1},i=(e.status,e.requestId),l=e.priorityNo,c=(e.departmentInCharge,e.personsInCharge,e.planning),s=(e.completionDate,e.reason,e.result,e.comment),u=e.updatedBy;e.password;("REORDER"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,priorityNo:l,updatedBy:u}})),"REJECT"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,comment:s,updatedBy:u,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,col:"TODO",status:"TODO",planning:c,comment:s,updatedBy:u}})),"SUBMIT"===t&&c&&"[]"!==c&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,col:"TODO",status:"PLANNING",planning:c,comment:s,updatedBy:u}})),"MOVE"===t)&&("OPEN"===(null===n||void 0===n||null===(o=n.destination)||void 0===o||null===(a=o.droppableId)||void 0===a?void 0:a.toUpperCase())&&(r=d.a.extend({},r,{isValid:!0,input:{isBack:!0,requestId:i,col:"OPEN",status:"OPEN",departmentInCharge:"",personsInCharge:"[]",planning:"[]",comment:s,updatedBy:u}})));return r}},{name:"Planning",TH:"",status:"TODO",value:"PLANNING",colors:{soft:a.a.T50,hard:a.a.T200},cols:["DONE","CANCEL"],userRole:["ADMIN","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o={isValid:!1},a=(e.status,e.requestId),r=e.priorityNo,i=(e.departmentInCharge,e.personsInCharge,e.planning),l=(e.completionDate,e.reason,e.result,e.comment),c=e.updatedBy;e.password;("REORDER"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,priorityNo:r,updatedBy:c}})),"REJECT"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,comment:l,updatedBy:c,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,col:"TODO",status:"PLANNING",planning:i,comment:l,updatedBy:c}})),"SUBMIT"===t)&&(i&&"[]"!==i&&JSON.parse(i).length>0&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,col:"DOING",status:"DOING",planning:i,comment:l,updatedBy:c}})));if("MOVE"===t){var s,u,p,v;if("DOING"===(null===n||void 0===n||null===(s=n.destination)||void 0===s||null===(u=s.droppableId)||void 0===u?void 0:u.toUpperCase()))if(i&&"[]"!==i)JSON.parse(i).length>0&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,col:"DOING",status:"DOING",planning:i,comment:l,updatedBy:c}}));"OPEN"===(null===n||void 0===n||null===(p=n.destination)||void 0===p||null===(v=p.droppableId)||void 0===v?void 0:v.toUpperCase())&&(o=d.a.extend({},o,{isValid:!0,input:{isBack:!0,requestId:a,col:"OPEN",status:"OPEN",departmentInCharge:"",personsInCharge:"[]",planning:"[]",comment:l,updatedBy:c}}))}return o}},{name:"Doing",TH:"",status:"DOING",value:"DOING",isCol:!0,colors:{soft:a.a.P50,hard:a.a.P200},cols:["OPEN","DONE","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a,r={isValid:!1},i=(e.status,e.requestId),l=e.priorityNo,c=(e.departmentInCharge,e.personsInCharge,e.planning,e.completionDate),s=e.reason,u=e.result,p=e.resultImages,v=e.comment,m=e.updatedBy,b=e.password;("REORDER"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,priorityNo:l,updatedBy:m}})),"REJECT"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,comment:v,updatedBy:m,col:"CANCEL",status:"REJECTED"}})),"SAVE"===t&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,col:"DOING",status:"DOING",completionDate:c,reason:s,result:u,resultImages:p,comment:v,updatedBy:m}})),"SUBMIT"===t&&c&&u&&b&&""!==b&&(r=d.a.extend({},r,{isValid:!0,input:{requestId:i,col:"DONE",status:"RESOLVED",completionDate:c,reason:s,result:u,resultImages:p,comment:v,updatedBy:m}})),"MOVE"===t)&&("TODO"===(null===n||void 0===n||null===(o=n.destination)||void 0===o||null===(a=o.droppableId)||void 0===a?void 0:a.toUpperCase())&&(r=d.a.extend({},r,{isValid:!0,input:{isBack:!0,requestId:i,col:"TODO",status:"TODO",planning:"[]",completionDate:"",reason:"",result:"",resultImages:"",comment:v,updatedBy:m}})));return r}},{name:"Done",TH:"",status:"DONE",value:"DONE",isCol:!0,colors:{soft:a.a.G50,hard:a.a.G200},cols:[],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o={isValid:!1},a=(e.status,e.requestId),r=e.priorityNo,i=(e.departmentInCharge,e.personsInCharge,e.planning,e.completionDate,e.reason,e.result,e.comment,e.updatedBy);e.password;return"REORDER"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,priorityNo:r,updatedBy:i}})),o}},{name:"Resolved",TH:"",status:"DOING",value:"RESOLVED",colors:{soft:a.a.G50,hard:a.a.G200},cols:["OPEN","TODO","CANCEL"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a,r,i,l={isValid:!1},c=(e.status,e.requestId),s=e.priorityNo,u=(e.departmentInCharge,e.personsInCharge,e.planning,e.completionDate),p=e.reason,v=e.result,m=e.comment,b=e.updatedBy;e.password;("REORDER"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,priorityNo:s,updatedBy:b}})),"DELETE"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,updatedBy:b}})),"MOVE"===t)&&("DONE"===(null===n||void 0===n||null===(o=n.destination)||void 0===o||null===(a=o.droppableId)||void 0===a?void 0:a.toUpperCase())&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,col:"DONE",status:"RESOLVED",completionDate:u,reason:p,result:v,comment:m,updatedBy:b}})),"DOING"===(null===n||void 0===n||null===(r=n.destination)||void 0===r||null===(i=r.droppableId)||void 0===i?void 0:i.toUpperCase())&&(l=d.a.extend({},l,{isValid:!0,input:{isBack:!0,requestId:c,col:"DOING",status:"DOING",completionDate:"",reason:"",result:"",resultImages:"",comment:m,updatedBy:b}})));return l}},{name:"Rejected",TH:"",status:"DOING",value:"REJECTED",colors:{soft:a.a.R50,hard:a.a.R200},cols:["TODO","DOING","DONE"],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o,a,r,i,l={isValid:!1},c=(e.status,e.requestId),s=e.priorityNo,u=(e.departmentInCharge,e.personsInCharge,e.planning,e.completionDate,e.reason,e.result,e.comment),p=e.updatedBy;e.password;("REORDER"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,priorityNo:s,updatedBy:p}})),"DELETE"===t&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,updatedBy:p}})),"MOVE"===t)&&("CANCEL"===(null===n||void 0===n||null===(o=n.destination)||void 0===o||null===(a=o.droppableId)||void 0===a?void 0:a.toUpperCase())&&(l=d.a.extend({},l,{isValid:!0,input:{requestId:c,col:"CANCEL",status:"REJECTED",comment:u,updatedBy:p}})),"OPEN"===(null===n||void 0===n||null===(r=n.destination)||void 0===r||null===(i=r.droppableId)||void 0===i?void 0:i.toUpperCase())&&(l=d.a.extend({},l,{isValid:!0,input:{isBack:!0,requestId:c,col:"OPEN",status:"OPEN",departmentInCharge:"",personsInCharge:"[]",planning:"[]",completionDate:"",reason:"",result:"",resultImages:"",comment:u,updatedBy:p}})));return l}},{name:"Cancel",TH:"",status:"CANCEL",value:"CANCEL",isCol:!0,statusList:["REJECTED"],colors:{soft:a.a.R50,hard:a.a.R200},cols:[],userRole:["ADMIN","MANAGER","GENERAL_MANAGER"],validateForNextStep:function(e,t,n){var o={isValid:!1},a=(e.status,e.requestId),r=e.priorityNo,i=(e.departmentInCharge,e.personsInCharge,e.planning,e.completionDate,e.reason,e.result,e.comment,e.updatedBy);e.password;return"REORDER"===t&&(o=d.a.extend({},o,{isValid:!0,input:{requestId:a,priorityNo:r,updatedBy:i}})),o=d.a.extend({},o,{isValid:!0})}}],columns:{},ordered:[],status:null},v=function(e,t){return function(n){var o=Object(u.a)(e);return i.a.get("".concat(c.a[c.a.enviroment].server_endpoint).concat(s.Cb).concat(o)).then((function(e){var o=e.data;n({type:s.ec,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},m=function(e,t){return function(n){return i.a.get("".concat(c.a[c.a.enviroment].server_endpoint).concat(s.Bb.replace(":requestId",e))).then((function(e){var n=e.data;t&&t(n.data)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||("files"===t?e[t].forEach((function(e,t){o.append("file".concat("_",t),e)})):o.append(t,e[t]))})),i()({method:"post",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.q),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},h=function(e,t){return function(n){var o=new FormData,a=d.a.omit(e,["isBack"]);return Object.keys(a).forEach((function(t){null!==e&&void 0!==e&&e.isBack?o.append(t,e[t]):null==e[t]||void 0==e[t]||""==e[t]||("resultImages"===t?e[t].forEach((function(e,t){o.append("file".concat("_",t),e)})):o.append(t,e[t]))})),i()({method:"put",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.tc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},f=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||"resultImages"===t||o.append(t,e[t])})),i()({method:"put",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.Jb),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},j=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){o.append(t,e[t])})),i()({method:"put",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.a.replace(":requestId",null===e||void 0===e?void 0:e.requestId)),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},g=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),i()({method:"delete",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.Q),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},x=function(e,t){return function(n){return i()({method:"post",url:"".concat(c.a[c.a.enviroment].server_endpoint).concat(s.R),data:e,headers:{"Content-Type":"application/json"}}).then((function(e){var o=e.data;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:s.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.c=function(){var e,t,n,a,r,i,l,c,u,v,m,b,h,f,j,g,x,O,y,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,I=arguments.length>1?arguments[1]:void 0,E=I.payload;switch(I.type){case s.fc:return Object(o.a)(Object(o.a)({},C),{},{status:E});case s.ec:return Object(o.a)(Object(o.a)({},C),{},{requests:E});case s.p:return g=d.a.extend({},C),x=E,(null===(e=g)||void 0===e||null===(t=e.requests)||void 0===t?void 0:t.find((function(e){return e.requestId===x.requestId})))?C:((y=d.a.clone(null===(n=g)||void 0===n?void 0:n.requests)).unshift(x),Object(o.a)(Object(o.a)({},C),{},{requests:y,status:"UPDATE_REQUEST"}));case s.uc:return Object(o.a)(Object(o.a)({},C),{},{updateItem:null});case s.sc:return g=d.a.extend({},C),x=E,(null===(a=g)||void 0===a||null===(r=a.requests)||void 0===r?void 0:r.find((function(e){return e.requestId===x.requestId})))?(O=d.a.findIndex(null===(i=g)||void 0===i?void 0:i.requests,(function(e){return e.requestId===x.requestId})),(y=d.a.clone(null===(l=g)||void 0===l?void 0:l.requests)).splice(O,1,x),Object(o.a)(Object(o.a)({},C),{},{requests:y,updateItem:x,status:"UPDATE_REQUEST"})):C;case s.vc:return g=d.a.extend({},C),x=E,(null===(c=g)||void 0===c||null===(u=c.requests)||void 0===u?void 0:u.find((function(e){return e.requestId===x.requestId})))?(O=d.a.findIndex(null===(v=g)||void 0===v?void 0:v.requests,(function(e){return e.requestId===x.requestId})),(y=d.a.clone(null===(m=g)||void 0===m?void 0:m.requests)).splice(O,1,x),Object(o.a)(Object(o.a)({},C),{},{requests:y})):C;case s.wc:return Object(o.a)(Object(o.a)({},C),{},{status:"UPDATE_REQUEST"});case s.P:return g=d.a.extend({},C),x=E,(null===(b=g)||void 0===b||null===(h=b.requests)||void 0===h?void 0:h.find((function(e){return e.requestId===x.requestId})))?(O=d.a.findIndex(null===(f=g)||void 0===f?void 0:f.requests,(function(e){return e.requestId===x.requestId})),(y=d.a.clone(null===(j=g)||void 0===j?void 0:j.requests)).splice(O,1),Object(o.a)(Object(o.a)({},C),{},{requests:y,status:"UPDATE_REQUEST"})):C;case s.Tb:return g=d.a.extend({},C),x=E,Object(o.a)(Object(o.a)({},C),{},{columns:x});case s.bc:return g=d.a.extend({},C),x=E,Object(o.a)(Object(o.a)({},C),{},{ordered:x});default:return C}}},147:function(e,t,n){"use strict";n.d(t,"g",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"h",(function(){return j})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return x})),n.d(t,"e",(function(){return y})),n.d(t,"k",(function(){return C})),n.d(t,"f",(function(){return I})),n.d(t,"b",(function(){return E})),n.d(t,"l",(function(){return w})),n.d(t,"d",(function(){return T}));var o=n(11),a=n(724),r="supanimit",i=function(e){var t=localStorage.getItem(e);return t?""===t?null:function(e){var t=a.AES.decrypt(e,r);return JSON.parse(t.toString(a.enc.Utf8))}(t):null},l=function(e){localStorage.removeItem(e)},d=function(e,t){var n=function(e){return a.AES.encrypt(JSON.stringify(e),r).toString()}(t);localStorage.setItem(e,n)},c=n(23),s=n.n(c),u=n(13),p=n(5),v=n(149),m=n(66),b={authUser:null,users:[]},h=function(e,t){return console.log("isLoggedIn"),function(n){var o="YES"===i("IS_AUTHEN");if(o){var a=i("AUTHEN"),r=a.username;n({type:p.Pb,payload:a}),e||n(Object(v.e)(r,(function(){})))}else n({type:p.Pb,payload:null}),n({type:p.Lb,payload:null});return t&&t(o),o}},f=function(e,t){return function(n){var o=e.username,a=e.email,r=e.password,i=new FormData;return i.append("username",o||a),i.append("password",r),s()({method:"post",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.b),data:i,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},j=function(e,t){return console.log("login"),function(n){var o=e.email,a=e.password,r=new FormData;return r.append("username",o),r.append("password",a),s()({method:"post",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.Gb),data:r,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;d("IS_AUTHEN","YES"),d("AUTHEN",o.data),n({type:p.Pb,payload:o.data}),n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08"}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},g=function(e){return console.log("logout"),function(t){l("IS_AUTHEN"),l("AUTHEN"),t({type:p.Pb,payload:null}),t({type:p.Lb,payload:null}),e&&e()}},x=function(e,t){return function(n){var o=e.email,a=e.password,r=new FormData;return r.append("username",o),r.append("email",o),r.append("password",a),r.append("createdBy",o),r.append("updatedBy",o),s()({method:"post",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.Ib),data:r,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08! \u0e04\u0e38\u0e13\u0e08\u0e30\u0e40\u0e02\u0e49\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e25\u0e4c\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19 \u0e44\u0e21\u0e48\u0e40\u0e01\u0e34\u0e19 1 \u0e27\u0e31\u0e19\u0e17\u0e33\u0e01\u0e32\u0e23"}}),t&&t(o,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},O=function(e){var t,n,o,a,r,i,l,d="".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n||null===(o=n.error)||void 0===o?void 0:o.message)||(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.message)||(null===e||void 0===e?void 0:e.message));switch(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.status){case"E0002":d="\u0e44\u0e21\u0e48\u0e1e\u0e1a Email \u0e19\u0e35\u0e49\u0e1a\u0e19\u0e23\u0e30\u0e1a\u0e1a";break;case"E00021":d="\u0e44\u0e21\u0e48\u0e1e\u0e1a\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e25\u0e4c\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e41\u0e2d\u0e14\u0e21\u0e34\u0e19 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e01\u0e32\u0e23\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e43\u0e2b\u0e49\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e01\u0e48\u0e2d\u0e19"}return d},y=function(e,t){return function(n){var o=e.email,a=new FormData;return a.append("email",o),s()({method:"put",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.V),data:a,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"\u0e2a\u0e48\u0e07 Email \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Reset password \u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08! \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a Email"}}),t&&t(o,null)})).catch((function(e){n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:O(e)}}),t&&t(null,e)}))}},C=function(e,t){return function(n){var o=e.token,a=e.password,r=e.confirmPassword,i=new FormData;return i.append("token",o),i.append("password",a),i.append("confirmPassword",r),s()({method:"put",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.Kb),data:i,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e40\u0e02\u0e49\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48"}}),t&&t(o,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},I=function(e,t){return function(n){var o=Object(m.a)(e);return s.a.get("".concat(u.a[u.a.enviroment].server_endpoint).concat(p.Fb).concat(o)).then((function(e){var o=e.data;n({type:p.hc,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},E=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),s()({method:"post",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.t),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},w=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),s()({method:"put",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.yc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},T=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),s()({method:"delete",url:"".concat(u.a[u.a.enviroment].server_endpoint).concat(p.T),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:p.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case p.hc:return Object(o.a)(Object(o.a)({},e),{},{users:n});case p.Pb:return Object(o.a)(Object(o.a)({},e),{},{authUser:n});default:return e}}},149:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"i",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return h})),n.d(t,"h",(function(){return f}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=(n(15),n(66)),c={account:null,accounts:[]},s=function(e,t){return function(n){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.X.replace(":username",e))).then((function(e){var o=e.data;n({type:l.Lb,payload:o.data}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},u=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.W).concat(o)).then((function(e){var o=e.data;n({type:l.Mb,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.jb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="ACCOUNT",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.accountCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.accountCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.d),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]?"projectCode"===t&&o.append(t,e[t]):o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.ic),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.c),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08"}}),t&&t(o,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},h=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.u),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},f=function(e){return function(t){return t({type:l.Lb,payload:e})}};t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case l.Lb:return Object(o.a)(Object(o.a)({},e),{},{account:n});case l.Mb:return Object(o.a)(Object(o.a)({},e),{},{accounts:n});default:return e}}},189:function(e,t,n){"use strict";var o=n(11),a=n(86),r=n(0),i=n(55),l=n(566),d=n(328),c=n(123),s=n(565),u=n(567),p=n(1),v=["border","boxShadow","children","classes","content","contentClass","contentSX","darkTitle","secondary","shadow","sx","title"],m={"& .MuiCardHeader-action":{mr:0},overflow:"auto"},b=Object(r.forwardRef)((function(e,t){var n=e.border,r=void 0===n||n,b=e.boxShadow,h=e.children,f=e.classes,j=e.content,g=void 0===j||j,x=e.contentClass,O=void 0===x?"":x,y=e.contentSX,C=void 0===y?{}:y,I=e.darkTitle,E=e.secondary,w=e.shadow,T=e.sx,N=void 0===T?{}:T,D=e.title,A=Object(a.a)(e,v),R=Object(i.a)();return Object(p.jsxs)(l.a,Object(o.a)(Object(o.a)({ref:t},A),{},{sx:Object(o.a)({border:r?"1px solid":"none",borderColor:R.palette.primary[200]+75,":hover":{boxShadow:b?w||"0 2px 14px 0 rgb(32 40 45 / 8%)":"inherit"}},N),style:null===f||void 0===f?void 0:f.card,children:[!I&&D&&Object(p.jsx)(d.a,{sx:m,title:D,action:E,style:null===f||void 0===f?void 0:f.cardHeader}),I&&D&&Object(p.jsx)(d.a,{sx:m,title:Object(p.jsx)(c.a,{variant:"h3",children:D}),action:E,style:null===f||void 0===f?void 0:f.cardHeader}),D&&Object(p.jsx)(s.a,{}),g&&Object(p.jsx)(u.a,{sx:C,className:O,style:null===f||void 0===f?void 0:f.cardContent,children:h}),!g&&h]}))}));t.a=b},252:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return b}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={departments:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.db).concat(o)).then((function(e){var o=e.data;n({type:l.Ub,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e,t){return function(n){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.eb).replace(":deptCode",e)).then((function(e){var n=e.data;t&&t(n.data)})).catch((function(e){var o,a,r,i,d;t&&t(null,e),n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.nb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="DEPT",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.deptCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.deptCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.j),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.mc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.D),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.Ub?Object(o.a)(Object(o.a)({},e),{},{departments:n}):e}},253:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return b}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={project:null,projects:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.yb).concat(o)).then((function(e){var o=e.data;n({type:l.dc,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e,t){return function(n){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.zb).replace(":projectCode",e)).then((function(e){var n=e.data;t&&t(n.data)})).catch((function(e){var o,a,r,i,d;t&&t(null,e),n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.sb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="PROJECT",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.projectCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.projectCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.o),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.rc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.N),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.dc?Object(o.a)(Object(o.a)({},e),{},{projects:n}):e}},254:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return b}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=(n(15),n(66)),c={area:null,areas:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.Z).concat(o)).then((function(e){var o=e.data;n({type:l.Ob,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e,t){return function(n){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.ab).replace(":areaCode",e)).then((function(e){var n=e.data;t&&t(n.data)})).catch((function(e){var o,a,r,i,d;t&&t(null,e),n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.lb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="AREA",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.areaCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.areaCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.g),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.kc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.y),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.Ob?Object(o.a)(Object(o.a)({},e),{},{areas:n}):e}},255:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return b}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={problems:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.wb).concat(o)).then((function(e){var o=e.data;n({type:l.cc,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e,t){return function(n){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.xb).replace(":problemCode",e)).then((function(e){var n=e.data;t&&t(n.data)})).catch((function(e){var o,a,r,i,d;t&&t(null,e),n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.rb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="PROBLEM",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.problemCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.problemCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.n),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.qc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.L),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.cc?Object(o.a)(Object(o.a)({},e),{},{problems:n}):e}},330:function(e,t,n){"use strict";var o=n(8),a=n(0),r=n(568),i=n(327),l=n(1),d=Object(a.forwardRef)((function(e,t){var n,a,d,c,s=e.children,u=e.type,p=e.direction,v=e.offset,m=e.scale;switch(p){case"up":case"left":d=v,c=0;break;default:d=0,c=v}var b=Object(r.a)(d,c),h=Object(o.a)(b,2),f=h[0],j=h[1],g=Object(r.a)(d,c),x=Object(o.a)(g,2),O=x[0],y=x[1];switch(u){case"rotate":return Object(l.jsx)(i.a.div,{ref:t,animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:s});case"slide":return"up"===p||"down"===p?Object(l.jsx)(i.a.div,{ref:t,animate:{y:void 0!==O?O:""},onHoverEnd:function(){return y()},onHoverStart:function(){return y()},children:s}):Object(l.jsx)(i.a.div,{ref:t,animate:{x:void 0!==f?f:""},onHoverEnd:function(){return j()},onHoverStart:function(){return j()},children:s});default:return"number"===typeof m&&(m={hover:m,tap:m}),Object(l.jsx)(i.a.div,{ref:t,whileHover:{scale:null===(n=m)||void 0===n?void 0:n.hover},whileTap:{scale:null===(a=m)||void 0===a?void 0:a.tap},children:s})}}));d.defaultProps={type:"scale",offset:10,direction:"right",scale:{hover:1,tap:.9}},t.a=d},333:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var o=8,a=2},335:function(e,t,n){"use strict";var o=n(11),a=n(86),r=n(0),i=n(55),l=n(566),d=n(328),c=n(123),s=n(565),u=n(567),p=n(1),v=["children","content","contentClass","darkTitle","secondary","sx","contentSX","title"],m=Object(r.forwardRef)((function(e,t){var n=e.children,r=e.content,m=e.contentClass,b=e.darkTitle,h=e.secondary,f=e.sx,j=void 0===f?{}:f,g=e.contentSX,x=void 0===g?{}:g,O=e.title,y=Object(a.a)(e,v),C=Object(i.a)();return Object(p.jsxs)(l.a,Object(o.a)(Object(o.a)({ref:t,sx:Object(o.a)({border:"1px solid",borderColor:C.palette.primary.light,":hover":{boxShadow:"0 2px 14px 0 rgb(32 40 45 / 8%)"}},j)},y),{},{children:[!b&&O&&Object(p.jsx)(d.a,{sx:{p:2.5},title:Object(p.jsx)(c.a,{variant:"h5",children:O}),action:h}),b&&O&&Object(p.jsx)(d.a,{sx:{p:2.5},title:Object(p.jsx)(c.a,{variant:"h4",children:O}),action:h}),O&&Object(p.jsx)(s.a,{sx:{opacity:1,borderColor:C.palette.primary.light}}),r&&Object(p.jsx)(u.a,{sx:Object(o.a)({p:2.5},x),className:m||"",children:n}),!r&&n]}))}));m.defaultProps={content:!0},t.a=m},381:function(e,t,n){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAbbklEQVR4nO3de3PTSNYG8Kcdh2S4TGDCZYFatnamauf7f5x9qwZqYbhVQkiAGeI4yXn/6Itbimy3EknnCD9nCuZnSbGV7na3HguC+3B0LA4OqUQA5yDh//m2WA5S/HvfFV9FAkbr8J3QGhZIGKu0bbuPRycCAOmtLwCcZFtq3ZxmCP9Va93/nFWdUMdolm5ZGAN0kbMJC8hnmDCfhakKmV2r+QoicOFFpQ/Dz68Svq/RWbLmZw1ecRyxxlHTfIoCXJoMXHhnOefSLOScQ37thQLn46EP+w0jtsOShYEeyqzx1OIKK801YelftfCUz1fX/IINctxUfMlKd+ow5vPsQNv1NF1ZpTnKwX+G1TxjCYDsomutXcyhMfp0bH8+/lx7iZw9OzVz3tz04M5vPNF2PfXvf/ExK37AUpndfNWnMIeyRWzxBf1NWpB4thidS9uR7sf+sX4spcvsI6EA4iR9buUrTFEOqNx/z/cVu8dKV3DhNUdnlmrF8W3kLhi92u5D+AzrytSy9ha8lUkrvobG+tyNDY2HDbTf0HY00zqeLuIVgMoVFvxnLTVXn0DWGvFqwj9J5xaxMOVc34v2pTUM+D++A9j5YJlebkZCdbNUK45vO5d8NCOhbRsaDxtov6HtaKZ1PEH2QCAQEcRP5iXGxcyLLa7I6U3Z0+8CP/jGasABzoV4Qg/t2BdpPNGmXfurOWGvi5uGvFK6QeWnN0azWKyimuQP4uIjcEgfwAsqThddhV486MmQ8MaXcVrEfztCa1iy8UTb99T/L1boyErOd6mDK39RNL86KLAAi88POvRi4zi9+NPvtIZ9VywGKm3bjIQWzGKxioqRUNsGYtEmW7LxRNs3I6GyLcSiTbbvCjuRh15tRkILZrFYRcVIqG0DsWiTLdl4ou2bkVDZFmLRJtt3hZ3IQ682I6EFs1isomIk1LaBWLTJlmw80fbtPn46lrjRZf/35cJGSa78yBmUXTxIeGLXh104Twk7xmaWauXjHrR5T+EWf1k5/39l8grHRLctl37r3ulcw3mNzZV2pgc3239cnqSNsujAeFA+Na3atsoSLrtFpBfXz31sTr1Bq7ns547QFsxIqG2WauXjHrR5MxIqu9LO9OBm+4/LjITKTr1Bq1k75tDlZiTUNku18nEP2rwZCZVdaWd6cLP9x2VGQmWn3qDVrB1z6HIzEmqbpVr5uAdt3oyEyq60Mz242f7jMiOhslNv0GrWjjl0uRkJtc1SrXzcgzZvRkJlV9qZHtxs/3GZkVDZqTdoNWvHHLrcjITaZqlWPu5BmzcjobIr7UwPbrb/uMxIqOzUG7SatWMOXW5GQm2zVCsf96DNm5FQ2ZV2pgc3239cZiRUduoNWs3aMYcuNyOhtlmqlY970ObNSKjsSjvTg5vtPy4zEio79QatZu2YQ5fbfTg6FgiuXjhJOrJiAfw/DF1o/1QuUDp3lISoNTa70F6xD+hhnca3lUsIeqWnTtyVfancVTsJk4RkE8YK+zfn4km6dpTLZtzRWbI2oge1IJvAaPOewCH1Ylx14kELZHbZG63EIb5B+nEQJPw3NqdqWBzo/u0fSvY2oC17KmGGSgt/6sTmEqB1JIzP26sHuiTt3n6pl9gH9KCGy/oBtHUzElqwZG1ED2oB1GMOXW5GQmWnalgc6P7tH9qJPDQjoXH7pd5KRNo0w2X9ANq6GQktWLI2oge1AOoxhy43I6GyUzUsDnT/9g/tRB6akdC4/VJvJSJtmuGyfgBt3YyEFixZG9GDWgD1mEOXm5FQ2akaFge6f/uHdiIPzUho3H6ptxKRNs1wWT+Atm5GQguWrI3oQS2Aesyhy81IqOxUDYsD3b/9QzuRh2YkNG6/1FuJSJtmuKwfQFs3I6EFS9ZG9KAWQD3m0OVmJFR2qobFge7f/qGdyEMzEhq3X+qtRKRNM1zWD6Ctm5HQgiVrI3pQC6Aec+hyMxIqO1XD4kD3b//QTuShGQmN2y/1ViLSphku6wfQ1s1IaMGStRE9qAVQjzl0uRkJlZ2qYXGg+7d/aCfy0IyExu2XeisRadMMl/UDaOtmJLRgydqIHtQCqMccutyMhMpO1bA40P3bP7QTeWhGQuP2S72ViLRphsv6AbR1MxJasGRtRA9qAdRjDl1uRkJlp2pYHOj+7R/aiTw0I6Fx+6XeSkTaNMNl/QDauhkJLViyNqIHtQDqMYcuNyOhslM1LA50//YP7UQempHQuP1SbyUibZrhsn4Abd2MhBYsWRvRg1oA9ZhDl5uRUNmpGhYHun/7h3YiD81IaNx+qbcSkTbNcFk/gLZuRkILlqyN6EEtgHrMocvNSKjsVA2LA92//UM7kYdmJDRuv9RbiUibZrisH0BbNyOhBUvWRvSgFkA95tDlZiRUdqqGxYHu3/6hnchDMxIat1/qrUSkTTNc1g+grZuR0IIlayN6UAugHnPocjMSKjtVw+JA92//0E7koRkJjdsv9VYi0qYZLusH0NbNSGjBkrURPagFUI85dLkZCZWdqmFxoPu3f2gn8tCrPcnmIfhrZEkHxLdV1bHK7dJv3TtdYYX/xubFNwNay3DZ4kFbtvt4dLKYi5yfmpw4iEOKf3CuYojAOeefao0hAolfA3Tu+M0g/ybGaAekD1XowVyZt1jma5JmMCf+A0ksJpzFLJYbIe5JkdNb06EXAwg3DGSUju3kAFrBAkDCRwy0fbsPRycSVxkJVy/xKkrg4Pyl1cJxlki3W9Y4Pl+br2njH6CyVqUV7B8LYkSnDZuR0IgdYCEibZpjL7DGUYyEyrYQizbZAqjHHJqRcFSVtSqtYP/YSOShV5uR0IgdYCEibZpjL7DGUYyEyrYQizbZAqjHHJqRcFSVtSqtYP/YSOShV3qaOk0Q4pz4+BdjoACoGGgdCeNj/zKd2pf2kL+5xcXvp+pLucTF+Tnid8rqtyaTCba2thZX79m0Rut7mmYwJxBxlQknHlb14pIa4fhVTnNceJquDYkXhP4cx2bnXLiydUDmr9++4dOnT5idnmI2m+Hy8jK06eLr6Ju7skADmE6n2NnZwe3bt/Hw0SNs37qF8AX9JgW6yIyEBiq/3jo7O8P79+9x/Pmz5iltTElFruJb29t4/vw5ft7bW0xuLSMM3bF5l9CIHTD7/h2vXr3C2dlZdtUFukevK+ccftnfx7NnzzCZTNZ/AavX4l1CZcd2OpvN8OrVK8xms7B/8TfV6f4sEL+oLvGlCA4PD/DhwwfEd4H2nbJNNiOhgRIRvHnzBp+PjrRPZeNKKlp+Bbw1meA/v/+OnZ2dsNVIRNowT9LbXsLKEy+SwoeQUjf8Gwwh+q1z7PL4YXPX9r/CuY3Us9kMx58/++8tvIPoYezSL7fSl5eXODg4QCwrd802zYyEynbO4eTkBPldK7+fHsLrImHuz0dHmM/n6rFokz1dXPrWJhsBVkfCLJWtcnr28PxdO01a2Uw8Mp+eni7dP51O8fjJkxRFWP2ViODLyQk+HX0CENIGJPni8gLfvn3DgwcPkKKKc/SA5h8cNeDvf//tJVfvZD17/hz379/3x7v4PdNdebE8+Lp79y6+/fUXzsLNj+oRDnJ5GZQtLPRgZiRUtnMOl/FN0BBbtqfT1JYOoDt2PXpMJhNsT6dYFg9RO54e1oyERrx2P92LXXAePcIBVyLhYrGxE5E2zYyEJhzUEAnj9vSmoTv1YnqqLh6uQdWttIYZCZVdv6KqR8Jof41Ld+2m6OF7xq/QUjMajqeHMyOhEa/dT/diF8xIOA4zEppwUIeRcD6f48uXL5jP55jNZpDLS2zfuoXt6RQ/7+3h1q1bmEy2zEQzRkK6xPzxMsq+EgnDRBVd3441/v73dxweHOD4+HgRb7LXERF8+PABOzs7ePT4Mfb399c+54/sNNZjP8Q2yxZuVBz6MD+eHsyMhEa8dn+Bj4+P8fbPP3FxcbH2OWezGf588wanp6d48vgxtra3W73Wj2IXzEg4DjMSmnBQugLIjHhVtiLaQHB4cID3799DRJqfZ4kPDw7w7etX/Prbb5hubzc//w/sxfRUXTxcg6pbaQ3zLqGyu7hL+OnwEO/evVv5B1BX+fT0FK9fv14sMite60ezwE/ektn3jKTFlncJ7XiSrzEIHeNcfORjYMXxcEGZ07O7fhwv7d04Xa+2kfD8/BwfP35c+bUl/vb1K05OTla+1o/o5snM74mfX1VtY6LdVDMSmnDQNSLh4eEhzs/PW8XAZf7w/j3u3bu3UXcPF9NTeieEx1dV3UprmJFQ2TeJhCKSfuhf2xjY5Nlshs+fPze+1o/qpujhe0bSYstIaMeMhMquV5tIePr9O+bz+dqvbeOvX740vtaP6ubJzO9hJLRnRkITDmoZCc/Pz9NTdREJkZ5TsPhHPnQi29HREW7fvo3d3d1eXyv2AiPhOMxIqOybRMLZbLb0+Ot6Pp/j8uLiymsN6cPDQ7z980+8/OMPnBwf9/paTdHD94ykxZaR0I4ZCZVdrzaRcNXxN3HthIYzgIODA7x7+xYigvPzc7x9+7byE1m7ft3myczvYSS0Z/4jFAacuiA28BJLzTs7OyuPv463t7cx2dq68lpD+PDwEO/fvaucz3w+x6uXL/H9+/deXjdWUyR0WCyQrnYMrWNGQmXfJBJOp9OsDbqJhNPpFLFph46BcbKqn9vZ2Vlv8TBOYJLZ94xfUaRmNBxPD2dGQmXXq00k3P3pJ2xnfwewi0h47+efG1+rN6MaA5edW1/xsHky83sYCe2ZkdCAUxesiWxSs3MOD375pehrS7yzs4MHDx40vtaQMXCZ+4iHsRgJx2FGQmXfJBI65/Dw4UNMwz9UcZNICAf84+lTbG1tLX2trr0qBi5z1/EwTmCS2feMX1GkZjQcTw9nRkJl16tNJASA6fY2njx5svJrS3zv3j3s7e2tfK3OjLIYuMxdxsPmyczvYSS0Z0ZCA05dsCYWyRLvP3yIZ8+epTdb20i4u7uLf7544fuuo6jVVQzsOx7GYiQchxkJlX3TSBif49Hjx/jnixfYmm6tfJ56DHz46BF+++03HytLXuuGvk4M7DMexglMMvue8SuK1IyG4+nhzJ84asRr9xf4/oMH2N3ZwUHtRyQ3PWflRyQjtmj5a7U2FjGw+lI3a78YD3d2d/HTTz+1PjcXLH6EZ8c4/sRRg+bfJTThIImdkzlsT2+aNd69fRv/fPEC/3j6NP0jFGezGS6X/SMUWP+cXbhyZVX/Hm/oGA///euvrf/u4WJ6qk6urkHVrbSG+Y9QKPtKJAxvxOj6dhR6e3sbDx8+hO/KxetccYvnvK4P6jGw9j124RgPnz9/jr3794vPLY312A+hzfOFGxWHPsyPpwcz7xIqu143iYTmjJvdDWzr69w9dOl58s+3/B7eJbRn3iU04NQFsYGXWEbmLu4GtnXbu4exmiKhw2KBdLVjaB3zLqGyr0TCtL/FXUKD7vJuYJ93D+MEJpl9zwiQti+MhuPp4cxIqOx6jT4SYtgYuMyl8bB5MvN7GAntmZHQgFMXrIk8MgJrxMCbxMNYjITjMCOhsi1EQl/jjoHXjYdxApPMvjUESNsXRsPx9HBmJFR2vYaOhMfHx/i///4Xs9ns+s8DGzFwmVfFw+YJ2O9hJLRnRkIDTl2wJuZIxz7+/Bmv//c/fP/+Ha9evsTp6em1nsdSDFwVD182xMNYjITjMCOhsrUi4cnJCd68fo0Y32azGV7+8Ue4Chl3DFzmeYiHx1k8jJOuZPY941cUqRkNx9PDmZFQ2fUaIhIeHx+nySp/rfghdVE8hO0YuMzn5+d49/YtLi4u/LZ0DCPhGMxIaMCpC9ZEG+nAMQZeXFw0vtbZ2VlRPBxDDFwVDy8vL+NDAKhED/84/mIktGRGQmUPGQnrMXDZa62Lh2OKgcvb0w+fOAFLZt8zfkWRmtFwPD2cGQmVXa++IuGyGLjMjfEQ44yBTU7b0nZGwjGYkdCAUxesiTNyTa+Lgctcj4eHBwejjYFXjPQQACrRwz+OvxgJLZmRUNl9R8LSGLguHr579w7vRh4DGQnHb/7EUSNeu/8abhsDl3k+n+Pw4KDoPMfitM3vgPgRnrWh408cNWj+xFETDpLYOZnD9vSmKXScrC4vL68+J32lF5oiYV3VrbSGGQmV3UckvGkM3AQDfvg0RQ/fM5IWW0ZCO2YkNOK1+wvdVQz80Z22+R1gJByHGQlNOOiGkZAxsNz1XmAkHIcZCZXdVSRkDGxnwA+fpujhe0bSYstIaMeMhEa8dv8KMwbeoL39DjASjsOMhCYcdI1IyBh4Pdd7gZFwHGYkVPZNIuG3r18ZA69pwA+fpujhe0bSYstIaMeMhEa8dn+D/44/jM7Q9zEWp21+BxgJx2FGQhMOahsJs6eyErXG4novMBKOw4yEyr5JJERq4dVfSze1px8+TdEjtSsjoTkzEhrx2v1LbOHcx+i0ze8AI+E4zEhowkGMhIO53guMhOMwI6GyGQl1DPjh0xQ9UrsyEpozI6ERr92/xBbOfYxO2/wOMBKOw4yEJhzESDiY673ASDgOMxIqm5FQx4AfPk3RI7UrI6E5MxIa8dr9S2zh3MfotM3vACPhOMxIaMJBLSPhnTt38OTJP1KfIE7g9FpvbW1VeoGRcByeLmYwgYirTDjxsKqRYgnC8auc5rjwNF07XtHFS/mx+UokDBNVdH07Mt+9exd37txJz5E/H11gZAtf7IfQ5vnCjYpDH+bH04OZkdCI1+6ne7ELZiQchxkJTTgoXUVlRrwqa7hLSN/Yi+mpuni4BlW30hrmXUJlX4mEaX/9rpafqOluLfALgmT2PeNXaKkZDcfTw5mR0IjX7qd7sQuO0UMWBzASGjQjoQFvbW1hPp83RsK//voLd+7eRXrTGIhRP5JjL8ToMZ/PcXp6mrYjEypbaQ3zLqGynXO4c/euf5M4lyaq6I8fP2J2doa7d+6gcoXA6rwuLy5w+OkTzi8ugGzhzj2dTsG7hHpmJDTg3Z2dpftFBJ+PjvD56Ais7ksqchXXI+HOrVu4e+8eI6GiJy7rL+dcumoRF6aGuoG0wpQ4dvniw8xu7X+Fcxup9+7f93+QMTZw/D7p3u3SL7fWv+zvYzKZhK/LFhZ6MPMuobJdiBkPHz5MK7ffTw9hgQAS70Yt9/b2Nvb39/3jtJ0e2u7D0cniL/6LhInAhc5aFQklXUGtdHy+Nl/Txj9ACfznJ69fv8aXkxPt09mokopcox0c/vWvf2Hvwf204qeoQg/rj0cncakJVy8CJ+EOioSVxrmKIS3vEsavATq3r+aBNio7P2m9efMGJ8fHaLpjSHfvdTWZTPD06VPshytglm4xEio7/0OMW1tbePHiBZ4/f47d3V1ox6VN8KoYuLe3h//8/jv2Hz1C7Lmuog19PVfuEjrnO8q/iVzYWv1dgHT8YoVa7rgo5Stalxa3OKPKijkWI76B/ObJZIL9R49w/8EDnBwf4+TLF1xeXIA1UDmH27dv4+6dO7j388+LqyoLY4WG+3B0LC7f6i+z0swk2deF9Sl8lgX4P7e12n2Xfy0/A6dJd0R2+aXildamB7GR06DX23/onu9YU/HQOB2tdfyAPP8AvkOP/XMF4RtG1/0OT7pjV+4SAv4NlP/Zh3q1HRd9VzxfCVeGY3OccLXft5tt/TOgyzzxiL8An+TET2ci/g1WMRbHl7jvX/l0O0bHdqf13HZM02pmJFQuRkJl9zs86Y7NSKhsRkIL1j8DusyMhNqO7U7rue2YptXMSKhcjITK7nd40h2bkVDZjIQWrH8GdJkZCbUd253Wc9sxTauZkVC5GAmV3e/wpDs2I6GyGQktWP8M6DIzEmo7tjut57ZjmlYzI6FyMRIqu9/hSXdsRkJlMxJasP4Z0GVmJNR2bHdaz23HNK1mRkLlYiRUdr/Dk+7YjITKZiS0YP0zoMvMSKjt2O60ntuOaVrNjITKxUio7H6HJ92xGQmVzUhowfpnQJeZkVDbsd1pPbcd07SaGQmVi5FQ2f0OT7pjMxIqm5HQgvXPgC4zI6G2Y7vTem47pmk1MxIqFyOhsvsdnnTHZiRUNiOhBeufAV1mRkJtx3an9dx2TNNqZiRULkZCZfc7POmOzUiobEZCC9Y/A7rMjITaju1O67ntmKbVzEioXIyEyu53eNIdm5FQ2YyEFqx/BnSZGQm1Hdud1nPbMU2rmZFQuRgJld3v8KQ7NiOhshkJLVj/DOgyMxJqO7Y7ree2Y5pWMyOhcjESKrvf4Ul3bEZCZTMSWrD+GdBlZiTUdmx3Ws9txzStZkZC5WIkVHa/w5Pu2IyEymYktGD9M6DLzEio7djutJ7bjmlazYyEysVIqOx+hyfdsRkJlc1IaMH6Z0CXmZFQ27HdaT23HdO0mhkJlYuRUNn9Dk+6YzMSKpuR0IL1z4AuMyOhtmO703puO6ZpNTMSKhcjobL7HZ50x2YkVDYjoQXrnwFdZkZCbcd2p/XcdkzTamYkVC5GQmX3Ozzpjs1IqGxGQgvWPwO6zIyE2o7tTuu57Zim1cxIqFyMhMrud3jSHZuRUNmMhBasfwZ0mRkJtR3bndZz2zFNq5mRULkYCZXd7/CkOzYjobIZCS1Y/wzoMjMSaju2O63ntmOaVjMjoXIxEiq73+FJd2xGQmUzElqw/hnQZWYk1HZsd1rPbcc0rWZGQuViJFR2v8OT7tiMhMpmJLRg/TOgy8xIqO3Y7rSe245pWs2MhMrFSKjsfocn3bEZCZXNSGjB+mdAl5mRUNux3Wk9tx3TtJoZCZWLkVDZ/Q5PumMzEiqbkdCC9c+ALjMjobZju9N6bjumaTUzEioXI6Gy+x2edMdmJFQ2I6EF658BXWZGQm3Hdqf13HZM02pmJFQuRkJl9zs86Y7NSKhsRkIL1j8DusyMhNqO7U7rue2YptXMSKhcjITK7nd40h2bkVDZjIQWrH8GdJkZCbUd253Wc9sxTauZkVC5GAmV3e/wpDs2I6GyGQktWP8M6DIzEmo7tjut57ZjmlYzI6FyMRIqu9/hSXdsRkJlMxJasP4Z0GVmJNR2bHdaz23HNK1mRkLlYiRUdr/Dk+7YjITKZiS0YP0zoMvMSKjt2O60ntuOaVrNjITKxUio7H6HJ92xGQmVzUhowfpnQJeZkVDbsd1pPbcd07SaGQmVi5FQ2f0OT7pjMxIqm5HQgvXPgC4zI6G2Y7vTem47pmk1MxIqFyOhsvsdnnTHZiRUNiOhBeufAV1mRkJtx3an9dx2TNNqZiRULkZCZfc7POmOzUiobEZCC9Y/A7rMjITaju1O67ntmKbVzEioXIyEyu53eNIdm5FQ2YyEFqx/BnSZGQm1Hdud1nPbMU2rmZFQuRgJld3v8KQ79v8DZyrq5nU4j5IAAAAASUVORK5CYII="},403:function(e,t,n){"use strict";var o=n(55),a=n(437),r=n(1);t.a=function(e){Object(o.a)(),e.width;var t=e.height,n=e.src,i=e.padding;return Object(r.jsx)("div",{children:Object(r.jsx)("img",{src:n||a.a,style:{height:t||"70px",display:"inline-block",verticalAlign:"middle",padding:i||"0px 20px"}})})}},404:function(e,t,n){"use strict";var o=n(915),a=n(123),r=n(925),i=n(13),l=n(1);t.a=function(){return Object(l.jsxs)(o.a,{direction:"row",justifyContent:"space-between",children:[Object(l.jsx)("div",{}),Object(l.jsxs)(a.a,{variant:"subtitle2",component:r.a,href:i.a.appLink,target:"_blank",underline:"hover",style:{color:"#707070",textAlign:"center"},children:["Copyright \xa9 ",i.a.releasedYear," ",i.a.companyName]})]})}},405:function(e,t,n){"use strict";n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"h",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return j}));var o=n(11),a=n(23),r=n.n(a),i=n(15),l=n.n(i),d=n(13),c=n(5),s=n(539),u={cards:[],cardTypes:[{label:"Hourly",TH:"\u0e23\u0e32\u0e22\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",value:"HOURLY",defaultValue:1,type:"hours"},{label:"Daily",TH:"\u0e23\u0e32\u0e22\u0e27\u0e31\u0e19",value:"DAILY",defaultValue:1,type:"days"},{label:"Weekly",TH:"\u0e23\u0e32\u0e22\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",value:"WEEKLY",defaultValue:1,type:"weeks"},{label:"Monthly",TH:"\u0e23\u0e32\u0e22\u0e40\u0e14\u0e37\u0e2d\u0e19",value:"MONTHLY",defaultValue:1,type:"months"},{label:"Yearly",TH:"\u0e23\u0e32\u0e22\u0e1b\u0e35",value:"YEARLY",defaultValue:1,type:"years"}],cardStatusList:[{label:"Todo",TH:"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e17\u0e33",value:"TODO",hoverColor:"rgb(3 169 244 / 69%)",lightColor:"rgb(3 169 244 / 40%)",darkColor:"#03a9f4"},{label:"Doing",TH:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e2d\u0e22\u0e39\u0e48",value:"DOING",disabled:!0,hoverColor:"rgb(3 169 244 / 69%)",lightColor:"rgb(3 169 244 / 40%)",darkColor:"#03a9f4"},{label:"Overdue",TH:"\u0e40\u0e25\u0e22\u0e01\u0e33\u0e2b\u0e19\u0e14",value:"OVERDUE",disabled:!0,hoverColor:"rgb(255 229 127 / 74%)",lightColor:"rgb(255 229 127 / 40%)",darkColor:"#ffe57f"},{label:"Done",TH:"\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e49\u0e27",value:"DONE",isForWorker:!0,hoverColor:"rgb(0 230 118 / 72%)",lightColor:"rgb(0 230 118 / 40%)",darkColor:"#00e676"},{label:"Defect",TH:"\u0e1e\u0e1a\u0e1b\u0e31\u0e0d\u0e2b\u0e32",value:"DEFECT",isForWorker:!0,hoverColor:"rgb(244 67 54 / 75%)",lightColor:"rgb(244 67 54 / 40%)",darkColor:"#f44336"}],status:null},p=function(e,t){return function(n){var o=s.stringifyUrl({url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.cb),query:e});return r()({method:"get",url:o}).then((function(e){var o=e.data;n({type:c.Rb,payload:o.data}),t&&t(o.data)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},v=function(e){return function(t){return r.a.get("".concat(d.a[d.a.enviroment].server_endpoint).concat(c.mb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="TASK",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.cardCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.cardCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||("files"===t?e[t].forEach((function(e,t){o.append("file".concat("_",t),e)})):o.append(t,e[t]))})),r()({method:"post",url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.h),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){return r()({method:"post",url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.i),data:e,headers:{"Content-Type":"application/json"}}).then((function(e){var o=e.data;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},h=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||("files"===t?e[t].forEach((function(e,t){o.append("file".concat("_",t),e)})):o.append(t,e[t]))})),r()({method:"put",url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.lc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},f=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.B),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},j=function(e,t){return function(n){return r()({method:"post",url:"".concat(d.a[d.a.enviroment].server_endpoint).concat(c.C),data:e,headers:{"Content-Type":"application/json"}}).then((function(e){var o=e.data;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,l;n({type:c.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.c=function(){var e,t,n,a,r,i,d,s,p,v,m,b,h,f,j,g,x,O,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,C=arguments.length>1?arguments[1]:void 0,I=C.payload;switch(C.type){case c.Sb:return Object(o.a)(Object(o.a)({},y),{},{status:I});case c.Rb:return Object(o.a)(Object(o.a)({},y),{},{cards:I});case c.r:return f=l.a.extend({},y),j=I,(null===(e=f)||void 0===e||null===(t=e.cards)||void 0===t?void 0:t.find((function(e){return e.cardId===j.cardId})))?y:((O=l.a.clone(null===(n=f)||void 0===n?void 0:n.cards)).unshift(j),Object(o.a)(Object(o.a)({},y),{},{cards:O,status:"UPDATE_TASK"}));case c.s:return f=l.a.extend({},y),g=I,O=l.a.clone(null===(a=f)||void 0===a?void 0:a.cards),null===(r=g)||void 0===r||r.forEach((function(e){var t,n;(null===(t=f)||void 0===t||null===(n=t.cards)||void 0===n?void 0:n.find((function(t){return t.cardId===e.cardId})))||O.unshift(e)})),Object(o.a)(Object(o.a)({},y),{},{cards:O,status:"UPDATE_TASK"});case c.xc:return f=l.a.extend({},y),j=I,(null===(i=f)||void 0===i||null===(d=i.cards)||void 0===d?void 0:d.find((function(e){return e.cardId===j.cardId})))?(x=l.a.findIndex(null===(s=f)||void 0===s?void 0:s.cards,(function(e){return e.cardId===j.cardId})),(O=l.a.clone(null===(p=f)||void 0===p?void 0:p.cards)).splice(x,1),O.unshift(j),Object(o.a)(Object(o.a)({},y),{},{cards:O,status:"UPDATE_TASK"})):y;case c.S:return f=l.a.extend({},y),j=I,(null===(v=f)||void 0===v||null===(m=v.cards)||void 0===m?void 0:m.find((function(e){return e.cardId===j.cardId})))?(x=l.a.findIndex(null===(b=f)||void 0===b?void 0:b.cards,(function(e){return e.cardId===j.cardId})),(O=l.a.clone(null===(h=f)||void 0===h?void 0:h.cards)).splice(x,1),Object(o.a)(Object(o.a)({},y),{},{cards:O,status:"UPDATE_TASK"})):y;default:return y}}},406:function(e,t,n){e.exports={paper:"#fff",primaryLight:"#fff5ee",primary200:"#fac898",primaryMain:"#e57c23",primaryDark:"#e54818",primary800:"#e8aa42",secondaryLight:"#f1f2f3",secondary200:"#e3e6e7",secondaryMain:"#a2a2a2",secondaryDark:"#555",secondary800:"#a2a2a2",successLight:"#b9f6ca",success200:"#87cbb9",successMain:"#3d8361",successDark:"#1c6758",errorLight:"#ef9a9a",errorMain:"#f44336",errorDark:"#c62828",orangeLight:"#fbe9e7",orangeMain:"#ffab91",orangeDark:"#d84315",warningLight:"#fff8e1",warningMain:"#ffe57f",warningDark:"#ffc107",grey50:"#fafafa",grey100:"#f5f5f5",grey200:"#eee",grey300:"#e0e0e0",grey500:"#9e9e9e",grey600:"#757575",grey700:"#616161",grey900:"#212121",darkPaper:"#111936",darkBackground:"#1a223f",darkLevel1:"#29314f",darkLevel2:"#212946",darkTextTitle:"#eee",darkTextPrimary:"#d9d9d9",darkTextSecondary:"#8492c4",darkPrimaryLight:"#e3f2fd",darkPrimaryMain:"#2196f3",darkPrimaryDark:"#1e88e5",darkPrimary200:"#90caf9",darkPrimary800:"#1565c0",darkSecondaryLight:"#f7ffe5",darkSecondaryMain:"#c3edc0",darkSecondaryDark:"#50624e",darkSecondary200:"#a0c48d",darkSecondary800:"#70896d"}},407:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return m}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={floors:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.gb).concat(o)).then((function(e){var o=e.data;n({type:l.Wb,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.pb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="FLOOR",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.floorCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.floorCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.l),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.oc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.H),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.Wb?Object(o.a)(Object(o.a)({},e),{},{floors:n}):e}},413:function(e,t,n){"use strict";var o,a=n(11),r=n(25),i=n(39),l=n(1010),d=n(924),c=n(1041),s=n(1042),u=n(1038),p=n(1043),v=n(1030),m=n(1048),b=n(565),h=n(123),f=n(329),j=n(927),g=n(1034),x=n(1051),O=n(1026),y=n(1036),C=n(1033),I=n(1023),E=n(171),w=n(83),T=n(69),N=n(9),D=n(98),A=n(190),R=n.n(A),k=n(53),S=n(15),z=n.n(S),P=n(56),M=n.n(P),L=n(1011),B=n(323),q=n.n(B),F=n(324),G=n.n(F),V=n(1027),_=n(0),U=n.n(_),W=n(1013),Y=n(5),J=n(33),H=n(34),Z=n(49),Q=n(50),X=n(70),K=n(256),$=n(333),ee=n(1),te=K.a.small(o||(o=Object(X.a)(["\nflex-grow: 0;\nmargin: 0;\nbackground-color: ",";\nborder-radius: ","px;\nfont-weight: normal;\npadding: ","px;\nfont-size: ","px;\n"])),(function(e){return e.colors.soft}),$.a,$.b/2,(function(e){return e.size})),ne=function(e){Object(Z.a)(n,e);var t=Object(Q.a)(n);function n(){return Object(J.a)(this,n),t.apply(this,arguments)}return Object(H.a)(n,[{key:"render",value:function(){var e=this.props,t=e.colors,n=e.name,o=e.size;return Object(ee.jsx)(te,{colors:t,size:o,children:n})}}]),n}(U.a.PureComponent),oe=n(81),ae=n(258),re=n.n(ae),ie=Object(N.a)("input")({display:"none"}),le=Object(l.a)();t.a=function(e){var t,n,o,l,N=e.fromScreen,A=e.formType,S=e.formData,P=Object(k.c)(),B=Object(k.d)((function(e){return e})),F=Object(E.b)({initialValues:{requestId:"",updatedBy:(null===B||void 0===B||null===(t=B.user)||void 0===t||null===(n=t.authUser)||void 0===n?void 0:n.username)||"",password:"",status:null===B||void 0===B||null===(o=B.request)||void 0===o?void 0:o.requestStatusList.find((function(e){return"OPEN"===e.value})),col:null===B||void 0===B||null===(l=B.request)||void 0===l?void 0:l.requestStatusList.find((function(e){return"OPEN"===e.value})),departmentInCharge:null,personsInCharge:[],comment:[],planning:[],completionDate:null,reason:"",result:"",resultImages:[],submit:null},onSubmit:function(e){console.log(JSON.stringify(e,null,2))}});Object(_.useEffect)((function(){var t,n,o,a,r,i,l;"REQUEST_ON_BOARD"===e.fromScreen&&"UPDATE"===A&&S&&(console.log("last formData",S),F.setValues({requestId:null===S||void 0===S?void 0:S.requestId,updatedBy:(null===B||void 0===B||null===(t=B.user)||void 0===t||null===(n=t.authUser)||void 0===n?void 0:n.username)||"",password:"",status:null===S||void 0===S||null===(o=S.status)||void 0===o?void 0:o.value,col:null===S||void 0===S||null===(a=S.col)||void 0===a?void 0:a.value,departmentInCharge:null!==S&&void 0!==S&&S.departmentInCharge&&""!==(null===S||void 0===S?void 0:S.departmentInCharge)?null===S||void 0===S?void 0:S.departmentInCharge:null,personsInCharge:JSON.parse(null===S||void 0===S?void 0:S.personsInCharge),comment:JSON.parse(null===S||void 0===S?void 0:S.comment),planning:null===(r=JSON.parse(null===S||void 0===S?void 0:S.planning))||void 0===r?void 0:r.map((function(e){return z.a.extend({},e,{startEventDate:null!==e&&void 0!==e&&e.startEventDate?M()(null===e||void 0===e?void 0:e.startEventDate):null,endEventDate:null!==e&&void 0!==e&&e.endEventDate?M()(null===e||void 0===e?void 0:e.endEventDate):null})})),completionDate:null!==S&&void 0!==S&&S.completionDate&&""!==(null===S||void 0===S?void 0:S.completionDate)?M()(null===S||void 0===S?void 0:S.completionDate):null,reason:(null===S||void 0===S?void 0:S.reason)||"",result:(null===S||void 0===S?void 0:S.result)||"",resultImages:""==(null===S||void 0===S?void 0:S.resultImages)||null==(null===S||void 0===S?void 0:S.resultImages)?[]:null===S||void 0===S||null===(i=S.resultImages)||void 0===i?void 0:i.split(","),isChangeResultImages:!1,oldResultImages:""==(null===S||void 0===S?void 0:S.resultImages)||null==(null===S||void 0===S?void 0:S.resultImages)?[]:null===S||void 0===S||null===(l=S.resultImages)||void 0===l?void 0:l.split(","),submit:null}))}),[S]);var J=function(e,t){if(!e)return"";if(!t)return"";var n=t.isSame(e,"day"),o=t.isBefore(e,"day"),a=t.from(e,!0);return n?"On plan":o?"Advance ".concat(a):"Delay ".concat(a)},H=function(e,t){var n=z.a.clone(e);return n=n.sort((function(e,n){return n[t]>e[t]?-1:1}))},Z=function(){var t=e.fromScreen,n=e.formType,o=e.formData,a={requestNo:!0,priorityNo:!0,status:!0,col:!0,informerTypeLabel:!0,informerType:!0,createdBy:!0,areaLabel:!0,projectCode:!0,areaType:!0,areaDescription:!0,problemLabel:!0,problemCode:!0,description:!0,files:!0,departmentInCharge:!0,personsInCharge:!0,comment:!0,planning:!0,completionDate:!0,reason:!0,result:!0,resultImages:!0,updatedBy:!0,password:!0,cancel:!0,save:!0,submit:!0,reject:!0,delete:!0,buttons:!0};if("REQUEST"===t&&(a.updatedBy=!1,a.password=!1,"CREATE"===n&&(a.requestNo=!1,a.priorityNo=!1,a.status=!1,a.col=!1,a.departmentInCharge=!1,a.personsInCharge=!1,a.comment=!1,a.planning=!1,a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1)),"REQUEST_ON_BOARD"===t){var r,i,l,d,c,s,u,p,v,m,b,h,f,j,g,x,O,y,C,I,E,w,T,N,D,A,R,k,S,z,P,M,L,q,F,G,V,_,U,W,Y,J,H,Z,Q,X,K,$,ee,te,ne,oe,ae,re,ie,le,de,ce,se,ue,pe,ve,me,be,he;if("OPEN"===(null===o||void 0===o||null===(r=o.status)||void 0===r?void 0:r.value))a.planning=!1,a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,"ADMIN"!==(null===B||void 0===B||null===(h=B.account)||void 0===h||null===(f=h.account)||void 0===f?void 0:f.position)&&"MANAGER"!==(null===B||void 0===B||null===(j=B.account)||void 0===j||null===(g=j.account)||void 0===g?void 0:g.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(x=B.account)||void 0===x||null===(O=x.account)||void 0===O?void 0:O.position)&&(a.password=!1,a.buttons=!1);if("WAITING"===(null===o||void 0===o||null===(i=o.status)||void 0===i?void 0:i.value))a.planning=!1,a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,"ADMIN"!==(null===B||void 0===B||null===(y=B.account)||void 0===y||null===(C=y.account)||void 0===C?void 0:C.position)&&"MANAGER"!==(null===B||void 0===B||null===(I=B.account)||void 0===I||null===(E=I.account)||void 0===E?void 0:E.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(w=B.account)||void 0===w||null===(T=w.account)||void 0===T?void 0:T.position)&&(a.password=!1,a.buttons=!1);if("APPROVED"===(null===o||void 0===o||null===(l=o.status)||void 0===l?void 0:l.value))a.planning=!1,a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,a.password=!1,"ADMIN"!==(null===B||void 0===B||null===(N=B.account)||void 0===N||null===(D=N.account)||void 0===D?void 0:D.position)&&"MANAGER"!==(null===B||void 0===B||null===(A=B.account)||void 0===A||null===(R=A.account)||void 0===R?void 0:R.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(k=B.account)||void 0===k||null===(S=k.account)||void 0===S?void 0:S.position)?(a.password=!1,a.buttons=!1):a.submit=!1;if("TODO"===(null===o||void 0===o||null===(d=o.status)||void 0===d?void 0:d.value))a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,"ADMIN"===(null===B||void 0===B||null===(z=B.account)||void 0===z||null===(P=z.account)||void 0===P?void 0:P.position)||"MANAGER"===(null===B||void 0===B||null===(M=B.account)||void 0===M||null===(L=M.account)||void 0===L?void 0:L.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(q=B.account)||void 0===q||null===(F=q.account)||void 0===F?void 0:F.position)||(a.password=!1,a.buttons=!1);if("PLANNING"===(null===o||void 0===o||null===(c=o.status)||void 0===c?void 0:c.value))a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,"ADMIN"===(null===B||void 0===B||null===(G=B.account)||void 0===G||null===(V=G.account)||void 0===V?void 0:V.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(_=B.account)||void 0===_||null===(U=_.account)||void 0===U?void 0:U.position)?(a.password=!1,a.submit=!0):"MANAGER"===(null===B||void 0===B||null===(W=B.account)||void 0===W||null===(Y=W.account)||void 0===Y?void 0:Y.position)?(a.buttons=!0,a.password=!1,a.submit=!1):(a.password=!1,a.buttons=!1);if("DOING"===(null===o||void 0===o||null===(s=o.status)||void 0===s?void 0:s.value))"ADMIN"===(null===B||void 0===B||null===(J=B.account)||void 0===J||null===(H=J.account)||void 0===H?void 0:H.position)||"MANAGER"===(null===B||void 0===B||null===(Z=B.account)||void 0===Z||null===(Q=Z.account)||void 0===Q?void 0:Q.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(X=B.account)||void 0===X||null===(K=X.account)||void 0===K?void 0:K.position)||(a.password=!1,a.buttons=!1);if("RESOLVED"===(null===o||void 0===o||null===(u=o.status)||void 0===u?void 0:u.value))a.buttons=!1,a.password=!1,"ADMIN"===(null===B||void 0===B||null===($=B.account)||void 0===$||null===(ee=$.account)||void 0===ee?void 0:ee.position)||"MANAGER"===(null===B||void 0===B||null===(te=B.account)||void 0===te||null===(ne=te.account)||void 0===ne?void 0:ne.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(oe=B.account)||void 0===oe||null===(ae=oe.account)||void 0===ae?void 0:ae.position)||(a.password=!1,a.buttons=!1);if("REJECTED"===(null===o||void 0===o||null===(p=o.status)||void 0===p?void 0:p.value))a.buttons=!1,a.password=!1,"ADMIN"===(null===B||void 0===B||null===(re=B.account)||void 0===re||null===(ie=re.account)||void 0===ie?void 0:ie.position)||"MANAGER"===(null===B||void 0===B||null===(le=B.account)||void 0===le||null===(de=le.account)||void 0===de?void 0:de.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(ce=B.account)||void 0===ce||null===(se=ce.account)||void 0===se?void 0:se.position)||(a.password=!1,a.buttons=!1);if("DONE"===(null===o||void 0===o||null===(v=o.status)||void 0===v?void 0:v.value)&&(a.buttons=!1,a.password=!1),"DONE"===(null===o||void 0===o||null===(m=o.col)||void 0===m?void 0:m.value)||"CANCEL"===(null===o||void 0===o||null===(b=o.col)||void 0===b?void 0:b.value))a.buttons=!0,a.delete=!0,a.reject=!1,a.submit=!1,a.save=!1,"ADMIN"===(null===B||void 0===B||null===(ue=B.account)||void 0===ue||null===(pe=ue.account)||void 0===pe?void 0:pe.position)||"MANAGER"===(null===B||void 0===B||null===(ve=B.account)||void 0===ve||null===(me=ve.account)||void 0===me?void 0:me.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(be=B.account)||void 0===be||null===(he=be.account)||void 0===he?void 0:he.position)||(a.password=!1,a.buttons=!1);else a.delete=!1;"VIEW_DETAILS"===n&&(a.password=!1,a.buttons=!1)}return"SCAN_QR"===t&&(a.requestNo=!1,a.priorityNo=!1,a.status=!1,a.col=!1,a.departmentInCharge=!1,a.personsInCharge=!1,a.comment=!1,a.planning=!1,a.completionDate=!1,a.reason=!1,a.result=!1,a.resultImages=!1,a.updatedBy=!1,a.password=!1,a.cancel=!1),a},Q=function(t){var n=e.fromScreen,o=e.formType,a=e.formData,r={requestNo:!1,priorityNo:!1,status:!1,col:!1,informerTypeLabel:!1,informerType:!1,createdBy:!1,areaLabel:!1,projectCode:!1,areaType:!1,areaDescription:!1,problemLabel:!1,problemCode:!1,description:!1,files:!1,departmentInCharge:!1,personsInCharge:!1,comment:!1,planning:!1,completionDate:!1,reason:!1,result:!1,resultImages:!1,updatedBy:!1,password:!1,cancel:!1,save:!1,submit:!1,reject:!1,delete:!1};if("REQUEST"===n&&"UPDATE"==o&&(r.requestNo=!0,r.informerType=!0,r.createdBy=!0,r.projectCode=!0,r.areaType=!0,r.areaDescription=!0,r.problemCode=!0,r.description=!0,r.files=!0),"REQUEST_ON_BOARD"===n){var i,l,d,c,s,u,p,v,m,b,h,f,j,g,x,O,y,C,I,E,w,T,N,D,A,R,k,S,z,P,M,L,q,F,G,V,_,U,W,Y,J,H,Z,Q,X,K,$,ee,te,ne,oe,ae,re,ie,le,de,ce;if("OPEN"===(null===a||void 0===a||null===(i=a.status)||void 0===i?void 0:i.value))"ADMIN"!==(null===B||void 0===B||null===(b=B.account)||void 0===b||null===(h=b.account)||void 0===h?void 0:h.position)&&"MANAGER"!==(null===B||void 0===B||null===(f=B.account)||void 0===f||null===(j=f.account)||void 0===j?void 0:j.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(g=B.account)||void 0===g||null===(x=g.account)||void 0===x?void 0:x.position)&&Object.keys(r).forEach((function(e){r[e]=!0}));if("WAITING"===(null===a||void 0===a||null===(l=a.status)||void 0===l?void 0:l.value))"ADMIN"!==(null===B||void 0===B||null===(O=B.account)||void 0===O||null===(y=O.account)||void 0===y?void 0:y.position)&&"MANAGER"!==(null===B||void 0===B||null===(C=B.account)||void 0===C||null===(I=C.account)||void 0===I?void 0:I.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(E=B.account)||void 0===E||null===(w=E.account)||void 0===w?void 0:w.position)&&Object.keys(r).forEach((function(e){r[e]=!0}));if("APPROVED"===(null===a||void 0===a||null===(d=a.status)||void 0===d?void 0:d.value))r.departmentInCharge=!0,r.personsInCharge=!0,"ADMIN"!==(null===B||void 0===B||null===(T=B.account)||void 0===T||null===(N=T.account)||void 0===N?void 0:N.position)&&"MANAGER"!==(null===B||void 0===B||null===(D=B.account)||void 0===D||null===(A=D.account)||void 0===A?void 0:A.position)&&"GENERAL_MANAGER"!==(null===B||void 0===B||null===(R=B.account)||void 0===R||null===(k=R.account)||void 0===k?void 0:k.position)&&Object.keys(r).forEach((function(e){r[e]=!0}));if("TODO"===(null===a||void 0===a||null===(c=a.status)||void 0===c?void 0:c.value))r.departmentInCharge=!0,r.personsInCharge=!0,"ADMIN"===(null===B||void 0===B||null===(S=B.account)||void 0===S||null===(z=S.account)||void 0===z?void 0:z.position)||"MANAGER"===(null===B||void 0===B||null===(P=B.account)||void 0===P||null===(M=P.account)||void 0===M?void 0:M.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(L=B.account)||void 0===L||null===(q=L.account)||void 0===q?void 0:q.position)||Object.keys(r).forEach((function(e){r[e]=!0}));if("PLANNING"===(null===a||void 0===a||null===(s=a.status)||void 0===s?void 0:s.value))r.departmentInCharge=!0,r.personsInCharge=!0,"ADMIN"===(null===B||void 0===B||null===(F=B.account)||void 0===F||null===(G=F.account)||void 0===G?void 0:G.position)||"MANAGER"===(null===B||void 0===B||null===(V=B.account)||void 0===V||null===(_=V.account)||void 0===_?void 0:_.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(U=B.account)||void 0===U||null===(W=U.account)||void 0===W?void 0:W.position)||Object.keys(r).forEach((function(e){r[e]=!0}));if("DOING"===(null===a||void 0===a||null===(u=a.status)||void 0===u?void 0:u.value))r.departmentInCharge=!0,r.personsInCharge=!0,r.planning=!0,"ADMIN"===(null===B||void 0===B||null===(Y=B.account)||void 0===Y||null===(J=Y.account)||void 0===J?void 0:J.position)||"MANAGER"===(null===B||void 0===B||null===(H=B.account)||void 0===H||null===(Z=H.account)||void 0===Z?void 0:Z.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(Q=B.account)||void 0===Q||null===(X=Q.account)||void 0===X?void 0:X.position)||Object.keys(r).forEach((function(e){r[e]=!0}));if("RESOLVED"===(null===a||void 0===a||null===(p=a.status)||void 0===p?void 0:p.value))r.departmentInCharge=!0,r.personsInCharge=!0,r.planning=!0,r.completionDate=!0,r.reason=!0,r.result=!0,r.resultImages=!0,r.comment=!0,r.buttons=!0,"ADMIN"===(null===B||void 0===B||null===(K=B.account)||void 0===K||null===($=K.account)||void 0===$?void 0:$.position)||"MANAGER"===(null===B||void 0===B||null===(ee=B.account)||void 0===ee||null===(te=ee.account)||void 0===te?void 0:te.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(ne=B.account)||void 0===ne||null===(oe=ne.account)||void 0===oe?void 0:oe.position)||Object.keys(r).forEach((function(e){r[e]=!0}));if("REJECTED"===(null===a||void 0===a||null===(v=a.status)||void 0===v?void 0:v.value))r.departmentInCharge=!0,r.personsInCharge=!0,r.planning=!0,r.completionDate=!0,r.reason=!0,r.result=!0,r.resultImages=!0,r.comment=!0,r.buttons=!0,"ADMIN"===(null===B||void 0===B||null===(ae=B.account)||void 0===ae||null===(re=ae.account)||void 0===re?void 0:re.position)||"MANAGER"===(null===B||void 0===B||null===(ie=B.account)||void 0===ie||null===(le=ie.account)||void 0===le?void 0:le.position)||"GENERAL_MANAGER"===(null===B||void 0===B||null===(de=B.account)||void 0===de||null===(ce=de.account)||void 0===ce?void 0:ce.position)||Object.keys(r).forEach((function(e){r[e]=!0}));"DONE"===(null===a||void 0===a||null===(m=a.status)||void 0===m?void 0:m.value)&&(r.departmentInCharge=!0,r.personsInCharge=!0,r.planning=!0,r.completionDate=!0,r.reason=!0,r.result=!0,r.resultImages=!0,r.buttons=!0)}if("SCAN_QR"===n&&"CREATE"==o){var se,ue=(null===e||void 0===e||null===(se=e.area)||void 0===se?void 0:se.status)||"ACTIVE";r.projectCode="ALL"!==ue,r.problemCode=null===(null===t||void 0===t?void 0:t.informerType)||""===(null===t||void 0===t?void 0:t.informerType)}return"VIEW_DETAILS"==o&&Object.keys(r).forEach((function(e){r[e]=!0})),r},X=function(e){var t={requestNo:"Request No.",priorityNo:"Priority No.",status:"\u0e2a\u0e16\u0e32\u0e19\u0e30",col:"\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19",informerTypeLabel:"\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e1c\u0e39\u0e49\u0e41\u0e08\u0e49\u0e07",informerType:"\u0e41\u0e1c\u0e19\u0e01/\u0e17\u0e35\u0e21",createdBy:"\u0e0a\u0e37\u0e48\u0e2d\u0e1c\u0e39\u0e49\u0e41\u0e08\u0e49\u0e07",areaLabel:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48",project:"\u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23",areaType:"\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48",areaDescription:"\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48/\u0e1a\u0e23\u0e34\u0e40\u0e27\u0e13",problemLabel:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e1b\u0e31\u0e0d\u0e2b\u0e32 (Category)",problem:"\u0e1b\u0e31\u0e0d\u0e2b\u0e32",problemDesc:"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21",files:"\u0e41\u0e19\u0e1a\u0e23\u0e39\u0e1b\u0e1b\u0e31\u0e0d\u0e2b\u0e32",departmentInCharge:"\u0e2b\u0e19\u0e48\u0e27\u0e22\u0e07\u0e32\u0e19\u0e23\u0e31\u0e1a\u0e1c\u0e34\u0e14\u0e0a\u0e2d\u0e1a",personsInCharge:"\u0e1c\u0e39\u0e49\u0e23\u0e31\u0e1a\u0e1c\u0e34\u0e14\u0e0a\u0e2d\u0e1a",email:"Email",comment:"Comment",planning:"\u0e01\u0e32\u0e23\u0e27\u0e32\u0e07\u0e41\u0e1c\u0e19",eventTitle:"\u0e0a\u0e37\u0e48\u0e2d\u0e07\u0e32\u0e19",eventColor:"\u0e2a\u0e35",startEventDate:"\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e34\u0e48\u0e21",endEventDate:"\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e2a\u0e34\u0e49\u0e19\u0e2a\u0e38\u0e14",completionDate:"\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19",reason:"\u0e40\u0e2b\u0e15\u0e38\u0e1c\u0e25",result:"\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c",resultImages:"\u0e41\u0e19\u0e1a\u0e23\u0e39\u0e1b\u0e1c\u0e25\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19",updatedBy:"\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15\u0e42\u0e14\u0e22",password:"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19",cancel:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01",save:"\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01",submit:"\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25",reject:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01\u0e07\u0e32\u0e19",delete:"\u0e25\u0e1a\u0e2d\u0e2d\u0e01"};return"SCAN_QR"===e||"REQUEST_ON_BOARD"===e?t:{requestNo:"Request No.",priorityNo:"Priority No.",status:"Status",col:"In Process",informerTypeLabel:"Informer",informerType:"Informer Type",createdBy:"Created by",areaLabel:"Area",project:"Project",areaType:"Area Type",areaDescription:"Area Description",problemLabel:"Problem",problem:"Problem",problemDesc:"Problem Description",files:"Upload Problem Image",departmentInCharge:"Department in Charge",personsInCharge:"Persons in Charge",email:"Email",comment:"Comment",planning:"Planning",eventTitle:"Event Title",eventColor:"Event Color",startEventDate:"Start Date",endEventDate:"End Date",completionDate:"Completion Date",reason:"Reason",result:"Result",resultImages:"Upload Result Image",updatedBy:"Updated by",password:"Password",cancel:"Cancel",save:"Save",submit:"Submit",reject:"Reject",delete:"Delete"}},K=function(e,t){var n,o;return z.a.extend({},z.a.omit(t,[]),{status:null===e||void 0===e||null===(n=e.status)||void 0===n?void 0:n.value,col:null===e||void 0===e||null===(o=e.col)||void 0===o?void 0:o.value,personsInCharge:JSON.stringify(null===t||void 0===t?void 0:t.personsInCharge.filter((function(e){return e.email&&""!==e.email}))),comment:JSON.stringify(null===t||void 0===t?void 0:t.comment.filter((function(e){return e.message&&""!==e.message}))),planning:JSON.stringify(null===t||void 0===t?void 0:t.planning.filter((function(e){return e.eventTitle&&""!==e.eventTitle}))),completionDate:null!==t&&void 0!==t&&t.completionDate?M()(null===t||void 0===t?void 0:t.completionDate).format():null,resultImages:null!==t&&void 0!==t&&t.isChangeResultImages?null===t||void 0===t?void 0:t.resultImages:null,password:null===t||void 0===t?void 0:t.password})},$=function(e){var t=e.filter((function(e){return!e.isCC&&e.approvedAt})).sort((function(e,t){return e.approvedAt>t.approvedAt?-1:1}));return(null===t||void 0===t?void 0:t[0])||null},te=function(t,n){var o=e.validate,a=e.submit;if(o){var r,i,l=o(t,n),d=l.isValid,c=l.input;if(d)a&&a(c,{email:null===B||void 0===B||null===(r=B.user)||void 0===r||null===(i=r.authUser)||void 0===i?void 0:i.username,password:null===t||void 0===t?void 0:t.password},n);else P({type:Y.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e49\u0e04\u0e23\u0e1a\u0e16\u0e49\u0e27\u0e19"}})}else{var s,u;a&&a(t,{email:null===B||void 0===B||null===(s=B.user)||void 0===s||null===(u=s.authUser)||void 0===u?void 0:u.username,password:null===t||void 0===t?void 0:t.password},n)}},ae=function(e){return new Promise((function(t,n){console.log("[DEBUG] 1 file",e);try{if("image/heic"===e.type){var o=new FileReader;o.onload=function(n){var o=new Blob([new Uint8Array(n.target.result)],{type:e.type});console.log(1,o),re()({blob:o,toType:"image/jpeg",quality:.3}).then((function(n){console.log(2,n);var o=new File([n],e.name.replace(".heic",".jpeg"),{type:n.type});t(o)})).catch((function(e){console.log(e),t(null)}))},o.readAsArrayBuffer(e)}else"image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type?t(e):t(null)}catch(a){console.log(a),t(null)}}))};return"REQUEST_ON_BOARD"===e.fromScreen?function(){var t,n,o,l,d,s,v,g,y,I,E,w,T,k,P,_,Y,re,le,de,ce,se,ue,pe;if(!S)return null;var ve=e.setOnTab,me=H(JSON.parse(null===S||void 0===S?void 0:S.planning),"startEventDate"),be=H(JSON.parse(null===S||void 0===S?void 0:S.planning),"endEventDate"),he=me.length>0?M()(me[0].startEventDate).format("DD-MM-YYYY"):"-",fe=be.length>0?M()(be[be.length-1].endEventDate).format("DD-MM-YYYY"):"-",je=Z(F.values),ge=Q(F.values),xe=X(N),Oe=$(JSON.parse(null===S||void 0===S?void 0:S.personsInCharge));return Object(ee.jsxs)("form",{noValidate:!0,onSubmit:F.handleSubmit,children:[Object(ee.jsxs)("div",{style:{maxHeight:"300px",overflow:"auto"},children:[Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e2a\u0e16\u0e32\u0e19\u0e30 : "}),Object(ee.jsx)(ne,{colors:null===S||void 0===S||null===(t=S.status)||void 0===t?void 0:t.colors,name:null===S||void 0===S||null===(n=S.status)||void 0===n?void 0:n.name,size:12})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"Open aging : "}),Object(ee.jsx)("span",{children:"".concat(null!==S&&void 0!==S&&S.createdAt?M()(null===S||void 0===S?void 0:S.createdAt).fromNow():"-")})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"Approved aging : "}),Object(ee.jsx)("span",{children:"".concat(Oe?M()(null===Oe||void 0===Oe?void 0:Oe.approvedAt).fromNow():"-")})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23 : "}),Object(ee.jsx)("span",{children:"".concat(null===S||void 0===S||null===(o=S.project)||void 0===o?void 0:o.projectName)})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48 : "}),Object(ee.jsx)("span",{children:"".concat(null===S||void 0===S||null===(l=S.area)||void 0===l?void 0:l.areaName)})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48/\u0e1a\u0e23\u0e34\u0e40\u0e27\u0e13 : "}),Object(ee.jsx)("span",{children:"".concat(null!==S&&void 0!==S&&S.areaDescription?"".concat(null===S||void 0===S?void 0:S.areaDescription):"-")})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e1c\u0e39\u0e49\u0e41\u0e08\u0e49\u0e07 : "}),Object(ee.jsx)("span",{children:"".concat(null===S||void 0===S||null===(d=S.informerDepartment)||void 0===d?void 0:d.deptName," ").concat(null!==S&&void 0!==S&&S.createdBy?"(".concat(null===S||void 0===S?void 0:S.createdBy,")"):"")})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e1b\u0e31\u0e0d\u0e2b\u0e32 : "}),Object(ee.jsx)("span",{children:"".concat(null===S||void 0===S||null===(s=S.problem)||void 0===s?void 0:s.problemName)})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14 : "}),Object(ee.jsx)("span",{children:"".concat(null===S||void 0===S?void 0:S.description)})]}),Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e1b\u0e31\u0e0d\u0e2b\u0e32 : "}),null===S||void 0===S||null===(v=S.files)||void 0===v?void 0:v.split(",").map((function(e,t){var n="file_".concat(t,"_").concat(e);return Object(ee.jsx)("div",{id:e.name,style:{padding:"5px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(Object(D.a)(e),n),style:{width:"100%",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))})),!(null!==S&&void 0!==S&&S.files)&&"-"]}),Object(ee.jsx)("div",{style:{padding:"10px 0px"},children:Object(ee.jsx)(b.a,{})}),je.departmentInCharge&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.departmentInCharge," :")}),Object(ee.jsx)("div",{children:null===B||void 0===B||null===(g=B.dept)||void 0===g?void 0:g.departments.filter((function(e){return"REQUEST"===e.deptType&&"JURISTIC"!==e.deptCode&&"OTHERS"!==e.deptCode})).sort((function(e,t){return t.deptName>e.deptName?-1:1})).map((function(e,t){var n;return Object(ee.jsx)(C.a,{size:"small",label:e.deptName,color:(null===(n=F.values)||void 0===n?void 0:n.departmentInCharge)===e.deptCode?"primary":"default",style:{fontSize:"12px",marginRight:"5px",marginTop:"5px",marginBottom:"5px"},onClick:ge.departmentInCharge?null:function(){F.setFieldValue("departmentInCharge",e.deptCode)}},t)}))})]}),je.personsInCharge&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.personsInCharge," : ")}),null===(y=F.values)||void 0===y?void 0:y.personsInCharge.map((function(e,t){var n,o,a,r,i,l,d,s,v=JSON.parse(null===S||void 0===S?void 0:S.personsInCharge);return Object(ee.jsxs)(U.a.Fragment,{children:[Object(ee.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"5px"},children:[je.personsInCharge&&Object(ee.jsx)("div",{style:{padding:"5px",paddingRight:"10px"},children:"#".concat(t+1)}),je.personsInCharge&&Object(ee.jsx)("div",{style:{paddingRight:"5px",flex:"1"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(u.a,{size:"small",className:"xsmall",id:"outlined-personsInCharge-form-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),type:"text",name:"personsInCharge-".concat(t),value:null===(n=F.values.personsInCharge[t])||void 0===n?void 0:n.email,onBlur:F.handleBlur,onChange:function(e){var n=z.a.clone(F.values.personsInCharge),o=z.a.extend({},n[t],{email:e.target.value});n[t]=o,F.setFieldValue("personsInCharge",n)},placeholder:"".concat(xe.email),inputProps:{},disabled:ge.personsInCharge}),(null===F||void 0===F||null===(o=F.touched)||void 0===o?void 0:o.personsInCharge)&&(null===F||void 0===F||null===(a=F.errors)||void 0===a?void 0:a.personsInCharge)&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-personsInCharge-login",children:null===F||void 0===F||null===(r=F.errors)||void 0===r?void 0:r.personsInCharge})]})}),je.personsInCharge&&!ge.personsInCharge&&Object(ee.jsx)("div",{style:{},children:Object(ee.jsx)(j.a,{size:"small",disabled:ge.personsInCharge,onClick:function(){var e=z.a.clone(F.values.personsInCharge);e.splice(t,1),F.setFieldValue("personsInCharge",e.map((function(e){return e})))},children:Object(ee.jsx)(W.a,{style:{fontSize:"16px"}})})})]},t),Object(ee.jsxs)("div",{children:[je.personsInCharge&&Object(ee.jsx)("div",{style:{display:"inline-flex",paddingBottom:"0px",paddingRight:"10px",paddingLeft:"35px"},children:Object(ee.jsx)(x.a,{className:"xsmall-checkbox",control:Object(ee.jsx)(O.a,{size:"small",disabled:ge.personsInCharge,id:"personsInCharge-isCC-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),name:"personsInCharge-isCC-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),checked:null===(i=F.values.personsInCharge[t])||void 0===i?void 0:i.isCC,onChange:function(){var e=z.a.clone(F.values.personsInCharge),n=z.a.extend({},e[t],{isCC:!e[t].isCC});e[t]=n,F.setFieldValue("personsInCharge",e)}}),label:"CC"})}),je.personsInCharge&&Object(ee.jsx)("div",{style:{display:"inline-flex",paddingTop:"0px"},children:!(null!==(l=F.values.personsInCharge[t])&&void 0!==l&&l.isCC)&&Object(ee.jsx)(x.a,{className:"xsmall-checkbox",style:{fontSize:"10px"},control:Object(ee.jsx)(O.a,{color:"success",style:{fontSize:"10px"},id:"personsInCharge-isApproved-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),name:"personsInCharge-isApproved-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),checked:null===(d=v[t])||void 0===d?void 0:d.isApproved,onChange:null,icon:Object(ee.jsx)(q.a,{style:{fontSize:"16px"}}),checkedIcon:Object(ee.jsx)(G.a,{style:{fontSize:"16px"}})}),label:!0===(null===(s=v[t])||void 0===s?void 0:s.isApproved)?"\u0e23\u0e31\u0e1a\u0e17\u0e23\u0e32\u0e1a":"\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e23\u0e31\u0e1a\u0e17\u0e23\u0e32\u0e1a"})})]})]},t)})),!ge.personsInCharge&&Object(ee.jsx)("div",{children:Object(ee.jsx)(f.a,{size:"small",variant:"outlined",style:{float:"right",width:"100%",fontSize:"12px",margin:"5px 0px"},onClick:function(){var e=z.a.clone(F.values.personsInCharge);e.push({email:"",isCC:!1,isApproved:!1}),F.setFieldValue("personsInCharge",e)},children:"Add Person"})})]}),je.departmentInCharge&&Object(ee.jsx)("div",{style:{padding:"10px 0px",paddingTop:ge.personsInCharge?"10px":"50px"},children:Object(ee.jsx)(b.a,{})}),je.planning&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.planning," : ")}),!1,!1,je.planning&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e40\u0e23\u0e34\u0e48\u0e21\u0e07\u0e32\u0e19 : "}),Object(ee.jsx)("span",{children:"".concat(he)})]}),je.planning&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"\u0e2a\u0e34\u0e49\u0e19\u0e2a\u0e38\u0e14 : "}),Object(ee.jsx)("span",{children:"".concat(fe)})]}),!ge.planning&&Object(ee.jsx)("div",{children:Object(ee.jsx)(f.a,{size:"small",variant:"outlined",style:{float:"right",width:"100%",fontSize:"12px",margin:"5px 0px"},onClick:function(){ve&&ve(1,S)},children:"Plan"})})]}),je.planning&&Object(ee.jsx)("div",{style:{padding:"10px 0px",paddingTop:ge.planning?"10px":"50px"},children:Object(ee.jsx)(b.a,{})}),je.completionDate&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.completionDate," : ")}),Object(ee.jsx)("div",{style:{display:"flex",alignItems:"center",padding:"5px"},children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(L.a,{size:"small",className:"xsmall",id:"outlined-completionDate-form",inputFormat:"dd/MM/yyyy",mask:"__/__/____",renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{size:"small",className:"xsmall"}))},placeholder:xe.completionDate,value:F.values.completionDate,onChange:function(e){F.setFieldValue("completionDate",e)},disabled:ge.completionDate})})})]}),je.completionDate&&(null===(I=F.values)||void 0===I?void 0:I.completionDate)&&(null===(E=F.values)||void 0===E?void 0:E.planning)&&Object(ee.jsx)("div",{style:{fontSize:"12px",padding:"5px 0px",textAlign:"right"},children:Object(ee.jsx)(h.a,{variant:"subtitle2",children:J(null===(w=F.values)||void 0===w||null===(T=w.planning)||void 0===T||null===(k=T.at(-1))||void 0===k?void 0:k.endEventDate,M()(null===(P=F.values)||void 0===P?void 0:P.completionDate))})}),je.reason&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.reason," : ")}),Object(ee.jsx)("div",{style:{display:"flex",alignItems:"center",padding:"5px"},children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(u.a,{size:"small",className:"xsmall",id:"outlined-reason-form",type:"text",name:"reason",value:F.values.reason,rows:5,multiline:!0,onBlur:F.handleBlur,onChange:F.handleChange,placeholder:xe.reason,inputProps:{},disabled:ge.reason})})})]}),je.result&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.result," : ")}),Object(ee.jsx)("div",{style:{display:"flex",alignItems:"center",padding:"5px"},children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(u.a,{size:"small",className:"xsmall",id:"outlined-result-form",type:"text",name:"result",value:F.values.result,rows:5,multiline:!0,onBlur:F.handleBlur,onChange:F.handleChange,placeholder:xe.result,inputProps:{},disabled:ge.result})})})]}),je.resultImages&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.resultImages," : ")}),Object(ee.jsxs)("div",{children:[!ge.resultImages&&Object(ee.jsxs)("label",{htmlFor:"outlined-resultImages-form",children:[Object(ee.jsx)(ie,{accept:"image/*",id:"outlined-resultImages-form",multiple:!0,type:"file",disabled:ge.resultImages,onChange:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.prototype.slice.call(t.target.files),e.next=3,Promise.all(z.a.map(n,function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:o=e.sent,F.setFieldValue("resultImages",o),F.setFieldValue("isChangeResultImages",!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),Object(ee.jsx)(f.a,{size:"small",variant:"outlined",disabled:ge.resultImages,style:{float:"right",width:"100%",fontSize:"12px",margin:"5px 0px",marginBottom:"15px",zIndex:"100"},component:"span",children:xe.resultImages})]}),"CREATE"==A&&(null===(_=F.values)||void 0===_?void 0:_.resultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===(Y=F.values)||void 0===Y||null===(re=Y.resultImages)||void 0===re?void 0:re.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsxs)("div",{id:e.name,style:{padding:"5px",width:"fit-content",position:"relative"},children:[Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{width:"100%",border:"1px solid #dfdfdf",borderRadius:"10px"}}),Object(ee.jsx)(j.a,{color:"primary","aria-label":"delte file",component:"span",style:{position:"absolute",top:"10px",right:"10px"},onClick:function(){var e=F.values.resultImages;e.splice(t,1),F.setFieldValue("resultImages",e),"UPDATE"===A&&F.setFieldValue("isChangeResultImages",!1)},children:Object(ee.jsx)(R.a,{})})]},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==A||"VIEW"==A)&&(null===(le=F.values)||void 0===le?void 0:le.isChangeResultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===(de=F.values)||void 0===de||null===(ce=de.resultImages)||void 0===ce?void 0:ce.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsx)("div",{id:e.name,style:{padding:"5px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{width:"100%",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==A||"VIEW"==A)&&!(null!==(se=F.values)&&void 0!==se&&se.isChangeResultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===(ue=F.values)||void 0===ue||null===(pe=ue.oldResultImages)||void 0===pe?void 0:pe.map((function(e,t){var n="file_".concat(t,"_").concat(e);if(e)return Object(ee.jsx)("div",{id:e.name,style:{padding:"5px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(Object(D.a)(e),n),style:{width:"100%",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))})]})]}),je.completionDate&&Object(ee.jsx)("div",{style:{padding:"10px 0px"},children:Object(ee.jsx)(b.a,{})}),je.comment&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.comment," : ")}),F.values.comment.map((function(e,t){var n,o,a;return Object(ee.jsx)(U.a.Fragment,{children:Object(ee.jsxs)("div",{style:{display:"flex",alignItems:"start",padding:"5px"},children:[je.comment&&Object(ee.jsx)("div",{style:{padding:"5px",paddingRight:"10px"},children:"#".concat(t+1)}),je.comment&&Object(ee.jsx)("div",{style:{flex:1},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(u.a,{size:"small",className:"xsmall",id:"outlined-comment-form-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),type:"text",name:"comment-".concat(null===S||void 0===S?void 0:S.requestId,"-").concat(t),rows:3,multiline:!0,value:null===(n=F.values.comment[t])||void 0===n?void 0:n.message,onBlur:F.handleBlur,onChange:function(e){var n=z.a.clone(F.values.comment),o=z.a.extend({},n[t],{message:e.target.value});n[t]=o,F.setFieldValue("comment",n)},placeholder:"".concat(xe.comment),inputProps:{},disabled:ge.comment}),(null===F||void 0===F||null===(o=F.touched)||void 0===o?void 0:o.comment)&&(null===F||void 0===F||null===(a=F.errors)||void 0===a?void 0:a.comment)&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-comment-login",children:F.errors.comment})]})}),je.comment&&!ge.comment&&Object(ee.jsx)("div",{style:{paddingLeft:"5px"},children:Object(ee.jsx)(j.a,{size:"small",disabled:ge.comment,onClick:function(){var e=z.a.clone(F.values.comment);e.splice(t,1),F.setFieldValue("comment",e.map((function(e){return e})))},children:Object(ee.jsx)(W.a,{style:{fontSize:"16px"}})})})]},t)},t)})),!ge.comment&&Object(ee.jsx)("div",{children:Object(ee.jsx)(f.a,{size:"small",variant:"outlined",style:{float:"right",width:"100%",fontSize:"12px",margin:"5px 0px"},onClick:function(){var e=z.a.clone(F.values.comment);e.push({messageId:Object(V.a)(),message:""}),F.setFieldValue("comment",e)},children:"Add Comment"})})]})]}),je.comment&&Object(ee.jsx)("div",{style:{padding:"10px 0px",paddingTop:(ge.comment,"10px")},children:Object(ee.jsx)(b.a,{})}),je.password&&Object(ee.jsxs)("div",{style:{fontSize:"12px",padding:"5px 0px"},children:[Object(ee.jsx)("span",{style:{fontWeight:"bold"},children:"".concat(xe.password," : ")}),Object(ee.jsx)("div",{style:{display:"flex",alignItems:"center",padding:"5px"},children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(u.a,{size:"small",className:"xsmall",id:"outlined-password-form",type:"password",name:"password",value:F.values.password,onBlur:F.handleBlur,onChange:F.handleChange,placeholder:xe.password,inputProps:{},disabled:ge.password})})})]}),je.password&&Object(ee.jsx)("div",{style:{padding:"10px 0px"},children:Object(ee.jsx)(b.a,{})}),je.buttons&&Object(ee.jsxs)("div",{style:{fontSize:"12px",float:"right",padding:"5px 0px"},children:[je.delete&&Object(ee.jsx)(f.a,{style:{marginLeft:"5px",fontSize:"12px"},disabled:ge.delete,size:"small",variant:"contained",color:"error",onClick:function(){var e=K(S,F.values);te(e,"DELETE")},children:xe.delete}),je.reject&&Object(ee.jsx)(f.a,{style:{marginLeft:"5px",fontSize:"12px"},disabled:ge.reject,size:"small",variant:"contained",color:"error",onClick:function(){var e=K(S,F.values);te(e,"REJECT")},children:xe.reject}),je.save&&Object(ee.jsx)(f.a,{style:{marginLeft:"5px",fontSize:"12px"},disabled:ge.save,size:"small",variant:"contained",color:"primary",onClick:function(){var e=K(S,F.values);te(e,"SAVE")},children:xe.save}),je.submit&&Object(ee.jsx)(f.a,{style:{marginLeft:"5px",fontSize:"12px"},disabled:F.isSubmitting||ge.submit,size:"small",variant:"contained",color:"success",onClick:function(){var e=K(S,F.values);te(e,"SUBMIT")},children:xe.submit})]})]})}():function(){var t,n,o,l,C,N,A,k,S,P,F,_,W,Y,H,K,$,te,ne,re,de,ce=e.area,se=e.project,ue=e.fromScreen,pe=e.validate,ve=e.formType,me=e.formData,be=e.cancel,he=e.submit,fe=(null===ce||void 0===ce?void 0:ce.status)||"ACTIVE";return Object(ee.jsx)(E.a,{initialValues:"CREATE"===ve?{requestNo:"",requestId:"",prioritcyNo:"",status:null===B||void 0===B||null===(t=B.request)||void 0===t?void 0:t.requestStatusList.find((function(e){return"OPEN"===e.value})),col:null===B||void 0===B||null===(n=B.request)||void 0===n?void 0:n.requestStatusList.find((function(e){return"OPEN"===e.value})),informerType:null,createdBy:(null===B||void 0===B||null===(o=B.user)||void 0===o||null===(l=o.authUser)||void 0===l?void 0:l.username)||"",updatedBy:(null===B||void 0===B||null===(C=B.user)||void 0===C||null===(N=C.authUser)||void 0===N?void 0:N.username)||"",password:"",projectCode:se||null,areaType:null,areaDescription:"",problemCode:null,description:"",files:[],departmentInCharge:null,personsInCharge:[],comment:[],planning:[],completionDate:null,reason:"",result:"",resultImages:[],submit:null}:z.a.extend({},me,{status:null===B||void 0===B||null===(A=B.request)||void 0===A?void 0:A.requestStatusList.find((function(e){return e.value===(null===me||void 0===me?void 0:me.status)})),col:null===B||void 0===B||null===(k=B.request)||void 0===k?void 0:k.requestStatusList.find((function(e){return e.value===(null===me||void 0===me?void 0:me.col)})),informerType:null===B||void 0===B||null===(S=B.dept)||void 0===S?void 0:S.departments.find((function(e){return e.deptCode===(null===me||void 0===me?void 0:me.informerType)})),updatedBy:"SCAN_QR"==ue?null===me||void 0===me?void 0:me.updatedBy:"REQUEST"==ue?null===B||void 0===B||null===(P=B.user)||void 0===P||null===(F=P.authUser)||void 0===F?void 0:F.username:"REQUEST_ON_BOARD"==ue&&"VIEW"==ve&&"DONE"!=(null===me||void 0===me?void 0:me.status)?null===B||void 0===B||null===(_=B.user)||void 0===_||null===(W=_.authUser)||void 0===W?void 0:W.username:null===me||void 0===me?void 0:me.updatedBy,projectCode:null===B||void 0===B||null===(Y=B.project)||void 0===Y?void 0:Y.projects.find((function(e){return e.projectCode===(null===me||void 0===me?void 0:me.projectCode)})),areaType:null===B||void 0===B||null===(H=B.area)||void 0===H?void 0:H.areas.find((function(e){return e.areaCode===(null===me||void 0===me?void 0:me.areaType)})),problemCode:null===B||void 0===B||null===(K=B.problem)||void 0===K?void 0:K.problems.find((function(e){return e.problemCode===(null===me||void 0===me?void 0:me.problemCode)})),files:""==(null===me||void 0===me?void 0:me.files)||null==(null===me||void 0===me?void 0:me.files)?[]:null===me||void 0===me||null===($=me.files)||void 0===$?void 0:$.split(","),isChangeFile:!1,oldFiles:""==(null===me||void 0===me?void 0:me.files)||null==(null===me||void 0===me?void 0:me.files)?[]:null===me||void 0===me||null===(te=me.files)||void 0===te?void 0:te.split(","),departmentInCharge:null===me||void 0===me?void 0:me.departmentInCharge,personsInCharge:JSON.parse(null===me||void 0===me?void 0:me.personsInCharge),comment:JSON.parse(null===me||void 0===me?void 0:me.comment),planning:null===(ne=JSON.parse(null===me||void 0===me?void 0:me.planning))||void 0===ne?void 0:ne.map((function(e){return z.a.extend({},e,{startEventDate:null!==e&&void 0!==e&&e.startEventDate?M()(null===e||void 0===e?void 0:e.startEventDate):null,endEventDate:null!==e&&void 0!==e&&e.endEventDate?M()(null===e||void 0===e?void 0:e.endEventDate):null})})),completionDate:null!==me&&void 0!==me&&me.completionDate?M()(null===me||void 0===me?void 0:me.completionDate):null,resultImages:""==(null===me||void 0===me?void 0:me.resultImages)||null==(null===me||void 0===me?void 0:me.resultImages)?[]:null===me||void 0===me||null===(re=me.resultImages)||void 0===re?void 0:re.split(","),isChangeResultImages:!1,oldResultImages:""==(null===me||void 0===me?void 0:me.resultImages)||null==(null===me||void 0===me?void 0:me.resultImages)?[]:null===me||void 0===me||null===(de=me.resultImages)||void 0===de?void 0:de.split(",")}),validationSchema:w.b().shape({status:w.b().required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e2a\u0e16\u0e32\u0e19\u0e30").nullable(),informerType:w.b().required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e1c\u0e19\u0e01/\u0e17\u0e35\u0e21").nullable(),projectCode:w.b().required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23").nullable(),areaType:w.b().required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e02\u0e2d\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48").nullable(),problemCode:w.b().required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e1b\u0e31\u0e0d\u0e2b\u0e32").nullable(),files:"CREATE"===ve?w.a().min(1,"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e41\u0e19\u0e1a\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e").required("\u0e01\u0e23\u0e38\u0e13\u0e32\u0e41\u0e19\u0e1a\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e"):null}),onSubmit:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t,n){var o,a,i,l,d,c,s,u,p,v,m,b,h;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n.resetForm,p=z.a.extend({},z.a.omit(t,[]),{status:null===t||void 0===t||null===(o=t.status)||void 0===o?void 0:o.value,col:null===t||void 0===t||null===(a=t.col)||void 0===a?void 0:a.value,createdBy:null!==t&&void 0!==t&&t.createdBy?null===t||void 0===t?void 0:t.createdBy:null===t||void 0===t||null===(i=t.informerType)||void 0===i?void 0:i.deptName,areaType:null===t||void 0===t||null===(l=t.areaType)||void 0===l?void 0:l.areaCode,completionDate:null!==t&&void 0!==t&&t.completionDate?M()(null===t||void 0===t?void 0:t.completionDate).format():null,personsInCharge:JSON.stringify(null===t||void 0===t?void 0:t.personsInCharge.filter((function(e){return e.email&&""!==e.email}))),comment:JSON.stringify(null===t||void 0===t?void 0:t.comment.filter((function(e){return e.message&&""!==e.message}))),planning:JSON.stringify(null===t||void 0===t?void 0:t.planning.filter((function(e){return e.eventTitle&&""!==e.eventTitle}))),informerType:null===t||void 0===t||null===(d=t.informerType)||void 0===d?void 0:d.deptCode,problemCode:null===t||void 0===t||null===(c=t.problemCode)||void 0===c?void 0:c.problemCode,projectCode:null===t||void 0===t||null===(s=t.projectCode)||void 0===s?void 0:s.projectCode,files:null!==t&&void 0!==t&&t.isChangeFiles?null===t||void 0===t?void 0:t.files:null,resultImages:null!==t&&void 0!==t&&t.isChangeResultImages?null===t||void 0===t?void 0:t.resultImages:null}),console.log(t,p),pe?pe(t)&&he&&he(p,{email:null===B||void 0===B||null===(v=B.user)||void 0===v||null===(m=v.authUser)||void 0===m?void 0:m.username,password:null===t||void 0===t?void 0:t.password}):he&&he(p,{email:null===B||void 0===B||null===(b=B.user)||void 0===b||null===(h=b.authUser)||void 0===h?void 0:h.username,password:null===t||void 0===t?void 0:t.password},"ALL"===fe?function(){u()}:null);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),children:function(e){var t,n,o,l,C,E,w,N,A,k,S,P,F,_,W,Y,H=e.errors,K=e.handleBlur,$=e.handleChange,te=e.handleSubmit,ne=e.setFieldValue,re=e.isSubmitting,de=e.touched,ce=e.values,se=Z(),pe=Q(ce),me=X(ue);return Object(ee.jsx)("form",{noValidate:!0,onSubmit:te,children:Object(ee.jsxs)(d.a,{container:!0,spacing:T.b,children:[se.requestNo&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-requestNo-form",children:me.requestNo}),Object(ee.jsx)(u.a,{id:"outlined-requestNo-form",type:"text",name:"requestNo",value:ce.requestNo,onBlur:K,onChange:$,label:me.requestNo,inputProps:{},disabled:pe.requestNo}),de.requestNo&&H.requestNo&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-requestNo-login",children:H.requestNo})]})}),se.priorityNo&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-priorityNo-form",children:me.priorityNo}),Object(ee.jsx)(u.a,{id:"outlined-priorityNo-form",type:"number",name:"priorityNo",value:ce.priorityNo,onBlur:K,onChange:$,label:me.priorityNo,inputProps:{},disabled:pe.priorityNo}),de.priorityNo&&H.priorityNo&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-priorityNo-login",children:H.priorityNo})]})}),se.col&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-col-form",options:null===B||void 0===B||null===(t=B.request)||void 0===t?void 0:t.requestStatusList,filterOptions:function(e,t){var n=le(e,t);return n=n.filter((function(e){return e.isCol}))},getOptionLabel:function(e){return"".concat(e.name)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.name)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.col}))},value:ce.col,onBlur:K,onChange:function(e,t){ne("col",t)},disabled:pe.col}),de.col&&H.col&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-col-login",children:H.col})]})}),se.status&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-status-form",options:null===B||void 0===B||null===(n=B.request)||void 0===n?void 0:n.requestStatusList,filterOptions:function(e,t){return le(e,t)},getOptionLabel:function(e){return"".concat(e.name)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.name)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.status}))},value:ce.status,onBlur:K,onChange:function(e,t){ne("status",t)},disabled:pe.status}),de.status&&H.status&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-status-login",children:H.status})]})}),se.requestNo&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.informerTypeLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.informerTypeLabel})}),se.informerType&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-informerType-form",options:null===B||void 0===B||null===(o=B.dept)||void 0===o?void 0:o.departments.sort((function(e,t){return t.deptName>e.deptName?-1:1})),filterOptions:function(e,t){var n=le(e,t);return n=n.filter((function(e){return"REQUEST"===e.deptType}))},getOptionLabel:function(e){return"".concat(e.deptName)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.deptName)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.informerType}))},value:ce.informerType,onBlur:K,onChange:function(e,t){console.log(t),ne("informerType",t),ne("problemCode",null)},disabled:pe.informerType}),de.informerType&&H.informerType&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-informerType-login",children:H.informerType})]})}),se.createdBy&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-createdBy-form",children:me.createdBy}),Object(ee.jsx)(u.a,{id:"outlined-createdBy-form",type:"text",name:"createdBy",value:ce.createdBy,onBlur:K,onChange:function(e){var t,n=null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value;ne("createdBy",n)},label:me.createdBy,inputProps:{},disabled:pe.createdBy}),de.createdBy&&H.createdBy&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-createdBy-login",children:H.createdBy})]})}),se.informerTypeLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.areaLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.areaLabel})}),se.projectCode&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-projectCode-form",options:null===B||void 0===B||null===(l=B.project)||void 0===l||null===(C=l.projects)||void 0===C?void 0:C.sort((function(e,t){return t.projectCode>e.projectCode?-1:1})),filterOptions:function(e,t){return le(e,t)},getOptionLabel:function(e){return"".concat(e.projectCode," - ").concat(e.projectName)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.projectCode," - ").concat(t.projectName)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.project}))},value:ce.projectCode,onBlur:K,onChange:function(e,t){ne("projectCode",t)},disabled:pe.projectCode}),de.projectCode&&H.projectCode&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-projectCode-login",children:H.projectCode})]})}),se.areaType&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-areaType-form",options:null===B||void 0===B||null===(E=B.area)||void 0===E?void 0:E.areas.sort((function(e,t){return t.areaCode>e.areaCode?-1:1})),filterOptions:function(e,t){var n=le(e,t);return n=n.filter((function(e){return"REQUEST"===e.floorCode}))},getOptionLabel:function(e){return"".concat(e.areaName)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.areaName)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.areaType}))},value:ce.areaType,onBlur:K,onChange:function(e,t){ne("areaType",t)},disabled:pe.areaType}),de.areaType&&H.areaType&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-areaType-login",children:H.areaType})]})}),se.areaDescription&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-areaDescription-form",children:me.areaDescription}),Object(ee.jsx)(u.a,{id:"outlined-areaDescription-form",type:"text",name:"areaDescription",value:ce.areaDescription,rows:5,multiline:!0,onBlur:K,onChange:function(e){var t,n=null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value;ne("areaDescription",n)},label:me.areaDescription,inputProps:{},disabled:pe.areaDescription}),de.areaDescription&&H.areaDescription&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-areaDescription-login",children:H.areaDescription})]})}),se.areaLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.problemLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.problemLabel})}),se.problemCode&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(v.a,{disablePortal:!0,id:"outlined-problemCode-form",options:null===B||void 0===B||null===(w=B.problem)||void 0===w?void 0:w.problems.sort((function(e,t){return t.problemCode>e.problemCode?-1:1})),filterOptions:function(e,t){var n,o=le(e,t);return o=o.filter((function(e){return"REQUEST"===e.problemType})),null!==ce&&void 0!==ce&&null!==(n=ce.informerType)&&void 0!==n&&n.deptCode&&(o=o.filter((function(e){var t;return"REQUEST"===e.problemType&&e.deptCode===(null===ce||void 0===ce||null===(t=ce.informerType)||void 0===t?void 0:t.deptCode)}))),o},getOptionLabel:function(e){return"".concat(e.problemName)},renderOption:function(e,t){return Object(ee.jsx)("li",Object(a.a)(Object(a.a)({},e),{},{children:Object(ee.jsx)("div",{children:"".concat(t.problemName)})}))},renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{label:me.problem}))},value:ce.problemCode,onBlur:K,onChange:function(e,t){ne("problemCode",t)},disabled:pe.problemCode}),de.problemCode&&H.problemCode&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-problemCode-login",children:H.problemCode})]})}),se.description&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-description-form",children:me.problemDesc}),Object(ee.jsx)(u.a,{id:"outlined-description-form",type:"text",name:"description",value:ce.description,rows:5,multiline:!0,onBlur:K,onChange:$,label:me.problemDesc,inputProps:{},disabled:pe.description}),de.description&&H.description&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-description-login",children:H.description})]})}),se.files&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsxs)("label",{htmlFor:"outlined-files-form",children:[Object(ee.jsx)(ie,{accept:"image/*",id:"outlined-files-form",required:!0,multiple:!0,type:"file",disabled:pe.files,onChange:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.prototype.slice.call(t.target.files),e.next=3,Promise.all(z.a.map(n,function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:o=e.sent,ne("files",o),ne("isChangeFiles",!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),Object(ee.jsx)(f.a,{variant:"outlined",disabled:pe.files,component:"span",children:me.files})]}),de.files&&H.files&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-files-login",children:H.files}),"CREATE"==ve&&(null===ce||void 0===ce?void 0:ce.files)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(N=ce.files)||void 0===N?void 0:N.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsxs)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:[Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}}),Object(ee.jsx)(j.a,{color:"primary","aria-label":"delte file",component:"span",style:{position:"absolute",top:"10px",right:"10px"},onClick:function(){var e=ce.files;e.splice(t,1),ne("files",e),"UPDATE"===ve&&ne("isChangeFiles",!1)},children:Object(ee.jsx)(R.a,{})})]},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==ve||"VIEW"==ve)&&(null===ce||void 0===ce?void 0:ce.isChangeFiles)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(A=ce.files)||void 0===A?void 0:A.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsx)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==ve||"VIEW"==ve)&&!(null!==ce&&void 0!==ce&&ce.isChangeFiles)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(k=ce.oldFiles)||void 0===k?void 0:k.map((function(e,t){var n="file_".concat(t,"_").concat(e);if(e)return Object(ee.jsx)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(Object(D.a)(e),n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))})]})}),se.problemLabel&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.departmentInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.departmentInCharge})}),se.departmentInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,className:"autocomplete-cus",children:[Object(ee.jsx)(g.a,{row:!0,name:"row-radio-buttons-departmentInCharge-group",value:ce.departmentInCharge,onChange:function(e,t){ne("departmentInCharge",t)},children:null===B||void 0===B||null===(S=B.dept)||void 0===S?void 0:S.departments.filter((function(e){return"REQUEST"===e.deptType&&"JURISTIC"!==e.deptCode&&"OTHERS"!==e.deptCode})).sort((function(e,t){return t.deptName>e.deptName?-1:1})).map((function(e,t){return Object(ee.jsx)(x.a,{value:e.deptCode,control:Object(ee.jsx)(I.a,{}),label:"".concat(e.deptName)},t)}))}),de.departmentInCharge&&H.departmentInCharge&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-departmentInCharge-login",children:H.departmentInCharge})]})}),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.personsInCharge})}),ce.personsInCharge.map((function(e,t){var n,o,a,r,i;return Object(ee.jsxs)(U.a.Fragment,{children:[se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"subtitle1",children:"#".concat(t+1)})}),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:5,md:5,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(u.a,{size:"small",id:"outlined-personsInCharge-form-".concat(t),type:"text",name:"personsInCharge-".concat(t),value:null===(n=ce.personsInCharge[t])||void 0===n?void 0:n.email,onBlur:K,onChange:function(e){var n=z.a.clone(ce.personsInCharge),o=z.a.extend({},n[t],{email:e.target.value});n[t]=o,ne("personsInCharge",n)},placeholder:me.email,inputProps:{},disabled:pe.personsInCharge}),de.personsInCharge&&H.personsInCharge&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-personsInCharge-login",children:H.personsInCharge})]})}),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:2,md:2,sm:2,xs:6,style:{textAlign:"center"},children:Object(ee.jsx)(x.a,{control:Object(ee.jsx)(O.a,{id:"personsInCharge-isCC-".concat(t),name:"personsInCharge-isCC-".concat(t),checked:null===(o=ce.personsInCharge[t])||void 0===o?void 0:o.isCC,onChange:function(){var e=z.a.clone(ce.personsInCharge),n=z.a.extend({},e[t],{isCC:!e[t].isCC});e[t]=n,ne("personsInCharge",e)}}),label:"CC"})}),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:3,md:3,sm:3,xs:6,style:{paddingTop:"15px"},children:!(null!==(a=ce.personsInCharge[t])&&void 0!==a&&a.isCC)&&Object(ee.jsx)(x.a,{control:Object(ee.jsx)(O.a,{color:"success",id:"personsInCharge-isApproved-".concat(t),name:"personsInCharge-isApproved-".concat(t),checked:null===(r=ce.personsInCharge[t])||void 0===r?void 0:r.isApproved,onChange:function(){var e=z.a.clone(ce.personsInCharge),n=z.a.extend({},e[t],{isApproved:!e[t].isApproved});e[t]=n,ne("personsInCharge",e)},icon:Object(ee.jsx)(q.a,{}),checkedIcon:Object(ee.jsx)(G.a,{})}),label:!0===(null===(i=ce.personsInCharge[t])||void 0===i?void 0:i.isApproved)?"\u0e23\u0e31\u0e1a\u0e17\u0e23\u0e32\u0e1a":"\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e23\u0e31\u0e1a\u0e17\u0e23\u0e32\u0e1a"})}),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:2,md:2,sm:2,xs:12,style:{paddingTop:"15px",display:"flex",justifyContent:"end",alignItems:"center"},children:Object(ee.jsx)(f.a,{variant:"outlined",color:"error",onClick:function(){var e=z.a.clone(ce.personsInCharge);e.splice(t,1),ne("personsInCharge",e.map((function(e){return e})))},children:"Delete"})})]},t)})),se.personsInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(f.a,{variant:"outlined",style:{float:"right",width:"100%"},onClick:function(){var e=z.a.clone(ce.personsInCharge);e.push({email:"",isCC:!1,isApproved:!1}),ne("personsInCharge",e)},children:"Add Person"})}),se.departmentInCharge&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.planning})}),ce.planning.map((function(e,t){var n,o,r,i;return Object(ee.jsxs)(U.a.Fragment,{children:[se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"subtitle1",children:"#".concat(t+1)})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(u.a,{size:"small",id:"outlined-planning-form-".concat(t),type:"text",name:"planning-".concat(t),value:null===(n=ce.planning[t])||void 0===n?void 0:n.eventTitle,onBlur:K,onChange:function(e){var n=z.a.clone(ce.planning),o=z.a.extend({},n[t],{eventTitle:e.target.value});n[t]=o,ne("planning",n)},placeholder:me.eventTitle,inputProps:{},disabled:pe.planning}),de.planning&&H.planning&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-planning-login",children:H.planning})]})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(u.a,{size:"small",id:"outlined-planning-color-form-".concat(t),type:"text",name:"planning-color-".concat(t),value:null===(o=ce.planning[t])||void 0===o?void 0:o.eventColor,onBlur:K,onChange:function(e){var n=z.a.clone(ce.planning),o=z.a.extend({},n[t],{eventColor:e.target.value});n[t]=o,ne("planning",n)},placeholder:me.eventColor,inputProps:{},disabled:pe.planning})})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:5,md:5,sm:12,xs:12,children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(L.a,{id:"outlined-start-form-".concat(t),inputFormat:"dd/MM/yyyy",mask:"__/__/____",renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{size:"small"}))},label:me.startEventDate,value:null===(r=ce.planning[t])||void 0===r?void 0:r.startEventDate,onChange:function(e){var n=z.a.clone(ce.planning),o=z.a.extend({},n[t],{startEventDate:e});n[t]=o,ne("planning",n)},disabled:pe.planning})})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:5,md:5,sm:12,xs:12,children:Object(ee.jsx)(c.a,{fullWidth:!0,children:Object(ee.jsx)(L.a,{id:"outlined-end-form-".concat(t),inputFormat:"dd/MM/yyyy",mask:"__/__/____",renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)(Object(a.a)({},e),{},{size:"small"}))},label:me.endEventDate,value:null===(i=ce.planning[t])||void 0===i?void 0:i.endEventDate,onChange:function(e){var n=z.a.clone(ce.planning),o=z.a.extend({},n[t],{endEventDate:e});n[t]=o,ne("planning",n)},disabled:pe.planning})})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:2,md:2,sm:12,xs:12,style:{paddingTop:"15px",display:"flex",justifyContent:"end",alignItems:"center"},children:Object(ee.jsx)(f.a,{variant:"outlined",color:"error",onClick:function(){var e=z.a.clone(ce.planning);e.splice(t,1),ne("planning",e.map((function(e){return e})))},children:"Delete"})})]},t)})),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(f.a,{variant:"outlined",style:{float:"right",width:"100%"},onClick:function(){var e=z.a.clone(ce.planning);e.push({eventId:Object(V.a)(),eventTitle:"",eventColor:"#0ca7b5",startEventDate:M()(),endEventDate:M()()}),ne("planning",e)},children:"Add Event"})}),se.planning&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.completionDate&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.completionDate})}),se.completionDate&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(L.a,{id:"outlined-completionDate-form",inputFormat:"dd/MM/yyyy",mask:"__/__/____",renderInput:function(e){return Object(ee.jsx)(m.a,Object(a.a)({},e))},label:me.completionDate,value:ce.completionDate,onChange:function(e){ne("completionDate",e)},disabled:pe.completionDate}),de.completionDate&&H.completionDate&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-completionDate-login",children:H.completionDate})]})}),se.completionDate&&(null===ce||void 0===ce?void 0:ce.completionDate)&&(null===ce||void 0===ce?void 0:ce.planning)&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px",textAlign:"right"},children:Object(ee.jsx)(h.a,{variant:"subtitle2",children:J(null===ce||void 0===ce||null===(P=ce.planning)||void 0===P||null===(F=P.at(-1))||void 0===F?void 0:F.endEventDate,M()(null===ce||void 0===ce?void 0:ce.completionDate))})}),se.reason&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-reason-form",children:me.reason}),Object(ee.jsx)(u.a,{id:"outlined-reason-form",type:"text",name:"reason",value:ce.reason,rows:5,multiline:!0,onBlur:K,onChange:$,label:me.reason,inputProps:{},disabled:pe.reason}),de.reason&&H.reason&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-reason-login",children:H.reason})]})}),se.result&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-result-form",children:me.result}),Object(ee.jsx)(u.a,{id:"outlined-result-form",type:"text",name:"result",value:ce.result,rows:5,multiline:!0,onBlur:K,onChange:$,label:me.result,inputProps:{},disabled:pe.result}),de.result&&H.result&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-result-login",children:H.result})]})}),se.resultImages&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsxs)("label",{htmlFor:"outlined-resultImages-form",children:[Object(ee.jsx)(ie,{accept:"image/*",id:"outlined-resultImages-form",multiple:!0,type:"file",disabled:pe.resultImages,onChange:function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.prototype.slice.call(t.target.files),e.next=3,Promise.all(z.a.map(n,function(){var e=Object(i.a)(Object(r.a)().mark((function e(t){var n;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:o=e.sent,ne("resultImages",o),ne("isChangeResultImages",!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),Object(ee.jsx)(f.a,{variant:"outlined",disabled:pe.resultImages,component:"span",children:me.resultImages})]}),de.resultImages&&H.resultImages&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-resultImages-login",children:H.resultImages}),"CREATE"==ve&&(null===ce||void 0===ce?void 0:ce.resultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(_=ce.resultImages)||void 0===_?void 0:_.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsxs)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:[Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}}),Object(ee.jsx)(j.a,{color:"primary","aria-label":"delte file",component:"span",style:{position:"absolute",top:"10px",right:"10px"},onClick:function(){var e=ce.resultImages;e.splice(t,1),ne("resultImages",e),"UPDATE"===ve&&ne("isChangeResultImages",!1)},children:Object(ee.jsx)(R.a,{})})]},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==ve||"VIEW"==ve)&&(null===ce||void 0===ce?void 0:ce.isChangeResultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(W=ce.resultImages)||void 0===W?void 0:W.map((function(e,t){var n="file_".concat(t,"_").concat(e.name);return Object(ee.jsx)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(e,n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))}),("UPDATE"==ve||"VIEW"==ve)&&!(null!==ce&&void 0!==ce&&ce.isChangeResultImages)&&Object(ee.jsx)(ee.Fragment,{children:null===ce||void 0===ce||null===(Y=ce.oldResultImages)||void 0===Y?void 0:Y.map((function(e,t){var n="file_".concat(t,"_").concat(e);if(e)return Object(ee.jsx)("div",{id:e.name,style:{padding:"10px",width:"fit-content",position:"relative"},children:Object(ee.jsx)("img",{id:n,src:Object(oe.b)(Object(D.a)(e),n),style:{maxWidth:"200px",border:"1px solid #dfdfdf",borderRadius:"10px"}})},"".concat(t,"-").concat(e.name))}))})]})}),se.completionDate&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"h4",children:me.comment})}),ce.comment.map((function(e,t){var n;return Object(ee.jsxs)(U.a.Fragment,{children:[se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(h.a,{variant:"subtitle1",children:"#".concat(t+1)})}),se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:10,md:10,sm:9,xs:9,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(u.a,{size:"small",id:"outlined-comment-form-".concat(t),type:"text",name:"comment-".concat(t),rows:3,multiline:!0,value:null===(n=ce.comment[t])||void 0===n?void 0:n.message,onBlur:K,onChange:function(e){var n=z.a.clone(ce.comment),o=z.a.extend({},n[t],{message:e.target.value});n[t]=o,ne("comment",n)},placeholder:me.comment,inputProps:{},disabled:pe.comment}),de.comment&&H.comment&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-comment-login",children:H.comment})]})}),se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:2,md:2,sm:3,xs:3,style:{paddingTop:"15px",display:"flex",justifyContent:"end",alignItems:"start"},children:Object(ee.jsx)(f.a,{variant:"outlined",color:"error",onClick:function(){var e=z.a.clone(ce.comment);e.splice(t,1),ne("comment",e.map((function(e){return e})))},children:"Delete"})})]},t)})),se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(f.a,{variant:"outlined",style:{float:"right",width:"100%"},onClick:function(){var e=z.a.clone(ce.comment);e.push({messageId:Object(V.a)(),message:""}),ne("comment",e)},children:"Add Comment"})}),se.comment&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),se.updatedBy&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-updatedBy-form",children:me.updatedBy}),Object(ee.jsx)(u.a,{id:"outlined-updatedBy-form",type:"text",name:"updatedBy",value:ce.updatedBy,onBlur:K,onChange:function(e){var t,n=null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value;ne("updatedBy",n)},label:me.updatedBy,inputProps:{},disabled:pe.updatedBy}),de.updatedBy&&H.updatedBy&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-updatedBy-login",children:H.updatedBy})]})}),se.password&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsxs)(c.a,{fullWidth:!0,children:[Object(ee.jsx)(s.a,{htmlFor:"outlined-password-form",children:me.password}),Object(ee.jsx)(u.a,{id:"outlined-password-form",type:"password",name:"password",value:ce.password,onBlur:K,onChange:$,label:me.password,inputProps:{}}),de.password&&H.password&&Object(ee.jsx)(p.a,{error:!0,id:"standard-weight-helper-text-password-login",children:H.password})]})}),se.updatedBy&&Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(ee.jsx)(b.a,{})}),H.submit&&Object(ee.jsx)(y.a,{sx:{mt:3},children:Object(ee.jsx)(p.a,{error:!0,children:H.submit})}),Object(ee.jsx)(d.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px",textAlign:"right"},children:Object(ee.jsxs)(y.a,{sx:{mt:2},style:{textAlign:"right"},children:[se.cancel&&Object(ee.jsx)(f.a,{size:"medium",variant:"outlined",color:"primary",style:{marginRight:"10px",marginLeft:"10px"},onClick:be,disabled:pe.cancel,children:me.cancel}),se.submit&&Object(ee.jsx)(f.a,{disabled:re||pe.submit,size:"medium",type:"submit",variant:"contained",color:"primary",children:me.submit})]})})]})})}})}()}},423:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"g",(function(){return v})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={events:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.fb).concat(o)).then((function(e){var o=e.data;n({type:l.Vb,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.ob)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="EVENT",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.eventCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.eventCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.k),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.nc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.F),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},b=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.A),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.Vb?Object(o.a)(Object(o.a)({},e),{},{events:n}):e}},424:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return m}));var o=n(11),a=n(23),r=n.n(a),i=n(13),l=n(5),d=n(66),c={forms:[]},s=function(e,t){return function(n){var o=Object(d.a)(e);return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.hb).concat(o)).then((function(e){var o=e.data;n({type:l.Yb,payload:o.data}),t&&t(o.data)})).catch((function(e){var t,o,a,r,i;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(o=t.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},u=function(e){return function(t){return r.a.get("".concat(i.a[i.a.enviroment].server_endpoint).concat(l.qb)).then((function(t){var n,o=null===(n=t.data.data)||void 0===n?void 0:n[0],a="FORM",r="".concat(a,"0");if(o){var i,l,d=Number.isNaN(parseInt(null===(i=o.formCode)||void 0===i?void 0:i.replace(a,"")))?0:parseInt(null===(l=o.formCode)||void 0===l?void 0:l.replace(a,""))+1;r="".concat(a).concat(d)}e&&e(o,r)})).catch((function(e){var n,o,a,r,i;t({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(o=n.data)||void 0===o||null===(a=o.error)||void 0===a?void 0:a.message)||(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message))}})}))}},p=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"post",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.m),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},v=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"put",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.pc),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}},m=function(e,t){return function(n){var o=new FormData;return Object.keys(e).forEach((function(t){null==e[t]||void 0==e[t]||""==e[t]||o.append(t,e[t])})),r()({method:"delete",url:"".concat(i.a[i.a.enviroment].server_endpoint).concat(l.J),data:o,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var o=e.data;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"success",message:"".concat(o.message)}}),t&&t(o.data,null)})).catch((function(e){var o,a,r,i,d;n({type:l.gc,payload:{open:!0,vertical:"bottom",horizontal:"center",severity:"error",message:"".concat((null===e||void 0===e||null===(o=e.response)||void 0===o||null===(a=o.data)||void 0===a||null===(r=a.error)||void 0===r?void 0:r.message)||(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)||(null===e||void 0===e?void 0:e.message))}}),t&&t(null,e)}))}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;return t.type===l.Yb?Object(o.a)(Object(o.a)({},e),{},{forms:n}):e}},437:function(e,t,n){"use strict";t.a=n.p+"static/media/default_logo2.b8376e58.png"},5:function(e,t,n){"use strict";n.d(t,"Zb",(function(){return o})),n.d(t,"gc",(function(){return a})),n.d(t,"ac",(function(){return r})),n.d(t,"Hb",(function(){return i})),n.d(t,"Xb",(function(){return l})),n.d(t,"Qb",(function(){return d})),n.d(t,"W",(function(){return c})),n.d(t,"jb",(function(){return s})),n.d(t,"X",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"ic",(function(){return v})),n.d(t,"u",(function(){return m})),n.d(t,"v",(function(){return b})),n.d(t,"Lb",(function(){return h})),n.d(t,"Mb",(function(){return f})),n.d(t,"Y",(function(){return j})),n.d(t,"kb",(function(){return g})),n.d(t,"Ab",(function(){return x})),n.d(t,"Eb",(function(){return O})),n.d(t,"Db",(function(){return y})),n.d(t,"ib",(function(){return C})),n.d(t,"e",(function(){return I})),n.d(t,"zc",(function(){return E})),n.d(t,"f",(function(){return w})),n.d(t,"jc",(function(){return T})),n.d(t,"w",(function(){return N})),n.d(t,"x",(function(){return D})),n.d(t,"bb",(function(){return A})),n.d(t,"vb",(function(){return R})),n.d(t,"Nb",(function(){return k})),n.d(t,"Z",(function(){return S})),n.d(t,"lb",(function(){return z})),n.d(t,"ab",(function(){return P})),n.d(t,"g",(function(){return M})),n.d(t,"kc",(function(){return L})),n.d(t,"y",(function(){return B})),n.d(t,"z",(function(){return q})),n.d(t,"Ob",(function(){return F})),n.d(t,"cb",(function(){return G})),n.d(t,"mb",(function(){return V})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return U})),n.d(t,"lc",(function(){return W})),n.d(t,"B",(function(){return Y})),n.d(t,"C",(function(){return J})),n.d(t,"Rb",(function(){return H})),n.d(t,"Sb",(function(){return Z})),n.d(t,"r",(function(){return Q})),n.d(t,"s",(function(){return X})),n.d(t,"xc",(function(){return K})),n.d(t,"S",(function(){return $})),n.d(t,"db",(function(){return ee})),n.d(t,"nb",(function(){return te})),n.d(t,"eb",(function(){return ne})),n.d(t,"j",(function(){return oe})),n.d(t,"mc",(function(){return ae})),n.d(t,"D",(function(){return re})),n.d(t,"E",(function(){return ie})),n.d(t,"Ub",(function(){return le})),n.d(t,"fb",(function(){return de})),n.d(t,"ob",(function(){return ce})),n.d(t,"k",(function(){return se})),n.d(t,"nc",(function(){return ue})),n.d(t,"F",(function(){return pe})),n.d(t,"G",(function(){return ve})),n.d(t,"A",(function(){return me})),n.d(t,"Vb",(function(){return be})),n.d(t,"gb",(function(){return he})),n.d(t,"pb",(function(){return fe})),n.d(t,"l",(function(){return je})),n.d(t,"oc",(function(){return ge})),n.d(t,"H",(function(){return xe})),n.d(t,"I",(function(){return Oe})),n.d(t,"Wb",(function(){return ye})),n.d(t,"hb",(function(){return Ce})),n.d(t,"qb",(function(){return Ie})),n.d(t,"m",(function(){return Ee})),n.d(t,"pc",(function(){return we})),n.d(t,"J",(function(){return Te})),n.d(t,"K",(function(){return Ne})),n.d(t,"Yb",(function(){return De})),n.d(t,"Cb",(function(){return Ae})),n.d(t,"tb",(function(){return Re})),n.d(t,"Bb",(function(){return ke})),n.d(t,"q",(function(){return Se})),n.d(t,"tc",(function(){return ze})),n.d(t,"Jb",(function(){return Pe})),n.d(t,"a",(function(){return Me})),n.d(t,"Q",(function(){return Le})),n.d(t,"R",(function(){return Be})),n.d(t,"ec",(function(){return qe})),n.d(t,"fc",(function(){return Fe})),n.d(t,"p",(function(){return Ge})),n.d(t,"sc",(function(){return Ve})),n.d(t,"uc",(function(){return _e})),n.d(t,"vc",(function(){return Ue})),n.d(t,"wc",(function(){return We})),n.d(t,"P",(function(){return Ye})),n.d(t,"Tb",(function(){return Je})),n.d(t,"bc",(function(){return He})),n.d(t,"wb",(function(){return Ze})),n.d(t,"rb",(function(){return Qe})),n.d(t,"xb",(function(){return Xe})),n.d(t,"n",(function(){return Ke})),n.d(t,"qc",(function(){return $e})),n.d(t,"L",(function(){return et})),n.d(t,"M",(function(){return tt})),n.d(t,"cc",(function(){return nt})),n.d(t,"yb",(function(){return ot})),n.d(t,"sb",(function(){return at})),n.d(t,"zb",(function(){return rt})),n.d(t,"o",(function(){return it})),n.d(t,"rc",(function(){return lt})),n.d(t,"N",(function(){return dt})),n.d(t,"O",(function(){return ct})),n.d(t,"dc",(function(){return st})),n.d(t,"Fb",(function(){return ut})),n.d(t,"ub",(function(){return pt})),n.d(t,"t",(function(){return vt})),n.d(t,"V",(function(){return mt})),n.d(t,"Kb",(function(){return bt})),n.d(t,"c",(function(){return ht})),n.d(t,"yc",(function(){return ft})),n.d(t,"T",(function(){return jt})),n.d(t,"U",(function(){return gt})),n.d(t,"b",(function(){return xt})),n.d(t,"Gb",(function(){return Ot})),n.d(t,"Ib",(function(){return yt})),n.d(t,"Pb",(function(){return Ct})),n.d(t,"hc",(function(){return It}));var o="app/loading",a="SET_SNACKBAR",r="@customization/SET_MENU",i="@customization/MENU_OPEN",l="@customization/SET_FONT_FAMILY",d="@customization/SET_BORDER_RADIUS",c="/account",s="/account/last",u="/account/username/:username",p="/account/create",v="/account/update",m="/account/delete",b="/account/deletes",h="SET_ACCOUNT",f="SET_ACCOUNTS",j="/answer",g="/answer/last",x="/answer/project-names",O="/answer/topics",y="/answer/results",C="/answer/form-names",I="/answer/create",E="/answer/uploads",w="/answer/creates",T="/answer/update",N="/answer/delete",D="/answer/deletes",A="/answer/bm-analytics",R="/answer/pm-analytics",k="SET_ANSWERS",S="/area",z="/area/last",P="/area/code/:areaCode",M="/area/create",L="/area/update",B="/area/delete",q="/area/deletes",F="SET_AREAS",G="/card",V="/card/last",_="/card/create",U="/card/create-items",W="/card/update",Y="/card/delete",J="/card/deletes",H="SET_CARDS",Z="SET_CARD_STATUS",Q="CREATE_TASK",X="CREATE_TASKS",K="UPDATE_TASK",$="DELETE_TASK",ee="/dept",te="/dept/last",ne="/dept/code/:deptCode",oe="/dept/create",ae="/dept/update",re="/dept/delete",ie="/dept/deletes",le="SET_DEPARTMENTS",de="/event",ce="/event/last",se="/event/create",ue="/event/update",pe="/event/delete",ve="/event/deletes",me="/event/delete-by-date-range",be="SET_EVENTS",he="/floor",fe="/floor/last",je="/floor/create",ge="/floor/update",xe="/floor/delete",Oe="/floor/deletes",ye="SET_FLOORS",Ce="/form",Ie="/form/last",Ee="/form/create",we="/form/update",Te="/form/delete",Ne="/form/deletes",De="SET_FORMS",Ae="/request",Re="/request/last",ke="/request/:requestId",Se="/request/create",ze="/request/update",Pe="/request/reorder",Me="/request/approve/:requestId",Le="/request/delete",Be="/request/deletes",qe="SET_REQUESTS",Fe="SET_REQUEST_STATUS",Ge="CREATE_REQUEST",Ve="UPDATE_REQUEST",_e="UPDATE_REQUEST_NULL",Ue="UPDATE_REQUEST_ORDER",We="UPDATE_REQUEST_ORDER_END",Ye="DELETE_REQUEST",Je="SET_COLUMNS",He="SET_ORDERED",Ze="/problem",Qe="/problem/last",Xe="/problem/code/:problemCode",Ke="/problem/create",$e="/problem/update",et="/problem/delete",tt="/problem/deletes",nt="SET_PROBLEMS",ot="/project",at="/project/last",rt="/project/code/:projectCode",it="/project/create",lt="/project/update",dt="/project/delete",ct="/project/deletes",st="SET_PROJECTS",ut="/user",pt="/user/last",vt="/user/create",mt="/user/forgot-password",bt="/user/reset-password",ht="/user/change-password",ft="/user/update",jt="/user/delete",gt="/user/deletes",xt="/user/authen",Ot="/user/login",yt="/user/register",Ct="SET_AUTH_USER",It="SET_USERS"},536:function(e,t,n){"use strict";t.a=n.p+"static/media/default_logo3.1626757a.png"},540:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var o=n(11),a=(n(13),n(5)),r={isLoading:!1,error:null,success:null,snackbar:{open:!1,vertical:"bottom",horizontal:"center",severity:"info",message:""}},i=function(e){return{type:a.Zb,payload:e}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case a.Zb:return Object(o.a)(Object(o.a)({},e),{},{isLoading:n});case a.gc:return Object(o.a)(Object(o.a)({},e),{},{snackbar:n});default:return e}}},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(15),a=n.n(o),r=function(e){var t=a.a.keys(e),n=a.a.join(a.a.map(t,(function(t){var n=e[t];return"".concat(t,"=").concat(n)})),"&");return t.length>0?"?".concat(n):""}},69:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var o=2,a=260},725:function(e,t){},775:function(e,t){},777:function(e,t){},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n(25),a=n(39),r=n(258),i=n(554),l=n.n(i),d=n(381),c=function(){var t=Object(a.a)(Object(o.a)().mark((function t(n){var r,i,d;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n).then(function(){var t=Object(a.a)(Object(o.a)().mark((function t(n){var a;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,n.arrayBuffer();case 3:return t.t1=t.sent,a=t.t0.from.call(t.t0,t.t1),t.abrupt("return",l()({buffer:a,format:"PNG"}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:return r=t.sent,i=btoa(r.reduce((function(e,t){return"".concat(e).concat(String.fromCharCode(t))}),"")),d="data:image/png;base64,".concat(i),t.abrupt("return",d);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),s=function(e,t){return function(e){return new Promise(function(){var t=Object(a.a)(Object(o.a)().mark((function t(n){var a;return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(p(e)){t.next=2;break}return t.abrupt("return",n(e));case 2:if("string"!==typeof e){t.next=9;break}return t.next=5,c(e);case 5:a=t.sent,n(a),t.next=10;break;case 9:r({blob:e,toType:"image/jpeg",quality:.3}).then((function(e){n(e)}));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}(e).then((function(n){var o=n;o="string"===typeof e?n:URL.createObjectURL(n),document.getElementById(t)&&(document.getElementById(t).src=o)})),d.a},u=function(e,t){var n=d.a;return n="string"===typeof e?e:URL.createObjectURL(e),document.getElementById(t)&&(document.getElementById(t).src=n),n},p=function(e){if("string"===typeof e)return e.indexOf("heic")>-1;var t=null!==e&&void 0!==e&&e.type?e.type.split("image/").pop():null!==e&&void 0!==e&&e.name?e.name.split(".").pop().toLowerCase():null;return"heic"==t||"heif"==t}}).call(this,n(42).Buffer)},811:function(e,t){},813:function(e,t){},841:function(e,t){},842:function(e,t){},847:function(e,t){},849:function(e,t){},856:function(e,t){},875:function(e,t){},901:function(e,t,n){},902:function(e,t,n){"use strict";n.r(t);var o=n(88),a=n.n(o),r=n(80),i=n(53);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var l=n(0),d=n(1035),c=n(1021),s=n(563),u=n(1028),p=n(1022),v=n(73),m=n(245),b=n(43),h=n(8),f=n(3),j=n(11),g=n(392),x=n(9),O=n(55),y=n(1005),C=n(1036),I=n(1009),E=n(1052),w=n(1053),T=n(86),N=n(123),D=n(566),A=n(924),R=n(565),k=n(1029),S=n(13),z=n(69),P=n(36),M=n(388),L=n.n(M),B=n(547),q=n.n(B),F=n(546),G=n.n(F),V=n(1),U=["card","divider","icon","icons","maxItems","navigation","rightAlign","separator","title","titleBottom"],W={display:"flex",color:"grey.900",textDecoration:"none",alignContent:"center",alignItems:"center"},Y=function(e){var t=e.card,n=e.divider,o=e.icon,a=e.icons,i=e.maxItems,d=e.navigation,c=e.rightAlign,s=e.separator,u=e.title,p=e.titleBottom,v=Object(T.a)(e,U),m=Object(O.a)(),b={marginRight:m.spacing(.75),marginTop:"-".concat(m.spacing(.25)),width:"1rem",height:"1rem",color:m.palette.secondary.main},f=Object(l.useState)(),g=Object(h.a)(f,2),x=g[0],y=g[1],I=Object(l.useState)(),E=Object(h.a)(I,2),w=E[0],M=E[1],B=function e(t){t.children&&t.children.filter((function(n){return n.type&&"collapse"===n.type?e(n):n.type&&"item"===n.type&&document.location.pathname===S.a.basename+n.url&&(y(t),M(n)),!1}))};Object(l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.items)||void 0===e||e.map((function(e){return e.type&&"group"===e.type&&B(e),!1}))}));var F,_,Y,J,H=s,Z=s?Object(V.jsx)(H,{stroke:1.5,size:"1rem"}):Object(V.jsx)(P.B,{stroke:1.5,size:"1rem"}),Q=Object(V.jsx)(N.a,{}),X="";return x&&"collapse"===x.type&&(Y=x.icon?x.icon:L.a,F=Object(V.jsxs)(N.a,{component:r.b,to:"#",variant:"subtitle1",sx:W,children:[a&&Object(V.jsx)(Y,{style:b}),x.title]})),w&&"item"===w.type&&(X=w.title,J=w.icon?w.icon:L.a,_=Object(V.jsxs)(N.a,{variant:"subtitle1",sx:{display:"flex",textDecoration:"none",alignContent:"center",alignItems:"center",color:"grey.500"},children:[a&&Object(V.jsx)(J,{style:b}),X]}),!1!==w.breadcrumbs&&(Q=Object(V.jsxs)(D.a,Object(j.a)(Object(j.a)({sx:{marginBottom:!1===t?0:m.spacing(z.b),border:!1===t?"none":"1px solid",borderColor:m.palette.primary[200]+75,background:!1===t?"transparent":m.palette.background.default}},v),{},{children:[Object(V.jsx)(C.a,{sx:{p:2,pl:!1===t?0:2},children:Object(V.jsxs)(A.a,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[u&&!p&&Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(N.a,{variant:"h3",sx:{fontWeight:500},children:w.title})}),Object(V.jsx)(A.a,{item:!0,children:Object(V.jsxs)(k.a,{sx:{"& .MuiBreadcrumbs-separator":{width:16,ml:1.25,mr:1.25}},"aria-label":"breadcrumb",maxItems:i||8,separator:Z,children:[Object(V.jsxs)(N.a,{component:r.b,to:"/",color:"inherit",variant:"subtitle1",sx:W,children:[a&&Object(V.jsx)(G.a,{sx:b}),o&&Object(V.jsx)(q.a,{sx:Object(j.a)(Object(j.a)({},b),{},{mr:0})}),!o&&"Dashboard"]}),F,_]})}),u&&p&&Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(N.a,{variant:"h3",sx:{fontWeight:500},children:w.title})})]})}),!1===t&&!1!==n&&Object(V.jsx)(R.a,{sx:{borderColor:m.palette.primary.main,mb:z.b}})]})))),Q},J=n(921),H=n(1032),Z=n(403),Q=function(){return Object(V.jsx)(J.a,{disableRipple:!0,component:r.b,to:S.a.defaultPath,children:Object(V.jsx)(Z.a,{width:"50px",height:"50px"})})},X=n(918),K=n(1038),$=(n(1039),n(243),n(912)),ee=n(1037),te=n(913),ne=n(995),oe=n(996),ae=["children","position","type","direction"],re=Object(l.forwardRef)((function(e,t){var n=e.children,o=e.position,a=e.type,r=e.direction,i=Object(T.a)(e,ae),l={transformOrigin:"0 0 0"};switch(o){case"top-right":l={transformOrigin:"top right"};break;case"top":l={transformOrigin:"top"};break;case"bottom-left":l={transformOrigin:"bottom left"};break;case"bottom-right":l={transformOrigin:"bottom right"};break;case"bottom":l={transformOrigin:"bottom"};break;default:l={transformOrigin:"0 0 0"}}return Object(V.jsxs)(C.a,{ref:t,children:["grow"===a&&Object(V.jsx)($.a,Object(j.a)(Object(j.a)({},i),{},{children:Object(V.jsx)(C.a,{sx:l,children:n})})),"collapse"===a&&Object(V.jsx)(ee.a,Object(j.a)(Object(j.a)({},i),{},{sx:l,children:n})),"fade"===a&&Object(V.jsx)(te.a,Object(j.a)(Object(j.a)({},i),{},{timeout:{appear:500,enter:600,exit:400},children:Object(V.jsx)(C.a,{sx:l,children:n})})),"slide"===a&&Object(V.jsx)(ne.a,Object(j.a)(Object(j.a)({},i),{},{timeout:{appear:0,enter:400,exit:200},direction:r,children:Object(V.jsx)(C.a,{sx:l,children:n})})),"zoom"===a&&Object(V.jsx)(oe.a,Object(j.a)(Object(j.a)({},i),{},{children:Object(V.jsx)(C.a,{sx:l,children:n})}))]})}));re.defaultProps={type:"grow",position:"top-left",direction:"up"};var ie=re,le=n(394),de=(Object(x.a)(X.a,{shouldForwardProp:le.b})((function(e){var t=e.theme;return Object(f.a)({zIndex:1100,width:"99%",top:"-55px !important",padding:"0 12px"},t.breakpoints.down("sm"),{padding:"0 10px"})})),Object(x.a)(K.a,{shouldForwardProp:le.b})((function(e){var t,n=e.theme;return t={width:434,marginLeft:16,paddingLeft:16,paddingRight:16,"& input":{background:"transparent !important",paddingLeft:"4px !important"}},Object(f.a)(t,n.breakpoints.down("lg"),{width:250}),Object(f.a)(t,n.breakpoints.down("md"),{width:"100%",marginLeft:4,background:"#fff"}),t})),Object(x.a)(H.a,{shouldForwardProp:le.b})((function(e){var t=e.theme;return Object(j.a)(Object(j.a)(Object(j.a)({},t.typography.commonAvatar),t.typography.mediumAvatar),{},{background:t.palette.secondary.light,color:t.palette.secondary.dark,"&:hover":{background:t.palette.secondary.dark,color:t.palette.secondary.light}})})),n(25)),ce=n(39),se=n(998),ue=n(1001),pe=n(927),ve=n(1040),me=n(1041),be=n(329),he=n(1042),fe=n(1043),je=n(1033),ge=n(395),xe=n(916),Oe=n(915),ye=n(1044),Ce=n(1003),Ie=n(917),Ee=n(1004),we=n(83),Te=n(159),Ne=n.n(Te),De=n(189),Ae=n(567),Re=n(330),ke=Object(x.a)(D.a)((function(e){var t=e.theme;return{background:t.palette.warning.light,marginTop:"16px",marginBottom:"16px",overflow:"hidden",position:"relative","&:after":{content:'""',position:"absolute",width:"200px",height:"200px",border:"19px solid ",borderColor:t.palette.warning.main,borderRadius:"50%",top:"65px",right:"-150px"},"&:before":{content:'""',position:"absolute",width:"200px",height:"200px",border:"3px solid ",borderColor:t.palette.warning.main,borderRadius:"50%",top:"145px",right:"-70px"}}})),Se=function(e){return Object(V.jsx)(ke,{children:Object(V.jsx)(Ae.a,{children:Object(V.jsxs)(A.a,{container:!0,direction:"column",spacing:2,children:[Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(N.a,{variant:"h4",children:"Upgrade your plan"})}),Object(V.jsx)(A.a,{item:!0,children:Object(V.jsxs)(N.a,{variant:"subtitle2",color:"grey.900",sx:{opacity:.6},children:["70% discount for 1 years ",Object(V.jsx)("br",{}),"subscriptions."]})}),Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(Oe.a,{direction:"row",children:Object(V.jsx)(Re.a,{children:Object(V.jsx)(be.a,{variant:"contained",color:"warning",sx:{boxShadow:"none"},children:"Go Premium"})})})})]})})})},ze=n.p+"static/media/default_user.724b79cd.png",Pe=n(251),Me=n.n(Pe),Le=n(147),Be=n(98),qe=n(171),Fe=(n(81),n(56)),Ge=n.n(Fe),Ve=n(149),_e=["children","onClose"],Ue=Object(x.a)(se.a)((function(e){var t=e.theme;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}})),We=function(e){var t=e.children,n=e.onClose,o=Object(T.a)(e,_e);return Object(V.jsxs)(ue.a,Object(j.a)(Object(j.a)({sx:{m:0,p:2}},o),{},{children:[t,n?Object(V.jsx)(pe.a,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:function(e){return e.palette.grey[500]}},children:Object(V.jsx)(Me.a,{})}):null]}))},Ye=Object(x.a)("input")({display:"none"}),Je=function(){var e=Object(O.a)(),t=Object(i.d)((function(e){return e.customization})),n=Object(i.d)((function(e){return e})),o=Object(i.d)((function(e){return e.user.authUser})),a=Object(i.d)((function(e){return e.account.account})),r=Object(b.g)(),d=Object(i.c)(),c=Object(l.useState)(!0),s=Object(h.a)(c,2),u=(s[0],s[1],Object(l.useState)("")),p=Object(h.a)(u,2),v=(p[0],p[1],Object(l.useState)(!1)),m=Object(h.a)(v,2),g=(m[0],m[1],Object(l.useState)(-1)),x=Object(h.a)(g,2),y=x[0],I=(x[1],Object(l.useState)(!1)),E=Object(h.a)(I,2),w=E[0],T=E[1],D=Object(l.useState)(!1),k=Object(h.a)(D,2),S=k[0],M=k[1],L=Object(l.useState)(!1),B=Object(h.a)(L,2),q=B[0],F=B[1],G=Object(l.useState)("UPDATE"),U=Object(h.a)(G,2),W=U[0],Y=(U[1],Object(l.useState)(null)),J=Object(h.a)(Y,2),Z=J[0],Q=J[1],$=Object(l.useRef)(null),ee=function(){var e=Object(ce.a)(Object(de.a)().mark((function e(){return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d(Object(Le.i)((function(){r("/login")})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(e){$.current&&$.current.contains(e.target)||T(!1)},ne=function(){M(!1)},oe=Object(l.useRef)(w);Object(l.useEffect)((function(){!0===oe.current&&!1===w&&$.current.focus(),oe.current=w}),[w]);var ae=function(e,t){var n=e;console.log("changePassword",n),d(Ve.a(n,(function(e,n){e&&t(e)})))};return Object(V.jsxs)(V.Fragment,{children:[Object(V.jsx)(je.a,{sx:{height:"48px",alignItems:"center",borderRadius:"27px",transition:"all .2s ease-in-out",borderColor:e.palette.primary.light,backgroundColor:e.palette.primary.light,'&[aria-controls="menu-list-grow"], &:hover':{borderColor:e.palette.primary.main,background:"".concat(e.palette.primary.main,"!important"),color:e.palette.primary.light,"& svg":{stroke:e.palette.primary.light}},"& .MuiChip-label":{lineHeight:0}},icon:Object(V.jsx)(H.a,{src:a&&null!==a&&void 0!==a&&a.accountImage?Object(Be.a)(null===a||void 0===a?void 0:a.accountImage):ze,sx:Object(j.a)(Object(j.a)({},e.typography.mediumAvatar),{},{margin:"8px 0 8px 8px !important",cursor:"pointer"}),ref:$,"aria-controls":w?"menu-list-grow":void 0,"aria-haspopup":"true",color:"inherit"}),label:Object(V.jsx)(P.z,{stroke:1.5,size:"1.5rem",color:e.palette.primary.main}),variant:"outlined",ref:$,"aria-controls":w?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:function(){T((function(e){return!e}))},color:"primary"}),Object(V.jsx)(X.a,{placement:"bottom-end",open:w,anchorEl:$.current,role:void 0,transition:!0,disablePortal:!0,popperOptions:{modifiers:[{name:"offset",options:{offset:[0,14]}}]},children:function(n){var r,i=n.TransitionProps;return Object(V.jsx)(ie,Object(j.a)(Object(j.a)({in:w},i),{},{children:Object(V.jsx)(ge.a,{children:Object(V.jsx)(xe.a,{onClickAway:te,children:Object(V.jsxs)(De.a,{border:!1,elevation:16,content:!1,boxShadow:!0,shadow:e.shadows[16],children:[Object(V.jsx)(C.a,{sx:{p:2},children:Object(V.jsxs)(Oe.a,{children:[Object(V.jsx)(Oe.a,{direction:"row",spacing:.5,alignItems:"center",children:Object(V.jsx)(N.a,{variant:"h4",children:"\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35"})}),Object(V.jsx)(N.a,{component:"span",variant:"h4",sx:{fontWeight:400},children:(null===a||void 0===a?void 0:a.accountName)||(null===o||void 0===o?void 0:o.username)}),Object(V.jsxs)(N.a,{variant:"subtitle2",children:[(null===a||void 0===a?void 0:a.accountCode)||""," [",(null===a||void 0===a?void 0:a.position)||(null===o||void 0===o?void 0:o.level),"]"]})]})}),Object(V.jsx)(R.a,{}),Object(V.jsx)(Ne.a,{style:{height:"100%",maxHeight:"calc(100vh - 250px)",overflowX:"hidden"},children:Object(V.jsxs)(C.a,{sx:{p:2},children:[(null===a||void 0===a?void 0:a.license)&&Object(V.jsx)(je.a,{label:null===a||void 0===a?void 0:a.license,color:"FREE"!=(null===a||void 0===a?void 0:a.license)?"info":"default",variant:"outlined",size:"small"}),Object(V.jsx)(Se,{}),Object(V.jsx)(R.a,{}),Object(V.jsxs)(ye.a,{component:"nav",sx:(r={width:"100%",maxWidth:350,minWidth:300,backgroundColor:e.palette.background.paper,borderRadius:"10px"},Object(f.a)(r,e.breakpoints.down("md"),{minWidth:"100%"}),Object(f.a)(r,"& .MuiListItemButton-root",{mt:.5}),r),children:[Object(V.jsxs)(Ce.a,{sx:{borderRadius:"".concat(t.borderRadius,"px")},selected:2===y,onClick:function(){Q(a),M(!0)},children:[Object(V.jsx)(Ie.a,{children:Object(V.jsx)(P.o,{stroke:1.5,size:"1.3rem"})}),Object(V.jsx)(Ee.a,{primary:Object(V.jsx)(N.a,{variant:"body2",children:"\u0e41\u0e01\u0e49\u0e44\u0e02 Profile"})})]}),Object(V.jsxs)(Ce.a,{sx:{borderRadius:"".concat(t.borderRadius,"px")},selected:3===y,onClick:function(){F(!0)},children:[Object(V.jsx)(Ie.a,{children:Object(V.jsx)(P.s,{stroke:1.5,size:"1.3rem"})}),Object(V.jsx)(Ee.a,{primary:Object(V.jsx)(N.a,{variant:"body2",children:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"})})]}),Object(V.jsxs)(Ce.a,{sx:{borderRadius:"".concat(t.borderRadius,"px")},selected:4===y,onClick:ee,children:[Object(V.jsx)(Ie.a,{children:Object(V.jsx)(P.t,{stroke:1.5,size:"1.3rem"})}),Object(V.jsx)(Ee.a,{primary:Object(V.jsx)(N.a,{variant:"body2",children:"\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a"})})]})]})]})})]})})})}))}}),function(){var e,t;return Object(V.jsxs)(Ue,{onClose:ne,"aria-labelledby":"customized-dialog-title",open:S,children:[Object(V.jsx)(We,{id:"customized-dialog-title",onClose:ne,children:Object(V.jsx)("span",{style:{fontSize:"15px"},children:"\u0e41\u0e01\u0e49\u0e44\u0e02 Profile"})}),Object(V.jsx)(ve.a,{dividers:!0,children:Object(V.jsx)(qe.a,{initialValues:_.extend({},Z,{isChangeFile:!1,oldAccountImage:null===Z||void 0===Z?void 0:Z.accountImage,updatedBy:null===n||void 0===n||null===(e=n.user)||void 0===e||null===(t=e.authUser)||void 0===t?void 0:t.username}),validationSchema:we.b().shape({}),onSubmit:function(){var e=Object(ce.a)(Object(de.a)().mark((function e(t,n){return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.setErrors,n.setStatus,n.setSubmitting,n.resetForm;case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),children:function(e){var t=e.errors,n=e.handleBlur,o=e.handleChange,a=e.handleSubmit,r=e.setFieldValue,i=(e.isSubmitting,e.touched),l=e.values;return Object(V.jsx)("form",{noValidate:!0,onSubmit:a,children:Object(V.jsxs)(A.a,{container:!0,spacing:z.b,children:[Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsx)(H.a,{src:l&&null!==l&&void 0!==l&&l.accountImage?Object(Be.a)(null===l||void 0===l?void 0:l.accountImage):ze,sx:{width:150,height:150,marginLeft:"auto",marginRight:"auto"},alt:l.accountName,color:"inherit"})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px",textAlign:"center"},children:Object(V.jsx)(me.a,{fullWidth:!0,children:Object(V.jsxs)("label",{htmlFor:"outlined-accountImage-form",children:[Object(V.jsx)(Ye,{accept:"image/*",id:"outlined-accountImage-form",type:"file",disabled:"VIEW_DETAILS"==W,onChange:function(e){!function(e,t,n){var o=_.pick(e,["accountId","accountImage","updatedBy"]);o.accountImage=t,console.log("updateItem",o),d(Ve.i(o,(function(e,t){e&&(d(Ve.h(e)),n(e))})))}(l,e.currentTarget.files[0],(function(e){r("isChangeFile",!0),r("accountImage",e.accountImage)}))}}),Object(V.jsx)(be.a,{variant:"outlined",component:"span",children:"Upload Image"})]})})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-accountName-form",children:"Account Name"}),Object(V.jsx)(K.a,{id:"outlined-accountName-form",type:"text",name:"accountName",value:l.accountName,onBlur:n,onChange:o,label:"Account Name",inputProps:{},readOnly:!0}),i.accountName&&t.accountName&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-accountName-login",children:t.accountName})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-username-form",children:"Username"}),Object(V.jsx)(K.a,{id:"outlined-username-form",type:"text",name:"username",value:l.username,onBlur:n,onChange:o,label:"Username",inputProps:{},readOnly:!0}),i.username&&t.username&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-username-login",children:t.username})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-createdAt-form",children:"Register at"}),Object(V.jsx)(K.a,{id:"outlined-createdAt-form",type:"text",name:"createdAt",value:Ge()(l.createdAt).format("DD/MM/YYYY"),onBlur:n,onChange:o,label:"Register at",inputProps:{},readOnly:!0}),i.createdAt&&t.createdAt&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-createdAt-login",children:t.createdAt})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-projectCode-form",children:"Project Code"}),Object(V.jsx)(K.a,{id:"outlined-projectCode-form",type:"text",name:"projectCode",value:l.projectCode,onBlur:n,onChange:o,label:"Project Code",inputProps:{},readOnly:!0}),i.projectCode&&t.projectCode&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-projectCode-login",children:t.projectCode})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-deptCode-form",children:"Department Code"}),Object(V.jsx)(K.a,{id:"outlined-deptCode-form",type:"text",name:"deptCode",value:l.deptCode,onBlur:n,onChange:o,label:"Department Code",inputProps:{},readOnly:!0}),i.deptCode&&t.deptCode&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-deptCode-login",children:t.deptCode})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-position-form",children:"Position"}),Object(V.jsx)(K.a,{id:"outlined-position-form",type:"text",name:"position",value:l.position,onBlur:n,onChange:o,label:"Position",inputProps:{},readOnly:!0}),i.position&&t.position&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-position-login",children:t.position})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsx)(R.a,{})}),t.submit&&Object(V.jsx)(C.a,{sx:{mt:3},children:Object(V.jsx)(fe.a,{error:!0,children:t.submit})})]})})}})})]})}(),function(){var e,t,o,a;return Object(V.jsxs)(Ue,{onClose:function(){F(!1)},"aria-labelledby":"customized-dialog-title",open:q,children:[Object(V.jsx)(We,{id:"customized-dialog-title",onClose:function(){F(!1)},children:Object(V.jsx)("span",{style:{fontSize:"15px"},children:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"})}),Object(V.jsx)(ve.a,{dividers:!0,children:Object(V.jsx)(qe.a,{initialValues:_.extend({},Z,{userId:null===n||void 0===n||null===(e=n.user)||void 0===e||null===(t=e.authUser)||void 0===t?void 0:t.userId,oldPassword:"",newPassword:"",confirmPassword:"",updatedBy:null===n||void 0===n||null===(o=n.user)||void 0===o||null===(a=o.authUser)||void 0===a?void 0:a.username}),validationSchema:we.b().shape({oldPassword:we.c().required("Old password is required"),newPassword:we.c().required("New password is required"),confirmPassword:we.c().required("Confirm password is required")}),onSubmit:function(){var e=Object(ce.a)(Object(de.a)().mark((function e(t,n){var o;return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.setErrors,n.setStatus,n.setSubmitting,o=n.resetForm,console.log(t),ae(t,(function(){o(),F(!1)}));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),children:function(e){var t=e.errors,n=e.handleBlur,o=e.handleChange,a=e.handleSubmit,r=e.resetForm,i=e.isSubmitting,l=e.touched,d=e.values;return Object(V.jsx)("form",{noValidate:!0,onSubmit:a,children:Object(V.jsxs)(A.a,{container:!0,spacing:z.b,children:[Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-oldPassword-form",children:"Old Password"}),Object(V.jsx)(K.a,{id:"outlined-oldPassword-form",type:"password",name:"oldPassword",value:d.oldPassword,onBlur:n,onChange:o,label:"Old Password",inputProps:{}}),l.oldPassword&&t.oldPassword&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-oldPassword-login",children:t.oldPassword})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-newPassword-form",children:"New Password"}),Object(V.jsx)(K.a,{id:"outlined-newPassword-form",type:"password",name:"newPassword",value:d.newPassword,onBlur:n,onChange:o,label:"New Password",inputProps:{}}),l.newPassword&&t.newPassword&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-newPassword-login",children:t.newPassword})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsxs)(me.a,{fullWidth:!0,children:[Object(V.jsx)(he.a,{htmlFor:"outlined-confirmPassword-form",children:"Confirm New Password"}),Object(V.jsx)(K.a,{id:"outlined-confirmPassword-form",type:"password",name:"confirmPassword",value:d.confirmPassword,onBlur:n,onChange:o,label:"Confirm New Password",inputProps:{}}),l.confirmPassword&&t.confirmPassword&&Object(V.jsx)(fe.a,{error:!0,id:"standard-weight-helper-text-confirmPassword-login",children:t.confirmPassword})]})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px"},children:Object(V.jsx)(R.a,{})}),t.submit&&Object(V.jsx)(C.a,{sx:{mt:3},children:Object(V.jsx)(fe.a,{error:!0,children:t.submit})}),Object(V.jsx)(A.a,{item:!0,lg:12,md:12,sm:12,xs:12,style:{paddingTop:"15px",textAlign:"right"},children:Object(V.jsxs)(C.a,{sx:{mt:2},style:{textAlign:"right"},children:[Object(V.jsx)(be.a,{size:"medium",variant:"outlined",color:"primary",style:{marginRight:"10px",marginLeft:"10px"},onClick:function(){r(),F(!1)},children:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01"}),Object(V.jsx)(be.a,{disabled:i||"VIEW_DETAILS"==W,size:"medium",type:"submit",variant:"contained",color:"primary",children:"\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01"})]})})]})})}})})]})}()]})},He=n(1048),Ze=(n(1049),n(1045),n(1047),n(1046),n.p,Object(x.a)("div")((function(e){return{cursor:"pointer",padding:16,"&:hover":{background:e.theme.palette.primary.light},"& .MuiListItem-root":{padding:0}}})),function(e){var t=e.handleLeftDrawerToggle,n=Object(O.a)();Object(i.d)((function(e){return e}));return Object(V.jsxs)(V.Fragment,{children:[Object(V.jsxs)(C.a,{sx:Object(f.a)({width:228,display:"flex"},n.breakpoints.down("md"),{width:"auto"}),children:[Object(V.jsx)(C.a,{component:"span",sx:{display:{xs:"none",md:"block"},flexGrow:1},children:Object(V.jsx)(Q,{})}),Object(V.jsx)(J.a,{sx:{borderRadius:"12px",overflow:"hidden"},children:Object(V.jsx)(H.a,{variant:"rounded",sx:Object(j.a)(Object(j.a)(Object(j.a)({},n.typography.commonAvatar),n.typography.mediumAvatar),{},{transition:"all .2s ease-in-out",background:n.palette.secondary.light,color:n.palette.secondary.dark,"&:hover":{background:n.palette.secondary.dark,color:n.palette.secondary.light}}),onClick:t,color:"inherit",children:Object(V.jsx)(P.v,{stroke:1.5,size:"1.3rem"})})})]}),Object(V.jsx)(C.a,{sx:{flexGrow:1}}),Object(V.jsx)(C.a,{sx:{flexGrow:1}}),Object(V.jsx)(Je,{})]})}),Qe=n(1050),Xe=n(390),Ke=n(5),$e=n(304),et=n.n($e),tt=function(e){var t=e.item,n=e.level,o=Object(O.a)(),a=Object(i.c)(),d=Object(i.d)((function(e){return e.customization})),c=Object(y.a)(o.breakpoints.down("lg")),s=t.icon,u=null!==t&&void 0!==t&&t.icon?Object(V.jsx)(s,{stroke:1.5,size:"1.3rem"}):Object(V.jsx)(et.a,{sx:{width:d.isOpen.findIndex((function(e){return e===(null===t||void 0===t?void 0:t.id)}))>-1?8:6,height:d.isOpen.findIndex((function(e){return e===(null===t||void 0===t?void 0:t.id)}))>-1?8:6},fontSize:n>0?"inherit":"medium"}),p="_self";t.target&&(p="_blank");var v={component:Object(l.forwardRef)((function(e,n){return Object(V.jsx)(r.b,Object(j.a)(Object(j.a)({ref:n},e),{},{to:"".concat(S.a.basename).concat(t.url),target:p}))}))};null!==t&&void 0!==t&&t.external&&(v={component:"a",href:t.url,target:p});return Object(l.useEffect)((function(){document.location.pathname.toString().split("/").findIndex((function(e){return e===t.id}))>-1&&a({type:Ke.Hb,id:t.id})}),[]),Object(V.jsxs)(Ce.a,Object(j.a)(Object(j.a)({},v),{},{disabled:t.disabled,sx:{borderRadius:"".concat(d.borderRadius,"px"),mb:.5,alignItems:"flex-start",backgroundColor:n>1?"transparent !important":"inherit",py:n>1?1:1.25,pl:"".concat(24*n,"px")},selected:d.isOpen.findIndex((function(e){return e===t.id}))>-1,onClick:function(){return e=t.id,a({type:Ke.Hb,id:e}),void(c&&a({type:Ke.ac,opened:!1}));var e},children:[Object(V.jsx)(Ie.a,{sx:{my:"auto",minWidth:null!==t&&void 0!==t&&t.icon?36:18},children:u}),Object(V.jsx)(Ee.a,{primary:Object(V.jsx)(N.a,{variant:d.isOpen.findIndex((function(e){return e===t.id}))>-1?"h5":"body1",color:"inherit",children:t.title}),secondary:t.caption&&Object(V.jsx)(N.a,{variant:"caption",sx:Object(j.a)({},o.typography.subMenuCaption),display:"block",gutterBottom:!0,children:t.caption})}),t.chip&&Object(V.jsx)(je.a,{color:t.chip.color,variant:t.chip.variant,size:t.chip.size,label:t.chip.label,avatar:t.chip.avatar&&Object(V.jsx)(H.a,{children:t.chip.avatar})})]}))},nt=function e(t){var n,o=t.menu,a=t.level,r=Object(O.a)(),d=Object(i.d)((function(e){return e.customization})),c=(Object(i.d)((function(e){return e.user})),Object(l.useState)(!1)),s=Object(h.a)(c,2),u=s[0],p=s[1],v=Object(l.useState)(null),m=Object(h.a)(v,2),b=m[0],f=m[1],g=null===(n=o.children)||void 0===n?void 0:n.map((function(t){switch(t.type){case"collapse":return Object(V.jsx)(e,{menu:t,level:a+1},t.id);case"item":return Object(V.jsx)(tt,{item:t,level:a+1},t.id);default:return Object(V.jsx)(N.a,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},t.id)}})),x=o.icon,y=o.icon?Object(V.jsx)(x,{strokeWidth:1.5,size:"1.3rem",style:{marginTop:"auto",marginBottom:"auto"}}):Object(V.jsx)(et.a,{sx:{width:b===o.id?8:6,height:b===o.id?8:6},fontSize:a>0?"inherit":"medium"});return Object(V.jsxs)(V.Fragment,{children:[Object(V.jsxs)(Ce.a,{sx:{borderRadius:"".concat(d.borderRadius,"px"),mb:.5,alignItems:"flex-start",backgroundColor:a>1?"transparent !important":"inherit",py:a>1?1:1.25,pl:"".concat(24*a,"px")},selected:b===o.id,onClick:function(){p(!u),f(b?null:o.id)},children:[Object(V.jsx)(Ie.a,{sx:{my:"auto",minWidth:o.icon?36:18},children:y}),Object(V.jsx)(Ee.a,{primary:Object(V.jsx)(N.a,{variant:b===o.id?"h5":"body1",color:"inherit",sx:{my:"auto"},children:o.title}),secondary:o.caption&&Object(V.jsx)(N.a,{variant:"caption",sx:Object(j.a)({},r.typography.subMenuCaption),display:"block",gutterBottom:!0,children:o.caption})}),u?Object(V.jsx)(P.j,{stroke:1.5,size:"1rem",style:{marginTop:"auto",marginBottom:"auto"}}):Object(V.jsx)(P.h,{stroke:1.5,size:"1rem",style:{marginTop:"auto",marginBottom:"auto"}})]}),Object(V.jsx)(ee.a,{in:u,timeout:"auto",unmountOnExit:!0,children:Object(V.jsx)(ye.a,{component:"div",disablePadding:!0,sx:{position:"relative","&:after":{content:"''",position:"absolute",left:"32px",top:0,height:"100%",width:"1px",opacity:1,background:r.palette.primary.light}},children:g})})]})},ot=n(536),at=function(e){var t,n=e.item,o=Object(O.a)(),a=null===(t=n.children)||void 0===t?void 0:t.map((function(e){switch(e.type){case"collapse":return Object(V.jsx)(nt,{menu:e,level:1},e.id);case"item":return Object(V.jsx)(tt,{item:e,level:1},e.id);default:return Object(V.jsx)(N.a,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},e.id)}}));return Object(V.jsxs)(V.Fragment,{children:[Object(V.jsx)(ye.a,{subheader:n.title&&Object(V.jsxs)(N.a,{variant:"caption",sx:Object(j.a)({},o.typography.menuCaption),display:"block",gutterBottom:!0,children:[n.title,n.caption&&Object(V.jsx)(N.a,{variant:"caption",sx:Object(j.a)({},o.typography.subMenuCaption),display:"block",gutterBottom:!0,children:n.caption})]}),children:a}),Object(V.jsx)(R.a,{sx:{mt:.25,mb:1.25}}),Object(V.jsx)("div",{style:{flex:1}}),Object(V.jsx)("div",{style:{textAlign:"center"},children:Object(V.jsx)("img",{src:ot.a,style:{width:"70%",padding:"0px 20px"}})})]})},rt={IconBellRinging:P.d,IconDashboard:P.k,IconDatabase:P.l,IconHome:P.q,IconDetails:P.m,IconUser:P.E,IconSettings:P.z,IconDeviceDesktopAnalytics:P.n,IconAlertTriangle:P.b,IconTool:P.C},it={id:"menus",title:"Menu",type:"group",children:[{id:"overview",title:"Vendor Monitoring",type:"item",url:"/overview",icon:rt.IconDashboard,breadcrumbs:!1},{id:"request-on-board",title:"Request on board",type:"item",url:"/request-on-board",icon:rt.IconAlertTriangle,breadcrumbs:!1},{id:"bm-dashboard",title:"BM Dashboard",type:"item",url:"/bm-dashboard",icon:rt.IconDeviceDesktopAnalytics,breadcrumbs:!1},{id:"pm-dashboard",title:"PM Dashboard",type:"item",url:"/pm-dashboard",icon:rt.IconTool,breadcrumbs:!1},{id:"data-management",title:"Data Management",type:"collapse",icon:rt.IconDatabase,level:["ADMIN"],children:[{id:"user",title:"User",type:"item",url:"/user",breadcrumbs:!1},{id:"account",title:"Account",type:"item",url:"/account",breadcrumbs:!1},{id:"project",title:"Project",type:"item",url:"/project",breadcrumbs:!1},{id:"floor",title:"Floor",type:"item",url:"/floor",breadcrumbs:!1},{id:"area",title:"Area",type:"item",url:"/area",breadcrumbs:!1},{id:"dept",title:"Department",type:"item",url:"/department",breadcrumbs:!1},{id:"problem",title:"Problem",type:"item",url:"/problem",breadcrumbs:!1},{id:"card",title:"Task",type:"item",url:"/card",breadcrumbs:!1},{id:"request",title:"Request",type:"item",url:"/request",breadcrumbs:!1},{id:"event",title:"History",type:"item",url:"/event",breadcrumbs:!1},{id:"form",title:"Form",type:"item",url:"/form",breadcrumbs:!1},{id:"answer",title:"All Data",type:"item",url:"/answer",breadcrumbs:!1},{id:"pm-data",title:"PM Data",type:"item",url:"/pm-data",breadcrumbs:!1},{id:"bm-data",title:"BM Data",type:"item",url:"/bm-data",breadcrumbs:!1},{id:"ananda-data",title:"Ananda Data",type:"item",url:"/ananda-data",breadcrumbs:!1}]},{id:"settings",title:"Settings",type:"item",url:"/coming-soon",icon:rt.IconSettings,breadcrumbs:!1}]},lt=(P.k,P.r,P.D,P.w,P.A,P.F,P.e,P.p,{items:[it]}),dt=function(){var e=lt.items.map((function(e){return"group"===e.type?Object(V.jsx)(at,{item:e},e.id):Object(V.jsx)(N.a,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},e.id)}));return Object(V.jsx)(V.Fragment,{children:e})},ct=n(1008),st=n(556);n(537),Object(x.a)(ct.a)((function(e){var t,n=e.theme;return t={height:10,borderRadius:30},Object(f.a)(t,"&.".concat(st.a.colorPrimary),{backgroundColor:"#fff"}),Object(f.a)(t,"& .".concat(st.a.bar),{borderRadius:5,backgroundColor:n.palette.primary.main}),t})),Object(x.a)(D.a)((function(e){var t=e.theme;return{background:t.palette.primary.light,marginBottom:"22px",overflow:"hidden",position:"relative","&:after":{content:'""',position:"absolute",width:"157px",height:"157px",background:t.palette.primary[200],borderRadius:"50%",top:"-105px",right:"-96px"}}}));var ut=function(e){var t=e.drawerOpen,n=e.drawerToggle,o=e.window,a=Object(O.a)(),r=Object(y.a)(a.breakpoints.up("md")),i=Object(V.jsxs)(V.Fragment,{children:[Object(V.jsx)(C.a,{sx:{display:{xs:"block",md:"none"}},children:Object(V.jsx)(C.a,{sx:{display:"flex",p:2,mx:"auto"},children:Object(V.jsx)(Q,{})})}),Object(V.jsx)(Xe.BrowserView,{children:Object(V.jsx)(Ne.a,{component:"div",style:{height:r?"calc(100vh - 88px)":"calc(100vh - 56px)",paddingLeft:"10px",paddingRight:"10px",position:"relative",display:"flex",flexDirection:"column"},children:Object(V.jsx)(dt,{})})}),Object(V.jsx)(Xe.MobileView,{children:Object(V.jsx)(C.a,{sx:{px:2},children:Object(V.jsx)(dt,{})})})]}),l=void 0!==o?function(){return o.document.body}:void 0;return Object(V.jsx)(C.a,{component:"nav",sx:{flexShrink:{md:0},width:r?z.a:"auto"},"aria-label":"mailbox folders",children:Object(V.jsx)(Qe.a,{container:l,variant:r?"persistent":"temporary",anchor:"left",open:t,onClose:n,sx:{"& .MuiDrawer-paper":Object(f.a)({width:z.a,background:a.palette.background.default,color:a.palette.text.primary,borderRight:"none"},a.breakpoints.up("md"),{top:"88px"})},ModalProps:{keepMounted:!0},color:"inherit",children:i})})},pt=n(1034),vt=n(1051),mt=n(1023),bt=n(1024),ht=n(335);function ft(e){return"".concat(e,"px")}var jt=function(){var e,t=Object(O.a)(),n=Object(i.c)(),o=Object(i.d)((function(e){return e.customization})),a=Object(l.useState)(!1),r=Object(h.a)(a,2),d=r[0],c=r[1],s=Object(l.useState)(o.borderRadius),u=Object(h.a)(s,2),p=u[0],v=u[1];switch(Object(l.useEffect)((function(){n({type:Ke.Qb,borderRadius:p})}),[n,p]),o.fontFamily){case"'Inter', sans-serif":e="Inter";break;case"'Poppins', sans-serif":e="Poppins";break;case"'Roboto', sans-serif":e="Roboto";break;default:e="Sukhumvit"}var m=Object(l.useState)(e),b=Object(h.a)(m,2),f=b[0],j=b[1];return Object(l.useEffect)((function(){var e;switch(f){case"Inter":e="'Inter', sans-serif";break;case"Poppins":e="'Poppins', sans-serif";break;case"Roboto":e="'Roboto', sans-serif";break;default:e="'Sukhumvit', sans-serif"}n({type:Ke.Xb,fontFamily:e})}),[n,f]),Object(V.jsx)(V.Fragment,{children:Object(V.jsx)(Qe.a,{anchor:"right",onClose:function(){c(!d)},open:d,PaperProps:{sx:{width:280}},children:Object(V.jsx)(Ne.a,{component:"div",children:Object(V.jsxs)(A.a,{container:!0,spacing:z.b,sx:{p:3},children:[Object(V.jsx)(A.a,{item:!0,xs:12,children:Object(V.jsx)(ht.a,{title:"Font Family",children:Object(V.jsx)(me.a,{children:Object(V.jsxs)(pt.a,{"aria-label":"font-family",value:f,onChange:function(e){return j(e.target.value)},name:"row-radio-buttons-group",children:[Object(V.jsx)(vt.a,{value:"Roboto",control:Object(V.jsx)(mt.a,{}),label:"Roboto",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:t.palette.grey[900]}}}),Object(V.jsx)(vt.a,{value:"Poppins",control:Object(V.jsx)(mt.a,{}),label:"Poppins",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:t.palette.grey[900]}}}),Object(V.jsx)(vt.a,{value:"Inter",control:Object(V.jsx)(mt.a,{}),label:"Inter",sx:{"& .MuiSvgIcon-root":{fontSize:28},"& .MuiFormControlLabel-label":{color:t.palette.grey[900]}}})]})})})}),Object(V.jsx)(A.a,{item:!0,xs:12,children:Object(V.jsx)(ht.a,{title:"Border Radius",children:Object(V.jsxs)(A.a,{item:!0,xs:12,container:!0,spacing:2,alignItems:"center",sx:{mt:2.5},children:[Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(N.a,{variant:"h6",color:"secondary",children:"4px"})}),Object(V.jsx)(A.a,{item:!0,xs:!0,children:Object(V.jsx)(bt.a,{size:"small",value:p,onChange:function(e,t){v(t)},getAriaValueText:ft,valueLabelDisplay:"on","aria-labelledby":"discrete-slider-small-steps",marks:!0,step:2,min:4,max:24,color:"secondary",sx:{"& .MuiSlider-valueLabel":{color:"secondary.light"}}})}),Object(V.jsx)(A.a,{item:!0,children:Object(V.jsx)(N.a,{variant:"h6",color:"secondary",children:"24px"})})]})})})]})})})})},gt=n(404),xt=Object(x.a)("main",{shouldForwardProp:function(e){return"open"!==e}})((function(e){var t,n,o=e.theme,a=e.open;return Object(j.a)(Object(j.a)(Object(j.a)({},o.typography.mainContent),!a&&(t={borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:o.transitions.create("margin",{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen})},Object(f.a)(t,o.breakpoints.up("md"),{marginLeft:-(z.a-20),width:"calc(100% - ".concat(z.a,"px)")}),Object(f.a)(t,o.breakpoints.down("md"),{marginLeft:"20px",width:"calc(100% - ".concat(z.a,"px)"),padding:"16px"}),Object(f.a)(t,o.breakpoints.down("sm"),{marginLeft:"10px",width:"calc(100% - ".concat(z.a,"px)"),padding:"16px",marginRight:"10px"}),t)),a&&(n={transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen}),marginLeft:0,borderBottomLeftRadius:0,borderBottomRightRadius:0,width:"calc(100% - ".concat(z.a,"px)")},Object(f.a)(n,o.breakpoints.down("md"),{marginLeft:"20px"}),Object(f.a)(n,o.breakpoints.down("sm"),{marginLeft:"10px"}),n))})),Ot=function(){var e,t=Object(O.a)(),n=Object(b.f)(),o=Object(y.a)(t.breakpoints.down("lg")),a=Object(i.d)((function(e){return e.customization.opened})),r=Object(i.c)(),d=Object(l.useState)(S.a[S.a.enviroment].server_endpoint.replace("/api/v2","")),c=Object(h.a)(d,2),s=c[0],u=(c[1],Object(l.useState)(null)),p=Object(h.a)(u,2),v=(p[0],p[1],Object(l.useState)(!1)),m=Object(h.a)(v,2),f=m[0],j=m[1],x=Object(l.useState)(!1),T=Object(h.a)(x,2),N=T[0],D=T[1],A=function(){r({type:Ke.ac,opened:!a})};Object(l.useEffect)((function(){r({type:Ke.ac,opened:!o}),R()}),[o]),Object(l.useEffect)((function(){return console.log("MainLayout",f),f||r(Object(Le.g)(!1,(function(e){j(e),D(!0)}))),function(){console.log("cleaned up"),e&&e.disconnect()}}),[]);var R=function(){(e=Object(g.a)(s)).on("connect",(function(){console.log("socket connect",e.id)})),e.on("connect_error",(function(e){console.log("event: connect_error | reason: ".concat(e.message))})),e.on("disconnect",(function(e){console.log("event: disconnect | reason: ".concat(e))})),e.on("chat message",(function(e){console.log(e)})),e.on(Ke.r,(function(e){console.log(Ke.r,e),r({type:Ke.r,payload:e})})),e.on(Ke.xc,(function(e){console.log(Ke.xc,e),r({type:Ke.xc,payload:e})})),e.on(Ke.S,(function(e){console.log(Ke.S,e),r({type:Ke.S,payload:e})})),e.on(Ke.p,(function(e){console.log(Ke.p,e),r({type:Ke.p,payload:e})})),e.on(Ke.sc,(function(e){console.log(Ke.sc,e),r({type:Ke.sc,payload:e})})),e.on(Ke.vc,(function(e){console.log(Ke.vc,e),r({type:Ke.vc,payload:e})})),e.on(Ke.wc,(function(e){console.log(Ke.wc,e),r({type:Ke.wc,payload:e})})),e.on(Ke.P,(function(e){console.log(Ke.P,e),r({type:Ke.P,payload:e})}))};return Object(V.jsxs)(C.a,{sx:{display:"flex"},children:[Object(V.jsx)(I.a,{}),Object(V.jsx)(E.a,{enableColorOnDark:!0,position:"fixed",color:"inherit",elevation:0,sx:{bgcolor:t.palette.background.default,transition:a?t.transitions.create("width"):"none"},children:Object(V.jsx)(w.a,{style:{padding:"10px"},children:Object(V.jsx)(Ze,{handleLeftDrawerToggle:A})})}),Object(V.jsx)(ut,{drawerOpen:a,drawerToggle:A}),Object(V.jsxs)(xt,{theme:t,open:a,style:{padding:"15px",display:"flex",flexDirection:"column"},children:[Object(V.jsx)(Y,{separator:P.i,navigation:lt,icon:!0,title:!0,rightAlign:!0}),N&&Object(V.jsxs)(V.Fragment,{children:[f&&Object(V.jsx)(b.b,{}),!f&&Object(V.jsx)(b.a,{to:"/login",state:{from:n}})]}),!N&&Object(V.jsx)(b.b,{}),Object(V.jsx)("div",{style:{flex:1}}),Object(V.jsx)("div",{style:{paddingTop:"10px"},children:Object(V.jsx)(gt.a,{})})]}),Object(V.jsx)(jt,{})]})},yt=Object(x.a)("div")({position:"fixed",top:0,left:0,zIndex:1301,width:"100%"}),Ct=function(){return Object(V.jsx)(yt,{children:Object(V.jsx)(ct.a,{color:"primary"})})},It=function(e){return function(t){return Object(V.jsx)(l.Suspense,{fallback:Object(V.jsx)(Ct,{}),children:Object(V.jsx)(e,Object(j.a)({},t))})}},Et=n(22),wt=n(1015),Tt=n(1016),Nt=n(1017),Dt=n(1018),At=n(319),Rt=n(1020),kt=n(1054),St=n(1058),zt=n(398),Pt=n.n(zt),Mt=n(399),Lt=n.n(Mt),Bt=n(400),qt=n.n(Bt),Ft=n(1057),Gt=n(929),Vt=n(15),_t=n.n(Vt),Ut=n(413),Wt=n(138),Yt=n(253),Jt=n(255),Ht=n(254),Zt=n(252),Qt=n(411),Xt=n.n(Qt),Kt=n(401),$t=n.n(Kt),en=n(1014),tn=n(562),nn=n(247),on=n(1019),an=n(1031),rn=["children","onClose"],ln=Object(x.a)(se.a)((function(e){var t=e.theme;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}})),dn=function(e){var t=e.children,n=e.onClose,o=Object(T.a)(e,rn);return Object(V.jsxs)(ue.a,Object(j.a)(Object(j.a)({sx:{m:0,p:2}},o),{},{children:[t,n?Object(V.jsx)(pe.a,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:function(e){return e.palette.grey[500]}},children:Object(V.jsx)(Me.a,{})}):null]}))},cn=(Object(x.a)("input")({display:"none"}),function(){Object(O.a)();var e,t,n,o,a,r,d,c,s=Object(i.c)(),u=Object(i.d)((function(e){return e})),p=Object(l.useState)(!1),v=Object(h.a)(p,2),m=v[0],b=v[1],g=Object(l.useState)(!1),x=Object(h.a)(g,2),y=x[0],C=x[1],I=Object(l.useState)(null),E=Object(h.a)(I,2),w=E[0],T=E[1],D=Object(l.useState)(""),A=Object(h.a)(D,2),R=(A[0],A[1],Object(l.useState)("CREATE")),k=Object(h.a)(R,2),S=k[0],z=k[1],P=Object(l.useState)(null),M=Object(h.a)(P,2),L=M[0],B=M[1],q=Object(l.useState)([]),F=Object(h.a)(q,2),G=F[0],_=F[1],U=new Date,W=Object(l.useState)(Object(en.a)(U,1)),Y=Object(h.a)(W,2),J=Y[0],H=Y[1],Z=Object(l.useState)(U),Q=Object(h.a)(Z,2),X=Q[0],K=Q[1],$=Object(l.useState)([]),ee=Object(h.a)($,2),te=ee[0],ne=ee[1],oe=Object(l.useState)(null),ae=Object(h.a)(oe,2),re=(ae[0],ae[1],"Request"),ie="requestId",le=["requestId","priorityNo","status","col","projectCode","areaType","areaDescription","problemCode","description","files","departmentInCharge","personsInCharge","comment","planning","completionDate","reason","result","resultImages","updatedBy"];Object(l.useEffect)((function(){console.log(">>>>> ".concat(re," Screen loaded"),u),s(Yt.e({})),s(Jt.e({})),s(Ht.e({})),s(Zt.e({})),me()}),[]);var ue=function(e,t){"CREATE"===e&&(z("CREATE"),b(!0)),"UPDATE"!==e&&"VIEW_DETAILS"!==e||(z(e),B(t),b(!0))},pe=function(){b(!1)},me=function(){var e={};J&&X&&(e=_t.a.extend({},e,{from:Object(tn.a)(J,"yyyy-MM-dd"),to:Object(tn.a)(Object(nn.a)(X,1),"yyyy-MM-dd")})),s(Wt.g(e,(function(e){ne(e)})))},he=function(){var e=Object(ce.a)(Object(de.a)().mark((function e(t){var n;return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,console.log("createItem",n),null===t||void 0===t||!t.length){e.next=6;break}return e.delegateYield(Object(de.a)().mark((function e(){var n,o,a,r,i;return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0,o=_t.a.clone(te),a=_t.a.clone(o),r=Object(de.a)().mark((function e(r){var i;return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t[r],e.next=3,s(Wt.b(i,(function(e){if(n=r,e){var t=e;if(null===o||void 0===o?void 0:o.find((function(e){return e.requestId===t.requestId})))return;a=[t].concat(Object(Et.a)(a)),ne(a)}})));case 3:n===(null===t||void 0===t?void 0:t.length)-1&&pe();case 4:case"end":return e.stop()}}),e)})),i=0;case 5:if(!(i<(null===t||void 0===t?void 0:t.length))){e.next=10;break}return e.delegateYield(r(i),"t0",7);case 7:i++,e.next=5;break;case 10:case"end":return e.stop()}}),e)}))(),"t0",4);case 4:e.next=7;break;case 6:s(Wt.b(n,(function(e,t){if(e){pe();var n=_t.a.clone(te),o=e;if(null===n||void 0===n?void 0:n.find((function(e){return e.requestId===o.requestId})))return;var a=_t.a.clone(n);a.unshift(o),ne(a)}})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fe=function(e){var t,n;null!==(t=e)&&void 0!==t&&t.isChangeFile||(e=_t.a.omit(e,["file"])),null!==(n=e)&&void 0!==n&&n.isChangeResultImage||(e=_t.a.omit(e,["resultImage"]));var o=_t.a.pick(e,le);console.log("updateItem",o),s(Wt.i(o,(function(e,t){if(e){pe();var n=_t.a.clone(te),o=e;if(!(null===n||void 0===n?void 0:n.find((function(e){return e.requestId===o.requestId}))))return;var a=_t.a.findIndex(n,(function(e){return e.requestId===o.requestId})),r=_t.a.clone(n);r.splice(a,1,o),ne(r),_([])}})))},je=function(){var e=Object(ce.a)(Object(de.a)().mark((function e(t){var n,o,a,r;return Object(de.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},Object(f.a)(a,ie,_t.a.map(t,(function(e){return e.requestId}))),Object(f.a)(a,"updatedBy",null===u||void 0===u||null===(n=u.user)||void 0===n||null===(o=n.authUser)||void 0===o?void 0:o.username),r=a,e.next=3,s(Wt.e(r,(function(e,t){if(e){for(var n=_t.a.clone(te),o=function(t){var o=e[t],a=_t.a.findIndex(n,(function(e){return e.requestId===o.requestId}));a>-1&&n.splice(a,1)},a=0;a label":{top:23,left:0,color:e.grey500,'&[data-shrink="false"]':{top:5}},"& > div > input":{padding:"30.5px 14px 11.5px !important"},"& legend":{display:"none"},"& fieldset":{top:0}},mainContent:{backgroundColor:e.background,width:"100%",minHeight:"calc(100vh - 88px)",flexGrow:1,padding:"20px",marginTop:"77px",marginRight:"10px",borderRadius:"".concat(null===e||void 0===e||null===(t=e.customization)||void 0===t?void 0:t.borderRadius,"px")},menuCaption:{fontSize:"0.875rem",fontWeight:500,color:e.heading,padding:"6px",textTransform:"capitalize",marginTop:"10px"},subMenuCaption:{fontSize:"0.6875rem",fontWeight:500,color:e.darkTextSecondary,textTransform:"capitalize"},commonAvatar:{cursor:"pointer",borderRadius:"8px"},smallAvatar:{width:"22px",height:"22px",fontSize:"1rem"},mediumAvatar:{width:"34px",height:"34px",fontSize:"1.2rem"},largeAvatar:{width:"44px",height:"44px",fontSize:"1.5rem"}}}var $n=function(e){var t=Qn.a,n={colors:t,heading:t.grey900,paper:t.paper,backgroundDefault:t.paper,background:t.primaryLight,darkTextPrimary:t.grey700,darkTextSecondary:t.grey500,textDark:t.grey900,menuSelected:t.secondaryDark,menuSelectedBack:t.secondaryLight,divider:t.grey200,customization:e},o={direction:"ltr",palette:Xn(n),mixins:{toolbar:{minHeight:"48px",padding:"16px","@media (min-width: 600px)":{minHeight:"48px"}}},typography:Kn(n)},a=Object(Hn.a)(o);return a.components=function(e){var t,n,o,a,r,i,l,d,c,s,u,p,v,m=null===(t=e.colors)||void 0===t?void 0:t.grey50;return{MuiButton:{styleOverrides:{root:{fontWeight:500,borderRadius:"4px"}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},rounded:{borderRadius:"".concat(null===e||void 0===e||null===(n=e.customization)||void 0===n?void 0:n.borderRadius,"px")}}},MuiCardHeader:{styleOverrides:{root:{color:null===(o=e.colors)||void 0===o?void 0:o.textDark,padding:"24px"},title:{}}},MuiCardContent:{styleOverrides:{root:{padding:"24px"}}},MuiCardActions:{styleOverrides:{root:{padding:"24px"}}},MuiListItemButton:{styleOverrides:{root:{color:e.darkTextPrimary,paddingTop:"10px",paddingBottom:"10px","&.Mui-selected":{color:e.menuSelected,backgroundColor:e.menuSelectedBack,"&:hover":{backgroundColor:e.menuSelectedBack},"& .MuiListItemIcon-root":{color:e.menuSelected}},"&:hover":{backgroundColor:e.menuSelectedBack,color:e.menuSelected,"& .MuiListItemIcon-root":{color:e.menuSelected}}}}},MuiListItemIcon:{styleOverrides:{root:{color:e.darkTextPrimary,minWidth:"36px"}}},MuiListItemText:{styleOverrides:{primary:{color:e.textDark}}},MuiInputBase:{styleOverrides:{input:{color:e.textDark,"&::placeholder":{color:e.darkTextSecondary,fontSize:"0.875rem"}}}},MuiOutlinedInput:{styleOverrides:{root:{background:m,borderRadius:"".concat(null===e||void 0===e||null===(a=e.customization)||void 0===a?void 0:a.borderRadius,"px"),"& .MuiOutlinedInput-notchedOutline":{borderColor:null===(r=e.colors)||void 0===r?void 0:r.grey400},"&:hover $notchedOutline":{borderColor:null===(i=e.colors)||void 0===i?void 0:i.primaryLight},"&.MuiInputBase-multiline":{padding:1}},input:{fontWeight:500,background:m,padding:"15.5px 14px",borderRadius:"".concat(null===e||void 0===e||null===(l=e.customization)||void 0===l?void 0:l.borderRadius,"px"),"&.MuiInputBase-inputSizeSmall":{padding:"10px 14px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0}}},inputAdornedStart:{paddingLeft:4},notchedOutline:{borderRadius:"".concat(null===e||void 0===e||null===(d=e.customization)||void 0===d?void 0:d.borderRadius,"px")}}},MuiSlider:{styleOverrides:{root:{"&.Mui-disabled":{color:null===(c=e.colors)||void 0===c?void 0:c.grey300}},mark:{backgroundColor:e.paper,width:"4px"},valueLabel:{color:null===e||void 0===e||null===(s=e.colors)||void 0===s?void 0:s.primaryLight}}},MuiDivider:{styleOverrides:{root:{borderColor:e.divider,opacity:1}}},MuiAvatar:{styleOverrides:{root:{color:null===(u=e.colors)||void 0===u?void 0:u.primaryDark,background:null===(p=e.colors)||void 0===p?void 0:p.primary200}}},MuiChip:{styleOverrides:{root:{"&.MuiChip-deletable .MuiChip-deleteIcon":{color:"inherit"}}}},MuiTooltip:{styleOverrides:{tooltip:{color:e.paper,background:null===(v=e.colors)||void 0===v?void 0:v.grey700}}}}}(n),a},eo=n(6),to=function(e){var t=e.children,n=Object(b.f)().pathname;return Object(l.useEffect)((function(){window.scrollTo({top:0,left:0,behavior:"smooth"})}),[n]),t||null};to.propTypes={children:n.n(eo).a.node};var no=to,oo=Object(m.a)({key:"css",prepend:!0}),ao=function(){var e=Object(i.d)((function(e){return e.customization})),t=Object(i.c)(),n=Object(i.d)((function(e){return e.app})),o=null===n||void 0===n?void 0:n.snackbar,a=o.message,r=o.open,m=o.vertical,b=o.horizontal,h=o.severity;Object(l.useEffect)((function(){console.log("App")}),[]);var f=function(){t({type:Ke.gc,payload:_t.a.extend({},null===n||void 0===n?void 0:n.snackbar,{open:!1})})};return Object(V.jsx)(v.a,{value:oo,children:Object(V.jsx)(d.a,{theme:$n(e),children:Object(V.jsxs)(s.a,{dateAdapter:c.a,children:[Object(V.jsx)(no,{children:Object(V.jsx)(Jn,{})}),Object(V.jsx)(u.a,{autoHideDuration:6e3,anchorOrigin:{vertical:m,horizontal:b},open:r,onClose:f,children:Object(V.jsx)(p.a,{elevation:6,variant:"filled",onClose:function(){f()},severity:h,sx:{width:"100%"},children:a})},m+b)]})})})},ro=n(217),io=n(540),lo=n(405),co={isOpen:[],fontFamily:S.a.fontFamily,borderRadius:S.a.borderRadius,opened:!0},so=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:co,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Ke.Hb:return e=n.id,Object(j.a)(Object(j.a)({},t),{},{isOpen:[e]});case Ke.ac:return Object(j.a)(Object(j.a)({},t),{},{opened:n.opened});case Ke.Xb:return Object(j.a)(Object(j.a)({},t),{},{fontFamily:n.fontFamily});case Ke.Qb:return Object(j.a)(Object(j.a)({},t),{},{borderRadius:n.borderRadius});default:return t}},uo=n(423),po=n(407),vo=n(424),mo=Object(ro.c)({app:io.a,account:Ve.c,area:Ht.b,card:lo.c,customization:so,dept:Zt.b,event:uo.b,floor:po.b,form:vo.b,project:Yt.b,problem:Jt.b,request:Wt.c,user:Le.c}),bo=n(559),ho=n.n(bo),fo=n(391),jo=Object(ro.a)(fo.a,ho.a);S.a[S.a.enviroment].enabledLogs||(console.log=function(){},jo=Object(ro.a)(fo.a));var go=Object(ro.e)(mo,jo);n(901);a.a.render(Object(V.jsx)(i.a,{store:go,children:Object(V.jsx)(r.a,{children:Object(V.jsx)(ao,{})})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))},98:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(11),n(23);var o=n(13),a=(n(5),function(e){return"".concat(o.a[o.a.enviroment].server_endpoint.replace("/api/v2","/download"),"/").concat(e)})}},[[902,9,10]]]); //# sourceMappingURL=main.b6390d65.chunk.js.map