PageSourceSearch

https://shift.com/_next/static/chunks/2451.85556bd1b3729d5c.js

js shift.com collected 2026-10-02 07:33:16 UTC 2,083 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2451],{82451:(t,e,n)=>{n.r(e),n.d(e,{default:()=>p,useAsync:()=>A});var r=n(99410),u=n(55729),i=n(6985),o=n(38249),a=n(13779),s=n(66177),c=n(82384),f=n(78458),d=n(79720),v=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function A(t){var e=t.defaultOptions,n=void 0!==e&&e,r=t.cacheOptions,i=void 0!==r&&r,o=t.loadOptions;t.options;var A=t.isLoading,p=t.onInputChange,l=t.filterOption,h=(0,f.A)(t,v),S=h.inputValue,O=(0,u.useRef)(void 0),C=(0,u.useRef)(!1),g=(0,u.useState)(Array.isArray(n)?n:void 0),k=(0,c.A)(g,2),y=k[0],E=k[1],b=(0,u.useState)(void 0!==S?S:""),L=(0,c.A)(b,2),_=L[0],w=L[1],I=(0,u.useState)(!0===n),R=(0,c.A)(I,2),N=R[0],m=R[1],V=(0,u.useState)(void 0),j=(0,c.A)(V,2),q=j[0],x=j[1],z=(0,u.useState)([]),B=(0,c.A)(z,2),D=B[0],F=B[1],G=(0,u.useState)(!1),H=(0,c.A)(G,2),J=H[0],K=H[1],M=(0,u.useState)({}),P=(0,c.A)(M,2),Q=P[0],T=P[1],U=(0,u.useState)(void 0),W=(0,c.A)(U,2),X=W[0],Y=W[1],Z=(0,u.useState)(void 0),$=(0,c.A)(Z,2),tt=$[0],te=$[1];i!==tt&&(T({}),te(i)),n!==X&&(E(Array.isArray(n)?n:void 0),Y(n)),(0,u.useEffect)(function(){return C.current=!0,function(){C.current=!1}},[]);var tn=(0,u.useCallback)(function(t,e){if(!o)return e();var n=o(t,e);n&&"function"==typeof n.then&&n.then(e,function(){return e()})},[o]);(0,u.useEffect)(function(){!0===n&&tn(_,function(t){C.current&&(E(t||[]),m(!!O.current))})},[]);var tr=(0,u.useCallback)(function(t,e){var n=(0,d.L)(t,e,p);if(!n){O.current=void 0,w(""),x(""),F([]),m(!1),K(!1);return}if(i&&Q[n])w(n),x(n),F(Q[n]),m(!1),K(!1);else{var r=O.current={};w(n),m(!0),K(!q),tn(n,function(t){C&&r===O.current&&(O.current=void 0,m(!1),x(n),F(t||[]),K(!1),T(t?(0,s.A)((0,s.A)({},Q),{},(0,a.A)({},n,t)):Q))})}},[i,tn,q,Q,p]),tu=J?[]:_&&q?D:y||[];return(0,s.A)((0,s.A)({},h),{},{options:tu,isLoading:N||void 0!==A&&A,onInputChange:tr,filterOption:void 0===l?null:l})}n(56760),n(95168);var p=(0,u.forwardRef)(function(t,e){var n=A(t),a=(0,o.u)(n);return u.createElement(i.S,(0,r.A)({ref:e},a))})}}]);

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.