(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1754],{5135:function(e,t,r){"use strict";var n=r(5893),s=r(7294),o=r(7875),l=r(5697),a=r.n(l),i=r(2836),c=r.n(i);const u=s.memo((function(e){let{alerts:t,type:r=0,icon:s}=e;const{t:l}=(0,o.$G)(),a=c()["".concat(r,"_msg")];return(0,n.jsx)("div",{className:"row w-100 d-flex justify-content-center mt-2 mb-1",children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"row justify-content-center",children:[(0,n.jsx)("div",{className:"col-md-2",style:{alignItems:"center",justifyContent:"center",display:"flex"},children:s}),(0,n.jsxs)("div",{className:"col-md-10 mt-2 mb-2",children:[1===t.length?"We are sorry! An error occurred while processing this file, please try again.":t.length>1?l("We are sorry! An error occurred, some files haven't been processed. Please try again."):"",(0,n.jsx)("ul",{style:{marginBottom:"0px",marginTop:"10px"},children:t.map((e=>(0,n.jsx)("li",{children:"".concat(e.document.fileName)},"doc-".concat(r).concat(e.document.id))))})]})]})})})}));t.Z=u,u.propTypes={alerts:a().array.isRequired,type:a().string.isRequired,icon:a().object.isRequired}},2711:function(e,t,r){"use strict";var n=r(5893),s=r(7294),o=r(5697),l=r.n(o),a=r(5711),i=r(4143),c=(r(7875),r(3260)),u=r.n(c),d=r(1646);const p=s.memo((function(e){let{children:t,title:r,handleDownload:o,handleResetInitialState:l}=e;const c=(0,s.useRef)(),p=(0,s.useRef)();return(0,s.useEffect)((()=>{const e=c.current,t=p.current;return()=>{null===e||void 0===e||e.removeEventListener("click",o,!1),null===t||void 0===t||t.removeEventListener("click",l,!1)}}),[]),(0,n.jsx)("section",{className:"".concat(u().toolbox," py-0 mt-0"),children:(0,n.jsx)("div",{className:"d-flex",children:(0,n.jsxs)("div",{className:"w-100 pt-3 pb-3 d-flex flex-column align-items-center",children:[(0,n.jsx)("div",{className:"row w-100 d-flex justify-content-center text-center mt-2 mb-2",children:(0,n.jsx)("h2",{className:"".concat(u().container_title),children:r})}),t,(0,n.jsxs)("div",{className:"row d-flex justify-content-center ".concat(u().download_container," mt-4"),children:[(0,n.jsxs)(d.Z,{title:"Download",onClick:o,isActive:!0,buttonStyle:u().download_btn,children:[(0,n.jsx)(a.Z,{}),"Download"]}),(0,n.jsxs)("div",{className:"".concat(u().start_over),children:[(0,n.jsx)(i.Z,{className:"".concat(u().start_over_icon),size:20}),(0,n.jsx)("span",{onClick:l,children:"Start Over"})]})]})]})})})}));t.Z=p,p.propTypes={children:l().node.isRequired,title:l().string.isRequired,handleDownload:l().func.isRequired,handleResetInitialState:l().func.isRequired}},6821:function(e,t,r){"use strict";var n=r(5893),s=r(7294),o=r(2007),l=r(7875),a=r(1163),i=r(386),c=r(5697),u=r.n(c),d=r(3260),p=r.n(d),m=r(7668),f=r.n(m),h=r(1646);const g=s.memo((function(e){let{password:t,confirmPassword:r,passwordsMatch:c,setPassword:u,setConfirmPassword:d,handleSubmit:m,actionTitle:g,showErrorMessage:w}=e;const{t:_}=(0,l.$G)(),v=(0,a.useRouter)(),y=i.Dn.includes(v.locale)?"rtl":"ltr",x=(0,s.useRef)(),E=(0,s.useRef)();return(0,s.useEffect)((()=>{const e=x.current,t=E.current;return()=>{null===t||void 0===t||t.removeEventListener("click",m,!1),null===e||void 0===e||e.removeEventListener("submit",i.a2,!1)}}),[]),(0,n.jsx)("section",{className:"".concat(p().toolbox," py-0 mt-0"),children:(0,n.jsx)("div",{className:"d-flex",children:(0,n.jsxs)("div",{className:"w-100 pt-3 pb-3 d-flex flex-column align-items-center",children:[(0,n.jsxs)("div",{className:"row w-100 d-flex justify-content-center text-center",children:[(0,n.jsx)("h2",{className:"".concat(p().container_title),children:"Enter Your Password"}),w&&(0,n.jsx)("div",{className:"".concat(f().error_message," justify-content-center"),children:"Sorry, wrong password. Please try again"})]}),(0,n.jsx)("div",{className:"".concat(f().form_wrapper),children:(0,n.jsxs)("form",{onSubmit:i.a2,ref:x,children:[(0,n.jsxs)("div",{className:"".concat(f().input_box),children:[(0,n.jsx)("input",{id:"password",type:"password",value:t,onChange:e=>u(e),required:!0}),(0,n.jsx)("label",{htmlFor:"password",className:"ltr"===y?f().left:f().right,children:"Password"})]}),(0,n.jsxs)("div",{className:"".concat(f().input_box),children:[(0,n.jsx)("input",{id:"confirmPassword",type:"password",value:r,onChange:e=>d(e),required:!0}),(0,n.jsx)("label",{htmlFor:"confirmPassword",className:"ltr"===y?f().left:f().right,children:"Confirm Password"})]}),(0,n.jsx)("div",{className:"".concat(f().alert_message),children:!c&&"Passwords must match!"}),(0,n.jsx)("div",{className:"".concat(f().input_box," ").concat(f().button," mb-0 mt-3"),children:(0,n.jsxs)(h.Z,{title:g,onClick:m,isActive:""!=t&&""!=r&&!0===c,buttonStyle:p().action_btn,children:[(0,n.jsx)(o.Z,{}),g]})})]})})]})})})}));t.Z=g,g.propTypes={password:u().string.isRequired,confirmPassword:u().string.isRequired,setPassword:u().func.isRequired,setConfirmPassword:u().func.isRequired,handleSubmit:u().func.isRequired}},6294:function(e,t,r){"use strict";var n=r(5893),s=r(7294),o=r(5697),l=r.n(o),a=r(7159),i=r(3260),c=r.n(i);const u=s.memo((function(e){let{progress:t}=e;return(0,n.jsx)("section",{className:"".concat(c().toolbox," py-0 mt-0"),children:(0,n.jsx)("div",{className:"d-flex",children:(0,n.jsxs)("div",{className:"w-100 pt-3 pb-3 d-flex flex-column align-items-center",children:[(0,n.jsx)("div",{className:"row w-100 d-flex justify-content-center text-center mt-2",children:(0,n.jsx)("h2",{className:"".concat(c().container_title),children:t})}),(0,n.jsx)("div",{className:"row w-100 d-flex justify-content-center text-center mt-5 mb-5",children:(0,n.jsx)(a.Z,{className:"".concat(c().process_circle),size:130,color:"#EE1B22"})}),(0,n.jsx)("div",{className:"row w-100 d-flex justify-content-center text-center mt-5 mb-5",children:(0,n.jsx)("span",{style:{color:"#2d3748"},children:"Do not close your browser. Wait until your files are processed! This might take a few minutes."})})]})})})}));t.Z=u,u.propTypes={progress:l().string.isRequired}},41:function(e,t,r){"use strict";r(5893),r(7294),r(7875),r(4223)},3077:function(e,t,r){"use strict";var n=r(7294);const s={documents:[]},o=(e,t)=>{switch(t.type){case"UPDATE_DOCUMENT":const r=e.documents.map((e=>t.docId===e.id?{...e,outputBlob:t.outputBlob}:e));return{...e,documents:r};case"ADD_DOCUMENTS":const n=e.documents.concat([{...t.newDocument}]);return{...e,documents:n};case"DELETE_DOCUMENT":case"ROTATE_DOCUMENT":case"ROTATE_ALL_DOCUMENTS":return{...e,documents:t.newDocuments};case"RESET_INITIAL_STATE":return s;default:return e}};t.ZP=function(){const[e,t]=(0,n.useReducer)(o,s);return{documents:e.documents,handleAddDocument:e=>{t({type:"ADD_DOCUMENTS",newDocument:e})},handleUpdateDocument:(e,r)=>{t({type:"UPDATE_DOCUMENT",docId:parseInt(r),outputBlob:e})},handleDeleteDocument:r=>{let n=e.documents.filter((e=>e.id!==r));t({type:"DELETE_DOCUMENT",newDocuments:n})},handleRotateDocument:r=>{const n=r.rotationsCounter+1===4?0:r.rotationsCounter+1,s=e.documents.map((e=>r.id===e.id?{...e,rotationsCounter:n}:e));t({type:"ROTATE_DOCUMENT",newDocuments:s})},handleRotateAllDocuments:()=>{const r=e.documents.map((e=>{const t=e.rotationsCounter+1===4?0:e.rotationsCounter+1;return{...e,rotationsCounter:t}}));t({type:"ROTATE_ALL_DOCUMENTS",newDocuments:r})},handleResetInitialDocumentsState:()=>{t({type:"RESET_INITIAL_STATE"})}}}},5717:function(e,t,r){"use strict";var n=r(7294);t.Z=()=>{const[e,t]=(0,n.useState)(""),[r,s]=(0,n.useState)(""),[o,l]=(0,n.useState)(!0);return{password:e,confirmPassword:r,handlePasswordChange:e=>{t(e.target.value),l(e.target.value===r)},handleConfirmPasswordChange:t=>{s(t.target.value),l(t.target.value===e)},handleResetPassword:()=>{t(""),s(""),l(!0)},passwordsMatch:o}}},6640:function(e,t,r){"use strict";var n=r(7294);const s={currentUploadingFile:null,currentUploadedFilesCounter:0,currentProccessedFilesCounter:1,totalUploadingProgress:0,uploadSpeed:"",uploadTimeLeft:"",resultsInfoVisibility:!0,resultsAlerts:[],resultsErrors:[]},o=(e,t)=>{switch(t.type){case"UPDATE_CURRENT_UPLOADING_STATUS":return{...e,currentUploadingFile:t.newCurrentUploadingFile,currentUploadedFilesCounter:t.newCurrentUploadedFilesCounter,totalUploadingProgress:t.newTotalUploadingProgress,uploadSpeed:t.newUploadSpeed,uploadTimeLeft:t.newUploadTimeLeft};case"RESET_CURRENT_UPLOADING_STATUS":return{...e,currentUploadingFile:s.currentUploadingFile,currentUploadedFilesCounter:s.currentUploadedFilesCounter,totalUploadingProgress:s.totalUploadingProgress,uploadSpeed:s.uploadSpeed,uploadTimeLeft:s.uploadTimeLeft};case"UPDATE_RESULTS_DISPLAY":return{...e,resultsInfoVisibility:t.newProcessingInfoVisibility,resultsErrors:t.newProcessingErrors,resultsAlerts:t.newProcessingAlerts};case"UPDATE_CURRENT_PROCESSING_STATUS":return{...e,currentProccessedFilesCounter:t.newCurrentProccessedFilesCounter};case"RESET_CURRENT_PROCESSING_STATUS":return{...e,currentProccessedFilesCounter:s.currentProccessedFilesCounter};case"RESET_INITIAL_STATE":return s;default:return e}};t.Z=()=>{const[e,t]=(0,n.useReducer)(o,s);return{currentUploadingFile:e.currentUploadingFile,currentUploadedFilesCounter:e.currentUploadedFilesCounter,currentProccessedFilesCounter:e.currentProccessedFilesCounter,totalUploadingProgress:e.totalUploadingProgress,uploadSpeed:e.uploadSpeed,uploadTimeLeft:e.uploadTimeLeft,resultsInfoVisibility:e.resultsInfoVisibility,resultsAlerts:e.resultsAlerts,resultsErrors:e.resultsErrors,handleResetInitialUploadState:()=>{t({type:"RESET_INITIAL_STATE"})},handleResetCurrentUploadingStatus:()=>{t({type:"RESET_CURRENT_UPLOADING_STATUS"})},handleUpdateCurrentUploadingStatus:(e,r,n,s,o)=>{t({type:"UPDATE_CURRENT_UPLOADING_STATUS",newCurrentUploadingFile:e,newCurrentUploadedFilesCounter:r,newTotalUploadingProgress:n,newUploadSpeed:s,newUploadTimeLeft:o})},handleUpdateResultsDisplay:(e,r,n)=>{t({type:"UPDATE_RESULTS_DISPLAY",newProcessingInfoVisibility:e,newProcessingErrors:r,newProcessingAlerts:n})},handleResetCurrentProcessingStatus:()=>{t({type:"RESET_CURRENT_PROCESSING_STATUS"})},handleUpdateCurrentProcessingStatus:e=>{t({type:"UPDATE_CURRENT_PROCESSING_STATUS",newCurrentProccessedFilesCounter:e})}}}},2836:function(e){e.exports={warning_msg:"Alert_warning_msg__cuyBF",error_msg:"Alert_error_msg__FlBAX"}},7668:function(e){e.exports={form_wrapper:"PasswordForm_form_wrapper__k9ByU",input_box:"PasswordForm_input_box__aXkMV",right:"PasswordForm_right__yuNQc",left:"PasswordForm_left__4Es3z",button:"PasswordForm_button__u39nv",alert_message:"PasswordForm_alert_message__cIHQI",error_message:"PasswordForm_error_message__Zlxj6"}},4223:function(e){e.exports={share_btn:"Share_share_btn__x85E6",share_section:"Share_share_section__fXlhp",share_buttons:"Share_share_buttons__LSJjB",share_text:"Share_share_text__8prRc"}},4143:function(e,t,r){"use strict";var n=r(7294),s=r(5697),o=r.n(s),l=["color","size","title","className"];function a(){return a=Object.assign||function(e){for(var t=1;t=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var c=(0,n.forwardRef)((function(e,t){var r=e.color,s=e.size,o=e.title,c=e.className,u=i(e,l);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:s,height:s,fill:r,className:["bi","bi-arrow-left",c].filter(Boolean).join(" ")},u),o?n.createElement("title",null,o):null,n.createElement("path",{fillRule:"evenodd",d:"M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"}))}));c.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string},c.defaultProps={color:"currentColor",size:"1em",title:null,className:""},t.Z=c},2007:function(e,t,r){"use strict";var n=r(7294),s=r(5697),o=r.n(s),l=["color","size","title","className"];function a(){return a=Object.assign||function(e){for(var t=1;t=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var c=(0,n.forwardRef)((function(e,t){var r=e.color,s=e.size,o=e.title,c=e.className,u=i(e,l);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:s,height:s,fill:r,className:["bi","bi-arrow-right",c].filter(Boolean).join(" ")},u),o?n.createElement("title",null,o):null,n.createElement("path",{fillRule:"evenodd",d:"M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"}))}));c.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string},c.defaultProps={color:"currentColor",size:"1em",title:null,className:""},t.Z=c},5711:function(e,t,r){"use strict";var n=r(7294),s=r(5697),o=r.n(s),l=["color","size","title","className"];function a(){return a=Object.assign||function(e){for(var t=1;t=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var c=(0,n.forwardRef)((function(e,t){var r=e.color,s=e.size,o=e.title,c=e.className,u=i(e,l);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:s,height:s,fill:r,className:["bi","bi-download",c].filter(Boolean).join(" ")},u),o?n.createElement("title",null,o):null,n.createElement("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),n.createElement("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"}))}));c.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string},c.defaultProps={color:"currentColor",size:"1em",title:null,className:""},t.Z=c},7159:function(e,t,r){"use strict";var n=r(7294),s=r(5697),o=r.n(s),l=["color","size","title","className"];function a(){return a=Object.assign||function(e){for(var t=1;t=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var c=(0,n.forwardRef)((function(e,t){var r=e.color,s=e.size,o=e.title,c=e.className,u=i(e,l);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:s,height:s,fill:r,className:["bi","bi-gear-wide",c].filter(Boolean).join(" ")},u),o?n.createElement("title",null,o):null,n.createElement("path",{d:"M8.932.727c-.243-.97-1.62-.97-1.864 0l-.071.286a.96.96 0 0 1-1.622.434l-.205-.211c-.695-.719-1.888-.03-1.613.931l.08.284a.96.96 0 0 1-1.186 1.187l-.284-.081c-.96-.275-1.65.918-.931 1.613l.211.205a.96.96 0 0 1-.434 1.622l-.286.071c-.97.243-.97 1.62 0 1.864l.286.071a.96.96 0 0 1 .434 1.622l-.211.205c-.719.695-.03 1.888.931 1.613l.284-.08a.96.96 0 0 1 1.187 1.187l-.081.283c-.275.96.918 1.65 1.613.931l.205-.211a.96.96 0 0 1 1.622.434l.071.286c.243.97 1.62.97 1.864 0l.071-.286a.96.96 0 0 1 1.622-.434l.205.211c.695.719 1.888.03 1.613-.931l-.08-.284a.96.96 0 0 1 1.187-1.187l.283.081c.96.275 1.65-.918.931-1.613l-.211-.205a.96.96 0 0 1 .434-1.622l.286-.071c.97-.243.97-1.62 0-1.864l-.286-.071a.96.96 0 0 1-.434-1.622l.211-.205c.719-.695.03-1.888-.931-1.613l-.284.08a.96.96 0 0 1-1.187-1.186l.081-.284c.275-.96-.918-1.65-1.613-.931l-.205.211a.96.96 0 0 1-1.622-.434zM8 12.997a4.998 4.998 0 1 1 0-9.995 4.998 4.998 0 0 1 0 9.996z"}))}));c.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string},c.defaultProps={color:"currentColor",size:"1em",title:null,className:""},t.Z=c}}]);