1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[3090],{42489(e,t,i){i.r(t),i.d(t,{default:()=>S});var s=i(74848),n=i(96540),a=i(56327),l=i(92656),r=i(98767),o=i(20428);let d="container-vmZ1TT",c="textContainer-dZiy4r";var h=i(80736);function m(e){let{docData:t,activeTab:i}=e;return(0,s.jsxs)("div",{className:`${d} vg-body-font web-body-font web-builder-font-color`,children:[(0,s.jsx)("div",{className:c,children:1===i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"vg-display-small web-display-small web-builder-font-color",children:t.strPaydate}),(0,s.jsx)("div",{children:t.paymentMethod}),(0,s.jsxs)("div",{children:["Check Amount: ",(0,h.Qn)(1),t.checkAmount]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"vg-display-small web-display-small web-builder-font-color",children:t.formTitle}),(0,s.jsxs)("div",{children:["Filed ",t.strSignDate&&t.strSignDate]})]})}),(0,s.jsx)("div",{children:(0,s.jsx)(o.A,{})})]},t.formPaystubUniqueIdText)}let u="pageTitle-T0vYYc";var y=i(72834),p=i(16314),v=i(58011),g=i(54454),x=i(89347),b=i(79874);let f=[{strPaydate:"Dec 15, 2024",paymentMethod:"Direct Deposit",checkAmount:1250.75,formTitle:"W-2 Tax Form",strSignDate:"Jan 31, 2024"},{strPaydate:"Dec 1, 2024",paymentMethod:"Paper Check",checkAmount:1180.5,formTitle:"1099-NEC Form",strSignDate:"Jan 15, 2024"},{strPaydate:"Nov 15, 2024",paymentMethod:"Direct Deposit",checkAmount:1320.25,formTitle:"I-9 Employment Form",strSignDate:"Dec 1, 2023"},{strPaydate:"Nov 1, 2024",paymentMethod:"Direct Deposit",checkAmount:1195,formTitle:"Direct Deposit Authorization",strSignDate:"Oct 15, 2023"}],w=0;function j(){let e=w%f.length,t=f[e];return w++,(0,s.jsxs)("div",{className:(0,b.A)(d,"vg-body-font","web-body-font","web-builder-font-color","stenciled"),children:[(0,s.jsx)("div",{className:c,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"vg-display-small web-display-small web-builder-font-color stencil-item",style:{width:"50%"},children:t.strPaydate}),(0,s.jsx)("div",{className:"stencil-item",style:{width:"25%"},children:t.paymentMethod}),(0,s.jsxs)("div",{className:"stencil-item",style:{width:"35%"},children:["Check Amount: $",t.checkAmount.toFixed(2)]})]})}),(0,s.jsx)("div",{className:"stencil-wrapper",children:(0,s.jsx)(o.A,{})})]})}function N(){let[e,t]=(0,n.useState)(1),i=[,,,,].fill(null);return(0,s.jsx)(n.Suspense,{children:(0,s.jsxs)("div",{className:"stenciled",children:[(0,s.jsx)("div",{className:"backButtonContainer-EIBYhC"}),(0,s.jsxs)("div",{className:"childrenWrapper",children:[(0,s.jsxs)("div",{className:(0,b.A)(u,"vg-display-medium","web-display-medium","web-builder-font-color","stencil-item"),style:{width:"60%"},children:["Payroll History - ","Bella Beauty Salon"," - ","Los Angeles"]}),(0,s.jsx)("div",{className:"stencil-item",style:{width:"100%",height:"58.5px"}}),i.map((e,t)=>(0,s.jsx)("div",{onClick:()=>{},children:(0,s.jsx)(j,{})},`paystub-skeleton-${t}`))]})]})})}var k=i(75538);function T(e){let{payrollHistory:t,onBack:i,isBackButtonEnabled:o}=e,{device:d,module:c}=(0,y.J)(),[b,f]=(0,n.useState)(1),w={merchantId:t.merchantId.toString()||"qlpq1OsTaohXTgEipHz3jg==",type:1===b?"1":"2",device:d,module:c},{data:j,isLoading:T,refetch:A}=(0,a.Pg)(w);(0,n.useEffect)(()=>{window.handleOperation="payrollHistoryBack",A()},[b]);let P=(0,a._U)(),D=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{let t=await fetch(e),i=await t.blob();return await new Promise((e,t)=>{let s=new FileReader;s.onloadend=()=>{if("string"==typeof s.result){let t=s.result.split(",")[1];e(t)}else e(null)},s.onerror=()=>t(null),s.readAsDataURL(i)})}catch(e){return console.error("Error converting PDF:",e),null}};return T?(0,s.jsx)(N,{}):(0,s.jsx)(n.Suspense,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)(l.A,{isLoading:T}),o&&(0,s.jsx)(g.A,{onClick:i,children:"Back"}),(0,s.jsxs)("div",{className:"childrenWrapper",children:[(0,s.jsxs)("div",{className:u+" vg-display-medium web-display-medium web-builder-font-color",children:["Payroll History - ",t?.businessName," - ",t?.city]}),(0,s.jsx)(r.hg,{ActiveTab:b,Name:[{id:1,name:"Paystubs"},{id:2,name:"Documents"}],NoOfTab:"2",TabPosition:"center",TabVariant:"horizontal",TabSize:"large",onClick:(e,t,i)=>{f(e)},FullWidth:!0,BottomBorder:!0}),j&&j.length>0?j.map((e,i)=>(0,s.jsx)("div",{onClick:()=>{P.mutate({device:d,module:c,type:1===b?"1":"2",FormPaystubUniqueId:e.formPaystubUniqueIdText,merchantId:p.hE||t.merchantId.toString()},{onSuccess:async e=>{if(e&&e.length>0)if((0,k.op)()||(0,k.H9)()){var t=await D(e);t&&(0,h.iX)(0,0,"","","0","81|~|data:application/pdf;charset=utf-8;base64,"+t)}else window.open(e,"_blank");else v.oR.error("No paystub URL found")}})},children:(0,s.jsx)(m,{docData:e,activeTab:b})},`paystub-item-${i}`)):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(x.A,{customElement:(0,s.jsx)("i",{className:`${1===b?"fa-light fa-file-invoice":"fa-light fa-file"}
1 web-builder-font-color iconSize-_HLDur`}),title:1===b?"No Paystub":"No Documents",message:1===b?"You don't have any paystub data.":"You don't have any document data"})})]})]})})}let A={pageTitle:"pageTitle-WVvs0z",payrollHistoryItem:"payrollHistoryItem-E_xWr0",payrollHistoryItemTextContainer:"payrollHistoryItemTextContainer-gcvs8g",iconSize:"iconSize-Q3FE4x"};var P=i(51850);let D={pageNumber:1,PageSize:10,device:"website",module:"myaccount"};function S(){let{data:e,isLoading:t,error:i}=(0,a.H0)(D),[o,d]=(0,n.useState)();if((0,P.A)({onReset:()=>{d(void 0)}}),t)return(0,s.jsx)(N,{});if(!e)return(0,s.jsx)("p",{children:"There is no payroll history data to display"});let c=()=>{d(void 0),window.handleOperation=""};return window.handleEventBack=c,(0,s.jsx)(n.Suspense,{children:(0,s.jsxs)("div",{className:`vg-body-font web-body-font web-builder-font-color MyaccountWrapper ${A.payrollPage} `,children:[(0,s.jsx)(l.A,{isLoading:t}),1===e.length||o?(0,s.jsx)(T,{onBack:()=>{c()},isBackButtonEnabled:1!==e.length,payrollHistory:o||e[0]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:`vg-display-large web-display-large web-builder-font-color ${A.pageTitle}`,children:"Payroll History"}),e.length>0?(0,s.jsx)(s.Fragment,{children:e.map(e=>(0,s.jsxs)("div",{onClick:()=>{d(e)},className:A.payrollHistoryItem+" vg-display-medium web-display-medium web-builder-font-color",children:[(0,s.jsx)("div",{className:A.payrollHistoryItemTextContainer,children:`${e.businessName} - ${e.city}`}),(0,s.jsx)(r.qy,{name:"chevronRight",width:13.5,height:20})]},e?.encyBusinessId))}):(0,s.jsx)(x.A,{customElement:(0,s.jsx)("i",{className:`fa-sharp fa-solid fa-clock-rotate-left web-builder-font-color ${A.iconSize}`}),title:"No Payroll History",message:"You don't have any payroll history details."})]})]})})}},54454(e,t,i){i.d(t,{A:()=>o});var s=i(74848),n=i(98767),a=i(60458),l=i(96540),r=i(75538);function o(e){let{children:t,onClick:i}=e,o=(0,a.G)(),d=(0,r.op)(),c={width:o?7.5:18.75,height:o?20:30};if((0,l.useEffect)(()=>{let e=document.getElementById("main");return e&&e.classList.add("innerPage"),()=>{e&&e.classList.remove("innerPage")}},[]),!1==d)return(0,s.jsx)("div",{className:"backButtonContainer-K0G0fy",children:(0,s.jsxs)("div",{onClick:i,className:"container-XhJun4",children:[(0,s.jsx)(n.qy,{name:"chevronLeft",width:c.width,height:c.height}),(0,s.jsx)("span",{children:t})]})})}},20428(e,t,i){i.d(t,{A:()=>n});var s=i(74848);function n(e){let{size:t=24,color:i="currentColor",strokeWidth:n=1.5}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:i,strokeWidth:n,width:t,height:t,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})}},60458(e,t,i){i.d(t,{G:()=>n});var s=i(96540);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,i]=(0,s.useState)(window.innerWidth>=e);return(0,s.useEffect)(()=>{let t=()=>{i(window.innerWidth>=e)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t}}}]);
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.