PageSourceSearch

https://www.laboral.ai/_next/static/chunks/6396-f983c06afb4c313e.js

js laboral.ai collected 2026-10-05 12:11:46 UTC 10,009 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6396],{6396:function(e,t,r){r.d(t,{MT:function(){return a},QL:function(){return T},cW:function(){return h}});var n=r(55691),o=r(18064),i=r(36582),l=r(2265);let u=l.createContext(null),c=null;function a(e){let t,r,{children:n,contain:a,restoreFocus:d,autoFocus:s}=e,f=(0,l.useRef)(null),h=(0,l.useRef)(null),g=(0,l.useRef)([]),{parentNode:x}=(0,l.useContext)(u)||{},M=(0,l.useMemo)(()=>new y({scopeRef:g}),[g]);(0,i.b)(()=>{let e=x||L.root;if(L.getTreeNode(e.scopeRef)&&c&&!E(c,e.scopeRef)){let t=L.getTreeNode(c);t&&(e=t)}e.addChild(M),L.addNode(M)},[M,x]),(0,i.b)(()=>{let e=L.getTreeNode(g);e&&(e.contain=!!a)},[a]),(0,i.b)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.nextSibling,r=[];for(;t&&t!==h.current;)r.push(t),t=t.nextSibling;g.current=r},[n]),(0,i.b)(()=>{if(d||a)return;let e=g.current,t=(0,o.r)(e?e[0]:void 0),r=e=>{let t=e.target;b(t,g.current)?c=g:m(t)||(c=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[g,d,a]),t=(0,l.useRef)(),r=(0,l.useRef)(),(0,i.b)(()=>{let e=g.current;if(!a){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,o.r)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!p(g)||e.isComposing)return;let t=n.activeElement,r=g.current;if(!r||!b(t,r))return;let o=T(v(r),{tabbable:!0},r);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&N(i,!0)},l=e=>{(!c||E(c,g))&&b(e.target,g.current)?(c=g,t.current=e.target):p(g)&&!m(e.target,g)?t.current?t.current.focus():c&&c.current&&R(c.current):p(g)&&(t.current=e.target)},u=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(n.activeElement&&p(g)&&!m(n.activeElement,g)){if(c=g,n.body.contains(e.target)){var r;t.current=e.target,null===(r=t.current)||void 0===r||r.focus()}else c.current&&R(c.current)}})};return n.addEventListener("keydown",i,!1),n.addEventListener("focusin",l,!1),null==e||e.forEach(e=>e.addEventListener("focusin",l,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{n.removeEventListener("keydown",i,!1),n.removeEventListener("focusin",l,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",l,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",u,!1))}},[g,a]),(0,i.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,l.useRef)("undefined"!=typeof document?(0,o.r)(e.current?e.current[0]:void 0).activeElement:null);(0,i.b)(()=>{let n=e.current,i=(0,o.r)(n?n[0]:void 0);if(!t||r)return;let l=()=>{(!c||E(c,e))&&b(i.activeElement,e.current)&&(c=e)};return i.addEventListener("focusin",l,!1),null==n||n.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",l,!1))}},[e,r]),(0,i.b)(()=>{let n=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!p(e)||t.isComposing)return;let r=n.activeElement;if(!b(r,e.current))return;let o=L.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,l=T(n.body,{tabbable:!0});l.currentNode=r;let u=t.shiftKey?l.previousNode():l.nextNode();if(i&&n.body.contains(i)&&i!==n.body||(i=void 0,o.nodeToRestore=void 0),(!u||!b(u,e.current))&&i){l.currentNode=i;do u=t.shiftKey?l.previousNode():l.nextNode();while(b(u,e.current));(t.preventDefault(),t.stopPropagation(),u)?N(u,!0):m(i)?N(i,!0):r.blur()}};return r||n.addEventListener("keydown",i,!0),()=>{r||n.removeEventListener("keydown",i,!0)}},[e,t,r]),(0,i.b)(()=>{var r;let i=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let l=L.getTreeNode(e);if(l)return l.nodeToRestore=null!==(r=n.current)&&void 0!==r?r:void 0,()=>{let r=L.getTreeNode(e);if(!r)return;let n=r.nodeToRestore;if(t&&n&&(b(i.activeElement,e.current)||i.activeElement===i.body&&function(e){let t=L.getTreeNode(c);for(;t&&t.scopeRef!==e;
1){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=L.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){N(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&L.getTreeNode(r.scopeRef)){R(r.scopeRef.current,!0);return}r=r.parent}}})}}},[e,t])}(g,d,a),function(e,t){let r=l.useRef(t);(0,l.useEffect)(()=>{r.current&&(c=e,!b((0,o.r)(e.current?e.current[0]:void 0).activeElement,c.current)&&e.current&&R(e.current)),r.current=!1},[e])}(g,s),(0,l.useEffect)(()=>{let e=(0,o.r)(g.current?g.current[0]:void 0).activeElement,t=null;if(b(e,g.current)){for(let r of L.traverse())r.scopeRef&&b(e,r.scopeRef.current)&&(t=r);t===L.getTreeNode(g)&&(c=t.scopeRef)}},[g]),(0,i.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=L.getTreeNode(g))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(g===c||E(g,c))&&(!n||L.getTreeNode(n))&&(c=n),L.removeTreeNode(g)},[g]);let w=(0,l.useMemo)(()=>({focusNext(e={}){let t=g.current,{from:r,tabbable:n,wrap:i,accept:l}=e,u=r||(0,o.r)(t[0]).activeElement,c=t[0].previousElementSibling,a=T(v(t),{tabbable:n,accept:l},t);a.currentNode=b(u,t)?u:c;let d=a.nextNode();return!d&&i&&(a.currentNode=c,d=a.nextNode()),d&&N(d,!0),d},focusPrevious(e={}){let t=g.current,{from:r,tabbable:n,wrap:i,accept:l}=e,u=r||(0,o.r)(t[0]).activeElement,c=t[t.length-1].nextElementSibling,a=T(v(t),{tabbable:n,accept:l},t);a.currentNode=b(u,t)?u:c;let d=a.previousNode();return!d&&i&&(a.currentNode=c,d=a.previousNode()),d&&N(d,!0),d},focusFirst(e={}){let t=g.current,{tabbable:r,accept:n}=e,o=T(v(t),{tabbable:r,accept:n},t);o.currentNode=t[0].previousElementSibling;let i=o.nextNode();return i&&N(i,!0),i},focusLast(e={}){let t=g.current,{tabbable:r,accept:n}=e,o=T(v(t),{tabbable:r,accept:n},t);o.currentNode=t[t.length-1].nextElementSibling;let i=o.previousNode();return i&&N(i,!0),i}}),[]),C=(0,l.useMemo)(()=>({focusManager:w,parentNode:M}),[M,w]);return l.createElement(u.Provider,{value:C},l.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:f}),n,l.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:h}))}let d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],s=d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let f=d.join(':not([hidden]):not([tabindex="-1"]),');function v(e){return e[0].parentElement}function p(e){let t=L.getTreeNode(c);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function m(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of L.traverse(L.getTreeNode(t)))if(r&&b(e,r.current))return!0;return!1}function h(e){return m(e,c)}function E(e,t){var r;let n=null===(r=L.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function N(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,n.e)(e)}catch(e){}}function R(e,t=!0){let r=e[0].previousElementSibling,n=v(e),o=T(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();t&&!i&&((o=T(n=v(e),{tabbable:!1},e)).currentNode=r,i=o.nextNode()),N(i)}function T(e,t,r){let n=(null==t?void 0:t.tabbable)?f:s,i=(0,o.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,o.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i="none"!==r&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);
1i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||b(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class g{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let o=new y({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&b(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new g;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new y({scopeRef:null}),this.fastMap.set(null,this.root)}}class y{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let L=new g}}]);

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.