PageSourceSearch

https://rivian.com/_next/static/chunks/3303-594384203c882fe1.js

js rivian.com collected 2026-10-02 02:17:21 UTC 8,245 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3303],{70747:function(e,t,n){n.d(t,{z:function(){return d},W:function(){return a}});var r=n(46211),i=n(85893),o=n(67294),l=n(29790),s=n(65801),u=function(e){var t=e.color;return(0,i.jsx)(s.Z,(0,r.Zj)({variant:"indeterminate",color:t},e))},c=["isLoading","children","variant","disabled","startIcon","onClick","color"],a={CONTAINED:"contained",OUTLINED:"outlined",TEXT:"text"},f=(0,o.forwardRef)(function(e,t){var n=e.isLoading,o=void 0!==n&&n,s=e.children,f=e.variant,d=void 0===f?a.CONTAINED:f,h=e.disabled,p=void 0!==h&&h,m=e.startIcon,v=e.onClick,E=e.color,y=(0,r.Kd)(e,c),g=o?(0,i.jsx)(u,{size:12,variant:"indeterminate",color:"inherit"}):m;return(0,i.jsx)(l.Z,(0,r.Zj)((0,r.Zj)({},y),{},{variant:d,startIcon:g,"aria-busy":o,color:E,disabled:p||o,"aria-disabled":p||o,onClick:function(e){!o&&v&&v(e)},ref:t,children:void 0===s?null:s}))}),d=f;d.Outlined=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(f,(0,r.Zj)((0,r.Zj)({},e),{},{variant:a.OUTLINED,ref:t}))}),d.Text=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(f,(0,r.Zj)((0,r.Zj)({},e),{},{variant:a.TEXT,ref:t}))}),d.Contained=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(f,(0,r.Zj)((0,r.Zj)({},e),{},{variant:a.CONTAINED,ref:t}))})},61465:function(e,t,n){n.d(t,{g7:function(){return o}});var r=n(87462),i=n(67294);let o=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,s=i.Children.toArray(n),c=s.find(u);if(c){let e=c.props.children,n=s.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(l,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(l,(0,r.Z)({},o,{ref:t}),n)});o.displayName="Slot";let l=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});l.displayName="SlotClone";let s=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===s}},82703:function(e,t,n){n.d(t,{M:function(){return y}});var r=n(85893),i=n(67294),o=n(6337),l=n(4454),s=n(240),u=n(96681),c=n(16014);class a extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t}){let n=(0,i.useId)(),o=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:u}=l.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;let c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            top: ${i}px !important;
7            left: ${u}px !important;
8          }
9        `),()=>{document.head.removeChild(c)}},[t]),(0,r.jsx)(a,{isPresent:t,childRef:o,sizeRef:l,children:i.cloneElement(e,{ref:o})})}let d=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:a})=>{let d=(0,u.h)(h),p=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:l,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),c?[Math.random()]:[n]);return(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),i.useEffect(()=>{n||d.size||!o||o()},[n]),"popLayout"===a&&(e=(0,r.jsx)(f,{isPresent:n,children:e})),(0,r.jsx)(s.O.Provider,{value:m,children:e})};function h(){return new Map}var p=n(25364),m=n(58868),v=n(45487);let E=e=>e.key||"",y=({children:e,custom:t,initial:n=!0,onExitComplete:s,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:a="sync"})=>{var f;(0,v.k)(!u,"Replace exitBeforeEnter with mode='wait'");let h=(0,i.useContext)(p.p).forceRender||(0,o.N)()[0],y=(0,l.t)(),g=function(e){let t=[];
9return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),x=g,C=(0,i.useRef)(new Map).current,R=(0,i.useRef)(x),w=(0,i.useRef)(new Map).current,j=(0,i.useRef)(!0);if((0,m.L)(()=>{j.current=!1,function(e,t){e.forEach(e=>{let n=E(e);t.set(n,e)})}(g,w),R.current=x}),f=()=>{j.current=!0,w.clear(),C.clear()},(0,i.useEffect)(()=>()=>f(),[]),j.current)return(0,r.jsx)(r.Fragment,{children:x.map(e=>(0,r.jsx)(d,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:a,children:e},E(e)))});x=[...x];let b=R.current.map(E),I=g.map(E),k=b.length;for(let e=0;e<k;e++){let t=b[e];-1!==I.indexOf(t)||C.has(t)||C.set(t,void 0)}return"wait"===a&&C.size&&(x=[]),C.forEach((e,n)=>{if(-1!==I.indexOf(n))return;let i=w.get(n);if(!i)return;let o=b.indexOf(n),l=e;l||(l=(0,r.jsx)(d,{isPresent:!1,onExitComplete:()=>{C.delete(n);let e=Array.from(w.keys()).filter(e=>!I.includes(e));if(e.forEach(e=>w.delete(e)),R.current=g.filter(t=>{let r=E(t);return r===n||e.includes(r)}),!C.size){if(!1===y.current)return;h(),s&&s()}},custom:t,presenceAffectsLayout:c,mode:a,children:i},E(i)),C.set(n,l)),x.splice(o,0,l)}),x=x.map(e=>{let t=e.key;return C.has(t)?e:(0,r.jsx)(d,{isPresent:!0,presenceAffectsLayout:c,mode:a,children:e},E(e))}),(0,r.jsx)(r.Fragment,{children:C.size?x:x.map(e=>(0,i.cloneElement)(e))})}},6337:function(e,t,n){n.d(t,{N:function(){return l}});var r=n(67294),i=n(4454),o=n(26166);function l(){let e=(0,i.t)(),[t,n]=(0,r.useState)(0),l=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>o.Wi.postRender(l),[l]),t]}},4454:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(67294),i=n(58868);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},18357:function(e,t,n){n.d(t,{YD:function(){return c}});var r=n(67294),i=Object.defineProperty,o=new Map,l=new WeakMap,s=0,u=void 0;function c({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:c,triggerOnce:a,skip:f,initialInView:d,fallbackInView:h,onChange:p}={}){var m;let[v,E]=r.useState(null),y=r.useRef(p),[g,x]=r.useState({inView:!!d,entry:void 0});y.current=p,r.useEffect(()=>{let r;if(!f&&v)return r=function(e,t,n={},r=u){if(void 0===window.IntersectionObserver&&void 0!==r){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:c,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(l.has(n)||(s+=1,l.set(n,s.toString())),l.get(n)):"0":e[t]}`}).toString(),n=o.get(t);if(!n){let r;let i=new Map,l=new IntersectionObserver(t=>{t.forEach(t=>{var n;let o=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEach(e=>{e(o,t)})})},e);r=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:i},o.set(t,n)}return n}(n),f=a.get(e)||[];return a.has(e)||a.set(e,f),f.push(t),c.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(a.delete(e),c.unobserve(e)),0===a.size&&(c.disconnect(),o.delete(i))}}(v,(e,t)=>{x({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&a&&r&&(r(),r=void 0)},{root:c,rootMargin:i,threshold:e,trackVisibility:n,delay:t},h),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,v,c,i,a,f,n,h,t]);let C=null==(m=g.entry)?void 0:m.target,R=r.useRef(void 0);v||!C||a||f||R.current===C||(R.current=C,x({inView:!!d,entry:void 0}));let w=[E,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}r.Component}}]);

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.