PageSourceSearch

https://www.camelbacklincoln.com/static/assets/libraries/ddc-js-api/1.12.9/loader.js

js camelbacklincoln.com collected 2026-10-04 07:59:32 UTC 3,796 bytes, 2 lines download raw bytes

1!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],d=!0,w=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;d=!1}else for(;!(d=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);d=!0);}catch(e){w=!0,o=e}finally{try{if(!d&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(w)throw o}}return s}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t,n)||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.")}()}const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;return new Promise((t,n)=>{const i=()=>window.DDC&&window.DDC.dataLayer&&Object.keys(window.DDC.dataLayer).length&&window.DDC.siteSettings&&Object.keys(window.DDC.siteSettings).length;if(i())return void t(!0);let o;const r=setTimeout(()=>{o&&clearInterval(o),n(new Error("I can't find this"))},e);o=setInterval(()=>{i()&&(clearTimeout(r),clearInterval(o),t(!0))},50)})},i=async()=>{const e=await(async()=>{await n();const e=window.DDC.dataLayer.page,t=e.pageInfo,i=e.attributes;return{siteId:window.DDC.siteSettings.siteId||"",pageName:t.pageName||"",layoutType:i.layoutType||"",locale:i.locale||""}})(),i=e.layoutType,o=e.pageName,r=e.siteId,a=e.locale,s=[`integrationType=${["api","api_compatible"].join(",")}`,`deviceType=${i}`,`pageAlias=${o}`,`siteId=${r}`,`locale=${a}`],d=(()=>{const e={};return window.location.search.substring(1).split("&").forEach(n=>{const i=t(n.split("="),2),o=i[0],r=i[1];o&&(e[decodeURIComponent(o)]=r?decodeURIComponent(r):"")}),e})();return"false"!==d._toggleBasePageCache&&"false"!==d._toggleWIAPICache||s.push(`r=${(new Date).getTime()}`),(async e=>{const t=await fetch(e);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})(`/api/ipp/config/services?${s.join("&")}`)};window.DDC=window.DDC||{},window.DDC.APIEvents={received:[],handleShown:e=>{e&&window.DDC.APIEvents.received.push(e)},start:()=>{window.addEventListener("wsInvListingShown",window.DDC.APIEvents.handleShown)},get:()=>window.DDC.APIEvents.received},window.DDC.APIEvents.start();const o=class e{constructor(){this.configsPromise=null}loadConfigs(){return window.DDC.PrivateAPI=window.DDC.PrivateAPI||{},window.DDC.PrivateAPI.integrationConfigs?window.DDC.PrivateAPI.integrationConfigs:(this.configsPromise=this._fetchConfigs(),window.DDC.PrivateAPI.integrationConfigs=this.configsPromise,this.configsPromise)}async _fetchConfigs(){try{await n();const e=await i();return window.DDC.PrivateAPI.integrationConfigs=e,window.dispatchEvent(new CustomEvent("WIAPIConfigsReady",{detail:e})),e}catch(e){throw window.DDC.PrivateAPI.integrationConfigs=null,e}}async isReady(){return!!window.DDC.API||new Promise(e=>{window.addEventListener("WIAPIReady",()=>{e(!0)})})}static async create(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default-integration-id";const n=new e;return await n.isReady(),new window.DDC.API(t)}startEarlyLoading(){return this.loadConfigs()}};window.DDC.APILoader=o,window.DDC.apiLoaderInstance=new o,window.DDC.apiLoaderInstance.startEarlyLoading(),window.dispatchEvent(new Event("WIAPILoaderReady"))});
2//# sourceMappingURL=loader.js.map

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.