PageSourceSearch

https://www.insureshield.com/etc.clientlibs/ups-global/clientlibs/…-e04dbe7b63d337bd06e2b714de2e18fc-lc.min.js

js insureshield.com collected 2026-10-01 10:18:14 UTC 10,071 bytes, 296 lines download raw bytes

1/******/ (function() { // webpackBootstrap
2/******/ 	"use strict";
3/******/ 	var __webpack_modules__ = ({
4
5/***/ 5755:
6/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7
8
9// UNUSED EXPORTS: default
10
11;// ./src/main/webpack/static/common/analytics.js
12const analyticServices = (analyticsObject) =>{
13    if (typeof utag !== 'undefined') {
14        utag.link(analyticsObject);
15    }
16};
17
18/**
19 * Resolves a value from the Tealium data layer by key.
20 * @param {string} key 
21 * @returns {any}
22 */
23const resolveFromDataLayer = (key) => {
24    return (window.utag && window.utag.data && window.utag.data[key]) ||
25        (window.utag_data && window.utag_data[key]);
26};
27
28const getPageId = () => resolveFromDataLayer("page_id");
29
30const getPageName = () => resolveFromDataLayer("page_name");
31
32/**
33 * Checks whether the current page is an InsureShield or ParcelPro page.
34 */
35const isInsureShieldOrParcelPro = () => {
36    const pageName = (window.utag_data && window.utag_data.page_name) || "";
37    return pageName.startsWith("insureshield") || pageName.startsWith("parcelpro");
38};
39
40/**
41 * Derives a link's role (primary/secondary/inline#) from its classes/position,
42 * used to build the analytics link_id for CTAs across components.
43 * $scope is the container to look for sibling links in (defaults to the link's parent).
44 */
45const getLinkRole = ($link, $scope) => {
46    if ($link.hasClass('primary-btn')) {return "primary";}
47    if ($link.hasClass('secondary-btn')) {return "secondary";}
48    let $container = $scope || $link.parent();
49    let $siblingLinks = $container.find('a').not('.primary-btn,.secondary-btn');
50    return "inline" + ($siblingLinks.index($link) + 1);
51};
52
53/* harmony default export */ var analytics = (analyticServices);
54
55;// ./src/main/webpack/static/common/base-component.js
56/* provided dependency */ var $ = __webpack_require__(4692);
57//import AnalyticsService from '../../../clientlib-global/scripts/services/analytics-service';
58
59
60/**
61 * Initialize each component.
62 */
63const registerComponent = (selector, ComponentClass) => {
64
65	/** Callback method for Ready function */
66	const callback = ($domNodes, analyticServices) => {
67		/** Services */
68		//const analyticsService = new AnalyticsService();
69
70		/*Init*/
71		$.each($domNodes, (index, $domElement) => {
72			if ($($domElement).data('dom-binding') !== true) {
73				new ComponentClass($($domElement), analyticServices);
74
75				/** Flag created for determination for DOM nodes and method binding */
76				$($domElement).attr('data-dom-binding', true);
77			}
78		});
79	};
80
81	const ready = (callbackFunc) => {
82		$(function () {
83			const $domNodes = $(document).find(`[data-module=${selector}]`);
84
85			if (!$domNodes.length) {
86				return;
87			} else {
88				callbackFunc($domNodes, analytics);
89			}
90		});
91	};
92
93	ready(callback);
94};
95
96/* harmony default export */ var base_component = (registerComponent);
97
98;// ./src/main/webpack/static/components/cta-link/cta-link.comp.js
99/* provided dependency */ var cta_link_comp_$ = __webpack_require__(4692);
100let uniqueLinkUrl = cta_link_comp_$(".uniqueLink").val() + ".uniqueLinkFeature.json";
101const obj = { ctaPagePath: cta_link_comp_$(".pagePath").val() };
102if (cta_link_comp_$(".uniqueLinkFeature").length) {
103	cta_link_comp_$.ajax({
104		url: uniqueLinkUrl,
105		dataType: "text",
106		type: "POST",
107		data: obj,
108		processdata: false,
109		success: function (response) {
110			if (response !== "") { cta_link_comp_$(".uniqueLinkFeature a.cta-link__action-link.primary-btn").attr("href", response); }
111			else {
112				cta_link_comp_$(".uniqueLinkFeature").hide();
113			}
114		},
115		error: function () {
116			cta_link_comp_$(".uniqueLinkFeature").hide();
117		}
118	});
119}
120
121;
122const NAMESPACE = "cta-link";
123
124class CtaLink {
125	constructor($domElement, analyticServices) {
126		this.$domElement = $domElement;
127		this.cacheElements(this.$domElement);
128		this.anchorAnalytics(analyticServices);
129	}
130
131	cacheElements($domElement) {
132		this.$ctaLinks = cta_link_comp_$(".cta-link__container a", $domElement);
133	}
134
135	anchorAnalytics(analyticServices) {
136		this.$ctaLinks.on('click', function (e) {
137			e.preventDefault();
138			this.analyticsObject = {
139				tealium_event: "component_engagement",
140				component_name: "CTA Link",
141				link_name: e.currentTarget.innerText,
142				link_type: new URL(e.currentTarget.href).host === window.location.host ? "custom" : "exit",
143				destination_url: e.currentTarget.href
144			};
145			analyticServices(this.analyticsObject);
146			let newTarget = e.currentTarget.target ? e.currentTarget.target : "_self";
147			window.open(e.currentTarget.href, newTarget, 'noopener,noreferrer');
148		});
149	}
150}
151
152base_component(NAMESPACE, CtaLink);
153
154
155
156
157
158/***/ })
159
160/******/ 	});
161/************************************************************************/
162/******/ 	// The module cache
163/******/ 	var __webpack_module_cache__ = {};
164/******/ 	
165/******/ 	// The require function
166/******/ 	function __webpack_require__(moduleId) {
167/******/ 		// Check if module is in cache
168/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
169/******/ 		if (cachedModule !== undefined) {
170/******/ 			return cachedModule.exports;
171/******/ 		}
172/******/ 		// Create a new module (and put it into the cache)
173/******/ 		var module = __webpack_module_cache__[moduleId] = {
174/******/ 			// no module.id needed
175/******/ 			// no module.loaded needed
176/******/ 			exports: {}
177/******/ 		};
178/******/ 	
179/******/ 		// Execute the module function
180/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
181/******/ 	
182/******/ 		// Return the exports of the module
183/******/ 		return module.exports;
184/******/ 	}
185/******/ 	
186/******/ 	// expose the modules object (__webpack_modules__)
187/******/ 	__webpack_require__.m = __webpack_modules__;
188/******/ 	
189/************************************************************************/
190/******/ 	/* webpack/runtime/chunk loaded */
191/******/ 	!function() {
192/******/ 		var deferred = [];
193/******/ 		__webpack_require__.O = function(result, chunkIds, fn) {
194/******/ 			if(chunkIds) {
195/******/ 				deferred.push([chunkIds, fn]);
196/******/ 				return;
197/******/ 			}
198/******/ 			for (var i = 0; i < deferred.length; i++) {
199/******/ 				var chunkIds = deferred[i][0];
200/******/ 				var fn = deferred[i][1];
201/******/ 				var fulfilled = true;
202/******/ 				for (var j = 0; j < chunkIds.length; j++) {
203/******/ 					if (__webpack_require__.O.j(chunkIds[j])) {
204/******/ 						chunkIds.splice(j--, 1);
205/******/ 					} else {
206/******/ 						fulfilled = false;
207/******/ 					}
208/******/ 				}
209/******/ 				if(fulfilled) {
210/******/ 					deferred.splice(i--, 1)
211/******/ 					var r = fn();
212/******/ 					if (r !== undefined) result = r;
213/******/ 				}
214/******/ 			}
215/******/ 			return result;
216/******/ 		};
217/******/ 	}();
218/******/ 	
219/******/ 	/* webpack/runtime/global */
220/******/ 	__webpack_require__.g = (function() {
221/******/ 		if (typeof globalThis === 'object') return globalThis;
222/******/ 		try {
223/******/ 			return this || new Function('return this')();
224/******/ 		} catch (e) {
225/******/ 			if (typeof window === 'object') return window;
226/******/ 		}
227/******/ 	})();
228/******/ 	
229/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
230/******/ 	__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
231/******/ 	
232/******/ 	/* webpack/runtime/jsonp chunk loading */
233/******/ 	!function() {
234/******/ 		// no baseURI
235/******/ 		
236/******/ 		// object to store loaded and loading chunks
237/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
238/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
239/******/ 		var installedChunks = {
240/******/ 			340: 0
241/******/ 		};
242/******/ 		
243/******/ 		// no chunk on demand loading
244/******/ 		
245/******/ 		// no prefetching
246/******/ 		
247/******/ 		// no preloaded
248/******/ 		
249/******/ 		// no HMR
250/******/ 		
251/******/ 		// no HMR manifest
252/******/ 		
253/******/ 		__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };
254/******/ 		
255/******/ 		// install a JSONP callback for chunk loading
256/******/ 		var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
257/******/ 			var chunkIds = data[0];
258/******/ 			var moreModules = data[1];
259/******/ 			var runtime = data[2];
260/******/ 			// add "moreModules" to the modules object,
261/******/ 			// then flag all "chunkIds" as loaded and fire callback
262/******/ 			var moduleId, chunkId, i = 0;
263/******/ 			if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
264/******/ 				for(moduleId in moreModules) {
265/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
266/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
267/******/ 					}
268/******/ 				}
269/******/ 				if(runtime) var result = runtime(__webpack_require__);
270/******/ 			}
271/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
272/******/ 			for(;i < chunkIds.length; i++) {
273/******/ 				chunkId = chunkIds[i];
274/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
275/******/ 					installedChunks[chunkId][0]();
276/******/ 				}
277/******/ 				installedChunks[chunkId] = 0;
278/******/ 			}
279/******/ 			return __webpack_require__.O(result);
280/******/ 		}
281/******/ 		
282/******/ 		var chunkLoadingGlobal = self["webpackChunkaem_maven_archetype"] = self["webpackChunkaem_maven_archetype"] || [];
283/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
284/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
285/******/ 	}();
286/******/ 	
287/************************************************************************/
288/******/ 	
289/******/ 	// startup
290/******/ 	// Load entry module and return exports
291/******/ 	// This entry module depends on other loaded chunks and execution need to be delayed
292/******/ 	var __webpack_exports__ = __webpack_require__.O(undefined, [4223], function() { return __webpack_require__(5755); })
293/******/ 	__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
294/******/ 	
295/******/ })()
296;

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.