PageSourceSearch

https://www.turijobs.com/_next/static/chunks/1423-2b49bf8b2334a777.js

js turijobs.com collected 2026-10-02 13:09:53 UTC 16,577 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1423],{68647:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(52322),l=n(2784),a=n(2156),o=n(11122),i=n(52664),s=n(17025),c=n(70937);let u={sm:"text-sm",base:"text-base"};function d(e){let{id:t,phone:n,phonePrefix:d,onPhoneChange:p,onPhonePrefixChange:m,phonePrefixes:f,hideLabel:g=!1,label:b,placeholder:x,layout:y="default",labelTextSize:v,singleLineOnMobile:h=!1,labelGap:w="mb-2",isRequired:k=!0,disableHtmlValidation:R=!1,isError:E,helperText:M,dropdownMenuWidth:S,dropdownClassName:j}=e,{t:C}=(0,o.$G)("forms"),A=(0,i.Y)();(0,l.useEffect)(()=>{d||m(A)},[d,A,m]);let N=null!=b?b:C("generic.phone"),L=null!=x?x:C("generic.phone"),D=v?u[v]:"default"===y?"text-base":"text-sm";return(0,r.jsxs)("div",{className:"w-full",children:[!g&&(0,r.jsx)("div",{className:"flex items-center justify-between".concat(w?" ".concat(w):""),children:(0,r.jsx)("label",{htmlFor:t,className:"".concat(D," text-carbon-800").concat(k?' after:content-["*"]':""),children:N})}),(0,r.jsxs)("div",{className:"".concat(h?"flex flex-row gap-2 items-stretch":"flex flex-col gap-2 sm:flex-row sm:gap-2 sm:items-stretch"," [container-type:inline-size]"),children:[(0,r.jsx)("div",{className:"relative flex min-h-[52px] w-[120px] shrink-0 self-stretch ".concat(h?"":"max-sm:w-full"),children:(0,r.jsx)(c.L,{type:"filter",options:(0,s.vK)(null!=f?f:[]),value:(0,s.ki)(d,()=>A),placeholder:"+".concat(A),required:k&&!R,onChange:e=>m("object"==typeof e&&null!==e?String(e.value):String(null!=e?e:"")),isSearchable:!0,menuWidth:null!=S?S:"100cqw",isTextfieldDropdown:!0,className:"!h-full !min-h-[52px] !gap-1 !px-1.5".concat(j?" ".concat(j):""),styles:{indicatorsContainer:e=>({...e,padding:0,height:"100%"}),dropdownIndicator:e=>({...e,padding:0})}})}),(0,r.jsx)("div",{className:"min-w-0 flex-1",children:(0,r.jsx)(a.V,{type:"tel",inputMode:"numeric",autoComplete:"tel-national",layout:y,placeholder:L,isRequired:k,disableHtmlValidation:R,id:t,value:n,onChange:e=>{let t=e.target.value;p(t.replace(/\D/g,""))},isError:E,helperText:M})})]})]})}},63405:function(e,t,n){n.d(t,{MB:function(){return a},MS:function(){return l},Ni:function(){return o},X2:function(){return r},x8:function(){return i}});let r={es:[{key:"Administrative",label:"Administrativo/a"},{key:"Director",label:"Director/a"},{key:"HumanResourcesDirector",label:"Director/a de Recursos Humanos"},{key:"GeneralManagerDirector",label:"Gerente / Director General"},{key:"Manager",label:"Manager"},{key:"Other",label:"Otros"},{key:"Owner",label:"Propietario"},{key:"Recruiter",label:"Recruiter"},{key:"HRManager",label:"Responsable de RRHH"},{key:"RecruitmentManager",label:"Responsable de Selecci\xf3n"}],en:[{key:"Administrative",label:"Administrative"},{key:"Director",label:"Director"},{key:"HumanResourcesDirector",label:"Human Resources Director"},{key:"GeneralManagerDirector",label:"General Manager / Director"},{key:"Manager",label:"Manager"},{key:"Other",label:"Other"},{key:"Owner",label:"Owner"},{key:"Recruiter",label:"Recruiter"},{key:"HRManager",label:"HR Manager"},{key:"RecruitmentManager",label:"Recruitment Manager"}],pt:[{key:"Administrative",label:"Administrativo/a"},{key:"Director",label:"Diretor/a"},{key:"HumanResourcesDirector",label:"Diretor/a de Recursos Humanos"},{key:"GeneralManagerDirector",label:"Gerente / Diretor Geral"},{key:"Manager",label:"Manager"},{key:"Other",label:"Outros"},{key:"Owner",label:"Propriet\xe1rio"},{key:"Recruiter",label:"Recruiter"},{key:"HRManager",label:"Respons\xe1vel de RH"},{key:"RecruitmentManager",label:"Respons\xe1vel de Sele\xe7\xe3o"}]};function l(e){let t=e.split("-")[0];return"en"===t||"pt"===t?t:"es"}function a(e){var t;let n=l(e),a=null!==(t=r[n])&&void 0!==t?t:r.es;return a.map(e=>({value:e.key,text:e.label}))}function o(e,t){var n,a;let o=l(t),i=r[o].find(t=>t.key===e);return i?i.label:null!==(a=null===(n=r.es.find(t=>t.key===e))||void 0===n?void 0:n.label)&&void 0!==a?a:""}function i(e){if(null==e||!String(e).trim())return;let t=String(e).trim(),n=["es","en","pt"];for(let e of n){let n=r[e].find(e=>e.key===t||e.label===t);if(n)return n.key}let l=t.toLowerCase();for(let e of n){let t=r[e].find(e=>e.label.toLowerCase()===l);if(t)return t.key}}},52664:function(e,t,n){n.d(t,{Y:function(){return o}});var r=n(5632),l=n(2784),a=n(17025);let o=()=>{let e=(0,r.useRouter)();return(0,l.useMemo)(()=>{try{let t=e.locale||"es-es";if("default"===t||!t){let n=e.asPath.match(/^\/([a-z]{2}-[a-z]{2})\//);t=n?n[1]:"es-es"}return(0,a.u9)(t)}catch(e){return"34"}},[e.locale,e.asPath])}},17025:function(e,t,n){n.d(t,{ki:function(){return s},u9:function(){return o},vK:function(){return i}});
1var r=n(92717),l=n(76524);let a=e=>{let t=e.replace("+",""),n=(0,r.o)().find(e=>{try{return(0,l.G)(e)===t}catch(e){return!1}});return(null==n?void 0:n.toLowerCase())||"xx"},o=e=>{try{let n="ES";if(e){let t=e.toUpperCase();switch(t){case"PT-PT":n="PT";break;case"ES-MX":n="MX";break;default:n="ES"}}else{var t;let e=Intl.NumberFormat().resolvedOptions().locale;n=(null===(t=e.split("-")[1])||void 0===t?void 0:t.toUpperCase())||"ES"}let r=(0,l.G)(n);return r}catch(e){return"34"}},i=e=>e.map(e=>{let t=e.id.toString(),n=a(t);return{value:t,text:e.label,icon:"https://flagcdn.com/w20/".concat(n,".png"),iconAlt:"".concat(e.label," flag")}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=e||t(),r=a(n);return{value:n,text:"+".concat(n),icon:"https://flagcdn.com/w20/".concat(r,".png"),iconAlt:"".concat(n," flag")}}},26434:function(e,t,n){n.d(t,{w:function(){return i}});var r=n(52322),l=n(2784),a=n(43919),o=n(88983);let i=(0,l.forwardRef)((e,t)=>{let{label:n,value:i,defaultValue:s,name:c,placeholder:u,isDisabled:d=!1,isError:p=!1,isRequired:m=!1,disableHtmlValidation:f=!1,id:g="",layout:b="default",onlyLocations:x=!1,onChange:y,fillBetween:v=!1,requireStreetAddress:h=!1,onValidationError:w,requiredMessage:k,selectFromListMessage:R,internalValidation:E=!1,minCharsBeforeAttach:M=0,...S}=e,[j,C]=(0,l.useState)(()=>{let e=(s||i||"").trim();return 0===M||e.length>=M}),{isLoaded:A,loadError:N}=(0,o.j)(j),[L,D]=(0,l.useState)(!1),_=(0,l.useRef)(null),I=(0,l.useRef)(null),H=(0,l.useRef)(null),q=(0,l.useRef)(null),[F,P]=(0,l.useState)(s||i||""),[O,z]=(0,l.useState)(!1),[G,B]=(0,l.useState)(!1),[T,V]=(0,l.useState)(!1),[W,X]=(0,l.useState)(!1),[K,U]=(0,l.useState)(""),Y=(0,l.useRef)(!1),J=(0,l.useRef)(null);(0,l.useEffect)(()=>{D(!0)},[]);let Z=(0,l.useCallback)(()=>{if(!d&&E&&m){if(!F||""===F.trim()){X(!0),U(k||"Please enter your address."),w&&w(k||"Please enter your address.");return}if(!G){let e=R||"Select a city from the list.";X(!0),U(e),w&&w(e)}}},[d,E,m,F,G,k,R,w]);(0,l.useImperativeHandle)(t,()=>{var e;return{validateField:Z,focus:()=>{var e;return null==(e=_.current)?void 0:e.focus()},blur:()=>{var e;return null==(e=_.current)?void 0:e.blur()},value:null==(e=_.current)?void 0:e.value}}),(0,l.useEffect)(()=>{void 0!==i&&P(i)},[i]),(0,l.useEffect)(()=>{!E&&p&&W&&!T&&(X(!1),U(""))},[p,W,T,E]),(0,l.useEffect)(()=>{if(!L)return;let e="google-places-positioning-fix",t=document.getElementById(e);t&&t.remove();let n=document.createElement("style");return n.id=e,n.textContent="\n      .pac-container {\n        position: absolute !important;\n        z-index: 99999 !important;\n        border: 1px solid #e5e7eb !important;\n        border-radius: 8px !important;\n        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;\n        margin-top: 4px !important;\n        background: white !important;\n      }\n      \n      .pac-item {\n        padding: 4px 12px !important;\n        border-bottom: 1px solid #f3f4f6 !important;\n        cursor: pointer !important;\n        font-size: 13px !important;\n        line-height: 2.3 !important;\n      }\n      \n      .pac-item:hover {\n        background-color: #f9fafb !important;\n      }\n      \n      .pac-item:last-child {\n        border-bottom: none !important;\n      }\n      \n      .pac-item-selected {\n        background-color: #e5e7eb !important;\n      }\n    ",document.head.appendChild(n),()=>{let t=document.getElementById(e);t&&t.remove()}},[L]),(0,l.useEffect)(()=>{if(!L||!I.current||!_.current)return;let e=()=>{I.current&&"static"===window.getComputedStyle(I.current).position&&(I.current.style.position="relative")},t=()=>{let t=document.querySelector(".pac-container");if(t&&I.current&&_.current){if(e(),"none"===window.getComputedStyle(t).display)return;t.parentElement!==I.current&&(t.parentElement&&t.parentElement.removeChild(t),I.current.appendChild(t));let n=_.current.getBoundingClientRect(),r=I.current.getBoundingClientRect();if(window.innerWidth<=768){let e=_.current.offsetTop,n=_.current.offsetLeft,r=_.current.offsetHeight,l=_.current.offsetWidth;t.style.position="absolute",t.style.top="".concat(e+r+4,"px"),t.style.left="".concat(n,"px"),t.style.width="".concat(l,"px"),t.style.minWidth="".concat(l,"px"),t.style.maxWidth="".concat(l,"px"),t.style.right="auto"}else t.style.position="absolute",t.style.top="".concat(n.bottom-r.top+4,"px"),t.style.left="".concat(n.left-r.left,"px"),t.style.width="".concat(n.width,"px"),t.style.minWidth="".concat(n.width,"px"),t.style.maxWidth="".concat(n.width,"px"),t.style.right="auto";t.style.zIndex="9999",t.style.display="",t.style.visibility="",t.style.opacity="",t.style.transform="none",t.style.marginTop="4px"}};e();let n=null,r=null,l=()=>{t(),n=requestAnimationFrame(l)};n=requestAnimationFrame(l),r=setInterval(t,10);let a=new MutationObserver(n=>
1{n.forEach(n=>{"childList"===n.type&&n.addedNodes.forEach(n=>{var r;n instanceof HTMLElement&&(n.classList.contains("pac-container")&&(e(),requestAnimationFrame(()=>{t()})),null!=(r=n.querySelector)&&r.call(n,".pac-container")&&(e(),requestAnimationFrame(()=>{t()})))}),"attributes"===n.type&&"style"===n.attributeName&&n.target.classList.contains("pac-container")&&requestAnimationFrame(()=>{t()})})});a.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),I.current&&a.observe(I.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});let o=()=>{requestAnimationFrame(()=>{t()})},i=()=>{requestAnimationFrame(()=>{t()})};return window.addEventListener("resize",o),window.addEventListener("scroll",i,!0),()=>{null!==n&&cancelAnimationFrame(n),r&&clearInterval(r),a.disconnect(),window.removeEventListener("resize",o),window.removeEventListener("scroll",i,!0)}},[L]);let $=(0,l.useCallback)(e=>{var t,n,r,l,a,o,i,s;let c=null==e?void 0:e.address_components,u=null!==(i=null==(n=null==(t=null==e?void 0:e.geometry)?void 0:t.location)?void 0:n.lat())&&void 0!==i?i:0,d=null!==(s=null==(l=null==(r=null==e?void 0:e.geometry)?void 0:r.location)?void 0:l.lng())&&void 0!==s?s:0,p={results:[{address_components:c||[],formatted_address:e.formatted_address||"",geometry:{location:{lat:u,lng:d},location_type:"APPROXIMATE",viewport:(null==(o=null==(a=e.geometry)?void 0:a.viewport)?void 0:o.toJSON())||null},place_id:e.place_id||"",types:e.types||[]}],status:"OK"};y&&y({placeId:e.place_id||"",streetAddress:e.formatted_address||"",googleData:p})},[y]),Q=(0,l.useCallback)(async e=>{var t;if(!A||d)return;let n=e.getPlace();if(!n||!n.geometry){Y.current=!1;return}Y.current=!0;let r=(null==(t=_.current)?void 0:t.value)||n.name||n.formatted_address||"";r&&P(r),B(!0),V(!1),X(!1),U(""),w&&w(""),$(n),setTimeout(()=>{Y.current=!1},100)},[A,d,h,w,i,$]);(0,l.useEffect)(()=>{J.current=Q},[Q]),(0,l.useEffect)(()=>{if(!A||N||!L||d||!j||!_.current||!window.google||!window.google.maps)return;let e=()=>{if(!window.google||!window.google.maps||!window.google.maps.places||!window.google.maps.places.Autocomplete||!_.current)return!1;let e={fields:["address_components","geometry","place_id","formatted_address","types"]};x&&(e.types=["country","administrative_area_level_1","locality"]);try{return q.current&&google.maps.event.clearInstanceListeners(q.current),!!window.google.maps.places&&!!window.google.maps.places.Autocomplete&&(q.current=new window.google.maps.places.Autocomplete(_.current,e),q.current.addListener("place_changed",()=>{J.current&&q.current&&J.current(q.current)}),!0)}catch(e){return console.error("Error initializing Google Maps Autocomplete:",e),!1}};if(window.google&&window.google.maps&&window.google.maps.places&&"u">typeof window.google.maps.places.Autocomplete)e();else{let t=0,n=setInterval(()=>{if(++t>50){clearInterval(n),console.error("Google Maps Places API failed to load after maximum attempts");return}window.google&&window.google.maps&&window.google.maps.places&&"u">typeof window.google.maps.places.Autocomplete&&(clearInterval(n),e())},100);return()=>{clearInterval(n),q.current&&(google.maps.event.clearInstanceListeners(q.current),q.current=null)}}return()=>{q.current&&(google.maps.event.clearInstanceListeners(q.current),q.current=null)}},[A,N,x,h,L,d,j]);let ee=e=>{d||Y.current||(M>0&&e.target.value.trim().length>=M&&((0,a.XK)(),C(!0)),P(e.target.value),B(!1),V(!0),E&&(X(!1),U(""),w&&w("")))},et=()=>{d||((0,a.XK)(),0!==M||j||C(!0),_.current&&_.current.scrollIntoView({behavior:"smooth",block:"center"}),z(!0))},en=e=>{if(S&&"function"==typeof S.onBlur&&S.onBlur(e),!d&&E&&m&&O){if(!F||""===F.trim()){X(!0),U(k||"Please enter your address."),w&&w(k||"Please enter your address.");return}if(!G){let e=R||"Select a city from the list.";X(!0),U(e),w&&w(e)}}};if(!L)return(0,r.jsxs)("div",{className:"flex flex-col gap-2 w-full".concat(v?" h-full justify-between":""),ref:H,children:[n&&(0,r.jsx)("div",{className:"flex items-center justify-between",children:(0,r.jsx)("label",{htmlFor:g,className:"".concat("small"===b?"text-sm":"text-base"," text-carbon-800 ").concat(m?'after:content-["*"]':""),children:n})}),(0,r.jsx)("div",{className:"flex gap-4 items-center",children:(0,r.jsx)("div",{className:"relative text-carbon-700 w-full z-50",children:(0,r.jsx)("input",{ref:_,id:g,value:F,name:c,placeholder:u,disabled:!0,required:m&&!f,className:"\n                flex \n                gap-2 \n                rounded \n                bg-gray-100 \n                border \n                p-4 \n                w-full\n                ".concat("small"===b?"text-sm leading-[18px]":"text-base leading-[19px]"," \n                text-carbon-700\n                placeholder:text-carbon-700\n                border-carbon-300\n                items-center\n                appearance-none\n                -webkit-appearance: none\n                -moz-appearance: none\n              ")})})})]});let er=p||E&&W;return(0,r.jsxs)("div",{className:"flex flex-col gap-2 w-full".concat(v?" h-full justify-between":""),ref:H,children:[n&&(0,r.jsx)("div",{className:"flex items-center justify-between",children:(0,r.jsx)("label",{htmlFor:g,className:"".concat("small"===b?"text-sm":"text-base"," text-carbon-800 ").concat(m?'after:content-["*"]':""),children:n})}),(0,r.jsx)("div",{className:"flex gap-4 items-center",children:(0,r.jsxs)("div",{className:"relative text-carbon-700 w-full",ref:I,style:{position:"relative",zIndex:1},children:[(0,r.jsx)("input",{ref:_,id:g,value:F,name:c,placeholder:u,disabled:d,required:m,onChange:ee,onFocus:et,onBlur:en,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",className:"\n              flex \n              gap-2 \n              rounded \n              bg-white-50 \n              border \n              p-4 \n              w-full\n              ".concat("small"===b?"text-sm leading-[18px]":"text-base leading-[19px]"," \n              ").concat(d?"text-carbon-700":"text-carbon-800"," \n              ").concat(d?"placeholder-carbon-400":"placeholder:text-carbon-700"," \n              focus:border-tangaroa-950 \n              focus-visible:outline-none \n              ").concat(d||er?"":"border-carbon-300"," \n              ").concat(er?"border-error-600":""," \n              ").concat(d?"border-carbon-300":""," \n              items-center\n              appearance-none\n              -webkit-appearance: none\n              -moz-appearance: none\n            ")}),E&&W&&K&&(0,r.jsx)("span",{className:"text-error-600 text-sm mt-1",children:K})]})})]})})},88983:function(e,t,n){n.d(t,{j:function(){return a}});var r=n(2784),l=n(43919);function a(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,n]=(0,r.useState)(!1),[,a]=(0,r.useState)(0);(0,r.useEffect)(()=>{n(!0),(0,l.ju)()},[]),(0,r.useEffect)(()=>(0,l.Vo)(()=>a(e=>e+1)),[]);let{isLoaded:o,loadError:i}=(0,l.lG)();return{isLoaded:!!e&&!!(o&&t),loadError:e?i:null}}}}]);

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.