1 |
- (()=>{var t={51577:(t,e,r)=>{"use strict";r.r(e)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{function t(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var n,o,i;r(51577),n=jQuery,o=peace_of_mind_inline_components,i=window,n((function(){var r,a=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=t(e))){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var t=n.next();return l=t.done,t},e:function(t){u=!0,a=t},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw a}}}}(o);try{for(a.s();!(r=a.n()).done;){var l=r.value;l.target&&0===l.target.indexOf(".gallery-popup")?c(l):u(l)}}catch(t){a.e(t)}finally{a.f()}function u(t){switch(t.appendMode){case"append":return n(t.target).append(t.content);case"after":return n(t.content).insertAfter(t.target)}}function c(t){document.body.addEventListener("gallery:open",(function(){u(t)}))}var d,f=document.querySelector("[data-redbook-warranty-url]");if(f){var s=f.getAttribute("data-redbook-warranty-url");fetch(s).then((function(t){return t.ok?t.json():t.json().then((function(t){throw Error(t.error)}))})).then((function(t){!function(t){f.innerHTML=t.heading;var e=document.querySelector("[data-redbook-warranty-inline-placeholder]");e&&(e.innerHTML=t.inline)}(t)})).catch((function(t){!function(){var t=f.getAttribute("data-default-text");f.innerText=t;var e=document.querySelector("[data-redbook-warranty-inline-placeholder]");e&&(e.innerText=t)}(),console.log(t.message)}))}if(n('[data-toggle="tooltip"]').tooltip(),(d=document.querySelectorAll(".link-with-tooltip a"),function(t){if(Array.isArray(t))return e(t)}(d)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(d)||t(d)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(t){var e=t.nextElementSibling.getAttribute("data-original-title")?t.nextElementSibling.getAttribute("data-original-title"):"";t.setAttribute("aria-label",t.innerText+" "+e)})),document.dispatchEvent(new Event("csnPeaceOfMindLoaded")),i.optimizelyUtil){var p=document.querySelectorAll("[data-opm-peace-of-mind]");if(!p)return void console.warn("No item found with ".concat(selector));for(var y=function(){var t=(b=p[m]).getAttribute("data-opm-exp");if(!t)return"continue";i.optimizelyClient.isFeatureEnabled(t,i.optimizelyData.userId,i.optimizelyData.attributes);var e=b.getAttribute("data-opm-event")||"click",r=i.optimizelyUtil._buildObj(b.getAttribute("data-opm-data"));b.addEventListener("click",(function(t){i.optimizelyClient.track(e,i.optimizelyData.userId,i.optimizelyData.attributes,r)}))},m=0;m<p.length;m++){var b;y()}}})),n(".carousel").carousel({interval:!1}),n(".carousel-item").length<=2&&n(".carousel-control").hide(),n("#carouselPOM").on("slide.bs.carousel",(function(t){var e=n(t.relatedTarget).index(),r=n(".carousel-item").length;if(e>=r-1)for(var o=2-(r-e),i=0;i<o;i++)"left"==t.direction?n(".carousel-item").eq(i).appendTo(".carousel-inner"):n(".carousel-item").eq(0).appendTo(".carousel-inner")})),n(".peace-of-mind-item__footer a.btn").on("click",(function(){window.optimizelyUtil&&window.optimizelyUtil.track("click-get-facts-plus")}))})()})();
|