PageSourceSearch

https://www.ferrarionissan.com/wp-content/plugins/pm-motors-plugin/modules/core/js/pm-motors-core.js?ver=1.0.4

js ferrarionissan.com collected 2026-10-08 12:11:40 UTC 4,233 bytes, 123 lines download raw bytes

1(function($) {
2    function safeInit(name, fn) {
3        try {
4            fn();
5        } catch(e) {
6            console.error('[PMM] ' + name + ' init failed:', e);
7        }
8    }
9
10    /**
11     * Master document.ready
12     */
13    $(function() {
14        safeInit('PMUtilities', function() { PMUtilities.init(); });
15
16        if ('VehicleSave' in window) {
17            safeInit('VehicleSave', function() { VehicleSave.init(); });
18        }
19
20        if ('VehicleComparison' in window) {
21            safeInit('VehicleComparison', function() { VehicleComparison.init(); });
22        }
23
24        if ('Showroom' in window) {
25            safeInit('Showroom', function() { Showroom.init(); });
26        }
27
28        if ('Coupons' in window) {
29            safeInit('Coupons', function() { Coupons.init(); });
30        }
31
32        if ('VehicleSearch' in window) {
33            safeInit('VehicleSearch', function() { VehicleSearch.init('pmm-inv-quick-search'); });
34        }
35
36        if ('QuickSearch' in window) {
37            safeInit('QuickSearch', function() { QuickSearch.init(); });
38        }
39
40        if ('VDP' in window) {
41            safeInit('VDP', function() {
42                (function wait(i) { //try 100 times because with fb campaings links it changes execution times
43                    if ((typeof store !== 'undefined' && store) || i > 100) VDP.init();
44                    else setTimeout(() => wait(i + 1), 50);
45                })(0);
46            });
47        }
48
49        if ('VLP' in window) {
50            safeInit('VLP', function() { VLP.init(); });
51        }
52
53        if ('FeaturedVehicles' in window) {
54            safeInit('FeaturedVehicles', function() { FeaturedVehicles.init(); });
55        }
56
57        if ('IncentivesModal' in window) {
58            safeInit('IncentivesModal', function() { IncentivesModal.init(); });
59        }
60
61        if ('GlobalSearch' in window) {
62            safeInit('GlobalSearch', function() { GlobalSearch.init(); });
63        }
64
65        if ('DataLayer' in window) {
66            safeInit('DataLayer', function() {
67                if (DataLayer.default) {
68                    DataLayer = DataLayer.default;
69                }
70                DataLayer.init();
71            });
72        }
73
74        if ('FinanceForm' in window) {
75            safeInit('FinanceForm', function() { FinanceForm.init(); });
76        }
77        if ('ContactUsForm' in window) {
78            safeInit('ContactUsForm', function() { ContactUsForm.init(); });
79        }
80        if ('PreOrderYourBikeForm' in window) {
81            safeInit('PreOrderYourBikeForm', function() { PreOrderYourBikeForm.init(); });
82        }
83        if ('BBDDForm' in window) {
84            safeInit('BBDDForm', function() { BBDDForm.init(); });
85        }
86        if ('LEVForm' in window) {
87            safeInit('LEVForm', function() { LEVForm.init(); });
88        }
89        if ('ShowroomForm' in window) {
90            safeInit('ShowroomForm', function() { ShowroomForm.init(); });
91        }
92        if ('CarfinderForm' in window) {
93            safeInit('CarfinderForm', function() { CarfinderForm.init(); });
94        }
95        if ('OrderForm' in window) {
96            safeInit('OrderForm', function() { OrderForm.init(); });
97        }
98        if ('PmGforms' in window) {
99            // PmGforms = PmGforms.default;
100            safeInit('PmGforms', function() { PmGforms.init(); });
101        }
102
103        if ('Incentives' in window) {
104            safeInit('Incentives', function() { Incentives.init(); });
105        }
106
107        if ('PmTwilioForm' in window) {
108            safeInit('PmTwilioForm', function() { PmTwilioForm.init(); });
109        }
110        if ('PreorderPolarisForm' in window) {
111            safeInit('PreorderPolarisForm', function() { PreorderPolarisForm.init(); });
112        }
113        if ('PreorderIMCScoutSixtyForm' in window) {
114            safeInit('PreorderIMCScoutSixtyForm', function() { PreorderIMCScoutSixtyForm.init(); });
115        }
116        if ('PreorderSlgForm' in window) {
117            safeInit('PreorderSlgForm', function() { PreorderSlgForm.init(); });
118        }
119        if ('PreorderIMCPowerplusForm' in window) {
120            safeInit('PreorderIMCPowerplusForm', function() { PreorderIMCPowerplusForm.init(
120); });
121        }
122    });
123})(jQuery);

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.