1/*! stellantis_d2_core 1.44.12 202609100705 */ 2"use strict";(self.webpackChunkstellantis_d2_library=self.webpackChunkstellantis_d2_library||[]).push([["StickyBar"],{3734:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(3059),i=r.n(n),a=r(5556),o=r.n(a),c=r(2485),l=r.n(c),s=r(536),u=r(5564);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function f(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){return y=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},y.apply(null,arguments)}function p(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return c}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var k=function(e){var t=e.trimName,r=e.anchorlinks,a=e.priceItems,o=e.tertiaryCTAs,c=e.secondaryCTA,m=e.primaryCTA,p=e.isPriceItemAlignLeft,d=e.isPriceItemFullWidth,h=e.isBackgroundWhite,g=e.isCTAHalfWidthMobile,k=e.isStroke,w=v((0,n.useState)(!1),2),A=w[0],E=w[1],O=(0,n.useRef)(null);(0,n.useEffect)(function(){var e=function(){var e,t=null===(e=O.current)||void 0===e?void 0:e.offsetHeight,r=document.querySelector("body");r&&t&&(r.style.paddingBottom="".concat(t-1,"px")),E(window.screen.width<992)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]);var S=r.map(function(e,t){var r=b(b({},e),{},{priority:""}),n=e.ctaText,a="".concat(n,"_").concat(t);return i().createElement("div",{key:a,className:l()("anchor-link")},i().createElement(s.A,y({className:l()("cvLink","cvTextlinkmedium")},r)))}),j=a.map(function(e,t){var r=e.text,n=e.link,a=e.fontStyle,o=b(b({},n),{},{priority:""}),c="".concat(r,"_").concat(t);return i().createElement("div",{key:c,className:l()("price-item")},r&&i().createElement("div",{className:l()("price-item-text",a)},(0,u.A)(r)),n.ctaText&&i().createElement("div",{className:l()("cvBodySinteractive","price-item-link")},i().createElement(s.A,y({className:l()("cvLink")},o))))}),T=o.map(function(e,t){var r=b(b({},e),{},{priority:"tertiary"}),n=e.ctaText,a="".concat(n,"_").concat(t);return i().createElement("div",{key:a,className:l()("tertiary-link")},i().createElement(s.A,r))}),N=a.length%2&&!(p&&!A)&&!(d&&A);return N&&j.push.apply(j,f(T)),i().createElement(i().Fragment,null,i().createElement("div",{ref:O,className:l()("cvStickybar-container","skm--white",{"skm--white-bg":h,"cvStickybar-stroke":k}),onFocus:function(){},onBlur:function(){}},t&&i().createElement("div",{className:l()("trimname-wrapper")},i().createElement("span",{className:l()("cvHeading5")},t)),r.length>0&&i().createElement("div",{className:l()("anchor-links-wrapper")},S),a.length>0&&i().createElement("div",{className:l()("price-items-wrapper",{"price-items-align-left":p,"price-item-full-width":d})},j),i().createElement("div",{className:l()("right-aligned-wrapper",{"right-aligned-wrapper--horizontal":g})},!N&&T.length>0&&i().createElement(i().Fragment,null,T),(null==c?void 0:c.ctaText)&&i().createElement("div",{className:l()("secondary-link")},i().createElement(s.A,y({priority:"secondary"},c))),(null==m?void 0:m.ctaText)&&i().createElement("div",{className:l()("primary-link","skm--white")},i().createElement(s.A,y({priority:"primary"},m))))))};k.propTypes={trimName:o().string,anchorlinks:o().arrayOf(o().object),priceItems:o().arrayOf(o().shape({text:o().string,link:o().object})),tertiaryCTAs:o().arrayOf(o().object),secondaryCTA:o().object,primaryCTA:o().object,isPriceItemAlignLeft:o().bool,isPriceItemFullWidth:o().bool,isBackgroun
2dWhite:o().bool,isCTAHalfWidthMobile:o().bool,isStroke:o().bool},k.defaultProps={trimName:"",anchorlinks:[],tertiaryCTAs:[],priceItems:[],isPriceItemAlignLeft:!1,isPriceItemFullWidth:!1,isBackgroundWhite:!1,isCTAHalfWidthMobile:!1,isStroke:!1};const w=k}}]);
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.