PageSourceSearch

https://fastwork.co/_next/static/chunks/2062.c86b92cae0f6c800.js

js fastwork.co collected 2026-09-24 17:10:54 UTC 4,701 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2062],{92062:(e,t,s)=>{s.r(t),s.d(t,{default:()=>j});var a=s(37876),l=s(14232),c=s(37127),i=s(56234),n=s(36620),r=s(83210),d=s(20294),u=s(40123),o=s.n(u),b=s(56472),m=s(56557),p=s.n(m),h=s(4188),x=s(92121);let _=function(e){var t=e.item,s=e.userId,c=e.userEmail,i=(0,d._)((0,b.Bd)("common"),1)[0],n=(0,d._)((0,l.useState)(!1),2),r=n[0],u=n[1],o=(0,d._)((0,l.useState)(""),2),m=o[0],_=o[1],f=(0,d._)((0,l.useState)(""),2),j=f[0],g=f[1];(0,l.useEffect)(function(){g(t.cta)},[]);var N=function(e){u(!0),_(e)};return(0,a.jsxs)("div",{className:"card-wrapper",children:[(0,a.jsx)("div",{className:"header",children:(0,a.jsx)("div",{className:"_ffml-secondary",children:t.title})}),(0,a.jsxs)("div",{className:"status",children:[(0,a.jsxs)("div",{children:[i("specialist.subcategory-table.table-head.status"),":"]}),function(e){switch(e){case"ACTIVE":return(0,a.jsx)("span",{className:"open",children:i("specialist.subcategory-table.table-data.status.open")});case"ABOUT_TO":return(0,a.jsx)("span",{className:"close",children:i("specialist.subcategory-table.table-data.status.pending")});case"CLOSED":return(0,a.jsx)("span",{className:"end",children:i("specialist.subcategory-table.table-data.status.close")});default:return""}}(t.status)]}),(0,a.jsxs)("div",{className:"date",children:[(0,a.jsxs)("div",{children:[i("specialist.subcategory-table.table-head.open-date"),":"]}),(0,a.jsx)("div",{children:"".concat(p()(t.start_date).format("DD/MM/YYYY")," - ").concat(p()(t.end_date).format("DD/MM/YYYY"))})]}),(0,a.jsx)("div",{className:"cta",children:function(e,t){switch(j){case"APPROVED":return(0,a.jsx)("button",{className:"tb-button custom-tb-height -disabled",type:"button",disabled:!0,children:(0,a.jsx)("span",{children:i("specialist.subcategory-table.table-data.cta.specialist")})});case"PENDING":return(0,a.jsx)("button",{className:"tb-button custom-tb-height -disabled",type:"button",disabled:!0,children:(0,a.jsx)("span",{children:i("specialist.subcategory-table.table-data.cta.submitted")})});case"NO_PRODUCT":return(0,a.jsx)("button",{className:"tb-button custom-tb-height -disabled",type:"button",disabled:!0,children:(0,a.jsx)("span",{children:i("specialist.subcategory-table.table-data.cta.no-product")})});case"IDLE":return"ACTIVE"===e?(0,a.jsx)("button",{className:"tb-button custom-tb-height",type:"button","data-selenium":"specialist.hero.button.register",onClick:function(){return N(t)},children:(0,a.jsx)("span",{children:i("specialist.subcategory-table.table-data.cta.register")})}):null;default:return""}}(t.status,t.subcategory_id)}),"PENDING"===j&&t.skill_test_link&&"ACTIVE"===t.status&&(0,a.jsx)("div",{className:"_dp-f _jtfct-ct _pd-12px",children:(0,a.jsx)("a",{href:(0,h.Rf)(t.skill_test_link,{email:c}),target:"_blank",className:"tb-link -primary _tdcrt-udl _ffml-secondary _fw-600",rel:"noreferrer",children:i("specialist.subcategory-table.table-data.link.test")})}),r&&(0,a.jsx)(x.A,{onClickClose:function(){return u(!1)},userId:s,onActivateUser:function(){g("PENDING")},subcategoryId:m,url:(0,h.Rf)(t.skill_test_link,{email:c})})]},t.subcategory_id)},f=function(e){var t=e.data,s=e.userId,l=e.userEmail,c=(0,d._)((0,b.Bd)("common"),1)[0];return(0,a.jsxs)("div",{className:"available-subcat-mobile",children:[(0,a.jsx)("h2",{className:"_mgt-32px",children:c("specialist.subcategory-table.title")}),o()(t)?(0,a.jsx)("div",{className:"_mgv-32px _pdh-24px",children:(0,a.jsxs)("div",{className:"_pdv-128px _dp-f _fdrt-cl _alit-ct _bgcl-neutral-100 _bdrd-12px",style:{border:"solid 1px rgba(214, 220, 231, 0.95)"},children:[(0,a.jsx)("i",{className:"tb-icon fal fa-clipboard-list _cl-neutral-500"}),(0,a.jsx)("div",{className:"_fw-600 _ffml-secondary _cl-neutral-500 _pdt-8px",children:c("specialist.subcategory-table.status.no-open-subcategory")})]})}):(0,a.jsx)("div",{className:"_mgt-24px",children:t.map(function(e){return(0,a.jsx)(_,{item:e,userId:s,userEmail:l},e.subcategory_id)})})]})},j=function(e){var t=e.user,s=e.data,d=(0,l.useRef)(null),u=function(){var e=d.current.getBoundingClientRect().top;window.scrollTo({top:e-100,behavior:"smooth"})};return(0,a.jsx)(c.wW,{children:(0,a.jsxs)("div",{className:"mobile",style:{background:"#fcfcfc"},children:[(0,a.jsx)(i.A,{isMobile:!0,onClickCTA:function(){return u()}}),(0,a.jsx)("div",{className:"lo-container _mgt-32px",children:(0,a.jsx)(n.A,{})}),(0,a.jsx)("div",{className:"lo-container _mgt-32px",children:(0,a.jsx)(r.A,{})}),(0,a.jsx)("div",{className:"_bgcl-primary-100",ref:d,children:(0,a.jsx)("div",{className:"lo-container _mgt-32px",children:(0,a.jsx)(f,{data:s,userId:null==t?void 0:t.id,userEmail:null==t?void 0:t.email})})})]})})}}}]);

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.