{"version":3,"sources":["Components/Home.js","Components/Header.js","Services/api.js","Pages/Information.js","Redux/Action/action.js","Pages/HolidayPay.js","Pages/CompanyVehicles.js","Pages/PayRoll.js","Pages/CompanyStructure.js","Pages/States.js","Pages/FireExits.js","Pages/Pdf.js","Pages/TermsCondition.js","Pages/Stripe.js","Pages/GeneralInformation.js","Pages/Auth/Login.js","Pages/Auth/Register.js","Routes/Routes.js","Redux/Reducer/infoReducer.js","Redux/Reducer/stateWithLeavesReducer.js","Redux/Reducer/index.js","Redux/Store.js","index.js"],"names":["Home","className","style","textAlign","to","withRouter","history","cursor","id","window","localStorage","getItem","onClick","removeItem","push","signIn","process","createUser","getCompanyStructureData","addCompanyStructureData","createcompanyvehicles","addFireData","getHolidayPayData","addHolidayPaydata","createinformation","getEmployeeSizeData","getCouponCode","getPrice","displayDataForPayroll","addPayrollData","downloadPdf","createState","getLeaveByState","addStateData","stripeSecretKey","createPayments","connect","state","info","rootReducer","dispatch","setInfoData","data","type","payload","getInformation","props","useState","setLoginData","employeeSizeData","setEmployeeSizeData","industryData","setIndustryData","ref","useRef","firstName","lastName","companyName","employeesSize","industry","streetAddress","city","zipcode","phonenumber","email","couponCode","document","ClientId","redirect","Redirect","setData","dataError","setDataError","handleChange","name","e","target","value","files","length","imageData","replace","getHandBookPrice","axios","url","method","then","resp","price","priceData","setItem","Array","isArray","coupon","find","x","couponName","discountPercentage","discount","finalAmount","catch","err","console","error","handleValidation","errors","trim","test","File","size","handleBlur","validationErrors","handleSubmit","a","preventDefault","Object","keys","formData","FormData","append","res","status","sendToProgressBar","log","barValue","flag","useEffect","loginToken","JSON","parse","phoneNumber","username","loginData","noOfEmployee","industryType","onSubmit","onChange","onBlur","placeholder","defaultValue","map","key","maxLength","minLength","accept","current","color","HolidayPay","setFormPass","holidayDynamicData","setholidayDyamicData","isHolidayPay","isPayHolidayPay","holiday","errorMessage","successMsg","loading","checked","tmp","parseInt","indexOf","splice","companyInfoId","Boolean","totId","isParttimeHoliday","clientId","backSendToProgressBar","getElementById","display","response","height","width","timeout","padding","page","role","index","totValue","marginLeft","marginTop","CompanyVehicles","isCompanyVehicle","isGpsSystem","formError","formErrors","setFormErrors","PayRoll","monthlyflag","setMonthlyFlag","semimonthly","setsemimonthlyFlag","bIeeklyflag","setbIweeklyFlag","weeklyflag","setweeklyFlag","payrollData","setPayrollData","isPayRoll","isPayRollOps","firsthalf","secondhalf","result","filter","startDay","endDay","i","htmlFor","marginRight","Value","selected","CompanyStructure","radioData","setradioData","getSelectedValue","errormessage","validationData","setValidationData","sendToMain","val","reportingType","level","y","position","left","transform","bgcolor","border","boxShadow","p","stateAndLeavesFromRedux","removeLeavesFromRedux","setStateAndLeavesInRedux","addAllStateAndLeaves","removeStateById","show","policyToggle","setPolicyToggle","expanded","setExpanded","StateForLeaveSchema","setStateForLeaveSchema","singleStatePDF","allStateDataPDF","LeaveSchema","setLeaveSchema","handleDelete","stateArr","idx","Accordion","withStyles","root","borderBottom","margin","MuiAccordion","AccordionSummary","backgroundColor","marginBottom","minHeight","content","MuiAccordionSummary","AccordionDetails","theme","spacing","MuiAccordionDetails","getSelectedState","stateName","includes","hidden","kp","Modal","open","onClose","Box","sx","Typography","variant","component","mt","square","panel","event","newExpanded","fontWeight","leaveName","textTransform","dangerouslySetInnerHTML","__html","leaveContent","FireExits","location","setError","validate","rows","Pdf","useHistory","userInformation","useSelector","InformationReducer","information","preFill","customAnswers","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","pdfBtnText","setPdfBtnText","Fragment","saveAs","text","prefill","pageSettings","hideEventTypeDetails","hideLandingPageDetails","hideGdprBanner","primaryColor","textColor","TermAndCondition","disable","setDisable","tnc","stripe","comp","setComp","href","fontSize","disabled","stripePromise","loadStripe","Stripe","fullName","phone","form","setForm","setLoading","setSuccessMsg","amount","setAmount","useStripe","elements","useElements","prevForm","createCustomer","post","URLSearchParams","toString","headers","customer","stringify","paymentIntents","message","customerId","currency","client_secret","confirmCardPayment","payment_method","card","getElement","CardElement","billing_details","paymentIntent","payment_intent","createPayment","setTimeout","paymentInt","conformCard","stripePaymentId","Number","paymentMethod","payment_method_types","cardElement","createToken","stripeError","StripeWrapper","GeneralInformation","generalinformationFlag","setgeneralinformationFlag","statesFlag","setstatesFlag","companystructureFlag","setcompanystructureFlag","fireexitsFlag","setfireexitsFlag","payrollcycleFlag","setpayrollcycleFlag","companyvehicleFlag","setcompanyvehicleFlag","holidaypayFlag","setholidaypayFlag","pdfFlag","setPdfFlag","paymentFlag","setPaymentFlag","stripeFlag","setStripeFlag","setProgressBarFlag","progressBar","setProgressBar","generalInformation","states","companyStructure","fireExit","payrollCycle","holidayPay","handleFlagChange","onPage","item","pathname","undefined","progressFlag","TermsCondition","Login","password","setRedirect","mainError","charAt","toUpperCase","slice","prevError","isValid","Register","cleanedValue","Routes","path","exact","CompanyStruture","Information","States","InitState","action","stateAndLeaves","stateId","combineReducers","stateWithLeavesReducer","newReducer","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","thunkMiddleware","ReactDOM","render","StrictMode","Store"],"mappings":"iMAqCeA,EAlCF,WACX,OACE,sBAAKC,UAAU,YAAf,UACE,qBAAKA,UAAU,YACf,sBAAKA,UAAU,YAAf,UACE,oBAAIA,UAAU,aAAd,kDACA,0BAASA,UAAU,eAAnB,UACE,qBAAKA,UAAU,oBAAf,SAYE,mXAEF,sBAAKA,UAAU,qBAAf,UACE,qBAAIC,MAAO,CAAEC,UAAW,UAAxB,UACE,+CADF,uBAGA,cAAC,IAAD,CAAMC,GAAG,SAASH,UAAU,OAA5B,oCCgCGI,eAxDA,SAAC,GAAiB,IAAfC,EAAc,EAAdA,QAChB,OAEE,aADA,CACA,mBACE,sBAAKL,UAAU,iDAAf,UACE,cAAC,IAAD,CAAMA,UAAU,0BAA0BG,GAAG,IAA7C,uCAMA,sBAAMH,UAAU,gBAChB,qBACEA,UAAU,2BACVC,MAAO,CAAEK,OAAQ,WACjBC,GAAG,YAHL,SAK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OAAOP,ICXEE,GALKgZ,aAAgB,CAClC7I,mBAAoBA,GACpB8I,uBAAwBA,K,SCFpBC,GAAaF,aAAgB,CACjChZ,YAAaA,KAGTmZ,GAAmBjb,OAAOkb,sCAAwCC,KAOzDC,GALDC,aACZL,GACAC,GAAiBK,aAAgBC,QCNnCC,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,IAAD,CAAUN,MAAOO,GAAjB,SACE,cAAC,GAAD,QAGJlY,SAASsG,eAAe,U","file":"static/js/main.8ff730c4.chunk.js","sourcesContent":["import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nconst Home = () => {\r\n return (\r\n
\r\n
\r\n
\r\n

Build a Customized Employee Handbook

\r\n
\r\n
\r\n {/*

\r\n 24/7HR Consulting for\r\n

\r\n
\r\n

$99

per month
\r\n
\r\n \r\n One time setup fee for $700.00* and get a customized Employee\r\n Handbook.\r\n
*Per State\r\n
*/}\r\n Our customized employee handbook is the ultimate solution for businesses looking to stay compliant, protect their company and streamline HR policies – all for just $1,500 per year. Designed to meet your industry’s specific needs, our handbook ensures your policies are clear, legally sound, and aligned with best practices.\r\n
\r\n
\r\n

\r\n Customize aEmployee Handbook\r\n

\r\n \r\n Build Now\r\n \r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\nexport default Home\r\n","// import react from \"react\";\r\n// import { render } from \"react-dom\";\r\nimport { Link, withRouter } from 'react-router-dom'\r\n\r\nconst Header = ({ history }) => {\r\n return (\r\n /* eslint multiline-ternary: [\"error\", \"never\"] */\r\n
\r\n
\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default withRouter(Header)\r\n","export const signIn = `${process.env.REACT_APP_API_URL}/api/User/Login`;\r\nexport const createUser = `${process.env.REACT_APP_API_URL}/api/User/Register`;\r\nexport const getCompanyStructureData =`${process.env.REACT_APP_API_URL}/api/Company/GetCompanyStructure`;\r\nexport const addCompanyStructureData = `${process.env.REACT_APP_API_URL}/api/Company/AddCompanyStru`;\r\nexport const createcompanyvehicles = `${process.env.REACT_APP_API_URL}/api/Company/CompanyVehicles`;\r\nexport const addFireData = `${process.env.REACT_APP_API_URL}/api/Company/AddLocation`;\r\nexport const getHolidayPayData = `${process.env.REACT_APP_API_URL}/api/Company/TableOfTableByType?totType=PublicHoliday`;\r\nexport const addHolidayPaydata= `${process.env.REACT_APP_API_URL}/api/Company/AddHoliDayPAy`;\r\nexport const createinformation = `${process.env.REACT_APP_API_URL}/api/Company/GeneralInformation`;\r\nexport const getEmployeeSizeData = `${process.env.REACT_APP_API_URL}/api/Handbook/GetHandbookMasterData`;\r\nexport const getCouponCode = `${process.env.REACT_APP_API_URL}/api/Coupon/GetAllCoupon`;\r\nexport const getPrice = `${process.env.REACT_APP_API_URL}/api/Price/GetAllPrice`;\r\nexport const displayDataForPayroll = `${process.env.REACT_APP_API_URL}/api/Company/TableOfTableByType?totType=PayRollType`;\r\nexport const addPayrollData =`${process.env.REACT_APP_API_URL}/api/Company/AddPayRollInfo`;\r\nexport const getPdfData = `${process.env.REACT_APP_API_URL}/api/pdf/get`;\r\nexport const downloadPdf= `${process.env.REACT_APP_API_URL}/api/Company/DownloadPdf`;\r\nexport const createState = `${process.env.REACT_APP_API_URL}/api/Company/GetAllState`;\r\nexport const getLeaveByState = `${process.env.REACT_APP_API_URL}/api/Company/GetAllLeaveByState`;\r\nexport const addStateData=`${process.env.REACT_APP_API_URL}/api/Company/AddState`;\r\nexport const createCustomers = \"https://api.stripe.com/v1/customers\";\r\nexport const paymentIntentURL = \"https://api.stripe.com/v1/payment_intents\";\r\nexport const paymentMethodURL = \"https://api.stripe.com/v1/payment_methods\";\r\n// export const stripePublicKey = \"pk_test_51QMiBjHcm211F13kLy380iVbeWK55w4G4XOd2JMgi4mT5DSkFu2jYOp7YhEWtCGH7LJa4Z1uaXlp5TE9iWnfVFX000V4Git2J6\";\r\n// export const stripeSecretKey = \"sk_test_51QMiBjHcm211F13kso4P2c56hfqwShRcu1ND19jDR6wY524rbRI0WkmEteScgGAHdnRsvL9Ed1PHLe6CYr9Qjzki000HqlGODr\";\r\nexport const stripePublicKey = \"pk_live_KfE3U461qoLCKhffnVpS7rFd00oGvDdBz9\";\r\nexport const stripeSecretKey = \"sk_live_dVehMcq0ZNqlFsdjKHWXP6Qn00ODHMphdy\";\r\nexport const createPayments = `${process.env.REACT_APP_API_URL}/api/Payment/Create`;\r\n","// @ts-nocheck\r\nimport React, { useEffect, useState, useRef } from \"react\";\r\nimport axios from \"axios\";\r\nimport { createinformation, getEmployeeSizeData, getCouponCode, getPrice } from \"../Services/api\";\r\nimport { connect } from \"react-redux\";\r\nimport { getInformation } from \"../Redux/Action/action\";\r\n\r\nconst Information = (props) => {\r\n const [loginData, setLoginData] = useState();\r\n const [employeeSizeData, setEmployeeSizeData] = useState([]);\r\n const [industryData, setIndustryData] = useState([]);\r\n const ref = useRef();\r\n const [data, setData] = useState({ firstName: \"\", lastName: \"\", companyName: \"\", employeesSize: \"\", industry: \"\", streetAddress: \"\", city: \"\", state: \"\", zipcode: \"\", phonenumber: \"\", email: \"\", couponCode: \"\", document: \"\", ClientId: \"\", redirect: false, Redirect: false });\r\n const { firstName, lastName, companyName, streetAddress, city, email, couponCode, zipcode, phonenumber, employeesSize, industry, ClientId, state, document } = data;\r\n const [dataError, setDataError] = useState({ firstName: \"\", lastName: \"\", companyName: \"\", employeesSize: \"\", streetAddress: \"\", city: \"\", state: \"\", zipcode: \"\", phonenumber: \"\", email: \"\", document: \"\" });\r\n\r\n const handleChange = (name) => (e) => {\r\n setData({\r\n ...data,\r\n [name]: e.target.value,\r\n });\r\n\r\n setDataError({\r\n ...dataError,\r\n [name]: \"\",\r\n });\r\n \r\n if (name === \"document\") {\r\n if (e.target.files && e.target.files.length > 0) {\r\n const imageData = e.target.files[0];\r\n setData({\r\n ...data,\r\n document: imageData,\r\n });\r\n }\r\n }\r\n\r\n if (name === \"phonenumber\") {\r\n const value = e.target.value.replace(/\\D/g, \"\");\r\n setData({ ...data, phonenumber: value });\r\n }\r\n\r\n if (name === \"employeesSize\") {\r\n const value = e.target.value;\r\n setData({ ...data, employeesSize: value });\r\n }\r\n\r\n if (name === \"industry\") {\r\n const value = e.target.value;\r\n setData({ ...data, industry: value });\r\n }\r\n\r\n if (name === \"zipcode\") {\r\n const value = e.target.value.replace(/\\D/g, \"\");\r\n setData({ ...data, zipcode: value });\r\n }\r\n\r\n if (name === \"couponCode\") {\r\n const value = e.target.value;\r\n setData({ ...data, couponCode: value });\r\n }\r\n };\r\n\r\n const handleRemove = (e) => {\r\n e.preventDefault();\r\n ref.current.value = null;\r\n setData({ ...data, document: \"\" });\r\n };\r\n\r\n const gethandbookEmployeeSizeData = () => {\r\n axios({\r\n url: getEmployeeSizeData,\r\n method: \"GET\",\r\n })\r\n .then((resp) => {\r\n if (resp === null) {\r\n console.log(resp);\r\n } else {\r\n setEmployeeSizeData(resp.data.data.noOfEmployee);\r\n setIndustryData(resp.data.data.industryType)\r\n }\r\n })\r\n .catch((err) => {\r\n if (err) {\r\n console.log(err);\r\n }\r\n });\r\n };\r\n\r\n const getHandBookCoupon = (name, price) => {\r\n axios({\r\n url: getCouponCode,\r\n method: \"GET\",\r\n })\r\n .then((resp) => {\r\n const data = resp?.data?.data;\r\n if (Array.isArray(data) && data.length > 0) {\r\n const coupon = data.find(x => x.couponName === name);\r\n if (coupon) {\r\n const discountPercentage = coupon.discount\r\n const discountAmount = (price * discountPercentage) / 100;\r\n const finalAmount = price - discountAmount;\r\n localStorage.setItem(\"Price\", +finalAmount);\r\n }\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(\"Error fetching coupon data:\", err); // Enhanced error handling\r\n });\r\n };\r\n\r\n const getHandBookPrice = () => {\r\n axios({\r\n url: getPrice,\r\n method: \"GET\",\r\n })\r\n .then((resp) => {\r\n const priceData = resp?.data?.data;\r\n if (priceData?.length > 0) {\r\n localStorage.setItem(\"Price\", +priceData[0]?.price);\r\n if (data?.couponCode !== \"\") {\r\n getHandBookCoupon(data?.couponCode, priceData[0]?.price);\r\n }\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(\"Error fetching coupon data:\", err); // Enhanced error handling\r\n });\r\n };\r\n\r\n const handleValidation = () => {\r\n let errors = {};\r\n \r\n // Check for empty fields and handle undefined values\r\n if (!firstName || !firstName.trim()) errors.firstName = \"First name is required.\";\r\n if (!lastName || !lastName.trim()) errors.lastName = \"Last name is required.\";\r\n if (!email || !email.trim()) errors.email = \"Email is required.\";\r\n else {\r\n const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n if (!emailRegex.test(email)) errors.email = \"Please Enter a valid Email **\";\r\n }\r\n if (!companyName || !companyName.trim()) errors.companyName = \"Company Name is required.\";\r\n if (!streetAddress || !streetAddress.trim()) errors.streetAddress = \"Street Address is required.\";\r\n if (!city || !city.trim()) errors.city = \"City is required.\";\r\n if (!phonenumber || !phonenumber.trim()) errors.phonenumber = \"Phone Number is required.\";\r\n if (!zipcode || !zipcode.trim()) errors.zipcode = \"Zipcode is required.\";\r\n if (!employeesSize || !employeesSize.trim()) errors.employeesSize = \"Employees Size is required.\";\r\n if (!state || !state.trim()) errors.state = \"State is required.\";\r\n if (!document || (document instanceof File && document.size === 0)) {\r\n errors.document = \"Document is required.\";\r\n }\r\n return errors;\r\n };\r\n \r\n\r\n const handleBlur = (name) => () => {\r\n const validationErrors = handleValidation();\r\n setDataError({\r\n ...dataError,\r\n [name]: validationErrors[name] || \"\",\r\n });\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n e.preventDefault();\r\n\r\n // Run validation on form submit\r\n const validationErrors = handleValidation();\r\n setDataError(validationErrors);\r\n\r\n // If there are errors, prevent form submission\r\n if (Object.keys(validationErrors).length > 0) return;\r\n\r\n getHandBookPrice();\r\n setData({ ...data });\r\n let formData = new FormData();\r\n formData.append(\"companyName\", data.companyName);\r\n formData.append(\"clientId\", data.ClientId);\r\n formData.append(\"employeesSize\", data.employeesSize);\r\n formData.append(\"streetAddress\", data.streetAddress);\r\n formData.append(\"industry\", data.industry);\r\n formData.append(\"city\", data.city);\r\n formData.append(\"state\", data.state);\r\n formData.append(\"zipcode\", data.zipcode);\r\n formData.append(\"document\", data.document);\r\n axios({\r\n url: createinformation,\r\n method: \"post\",\r\n data: formData,\r\n })\r\n .then((res) => {\r\n if (res.status === 200) {\r\n sendToProgressBar();\r\n props.setInfoData(data);\r\n localStorage.setItem('CompanyId', res.data.data);\r\n }\r\n })\r\n .catch((err) => console.log(\"Error :\", err));\r\n };\r\n\r\n const sendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresIncreMent\");\r\n props.flag(\"done\");\r\n };\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n setData({\r\n ClientId: loginToken.id,\r\n firstName: loginToken.firstName,\r\n lastName: loginToken.lastName,\r\n phonenumber: loginToken.phoneNumber,\r\n email: loginToken.username,\r\n });\r\n setLoginData({ loginData: loginToken.id });\r\n gethandbookEmployeeSizeData();\r\n }, []);\r\n\r\n return (\r\n <>\r\n
\r\n

General Information

\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.firstName && (\r\n
{dataError.firstName}
\r\n )}\r\n
\r\n
\r\n \r\n \r\n {dataError.lastName && (\r\n
{dataError.lastName}
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.companyName && (\r\n
{dataError.companyName}
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n {employeeSizeData.map((value, key) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n {dataError.employeesSize && (\r\n
{dataError.employeesSize}
\r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n {industryData.map((value, key) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.streetAddress && (\r\n
{dataError.streetAddress}
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.city && (\r\n
{dataError.city}
\r\n )}\r\n
\r\n
\r\n \r\n \r\n {dataError.state && (\r\n
{dataError.state}
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.zipcode && (\r\n
{dataError.zipcode}
\r\n )}\r\n
\r\n
\r\n \r\n \r\n {dataError.phonenumber && (\r\n
{dataError.phonenumber}
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n {dataError.email && (\r\n
{dataError.email}
\r\n )}\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n Remove\r\n \r\n
\r\n Document Format should be PDF or Word\r\n
\r\n {dataError.document && (\r\n
{dataError.document}
\r\n )}\r\n
\r\n
\r\n\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nconst mapStateToProps = (state) => ({\r\n info: state.rootReducer,\r\n});\r\n\r\nconst mapDispatchToProps = (dispatch) => {\r\n return {\r\n setInfoData: (data) => dispatch(getInformation(data)),\r\n };\r\n};\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Information);\r\n","export const getInformation = data => {\r\n return {\r\n type: 'GET_INFO',\r\n payload: data\r\n }\r\n}\r\n\r\nexport const addAllStateAndLeaves = data => {\r\n return {\r\n type: 'ADD_ALL_STATE_AND_LEAVES',\r\n payload: data\r\n }\r\n}\r\n\r\nexport const removeStateById = data =>{\r\n return{\r\n type:'REMOVE_STATE_BY_ID',\r\n payload:data\r\n }\r\n}","// @ts-nocheck\r\nimport React, { useState, useEffect } from \"react\";\r\nimport Loader from \"react-loader-spinner\";\r\nimport { addHolidayPaydata, getHolidayPayData } from \"../Services/api\";\r\nimport axios from \"axios\";\r\nimport ArrowBackIcon from \"@material-ui/icons/ArrowBack\";\r\n\r\nconst HolidayPay = (props) => {\r\n const [formPass, setFormPass] = useState(false);\r\n const [loginData, setLoginData] = useState();\r\n const [holidayDynamicData, setholidayDyamicData] = useState([]);\r\n const [data, setData] = useState({ isHolidayPay: \"\", isPayHolidayPay: \"\", holiday: [], error: false, errorMessage: \"\", successMsg: \"\", loading: false });\r\n const { isHolidayPay, isPayHolidayPay, holiday, error, errorMessage, loading } = data;\r\n\r\n const handleChange = (name) => (e) => {\r\n if (name === \"holiday\") {\r\n if (e.target.checked === true) {\r\n const tmp = holiday;\r\n tmp.push(parseInt(e.target.value));\r\n setData({ ...data, holiday: tmp });\r\n } else if (e.target.checked === false) {\r\n const tmp = holiday;\r\n tmp.indexOf(name);\r\n tmp.splice(tmp, 1);\r\n }\r\n } else {\r\n setData({\r\n ...data,\r\n [name]: e.target.value,\r\n });\r\n }\r\n };\r\n \r\n const handleGetData = () => {\r\n axios({\r\n url: getHolidayPayData,\r\n method: \"GET\",\r\n })\r\n .then((response) => {\r\n setholidayDyamicData(response.data.data);\r\n })\r\n .catch((err) => {\r\n if (err) {\r\n console.log(err);\r\n }\r\n });\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n const companyInfoId = localStorage.getItem('CompanyId');\r\n e.preventDefault();\r\n if (!isHolidayPay) {\r\n setData({ ...data, error: true, errorMessage: \"Please Select One\" });\r\n } else {\r\n setData({ ...data, error: false, errorMessage: \"\" });\r\n axios({\r\n url: addHolidayPaydata,\r\n method: \"POST\",\r\n data: {\r\n isHolidayPay: Boolean(isHolidayPay),\r\n totId: holiday,\r\n isParttimeHoliday: Boolean(isPayHolidayPay),\r\n clientId: loginData,\r\n companyInfoId: companyInfoId\r\n },\r\n })\r\n .then((res) => {\r\n setData({ loading: false, error: false });\r\n setFormPass(true);\r\n sendToProgressBar();\r\n })\r\n .catch((err) => {\r\n });\r\n }\r\n };\r\n\r\n const handleBack = () => {\r\n backSendToProgressBar();\r\n }\r\n\r\n const backSendToProgressBar = () => {\r\n props.barValue(18,\"stateProgresDecrement\");\r\n }\r\n\r\n const sendToProgressBar = () => {\r\n document.getElementById(\"HolidayPay\").style.display = \"none\";\r\n props.barValue(10,\"stateProgresIncreMent\");\r\n };\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n setLoginData(loginToken.id);\r\n handleGetData();\r\n }, []);\r\n\r\n return (\r\n <>\r\n {loading ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n\r\n
\r\n
\r\n
\r\n {props.page(\"from-HolidayPay\");handleBack();}}\r\n >\r\n \r\n \r\n
\r\n

Do You offer HolidayPay ?

\r\n {error ? (\r\n \r\n {errorMessage}\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n {data.isHolidayPay === \"true\" ? (\r\n <>\r\n {holidayDynamicData.map((value, index) => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n })}\r\n\r\n
\r\n

Do you pay part-time employees holiday pay?

\r\n \r\n \r\n \r\n \r\n
\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n
\r\n {data.successMsg ? (\r\n \r\n {data.successMsg}\r\n

\r\n ) : (\r\n \"\"\r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default HolidayPay;\r\n","// @ts-nocheck\r\nimport axios from 'axios'\r\nimport React, { useState, useEffect } from 'react'\r\nimport { createcompanyvehicles } from '../Services/api';\r\nimport ArrowBackIcon from '@material-ui/icons/ArrowBack';\r\n\r\nconst CompanyVehicles = props => {\r\n const [loginData, setLoginData] = useState();\r\n const [data, setData] = useState({ isCompanyVehicle: '', isGpsSystem: '', error: false, errorMessage: '', Redirect: false, loading: false });\r\n const [formErrors, setFormErrors] = useState({ formError: '' });\r\n const { isCompanyVehicle, isGpsSystem, error, errorMessage } = data\r\n\r\n const handleChange = name => e => {\r\n handleValidation(name, e.target.value)\r\n setData({\r\n ...data,\r\n [name]: e.target.value\r\n })\r\n }\r\n\r\n const handleValidation = (name, value) => {\r\n if (value.length === 0) {\r\n setFormErrors({ ...formErrors, [name]: `${name} should not be empty!` })\r\n } else {\r\n setFormErrors({ ...formErrors, [name]: '' })\r\n }\r\n }\r\n\r\n const handleSubmit = async e => {\r\n e.preventDefault()\r\n if (!isCompanyVehicle) {\r\n setData({ ...data, error: true, errorMessage: 'Please select any one' })\r\n } else {\r\n setData({ ...data, error: false, errorMessage: '' })\r\n axios({\r\n url: createcompanyvehicles+`?clientId=${loginData.id}&IsVehicles=${isCompanyVehicle}&IsGPSystem=${isGpsSystem}`,\r\n method: 'PUT',\r\n })\r\n .then(res => {\r\n console.log(\"Result :\", res)\r\n sendToProgressBar()\r\n })\r\n .catch(err => console.log('Error :', err))\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem('handbook'))\r\n console.log(\"tocken\",loginToken);\r\n setLoginData(loginToken)\r\n }, []);\r\n\r\n const handleBack =()=>{\r\n backSendToProgressBar();\r\n }\r\n\r\n const sendToProgressBar = () => {\r\n props.flag('Done')\r\n props.barValue(15)\r\n }\r\n\r\n const backSendToProgressBar = ()=>{\r\n props.barValue(14);\r\n }\r\n\r\n return (\r\n
\r\n <>\r\n \r\n
\r\n {props.page('from-CompanyVehicles');handleBack()}}\r\n >\r\n \r\n \r\n
\r\n

Do you have company vehicle?

\r\n {error ? (\r\n \r\n {errorMessage}\r\n \r\n ) : (\r\n ''\r\n )}\r\n\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n {data.isCompanyVehicle === 'true' ? (\r\n <>\r\n
\r\n

Do these vehicles have a GPS System?

\r\n \r\n \r\n \r\n \r\n
\r\n \r\n ) : (\r\n ''\r\n )}\r\n\r\n \r\n \r\n \r\n
\r\n )\r\n}\r\n\r\nexport default CompanyVehicles;\r\n ","// @ts-nocheck\r\nimport axios from \"axios\";\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { addPayrollData, displayDataForPayroll } from \"../Services/api\";\r\nimport ArrowBackIcon from \"@material-ui/icons/ArrowBack\";\r\n\r\nconst PayRoll = (props) => {\r\n const [loginData, setLoginData] = useState();\r\n const [monthlyflag, setMonthlyFlag] = useState(false);\r\n const [semimonthly, setsemimonthlyFlag] = useState(false);\r\n const [bIeeklyflag, setbIweeklyFlag] = useState(false);\r\n const [weeklyflag, setweeklyFlag] = useState(false);\r\n const [payrollData, setPayrollData] = useState([]);\r\n const [data, setData] = useState({ isPayRoll: \"\", isPayRollOps: { firsthalf: \"\", secondhalf: \"\" }, error: false, errorMessage: \"\", loading: false });\r\n const { isPayRoll, error, isPayRollOps, errorMessage } = data;\r\n\r\n const handleChange = (name) => (e) => {\r\n const result = payrollData.filter((x) => x.totId === parseInt(e.target.value));\r\n if (result.length > 0) {\r\n switch (result[0].totValue) {\r\n case \"Monthly\":\r\n setMonthlyFlag(true);\r\n setsemimonthlyFlag(false);\r\n setbIweeklyFlag(false);\r\n setweeklyFlag(false);\r\n break;\r\n case \"Semi-Monthly\":\r\n setMonthlyFlag(false);\r\n setsemimonthlyFlag(true);\r\n setbIweeklyFlag(false);\r\n setweeklyFlag(false);\r\n break;\r\n case \"Biweekly\":\r\n setMonthlyFlag(false);\r\n setsemimonthlyFlag(false);\r\n setbIweeklyFlag(true);\r\n setweeklyFlag(false);\r\n break;\r\n case \"Weekly\":\r\n setMonthlyFlag(false);\r\n setsemimonthlyFlag(false);\r\n setbIweeklyFlag(false);\r\n setweeklyFlag(true);\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n const tmp = {\r\n firsthalf: isPayRollOps.firsthalf,\r\n secondhalf: isPayRollOps.secondhalf,\r\n };\r\n\r\n if (e.target.name === \"dropdown1\" || e.target.name === \"dropdown6\") {\r\n tmp.firsthalf = e.target.value;\r\n tmp.secondhalf = \"\";\r\n setData({\r\n ...data,\r\n isPayRollOps: tmp,\r\n });\r\n } else if (e.target.name === \"dropdown2\" || e.target.name === \"dropdown4\") {\r\n tmp.firsthalf = e.target.value;\r\n setData({\r\n ...data,\r\n isPayRollOps: tmp,\r\n });\r\n } else if (e.target.name === \"dropdown3\" || e.target.name === \"dropdown5\") {\r\n tmp.secondhalf = e.target.value;\r\n setData({\r\n ...data,\r\n isPayRollOps: tmp,\r\n });\r\n } else {\r\n setData({\r\n ...data,\r\n [name]: e.target.value,\r\n });\r\n }\r\n };\r\n\r\n const getPayrollData = () => {\r\n axios({\r\n url: displayDataForPayroll,\r\n method: \"GET\",\r\n })\r\n .then((resp) => {\r\n if (resp === null) {\r\n } else {\r\n setPayrollData(resp.data.data);\r\n }\r\n })\r\n .catch((err) => {\r\n if (err) {\r\n console.log(err);\r\n }\r\n });\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n const companyInfoId = localStorage.getItem('CompanyId');\r\n e.preventDefault();\r\n if (!isPayRoll || !isPayRollOps) {\r\n setData({ ...data, error: true, errorMessage: \"please select one\" });\r\n }\r\n else if (data.isPayRollOps.firsthalf.length === 0 && data.isPayRollOps.secondhalf.length === 0) {\r\n setData({ ...data, error: true, errorMessage: \"please select the value\" });\r\n }\r\n else {\r\n setData({ ...data, error: false, errorMessage: \"\" });\r\n axios({\r\n url: addPayrollData,\r\n method: \"post\",\r\n data: {\r\n totId: isPayRoll,\r\n startDay: data.isPayRollOps.firsthalf,\r\n endDay: data.isPayRollOps.secondhalf,\r\n clientId: loginData,\r\n companyInfoId: companyInfoId\r\n },\r\n })\r\n .then((res) => {\r\n sendToProgressBar();\r\n })\r\n .catch((err) => console.log(\"Error :\", err));\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n setLoginData(loginToken.id);\r\n getPayrollData();\r\n }, []);\r\n\r\n const sendToProgressBar = () => {\r\n props.flag(\"Done\");\r\n props.barValue(18, \"stateProgresIncreMent\");\r\n props.i(14);\r\n };\r\n\r\n const handleBack = () => {\r\n backSendToProgressBar();\r\n };\r\n\r\n const backSendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresDecrement\");\r\n };\r\n\r\n return (\r\n
\r\n <>\r\n
\r\n
\r\n { props.page(\"from-PayrollCycle\"); handleBack() }}>\r\n \r\n \r\n
\r\n

What is your payroll cycle?

\r\n {error ? (\r\n \r\n {errorMessage}\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {payrollData.map((value, key) => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n })}\r\n
\r\n {monthlyflag === true ? (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n ) : semimonthly === true ? (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n ) : bIeeklyflag === true ? (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n ) : weeklyflag === true ? (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n ) : (\r\n \"\"\r\n )}\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default PayRoll;\r\n","import axios from \"axios\";\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { addCompanyStructureData, getCompanyStructureData } from \"../Services/api\";\r\nimport ArrowBackIcon from \"@material-ui/icons/ArrowBack\";\r\n\r\nconst CompanyStructure = (props) => {\r\n const [loginData, setLoginData] = useState();\r\n const [radioData, setradioData] = useState([]);\r\n const [getSelectedValue] = useState([]);\r\n const [validationData, setValidationData] = useState([{ error: false, errormessage: \"\" }]);\r\n\r\n const handleChange = (index) => (e) => {\r\n getSelectedValue[index] = parseInt(e.target.value);\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n const companyInfoId = localStorage.getItem('CompanyId');\r\n e.preventDefault();\r\n if (getSelectedValue.length === 0) {\r\n setValidationData({\r\n ...validationData,\r\n error: true,\r\n errormessage: \"Please select any one option from each\",\r\n });\r\n } else {\r\n axios({\r\n url: addCompanyStructureData + `?companyInfoId=${companyInfoId}&&clientId=${loginData}`,\r\n method: \"POST\",\r\n data: getSelectedValue,\r\n })\r\n .then((res) => {\r\n console.log(res);\r\n sendToMain();\r\n })\r\n .catch((err) => {\r\n if (err) {\r\n console.log(err);\r\n }\r\n });\r\n }\r\n };\r\n\r\n const handleBack = () => {\r\n backSendToProgressBar();\r\n };\r\n\r\n const sendToMain = () => {\r\n props.data(\"done\");\r\n props.barValue(18, \"stateProgresIncreMent\");\r\n };\r\n\r\n const backSendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresDecrement\");\r\n };\r\n\r\n const loadData = () => {\r\n axios({\r\n url: getCompanyStructureData,\r\n method: \"GET\",\r\n })\r\n .then((res) => {\r\n setradioData(res.data.data);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n setLoginData(loginToken.id);\r\n loadData();\r\n }, []);\r\n\r\n return (\r\n
\r\n <>\r\n
\r\n
\r\n {\r\n props.page(\"from-CompanyStructure\");\r\n handleBack();\r\n }}\r\n >\r\n \r\n \r\n
\r\n

What is your company structure?

\r\n
\r\n {validationData.error ? (\r\n \r\n {validationData.errormessage}\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n
\r\n
\r\n\r\n {radioData.map((val, key) => {\r\n return (\r\n
\r\n

{val.reportingType === \"ReportingLevel1\" ? \"Reporting Level 1\" : val.reportingType === \"ReportingLevel2\" ? \"Reporting Level 2\" : \"Reporting Level 3\"}

\r\n
\r\n {val.level.map((y, index) => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n })}\r\n
\r\n
\r\n );\r\n })}\r\n \r\n Next\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default CompanyStructure;\r\n","// @ts-nocheck\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { withStyles } from \"@material-ui/core/styles\";\r\nimport MuiAccordion from \"@material-ui/core/Accordion\";\r\nimport MuiAccordionSummary from \"@material-ui/core/AccordionSummary\";\r\nimport MuiAccordionDetails from \"@material-ui/core/AccordionDetails\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport ClearIcon from \"@material-ui/icons/Clear\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Modal from \"@material-ui/core/Modal\";\r\nimport { addStateData, createState, getLeaveByState } from \"../Services/api\";\r\nimport axios from \"axios\";\r\nimport ArrowBackIcon from \"@material-ui/icons/ArrowBack\";\r\nimport { addAllStateAndLeaves, removeStateById } from \"../Redux/Action/action\";\r\nimport { connect } from \"react-redux\";\r\n\r\nconst style = {\r\n position: \"absolute\",\r\n left: \"50%\",\r\n transform: \"translate(-50%, 0%)\",\r\n width: 400,\r\n bgcolor: \"background.paper\",\r\n border: \"2px solid #000\",\r\n boxShadow: 24,\r\n p: 4,\r\n};\r\n\r\nconst States = (props) => {\r\n const [loginData, setLoginData] = useState();\r\n const [data, setData] = useState({ state: [], Redirect: false });\r\n const [policyToggle, setPolicyToggle] = useState({ name: \"\", show: false });\r\n const [expanded, setExpanded] = useState(\"\");\r\n const { state } = data;\r\n const [StateForLeaveSchema, setStateForLeaveSchema] = useState([]);\r\n const [singleStatePDF] = useState([]);\r\n const [allStateDataPDF] = useState([]);\r\n const [LeaveSchema, setLeaveSchema] = useState([]);\r\n const [dataError, setDataError] = useState({ state: \"\" });\r\n\r\n const GetStateLeaveData = () => {\r\n axios({\r\n url: createState,\r\n method: \"GET\",\r\n })\r\n .then((res) => {\r\n setStateForLeaveSchema(res.data.data);\r\n if (StateForLeaveSchema.length > 0) {\r\n }\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n setLoginData(loginToken.id);\r\n GetStateLeaveData();\r\n }, [singleStatePDF]);\r\n\r\n const handleChange = (name) => (e) => {\r\n if (!state.includes(e.target.value)) {\r\n setData({\r\n ...data,\r\n [name]: [...state, e.target.value],\r\n });\r\n }\r\n setDataError({\r\n ...dataError,\r\n [name]: \"\",\r\n });\r\n allStateDataPDF.push(parseInt(e.target.value));\r\n };\r\n\r\n const handleDelete = (name) => (e) => {\r\n e.preventDefault();\r\n const stateArr = data.state;\r\n const idx = stateArr.indexOf(name);\r\n props.removeLeavesFromRedux(stateArr);\r\n stateArr.splice(idx, 1);\r\n allStateDataPDF.splice(idx, 1);\r\n setData({\r\n ...data,\r\n state: stateArr,\r\n });\r\n };\r\n\r\n const handleValidation = () => {\r\n let errors = {};\r\n if (!state || state.length === 0) errors.state = \"State is required.\";\r\n return errors;\r\n };\r\n\r\n const handleBlur = (name) => () => {\r\n const validationErrors = handleValidation();\r\n setDataError({\r\n ...dataError,\r\n [name]: validationErrors[name] || \"\",\r\n });\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n e.preventDefault();\r\n\r\n // Run validation on form submit\r\n const validationErrors = handleValidation();\r\n setDataError(validationErrors);\r\n\r\n // If there are errors, prevent form submission\r\n if (Object.keys(validationErrors).length > 0) return;\r\n\r\n const companyInfoId = localStorage.getItem('CompanyId');\r\n setData({ ...data });\r\n axios({\r\n url: addStateData + `?companyInfoId=${companyInfoId}&&clientId=${loginData}`,\r\n method: \"POST\",\r\n data: allStateDataPDF,\r\n })\r\n .then((res) => {\r\n sendToProgressBar();\r\n props.setStateAndLeavesInRedux(allStateDataPDF);\r\n })\r\n .catch((err) => console.log(\"Error :\", err));\r\n };\r\n\r\n const handleBack = () => {\r\n backSendToProgressBar();\r\n };\r\n\r\n const sendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresIncreMent\");\r\n props.flag(\"done\");\r\n };\r\n\r\n const backSendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresDecrement\");\r\n };\r\n\r\n const Accordion = withStyles({\r\n root: {\r\n border: \"1px solid rgba(0, 0, 0, .125)\",\r\n boxShadow: \"none\",\r\n \"&:not(:last-child)\": {\r\n borderBottom: 0,\r\n },\r\n \"&:before\": {\r\n display: \"none\",\r\n },\r\n \"&$expanded\": {\r\n margin: \"auto\",\r\n },\r\n },\r\n expanded: {},\r\n })(MuiAccordion);\r\n\r\n const AccordionSummary = withStyles({\r\n root: {\r\n backgroundColor: \"rgba(0, 0, 0, .03)\",\r\n borderBottom: \"1px solid rgba(0, 0, 0, .125)\",\r\n marginBottom: -1,\r\n minHeight: 56,\r\n \"&$expanded\": {\r\n minHeight: 56,\r\n },\r\n },\r\n content: {\r\n \"&$expanded\": {\r\n margin: \"12px 0\",\r\n },\r\n },\r\n expanded: {},\r\n })(MuiAccordionSummary);\r\n\r\n const AccordionDetails = withStyles((theme) => ({\r\n root: { padding: theme.spacing(2) },\r\n }))(MuiAccordionDetails);\r\n\r\n const handleAccordionChange = (panel) => (event, newExpanded) => {\r\n setExpanded(newExpanded ? panel : false);\r\n };\r\n\r\n function getSelectedState(id) {\r\n const result = StateForLeaveSchema.find((x) => x.id === parseInt(id));\r\n if (result) {\r\n return result.stateName;\r\n }\r\n }\r\n\r\n const LeaveState = (id) => {\r\n axios({\r\n url: getLeaveByState + \"?stateId=\" + parseInt(id),\r\n method: \"GET\",\r\n })\r\n .then((res) => {\r\n console.log(\"LeaveState:\", res);\r\n setLeaveSchema(res.data.data);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n };\r\n\r\n return (\r\n
\r\n <>\r\n
\r\n
\r\n {\r\n props.page(\"from-State\");\r\n handleBack();\r\n }}\r\n >\r\n \r\n \r\n
\r\n

State

\r\n
\r\n \r\n \r\n \r\n {StateForLeaveSchema.map((kp, i) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n {dataError.state && (\r\n
{dataError.state}
\r\n )}\r\n
\r\n {state.map((e, i) => {\r\n return (\r\n
\r\n
\r\n
{getSelectedState(e)}
\r\n
\r\n {\r\n LeaveState(e);\r\n setPolicyToggle({\r\n name: StateForLeaveSchema.filter(\r\n (data) => data.id === e\r\n ).map((data) => data.stateName),\r\n show: true,\r\n });\r\n }}\r\n >\r\n \r\n Click to view\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n setPolicyToggle({ name: \"\", show: false })}\r\n aria-labelledby=\"modal-modal-title\"\r\n aria-describedby=\"modal-modal-description\"\r\n >\r\n \r\n setPolicyToggle({ name: \"\", show: false })} />\r\n \r\n {policyToggle.name} Leave Information\r\n \r\n\r\n
\r\n {LeaveSchema.map((data, i) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {data.leaveName}\r\n \r\n
\r\n \r\n Click to view\r\n \r\n
\r\n\r\n \r\n \r\n

\r\n
\r\n \r\n
\r\n \r\n );\r\n })}\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n );\r\n })}\r\n \r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nconst mapStateToProps = (state) => ({\r\n stateAndLeavesFromRedux: state.rootReducer,\r\n removeLeavesFromRedux: state.rootReducer,\r\n});\r\n\r\nconst mapDispatchToProps = (dispatch) => {\r\n return {\r\n setStateAndLeavesInRedux: (data) => dispatch(addAllStateAndLeaves(data)),\r\n removeLeavesFromRedux: (data) => dispatch(removeStateById(data)),\r\n };\r\n};\r\nexport default connect(mapStateToProps, mapDispatchToProps)(States);\r\n","// @ts-nocheck\r\nimport axios from 'axios'\r\nimport React, { useEffect, useState } from 'react';\r\nimport { addFireData } from '../Services/api';\r\nimport ArrowBackIcon from '@material-ui/icons/ArrowBack';\r\n\r\nconst FireExits = props => {\r\n const [loginData, setLoginData] = useState(false)\r\n const [data, setData] = useState({ location: \"\", redirect: false, Redirect: false });\r\n const [error, setError] = useState({ location: \"\" });\r\n const { location } = data;\r\n\r\n const handleChange = name => e => {\r\n setData({\r\n ...data,\r\n [name]: e.target.value\r\n })\r\n\r\n setError({\r\n ...error,\r\n [name]: \"\",\r\n });\r\n }\r\n\r\n const validate = () => {\r\n let errors = {};\r\n if (!location.trim()) errors.location = \"Location is required.\";\r\n return errors;\r\n };\r\n\r\n // Handle input blur event\r\n const handleBlur = (name) => () => {\r\n const validationErrors = validate();\r\n setError({\r\n ...error,\r\n [name]: validationErrors[name] || \"\",\r\n });\r\n };\r\n\r\n const handleSubmit = async e => {\r\n e.preventDefault();\r\n\r\n // Run validation on form submit\r\n const validationErrors = validate();\r\n setError(validationErrors);\r\n\r\n // If there are errors, prevent form submission\r\n if (Object.keys(validationErrors).length > 0) return;\r\n\r\n setData({ ...data })\r\n axios({\r\n url: addFireData + `?clientId=${loginData}&location=${location}`,\r\n method: 'POST',\r\n })\r\n .then(res => {\r\n sendToMain();\r\n })\r\n .catch(err => console.log('error:', err));\r\n }\r\n\r\n const sendToMain = () => {\r\n props.data('done')\r\n props.barValue(18, \"stateProgresIncreMent\");\r\n }\r\n\r\n const handleBack = () => {\r\n backSendToProgressBar();\r\n }\r\n\r\n const backSendToProgressBar = () => {\r\n props.barValue(18, \"stateProgresDecrement\");\r\n }\r\n\r\n useEffect(() => {\r\n const loginToken = JSON.parse(localStorage.getItem('CompanyId'));\r\n setLoginData(loginToken);\r\n }, []);\r\n\r\n return (\r\n
\r\n <>\r\n
\r\n
\r\n { props.page('from-FireExit'); handleBack() }}\r\n >\r\n \r\n \r\n
\r\n

Where are your fire exits located at?

\r\n
\r\n \r\n \r\n {error.location && (\r\n
{error.location}
\r\n )}\r\n
\r\n \r\n
\r\n \r\n
\r\n )\r\n}\r\n\r\nexport default FireExits;\r\n","// @ts-nocheck\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { downloadPdf } from \"../Services/api\";\r\nimport axios from \"axios\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { PopupButton } from \"react-calendly\";\r\nimport { useHistory } from \"react-router\";\r\nimport { saveAs } from \"file-saver\";\r\n\r\nconst Pdf = () => {\r\n const history = useHistory();\r\n const userInformation = useSelector((state) => state.rootReducer.InformationReducer.information);\r\n const pageSettings = { hideEventTypeDetails: false, hideLandingPageDetails: false, hideGdprBanner: true, primaryColor: \"00a2ff\", textColor: \"4d5055\" };\r\n const preFill = {\r\n name: `${userInformation.firstName} ${userInformation.lastName}` || \"Jon Snow\",\r\n firstName: userInformation.firstName || \"Jon\",\r\n lastName: userInformation.lastName || \"Snow\",\r\n email: userInformation.email || \"test@test.com\",\r\n customAnswers: { a1: 'a1', a2: 'a2', a3: 'a3', a4: 'a4', a5: 'a5', a6: 'a6', a7: 'a7', a8: 'a8', a9: 'a9', a10: 'a10' },\r\n };\r\n const [pdfBtnText, setPdfBtnText] = useState(\"\");\r\n\r\n useEffect(() => { \r\n setPdfBtnText(\"Generate PDF\");\r\n }, [pdfBtnText]);\r\n\r\n const generatePDF = () => {\r\n const companyInfoId = localStorage.getItem('CompanyId');\r\n const loginToken = JSON.parse(window.localStorage.getItem(\"handbook\"));\r\n axios({\r\n method: \"GET\",\r\n url: downloadPdf + `?companyInfoId=${companyInfoId}&&clientId=${loginToken.id}`,\r\n })\r\n .then((res) => {\r\n res.data.data.map((value) => {\r\n saveAs(value);\r\n const url = value;\r\n window.open(url, '_blank');\r\n localStorage.removeItem('handbook');\r\n localStorage.removeItem('Price');\r\n localStorage.removeItem('CompanyId');\r\n localStorage.removeItem('customer');\r\n localStorage.removeItem('paymentInt');\r\n localStorage.removeItem('conformCard');\r\n history.push(\"/\");\r\n });\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n {pdfBtnText}\r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Pdf;\r\n","// @ts-nocheck\r\nimport React, { useState } from 'react'\r\n\r\nconst TermAndCondition = (props) => {\r\n const [disable, setDisable] = useState(true);\r\n const [comp, setComp] = useState({ tnc: true, stripe: false });\r\n\r\n const checkboxHandler = () => {\r\n setDisable(!disable)\r\n }\r\n\r\n return (\r\n /* eslint multiline-ternary: [\"error\", \"never\"] */\r\n <>\r\n {comp.tnc ? (\r\n
\r\n
\r\n
\r\n

\r\n EmployerESource Terms and Conditions\r\n

\r\n

\r\n 1. Agreement and General Terms of Use\r\n

\r\n

\r\n 1.1 ‘You” (the individual or entity accepting this Agreement\r\n also referenced in the possessive as Your) agree to access and\r\n use the EmployerESource services and related documentation,\r\n Membership (as defined below), (collectively referenced herein\r\n as the ‘Membership”) on the terms of this License Agreement\r\n between You and EmployerESource (the ‘Agreement’). Your access\r\n to and/or use of the Membership signify Your agreement with\r\n these terms and conditions. You indicate Your agreement with\r\n these terms and conditions by paying the membership fee. If You\r\n are accepting these terms on behalf of a business entity, You\r\n represent that You have the authority to do so. If You do not\r\n agree to these terms and conditions, do not pay and You will not\r\n be permitted to use the Membership.\r\n
\r\n
\r\n 1.2 EmployerESource reserves the right, in its sole discretion,\r\n to change any and all of the provisions of this Agreement at any\r\n time. EmployerESource reserves the right, in its sole\r\n discretion, to change, limit or discontinue any aspect, content\r\n or feature that is a part of the Membership. EmployerESource\r\n further reserves the right, in its sole discretion, to restrict\r\n the use of the Membership as well as suspend or revoke your\r\n rights to use the Membership based on EmployerESource’s belief\r\n that your use of the Membership violates that permitted by this\r\n Agreement or applicable law.\r\n
\r\n
\r\n 1.3 If you do not agree to the provisions of this Agreement or\r\n are not satisfied with the Membership, your sole and exclusive\r\n remedy is to discontinue your use of the Material and Services.\r\n

\r\n
\r\n

\r\n 2. Membership\r\n

\r\n\r\n

\r\n 2.1 As used in this Agreement, the term “Membership” includes\r\n reports, handbooks, forms, letters, articles, consulting and\r\n webinars (collectively, “ Membership”)\r\n

\r\n
\r\n

\r\n 3. License\r\n

\r\n

\r\n 3.1 The Membership is restricted and may only be used by (i)\r\n members and (ii) employees duly authorized by a business entity\r\n which is a Member (collectively referenced as “Authorized\r\n Users”). References to and Unauthorized Person means any entity\r\n or person who is not a Member or an Authorized User. By paying\r\n the Membership fees for the right to use the Membership You\r\n agree to the terms and conditions herein. Members and Authorized\r\n Users are hereby granted a limited, non-exclusive,\r\n nontransferable license to:\r\n
\r\n

\r\n 1. Use of the Membership to display material on a computer\r\n screen.\r\n

\r\n

\r\n 2. Make printouts of individual items for the use with Members\r\n employees.\r\n

\r\n
\r\n Any other use of Member require EmployerESource prior written\r\n consent which may be requested by email sent to\r\n \r\n {' '}\r\n Wendy@EmployerESource\r\n \r\n . At EmployerESource’s discretion, a new Membership agreement\r\n and additional fees may be required for additional use of the\r\n Membership.\r\n
\r\n
\r\n 3.2 All Services provided by EmployerESource are protected by\r\n copyright trademark and/or other applicable intellectual\r\n property and proprietary rights laws and are owned, controlled,\r\n and/or licensed by EmployerESource. You agree not to use any\r\n trademark or copyrighted material without express written\r\n permission of EmployerESource.\r\n
\r\n
\r\n 3.3 You agree that you do not acquire any ownership rights in\r\n any Membership.\r\n

\r\n
\r\n

\r\n 4. Fees and Payments\r\n

\r\n\r\n

\r\n 4.1 If you become a Member (“Member”) of any of the Material and\r\n Services, you will be bound by the payment terms set forth\r\n herein.\r\n
\r\n
\r\n 4.2 You acknowledge that you will pay EmloyerESource all such\r\n fees, charges, and applicable taxes for the Material and\r\n Services where enrollment in the Material and Services has been\r\n made using your credit card or other means, whether made by your\r\n personally or someone in the organization on your behalf. If you\r\n enroll in the Material and Services using a credit card, you\r\n certify to EmployerESource that you are at least 18 years age\r\n and that you are the cardholder of the credit card, or that you\r\n are expressly authorized by the card holder to enroll in the\r\n Material and Services. In any event, you expressly certify and\r\n represent that you are not under the age of 13.\r\n
\r\n
\r\n

\r\n
\r\n {/*

*/}\r\n

\r\n

\r\n 4.3 You further acknowledge that your obligation to pay\r\n EmployerESource all such fees, charges, and applicable taxes for\r\n the Material and Services, and that you remain obligated to pay\r\n EmployerESource for the Material and Services regardless of\r\n whether the Material and Services is used or not. Your\r\n obligation to pay for the Material and Services begins on the\r\n date Your membership payment, not the date of your first use of\r\n the Material and Services.
\r\n
\r\n 4.4 The price you pay for a Membership is stipulated at the time\r\n you enroll in such Membership. EmployerESource reserves the\r\n right to change the price for Membership after the first twelve\r\n months of this Agreement.\r\n
\r\n
\r\n 4.5 Consulting is charged out at one-hundred twenty five\r\n (125.00) dollars per hour, charged to the nearest fifteen (15)\r\n minutes billed out monthly. Consulting is providing review and\r\n advice on specific employee situations and circumstances.\r\n
\r\n
\r\n Consulting is for issues related to employee and business\r\n specific problems.\r\n

\r\n
\r\n

\r\n 5. Termination\r\n

\r\n\r\n

\r\n 5.1 EmployerESource reserves the right to suspend or terminate\r\n Membership of any user reasonably suspected to have breached\r\n this Agreement, with or without notice and without further\r\n obligation.\r\n

\r\n
\r\n
\r\n 6. Use of Membership\r\n
\r\n\r\n

\r\n 6.1 The Membership and any other information included in the\r\n Membership are provided for reference purposes only. They are\r\n not intended as a substitute for professional advice or judgment\r\n or to provide legal or other advice with respect to any\r\n particular circumstances.\r\n
\r\n
\r\n 6.2 Although efforts are made to keep Membership current, You\r\n are advised to obtain independent verification or professional\r\n advice before relying on the Membership in circumstances where\r\n loss or damage may result.\r\n
\r\n
\r\n 6.3 The Membership are provided on an ‘as is’ basis and\r\n EmployerESource excludes, to the extent permitted by law, all\r\n warranties, express or implied, including warranties relating to\r\n fitness for a particular purpose.\r\n
\r\n
\r\n 6.4 The information provided by EmployerESource along with the\r\n content on our website is provided for your private use and does\r\n not constitute legal advice. We do not review any information\r\n you provide us for legal accuracy or sufficiency, draw legal\r\n conclusions, provide options about your selection of forms, or\r\n apply the law to the fact of your situation.\r\n
\r\n
\r\n If you need legal advice for a specific problem, you should\r\n consult with licensed attorney. Neither EmployerESource nor any\r\n information provided by EmployerESource is a substitute for\r\n legal advice from a qualified attorney licensed to practice in\r\n an appropriate jurisdiction. As EmployerESource is not a law\r\n firm, please note that any communications between you and\r\n EmployerESource may not be protected as confidential information\r\n under the attorney-client privilege doctrine.\r\n
\r\n
\r\n Your use of the Membership does not create an attorney-client\r\n relationship between you and EmployerESource, or between you and\r\n any EmployerESource employee or representative. Unless you or\r\n otherwise represented by and attorney, you represent yourself in\r\n any legal matter you undertake through our Membership.\r\n
\r\n
\r\n 6.5 Customized employee handbook, forms and paperwork is done to\r\n Your state, federal and city laws, Your industry standards and\r\n Your business specifications. Business specifications are\r\n business operating hours, attendance reporting requirements and\r\n business reporting structure. EmployerESource provides free\r\n changes to the employee handbook during the membership. Changes\r\n only apply to business specifications and law updates.\r\n

\r\n
\r\n
\r\n
\r\n checkboxHandler()}\r\n />\r\n \r\n
\r\n\r\n
\r\n {\r\n setComp({ stripe: true })\r\n props.page('from-Payment')\r\n }}\r\n >\r\n Agree\r\n \r\n \r\n
\r\n
\r\n ) : (\r\n ''\r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default TermAndCondition\r\n","import React, { useState, useEffect } from 'react';\r\nimport CheckCircleIcon from '@material-ui/icons/CheckCircle';\r\nimport { loadStripe } from '@stripe/stripe-js';\r\nimport { Elements, CardElement, useStripe, useElements } from '@stripe/react-stripe-js';\r\nimport axios from 'axios';\r\nimport { createPayments, createCustomers, paymentIntentURL, stripePublicKey, stripeSecretKey } from \"../Services/api\";\r\n\r\nconst stripePromise = loadStripe(stripePublicKey);\r\nconst Stripe = ({ page }) => {\r\n const [form, setForm] = useState({ fullName: '', email: '', phone: '', error: '' });\r\n const [loading, setLoading] = useState(false);\r\n const [successMsg, setSuccessMsg] = useState(false);\r\n const [error, setError] = useState('');\r\n const [amount, setAmount] = useState();\r\n const stripe = useStripe();\r\n const elements = useElements();\r\n\r\n useEffect(() => {\r\n setAmount(localStorage.getItem('Price'));\r\n }, [amount]);\r\n\r\n const handleChange = e => {\r\n const { name, value } = e.target;\r\n setForm(prevForm => ({ ...prevForm, [name]: value }));\r\n };\r\n\r\n const createCustomer = async () => {\r\n const { email, fullName } = form;\r\n\r\n if (!email || !fullName) {\r\n setError(\"Please fill in your name and email.\");\r\n return;\r\n }\r\n\r\n try {\r\n setLoading(true);\r\n const response = await axios.post(createCustomers, new URLSearchParams({\r\n email,\r\n name: fullName\r\n }).toString(), {\r\n headers: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Authorization': `Bearer ${stripeSecretKey}`,\r\n }\r\n });\r\n\r\n const customer = response.data;\r\n if (customer) {\r\n localStorage.setItem('customer', JSON.stringify(customer));\r\n await paymentIntents(customer.id);\r\n }\r\n } catch (error) {\r\n setError('Error creating customer: ' + (error.response?.data?.message || error.message));\r\n } finally {\r\n setLoading(false);\r\n }\r\n };\r\n\r\n const paymentIntents = async (customerId) => {\r\n const finalAmount = amount * 100; // in cents\r\n try {\r\n const response = await axios.post(paymentIntentURL, new URLSearchParams({\r\n amount: finalAmount.toString(),\r\n currency: 'usd',\r\n customer: customerId,\r\n 'payment_method_types[]': 'card',\r\n }).toString(), {\r\n headers: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Authorization': `Bearer ${stripeSecretKey}`,\r\n }\r\n });\r\n\r\n const { client_secret } = response.data;\r\n if (client_secret) {\r\n localStorage.setItem('paymentInt', JSON.stringify(response.data));\r\n await confirmCardPayment(client_secret);\r\n }\r\n } catch (error) {\r\n setError('Error creating payment intent: ' + (error.response?.data?.message || error.message));\r\n }\r\n };\r\n\r\n const confirmCardPayment = async (client_secret) => {\r\n try {\r\n const { error, paymentIntent } = await stripe.confirmCardPayment(client_secret, {\r\n payment_method: {\r\n card: elements.getElement(CardElement),\r\n billing_details: {\r\n name: form.fullName,\r\n },\r\n },\r\n });\r\n if (error) {\r\n localStorage.setItem('conformCard', JSON.stringify(error?.payment_intent));\r\n createPayment();\r\n setError(`Payment failed: ${error.message}`);\r\n } else if (paymentIntent.status === 'succeeded') {\r\n localStorage.setItem('conformCard', JSON.stringify(paymentIntent));\r\n createPayment();\r\n setSuccessMsg('Payment successful!');\r\n setSuccessMsg(true);\r\n setTimeout(() => {\r\n page('from-Stripe');\r\n }, 2000);\r\n }\r\n } catch (error) {\r\n setError('Error confirming payment: ' + (error.message || error));\r\n }\r\n };\r\n\r\n const createPayment = () => {\r\n const customer = JSON.parse(localStorage.getItem('customer'));\r\n const paymentInt = JSON.parse(localStorage.getItem('paymentInt'));\r\n const conformCard = JSON.parse(localStorage.getItem('conformCard'));\r\n const data = {\r\n fullName: form?.fullName,\r\n email: form?.email,\r\n phone: form?.phone,\r\n stripePaymentId: paymentInt?.id,\r\n customerId: customer?.id,\r\n amount: Number(amount),\r\n currency: paymentInt?.currency,\r\n status: conformCard?.status,\r\n paymentMethod: paymentInt?.payment_method_types?.length > 0 ? paymentInt?.payment_method_types[0] : ''\r\n };\r\n axios({\r\n url: createPayments,\r\n method: \"POST\",\r\n data: data\r\n })\r\n .then((resp) => {\r\n })\r\n .catch((err) => {\r\n console.error(\"Error creating payment:\", err.response ? err.response.data : err.message);\r\n });\r\n };\r\n\r\n const handleSubmit = async (e) => {\r\n e.preventDefault();\r\n\r\n if (!stripe || !elements) return;\r\n\r\n const cardElement = elements.getElement(CardElement);\r\n const { error: stripeError } = await stripe.createToken(cardElement);\r\n\r\n if (stripeError) {\r\n setError(stripeError.message);\r\n } else {\r\n await createCustomer();\r\n }\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Payment

\r\n
\r\n
\r\n {successMsg && (\r\n
\r\n Payment Successful\r\n
\r\n )}\r\n\r\n {error && (\r\n
\r\n Error: {error}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst StripeWrapper = (props) => (\r\n \r\n \r\n \r\n);\r\n\r\nexport default StripeWrapper;\r\n","// @ts-nocheck\r\nimport React, { useState, useEffect } from \"react\";\r\nimport Information from \"../Pages/Information\";\r\nimport HolidayPay from \"../Pages/HolidayPay\";\r\nimport CompanyVehicles from \"../Pages/CompanyVehicles\";\r\nimport PayRoll from \"../Pages/PayRoll\";\r\nimport CompanyStruture from \"../Pages/CompanyStructure\";\r\nimport States from \"../Pages/States\";\r\nimport FireExits from \"../Pages/FireExits\";\r\nimport PdfComponent from \"../Pages/Pdf\";\r\nimport TermsCondition from \"../Pages/TermsCondition\";\r\nimport Stripe from \"../Pages/Stripe\";\r\n\r\nconst GeneralInformation = (props) => {\r\n const [generalinformationFlag, setgeneralinformationFlag] = useState(true);\r\n const [statesFlag, setstatesFlag] = useState(false);\r\n const [companystructureFlag, setcompanystructureFlag] = useState(false);\r\n const [fireexitsFlag, setfireexitsFlag] = useState(false);\r\n const [payrollcycleFlag, setpayrollcycleFlag] = useState(false);\r\n const [companyvehicleFlag, setcompanyvehicleFlag] = useState(false);\r\n const [holidaypayFlag, setholidaypayFlag] = useState(false);\r\n const [pdfFlag, setPdfFlag] = useState(false);\r\n const [paymentFlag, setPaymentFlag] = useState(false);\r\n const [stripeFlag, setStripeFlag] = useState(false);\r\n const [progressbarFlag, setProgressBarFlag] = useState(\"inc\");\r\n const [progressBar, setProgressBar] = useState(0);\r\n const [disable, setDisable] = useState({ generalInformation: false, states: false, companyStructure: false, fireExit: false, payrollCycle: false, holidayPay: false });\r\n\r\n const handleFlagChange = (name) => () => {\r\n if (name === \"generalinformationFlag\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(!generalinformationFlag);\r\n setholidaypayFlag(false);\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(false);\r\n setcompanyvehicleFlag(false);\r\n } else if (name === \"statesFlag\") {\r\n setstatesFlag(!statesFlag);\r\n setgeneralinformationFlag(false);\r\n setholidaypayFlag(false);\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(false);\r\n setcompanyvehicleFlag(false);\r\n } else if (name === \"companystructureFlag\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(false);\r\n setholidaypayFlag(false);\r\n setcompanystructureFlag(!companystructureFlag);\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(false);\r\n setcompanyvehicleFlag(false);\r\n } else if (name === \"fireexitsFlag\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(false);\r\n setholidaypayFlag(false);\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(!fireexitsFlag);\r\n setpayrollcycleFlag(false);\r\n setcompanyvehicleFlag(false);\r\n } else if (name === \"payrollcycleFlag\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(false);\r\n setholidaypayFlag(false);\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(!payrollcycleFlag);\r\n setcompanyvehicleFlag(false);\r\n } else if (name === \"holidaypayFlag\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(false);\r\n setholidaypayFlag(!holidaypayFlag);\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(false);\r\n setcompanyvehicleFlag(false);\r\n }\r\n setPaymentFlag(false);\r\n };\r\n \r\n const fromInformationComp = (item,flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, generalInformation: false, states: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, generalInformation: true, states: false });\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const changeInformationState = (item) => {\r\n setgeneralinformationFlag(false);\r\n setstatesFlag(true);\r\n };\r\n\r\n const fromStateComp = (item, flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, generalInformation: false, states: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, states: true, companyStructure: false });\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const setProgressValue = (value) => {\r\n setProgressBarFlag(value);\r\n };\r\n\r\n const changeStateState = (item) => {\r\n setstatesFlag(false);\r\n setcompanystructureFlag(true);\r\n };\r\n\r\n const fromCompanyStructureComp = (item, flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, states: false, companyStructure: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, fireExit: false, companyStructure: true });\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const changeCompanyStructureState = (item) => {\r\n setcompanystructureFlag(false);\r\n setfireexitsFlag(true);\r\n };\r\n\r\n const fromFireExitComp = (item, flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, companyStructure: false, fireExit: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, fireExit: true, payrollCycle: false });\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const changeFireExitState = (item) => {\r\n setfireexitsFlag(false);\r\n setpayrollcycleFlag(true);\r\n };\r\n\r\n const onPage = (item) => {\r\n if (item === \"from-State\") {\r\n setstatesFlag(false);\r\n setgeneralinformationFlag(true);\r\n }\r\n if (item === \"from-CompanyStructure\") {\r\n setcompanystructureFlag(false);\r\n setstatesFlag(true);\r\n }\r\n if (item === \"from-FireExit\") {\r\n setfireexitsFlag(false);\r\n setcompanystructureFlag(true);\r\n }\r\n if (item === \"from-PayrollCycle\") {\r\n setpayrollcycleFlag(false);\r\n setfireexitsFlag(true);\r\n }\r\n if (item === \"from-HolidayPay\") {\r\n setholidaypayFlag(false);\r\n setpayrollcycleFlag(true);\r\n }\r\n if (item === \"from-Payment\") {\r\n setPaymentFlag(false);\r\n setStripeFlag(true);\r\n }\r\n if (item === \"from-Stripe\") {\r\n setStripeFlag(false);\r\n setPdfFlag(true);\r\n }\r\n };\r\n\r\n const fromPayRollComp = (item, flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, fireExit: false, payrollCycle: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, payrollCycle: true, holidayPay: false });\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const changePayRollState = (item) => {\r\n setpayrollcycleFlag(false);\r\n setholidaypayFlag(true);\r\n };\r\n\r\n const changeCompanyVehiclesState = (item) => {\r\n setcompanyvehicleFlag(false);\r\n setholidaypayFlag(true);\r\n };\r\n\r\n const fromHolidayPayComp = (item, flag) => {\r\n switch (flag) {\r\n case \"stateProgresDecrement\":\r\n setProgressBar(progressBar - item);\r\n setDisable({ ...disable, payrollCycle: false, holidayPay: true });\r\n break;\r\n case \"stateProgresIncreMent\":\r\n setProgressBar(progressBar + item);\r\n setDisable({ ...disable, holidayPay: false });\r\n setPaymentFlag(true);\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (!window.localStorage.getItem(\"handbook\")) {\r\n props.history.push({\r\n pathname: \"/login\",\r\n });\r\n }\r\n }, []);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {progressBar === undefined ? 0 : progressBar}%\r\n
\r\n
\r\n
\r\n
\r\n \r\n General Information\r\n \r\n \r\n States\r\n \r\n \r\n Company Structure\r\n \r\n \r\n Fire Exits\r\n \r\n \r\n Payroll Cycle\r\n \r\n \r\n Holiday Pay\r\n \r\n
\r\n
\r\n
\r\n {generalinformationFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {statesFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {companystructureFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {fireexitsFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {payrollcycleFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {companyvehicleFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {holidaypayFlag ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {paymentFlag ? : \"\"}\r\n {stripeFlag ? : \"\"}\r\n {pdfFlag ? : \"\"}\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default GeneralInformation;\r\n","import React, { useState } from 'react';\r\nimport axios from 'axios';\r\nimport { Link, Redirect } from 'react-router-dom';\r\nimport Loader from 'react-loader-spinner';\r\nimport { signIn } from '../../Services/api';\r\n\r\nconst Login = () => {\r\n const [data, setData] = useState({ email: '', password: '' });\r\n const [redirect, setRedirect] = useState(false);\r\n const [error, setError] = useState({ email: '', password: '', mainError: '' });\r\n const { email, password } = data;\r\n\r\n const handleChange = name => e => {\r\n setData({\r\n ...data,\r\n [name]: e.target.value\r\n });\r\n\r\n setError({\r\n ...error,\r\n [name]: \"\",\r\n });\r\n };\r\n\r\n const validate = (name, value) => {\r\n let errorMessage = '';\r\n if (value.trim() === '') {\r\n errorMessage = `${name.charAt(0).toUpperCase() + name.slice(1)} is required.`;\r\n }\r\n\r\n if (name === 'email' && value.trim()) {\r\n const emailRegex =\r\n /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n if (!emailRegex.test(value)) {\r\n errorMessage = 'Please Enter a valid Email **';\r\n }\r\n }\r\n\r\n setError(prevError => ({\r\n ...prevError,\r\n [name]: errorMessage,\r\n }));\r\n };\r\n\r\n const handleSubmit = e => {\r\n e.preventDefault();\r\n\r\n let isValid = true;\r\n\r\n // Validate both fields before submitting\r\n if (!email) {\r\n setError(prevError => ({ ...prevError, email: 'Email is required' }));\r\n isValid = false;\r\n }\r\n\r\n if (!password) {\r\n setError(prevError => ({ ...prevError, password: 'Password is required' }));\r\n isValid = false;\r\n }\r\n\r\n // If validation passes, proceed with the API call\r\n if (isValid) {\r\n axios({\r\n url: signIn,\r\n method: 'POST',\r\n data: {\r\n email: email,\r\n password: password,\r\n },\r\n })\r\n .then(res => {\r\n localStorage.setItem('handbook', JSON.stringify(res.data));\r\n setRedirect(true);\r\n })\r\n .catch(err => {\r\n setError({ mainError: 'Authentication Failed' });\r\n });\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n

Login

\r\n
\r\n
\r\n {/* Email input */}\r\n
\r\n \r\n validate('email', e.target.value)}\r\n placeholder=\"Enter a valid email address\"\r\n />\r\n {error.email && (\r\n
{error.email}
\r\n )}\r\n
\r\n\r\n {/* Password input */}\r\n
\r\n \r\n validate('password', e.target.value)}\r\n placeholder=\"Enter password\"\r\n />\r\n {error.password && (\r\n
{error.password}
\r\n )}\r\n
\r\n\r\n
\r\n \r\n

\r\n Don't have an account?{' '}\r\n \r\n Register\r\n \r\n

\r\n
\r\n
\r\n {redirect ? : ''}\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default Login;\r\n","// @ts-nocheck\r\nimport React, { useState } from \"react\";\r\nimport axios from \"axios\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport Loader from \"react-loader-spinner\";\r\nimport { createUser } from \"../../Services/api\";\r\n\r\nconst Register = () => {\r\n const [data, setData] = useState({\r\n firstName: \"\",\r\n lastName: \"\",\r\n email: \"\",\r\n password: \"\",\r\n phoneNumber: \"\",\r\n });\r\n const [redirect, setRedirect] = useState(false);\r\n const [error, setError] = useState({\r\n firstName: \"\",\r\n lastName: \"\",\r\n email: \"\",\r\n password: \"\",\r\n phoneNumber: \"\",\r\n });\r\n\r\n const { firstName, lastName, email, password, phoneNumber } = data;\r\n\r\n // Handle change of input values\r\n const handleChange = (name) => (e) => {\r\n const value = e.target.value;\r\n setData({\r\n ...data,\r\n [name]: value,\r\n });\r\n\r\n setError({\r\n ...error,\r\n [name]: \"\",\r\n });\r\n\r\n if (name === \"phoneNumber\") {\r\n const cleanedValue = value.replace(/\\D/g, \"\");\r\n setData({ ...data, phoneNumber: cleanedValue });\r\n }\r\n };\r\n\r\n // Basic validation function\r\n const validate = () => {\r\n let errors = {};\r\n\r\n if (!firstName.trim()) errors.firstName = \"First name is required.\";\r\n if (!lastName.trim()) errors.lastName = \"Last name is required.\";\r\n if (!email.trim()) errors.email = \"Email is required.\";\r\n else {\r\n const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n if (!emailRegex.test(email)) errors.email = \"Please Enter a valid Email **\";\r\n }\r\n if (!password.trim()) errors.password = \"Password is required.\";\r\n if (!phoneNumber.trim()) errors.phoneNumber = \"Phone number is required.\";\r\n\r\n return errors;\r\n };\r\n\r\n // Handle input blur event\r\n const handleBlur = (name) => () => {\r\n const validationErrors = validate();\r\n setError({\r\n ...error,\r\n [name]: validationErrors[name] || \"\",\r\n });\r\n };\r\n\r\n // Form submit handler\r\n const handleSubmit = (e) => {\r\n e.preventDefault();\r\n\r\n // Run validation on form submit\r\n const validationErrors = validate();\r\n setError(validationErrors);\r\n\r\n // If there are errors, prevent form submission\r\n if (Object.keys(validationErrors).length > 0) return;\r\n\r\n axios({\r\n url: createUser,\r\n method: \"POST\",\r\n data: { firstName, lastName, email, password, phoneNumber },\r\n })\r\n .then((res) => {\r\n setRedirect(true);\r\n })\r\n .catch(() => {\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n

Register

\r\n
\r\n
\r\n {/* First Name input */}\r\n
\r\n \r\n \r\n {error.firstName && (\r\n
{error.firstName}
\r\n )}\r\n
\r\n\r\n {/* Last Name input */}\r\n
\r\n \r\n \r\n {error.lastName && (\r\n
{error.lastName}
\r\n )}\r\n
\r\n\r\n {/* Email input */}\r\n
\r\n \r\n \r\n {error.email &&
{error.email}
}\r\n
\r\n\r\n {/* Password input */}\r\n
\r\n \r\n \r\n {error.password &&
{error.password}
}\r\n
\r\n\r\n {/* Phone number input */}\r\n
\r\n \r\n \r\n {error.phoneNumber && (\r\n
{error.phoneNumber}
\r\n )}\r\n
\r\n\r\n {/* Register Button */}\r\n
\r\n \r\n Register\r\n \r\n

\r\n Already have an account?{\" \"}\r\n \r\n Login\r\n \r\n

\r\n
\r\n
\r\n {redirect && }\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default Register;\r\n","import React from 'react';\r\nimport { BrowserRouter, Route, Switch } from 'react-router-dom';\r\nimport Home from '../Components/Home';\r\nimport Header from '../Components/Header';\r\nimport GeneralInformation from '../Pages/GeneralInformation';\r\nimport Login from '../Pages/Auth/Login';\r\nimport Register from '../Pages/Auth/Register';\r\nimport CompanyStruture from '../Pages/CompanyStructure';\r\nimport CompanyVehicles from '../Pages/CompanyVehicles';\r\nimport FireExits from '../Pages/FireExits';\r\nimport Information from '../Pages/Information';\r\nimport PayRoll from '../Pages/PayRoll';\r\nimport States from '../Pages/States';\r\nimport HolidayPay from '../Pages/HolidayPay';\r\nimport { Redirect } from 'react-router-dom';\r\n\r\nconst Routes = () => {\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default Routes\r\n","const InitState = {\r\n information: []\r\n}\r\n\r\nconst getInformation = (state = InitState, action) => {\r\n switch (action.type) {\r\n case 'GET_INFO':\r\n return {\r\n ...state,\r\n information: action.payload\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default getInformation;\r\n","const InitState = {\r\n stateAndLeaves: [],\r\n stateId: [],\r\n};\r\n\r\nconst addAllStateAndLeaves = (state = InitState, action) => {\r\n switch (action.type) {\r\n case \"ADD_ALL_STATE_AND_LEAVES\":\r\n return {\r\n ...state,\r\n stateAndLeaves: action.payload,\r\n };\r\n\r\n case 'REMOVE_STATE_BY_ID':\r\n return{\r\n ...state,\r\n stateId:action.payload,\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default addAllStateAndLeaves;\r\n","import InformationReducer from './infoReducer'\r\nimport stateWithLeavesReducer from './stateWithLeavesReducer'\r\nimport { combineReducers } from 'redux'\r\n\r\nconst rootReducer = combineReducers({\r\n InformationReducer: InformationReducer,\r\n stateWithLeavesReducer: stateWithLeavesReducer\r\n})\r\n\r\nexport default rootReducer;\r\n","import { combineReducers, compose, createStore, applyMiddleware } from \"redux\";\r\nimport rootReducer from \"./Reducer/index\";\r\nimport thunkMiddleware from \"redux-thunk\";\r\n\r\nconst newReducer = combineReducers({\r\n rootReducer: rootReducer,\r\n});\r\n\r\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n\r\nconst store = createStore(\r\n newReducer,\r\n composeEnhancers(applyMiddleware(thunkMiddleware))\r\n);\r\n\r\nexport default store;\r\n","import React from 'react'\r\nimport ReactDOM from 'react-dom'\r\nimport './index.css'\r\nimport Routes from './Routes/Routes'\r\nimport { Provider } from 'react-redux'\r\nimport Store from './Redux/Store'\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n)\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\n"],"sourceRoot":""}