{"version":3,"sources":["services/UserService.ts","Assets.tsx","State.tsx","store.tsx","components/Footer.tsx","components/ResponsiveNavbar.tsx","answers/CheckboxAnswer.tsx","answers/DropDownAnswer.tsx","answers/InputAnswer.tsx","components/Question.tsx","answers/RadioAnswer.tsx","answers/TextAreaAnswer.tsx","answers/FileAnswer.tsx","answers/ConditionalFileAnswer.tsx","components/PCovTable.tsx","answers/PCovTableAnswer.tsx","components/ComponentSwitcher.tsx","components/EnumeratedTable.tsx","answers/OwnershipTableAnswer.tsx","answers/DatesAnswer.tsx","answers/NamesAndLocationsAnswer.tsx","answers/QuestionAnswer.tsx","components/QuestionSet.tsx","pages/SingleEntityQuestionnaire.tsx","pages/UnderwritingPortalQuestionnaire.tsx","pages/PolicyCoverageQuestionnaire.tsx","pages/ExperienceRatingQuestionnaire.tsx","pages/NoticeOfElectionQuestionnaire.tsx","pages/PlanQuestionnaire.tsx","pages/ActuarialQuestionnaire.tsx","pages/MembershipQuestionnaire.tsx","components/ResponsiveLogoTitle.tsx","pages/SpecialCallsQuestionnaire.tsx","pages/Home.tsx","pages/SignIn.tsx","pages/SignOut.tsx","pages/Silent.tsx","pages/ThankYou.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["userManager","UserManager","authority","process","client_id","client_secret","redirect_uri","response_type","response_mode","scope","post_logout_redirect_uri","silent_redirect_uri","automaticSilentRenew","events","addUserLoaded","user","console","log","addUserUnloaded","addAccessTokenExpiring","addSilentRenewError","err","message","userMgrUser","async","signInRedirectS","s","signinRedirect","state","signinRedirectAsyncS","signinRedirectCallback","dispatch","url","then","type","value","signinRedirectCallbackAsync","signoutRedirect","clearStaleState","removeUser","signoutRedirectCallback","renewAccessToken","signinSilentCallback","getUserInfo","getUser","NJLOGO","React","createElement","id","viewBox","style","width","height","fill","d","aria-label","transform","PortalType","dateValidator","length","isNaN","Date","parse","date","minDate","maxDate","getTime","numberValidatorN","n","parseInt","stringValidatorN","x","y","UNDERWRITING_INITIAL_STATE","questionAnswerState","answerContent","answerType","isRequired","questionContent","answerValue","isAnswerValid","isAnswered","propName","errorProps","content","answerPlaceholder","entityID","policyEffectiveDate","entityName","PLAN_INITIAL_STATE","ACTUARIAL_INITIAL_STATE","MEMBERSHIP_INITIAL_STATE","EXPERIENCE_RATING_INITIAL_STATE","NOTICE_OF_ELECTION_INITIAL_STATE","OWNERSHIP_INITIAL_STATE","answerValidator","match","label","COVERAGE_INITIAL_STATE","SPECIAL_CALLS_INITIAL_STATE","answerAdditionalData","GLOBAL_INITIAL_STATE","appState","history","H","privileges","isDarkTheme","isNavbarVisible","optionChosen","None","answerState","timeouts","initialState","store","createContext","v","Provider","handleQAStateUpdate","source","index","validator","map","q","idx","handleSubmit","e","shorthand","additionalPropsFn","preventDefault","setState","isLoading","formData","FormData","forEach","i","a","append","replace","item","files","JSON","stringify","Error","formAppendHandler","fetch","body","method","response","ok","icon","setTimeout","push","headers","r","handleErrorToast","doSubmission","handleAnswerUpdate","portalType","clearTimeout","window","Underwriting","ExperienceRating","SingleEntityOwnership","PolicyCoverage","NoticeOfElection","Plan","Actuarial","Membership","SpecialCalls","getDelayLength","description","toast","size","time","title","setSignIn","handleQAStateValidation","showError","StateProvider","props","useReducer","action","inquiryType","setUnderwritingState","setOwnershipState","setPolicyCoverageState","setExperienceRatingState","setNoticeOfElectionState","setPlanState","setActuarialState","setMembershipState","setSpecialCallsState","toggleTheme","clearState","portalState","dropDownOption","handleQuestionSetSelection","checkAuth","getValidator","handleUpdate","handleValidation","children","phoneValidator","numberValidator","emailValidator","fileValidator","answer","conditionalFileValidator","ownerships","every","o","ownerOrMember","name","amount","reduce","c","ownershipValidator","dates","datesValidator","nameLocs","nameLocsValidator","pcovValidator","split","Footer","globalState","useContext","Container","textAlign","backgroundColor","padding","Divider","section","color","getFullYear","ResponsiveNavbar","Menu","fixed","boxShadow","borderless","stackable","inverted","Item","as","Link","to","active","undefined","onClick","goHome","Image","centered","fitted","header","position","Dropdown","text","pointing","className","NavLink","profile","role_extended","includes","themeToggle","role","key","marginTop","CheckboxAnswer","TextArea","maxWidth","resize","readOnly","propsBase","Form","Checkbox","onChange","checked","DropDownAnswer","Field","fluid","required","selection","compact","options","elements","substring","InputAnswer","Input","placeholder","target","error","min","max","multiple","Question","moreInfo","Popup","infoMessage","trigger","Icon","marginLeft","RadioAnswer","Group","grouped","inline","labelPosition","TextAreaAnswer","rows","FileAnswer","disallowMultiple","accept","acceptedFileExtensions","ConditionalFileAnswer","useState","PCovTable","pageIndex","pageSize","results","count","records","useEffect","payload","byCarrier","json","data","recordsTotal","Table","Header","Row","HeaderCell","Body","Cell","nameTabID","PCovTableAnswer","dateIsValid","nameIsValid","tableIsVisible","QuestionAnswer","s2","isValid","handleDateChange","stringValidator","handleNameChange","handleIDChange","ComponentSwitcher","option","defaultValue","projector","handleSwitch","arrayProjector","EnumeratedTable","numberOfRows","generator","newItems","concat","Array","from","filter","handleNumbersChange","answerIndex","OwnershipTableAnswer","w","percentageOrVotingStock","minWidth","handleAmountChange","handlePercentOrVSChange","marginRight","DatesAnswer","dateGenerator","handleDateRangeChange","Label","handleDatesChange","handleNameLocationChange","pos","street","city","zip","NamesAndLocationsAnswer","namesAndLocations","nameLocGenerator","Grid","columns","Column","Select","QuestionSet","questionAnswers","qa","Button","loading","onSubmit","disabled","b","SingleEntityQuestionnaire","panels","striped","unstackable","Accordion","encType","UnderwritingPortalQuestionnaire","PolicyCoverageQuestionnaire","ExperienceRatingQuestionnaire","href","NoticeOfElectionQuestionnaire","PlanQuestionnaire","Redirect","ActuarialQuestionnaire","MembershipQuestionnaire","ResponsiveLogoTitle","Responsive","onlyMobile","spaced","paddingTop","alt","onlyTablet","SpecialCallsQuestionnaire","files0012","files0942","files9887","Home","paddingBottom","location","pathname","detail","button","SignIn","dataLoadedState","setIsDataLoaded","useLayoutEffect","u","sub","access_token","catch","Fragment","display","alignItems","justifyContent","SignOut","isDataLoaded","SilentRenew","Promise","reject","ThankYou","renderUnderwriting","App","ReactGA","initialize","listen","set","page","pageview","Router","Switch","Route","exact","path","render","renderSingleEntity","renderPolicyCoverage","renderExperienceRating","renderNoticeOfElection","renderPlan","renderSpecialCalls","renderActuarial","renderMembership","component","SemanticToastContainer","animation","Boolean","hostname","app","ReactDOM","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"sTAGA,MAqBMA,EAAc,I,OAAIC,aArBT,CAEXC,UAAWC,yBAEXC,UAAW,eAEXC,cAAe,eAEfC,aAAcH,8CACdI,cAAe,OACfC,cAAe,QAEfC,MAAO,oCAEPC,yBAA0BP,+CAE1BQ,oBAAqBR,yCACrBS,sBAAsB,IAU1BZ,EAAYa,OAAOC,eAAc,SAAUC,GACvCC,QAAQC,IAAI,cAAeF,MAI/Bf,EAAYa,OAAOK,iBAAgB,WAC/BF,QAAQC,IAAI,oBAEhBjB,EAAYa,OAAOM,wBAAuB,WACtCH,QAAQC,IAAI,wBAEhBjB,EAAYa,OAAOO,qBAAoB,SAAUC,GAC7CL,QAAQC,IAAI,uBAAyBI,EAAIC,YAK7C,IAAIC,EAA2B,KAQxBC,eAAeC,EAAgBC,SAQ/B,SAA8BA,GACjC,OAAO1B,EAAY2B,eAAe,CAAEC,MAAOF,IARrCG,CAAqBH,GAWxBF,eAAeM,EAAuBC,EAAkCC,SAIxE,SAAqCD,EAAkCC,GAC1E,OAAOhC,EAAY8B,yBAAyBG,KAAMlB,IAC9CC,QAAQC,IAAIF,GACZA,GAAQgB,EAAS,CAAEG,KAAM,oBAAqBC,MAAOpB,EAAKa,QAC1DL,EAAcR,IAPZqB,CAA4BL,GAW/BP,eAAea,UAKlBrC,EAAYsC,kBACZtC,EAAYuC,aACLvC,EAAYqC,mBAGhBb,eAAegB,EAAwBR,SAK1ChC,EAAYsC,kBACZtC,EAAYuC,aACLvC,EAAYwC,2BAGhBhB,eAAeiB,UAKXzC,EAAY0C,uBAGhBlB,eAAemB,IAClB,aAIO3C,EAAY4C,UAiCR5C,I,QC/IR,MAAM6C,EACbC,IAAAC,cAAA,OAAKC,G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AAC2Y,GAAG,OAIV2B,IAASf,OAAOc,GAAKE,SAASC,eAAe,SD0HvC,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMzb,KAAK0b,IACjCA,EAAaC,iB","file":"static/js/main.a3e9554a.chunk.js","sourcesContent":["import { OidcClient, UserManager, User } from \"oidc-client\";\r\nimport { Action } from \"../store\";\r\n\r\nconst config = {\r\n // the URL of our identity server\r\n authority: process.env.REACT_APP_AUTHORITY_ENDPOINT,\r\n // this ID maps to the client ID in the identity client configuration\r\n client_id: \"bureauportal\",\r\n // Secret\r\n client_secret: \"9kXNuZZutewX\",\r\n // URL to redirect to after login\r\n redirect_uri: process.env.REACT_APP_REDIRECT_ENDPOINT, \r\n response_type: \"code\",\r\n response_mode: \"query\",\r\n // the scopes or resources we would like access to\r\n scope: \"openid profile csec_info csec_api\", \r\n // URL to redirect to after logout\r\n post_logout_redirect_uri: process.env.REACT_APP_POST_LOGOUT_ENDPOINT,\r\n // Silent Renew Control\r\n silent_redirect_uri: process.env.REACT_APP_SILENT_RENEW_ENDPOINT,\r\n automaticSilentRenew: true\r\n};\r\n\r\n// Initialize\r\nconst userManager = new UserManager(config)\r\n\r\n////////////\r\n// EVENTS //\r\n////////////\r\n\r\nuserManager.events.addUserLoaded(function (user) {\r\n console.log(\"User loaded\", user);\r\n // Debug flag\r\n if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { showTokens(); }\r\n});\r\nuserManager.events.addUserUnloaded(function () {\r\n console.log(\"User unloaded\");\r\n});\r\nuserManager.events.addAccessTokenExpiring(function () {\r\n console.log(\"token expiring...\");\r\n});\r\nuserManager.events.addSilentRenewError(function (err) {\r\n console.log(\"Silent renew error: \" + err.message);\r\n //signinRedirect();\r\n});\r\n\r\n// User\r\nlet userMgrUser: User | null = null;\r\n\r\n///////////////\r\n// Functions //\r\n///////////////\r\nexport async function signInRedirect() {\r\n await signinRedirectAsync();\r\n}\r\nexport async function signInRedirectS(s: any) {\r\n await signinRedirectAsyncS(s);\r\n}\r\n\r\nexport function signinRedirectAsync() {\r\n return userManager.signinRedirect()\r\n}\r\n\r\nexport function signinRedirectAsyncS(s: any) {\r\n return userManager.signinRedirect({ state: s })\r\n}\r\n\r\nexport async function signinRedirectCallback(dispatch: React.Dispatch, url?: string | undefined) {\r\n await signinRedirectCallbackAsync(dispatch);\r\n}\r\n\r\nexport function signinRedirectCallbackAsync(dispatch: React.Dispatch, url?: string | undefined) {\r\n return userManager.signinRedirectCallback().then((user: User) => {\r\n console.log(user);\r\n user && dispatch({ type: \"set questionnaire\", value: user.state });\r\n userMgrUser = user;\r\n });\r\n}\r\n\r\nexport async function signoutRedirect() {\r\n await signoutRedirectAsync()\r\n}\r\n\r\nexport function signoutRedirectAsync() {\r\n userManager.clearStaleState()\r\n userManager.removeUser()\r\n return userManager.signoutRedirect()\r\n}\r\n\r\nexport async function signoutRedirectCallback(url?: string | undefined) {\r\n await signoutRedirectCallbackAsync();\r\n}\r\n\r\nexport function signoutRedirectCallbackAsync(url?: string | undefined) {\r\n userManager.clearStaleState()\r\n userManager.removeUser()\r\n return userManager.signoutRedirectCallback()\r\n}\r\n\r\nexport async function renewAccessToken() {\r\n await renewAccessTokenAsync();\r\n}\r\n\r\nexport function renewAccessTokenAsync() {\r\n return userManager.signinSilentCallback();\r\n}\r\n\r\nexport async function getUserInfo() {\r\n return await getUserInfoAsync();\r\n}\r\n\r\nexport function getUserInfoAsync() {\r\n return userManager.getUser()\r\n}\r\n\r\n\r\n////////////////////////\r\n// Internal Functions //\r\n////////////////////////\r\n\r\nexport function showTokens() {\r\n userManager.getUser().then(function (user) {\r\n if (user) {\r\n extractToken(user);\r\n }\r\n else {\r\n console.log(\"Not logged in\");\r\n }\r\n });\r\n}\r\n\r\nfunction extractToken(data: string | User) {\r\n if (data && typeof data === 'string') {\r\n try {\r\n data = JSON.parse(data);\r\n }\r\n catch (e) { }\r\n }\r\n if (data && typeof data !== 'string') {\r\n data = JSON.stringify(data, null, 2);\r\n }\r\n console.log(data);\r\n}\r\n\r\n\r\nexport default userManager","import React, { ReactNode } from \"react\";\r\n\r\nexport const NJLOGO: ReactNode =\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","import * as H from \"history\";\r\nimport { User } from \"oidc-client\";\r\nimport { NJLOGO } from \"./Assets\";\r\nimport { NavBarBaseProps } from \"./components/ResponsiveNavbar\";\r\nimport { validatorFn, fileListValidatorFn } from \"./store\";\r\n\r\n//#region Interfaces\r\n// tslint:disable-next-line: interface-name\r\nexport interface QAPropsBase {\r\n isRequired: boolean;\r\n questionContent: string;\r\n answerPlaceholder?: string;\r\n answerType: string;\r\n answerContent: string;\r\n answerValidator?: validatorFn;\r\n isAnswered: boolean;\r\n isAnswerValid: boolean;\r\n answerValue: any;\r\n showError?: boolean;\r\n errorProps?: ErrorProps;\r\n label?: string;\r\n min?: number;\r\n max?: number;\r\n propName: string;\r\n answerAdditionalData?: string;\r\n}\r\n\r\nexport interface BasicLoadingState {\r\n isLoading: boolean;\r\n icon?: string;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface OwnershipProps {\r\n name: string;\r\n ownerOrMember: number;\r\n percentageOrVotingStock?: number;\r\n amount?: number;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface PhysicalAddress {\r\n street: string;\r\n state: string;\r\n city: string;\r\n zip: string;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface NamesAndLocationsProps {\r\n name: string;\r\n street: string;\r\n state: string;\r\n city: string;\r\n zip: string;\r\n}\r\n\r\nexport interface CoverageProps {\r\n entityID: string;\r\n policyEffectiveDate: string;\r\n entityName: string;\r\n}\r\n\r\nexport interface ConditionalFileProps {\r\n answer: string;\r\n files: FileList | null;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface AppState {\r\n history: H.History;\r\n isDarkTheme: boolean;\r\n isNavbarVisible: boolean;\r\n optionChosen: PortalType;\r\n user?: User;\r\n dropDownOption?: string;\r\n inquiryType?: number;\r\n}\r\n\r\nexport enum PortalType {\r\n None = 0,\r\n Underwriting = 1,\r\n SingleEntityOwnership = 2,\r\n PolicyCoverage = 3,\r\n ExperienceRating = 4,\r\n NoticeOfElection = 5,\r\n Plan = 6,\r\n Actuarial = 7,\r\n Membership = 8,\r\n SpecialCalls = 9\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface State {\r\n appState: AppState;\r\n answerState: QAPropsBase[] | null;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface StatePackage {\r\n state: T;\r\n setState: React.Dispatch>;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface ErrorProps {\r\n content: string;\r\n pointing?: \"below\" | \"left\" | \"right\";\r\n}\r\n\r\n//#endregion Interfaces\r\n\r\n//#region Validators\r\nexport const phoneValidator: validatorFn = (s) => s.match(/(\\+*[0-9]{0,2} *)(\\([0-9]{3}\\) *|[0-9]{3}[- ]*)([0-9]{3}[- ]*)([0-9]{4})$/g) != null;\r\nexport const dateValidator: validatorFn = (s) => {\r\n if (s.length < 10 || isNaN(Date.parse(s)))\r\n return false;\r\n const date = new Date(s);\r\n const minDate = new Date('1/1/1753');\r\n const maxDate = new Date('12/31/9999 23:59:59');\r\n return date.getTime() > minDate.getTime() && date.getTime() < maxDate.getTime();\r\n}\r\nexport const websiteValidator: validatorFn = (s) => s.match(/(http[s]*:\\/\\/)*([\\w-]+(\\.[\\w-]+){1,})(\\/([\\w-]*))*/g) != null;\r\nexport const emailValidator: validatorFn = (s) => s.match(/^[a-zA-Z0-9.!#$%&�*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/g) != null;\r\nexport const fileValidator: validatorFn = (s) => s != null && s.length > 0;\r\nexport const conditionalFileValidator: validatorFn = (s) => (s as ConditionalFileProps).answer == \"No\" || ((s as ConditionalFileProps).files != null && (s as ConditionalFileProps).files!.length > 0);\r\nexport function numberValidatorN(n?: number): validatorFn {\r\n if (n) {\r\n return (s) => parseInt(s, 10) >= 0 && parseInt(s, 10) <= n;\r\n } else {\r\n return (s) => parseInt(s, 10) >= 0;\r\n }\r\n}\r\nexport function stringValidatorN(x: number, y?: number): validatorFn {\r\n if (y) {\r\n return (s) => s.length <= (y as number) && s.length > x;\r\n } else {\r\n return (s) => s.length > x;\r\n }\r\n}\r\nexport function dropDownValidator(t: string): validatorFn {\r\n return numberValidatorN(t.split(';').length);\r\n}\r\nexport const numberValidator: validatorFn = (s) => s.match(/\\d*/g) != null;\r\nexport const noopValidator: validatorFn = (s) => true;\r\nexport const ownershipValidator: validatorFn = (s) => {\r\n let ownerships = s as OwnershipProps[];\r\n return ownerships.length === 0 ||\r\n (ownerships.every((o) => o.ownerOrMember === 0 && o.name && o.name.length > 0) ||\r\n ownerships.every((o) => o.ownerOrMember === 1 && o.name && o.name.length > 0)) &&\r\n ((ownerships.map((s) => s.amount).reduce((a, c) => (a || 0) + (c || 0)) || 0) <= 100);\r\n}\r\nexport const nameLocsValidator: validatorFn = (s) => {\r\n let nameLocs = s as NamesAndLocationsProps[];\r\n return nameLocs.length > 0 && nameLocs.every(n => n && n.name.length > 0);\r\n}\r\nexport const datesValidator: validatorFn = (s) => {\r\n let dates = s as string[];\r\n return dates.length > 0 && dates.every(d => d && dateValidator(d));\r\n}\r\nexport const pcovValidator: validatorFn = (s) => (s as CoverageProps).entityID.length > 0 && (s as CoverageProps).entityName.length > 0 && (s as CoverageProps).policyEffectiveDate.length > 0;\r\n//#endregion Validators\r\n\r\n//#region State Definitions\r\nexport const underwritingQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Other:3\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserTypeSelection\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S NAME\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"pcov-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: {\r\n entityID: \"\",\r\n policyEffectiveDate: \"\",\r\n entityName: \"\"\r\n }, isAnswerValid: false, isAnswered: false, propName: \"EmployerName\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF INQUIRY\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"file\",\r\n isRequired: true, questionContent: \"PLEASE UPLOAD A DETAILED LETTER AND ANY SUPPORTING DOCUMENTATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const planQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S NAME\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"SUBMITTER'S PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF CORRESPONDENCE\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"pcov-table-ex\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: {\r\n entityID: \"\",\r\n policyEffectiveDate: \"\",\r\n entityName: \"\"\r\n }, isAnswerValid: false, isAnswered: false, propName: \"EmployerName\"\r\n },\r\n {\r\n answerContent: \" : ;ANC Notice of Compliance:0;ANC Cancellation Request:1;Plan Relief Request:2;Plan Notification:3\",\r\n answerType: \"DropDown\",\r\n isRequired: true, questionContent: \"TYPE OF CORRESPONDENCE\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"DocType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"file\", \r\n isRequired: true, questionContent: \"PLEASE UPLOAD CORRESPONDENCE AND ANY SUPPORTING DOCUMENTATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const experienceRatingQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Other:3\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"pcov-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: {\r\n entityID: \"\",\r\n policyEffectiveDate: \"\",\r\n entityName: \"\"\r\n }, isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF INQUIRY\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"file\",\r\n isRequired: true, questionContent: \"PLEASE UPLOAD A DETAILED LETTER AND ANY SUPPORTING DOCUMENTATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const electionQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Other:3\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserType\"\r\n },\r\n {\r\n answerContent: \" : ;Large Risk Alternative Rating Option:0;Large Deductible:1;Retro Rating:2\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF DOCUMENT (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"DocumentType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF SUBMISSION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"file\", \r\n isRequired: true, questionContent: \"PLEASE UPLOAD NOTICE OF ELECTION DOCUMENT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const actuarialQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Reinsurer:4;Other:3\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\", \r\n isRequired: true, questionContent: \"COMPANY OR ORGANIZATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Company\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF SUBMISSION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\",\r\n isRequired: false, questionContent: \"DO YOU NEED TO UPLOAD DOCUMENTATION?\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const membershipQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;New Carrier:0;Participating/Dividends:1;Managed Care Program:2;Premium Discount:3;Forms & Endorsements:4;Contact Change:5;Other Inquiries:6\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF INQUIRY\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"DocType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\", \r\n isRequired: true, questionContent: \"COMPANY OR ORGANIZATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Company\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"number\",\r\n errorProps: { content: \"Please enter a valid company number\" },\r\n isRequired: true, questionContent: \"COMPANY NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"CompanyNum\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"BRIEF DESCRIPTION OF SUBMISSION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\",\r\n isRequired: false, questionContent: \"DO YOU NEED TO UPLOAD DOCUMENTATION?\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\nexport const specialCallsQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\", answerAdditionalData: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;true\",\r\n isRequired: true, questionContent: \"DO YOU NEED TO UPLOAD DATA FOR CALL 9887?\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Files1\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\", answerAdditionalData: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;true\",\r\n isRequired: true, questionContent: \"DO YOU NEED TO UPLOAD DATA FOR CALL 0942?\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Files2\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\", answerAdditionalData: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;true\",\r\n isRequired: true, questionContent: \"DO YOU NEED TO UPLOAD DATA FOR CALL 0012?\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Files3\"\r\n },\r\n ];\r\n\r\nexport const singleEntityQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Other:3\",\r\n answerType: \"DropDown\", \r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Title\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\", answerValidator: websiteValidator,\r\n errorProps: { content: \"Please enter a valid website\" }, \r\n isRequired: false, questionContent: \"WEBSITE\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"Website\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"pcov-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: {\r\n entityID: \"\",\r\n policyEffectiveDate: \"\",\r\n entityName: \"\"\r\n }, isAnswerValid: false, isAnswered: false, propName: \"\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"ownership-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: [], isAnswerValid: false, isAnswered: false, propName: \"SingleEntityOwnership\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"date\", \r\n errorProps: { content: \"Please enter valid date in MM/dd/yyyy.\\r\\nFor date unknown: use current date.\" },\r\n isRequired: true, questionContent: \"ON WHAT DATE DID CURRENT OWNERSHIP COME INTO EXISTENCE?\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"OwnershipEffDate\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"Radio\", \r\n isRequired: true, questionContent: \"IS ENTITY RELATED TO ANY OTHER NJ ENTITY?\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"N/A\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n isRequired: false, questionContent: \"NAME OF OTHER ENTITY\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"OtherEntityName\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\",\r\n isRequired: false, questionContent: \"DO YOU NEED TO UPLOAD DOCUMENTATION?\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of submitter\" },\r\n isRequired: true, questionContent: \"YOUR NAME AND TITLE\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerType: \"Checkbox\",\r\n isRequired: true, label: \"I CERTIFY THAT THE INFORMATION CONTAINED IN THIS FORM IS COMPLETE AND CORRECT\",\r\n questionContent: \"ATTESTATION\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"N/A\"\r\n },\r\n ];\r\n\r\nexport const policyCoverageQuestionAnswers: QAPropsBase[] =\r\n [\r\n {\r\n answerContent: \" : ;Insurer:0;Agent/Broker:1;Employer:2;Other:3\",\r\n answerType: \"DropDown\",\r\n isRequired: true, questionContent: \"TYPE OF STAKEHOLDER (Select One)\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"UserType\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"text\",\r\n errorProps: { content: \"Please enter a valid name of contact\" },\r\n isRequired: true, questionContent: \"NAME OF CONTACT\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Name\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"example@example.com\",\r\n answerType: \"email\",\r\n errorProps: { content: \"Please enter a valid email address\" },\r\n isRequired: true, questionContent: \"EMAIL ADDRESS\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Email\"\r\n },\r\n {\r\n answerContent: \"\", answerPlaceholder: \"+1 (999) 999-9999\",\r\n answerType: \"tel\",\r\n errorProps: { content: \"Please enter a valid phone number\" },\r\n isRequired: true, questionContent: \"PHONE NUMBER\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Phone\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"TextArea\",\r\n errorProps: { content: \"Please enter a valid description of inquiry\" },\r\n isRequired: true, questionContent: \"DESCRIPTION OF INQUIRY\",\r\n answerValue: \"\", isAnswerValid: false, isAnswered: false, propName: \"Description\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"date-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: [], isAnswerValid: false, isAnswered: false, propName: \"PolicyCoverageDates\"\r\n },\r\n {\r\n answerContent: \"\",\r\n answerType: \"names-locations-table\",\r\n isRequired: false, questionContent: \"\",\r\n answerValue: [], isAnswerValid: false, isAnswered: false, propName: \"PolicyCoverageNameLocs\"\r\n },\r\n {\r\n answerContent: \"Yes;No\",\r\n answerType: \"conditional-file\",\r\n isRequired: false, questionContent: \"DO YOU NEED TO UPLOAD DOCUMENTATION?\",\r\n answerValue: \"\", isAnswerValid: true, isAnswered: false, propName: \"\"\r\n },\r\n ];\r\n\r\n\r\nexport const navbarSettings: NavBarBaseProps = {\r\n leftActions: [],\r\n leftItems: [],\r\n logoSrc: NJLOGO,\r\n rightActions: [],\r\n rightItems: [\r\n { to: \"/audit-inquiry\", content: \"Audit Inquiry\", key: \"audit\" },\r\n { to: \"/class-inquiry\", content: \"Class Inquiry\", key: \"class\" },\r\n { to: \"/single-entity\", content: \"Single Entity Ownership\", key: \"single-entity\" },\r\n { to: \"/policy-coverage\", content: \"Policy Coverage Request\", key: \"policy-coverage\" },\r\n { to: \"/experience-rating\", content: \"Experience Rating Inquiry\", key: \"experience-rating\" },\r\n { to: \"/notice-of-election\", content: \"Notice Of Election\", key: \"notice-of-election\" },\r\n { to: \"/plan\", content: \"Plan Correspondence\", key: \"plan\" },\r\n { to: \"/actuarial\", content: \"Actuarial Inquiry\", key: \"actuarial\" },\r\n { to: \"/special-calls\", content: \"Special Call Submission\", key: \"special-calls\" },\r\n { to: \"/membership\", content: \"Membership Inquiry\", key: \"membership\" },\r\n ],\r\n title: \"Workers Comp Inquiry Portal\",\r\n};\r\n\r\nexport const UNDERWRITING_INITIAL_STATE = {\r\n questionAnswerState: underwritingQuestionAnswers,\r\n};\r\n\r\nexport const PLAN_INITIAL_STATE = {\r\n questionAnswerState: planQuestionAnswers,\r\n};\r\n\r\nexport const ACTUARIAL_INITIAL_STATE = {\r\n questionAnswerState: actuarialQuestionAnswers,\r\n};\r\n\r\nexport const MEMBERSHIP_INITIAL_STATE = {\r\n questionAnswerState: membershipQuestionAnswers,\r\n};\r\n\r\nexport const EXPERIENCE_RATING_INITIAL_STATE = {\r\n questionAnswerState: experienceRatingQuestionAnswers,\r\n};\r\n\r\nexport const NOTICE_OF_ELECTION_INITIAL_STATE = {\r\n questionAnswerState: electionQuestionAnswers,\r\n};\r\n\r\nexport const OWNERSHIP_INITIAL_STATE = {\r\n questionAnswerState: singleEntityQuestionAnswers,\r\n};\r\n\r\nexport const COVERAGE_INITIAL_STATE = {\r\n questionAnswerState: policyCoverageQuestionAnswers,\r\n};\r\n\r\nexport const SPECIAL_CALLS_INITIAL_STATE = {\r\n questionAnswerState: specialCallsQuestionAnswers,\r\n};\r\n\r\nexport const HOME_INITIAL_STATE = null;\r\n\r\nexport const APP_INITIAL_STATE = {\r\n history: H.createBrowserHistory(),\r\n privileges: \"\",\r\n isDarkTheme: false,\r\n isNavbarVisible: false,\r\n optionChosen: PortalType.None\r\n};\r\n\r\nexport const GLOBAL_INITIAL_STATE = {\r\n appState: APP_INITIAL_STATE,\r\n answerState: HOME_INITIAL_STATE,\r\n};\r\n//#endregion State Definitions\r\n","import { User } from \"oidc-client\";\r\nimport React, {createContext, ReactNode, useReducer} from \"react\";\r\nimport { toast } from \"react-semantic-toasts\";\r\nimport { CheckboxProps, DropdownProps, InputOnChangeData, MenuItemProps, TextAreaProps } from \"semantic-ui-react\";\r\nimport { signInRedirectS } from \"./services/UserService\";\r\n// tslint:disable-next-line: max-line-length\r\nimport {\r\n GLOBAL_INITIAL_STATE, OWNERSHIP_INITIAL_STATE, PortalType, State, UNDERWRITING_INITIAL_STATE,\r\n COVERAGE_INITIAL_STATE, EXPERIENCE_RATING_INITIAL_STATE, NOTICE_OF_ELECTION_INITIAL_STATE, PLAN_INITIAL_STATE, ACTUARIAL_INITIAL_STATE,\r\n MEMBERSHIP_INITIAL_STATE,\r\n QAPropsBase,\r\n HOME_INITIAL_STATE,\r\n stringValidatorN,\r\n phoneValidator,\r\n numberValidator,\r\n emailValidator,\r\n dateValidator,\r\n fileValidator,\r\n conditionalFileValidator,\r\n ownershipValidator,\r\n datesValidator,\r\n nameLocsValidator,\r\n pcovValidator,\r\n numberValidatorN,\r\n SPECIAL_CALLS_INITIAL_STATE,\r\n StatePackage,\r\n BasicLoadingState,\r\n ConditionalFileProps,\r\n CoverageProps\r\n} from \"./State\";\r\n\r\ntype iChange = React.ChangeEvent;\r\ntype taChange = React.ChangeEvent;\r\ntype sChange = React.ChangeEvent;\r\ntype synEvent = React.SyntheticEvent;\r\nexport type EventType = iChange | taChange | sChange | synEvent | React.SyntheticEvent;\r\nexport type EventProps = DropdownProps | TextAreaProps | InputOnChangeData | CheckboxProps;\r\nexport type changeCoverageFn = (d: number) => void;\r\nexport type arrayGenerator = () => any;\r\nexport type arrayProjector = (element: any) => any;\r\nexport type dispatchFn = () => void;\r\n// tslint:disable-next-line: max-line-length\r\nexport type changeFn = (e: iChange | taChange | sChange | synEvent, i: number, d?: DropdownProps | TextAreaProps | InputOnChangeData | CheckboxProps) => void;\r\nexport type validatorFn = (arg: any) => boolean;\r\nexport type fileListValidatorFn = (arg: FileList | null) => boolean;\r\nexport type selectChangeFn = (event: React.SyntheticEvent, data: DropdownProps) => void;\r\nexport type inputChangeFn = (e: React.ChangeEvent,\r\n d: InputOnChangeData) => void;\r\nexport type textAreaChangeFn = (e: React.FormEvent, d: TextAreaProps) => void;\r\nexport type navbarChangeFn = (e: React.MouseEvent, d: MenuItemProps) => void;\r\nexport type entityChangeFn = (e: React.MouseEvent, s: string, v: string) => void;\r\nexport type buttonChangeFn = (e: React.MouseEvent) => void;\r\nexport type genericMethod = () => void;\r\n\r\nexport const timeouts = [\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n 0,\r\n];\r\n\r\nconst initialState = GLOBAL_INITIAL_STATE;\r\n// tslint:disable-next-line: max-line-length\r\nconst store = createContext<{ state: State, dispatch: React.Dispatch }>({ state: initialState, dispatch: (v) => { return; } });\r\nconst { Provider } = store;\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface Action {\r\n type: string;\r\n event?: EventType;\r\n index?: number;\r\n props?: EventProps;\r\n value?: any;\r\n altValue?: any;\r\n validator?: validatorFn;\r\n}\r\n\r\n// tslint:disable-next-line: interface-name\r\ninterface Props {\r\n children: ReactNode;\r\n}\r\n\r\nfunction handleQAStateUpdate(source: QAPropsBase[],\r\n index: number,\r\n value: string,\r\n validator: validatorFn): QAPropsBase[] {\r\n return source.map((q, idx) => {\r\n if (idx === index) {\r\n q.answerValue = value || \"\";\r\n q.isAnswered = true;\r\n q.isAnswerValid = validator(value || \"\");\r\n }\r\n return q;\r\n });\r\n}\r\n\r\nexport function handleSubmit(s: StatePackage,\r\n state: State,\r\n e: React.MouseEvent,\r\n shorthand: string,\r\n additionalPropsFn?: (formData: FormData) => void) {\r\n if (state.answerState != null) {\r\n e.preventDefault();\r\n s.setState({ ...s.state, isLoading: true });\r\n const formData = new FormData();\r\n state.answerState.forEach((v, i, a) => {\r\n formAppendHandler(formData, v.answerType, v.propName, v.answerValue);\r\n });\r\n additionalPropsFn && additionalPropsFn(formData);\r\n doSubmission(s, state, shorthand, formData);\r\n }\r\n}\r\n\r\nfunction doSubmission(s: StatePackage,\r\n state: State,\r\n shorthand: string,\r\n formData: FormData) {\r\n fetch(`api/${shorthand}/Submit`,\r\n {\r\n body: formData,\r\n method: \"POST\",\r\n })\r\n .then((response) => {\r\n if (response.ok) {\r\n s.setState({ ...s.state, icon: \"check\", isLoading: false });\r\n setTimeout(() => {\r\n state.appState.history.push(\"/ThankYou\");\r\n }, 1000);\r\n } else {\r\n fetch(`api/Error/ReportError`,\r\n {\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(state),\r\n method: \"POST\",\r\n })\r\n .then((r) => {\r\n handleErrorToast(`\r\n An error occurred.\r\n Start a new tab and leave this page open.\r\n A support representative will reach out to you soon.`);\r\n s.setState({ isLoading: false });\r\n });\r\n }\r\n },\r\n (err) => {\r\n handleErrorToast(`\r\n An error occurred.\r\n Start a new tab and leave this page open.\r\n A support representative will reach out to you soon.`);\r\n s.setState({ isLoading: false });\r\n },\r\n );\r\n}\r\n\r\n\r\n// tslint:disable-next-line: max-line-length\r\nexport function handleAnswerUpdate(value: string, validator: validatorFn, index: number, dispatch: React.Dispatch, portalType: PortalType): void {\r\n dispatch({ type: \"handle answer update\", index, value, validator });\r\n\r\n clearTimeout(timeouts[index]);\r\n timeouts[index] = window.setTimeout(() => {\r\n dispatch({ type: \"handle answer validation\", index });\r\n }, getDelayLength(portalType, index));\r\n}\r\n\r\n// tslint:disable-next-line: max-line-length\r\nexport function handleErrorToast(description: string): void {\r\n // if timeout is clear,\r\n if (timeouts[15] === 0) {\r\n // show error toast\r\n toast({\r\n description,\r\n icon: \"alarm\",\r\n size: \"mini\",\r\n time: 5000,\r\n title: \"Error\",\r\n type: \"error\",\r\n });\r\n // set new timeout\r\n timeouts[15] = window.setTimeout(() => {\r\n timeouts[15] = 0; // clear when toast clears\r\n }, 50000);\r\n }\r\n}\r\n\r\nexport function getDelayLength(type: PortalType, i: number) {\r\n if (type === PortalType.Underwriting || type == PortalType.ExperienceRating) {\r\n return (i === 6 || i === 7) ? 1 : 950;\r\n } else if (type === PortalType.SingleEntityOwnership) {\r\n return (i === 7 || i === 8 || i === 12) ? 1 : 950;\r\n } else if (type === PortalType.PolicyCoverage || type == PortalType.NoticeOfElection\r\n || type === PortalType.Plan || type === PortalType.Actuarial || type == PortalType.Membership ||\r\n PortalType.SpecialCalls) {\r\n return 950;\r\n }\r\n}\r\n\r\nfunction handleQuestionSetSelection(value: string, s: State): State {\r\n let portalType = PortalType.None;\r\n let portalState: { questionAnswerState: QAPropsBase[] } | null = null;\r\n\r\n if (value === \"Class Inquiry\" || value === \"Audit Inquiry\") {\r\n portalType = PortalType.Underwriting;\r\n portalState = UNDERWRITING_INITIAL_STATE;\r\n } else if (value === \"Single Entity Ownership Submission\") {\r\n portalType = PortalType.SingleEntityOwnership;\r\n portalState = OWNERSHIP_INITIAL_STATE;\r\n } else if (value === \"Policy Coverage Request\") {\r\n portalType = PortalType.PolicyCoverage\r\n portalState = COVERAGE_INITIAL_STATE;\r\n } else if (value === \"Experience Rating Inquiry\") {\r\n portalType = PortalType.ExperienceRating\r\n portalState = EXPERIENCE_RATING_INITIAL_STATE;\r\n } else if (value === \"Notice Of Election\") {\r\n portalType = PortalType.NoticeOfElection\r\n portalState = NOTICE_OF_ELECTION_INITIAL_STATE;\r\n } else if (value === \"Actuarial Inquiry\") {\r\n portalType = PortalType.Actuarial\r\n portalState = ACTUARIAL_INITIAL_STATE;\r\n } else if (value === \"Membership Inquiry\") {\r\n portalType = PortalType.Membership\r\n portalState = MEMBERSHIP_INITIAL_STATE;\r\n } else if (value === \"Plan Correspondence Submission\") {\r\n portalType = PortalType.Plan\r\n portalState = PLAN_INITIAL_STATE;\r\n } else if (value === \"Special Calls Submission\") {\r\n portalType = PortalType.SpecialCalls\r\n portalState = SPECIAL_CALLS_INITIAL_STATE;\r\n } else {\r\n portalState = HOME_INITIAL_STATE;\r\n }\r\n\r\n return {\r\n appState: { ...s.appState, isNavbarVisible: portalType != PortalType.None, optionChosen: portalType, dropDownOption: portalType != PortalType.None ? value : \"\" },\r\n answerState: portalState == null ? portalState : [ ...portalState.questionAnswerState ]\r\n };\r\n}\r\n\r\nfunction setUnderwritingState(n: number, s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.Underwriting, isNavbarVisible: true, inquiryType: n },\r\n answerState: [ ...UNDERWRITING_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setOwnershipState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.SingleEntityOwnership, isNavbarVisible: true },\r\n answerState: [ ...OWNERSHIP_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setPolicyCoverageState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.PolicyCoverage, isNavbarVisible: true },\r\n answerState: [ ...COVERAGE_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setExperienceRatingState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.ExperienceRating, isNavbarVisible: true },\r\n answerState: [ ...EXPERIENCE_RATING_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setNoticeOfElectionState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.NoticeOfElection, isNavbarVisible: true },\r\n answerState: [ ...NOTICE_OF_ELECTION_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setPlanState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.Plan, isNavbarVisible: true },\r\n answerState: [ ...PLAN_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setSpecialCallsState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.SpecialCalls, isNavbarVisible: true },\r\n answerState: [...SPECIAL_CALLS_INITIAL_STATE.questionAnswerState],\r\n };\r\n}\r\n\r\nfunction setActuarialState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.Actuarial, isNavbarVisible: true },\r\n answerState: [ ...ACTUARIAL_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction setMembershipState(s: State): State {\r\n return {\r\n appState: { ...s.appState, optionChosen: PortalType.Membership, isNavbarVisible: true },\r\n answerState: [ ...MEMBERSHIP_INITIAL_STATE.questionAnswerState ],\r\n };\r\n}\r\n\r\nfunction toggleTheme(s: State): State {\r\n return {\r\n appState: { ...s.appState, isDarkTheme: !s.appState.isDarkTheme },\r\n answerState: s.answerState == null ? null : [ ...s.answerState ],\r\n };\r\n}\r\n\r\nfunction setSignIn(s: State, user?: User): State {\r\n return {\r\n appState: { ...s.appState, user: user },\r\n answerState: s.answerState == null ? null : [ ...s.answerState ],\r\n };\r\n}\r\n\r\nfunction clearState(s: State): State {\r\n return {\r\n appState: { ...GLOBAL_INITIAL_STATE.appState, user: s.appState.user },\r\n answerState: null,\r\n };\r\n}\r\n\r\nfunction handleQAStateValidation(source: QAPropsBase[], index: number): QAPropsBase[] {\r\n return source.map((q, idx) => {\r\n if (idx === index) {\r\n q.showError = q.isAnswered && !q.isAnswerValid;\r\n }\r\n return q;\r\n });\r\n}\r\n\r\nfunction handleUpdate(s: State,\r\n index: number,\r\n value: string,\r\n validator?: validatorFn): State {\r\n return {\r\n appState: { ...s.appState },\r\n answerState: s.answerState == null ? null :\r\n handleQAStateUpdate(s.answerState, index, value, validator ? validator :\r\n getValidator(s.answerState[index].answerType, s.answerState[index].answerContent)),\r\n };\r\n}\r\n\r\nfunction handleValidation(index: number, s: State): State {\r\n return {\r\n appState: { ...s.appState },\r\n answerState: s.answerState == null ? null : handleQAStateValidation(s.answerState, index),\r\n };\r\n}\r\n\r\nfunction checkAuth(s: State): State {\r\n if (!s.appState.user && (s.appState.optionChosen === PortalType.Plan || s.appState.optionChosen === PortalType.SpecialCalls)) {\r\n signInRedirectS(s.appState.dropDownOption);\r\n }\r\n\r\n return {\r\n appState: { ...s.appState },\r\n answerState: s.answerState == null ? null : [...s.answerState]\r\n }\r\n}\r\n\r\nconst StateProvider: React.FunctionComponent = (props: Props) => {\r\n const [state, dispatch] = useReducer>((s: State, action: Action) => {\r\n switch (action.type) {\r\n case \"set underwriting\":\r\n return setUnderwritingState(action.value as number, s);\r\n case \"unset admin status\":\r\n return setSignIn(s, action.value as User);\r\n case \"set admin status\":\r\n return setSignIn(s, action.value as User);\r\n case \"set ownership\":\r\n return setOwnershipState(s);\r\n case \"set policyCoverage\":\r\n return setPolicyCoverageState(s);\r\n case \"set experienceRating\":\r\n return setExperienceRatingState(s);\r\n case \"set noticeOfElection\":\r\n return setNoticeOfElectionState(s);\r\n case \"set plan\":\r\n return setPlanState(s);\r\n case \"set actuarial\":\r\n return setActuarialState(s);\r\n case \"set membership\":\r\n return setMembershipState(s);\r\n case \"set specialCalls\":\r\n return setSpecialCallsState(s);\r\n case \"toggle theme\":\r\n return toggleTheme(s);\r\n case \"clear state\":\r\n return clearState(s);\r\n case \"set questionnaire\":\r\n return handleQuestionSetSelection(action.value as string, s);\r\n case \"check authentication\":\r\n return checkAuth(s);\r\n case \"handle answer update\":\r\n return handleUpdate(s, action.index as number, action.value as string, action.validator);\r\n case \"handle answer validation\":\r\n return handleValidation(action.index as number, s);\r\n default:\r\n throw new Error();\r\n }\r\n }, initialState);\r\n\r\n return {props.children};\r\n};\r\n\r\nexport { store, StateProvider };\r\n\r\nfunction getValidator(answerType: string, answerContent: string): validatorFn {\r\n switch (answerType) {\r\n case \"text\":\r\n return stringValidatorN(0, 1000);\r\n break;\r\n case \"tel\":\r\n return (s) => phoneValidator(s);\r\n break;\r\n case \"number\":\r\n return (s) => numberValidator(s);\r\n break;\r\n case \"email\":\r\n return (s) => emailValidator(s);\r\n break;\r\n case \"date\":\r\n return (s) => dateValidator(s);\r\n break;\r\n case \"file\":\r\n return (s) => fileValidator(s);\r\n break;\r\n case \"conditional-file\":\r\n return (s) => conditionalFileValidator(s);\r\n break;\r\n case \"ownership-table\":\r\n return (s) => ownershipValidator(s);\r\n break;\r\n case \"date-table\":\r\n return (s) => datesValidator(s);\r\n break;\r\n case \"names-locations-table\":\r\n return (s) => nameLocsValidator(s);\r\n break;\r\n case \"pcov-table\":\r\n case \"pcov-table-ex\":\r\n return (s) => pcovValidator(s);\r\n break;\r\n case \"TextArea\":\r\n return stringValidatorN(0, 2147483648);\r\n break;\r\n case \"Radio\":\r\n return stringValidatorN(0);\r\n break;\r\n case \"Checkbox\":\r\n return (s) => s ? true : false;\r\n break;\r\n case \"DropDown\":\r\n return numberValidatorN(answerContent.split(';').length - 1);\r\n break;\r\n default:\r\n throw new Error(`No Validator found for type ${answerType}`);\r\n }\r\n}\r\n\r\nfunction formAppendHandler(formData: FormData, answerType: string, propName: string, answerValue: any) {\r\n if (propName !== \"N/A\") {\r\n switch (answerType) {\r\n case \"text\":\r\n case \"tel\":\r\n case \"number\":\r\n case \"email\":\r\n case \"date\":\r\n case \"TextArea\":\r\n case \"Radio\":\r\n case \"Checkbox\":\r\n case \"DropDown\":\r\n formData.append(propName, (answerValue as string).replace(\"'\", \"\"));\r\n break;\r\n case \"file\":\r\n formData.append(propName.length === 0 ? \"Files\" : propName, \"\");\r\n if (answerValue != null && answerValue.length > 0) {\r\n for (let x = 0; x < answerValue.length; x++) {\r\n const y = answerValue.item(x);\r\n if (y != null) {\r\n formData.append(\"file\" + x, y);\r\n }\r\n }\r\n }\r\n break;\r\n case \"conditional-file\":\r\n formData.append(propName.length === 0 ? \"Files\" : propName, \"\");\r\n if ((answerValue as ConditionalFileProps).files != null\r\n && (answerValue as ConditionalFileProps).files!.length > 0) {\r\n for (let x = 0; x < (answerValue as ConditionalFileProps).files!.length; x++) {\r\n const y = (answerValue as ConditionalFileProps).files!.item(x);\r\n if (y != null) {\r\n formData.append(\"file\" + x, y);\r\n }\r\n }\r\n }\r\n break;\r\n case \"ownership-table\":\r\n case \"date-table\":\r\n case \"names-locations-table\":\r\n formData.append(propName, JSON.stringify(answerValue));\r\n break;\r\n case \"pcov-table\":\r\n case \"pcov-table-ex\":\r\n formData.append(\"CoverageEffDate\", (answerValue as CoverageProps).policyEffectiveDate);\r\n formData.append(propName.length === 0 ? \"EntityName\" : propName, (answerValue as CoverageProps).entityName);\r\n formData.append(\"CoverageId\", (answerValue as CoverageProps).entityID);\r\n break;\r\n default:\r\n throw new Error(`No Validator found for type ${answerType}`);\r\n }\r\n }\r\n}\r\n","import React, { useContext } from \"react\";\r\nimport {\r\n Container,\r\n Divider,\r\n} from \"semantic-ui-react\";\r\nimport { store } from \"../store\";\r\n\r\nconst Footer: React.FunctionComponent = () => {\r\n const globalState = useContext(store);\r\n const { dispatch } = globalState;\r\n\r\n return (\r\n\r\n \r\n \r\n © {(new Date()).getFullYear()} - NJCRIB\r\n \r\n\r\n );\r\n};\r\n\r\nexport default Footer;\r\n","import React, { ReactNode, useContext } from \"react\";\r\nimport { Link, NavLink } from \"react-router-dom\";\r\nimport {\r\n Dropdown,\r\n Image,\r\n Menu,\r\n MenuItemProps,\r\n} from \"semantic-ui-react\";\r\nimport { genericMethod, store, Action } from \"../store\";\r\nimport { State } from \"../State\";\r\nimport { NJLOGO } from \"../Assets\";\r\n\r\n// adapted from codesandbox.io/s/y7k3zn5qn1\r\n\r\n// tslint:disable-next-line: interface-name\r\nexport interface NavBarBaseProps {\r\n logoSrc: ReactNode;\r\n title: string;\r\n leftItems: MenuItemProps[];\r\n rightItems: MenuItemProps[];\r\n leftActions: genericMethod[];\r\n rightActions: genericMethod[];\r\n}\r\n\r\ninterface Props {\r\n children: ReactNode;\r\n}\r\n\r\nfunction themeToggle(e: React.MouseEvent, dispatch: React.Dispatch): void {\r\n e.preventDefault();\r\n dispatch({ type: \"toggle theme\" });\r\n}\r\n\r\nfunction goHome(e: React.MouseEvent,\r\n dispatch: React.Dispatch,\r\n s: State): void {\r\n e.preventDefault();\r\n dispatch({ type: \"clear state\" });\r\n s.appState.history.push(\"/\");\r\n}\r\n\r\nconst ResponsiveNavbar: React.FunctionComponent = (props: Props) => {\r\n const globalState = useContext(store);\r\n const { dispatch, state } = globalState;\r\n\r\n return (\r\n (globalState.state.appState.isNavbarVisible &&\r\n
\r\n \r\n goHome(e, dispatch, state)}>\r\n \r\n \r\n \r\n

Workers Comp Inquiry Portal

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n dispatch({ type: \"set underwriting\" })}>\r\n \r\n dispatch({ type: \"set underwriting\" })}>\r\n \r\n {\r\n dispatch({ type: \"set plan\" });\r\n dispatch({ type: \"check authentication\", value: \"Plan Correspondence Submission\"});\r\n }}>\r\n \r\n \r\n \r\n \r\n \r\n dispatch({ type: \"set ownership\" })}>\r\n \r\n dispatch({ type: \"set experienceRating\" })}>\r\n \r\n \r\n \r\n \r\n \r\n dispatch({ type: \"set policyCoverage\" })}>\r\n \r\n dispatch({ type: \"set noticeOfElection\" })}>\r\n \r\n \r\n \r\n \r\n \r\n {\r\n dispatch({ type: \"set specialCalls\" });\r\n dispatch({ type: \"check authentication\", value: \"Special Calls Submission\" });\r\n }}>\r\n \r\n dispatch({ type: \"set actuarial\" })}>\r\n \r\n \r\n \r\n dispatch({ type: \"set membership\" })}>\r\n \r\n themeToggle(e, dispatch)}>\r\n 💡\r\n \r\n
\r\n {[props.children].map((c, i) =>\r\n
{c}
)}\r\n
) ||\r\n
\r\n {[props.children].map((c, i) =>\r\n
{c}
)}\r\n
\r\n );\r\n};\r\n\r\nexport default ResponsiveNavbar;\r\n","import * as React from \"react\";\r\nimport { useContext } from \"react\";\r\nimport { Form, TextArea } from \"semantic-ui-react\";\r\nimport { QAPropsBase } from \"../State\";\r\nimport { changeFn, store } from \"../store\";\r\n\r\n// tslint:disable-next-line: interface-name\r\ninterface Props {\r\n index: number;\r\n propsBase: QAPropsBase;\r\n onChange?: changeFn;\r\n}\r\n\r\nconst CheckboxAnswer: React.FunctionComponent = (props: Props) => {\r\n const globalState = useContext(store);\r\n const { dispatch } = globalState;\r\n\r\n return (\r\n
\r\n