PageSourceSearch

https://www.free2movecharge.com/etc.clientlibs/stellantis-whitelab…/resources/js/272.b543b2f84842ef549533.js

js free2movecharge.com collected 2026-10-01 14:18:39 UTC 15,455 bytes, 2 lines download raw bytes

1/*! stellantis-whitelabel 47.1.4.2026_0813_161042_0008850254 */
2(self.webpackChunkkebabmenu=self.webpackChunkkebabmenu||[]).push([[272],{2404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mount:()=>q});var r=n(7393),o=n.n(r),s=n(4645);var a=n(216),i=n.n(a);const l=function(e,t,n="mousedown"){const o=n=>{e&&!e.contains(n.target)&&t(n)};(0,r.useEffect)(()=>("undefined"!=typeof window&&window.addEventListener(n,o),()=>{"undefined"!=typeof window&&window.removeEventListener(n,o)}),[e,t])},c=(e,t)=>{const[n,o]=(0,r.useState)(!0),[s,a]=(0,r.useState)(null),[i,l]=(0,r.useState)(!1),c=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{l(!0)},[]),(0,r.useEffect)(()=>{if("undefined"==typeof window||!i)return;const n=document.querySelector(e);if(!n)return;const s=document.querySelectorAll(t);if(0===s.length)return;let l=null;const u=()=>{l&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{const e=n.getBoundingClientRect();let t=null;s.forEach(n=>{const r=n.getBoundingClientRect();e.bottom>r.top&&e.top<r.bottom&&(t=n)});const i=!t;c.current!==i&&(c.current=i,(0,r.startTransition)(()=>{o(i)})),(0,r.startTransition)(()=>{a(t)})})};window.addEventListener("scroll",u,{passive:!0});const d=new ResizeObserver(u);return d.observe(n),s.forEach(e=>d.observe(e)),()=>{l&&cancelAnimationFrame(l),window.removeEventListener("scroll",u),d.disconnect()}},[e,t,i]),[n,s]};var u=n(9198);const d=({children:e,isOpen:t=!0})=>{const n=(0,r.useRef)(null),s=(0,r.useRef)(null),a=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{const e=n.current,r=s.current,o=a.current;if(!t)return void(r.style.opacity=0);const i=e.parentNode.getBoundingClientRect();document?.documentElement.clientHeight-i.y-e.clientHeight<0&&(r.classList.add("wl-kebab-custom-scrollbar__small"),e.classList.add("wl-kebab-wrapper--modal__small")),e.scrollHeight>e.clientHeight?r.style.opacity=1:r.style.opacity=0;const l=()=>{const t=e.scrollTop,n=e.scrollHeight-e.clientHeight,s=o.offsetHeight,a=t/n*(r.offsetHeight-s);u.ZP.to(o,{y:a,duration:.3})},c=t=>{const n=t.offsetY,o=e.scrollHeight-e.clientHeight,s=n/r.clientHeight*o;u.ZP.to(e,{scrollTop:s,duration:.3})};return e.addEventListener("scroll",l),r.addEventListener("click",c),()=>{e.removeEventListener("scroll",l),r.removeEventListener("click",c)}},[t]),o().createElement(o().Fragment,null,o().cloneElement(e,{ref:n}),o().createElement("div",{ref:s,className:"wl-kebab-custom-scrollbar"},o().createElement("div",{ref:a,className:"wl-kebab-custom-scrollbar-thumb"})))};d.propTypes={children:i().element.isRequired,isOpen:i().bool};const p=d;var m=n(841),h=n.n(m),g=n(3203),b=n(30),f=n(3993),w=n.n(f);const y=[],v=(()=>{const e=[];for(let t=0;t<256;t++)e[t]=(t<16?"0":"")+t.toString(16);return e})();const T=function e(t){t=t||"";const n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;let o=t+v[255&n]+v[n>>8&255]+v[n>>16&255]+v[n>>24&255]+"-"+v[255&r]+v[r>>8&255];return y.indexOf(o)>=0&&(o=e(t)),y.push(o),o};class E extends r.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}}E.propTypes={children:i().oneOfType([i().object,i().array]).isRequired,fallBack:i().oneOf([i().string,i().element])};const L=(e,t=o().createElement("div",null,"Loading..."))=>{const n=o().lazy(e);return e=>o().createElement(E,null,o().createElement(r.Suspense,{fallback:t},o().createElement(n,e)))};const O=function(e=764){const[t,n]=(0,r.useState)(window.innerWidth<=e);return(0,r.useEffect)(()=>{const t=()=>{(0,r.startTransition)(()=>{n(window.innerWidth<=e)})};return window.addEventListener("resize",t),t(),()=>{window.removeEventListener("resize",t)}},[window.innerWidth]),t},k=e=>t=>{const{id:n,...s}=t,a=(0,r.useMemo)(()=>{if("undefined"==typeof window||"undefined"==typeof document)return null;if(!n)return s;const e=document.getElementById("wl-tooltip-mapping");if(!e)return s;const t=e.getAttribute("data-props");if(!t)return s;const{tooltipsList:r=[]}=JSON.parse(t),o=r.find(e=>e.id===n);return o?{id:n,...s,...o}:s},[n,s]);return o().createElement(e,a)},I=({onOpen:e,onClose:t,delay:n=150,targetElementId:o})=>{const s=(0,r.useRef)(null),a=(0,r.useRef)(null),i=(0,r.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),l=(0,r.useCallback)(()=>{a.current&&(a.current.abort(),a.current=null)},[]);return{handleMouseEnter:(0,r.useCallback)(()=>{s.current?i():e()},[e,i]),handleMouseLeave:(0,r.useCallback)(()=>{l(),i();const e=new AbortController;a.current=e;const{signal:r}=e;s.current=setTimeout(()=>{s.current=null,t()},n);const c=document.getElementById(o);c&&(c.addEventListener("mouseenter",()=>{i()},{signal:r}),c.addEventListener("mouseleave",()=>{s.current=setTimeout(()=>{s.current=null,t()},n)},{signal:r}))},[t,n,o,l,i]),cleanup:(0,r.useCallback)(()=>{i(),l()},[i,l])}};const C=globalThis?.whitelabel?.stores?.__WL_TOOLTIP__||new class{constructor(e){if(globalThis.whitelabel??={},globalThis.whitelabel.stores??={},void 0!==globalThis.whitelabel.stores.__WL_TOOLTIP__)return globalThis.whitelabel.stores.__WL_TOOLTIP__;this.state=e,this.listeners=[],globalThis.whitelabel.stores.__WL_TOOLTIP__=this}getState(){return this.state}getTooltipNumber(e){return this.state.contentList.indexOf(e)+1||"i"}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}dispatch(e){this.state=this.reducer(this.state,e),this.listeners.forEac
2h(e=>e())}insertIntoContentList(e,t){if(!t||e.includes(t))return e;const n=document.querySelector(`span[data-tooltip-id-wl="${t}"]`),r=[...e],o=r.findIndex(e=>{const t=document.querySelector(`span[data-tooltip-id-wl="${e}"]`);return t&&n&&n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING});return-1===o?r.push(t):r.splice(o,0,t),r}getUpdatedVisibleTooltips(e,t,n){const r=e[t];if(r?.visible&&r?.triggerTooltipId===n){const n={...e};return delete n[t],n}return{[t]:{visible:!0,triggerTooltipId:n}}}reducer(e,t){switch(t.type){case"UPDATE_CONTENT_LIST":return{...e,contentList:this.insertIntoContentList(e.contentList,t.payload)};case"SHOW_TOOLTIP":{const{tooltipInfoId:n,triggerTooltipId:r}=t.payload;return{...e,visibleTooltips:this.getUpdatedVisibleTooltips(e.visibleTooltips,n,r)}}case"HIDE_TOOLTIP":{const{tooltipInfoId:n}=t.payload;if(!e.visibleTooltips[n])return e;const r={...e.visibleTooltips};return delete r[n],{...e,visibleTooltips:r}}default:return e}}}({contentList:[],visibleTooltips:{}});n(2135);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}const N=L(()=>n.e(53).then(n.t.bind(n,9053,23)),o().createElement("span",null)),$=L(()=>n.e(23).then(n.bind(n,4023)),o().createElement("span",null)),S=({id:e,icon:t,numbered:n,analytics:s,openOn:a,theme:i})=>{const l=(0,r.useRef)(null),c=(0,r.useRef)(T("wl-tooltip-trigger-")),u=O(),[d,p]=(0,r.useState)(),m="click"===(u?"click":a);(0,r.useEffect)(()=>{const t=C.subscribe(()=>{(0,r.startTransition)(()=>{p(C.getTooltipNumber(e))})}),o=l.current?.parentNode;return o&&(o.removeAttribute("style"),o.classList.remove("wlb-custom-display-none")),n&&C.dispatch({type:"UPDATE_CONTENT_LIST",payload:e}),l.current&&(l.current.setAttribute("data-tooltip-id-wl",e),l.current.setAttribute("data-trigger-id-wl",c.current)),()=>{t(),y()}},[e,n]);const g=()=>{C.dispatch({type:"SHOW_TOOLTIP",payload:{tooltipInfoId:e,triggerTooltipId:c.current}})},b=()=>{C.dispatch({type:"HIDE_TOOLTIP",payload:{tooltipInfoId:e}})},{handleMouseEnter:f,handleMouseLeave:w,cleanup:y}=I({onOpen:g,onClose:b,delay:150,targetElementId:e});return o().createElement("span",_({ref:l,className:"wl-tooltip-button-wrapper"},!m&&{onMouseEnter:f,onMouseLeave:w}),o().createElement(N,_({className:h()("wl-tooltip-button","wlb-size-body-regular"),tabIndex:0,nodeName:"button",wrapperNodeName:"span",iconRight:"",theme:"dark"===i?"light":"dark",ariaLabel:n?`tooltip-${e}`:"tooltip",ariaDescribedby:e,ariaExpanded:!1,ariaControls:e,analytics:s},!m&&{onFocus:g,onBlur:b},{action:m?g:void 0,textClassName:n?"wlb-size-body-regular":void 0}),n&&d?`(${d})`:o().createElement($,{size:"16",name:t||"wlb-icon-information-outline"})))};S.propTypes={id:i().string.isRequired,icon:i().string,analytics:i().object,theme:i().oneOf(["light","dark"]),numbered:i().bool,openOn:i().oneOf(["hover","click"])},S.defaultProps={icon:"wlb-icon-information-outline",numbered:!1,openOn:"click",theme:"dark"};const P=k(o().memo(S)),x=(e,t,n)=>{if(!e)return"";const r=e.replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&trade;/gi,"™").replace(/&reg;/gi,"®"),s={a:w().simpleTransform("a",{rel:"noopener noreferrer",target:"_blank"}),img:w().simpleTransform("img",{loading:"lazy"})};n&&"object"==typeof n&&Object.keys(n).forEach(e=>{const t=n[e];t&&"string"==typeof t&&(s[e]=(e,n)=>({tagName:e,attribs:{...n,class:n.class?`${n.class} ${t}`:t}}))});const a=t||{allowedTags:["p","b","i","em","strong","u","s","br","ul","ol","li","blockquote","code","pre","a","span","div","h1","h2","h3","h4","h5","h6","img","hr","sub","sup"],allowedAttributes:{a:["href","target","rel","name"],img:["src","alt","title","width","height"],span:["style","class","id","data-app-wl","data-props"],"*":["style","class","id"]},allowedStyles:{"*":{"text-align":[/^left$/,/^right$/,/^center$/,/^justify$/],"font-weight":[/^bold$/,/^\d+$/],"font-style":[/^italic$/],"text-decoration":[/^underline$/,/^line-through$/],color:[/^#[0-9A-Fa-f]+$/,/^rgb\((.*)\)$/],"background-color":[/^#[0-9A-Fa-f]+$/,/^rgb\((.*)\)$/],"font-size":[/^\d*(\.\d+)?(?:px|em|%)$/]}},allowedSchemes:["http","https","mailto"],transformTags:s,disallowedTagsMode:"discard",selfClosing:["img","br","hr"],nonTextTags:["style","script","textarea","noscript"]},i=w()(r,a),l={replace:e=>{if("tag"===e.type&&"span"===e.name&&e.attribs&&"WlTooltip"===e.attribs["data-app-wl"]&&e.attribs["data-props"])try{const t=JSON.parse(e.attribs["data-props"]);return o().createElement("span",(0,b.e_)(e.attribs),o().createElement(P,t))}catch(t){return console.error("Failed to parse data-props for WlTooltip:",t),e}}};return(0,b.ZP)(i,l)};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(null,arguments)}const B=({headingLevelTag:e="h2",headingText:t,headingTypography:n="",headingCustomClassname:r="",headingId:s=""})=>{const a=h()("wl-headingtext-wrapper",n&&n,r&&r);return o().createElement(e,R({className:a},s?{id:s}:{}),x(t))};B.propTypes={headingLevelTag:i().string,headingText:i().string.isRequired,headingTypography:i().string,headingCustomClassname:i().string,headingId:i().string};const A=B,M=(e,t="WlTooltip")=>{(0,r.useEffect)(()=>{const n=e.current;var r;n&&(r=n,null!==r?.closest('[data-wl-ssr="true"]'))&&window?.loadWLComponents?.(null,t,n)},[e,t])};function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}const W=L(()=>n.e(53).then(n.t.bind(n,9053,23))),j=({sections:e,closeButton:t,onCloseModal:n,componentId:s,isOpen:a})=>{const{ariaLabel:i=""}=t,l=t?.iconLeft?.length?t.iconLeft:"wlb-icon-close-x-thin",[c,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{u(!0)},[]);const d=o().createElement(p,{isOpen:a},o().createElement("div",{className:"wl-kebab-wrapper--modal"},t&&W&&o().createElement("div",{className:"wl-kebab-wrapper--modal__close"},o().createElement(W,H({},t,{iconLeft:l,action:e=>{n(),e?.preventDefault()},ariaLabel:i,ariaExpanded:"false"}))),e?.map((e,t)=>{const r=e?.authoredClassName?.length?e.authoredClassName:"wlb-size-heading-3",a=`${s}-section-${t}`,i=e?.headLineLevel||"h1",l=e?.subHeadLineLevel||"h2";return o().createElement(o().Fragment,{key:a},e.heading&&o().createElement(A,{headingText:e.heading,headingLevelTag:i,headingCustomClassname:r}),e.subheading&&o().createElement(A,{headingText:e.subheading,headingLevelTag:l,headingCustomClassname:"wlb-size-heading-7"}),o().createElement("div",{className:"wl-kebab-wrapper--modal__menuitems"},e.items?.map((e,r)=>{const a=`${s}-button-${t}-${r}`;if(e&&W)return o().createElement(W,H({key:a},e,{action:n,fullWidth:Boolean(!e.iconLeft)}),e?.ctaText)})))})));return c?o().createElement(g.ZP,{returnFocus:!0},d):d},z=e=>{const{menuButton:t,closeButton:n,sections:s,theme:a,componentId:i}=e,{ariaLabel:u=""}=t,[d]=c(".wl-kebab-wrapper",'[data-app-wl="WlLightConfigurator"]'),p=t?.iconLeft?.length?t.iconLeft:"wlb-icon-floating-menu",[m,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),f=(0,r.useRef)(!1);M(b,"WlTooltip"),(0,r.useEffect)(()=>{const e=e=>{"Escape"===e.key&&m&&(g(!1),e.stopPropagation())};return m&&(globalThis.addEventListener("keydown",e,!0),f.current=!0),!m&&f.current&&b.current?.querySelector(".wl-kebab-open-menu")?.focus(),()=>{globalThis.removeEventListener("keydown",e,!0)}},[m]),(0,r.useEffect)(()=>
2{if("undefined"==typeof window)return;const e=b?.current?.parentNode?.getBoundingClientRect();b.current&&(b.current.style.marginTop=`${e.y}px`);const t=()=>{if("mobile"===function(){if("undefined"==typeof navigator)return"desktop";const e=navigator.userAgent;return/Mobile|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"mobile":/Tablet|iPad/i.test(e)?"tablet":"desktop"}())return;const e=b?.current?.parentNode?.getBoundingClientRect();e?.y>=0&&b.current&&(b.current.style.marginTop=`${e.y}px`)};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),l(b.current,()=>g(!1));return o().createElement("div",{className:h()("wl-kebab-wrapper",{"wl-kebab-wrapper--hidden":!d}),ref:b},!m&&t&&W&&o().createElement(W,H({},t,{iconLeft:p,action:e=>{return t=e,t?.preventDefault(),void g(!m);var t},theme:a,ariaLabel:u,nodeName:"button",className:"wl-kebab-open-menu",ariaExpanded:"true",ariaHaspopup:"dialog"})),o().createElement("div",{className:h()({"wl-kebab-wrapper-modal-hidden":!m})},o().createElement(j,{sections:s,closeButton:n,onCloseModal:()=>g(!m),componentId:i,isOpen:m})))};z.propTypes={menuButton:i().object,closeButton:i().object,sections:i().array,theme:i().string,componentId:i().string},j.propTypes={sections:i().array,closeButton:i().object,onCloseModal:i().func,componentId:i().string,isOpen:i().bool};const F=z,q=(e,t={})=>{const r=e.hasAttribute("data-wl-ssr");if(r&&"true"===e.getAttribute("data-wl-ssr"))return e.querySelectorAll("[data-ssr-lazy-wl]").forEach(e=>{const t="start"===e.getAttribute("data-ssr-lazy-wl")?"$":"/$",n=document.createComment(t);e.parentNode.insertBefore(n,e),e.remove()}),void s.hydrateRoot(e,o().createElement(F,t));r||(e.style.visibility="hidden",e.style.height=getComputedStyle(e).height,n.e(539).then(n.t.bind(n,5539,23)).catch(e=>console.error(`Failed to load styles for KebabMenu: ${e.message}`)).then(()=>{e.style.removeProperty("visibility"),e.style.removeProperty("height")})),s.createRoot(e).render(o().createElement(F,t))}},5761:(e,t,n)=>{"use strict";n.r(t)},2135:(e,t,n)=>{var r=n(5761);"string"==typeof r&&(r=[[e.id,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(63)(r,o);r.locals&&(e.exports=r.locals)},7544:()=>{},9599:()=>{},2310:()=>{},3842:()=>{},5695:()=>{}}]);

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.