PageSourceSearch

https://theright.fit/6439.e47482b4e09f4679.js

js theright.fit collected 2026-09-24 11:54:03 UTC 9,356 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[6439],{66396(e,t,a){a.d(t,{A:()=>c});a(96540);var s=a(3433),n=a(92072),i=a(74848);const c=({currentPage:e,totalPages:t,onPageChange:a,maxPaginationLinks:c=5,className:l="pagination-sm"})=>{const o=(0,s.Zp)(),r=e=>{const t=new URLSearchParams(window.location.search);t.set("page",e.toString()),o(`?${t.toString()}`)},d=t=>{t!==e&&r(t.toString()),t!==e&&a&&a(t)},h=()=>{r("1"),a&&a(1)},v=()=>{r(t.toString()),a&&a(t)};return(0,i.jsx)(n.A,{className:l,children:(()=>{const a=[],s=Math.min(t,c);a.push((0,i.jsx)(n.A.First,{disabled:1===e,onClick:h,className:"pagination-first",children:"First"},"first")),a.push((0,i.jsx)(n.A.Prev,{disabled:1===e,className:"pagination-prev",onClick:()=>d(e-1),children:"Previous"},"prev"));const l=Math.ceil(s/2);let o=e-l+1;o<1?o=1:o+s>t&&(o=t-s+1);for(let t=0;t<s;t++){const s=o+t;a.push((0,i.jsx)(n.A.Item,{active:s===e,onClick:()=>d(s),className:"pagination-page",children:s},s))}return a.push((0,i.jsx)(n.A.Next,{disabled:e===t,onClick:()=>d(e+1),className:"pagination-next",children:"Next"},"next")),a.push((0,i.jsx)(n.A.Last,{disabled:e===t,onClick:v,className:"pagination-last",children:"Last"},"last")),a})()})}},10355(e,t,a){a.d(t,{A:()=>l});var s=a(40644),n=(a(96540),a(3433)),i=a(74848);const c=["url","target","children"],l=e=>{let{url:t,target:a="",children:l}=e,o=(0,s.A)(e,c);return(0,i.jsx)(n.N_,Object.assign({to:t,target:a},o,{children:l}))}},63187(e,t,a){a.d(t,{F6:()=>r,FI:()=>l,Jt:()=>i,T3:()=>d,Wv:()=>v,bE:()=>c,nI:()=>h,rZ:()=>n,yJ:()=>o});var s=a(55278);const n=(e,t={})=>new Promise((a,n)=>{s.A.get(e,t).then(e=>{a(e.data)}).catch(e=>{a({data:null,error:e})})}),i=(e,t={})=>new Promise((a,n)=>{s.A.get(e,t).then(e=>{a(e.data)}).catch(e=>{a({data:null,error:e})})}),c=async(e,t,a={})=>await s.A.post(e,Object.assign({},t),a),l=async(e,t,a={})=>await s.A.patch(e,Object.assign({},t),a),o=async(e,t,a={})=>await s.A.put(e,Object.assign({},t),a),r=async(e,t,a={})=>await s.A.patch(e,Object.assign({},t),a),d=async(e,t)=>await s.A.post(e,t,{headers:{"Content-Type":"multipart/form-data"}}),h=async(e,t)=>await s.A.post(e,t,{headers:{"Content-Type":"multipart/form-data"}}),v=async e=>await s.A.delete(e)},97977(e,t,a){a.d(t,{$1:()=>h,LI:()=>r,RW:()=>i,Ss:()=>n,UP:()=>o,XI:()=>v,f3:()=>l,jH:()=>m,tC:()=>c,vF:()=>d});var s=a(63187);const n=e=>(0,s.bE)("web/talent-account-settings/personal-info",e),i=e=>(0,s.bE)("web/talent-account-settings/profile-info",e),c=e=>(0,s.bE)("web/talent-account-settings/tax-details",e),l=e=>(0,s.bE)("web/talent-account-settings/reset-password",e),o=()=>(0,s.Wv)("web/auth/deactivate"),r=()=>(0,s.Wv)("web/auth/delete"),d=()=>(0,s.Jt)("user/setting/notification"),h=e=>(0,s.bE)("user/setting/notification",e),v=(e,t)=>(0,s.bE)("web/talent-account-settings/verify-new-email-update",{otp:e,email:t}),m=e=>(0,s.Jt)("/user/invoices?page="+e)},33719(e,t,a){a.d(t,{G:()=>c,u:()=>l});var s=a(72505),n=a(55278),i=a(68701);const c=async e=>{const t=`/invoices/${e}/pdf`;try{return(await i.A.post(t,{headers:{"Content-Type":"application/pdf",Accept:"application/pdf"}},{responseType:"blob"})).data}catch(a){if(a instanceof s.pe){const e=a.response,t=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==t?void 0:t.errors,_message:(null==t?void 0:t.message)||(null==a?void 0:a.message)})}throw a}},l=async e=>{const t=`/user/invoices/${e}/pdf`;try{return(await n.A.get(t,{headers:{"Content-Type":"application/pdf",Accept:"application/pdf"},responseType:"blob"})).data}catch(a){if(a instanceof s.pe){const e=a.response,t=null==e?void 0:e.data;throw Object.assign({},null==e?void 0:e.data,{_status:null==e?void 0:e.status,_errors:null==t?void 0:t.errors,_message:(null==t?void 0:t.message)||(null==a?void 0:a.message)})}throw a}}},76439(e,t,a){a.r(t),a.d(t,{default:()=>b});var s=a(96540),n=a(3433),i=a(40364),c=a(97977),l=a(66396),o=a(85383),r=a(10355),d=a(86625),h=a(28454),v=a(33719);var m=a(61409),u=a(13838),_=a(51990),p=a(74848);const b=()=>
1{const e=(0,n.zy)(),[t,a]=(0,s.useState)(),b=(0,s.useRef)(null),[g,x]=(0,s.useState)(!0),[j,f]=(0,s.useState)(),[N,w]=(0,s.useState)([]),y=i.c.CDN_PATH,k=(A={onSuccess:(e,t)=>{(0,_.PE)(e,`${t}.pdf`)},onError:e=>{m.oR.error(e._message)},onSettled(e,t,a){console.log("settled"),w(e=>e.filter(e=>e!==a))}},(0,h.n)(Object.assign({},A,{mutationKey:["getInvoicePDFTalent"],mutationFn:e=>(0,v.u)(e)})));var A;(0,s.useEffect)(()=>{const t=new URLSearchParams(e.search).get("page");(async()=>{x(!0);try{const e=await(0,c.jH)(t||"1");e&&(a(e),f(e.meta)),x(!1)}catch(e){x(!1),console.error("Error fetching data:",e)}})()},[e]);const I=j&&j.last_page>1&&(0,p.jsx)(l.A,{currentPage:j.current_page,totalPages:j.last_page,onPageChange:e=>{C()}}),C=()=>{if(b.current){const e={behavior:"smooth",block:"start",inline:"nearest"};b.current.scrollIntoView(e)}};return(0,p.jsx)("div",{ref:b,className:"invoices",children:(0,p.jsxs)("div",{className:"invoices__inner full-header",children:[(0,p.jsx)("div",{className:"invoices__header",children:(0,p.jsx)("div",{className:"invoices__container px-4 mx-auto",children:(0,p.jsx)(d.A,{title:"Invoices",subtitle:"Here\u2019s a list of your invoices and additional payments",backLink:"/talent/account/subscription",fullHeader:!0})})}),(0,p.jsx)("div",{className:"invoices__content mb-5",children:(0,p.jsxs)("div",{className:"invoices__container px-4 pt-3 pb-3 mx-auto main-table",children:[(0,p.jsxs)("div",{className:"invoices__table",children:[(0,p.jsx)(o.A,{loading:g,children:(0,p.jsx)("div",{children:t&&t.data.length>0&&(0,p.jsxs)("div",{className:"invoice-table-continer",children:[(0,p.jsxs)("div",{className:"invoices__table__row header d-flex justify-content-between align-items-center",children:[(0,p.jsx)("div",{className:"invoices__table__talent header text-center px-3",children:"Talent"}),(0,p.jsx)("div",{className:"invoices__table__job header",children:"Job"}),(0,p.jsx)("div",{className:"invoices__table__jobId jobId header text-right",children:"Job ID"}),(0,p.jsx)("div",{className:"invoices__table__invoiceNo invoiceNo header text-right",children:"Invoice no."}),(0,p.jsx)("div",{className:"invoices__table__total header text-right",children:"Invoice Total"}),(0,p.jsx)("div",{className:"invoices__table__download InvoiceDownload header",children:"\xa0"})]}),t.data.map(e=>(0,p.jsxs)("div",{className:"invoices__table__row d-flex justify-content-between align-items-center main-table",children:[(0,p.jsx)("div",{className:"invoices__table__talent d-flex justify-content-between align-items-center px-3",children:e.slug?(0,p.jsx)(r.A,{url:`/talent/${e.slug}`,children:(0,p.jsx)("span",{className:"ml-5 d-none d-sm-inline-block",children:e.profileName})}):(0,p.jsx)("img",{src:e.avatarImage?e.avatarImage.replace("-local",""):`${y}/images/icons/icon-profile.png`,alt:e.profileName,title:e.profileName,width:"33"})}),(0,p.jsxs)("div",{className:"invoices__table__job",children:[e.jobName," ","Refund"===e.title&&(0,p.jsx)("div",{className:"highlight",children:(0,p.jsxs)("strong",{children:["(",e.title,")"]})})]}),(0,p.jsx)("div",{className:"invoices__table__jobId jobId text-right "+("Refund"===e.title?"strikeout":""),children:e.jobId&&`TRF-${e.jobId}`}),(0,p.jsx)("div",{className:"invoices__table__invoiceNo invoiceNo text-right "+("Refund"===e.title?"strikeout":""),children:e.number}),(0,p.jsx)("div",{className:"invoices__table__total text-right "+("Refund"===e.title?"strikeout":""),children:e.total}),(0,p.jsx)("div",{className:"invoices__table__download InvoiceDownload text-center "+("Refund"===e.title?"strikeout":""),children:N.includes(e.id)?(0,p.jsx)(u.y$,{className:"invoice-table-continer-spinner"}):(0,p.jsx)(u.$n,{theme:"text",onClick:()=>(e=>{w(t=>[...t,e.id]),k.mutate(e.id)})(e),children:(0,p.jsx)("img",{src:`${y}/images/icons/icon-download.svg`,width:"11",alt:"download",title:"Click to Download the invoice"})})})]},e.id))]})})}),!g&&t&&!t.data.length&&(0,p.jsxs)("div",{className:"invoices__empty text-center",children:[(0,p.jsx)("div",{className:"w-100 invoices__empty__bar"}),(0,p.jsxs)("div",{className:"py-5 py-4 px-5 table-body",children:[(0,p.jsx)("img",{src:`${y}/images/icons/icon-invoices.svg`,width:"30",title:"No Invoices",alt:"No Invoices",className:"mb-3"}),(0,p.jsx)("h5",{className:"mb-2",children:"You have no invoices"})]})]})]}),I]})})]})})}},86625(e,t,a){a.d(t,{A:()=>i});a(96540);var s=a(3433),n=a(74848);
1const i=({title:e,subtitle:t,backLink:a,fullHeader:i})=>{const c=(0,s.Zp)(),l=()=>{a&&c(a)};return(0,n.jsx)("div",{className:"column-content",children:i?(0,n.jsxs)("div",{className:"column-content__header header-main",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"column-content__back back-btn",onClick:l,children:(0,n.jsx)("i",{className:"fa fa-angle-left back-btn-icon","aria-hidden":"true"})}),(0,n.jsx)("h2",{className:"header-text",children:e})]}),(0,n.jsx)("span",{className:"column-content__subtitle subtitle-text",children:t})]}):(0,n.jsxs)("div",{className:"column-content__header",children:[(0,n.jsx)("div",{className:"column-content__back",onClick:l,children:(0,n.jsx)("i",{className:"fa fa-angle-left","aria-hidden":"true"})}),(0,n.jsx)("h3",{className:"column-content__title",children:e}),(0,n.jsx)("span",{className:"column-content__subtitle",children: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.