1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0ec3bc94-86fb-4338-a678-a1a4364a9633",e._sentryDebugIdIdentifier="sentry-dbid-0ec3bc94-86fb-4338-a678-a1a4364a9633")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8670],{28610:e=>{e.exports={wrapper:"InputField_wrapper__oPBzT",label:"InputField_label___m_ys","label-asterisk":"InputField_label-asterisk__qrKal",container:"InputField_container__oCOv7",input:"InputField_input__c_1bm",prefix:"InputField_prefix__es1LR",suffix:"InputField_suffix__Dk1Lx","end-adornment":"InputField_end-adornment__0BB49","filled-indicator":"InputField_filled-indicator__FQ3z_","error-icon":"InputField_error-icon__bMLuS","password-toggle":"InputField_password-toggle__nbKSf","helper-text":"InputField_helper-text__KpORI","character-count":"InputField_character-count__ZPoZQ","chips-container":"InputField_chips-container__KzXll",chip:"InputField_chip__yLHwI","chip-delete":"InputField_chip-delete__BiwBN"}},32478:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var i=a(95155),n=a(12115),s=a(28610),o=a.n(s);let d=()=>(0,i.jsx)("svg",{strokeLinejoin:"round",stroke:"currentColor",strokeLinecap:"round",viewBox:"0 0 24 24",strokeWidth:"2",fill:"none","data-sentry-element":"svg","data-sentry-component":"CheckIcon","data-sentry-source-file":"InputField.tsx",children:(0,i.jsx)("polyline",{points:"20 6 9 17 4 12","data-sentry-element":"polyline","data-sentry-source-file":"InputField.tsx"})}),l=()=>(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","data-sentry-element":"svg","data-sentry-component":"WarningIcon","data-sentry-source-file":"InputField.tsx",children:(0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z","data-sentry-element":"path","data-sentry-source-file":"InputField.tsx"})}
1),r=()=>(0,i.jsxs)("svg",{strokeLinejoin:"round",stroke:"currentColor",strokeLinecap:"round",viewBox:"0 0 24 24",strokeWidth:"2",fill:"none","data-sentry-element":"svg","data-sentry-component":"EyeIcon","data-sentry-source-file":"InputField.tsx",children:[(0,i.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z","data-sentry-element":"path","data-sentry-source-file":"InputField.tsx"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3","data-sentry-element":"circle","data-sentry-source-file":"InputField.tsx"})]}),c=()=>(0,i.jsxs)("svg",{strokeLinejoin:"round",stroke:"currentColor",strokeLinecap:"round",viewBox:"0 0 24 24",strokeWidth:"2",fill:"none","data-sentry-element":"svg","data-sentry-component":"EyeOffIcon","data-sentry-source-file":"InputField.tsx",children:[(0,i.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24","data-sentry-element":"path","data-sentry-source-file":"InputField.tsx"}),(0,i.jsx)("line",{x2:"23",y2:"23",x1:"1",y1:"1","data-sentry-element":"line","data-sentry-source-file":"InputField.tsx"})]}),u=(0,n.forwardRef)((e,t)=>{let{label:s,name:u,type:g="text",value:f,placeholder:p,required:m=!1,disabled:y=!1,readOnly:b=!1,onChange:h,onBlur:L,onFocus:x,error:S=!1,helperText:v,showErrorIcon:I=!1,showFilledIndicator:w=!1,showPasswordToggle:k=!1,showCharacterCount:_=!1,maxLength:A,prefix:M,suffix:N,resource:E,className:C,style:j,testId:F,autoFocus:D,autoComplete:$,helperAriaNeeded:P=!0,currencyMask:O=!1,editorInput:X=!1,spaceMonoFont:T=!1,...W}=e,[z,R]=(0,n.useState)(!1),B=(0,n.useRef)(null),H=t??B;(0,n.useEffect)(()=>{let e;if(O)return t(),()=>null==e?void 0:e.remove();async function t(){try{e=(0,(await a.e(4981).then(a.t.bind(a,92628,23))).default)({alias:"currency",allowMinus:!1,rightAlign:!1}).mask(H.current)}catch{}}},[O]),(0,n.useEffect)(()=>{O&&H.current&&Number(H.current.value.replace(/,/g,""))!==Number(f)&&(H.current.value=String(f??""))},[f,O]);let K=(0,n.useMemo)(()=>null!=f&&String(f).length>0,[f]),J=(0,n.useMemo)(()=>"password"===g&&k?z?"text":"password":g,[g,k,z]),Z=(0,n.useMemo)(()=>{if("number"===g&&null!=f){let e=String(f);return"0"===e||e.startsWith("0.")||""===e?f:e.replace(/^0+/,"")||"0"}return f},[f,g]),q=String(f??"").length,G=!!A&&q>=A,Q=w&&K&&!S||I&&S||k&&"password"===g,V=[w&&K&&!S?1:0,I&&S?1:0,k&&"password"===g?1:0].reduce((e,t)=>e+t,0);return(0,i.jsxs)("div",{className:`${o().wrapper} ${C||""}`,"data-testid":F,style:j,children:[s&&(0,i.jsxs)("label",{className:o().label,htmlFor:u,"data-disabled":y||void 0,"data-error":S||void 0,"data-filled":w&&K||void 0,"data-editor-input":X||void 0,children:[s,m&&(0,i.jsx)("span",{className:o()["label-asterisk"],children:"*"})]}),(0,i.jsxs)("div",{className:o().container,"data-prefix":!!M||void 0,"data-suffix":!!N||void 0,"data-error-container":S||void 0,"data-filled-container":w&&K&&!S||void 0,"data-editor-input":X||void 0,children:[M&&(0,i.jsx)("div",{className:o().prefix,children:M}),(0,i.jsx)("input",{ref:O?H:t,type:J,name:u,id:u,...void 0!==f&&!O?{value:Z??""}:{},className:o().input,"data-error":S||void 0,"data-filled":w&&K||void 0,"data-editor-input":X||void 0,"data-space-mono":T||void 0,"data-has-icons":Q||void 0,"aria-describedby":v?`${u}-helper`:void 0,autoComplete:$,placeholder:p,onChange:e=>{let t=e.target.value;if("number"===g){"0"===t||t.startsWith("0.")||(t=t.replace(/^0+/,""));let a={...e,target:{...e.target,value:t}};null==h||h(a);return}null==h||h(e)},maxLength:A,autoFocus:D,"aria-invalid":S,required:m,disabled:y,readOnly:b,onFocus:x,onBlur:L,...W}),N&&(0,i.jsx)("div",{className:o().suffix,children:N}),Q&&(0,i.jsxs)("div",{className:o()["end-adornment"],"data-multiple-icons":V>1||void 0,children:[w&&K&&!S&&(0,i.jsx)("span",{className:o()["filled-indicator"],children:(0,i.jsx)(d,{})}),I&&S&&(0,i.jsx)("span",{className:o()["error-icon"],children:(0,i.jsx)(l,{})}),k&&"password"===g&&(0,i.jsx)("button",{"aria-label":z?"Hide password":"Show password",onClick:()=>R(!z),className:o()["password-toggle"],type:"button",tabIndex:-1,
1children:z?(0,i.jsx)(c,{}):(0,i.jsx)(r,{})})]})]}),P&&(0,i.jsx)("div",{id:u?`${u}-helper`:void 0,className:o()["helper-text"],"data-error":S||void 0,children:(v||_&&A)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{children:v}),_&&A&&(0,i.jsxs)("span",{className:o()["character-count"],"data-at-limit":G||void 0,children:[q,"/",A]})]})})]})});u.displayName="InputField";let g=u},56334:(e,t,a)=>{"use strict";a.d(t,{z:()=>i});let i={currency:{alias:"currency",allowMinus:!1,rightAlign:!1},numeric:{alias:"integer",allowMinus:!1,rightAlign:!1},hours:{alias:"numeric",digits:2,digitsOptional:!0,max:99999,autoGroup:!1,groupSeparator:"",inputmode:"decimal",placeholder:"0",clearMaskOnLostFocus:!1,allowMinus:!1,rightAlign:!1},shortSsn:{mask:"9999"},phone:{mask:"(999) 999-9999"},ssn:{mask:"999-99-9999"},zip:{mask:"99999"},zipExt:{mask:"99999[-9999]",greedy:!1},creditCard:{mask:"9999 9999 9999 9999"},dateUs:{mask:"99/99/9999"},dateIso:{mask:"9999-99-99"},taxId:{mask:"99-9999999"}}},62849:(e,t,a)=>{"use strict";a.d(t,{C:()=>n,q:()=>i});let i=["png","gif"],n=3e5},82988:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var i=a(28728),n=a(88735),s=a(93143),o=a.n(s),d=a(98266),l=a(7775).hp;async function r(e){let t=await e.arrayBuffer(),a=l.from(t).toString("base64");return`data:${e.type};base64,${a}`}var c=a(62849),u=a(52825),g=a(40383),f=a(14258),p=a(13399),m=a(11692),y=a(62443);function b(){let e=(0,p.be)(),t=(0,p.Of)(),a=a=>{if(a>e.config.stubList.length&&a<=24){let t=a-e.config.stubList.length,i=e.config.details.periodType;for(let a=0;a<t;a++){let t,a=JSON.parse(JSON.stringify(e.config.stubList[e.config.stubList.length-1])),n=a.paymentDate;switch(i){case"semimonthly":t=Math.floor(o()(n).daysInMonth()/2)-1,n=o()(n).subtract(t,"day").format("L");break;case"biweekly":t=2,n=o()(n).subtract(t,"week").format("L");break;case"annually":t=1,n=o()(n).subtract(t,"year").format("L");break;case"monthly":t=o()(n).daysInMonth()-1,n=o()(n).subtract(t,"day").format("L");break;case"weekly":t=1,n=o()(n).subtract(t,"week").format("L")}e.config.stubList.push({...a,indexNumber:a.indexNumber-(Math.floor(50*Math.random())+11),adviceNumber:a.adviceNumber-(Math.floor(50*Math.random())+11),paymentDate:n,paymentPeriodRange:null})}}else if(a<e.config.stubList.length&&a>=1){let t=e.config.stubList.length-a;e.config.stubList.splice(e.config.stubList.length-t,t)}a>e.config.details.periodNumber&&e.config.details.periodNumber&&(e.config.details.periodNumber=a),t({type:"stub:update",config:{...e.config,details:{...e.config.details,count:a}}})};return{handlerIndexNumber:(a,i)=>{String(a).length>5||(0===i?e.config.stubList.map((t,i)=>{0===i?t.indexNumber=a:t.indexNumber=e.config.stubList[i-1].indexNumber-(Math.floor(50*Math.random())+11)}):e.config.stubList[i].indexNumber=a,t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}}))},handlerVchrNumber:(a,i)=>{String(a).length>5||t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details},stubList:(0,y.lF)(e.config.stubList,i,a)}})},handlerAdviceNumber:(a,i)=>{0===i?e.config.stubList.map((t,i)=>{0===i?t.adviceNumber=a:t.adviceNumber=e.config.stubList[i-1].adviceNumber-(Math.floor(50*Math.random())+11)}):e.config.stubList[i].adviceNumber=a,t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerState:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,state:a}}})},handlerExemptions:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,exemptions:a}}})},handlerW4:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,w4:a}}})},handlerMultiJobs:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,multiJobs:a}}})},handlerWeekInHole:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,weekInHole:a}}})},handlerWorkingHome:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,workingHome:a}}})},handlerW4DependTotal:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,w4DependTotal:a}}})},handlerW4OtherIncome:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,w4OtherIncome:a}}})},handlerW4DeductionAmount:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,w4DeductionAmount:a}}})},handlerCount:a,handlerAddCustom:a=>{let i=[...e.config.stubList];for(let e=1;e<=4;e++)if(null==i[a].paymentSet[`custom${e}`]){i[a].paymentSet[`custom${e}`]={name:"",rate:0,hours:0};break}t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:i}})},handlerRemoveCustom:(a,i)=>{e.config.stubList.map((e,t)=>{t===a&&delete e.paymentSet[`custom${i}`]}),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditCustom:(a,i,n,s)=>{e.config.stubList.map((e,t)=>{if(t===a){let t=e.paymentSet[`custom${i}`];switch(n){case"hours":t.hours=s;break;case"name":t.name=s;break;case"rate":t.rate=s}}}),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditPaySet:(a,i,n,s)=>{let o=s??0;e.config.stubList[o].paymentSet[a]||(e.config.stubList[o].paymentSet[a]={name:a,rate:0,hours:0,periodAmount:0}),e.config.stubList[o].paymentSet[a][i]=(0,d.L)(n),0===o&&"rate"===i&&"regular"===a&&e.config.stubList.map(e=>{void 0===e.paymentSet[a]&&(e.paymentSet[a]={rate:0,hours:0}),e.paymentSet[a].rate=(0,d.L)(n)}),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditSalaryTotalSet:(a,i,n)=>{let s=e=>{e.paymentSet[a]||(e.paymentSet[a]={name:a,rate:0,hours:0,periodAmount:0}),e.paymentSet[a].periodAmount=i};
10===n?e.config.stubList.forEach(e=>{s(e)}):s(e.config.stubList[n]),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerAddDeductions:(a,i)=>{let n=e.config.stubList[a];if(!n)return;n.deductionSet=n.deductionSet??{};let s=Object.keys(n.deductionSet).length;n.deductionSet[`${s+1}`]={name:"",periodAmount:0,ytdAmount:0,alignment:i},t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerRemoveDeduction:(a,i)=>{e.config.stubList.map((e,t)=>{t===a&&delete e.deductionSet[i]}),e.config.stubList.map((e,t)=>{t===a&&Object.keys(e.deductionSet).map((t,a)=>{String(a+1)!==t&&(e.deductionSet[a+1]=e.deductionSet[t],delete e.deductionSet[t])})}),(0,p.LJ)(a,e.config.stubList[a].deductionSet),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditDeduction:(a,i,n,s)=>{e.config.stubList.map((e,t)=>{if(t===a)switch(!e.deductionSet[i]&&(e.deductionSet[i]={}),n){case"periodAmount":e.deductionSet[i].periodAmount=s;break;case"name":e.deductionSet[i].name=s}}),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerDeposit:a=>{let i=!e.config.stubList[a].isExtended;e.config.stubList[a].isExtended=i,t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerAbbreviation:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,abbreviation:a}}})},handlerEnterEntireSSN:a=>{if(!a){var i,n;e.config.details.ssn=(null==e||null==(n=e.config)||null==(i=n.details)?void 0:i.ssn)??`XXX-XX-${e.config.details.ssn.slice(7,11)}`}t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,enterEntireSSN:a}}})},handlerPaymentType:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,paymentTypes:a}}})},handlerContractorStatus:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,contractorStatus:a}}})},handlerCalculations:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,isCalculationEnabled:a}}})},handlerTaxID:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,taxId:a}}})},handlerSSN:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,ssn:"XXX-XX-"!==a&&"XXX-XX-XXXX"!==a?a:""}}})},handlerMaritalStatus:a=>{t({type:"stub:update",config:{...e.config,details:{...e.config.details,maritalStatus:a}}})},handlerPaymentPeriod:a=>{e.config.stubList.forEach((t,n)=>{let s,d,l=(0,i.Ay)(e.config.stubList[n-1]),r=t.paymentSet;switch(a){case"semimonthly":d=Math.floor(o()(null==l?void 0:l.paymentDate).daysInMonth()/2)-1,s=o()(null==l?void 0:l.paymentDate).subtract(d,"day").format("L"),r.regular.hours=80;break;case"biweekly":d=2,s=o()(null==l?void 0:l.paymentDate).subtract(d,"week").format("L"),r.regular.hours=80;break;case"annually":d=1,s=o()(null==l?void 0:l.paymentDate).subtract(d,"year").format("L"),r.regular.hours=1920;break;case"monthly":d=1,s=o()(null==l?void 0:l.paymentDate).subtract(d,"month").format("L"),r.regular.hours=160;break;case"weekly":d=1,s=o()(null==l?void 0:l.paymentDate).subtract(d,"week").format("L"),r.regular.hours=40}e.config.stubList[n]={...t,paymentDate:l?s:t.paymentDate,paymentSet:r}}),t({type:"stub:update",config:{...e.config,details:{...e.config.details,periodType:a},stubList:e.config.stubList}})},handlerEmployeeName:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,name:a}}}})},handlerEmployeeId:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,id:a}}}})},handlerEmployeeMainAddress:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,mainAddress:a}}}})},handlerEmployeeExtraAddress:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,extraAddress:a}}}})},handlerEmployeeMainAddressCombined:a=>{let i=e.config.details.employee.extraAddress??"",n=a?i?`${a}, ${i}`:a:i;t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,mainAddress:n}}}})},handlerEmployeeExtraAddressCombined:a=>{let i=e.config.details.employee.mainAddress??"",n=e.config.details.employee.extraAddress??"",s=i;n&&i.endsWith(`, ${n}`)?s=i.slice(0,i.length-`, ${n}`.length):n&&i===n&&(s="");let o=s?a?`${s}, ${a}`:s:a;t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,mainAddress:o,extraAddress:a}}}})},handlerCompanyName:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,name:a}}}})},handlerCompanyEin:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,companyEin:a}}}})},handlerCompanyPhone:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,phone:a}}}})},handlerEmployeePhone:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,employee:{...e.config.details.employee,phone:a}}}})},handlerCompanyMainAddress:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,mainAddress:a}}}})},handlerCompanyExtraAddress:a=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,extraAddress:a}}}})},handlerCompanyMainAddressCombined:a=>{let i=e.config.details.company.extraAddress??"",n=a?i?`${a}, ${i}`:a:i;t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,mainAddress:n}}}})},handlerCompanyExtraAddressCombined:a=>{let i=e.config.details.company.mainAddress??"",n=e.config.details.company.extraAddress??"",s=i;n&&i.endsWith(`, ${n}`)?s=i.slice(0,i.length-`, ${n}`.length):n&&i===n&&(s="");let o=s?a?`${s}, ${a}`:s:a;t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,company:{...e.config.details.company,mainAddress:o,extraAddress:a}}}})},handlerEditPaymentDate:(a,i)=>{0===i?t({type:"stub:update",config:(0,u.BJ)(e.config,a)}):(e.config.stubList[i].paymentDate=a,t({type:"stub:update",config:{...e.config}}))},handlerExtraInfo:(a,i)=>{t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,extraInfo:{...e.config.details.extraInfo,...{[a]:i}}}}})},handlerGenerateHeaderReferenceDetails:()=>{let a=Math.floor(9e4*Math.random())+1e4;t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details,extraInfo:{...e.config.details.extraInfo,co:(0,y.nQ)(2)+String(Math.floor(90*Math.random())+10),file:String(Math.floor(9e5*Math.random())+1e5),dept:String(Math.floor(9e5*Math.random())+1e5),clock:String(Math.floor(9e5*Math.random())+1e5),zeroEightZero:String(Math.floor(900*Math.random())+100),zeroEightZeroLabel:String(Math.floor(900*Math.random())+100)}},stubList:(0,y.lF)(e.config.stubList,0,a)}})},handlerOtherTaxName:(a,i,n)=>{e.config.stubList[i].taxSet[`custom${n}`].name=a,t({type:"stub:update:metadata",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerOtherTaxPeriod:(a,i,n)=>{var s,o,d;(null==(d=e.config)||null==(o=d.stubList[i])||null==(s=o.taxSet[`custom${n}`])?void 0:s.periodAmount)&&(e.config.stubList[i].taxSet[`custom${n}
1`].periodAmount=a),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerHideTax:(a,i)=>{e.config.stubList[a].taxSet[i].hide=!0,t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerShowTax:(a,i)=>{e.config.stubList[a].taxSet[i].hide=!1,t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerReportingPeriod:(a,i,n)=>{let s,o=e.config.stubList[i].paymentPeriodRange;s="both"===a?{...o,start:n.substring(0,10),end:n.substring(n.length-10),isManuallyChanged:!0}:"start"===a?{...o,start:n,isManuallyChanged:!0}:{...o,end:n,isManuallyChanged:!0};let d=e.config.stubList.map((e,t)=>t===i?{...e,paymentPeriodRange:s}:e);t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:d}})},handlerAnnual:a=>{e.config.stubList.map(t=>{t.paymentSet.regular.periodAmount=a/m.Zv[e.config.details.periodType]}),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerAddPaySets:(a,i)=>{let n=e.config.stubList[a],s=Object.keys(g.d[i].allowedPaymentKeyList).filter(e=>-1===Object.keys(n.paymentSet).indexOf(e))[0];n.paymentSet[s]="salary"===e.config.details.paymentTypes?{name:g.d[i].allowedPaymentKeyList[s],rate:null,hours:null,periodAmount:0}:{name:g.d[i].allowedPaymentKeyList[s],rate:0,hours:0},t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditPaySets:(a,i,n)=>{if(i!==n){let s=e.config.stubList[a],o={};for(let e of Object.keys(s.paymentSet))e===i?o[n]={...s.paymentSet[i],name:n}:o[e]=s.paymentSet[e];s.paymentSet=o,t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})}},handlerRemovePaySets:(a,i)=>{delete e.config.stubList[a].paymentSet[i],(0,p.zr)(a,i),t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerEditPaySetName:(a,i,n)=>{let s=n??0;e.config.stubList[s].paymentSet[a]||(e.config.stubList[s].paymentSet[a]={name:a,rate:0,hours:0,periodAmount:0}),e.config.stubList[s].paymentSet[a].name=i,t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerPeriodPaymentCount:i=>{i<e.config.details.count&&i>=1&&(e.config.details.count=i,a(i)),t({type:"stub:update",config:{...e.config,details:{...e.config.details,periodNumber:i}}})},handlerCalculationOffEvent:(a,i,n,s,o)=>{e.config.stubList[a][i][n][s]=o,t({type:"stub:update",config:{...e.config,details:{...e.config.details},stubList:[...e.config.stubList]}})},handlerCentsInTextValue:e=>(0,d.G)(e).slice(-2),handleUpdateCompanyImage:async(a,i,s)=>{let o={...e.companyImages},d=await (0,n.iS)(a);if(!c.q.includes(d.ext)||a.size>c.C)throw Error("Something went wrong.");let l=await r(a),u=await (0,f.ae)({base64File:l,type:s,captchaToken:i,checkOnly:!0});o[s]=u.image,window.sessionStorage.setItem("logo"===s?"companyLogo":"companyWatermark",u.image),t({type:"companyImages:update",companyImages:{...o}})},handleRemoveCompanyImage:a=>{let i={...e.companyImages};i[a]=null,t({type:"companyImages:update",companyImages:{...i}})},handlerToggleDefaultImage:(a,i)=>{let n={...e.companyImages};"logo"===a?n.showDefaultLogo=i:n.showDefaultWatermark=i;{let e="logo"===a?"hideDefaultLogo":"hideDefaultWatermark";i?window.sessionStorage.removeItem(e):window.sessionStorage.setItem(e,"true")}t({type:"companyImages:update",companyImages:{...n}})}}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.