x_FinancingBannerPDP.min.js 503 B

1
  1. define(["knockout","jquery","ccLogger"],function(e,t,n){"use strict";var r="GenericWidget",i={},s=undefined,o={onLoad:function(n){s=n;var r=(new Date).getFullYear()-n.product().x_agno();n.showFinancing=e.observable(r<=6),t.Topic("OCC_SHOW_FINANCING").subscribe(function(e){n.showFinancing(e)})},beforeAppear:function(e){},financiarClickLink:function(e){t(".btn-car-financing")[t(".btn-car-financing").length-1].click()},addFullWidth:function(e){t("#region-"+e.name()).addClass("full-width")}};return o})