var __extends,ProductPage;(function(n,t){typeof exports=="object"&&exports&&typeof exports.nodeName!="string"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(n.Mustache={},t(Mustache))})(this,function(n){function f(n){return typeof n=="function"}function l(n){return u(n)?"array":typeof n}function o(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(n,t){return n!=null&&typeof n=="object"&&t in n}function v(n,t){return a.call(n,t)}function p(n){return!v(y,n)}function b(n){return String(n).replace(/[&<>"'\/]/g,function(n){return w[n]})}function tt(t,i){function lt(){if(ft&&!w)while(y.length)delete a[y.pop()];else y=[];ft=!1;w=!1}function ht(n){if(typeof n=="string"&&(n=n.split(d,2)),!u(n)||n.length!==2)throw new Error("Invalid tags: "+n);et=new RegExp(o(n[0])+"\\s*");v=new RegExp("\\s*"+o(n[1]));st=new RegExp("\\s*"+o("}"+n[1]))}var et,v,st,f,c,e,s,b,ot,l,tt,ct;if(!t)return[];var ut=[],a=[],y=[],ft=!1,w=!1;for(ht(i||n.tags),f=new r(t);!f.eos();){if(c=f.pos,s=f.scanUntil(et),s)for(tt=0,ct=s.length;tt<ct;++tt)b=s.charAt(tt),p(b)?y.push(a.length):w=!0,a.push(["text",b,c,c+1]),c+=1,b==="\n"&&lt();if(!f.scan(et))break;if(ft=!0,e=f.scan(nt)||"name",f.scan(k),e==="="?(s=f.scanUntil(h),f.scan(h),f.scanUntil(v)):e==="{"?(s=f.scanUntil(st),f.scan(g),f.scanUntil(v),e="&"):s=f.scanUntil(v),!f.scan(v))throw new Error("Unclosed tag at "+f.pos);if(ot=[e,s,c,f.pos],a.push(ot),e==="#"||e==="^")ut.push(ot);else if(e==="/"){if(l=ut.pop(),!l)throw new Error('Unopened section "'+s+'" at '+c);if(l[1]!==s)throw new Error('Unclosed section "'+l[1]+'" at '+c);}else e==="name"||e==="{"||e==="&"?w=!0:e==="="&&ht(s)}if(l=ut.pop(),l)throw new Error('Unclosed section "'+l[1]+'" at '+f.pos);return rt(it(a))}function it(n){for(var u=[],t,i,r=0,f=n.length;r<f;++r)t=n[r],t&&(t[0]==="text"&&i&&i[0]==="text"?(i[1]+=t[1],i[3]=t[3]):(u.push(t),i=t));return u}function rt(n){for(var u=[],r=u,i=[],t,e,f=0,o=n.length;f<o;++f){t=n[f];switch(t[0]){case"#":case"^":r.push(t);i.push(t);r=t[4]=[];break;case"/":e=i.pop();e[5]=t[2];r=i.length>0?i[i.length-1][4]:u;break;default:r.push(t)}}return u}function r(n){this.string=n;this.tail=n;this.pos=0}function i(n,t){this.view=n;this.cache={".":this.view};this.parent=t}function t(){this.cache={}}var c=Object.prototype.toString,u=Array.isArray||function(n){return c.call(n)==="[object Array]"},a=RegExp.prototype.test,y=/\S/,w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},k=/\s*/,d=/\s+/,h=/\s*=/,g=/\s*\}/,nt=/#|\^|\/|>|\{|&|=|!/,e;r.prototype.eos=function(){return this.tail===""};r.prototype.scan=function(n){var i=this.tail.match(n),t;return!i||i.index!==0?"":(t=i[0],this.tail=this.tail.substring(t.length),this.pos+=t.length,t)};r.prototype.scanUntil=function(n){var i=this.tail.search(n),t;switch(i){case-1:t=this.tail;this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,i);this.tail=this.tail.substring(i)}return this.pos+=t.length,t};i.prototype.push=function(n){return new i(n,this)};i.prototype.lookup=function(n){var o=this.cache,t,i,r,u,e;if(o.hasOwnProperty(n))t=o[n];else{for(i=this,e=!1;i;){if(n.indexOf(".")>0)for(t=i.view,r=n.split("."),u=0;t!=null&&u<r.length;)u===r.length-1&&(e=s(t,r[u])),t=t[r[u++]];else t=i.view[n],e=s(i.view,n);if(e)break;i=i.parent}o[n]=t}return f(t)&&(t=t.call(this.view)),t};t.prototype.clearCache=function(){this.cache={}};t.prototype.parse=function(n,t){var r=this.cache,i=r[n];return i==null&&(i=r[n]=tt(n,t)),i};t.prototype.render=function(n,t,r){var u=this.parse(n),f=t instanceof i?t:new i(t);return this.renderTokens(u,f,r,n)};t.prototype.renderTokens=function(n,t,i,r){for(var s="",f,e,u,o=0,h=n.length;o<h;++o)u=undefined,f=n[o],e=f[0],e==="#"?u=this.renderSection(f,t,i,r):e==="^"?u=this.renderInverted(f,t,i,r):e===">"?u=this.renderPartial(f,t,i,r):e==="&"?u=this.unescapedValue(f,t):e==="name"?u=this.escapedValue(f,t):e==="text"&&(u=this.rawValue(f)),u!==undefined&&(s+=u);return s};t.prototype.renderSection=function(n,t,i,r){function l(n){return c.render(n,t,i)}var c=this,o="",e=t.lookup(n[1]),s,h;if(e){if(u(e))for(s=0,h=e.length;s<h;++s)o+=this.renderTokens(n[4],t.push(e[s]),i,r);else if(typeof e=="object"||typeof e=="string"||typeof e=="number")o+=this.renderTokens(n[4],t.push(e),i,r);else if(f(e)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");e=e.call(t.view,r.slice(n[3],n[5]),l);e!=null&&(o+=e)}else o+=this.renderTokens(n[4],t,i,r);return o}};t.prototype.renderInverted=function(n,t,i,r){var f=t.lookup(n[1]);if(!f||u(f)&&f.length===0)return this.renderTokens(n[4],t,i,r)};t.prototype.renderPartial=function(n,t,i){if(i){var r=f(i)?i(n[1]):i[n[1]];if(r!=null)return this.renderTokens(this.parse(r),t,i,r)}};t.prototype.unescapedValue=function(n,t){var i=t.lookup(n[1]);if(i!=null)return i};t.prototype.escapedValue=function(t,i){var r=i.lookup(t[1]);if(r!=null)return n.escape(r)};t.prototype.rawValue=function(n){return n[1]};n.name="mustache.js";n.version="2.1.3";n.tags=["{{","}}"];e=new t;n.clearCache=function(){return e.clearCache()};n.parse=function(n,t){return e.parse(n,t)};n.render=function(n,t,i){if(typeof n!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+l(n)+'" was given as the first argument for mustache#render(template, view, partials)');return e.render(n,t,i)};n.to_html=function(t,i,r,u){var e=n.render(t,i,r);if(f(u))u(e);else return e};n.escape=b;n.Scanner=r;n.Context=i;n.Writer=t}),function(n,t,i){"use strict";function f(t,i){this.element=t;this.settings=n.extend({},u,i);this.settings.title===""&&(this.settings.title=n(this.element).data("fsm-title"));this._defaults=u;this._name=r;this.init()}var r="fullScreenModal",u={title:"",content:"no content",template:'\n        <div class="mobile-overlay">\n            <div class="overlay-header">\n                <a href="#" class="fsm-close"><h3 class="no-margin"><span class="glyphicon glyphicon-chevron-left"><\/span>&nbsp;{{{title}}}<\/h3><\/a>\n            <\/div>\n            <div class="overlay-content-container">\n                <div class="overlay-content">\n                    {{{content}}}\n                <\/div>\n            <\/div>\n        <\/div>\n        '};n.extend(f.prototype,{init:function(){Mustache.parse(this.settings.template);var f=Mustache.render(this.settings.template,this.settings),r=n(f).appendTo(i.body),e=r.find(".overlay-content-container"),u="fsm_"+this.getUniqueId();n(this.element).on("click",function(t){t.preventDefault();r.addClass("open");n("body").addClass("noscroll");r.focus();history.pushState(u,null,"#modal-1")});t.addEventListener("popstate",function(t){var i=t.state;i==null?(r.removeClass("open"),n("body").removeClass("noscroll")):typeof i=="string"&&i===u&&(r.addClass("open"),n("body").addClass("noscroll"))});r.find(".fsm-close").on("click",function(t){t.preventDefault();r.removeClass("open");n("body").removeClass("noscroll");history.back();setTimeout(function(){e.scrollTop(1)},500)})},resetContentScroll:function(){},getUniqueId:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})}});n.fn[r]=function(t){return this.each(function(){n.data(this,"plugin_"+r)||n.data(this,"plugin_"+r,new f(this,t))})}}(jQuery,window,document),function(n){var t=function(){function n(n,t){this.events={hideNavigationItem:"productpage_hideNavigationItem"};this.element=n;this.$element=$(n);this.parameters=t}return n.prototype.tryInitialize=function(){try{this.initialize()}catch(n){console.error("Component failed to initialize",n);this.hideComponent()}},n.prototype.trigger=function(n,t){var i=$.Event(n,{state:t});$(window).trigger(i)},n.prototype.on=function(n,t){$(window).on(n,t)},n.prototype.hideComponent=function(){$(this.element).hide()},n.prototype.showComponent=function(){$(this.element).show()},n}();n.ProductPageBaseComponent=t}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var n=this;$(this.$element).on("click","[data-selector='crw_btn']",function(){$("[data-selector='crw_hidden']",n.$element).show();$("[data-selector='crw_initial']",n.$element).hide()})},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.CountryRestriction||(n.CountryRestriction={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var n=this;this._swiper=new Swiper(".swiper-customerstories",{direction:"horizontal",slidesPerView:"auto",spaceBetween:0,nextButton:n.$element.find(".swiper-btn-next"),prevButton:n.$element.find(".swiper-btn-prev")})},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.CustomerStoryLister||(n.CustomerStoryLister={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var n=$("<div />").append($("<div class='prod-desc-mobile-full'/>").append($("#prod-desc-content").html())).html(),t=this.truncateHtml($("#prod-desc-content")[0],500);this.$element.find("#prod-desc-mobile-content").html(t.text);this.$element.find(".fsm-open").fullScreenModal({content:n})},t.prototype.truncateHtml=function(n,t){var u=this,r="",i=t;return $(n).contents().each(function(){var n,t;switch(this.nodeType){case Node.TEXT_NODE:n=this.data.substr(0,i);i-=Math.min(this.data.length,i);i===0&&(n=n.substr(0,n.lastIndexOf(" "))+"...");r+=n;break;case Node.ELEMENT_NODE:try{t=u.truncateHtml(this,i);r+=t.text;i-=t.count}catch(f){}}return i===0?!1:!0}),{text:n.outerHTML.match(/^<[^>]+>/m)[0]+r+"<\/"+n.localName+">",count:t-i}},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.Description||(n.Description={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var n=this;$(document).ready(function(){n.initializeThumbnails();n.initializeSlidesSwiper();n.initializeZoomedSwiper()})},t.prototype.initializeThumbnails=function(){var n=this;this.$element.find(".prod-gallery-thumbs").find(".prod-gallery-thumb").not(".more-thumbs").each(function(t,i){$(i).on("click",function(){n._slidesSwiper.slideTo(t)})});this.$element.find(".prod-gallery-thumbs").find(".prod-gallery-thumb.more-thumbs").each(function(t,i){$(i).on("click",function(){n._slidesSwiper.slideTo(3);var t=new PhotoSwipe($(".pswp")[0],PhotoSwipeUI_Default,n.getPhotoSwipeItems(),{index:3,bgOpacity:.7,showHideOpacity:!0});t.listen("close",function(){jQuery("div.prod-gallery-iframe.isvideo").find("iframe").each(function(n,t){jQuery(t)[0].remove()})});t.init()})});this.selectThumbnail(0)},t.prototype.selectThumbnail=function(n){$(".prod-gallery-thumbs").find(".prod-gallery-thumb").removeClass("active");$(".prod-gallery-thumbs").children().eq(n).addClass("active")},t.prototype.initializeSlidesSwiper=function(){var n=this;this._slidesSwiper=new Swiper(".swiper-main",{direction:"horizontal",loop:!1,pagination:".swiper-pagination",paginationClickable:!0,spaceBetween:0,onSlideChangeEnd:function(t){return n.selectThumbnail(t.activeIndex)}})},t.prototype.initializeZoomedSwiper=function(){var n=$(".pswp")[0],t=this.getPhotoSwipeItems(),i=$(".prod-gallery-slides");$(".swiper-slide",i).click(function(i){var u=$(".swiper-slide").index($(i.target).closest(".swiper-slide")),f={index:u,bgOpacity:.7,showHideOpacity:!0,tapToToggleControls:!1},r=new PhotoSwipe(n,PhotoSwipeUI_Default,t,f);r.listen("beforeChange",function(){jQuery("div.prod-gallery-iframe.isvideo").find("iframe").each(function(n,t){var i=jQuery(t)[0].contentWindow;i.location.href.indexOf("about:blank")==-1&&i.location.reload()})});r.listen("close",function(){jQuery("div.prod-gallery-iframe.isvideo").find("iframe").each(function(n,t){jQuery(t)[0].remove()})});r.init()})},t.prototype.getPhotoSwipeItems=function(){var n=[];return this.$element.find(".swiper-slide").each(function(){var t=$(this).data("zoomurl"),i=$(this).data("zoomsize").split("x"),r=i[0],u=i[1],f=$(this).data("iframe"),e=$(this).data("iframe-class");f==="True"?n.push({html:'<div class="prod-gallery-iframe-wrapper"><div class="prod-gallery-iframe '+e+'"><iframe src="'+t+'"><\/iframe><\/div><\/div>',w:r,h:u}):n.push({src:t,w:r,h:u})}),n},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.Gallery||(n.Gallery={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.Header||(n.Header={}))}(ProductPage||(ProductPage={})),function(n){var t;(function(n){var t=function(){function n(n,t){$(n).find(t.replaceTargetSelector).length!==0&&Barco.displayQuoteRequestFormProductPageInline(t.replaceTargetSelector,t.quoteRequestFormConfigurationId,t.productId,t.submitText)}return n}();n.Component=t})(t=n.ProductInlineQuoteForm||(n.ProductInlineQuoteForm={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var n=this.$element.find("#prod-accessories-content").html();this.$element.find(".fsm-open").fullScreenModal({content:$("<div />").append($("<div class='prod-options-mobile-full'/>").append(n)).html()});$(".pr-acc-tooltip-trigger").each(function(n,t){var i=$("#pr-acc-tooltip-template").html(),r={name:$(t).find(".pr-acc-name").text(),description:$(t).data("desc"),image:$(t).data("img")};Mustache.parse(i);$(t).popover({content:Mustache.render(i,r),html:!0,trigger:"hover focus",placement:"right"})})},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.Options||(n.Options={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){this.initProductsSwiper(this.$element.find(".swiper-relatedproducts"))},t.prototype.initProductsSwiper=function(n){var r=this,t,i;if(n.length>0){t=new Swiper(n,{direction:"horizontal",slidesPerView:"auto",spaceBetween:0,nextButton:r.$element.find(".swiper-btn-next"),prevButton:r.$element.find(".swiper-btn-prev")});i=function(t){var i=$(window).width();i<=768?n.width($(window).width()-30):n.width("");t.update();t.slideTo(0)};$(window).on("resize.resizeDocumentPadding",function(){i(t)});i(t)}},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.RelatedProducts||(n.RelatedProducts={}))}(ProductPage||(ProductPage={})),function(n){var t;(function(n){var t=function(){function n(n,t){var i=this;this.jqueryElement=n;this.parm=t;this.parm.isSubscribedToProduct?this.subscribedState():this.unsubscribedState();$(this.jqueryElement).on("click","[data-selector='subscribe-to-product'], [data-selector='star-unsubscribed']",function(n){return i.subscribeToProduct(n)});$(this.jqueryElement).on("click","[data-selector='unsubscribe-to-product'], [data-selector='star-subscribed']",function(n){return i.unsubscribeToProduct(n)})}return n.prototype.subscribeToProduct=function(n){var t=this;n.preventDefault();this.showLoader();Components.MySubscriptions.myProducts.add(this.parm.productId).fail(function(){}).done(function(){t.subscribedState()}).always(function(){t.hideLoader()})},n.prototype.unsubscribeToProduct=function(n){var t=this;n.preventDefault();this.showLoader();Components.MySubscriptions.myProducts.remove(this.parm.productId).fail(function(){}).done(function(){t.unsubscribedState()}).always(function(){t.hideLoader()})},n.prototype.subscribedState=function(){$("[data-selector='star-subscribed']",this.jqueryElement).show();$("[data-selector='star-unsubscribed']",this.jqueryElement).hide();$("[data-selector='subscribed-to-product']",this.jqueryElement).show();$("[data-selector='subscribe-to-product']",this.jqueryElement).hide()},n.prototype.unsubscribedState=function(){$("[data-selector='star-unsubscribed']",this.jqueryElement).show();$("[data-selector='star-subscribed']",this.jqueryElement).hide();$("[data-selector='subscribe-to-product']",this.jqueryElement).show();$("[data-selector='subscribed-to-product']",this.jqueryElement).hide()},n.prototype.showLoader=function(){$("[data-selector='loader']").show()},n.prototype.hideLoader=function(){$("[data-selector='loader']").hide()},n}();n.Component=t})(t=n.ProductSidePanel||(n.ProductSidePanel={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=Components.Utils,r=function(n){function t(t,r){var u=this;n.call(this,t,r);this.maxVisibleSpecs=ko.observable(0);this.isLoading=ko.observable(!1);this.showingAllSpecs=ko.observable(!1);this.allSpecs=ko.observableArray([]);this.initialSpecs=ko.computed(function(){return u.allSpecs().slice(0,u.maxVisibleSpecs())});this.additionalSpecs=ko.computed(function(){return u.allSpecs().slice(u.maxVisibleSpecs())});this.allSpecsVisible=ko.computed(function(){return u.showingAllSpecs()||u.maxVisibleSpecs()>=u.allSpecs().length});this.loadInitialSpecs=function(){u.isLoading(!0);u.loadSpecs().done(function(n){u.allSpecs(n.specs)}).always(function(){u.isLoading(!1)})};this.loadAdditionalSpecs=function(){if(u.showingAllSpecs(!0),$(".js-additional-specs").collapse("show"),dataLayer!=null)try{dataLayer.push({event:"Specsheet request",Specsheet:{product:u.params.productName,action:"Expanded view"}})}catch(n){Components.Logger.debug("Failed to push to dataLayer",n)}};this.loadAdditionalMobileSpecs=function(){u.allSpecsVisible()==!1&&u.loadAdditionalSpecs();u.toggleModal()};this.toggleModal=function(){$(".js-mobile-overlay-specs").toggleClass("open")};this.loadSpecs=function(){var n=$.Deferred();return $.ajax({method:"get",url:i.getActionUrl("LoadSpecs","ProductSpecs"),data:{productId:u.params.productId}}).done(function(t){t==null||t.specs==null?Components.Logger.debug("Load product specs returned no results"):(Components.Logger.debug("Specs loaded",t.specs),n.resolve(t))}).fail(function(t){Components.Logger.error("Failed to load product specs",t);n.reject()}),n.promise()};this.downloadFullSpecs=function(){if(window.open(u.params.fullSpecsDownloadUrl,"_blank"),dataLayer!=null)try{dataLayer.push({event:"Specsheet request",Specsheet:{product:u.params.productName,action:"Download",url:u.params.fullSpecsDownloadUrl}})}catch(n){Components.Logger.debug("Failed to push to dataLayer",n)}};this.params=r;this.maxVisibleSpecs(r.maxVisibleSpecs);ko.applyBindings(this,t[0]);this.loadInitialSpecs()}return __extends(t,n),t.prototype.initialize=function(){this.hideComponent()},t}(n.ProductPageBaseComponent);t.Component=r})(t=n.SpecificationLister||(n.SpecificationLister={}))}(ProductPage||(ProductPage={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){var i=function(n){function t(t,i){n.call(this,t,i);this.tryInitialize()}return __extends(t,n),t.prototype.initialize=function(){var t=document.body.getBoundingClientRect(),i=this.element[0].getBoundingClientRect(),r=i.top-t.top,n,u;this.$element.affix({offset:{top:r}});n=this.$element.find("#subnav-list");$("*[data-selector='product-subnavigation-item']").each(function(t,i){var r=$(i).data("subnavigation-target");(r==undefined||r==="")&&(r=i.id);n.append("<li><a href='#"+r+"'>"+$(i).data("subnavigation-title")+"<\/a><\/li>")});this.on(this.events.hideNavigationItem,function(n){var t="#"+n.state;$("#subnav-list").find("li").each(function(n,i){$(i).children().first().attr("href")===t&&$(i).hide()})});u=$("body").scrollspy({target:"#subnav-section"});$("#subnav-section").on("activate.bs.scrollspy",function(){});$("body").scrollspy("refresh");$('a[href^="#"]').on("click",function(n){var t=this.hash,i=$(t),r;i.length===1&&(n.preventDefault(),r=Math.pow(Math.abs(window.scrollY-$(this.hash).offset().top),2/3)*3,$("html, body").stop().animate({scrollTop:i.offset().top},r,"swing",function(){window.location.hash=t}))})},t}(n.ProductPageBaseComponent);t.Component=i})(t=n.SubNavigation||(n.SubNavigation={}))}(ProductPage||(ProductPage={}))