1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9652],{96536:function(t,n,e){"use strict";e.d(n,{Z:function(){return l}});var r=e(67294),o=e(95637),a=e(25211),i=e(19521),c=i.default.div.withConfig({displayName:"PageLoaderstyles__Loader",componentId:"sc-2zbr5m-0"})(["display:",";visibility:",";flex-direction:column;align-items:center;justify-content:flex-start;position:fixed;top:0;width:100vw;height:100vh;background:white;z-index:80;overflow:hidden;h2{margin-top:56px;font-family:'Nissan Regular';font-weight:400;margin-bottom:40px;width:100%;text-align:center;@media screen and (min-width:960px){margin-top:105px;}}button{background:transparent !important;padding:0;color:black !important;width:100%;div{div{background:black;}}}"],function(t){return t.isLoading?"flex":"none"},function(t){return t.isLoading?"visible":"hidden"}),u=i.default.div.withConfig({displayName:"PageLoaderstyles__Container",componentId:"sc-2zbr5m-1"})(["margin-top:171px;"]),d=i.default.div.withConfig({displayName:"PageLoaderstyles__Placeholder",componentId:"sc-2zbr5m-2"})(["display:",";visibility:",";background:white;width:100%;z-index:99;height:105px;"],function(t){return t.isLoading?"flex":"none"},function(t){return t.isLoading?"visible":"hidden"}),s=e(85893),l=function(t){var n=t.className,e=t.isLoading,i=t.noTitle,l=t.placeholder,v=t.withScroll,f=void 0!==v&&v,h=(0,a.Z)().t;return(0,r.useEffect)(function(){return e&&!f?document.body.style.overflow="hidden":document.body.style.overflow="",function(){document.body.style.overflow=""}},[e,f]),(0,s.jsxs)(s.Fragment,{children:[(void 0===l||l)&&(0,s.jsx)(d,{isLoading:e}),(0,s.jsx)(c,{className:void 0===n?"":n,isLoading:e,children:(0,s.jsxs)(u,{children:[!(void 0!==i&&i)&&(0,s.jsx)(o.Text,{variant:"heading2",fontWeight:"400",label:h("loadingAdditionalText"),type:"h2"}),(0,s.jsx)(o.Button,{buttonType:"primary",label:h("loadingText"),isLoading:!0})]})})]})}},8604:function(t,n,e){"use strict";var r=e(11163),o=e(67294),a=e(37035),i=e(84521),c=e(57995),u=e(36999),d=e(87432),s=e.n(d),l=function(t){return"/"===t?"".concat(t,"buy/cars-for-sale"):t};n.Z=function(){var t=(0,r.useRouter)(),n=(0,o.useCallback)(function(n,e){return(0,a.Z)((0,i.Z)(function(t){return t.name===n}),(0,c.Z)([0,"locales",t.locale]),l,(0,u.Q2)({pathParams:null==e?void 0:e.pathParams,queryParams:null==e?void 0:e.queryParams}))(s())},[t.locale]);return(0,o.useMemo)(function(){return{paths:s(),getPath:n}},[n])}},96790:function(t,n,e){"use strict";var r=e(11163),o=e(67294),a=e(64188);n.Z=function(){var t=(0,r.useRouter)();return{navigateTo:(0,o.useCallback)(function(n,e){a.Z.info("useNavigation - navigating to ".concat(n," - options: ").concat(JSON.stringify(e))),n&&(e?t.push(n,void 0,e):t.push(n))},[t])}}},12461:function(t,n,e){"use strict";e.r(n);var r=e(50029),o=e(64687),a=e.n(o),i=e(67294),c=e(11163),u=e(88767),d=e(74792),s=e(91091),l=e(8604),v=e(96790),f=e(78326),h=e(70103),g=e(64188),p=e(96536),m=e(85893);n.default=function(){var t=(0,c.useRouter)(),n=(0,l.Z)().getPath,e=(0,v.Z)().navigateTo,o=t.locale,C=t.query,b=C.code,P=C.state,y=void 0===P?"":P,T=(0,u.useQuery)(["postLogin",o,b],function(){return(0,s.SV)(o)(b)},{enabled:!!b}),w=T.isSuccess,I=T.isError;return(0,i.useEffect)(function(){if(w||I){var n,o=JSON.parse((0,f.NV)(y)||"{}"),i=o.redirectUri,c=o.cartId;g.Z.info("CustomerPostLogin - cartId => ".concat(JSON.stringify(c)," - getItem('cart') => ").concat((0,h.rV)("cart")));var u=c||(0,h.rV)("cart"),s=(n=(0,r.Z)(a().mark(function n(){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g.Z.info("CustomerPostLogin - SET CUSTOMER TO CART => ".concat(u)),n.abrupt("return",(0,d.gL)(t.locale)(u));case 2:case"end":return n.stop()}},n)})),function(){return n.apply(this,arguments)}),l=!1;w&&u&&(l=!0,g.Z.info("CustomerPostLogin - cartId' => ".concat(u)),s().then(function(){g.Z.info("SET CUSTOMER TO CART DONE"),(0,h.cl)(h.$L),i&&(g.Z.info("CustomerPostLogin - Success - redirect Uri => ".concat(JSON.stringify(i))),e(i,{shallow:!0}))})),i&&!l&&(g.Z.info("CustomerPostLogin - redirect Uri => ".concat(JSON.stringify(i))),e(i,{shallow:!0})),g.Z.info("CustomerPostLogin - NOTHING HAPPEN -> isSuccess = ".concat(w," ->
1 isError = ").concat(I))}},[n,y,w,I,e,t.locale]),(0,m.jsx)(p.Z,{isLoading:!0})}},74792:function(t,n,e){"use strict";e.d(n,{EI:function(){return Z},FK:function(){return I},OY:function(){return P},Ru:function(){return T},Z5:function(){return g},_z:function(){return w},dv:function(){return h},fw:function(){return p},gL:function(){return y},lV:function(){return b},n7:function(){return O},oz:function(){return C},rH:function(){return m}});var r,o=e(50029),a=e(59499),i=e(64687),c=e.n(i),u=e(28401),d=e(64188),s=e(36999),l=e(26191);function v(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?v(Object(e),!0).forEach(function(n){(0,a.Z)(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.Z.info("Cart-service - getCart - cartId => ".concat(e)),(0,u.U2)("cart",{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t)),queryParams:{cartId:e}})}},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(e){var r=e.vin,o=e.dealerId,a=e.hasPromoAllowed,i=e.customerGroup,c=e.usePricesWithoutVAT,l=e.totalAvailableLocations,v=e.modelCode;return d.Z.info("Cart-service - addCart - vin => ".concat(r," / dealerId => ").concat(o," / hasPromoAllowed => ").concat(a," / customerGroup => ").concat(i," / usePricesWithoutVAT => ").concat(c," / totalAvailableLocations => ").concat(l," / modelCode => ").concat(v)),(0,u.v_)("cart.add",f(f({vin:r,dealerId:o,hasPromoAllowed:a,customerGroup:i,usePricesWithoutVAT:c},void 0!==l?{totalAvailableLocations:l}:{}),{},{modelCode:v}),{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var n;return d.Z.info("Cart-service - addCart - CATCH => ".concat(t)),null!==(n=null==t?void 0:t.response)&&void 0!==n?n:void 0})}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(e){var r=e.sku,o=e.hasPromoAllowed,a=e.customerGroup,i=e.usePricesWithoutVAT,c=e.totalAvailableLocations,l=e.modelCode;return d.Z.info("Cart-service - addCart - vin => ".concat(r," / hasPromoAllowed => ").concat(o," / customerGroup => ").concat(a," / usePricesWithoutVAT => ").concat(i," / totalAvailableLocations => ").concat(c," / modelCode => ").concat(l)),(0,u.v_)("cart.sku.add",f(f({sku:r,hasPromoAllowed:o,customerGroup:a,usePricesWithoutVAT:i},void 0!==c?{totalAvailableLocations:c}:{}),{},{modelCode:l}),{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var n;return d.Z.info("Cart-service - addCartBySku - CATCH => ".concat(t)),null!==(n=null==t?void 0:t.response)&&void 0!==n?n:void 0})}},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(e,r,o,a,i,c,d){return(0,u.v_)("cart.add.bto",f(f(f(f({modelCode:e,hash:r,customerGroup:o},a&&{priceType:a}),i&&{choicePriceType:i}),c&&{offerPriceType:c}),d&&{discountPriceType:d}),{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))})}},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.gz)("cart.financing.quote",r,{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t)),queryParams:{cartId:e}})}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return(0,u.gz)("cart.financing.method",r,{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t)),queryParams:{cartId:e}})}},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return(0,u.gz)("cart.financing.tradein",r,{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t)),queryParams:{cartId:e}})}},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.Z.info("Cart-service - addCustomerToCart - cartId => ".concat(e)),(0,u.v_)("cart.customer",{cartId:e},{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))})}},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return d.Z.info("Cart-service - addDealerToCart - cartId => ".concat(e," / dealerId => ").concat(r," ")),(0,u.v_)("cart.dealer.bto",{cartId:e,dealerId:r},{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var n;return d.Z.info("Cart-dealer - addDealerToCart - CATCH => ".concat(t)),null!==(n=null==t?void 0:t.response)&&void 0!==n?n:void 0})}},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return d.Z.info("Cart-service - updateDealerToCart - cartId => ".concat(e," / dealerId => ").concat(r," / vin => ").concat(o)),(0,u.gz)("cart.dealer.update",{dealerId:r,vin:o},{locale:t,debugId:n,pathParams:f({cartId:e},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var n;return d.Z.info("Cart-dealer - updateDealerToCart - CATCH => ".concat(t)),null!==(n=null==t?void 0:t.response)&&void 0!==n?n:void 0})}},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return d.Z.info("Cart-service - addOptionsToCart - payload => ".concat(JSON.stringify(n))),(0,u.v_)("cart",n,{locale:t,pathParams:f({},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var e,r,o;return d.Z.info("Cart-service - addOptionsToCart - CATCH - payload => ".concat(JSON.stringify(n)," / event => ").concat(t)),null!=t&&t.response?{statusCode:null==t||null===(e=t.response)||void 0===e?void 0:e.status,cartWithConstraints:(null==t||null===(r=t.response)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.statusCode)==="422"?(0,l.Z)(null==t||null===(o=t.response)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.message):void 0}:void 0})},Z=(r=(0,o.Z)(c().mark(function t(){var n,e,r,o,a,i=arguments;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:"",e=i.length>1&&void 0!==i[1]?i[1]:"",r=i.length>2?i[2]:void 0,o=i.length>3?i[3]:void 0,d.Z.info("Cart-service - updateBillingAddressToCart - payload => ".concat(JSON.stringify(r))),t.prev=5,t.next=8,(0,u.v_)("cart.billing-address",r,{locale:n,pathParams:f(f({},(0,s.B1)(n)),{},{cartId:e})},o||{});case 8:return a=t.sent,t.abrupt("return",a);case 12:return t.prev=12,t.t0=t.catch(5),d.Z.info("Cart-service - updateBillingAddressToCart - CATCH - payload => ".concat(JSON.stringify(r)," / event => ").concat(t.t0)),t.abrupt("return",null===t.t0||void 0===t.t0?void 0:t.t0.response);case 16:case"end":return t.stop()}},t,null,[[5,12]])})),function(){return r.apply(this,arguments)}),O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(e,r,o){return d.Z.info("Cart-service - actionProductCartAccessories - action => ".concat(e," / sku => ").concat(r)),(0,u.v_)("cart.accessories.add",{action:e,sku:r,cartId:o},{locale:t,debugId:n,pathParams:f({},(0,s.B1)(t))}).then(function(t){return t}).catch(function(t){var n;return d.Z.info("Cart-service - actionProductCartAccessories - CATCH => ".concat(t)),null!==(n=null==t?void 0:t.response)&&void 0!==n?n:void 0})}}},25050:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/post-login/openidconnect/redirect",function(){return e(12461)}])}},function(t){t.O(0,[2888,9774,179],function(){return t(t.s=25050)}),_N_E=t.O()}]);
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.