PageSourceSearch

https://www.turijobs.com/_next/static/chunks/2391-b0388e8c174ac073.js

js turijobs.com collected 2026-10-02 13:08:13 UTC 12,694 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2391],{58565:function(e,i,n){n.d(i,{H:function(){return g}});var o=n(52322),l=n(2784),t=n(4102),a=n(10055),d=n(11122),r=n(95617),c=n(65992),s=n(59391),u=n(94449),f=n(93808),m=n(13084),p=n(34613),v=n(9559);let g=e=>{var i;let{offer:n,onApplySuccess:g,originFlow:y,isExpanded:h=!0,onToggleExpanded:b,onHasRecommendedOffersChange:w,shouldShow:I=!1,fromSearchPanel:x=!1}=e,_=(0,u.v9)(t.etS,(e,i)=>(null==e?void 0:e.candidateId)===(null==i?void 0:i.candidateId)&&(null==e?void 0:e.userId)===(null==i?void 0:i.userId)),N=(0,l.useMemo)(()=>(null==_?void 0:_.candidateId)||0,[null==_?void 0:_.candidateId]),S=(0,l.useMemo)(()=>{var e;return{candidateId:N,titleId:n.titleId||0,cityId:(null===(e=n.location)||void 0===e?void 0:e.cityId)||0,experienceId:n.experienceId||null,degreeId:n.degreeId||null,contractTypeId:n.contractTypeId||null,workdayTypeId:n.workdayTypeId||null,categoryId:n.categoryId||null,sectorId:n.sectorId||null,page:0,pageSize:10}},[n,N]),{data:k,error:C}=(0,t.OVl)(S,{skip:!I||!n||!n.titleId||!(null===(i=n.location)||void 0===i?void 0:i.cityId)}),[j,A]=(0,l.useState)([]),[O,E]=(0,l.useState)(h),[T,B]=(0,l.useState)(new Set),D=(0,l.useRef)(null),{t:L}=(0,d.$G)("offerDescription"),{t:M}=(0,d.$G)("buttons"),{data:R}=(0,t.ySV)(),{utm_source:F,utm_medium:V,utm_campaign:P}=(0,f.f)(),U=y===c.Qo.OfferPage?c.Qo.OfferPageMultiApply:c.Qo.OfferDescriptionMultiApply,{isApplied:q,handleApplyToAll:z,handleIndividualApply:Q,isSubmittingBatch:W,areAllApplied:G}=(0,m.e)({offers:j,originFlow:y||c.Qo.OfferPageRecommendations,trackingOrigin:U,onApplySuccess:g});(0,l.useEffect)(()=>{I&&((null==k?void 0:k.offers)?(A(k.offers),null==w||w(k.offers.length>0)):null==w||w(!1))},[I,k,C,w]),(0,l.useEffect)(()=>{E(h)},[h]);let H=(0,l.useRef)(null==n?void 0:n.id);(0,l.useEffect)(()=>{I&&H.current!==(null==n?void 0:n.id)&&(A([]),B(new Set),H.current=null==n?void 0:n.id)},[I,null==n?void 0:n.id]),(0,l.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]);let J=e=>{var i,n,o,l,t,a;if(T.has(e.id))return;B(i=>new Set(i).add(e.id));let d=q(e.id);(0,p.L9)(c.tV.B2CViewItem,{flow:c.hm.B2CJobApplication,step:c.Md.Impression,origin:U,origin_source:F,origin_medium:V,origin_campaign:P,id_candidate:null!==(a=null==_?void 0:_.candidateId)&&void 0!==a?a:0,id_job_vacancy:e.id,applied_job_vacancy:d,items:[{item_id:e.id,item_name:e.title,item_brand:(null==e?void 0:null===(i=e.company)||void 0===i?void 0:i.brandName)||(null==e?void 0:null===(n=e.company)||void 0===n?void 0:n.enterpriseName),...(e.cardTags||[]).reduce((e,i,n)=>(e["item_category".concat(0===n?"":n+1)]=i,e),{}),item_city:null===(o=e.location)||void 0===o?void 0:o.cityName,location_id:"".concat(null===(l=e.location)||void 0===l?void 0:l.countryName,"-").concat(null===(t=e.location)||void 0===t?void 0:t.regionName),price:0,quantity:1}]})};if(!I||C||!j.length||!O)return null;let Z=G(j);return(0,o.jsx)("div",{className:"w-full ".concat(!x&&j.length<=3?"md:w-1/2":""," flex flex-col items-center gap-6 md:py-6 pb-0 -mt-0"),style:{borderRadius:"4px",border:"1px solid #EBEBEB",background:"#F7F8FB"},children:(0,o.jsxs)("div",{className:"w-full px-4 py-4 md:py-0",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-6 relative",children:[(0,o.jsx)("h3",{className:"text-[16px] md:text-[20px] text-carbon-800 font-abcgintonord font-medium",children:L("recommendedOffers.title","Ofertas sugeridas")}),(0,o.jsx)(s.Z,{containerClassName:"relative",title:L("recommendedOffers.tooltip.title"),description:L("recommendedOffers.tooltip.description"),buttonAriaLabel:"Suggested offers information",closeAriaLabel:"Close information",autoShowOnMount:j.length>0&&O,sessionStorageKey:"tooltipShownThisSession"})]}),(0,o.jsx)("div",{className:"flex gap-2 mb-6 overflow-x-auto scrollbar-hide",children:(()=>{var e,i;if(0===j.length)return[];let n=[];if((null===(e=j[0])||void 0===e?void 0:e.titleDenominationId)&&R){let e=R.find(e=>e.id===j[0].titleDenominationId);!e&&j[0].titleId&&(e=R.find(e=>e.id===j[0].titleId)),(null==e?void 0:e.label)&&n.push(e.label)}if(null===(i=j[0])||void 0===i?void 0:i.location){let e=j[0].location.cityName,i=j[0].location.countryName;e&&i?n.push("".concat(e,", ").concat(i)):e&&n.push(e)}let o=j.map(e=>e.cardTags||[]);if(o.length>0&&o[0].length>0){let e=o[0].filter(e=>o.every(i=>i.includes(e)));n.push(...e)}return n.filter(e=>e&&e.trim().length>0).slice(0,5)})().map((e,i)=>(0,o.jsx)("span",{className:"px-4 py-2 bg-white-50 border border-gray-300 rounded-full text-sm text-gray-700 whitespace-nowrap flex-shrink-0",children:e},i))}),(0,o.jsx)(r.Z,{className:"mb-4",title:"",items:j,ariaLeftLabel:"Previous",ariaRightLabel:"Next",showIndicatorsOnMobile:!0,backgroundColor:"none",scrollByCard:!0,fromRecommendedOffer:!0,wrapWithFullBleed:!1,renderItem:e=>(0,o.jsx)(v.OfferCard,{offer:e,showButtons:!0,showButtonsDesktop:!0,onApplySuccess:e=>{Q(e)},originFlow:y||c.Qo.OfferPageRecommendations,className:"bg-white-50 h-full flex flex-col",isApplied:q(e.id),onTrackImpression:J},e.id)}),(0,o.jsx)("div",{className:"px-4 pb-6 flex flex-col items-center gap-2",children:(0,o.jsx)(a.z,{className:"w-full max-w-[700px] mx-auto bg-orange-500 text-white-50 rounded-lg font-medium text-lg",onClick:()=>z(),disabled:W||Z,children:(0,o.jsx)("div",{className:"flex items-center justify-center gap-2",children:(0,o.jsx)("span",{children:W?M("apply.applying"):L(Z?"recommendedOffers.appliedAll":"recommendedOffers.applyAll")})})})})]})})}},9559:function(e,i,n){n.r(i),n.d(i,{OfferCard:function(){return h}});var o=n(52322),l=n(4102),t=n(86753),a=n(82334),d=n(58565),r=n(2784),c=n(93808),s=n(55544),u=n(65992),f=n(94449),m=n(35747),p=n(34613),v=n(11122),g=n(49654);let y=()=>{let[e,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{i(window.innerWidth);let e=()=>i(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e},h=e=>{var i,n,h,b,w,I,x,_,N;let{offer:S,offerType:k,date:C,bookmark:j=!1,bookmarkActive:A=!1,tagWhitespace:O="break",isApplied:E=!1,showButtonsDesktop:T=!0,onView:B,onClick:D,onBo
1okmarkClick:L,className:M="",showButtons:R=!0,tags:F=[],isNationalDiffusion:V=!1,isInternationalDiffusion:P=!1,isFromSearch:U=!1,originFlow:q,onApplySuccess:z,onApplyButtonClick:Q,onToggleExpanded:W,parentType:G,titleLevel:H,hideRecommendedInDesktop:J=!1,hideRecommendedInMobile:Z=!1,onTrackImpression:$}=e,K=(0,r.useRef)(null),[X]=(0,l.kfn)(),{utm_source:Y,utm_medium:ee,utm_campaign:ei}=(0,c.f)(),en=(0,r.useRef)(!1),eo=(0,r.useRef)(null),el=(0,s.C)(),et=(0,f.v9)(l.etS),{t:ea}=(0,v.$G)("offerDescription"),{getOfferUrl:ed,getCompanyUrl:er,getCityUrl:ec,getApplyUrl:es}=(0,m.L)(),[eu,ef]=(0,r.useState)(!1),[em,ep]=(0,r.useState)(!0),[ev,eg]=(0,r.useState)(!1),ey=()=>{el&&J||!el&&Z||ef(!0),null==Q||Q("card")},eh=()=>{ep(!em),null==W||W()};(0,r.useEffect)(()=>{if(!K.current)return;let e=new window.IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&!en.current){var i,n,o,l,t,a,d;en.current=!0;let e=Date.now();eo.current&&eo.current.idjobVacancy===S.id&&e-eo.current.timestamp<500||(eo.current={idjobVacancy:S.id,timestamp:e},X({idjobVacancy:S.id,idCandidate:null!==(i=null==et?void 0:et.candidateId)&&void 0!==i?i:0,dateDisplay:new Date().toISOString(),pageNumber:0,position:0,utm_Source:Y,utm_Medium:ee,utm_Campaign:ei,searchTerm:"",device:el?u.AS.Desktop:u.AS.Mobile}),$&&$(S),q&&(0,p.L9)(u.tV.B2CViewItem,{flow:u.hm.B2CJobApplication,step:u.Md.Impression,origin:q,origin_source:Y,origin_medium:ee,origin_campaign:ei,id_candidate:null!==(d=null==et?void 0:et.candidateId)&&void 0!==d?d:0,id_job_vacancy:S.id,applied_job_vacancy:null!=E&&E,items:[{item_id:S.id,item_name:S.title,item_brand:(null==S?void 0:null===(n=S.company)||void 0===n?void 0:n.brandName)||(null==S?void 0:null===(o=S.company)||void 0===o?void 0:o.enterpriseName),...(S.cardTags||[]).reduce((e,i,n)=>(e["item_category".concat(0===n?"":n+1)]=i,e),{}),item_city:null===(l=S.location)||void 0===l?void 0:l.cityName,location_id:"".concat(null===(t=S.location)||void 0===t?void 0:t.countryName,"-").concat(null===(a=S.location)||void 0===a?void 0:a.regionName),price:0,quantity:1}]}))}})},{threshold:.1});return e.observe(K.current),()=>e.disconnect()},[S.id,Y,ee,ei,el,X,S.cardTags,null==S?void 0:null===(i=S.company)||void 0===i?void 0:i.brandName,null==S?void 0:null===(n=S.company)||void 0===n?void 0:n.enterpriseName,null===(h=S.location)||void 0===h?void 0:h.cityName,null===(b=S.location)||void 0===b?void 0:b.countryName,null===(w=S.location)||void 0===w?void 0:w.regionName,S.title,q,null==et?void 0:et.candidateId,$,S]);let eb=y();return(0,o.jsxs)("div",{children:[(0,o.jsx)(t.Z,{ref:K,type:eb<768?"oferta-small":"oferta",title:S.title,titleLevel:H,subtitle:(0,g.Cm)(null==S?void 0:S.company,!!(null==S?void 0:S.isBlind),ea("company.confidentialName")),avatar:(null==S?void 0:null===(I=S.company)||void 0===I?void 0:I.brandLogoUrl)?"".concat(null==S?void 0:null===(x=S.company)||void 0===x?void 0:x.brandLogoUrl):l.FD1,parentType:G,location:(0,g.zj)(null===(_=S.location)||void 0===_?void 0:_.cityName,null===(N=S.location)||void 0===N?void 0:N.countryName),offerType:k,isNationalDiffusion:V,isInternationalDiffusion:P,labels:{featured:ea("offerCard.offerTypes.featured"),internationalDiffusion:ea("offerCard.diffusionTags.international"),nationalDiffusion:ea("offerCard.diffusionTags.national")},features:S.cardTags,date:C,bookmark:j,bookmarkActive:A,tagWhitespace:O,onView:()=>null==B?void 0:B(S),onClick:e=>{null==D||D()},onBookmarkClick:L,className:M,showButtons:R,renderApplyButton:()=>R?(0,o.jsx)("div",{className:"w-full",onClick:e=>e.stopPropagation(),children:(0,o.jsx)(a.ApplyButton,{externalUrl:null==S?void 0:S.externalUrl,internalUrl:es(S),isApplied:E,offerId:null==S?void 0:S.id,questId:null==S?void 0:S.questId,showButtonsDesktop:T,twoButtons:!0,onView:()=>null==B?void 0:B(S),originFlow:q,onSuccess:z?()=>z(S.id):void 0,onApplyButtonClick:ey,onToggleExpanded:eh,showRecommendedOffers:eu,hasRecommendedOffers:ev,onShowRecommendedOffers:()=>{el&&J||!el&&Z||ef(!0)}})}):null,tags:F,isFromSearch:U,offerUrl:ed(S),companyUrl:er(S),cityUrl:ec(S)}),eu&&!(el&&J)&&!(!el&&Z)&&S&&(0,o.jsx)("div",{className:"mt-3",children:(0,o.jsx)(d.H,{offer:S,onHasRecommendedOffersChange:eg,shouldShow:!0,isExpanded:em,onToggleExpanded:eh,originFlow:q,onApplySuccess:z?e=>z(e):void 0,fromSearchPanel:!0})})]})}},13084:function(e,i,n){n.d(i,{e:function(){return s}});var o=n(2784),l=n(94449),t=n(4102),a=n(93808),d=n(55544),r=n(65992),c=n(34613);let s=e=>{let{offers:i,originFlow:n,trackingOrigin:s,applications:u,onApplySuccess:f}=e,m=(0,l.v9)(t.etS),[p,{isLoading:v}]=(0,t.Pys)(),{utm_source:g,utm_medium:y,utm_campaign:h}=(0,a.f)(),b=(0,d.C)(),[w,I]=(0,o.useState)(new Set),x=(0,o.useCallback)(e=>{I(i=>{let n=new Set(i);
1return e.forEach(e=>n.add(e)),n})},[]),_=(0,o.useCallback)(e=>{I(i=>{let n=new Set(i);return n.delete(e),n})},[]),N=s||n,S=(0,o.useCallback)(e=>w.has(e)||Boolean(null==u?void 0:u.some(i=>i.offerId===e)),[w,u]),k=(0,o.useCallback)((e,i)=>{var n,o,l,t,a,d;(0,c.L9)(r.tV.B2CApplyOfferThankyou,{flow:r.hm.B2CJobApplication,step:r.Md.Thankyou,origin:N,apply_type:i,id_candidate:null!==(d=null==m?void 0:m.candidateId)&&void 0!==d?d:0,id_job_vacancy:e.id,items:[{item_id:e.id,item_name:e.title,item_brand:(null==e?void 0:null===(n=e.company)||void 0===n?void 0:n.brandName)||(null==e?void 0:null===(o=e.company)||void 0===o?void 0:o.enterpriseName),...(e.cardTags||[]).reduce((e,i,n)=>(e["item_category".concat(0===n?"":n+1)]=i,e),{}),item_city:null===(l=e.location)||void 0===l?void 0:l.cityName,location_id:"".concat(null===(t=e.location)||void 0===t?void 0:t.countryName,"-").concat(null===(a=e.location)||void 0===a?void 0:a.regionName),price:0,quantity:1}]})},[N,null==m?void 0:m.candidateId]),C=(0,o.useCallback)(async e=>{let o=(e||i).filter(e=>!S(e.id)&&(!e.questId||e.questId<=0));if(!(null==m?void 0:m.candidateId)||!(null==m?void 0:m.userId)||0===o.length)return;let l=o.map(e=>e.id);x(l);try{await p({offerId:0,userId:m.userId,candidateId:m.candidateId,mobileRegister:!1,registrationSource:r.el.Web,utm_Source:g||"",utm_Medium:y||"",utm_Campaign:h||"",device:b?r.AS.Desktop:r.AS.Mobile,applyFlow:r.fr.MultiApplyAll,originFlow:n,offerIds:l}).unwrap(),o.forEach(e=>{k(e,r.fr.MultiApplyAll)}),f&&l.forEach(e=>f(e))}catch(e){console.error("Error applying to all offers:",e),o.forEach(e=>_(e.id))}},[i,m,p,g,y,h,b,n,k,x,_,f,S]),j=(0,o.useCallback)(e=>{x([e]),null==f||f(e)},[x,f]),A=(0,o.useCallback)(e=>0===e.length||e.every(e=>S(e.id)),[S]);return{isApplied:S,handleApplyToAll:C,handleIndividualApply:j,isSubmittingBatch:v,areAllApplied:A,optimisticAppliedOffers:w}}}}]);

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.