PageSourceSearch

https://www.free2movecharge.com/etc.clientlibs/stellantis-whitelab…/resources/js/495.0d1edd375e933949724f.js

js free2movecharge.com collected 2026-10-01 14:18:47 UTC 6,293 bytes, 2 lines download raw bytes

1/*! stellantis-whitelabel 47.1.4.2026_0813_161042_0008850254 */
2(self.webpackChunkfloatinganchor=self.webpackChunkfloatinganchor||[]).push([[495],{495:(e,t,r)=>{"use strict";r.r(t),r.d(t,{mount:()=>y});var n=r(393),o=r.n(n),a=r(645);var s=r(216),l=r.n(s),i=r(841),c=r.n(i);const p=(e,t)=>{const[r,o]=(0,n.useState)(!0),[a,s]=(0,n.useState)(null),[l,i]=(0,n.useState)(!1),c=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{i(!0)},[]),(0,n.useEffect)(()=>{if("undefined"==typeof window||!l)return;const r=document.querySelector(e);if(!r)return;const a=document.querySelectorAll(t);if(0===a.length)return;let i=null;const p=()=>{i&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{const e=r.getBoundingClientRect();let t=null;a.forEach(r=>{const n=r.getBoundingClientRect();e.bottom>n.top&&e.top<n.bottom&&(t=r)});const l=!t;c.current!==l&&(c.current=l,(0,n.startTransition)(()=>{o(l)})),(0,n.startTransition)(()=>{s(t)})})};window.addEventListener("scroll",p,{passive:!0});const u=new ResizeObserver(p);return u.observe(r),a.forEach(e=>u.observe(e)),()=>{i&&cancelAnimationFrame(i),window.removeEventListener("scroll",p),u.disconnect()}},[e,t,l]),[r,a]};class u extends n.Component{state={error:"",errorInfo:"",hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t}),this.setState({errorInfo:t})}render(){return this.state.hasError?this.props.fallBack||null:this.props.children}}u.propTypes={children:l().oneOfType([l().object,l().array]).isRequired,fallBack:l().oneOf([l().string,l().element])};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}const h=((e,t=o().createElement("div",null,"Loading..."))=>{const r=o().lazy(e);return e=>o().createElement(u,null,o().createElement(n.Suspense,{fallback:t},o().createElement(r,e)))})(()=>r.e(53).then(r.t.bind(r,53,23)),o().createElement("span",null)),d=".wl-floatinganchor-wrapper",w=e=>{const{theme:t="light",componentId:r,cta:a}=e,s=(0,n.useRef)(null),[l]=p(".wl-floatinganchor-wrapper--container",'[data-app-wl="WlLightConfigurator"]'),i=()=>{const e=document?.querySelector(d),t=e.offsetTop-window.innerHeight,r=window.scrollY,n=s.current;r<10&&!n.classList.contains("wl-floatinganchor-wrapper--slide-in")?n.classList.add("wl-floatinganchor-wrapper--hide"):r>10&&r<t?(n.classList.remove("wl-floatinganchor-wrapper--slide-out","wl-floatinganchor-wrapper--hide"),n.classList.add("wl-floatinganchor-wrapper--show","wl-floatinganchor-wrapper--slide-in")):r<10&&r<t&&(n.classList.remove("wl-floatinganchor-wrapper--slide-in","wl-floatinganchor-wrapper--show"),n.classList.add("wl-floatinganchor-wrapper--slide-out","wl-floatinganchor-wrapper--hide")),r>t?(n.classList.remove("wl-floatinganchor-wrapper--fixed"),n.classList.add("wl-floatinganchor-wrapper--absolute")):r<t&&(n.classList.remove("wl-floatinganchor-wrapper--absolute"),n.classList.add("wl-floatinganchor-wrapper--fixed"))};(0,n.useEffect)(()=>(i(),window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[]);const u=e=>t=>{"_self"===e?.target&&0===e?.href?.length&&(t.preventDefault(),window.scrollTo({top:document?.querySelector(d).offsetTop,behavior:"smooth"}))};return o().createElement("div",{className:"wl-floatinganchor-wrapper","data-theme":t,id:r},o().createElement("div",{className:c()("wl-floatinganchor-wrapper--container wl-floatinganchor-wrapper--fixed",{"wl-floatinganchor-wrapper--hidden":!l,"wl-floatinganchor-wrapper--multiple-cta":Array.isArray(a)&&a.length>1,"wl-floatinganchor-wrapper--cta-array__hide-mobile":!(!Array.isArray(a)||a.length<=1)&&a.some(e=>e.hideOnMobile)}),ref:s},(()=>{if(!a)return null;const e=(e,r)=>o().createElement(h,f({key:e.ctaText+r,action:u(e),theme:t},e));return Array.isArray(a)?a.map(e):e(a,0)})()))};w.propTypes={componentId:l().string,theme:l().string,cta:l().oneOfType([l().array,l().object])};const g=w,m="FloatingAnchor",y=(e,t={})=>{const n=e.hasAttribute("data-wl-ssr");
2if(n&&"true"===e.getAttribute("data-wl-ssr")){e.querySelectorAll("[data-ssr-lazy-wl]").forEach(e=>{const t="start"===e.getAttribute("data-ssr-lazy-wl")?"$":"/$",r=document.createComment(t);e.parentNode.insertBefore(r,e),e.remove()});const n=()=>a.hydrateRoot(e,o().createElement(g,t));return void r.e(53).then(r.t.bind(r,53,23)).then(n).catch(e=>{console.error(`Failed to preload WlButton for ${m}: ${e.message}`),n()})}n||(e.style.visibility="hidden",e.style.height=getComputedStyle(e).height,r.e(539).then(r.t.bind(r,539,23)).catch(e=>console.error(`Failed to load styles for ${m}: ${e.message}`)).finally(()=>{e.style.removeProperty("visibility"),e.style.removeProperty("height")})),a.createRoot(e).render(o().createElement(g,t))}},841:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},459:(e,t,r)=>{"use strict";var n=r(704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,s){if(s!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},216:(e,t,r)=>{e.exports=r(459)()},704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},645:(e,t,r)=>{"use strict";var n=r(512);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot}}]);

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.