PageSourceSearch

https://www.carplanner.com/_next/static/chunks/3070.97f053abfb52931f.js

js carplanner.com collected 2026-09-25 20:39:09 UTC 3,131 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3070,7553],{82065:function(e,t,r){r.d(t,{Kw:function(){return o},Zt:function(){return c}});var n=r(51377),l=r(4022);let o=e=>n.Z.get("strapi/landbots/".concat(e)),c=(e,t)=>n.Z.post("".concat(l.PT,"/").concat(e),{term:t})},63070:function(e,t,r){r.r(t);var n=r(59499),l=r(4730),o=r(67294),c=r(39653),s=r(20979),a=r(83292),u=r(59891),i=r(3382),p=r(75159),f=r(82065),b=r(85893);let d=["items","apiPath","onSelect","placeholder","notFoundText","withOverlay","disableFilter","resultFormatter"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let O=e=>{let{items:t,apiPath:r,onSelect:n,placeholder:h,notFoundText:O,withOverlay:y,disableFilter:g,resultFormatter:x}=e,m=(0,l.Z)(e,d),{isOpen:v,onOpen:w,onClose:P}=(0,c.qY)(),Z=(0,o.useRef)(null),k=(0,o.useRef)(null),{0:C,1:S}=(0,o.useState)([]),F=r?C:t,R=(0,o.useCallback)(async e=>{let{value:t}=e;if(r&&t.length>=z){let n=await (0,f.Zt)(r,t);n&&n.data&&(F=n.data.map(x||(e=>{let{name:t,code:r}=e;return{label:t,value:r}}))),S(F)}},[]),z=2,E=()=>{y&&(Z&&Z.current&&(Z.current.style.zIndex="1401"),w())},N=()=>{y&&(Z&&Z.current&&(Z.current.style.zIndex="1"),P())};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(s.BZ,j(j({size:"lg",display:"block",ref:Z,onFocus:E,borderColor:p.r.colors.borders.grey,className:"searchAutoComplete"},m),{},{children:[(0,b.jsxs)(u.Qc,{onChange:n,emptyState:(0,b.jsx)("em",{children:O||""}),filter:g?()=>!0:null,shouldRenderSuggestions:e=>e.length>=z,children:[(0,b.jsx)(u.Vp,{size:"lg",placeholder:h,borderRadius:"4px",className:"auto-complete-input",onChange(e){let{target:t}=e;return R(t)}}),(0,b.jsx)(u.Jm,{borderRadius:"4px",mt:"0",maxWidth:"100%",children:F.map(e=>(0,b.jsx)(u.Gb,{value:e.value,label:"".concat(e.label),textAlign:"left",children:"".concat(e.label.substring(0,70),"…")},"option-".concat(e.value)))})]}),(0,b.jsx)(s.xH,{children:(0,b.jsx)(i.W1,{color:"baseNeutral.400"})})]})),y&&(0,b.jsxs)(a.u_,{isOpen:v,onClose:N,trapFocus:!1,finalFocusRef:k,children:[(0,b.jsx)(a.ZA,{}),(0,b.jsx)(a.hz,{display:"none",top:"-1000px",left:"-1000px"})]})]})};t.default=O},4730:function(e,t,r){r.d(t,{Z:function(){return n}});function n(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}}}]);
2//# sourceMappingURL=3070.97f053abfb52931f.js.map

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.