1function IsValidEmail(t){return!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(t)}var firstLma=$(".specifications-table > tbody:nth-child(2) > tr:nth-child(1):first").attr("data-limited-avail");firstLma>0&&$("#mmsta-label").css("display","inline");var photo_contest_number=1;$("#btn-photo-contest-add-photo").click((function(t){t.preventDefault(),photo_contest_number++,$(".photo-upload-file-"+photo_contest_number).css("display","block")})),$("#contestant-name").keydown((function(t){$(".photo-submit-success").fadeOut()})),$(".photo-upload-file").change((function(){console.log("File is uploaded");var t=this.files[0].size;console.log("File size is "+t),t>5e6&&(alert("Please upload a file that is less than 5MB."),$(this).val(""))})),$(".submit-photo").click((function(t){console.clear();var e=$("#photo-upload-file-1").val();for(images_valid=!0,i=1;i<=10;i++)photo=$("#photo-upload-file-"+i).val(),console.log(photo),photo.length>0&&(photo.indexOf(".pdf")>-1||photo.indexOf(".jpg")>-1||photo.indexOf(".png")>-1||photo.indexOf(".gif")>-1||photo.indexOf(".jpeg")>-1?console.log("Ext is correct"):(console.log("Ext is WRONG"),images_valid=!1),console.log("====================="));t.preventDefault();var o=!0;console.log("Submitting form");var n=$("#contestant-name").val(),a=$("#contestant-email").val();$("#chk-terms").is(":checked")?($("#warning-terms").hide(),console.log("Terms checkbox is checked.")):($("#warning-terms").show(),o=!1,console.log("Please check the box above.")),images_valid&&0!=e.length?($("#warning-first-photo ").hide(),console.log("First photo is uploaded.")):($("#warning-first-photo").show(),o=!1,console.log("Please upload at least one photo the correct extensions listed above.")),""==n?($("#warning-name").show(),o=!1,console.log("Name is not populated.")):($("#warning-name").hide(),console.log("Name is populated.")),""==a?(o=!1,$("#warning-email").show(),console.log("Email is not populated.")):IsValidEmail(a)?($("#warning-email").hide(),console.log("Email is populated.")):(o=!1,$("#warning-email").show(),console.log("Email is incorrect.")),o&&$(".photo-contest-form").submit()}));var btnTplTouch={arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><svg width="24px" height="38px" viewBox="0 0 24 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> \x3c!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch --\x3e <title>Thumbnail Arrow</title> <desc>Created with Sketch.</desc> <defs></defs> <g id="Product-Detail---Tablet-Landscape-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-29.000000, -365.000000)"> <g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"> <g id="Navigation-Arrow-Copy-5" transform="translate(41.500000, 384.000000) rotate(-180.000000) translate(-41.500000, -384.000000) translate(31.000000, 366.000000)"> <polyline id="Thumbnail-Arrow" transform="translate(10.500000, 18.000000) rotate(-180.000000) translate(-10.500000, -18.000000) " points="21 0 0 18.5927694 21 36"></polyline> </g> </g> </g></svg></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><svg width="24px" height="38px" viewBox="0 0 24 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> \x3c!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch --\x3e <title>Thumbnail Arrow</title> <desc>Created with Sketch.</desc> <defs></defs> <g id="Product-Detail---Tablet-Landscape-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-970.000000, -365.000000)"> <g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"> <g id="Navigation-Arrow-Copy-6" transform="translate(981.500000, 384.000000) rotate(-360.000000) translate(-981.500000, -384.000000) translate(971.000000, 366.000000)"> <polyline id="Thumbnail-Arrow" transform="translate(10.500000, 18.000000) rotate(-180.000000) translate(-10.500000, -18.000000) " points="21 0 0 18.5927694 21 36"></polyline> </g> </g> </g></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg width="39px" height="39px" viewBox="0 0 39 39" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> \x3c!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch --\x3e <title>Close button Copy</title> <desc>Created with Sketch.</desc> <defs></defs> <g id="Product-Detail---Tablet-Landscape-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-956.000000, -29.000000)" stroke-linecap="square"> <g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"> <g id="Close-button-Copy" transform="translate(958.000000, 31.000000)"> <path d="M35,0 L0,35" id="Line"></path> <path d="M0,0 L35,35" id="Line-Copy"></path> </g> </g> </g></svg></button>'},btnTplDesktop={close:'<button data-fancybox-close class="fancybox-button fancybox-button--close fancybox-close-desktop" title="{{CLOSE}}"><svg width="53px" height="53px" viewBox="0 0 53 53" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Close button Copy</title><desc>Created with Sketch.</desc><defs></defs><g id="Product-Detail-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-1333.000000, -48.000000)" stroke-linecap="square"><g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"><g id="Close-button-Copy" transform="translate(1335.000000, 50.000000)"><path d="M49,0 L0,49" id="Line"></path><path d="M0,0 L49,49" id="Line-Copy"></path></g></g></g></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left fancybox-left-arrow-desktop" title="{{PREV}}"><svg width="32px" height="53px" viewBox="0 0 32 53" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Thumbnail Arrow</title><desc>Created with Sketch.</desc><defs></defs><g id="Product-Detail-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-54.000000, -509.000000)"><g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"><g id="Navigation-Arrow-Copy-5" transform="translate(70.500000, 535.500000) rotate(-180.000000) translate(-70.500000, -535.500000) translate(56.000000, 510.000000)">
1<polyline id="Thumbnail-Arrow" transform="translate(14.500000, 25.500000) rotate(-180.000000) translate(-14.500000, -25.500000) " points="29 0 0 26.3397566 29 51"></polyline></g></g></g></svg></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right fancybox-right-arrow-desktop" title="{{NEXT}}"><svg width="32px" height="53px" viewBox="0 0 32 53" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Navigation Arrow Copy 6</title><desc>Created with Sketch.</desc><defs></defs><g id="Product-Detail-Pop-Up" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-1354.000000, -509.000000)"><g id="Pop-Up-Lightbox-Screen" stroke="#FFFFFF" stroke-width="2"><g id="Navigation-Arrow-Copy-6" transform="translate(1369.500000, 535.500000) rotate(-360.000000) translate(-1369.500000, -535.500000) translate(1355.000000, 510.000000)"><polyline id="Thumbnail-Arrow" transform="translate(14.500000, 25.500000) rotate(-180.000000) translate(-14.500000, -25.500000) " points="29 0 0 26.3397566 29 51"></polyline></g></g></g></svg></button>'};function is_check_touch_device(){return"ontouchstart"in window||navigator.maxTouchPoints}function getBtnTpl(){return is_check_touch_device()?btnTplTouch:btnTplDesktop}function fixDesktopProductIndexHeight(){if($(".listing-results").length&&$(window).width()>1024){var t=$(".listing-results section .filter-bar").height();$(".listing-results").attr("style","min-height: "+t+"px"),$("#reset-filters-link").length&&$(".listing-results article.product").addClass("have-filters")}}$(document).ready((function(){if($(".photo-contest-form").submit((function(t){$("#photo-upload-file").val()})),$("img.app-image").mouseover((function(t){t.stopPropagation(),$(this).css("cursor","pointer")})),$("img.app-image").click((function(){var t=$(this).attr("src");$(".app-lightbox").show(),$(".app-lightbox-image").attr("src",t).fadeIn()})),$(".app-lightbox").click((function(){$(".app-lightbox").hide(),$(".app-lightbox-image").hide()})),$(".img.app-image").click((function(){$(".app-lightbox").hide(),$(".app-lightbox-image").hide()})),$("#searchform").submit((function(t){"limited"==$.trim($("#s").val()).toLowerCase()&&(t.preventDefault(),window.location.replace("/limited")),"dwel"!=$.trim($("#s").val()).toLowerCase()&&"dwell"!=$.trim($("#s").val()).toLowerCase()&&"dweled"!=$.trim($("#s").val()).toLowerCase()&&"dwelled"!=$.trim($("#s").val()).toLowerCase()||(t.preventDefault(),window.location.replace("/category-landing/ceiling/?c=901&dweled")),0==$.trim($("#s").val()).length&&(alert("Please enter at least one product name or SKU."),t.preventDefault())})),$("#resources-search-archived-products-link").click((function(t){t.preventDefault(),$("#resources-search-archived-products-form").slideDown()})),$(".color-swatch-image").css("cursor","pointer").mouseover((function(){var t=$(this).attr("src");t=(t=t.replace(".jpg","")).replace("http://beta.waclighting.com/wp-content/uploads/finishes/finish_",""),console.log("Current color is "+t),$("#color-swatch-name").text("Finish: "+t)})),$(".page-head-search").length&&$(".listing-results").addClass("listing-search-results"),$(".app-header h2").css("cursor","pointer").mouseover((function(){$("#app-popup").slideDown("fast")})),$(".app-popup-close").click((function(){$("#app-popup").slideUp()})),$(".ads-element").length?$("[data-fancybox]").fancybox({toolbar:!0,infobar:!1,loop:!0,buttons:["close"],smallBtn:"auto",btnTpl:getBtnTpl(),afterShow:function(){var t=$.fancybox.getInstance().current.opts.$orig,e=$(t).attr("data-title");$(".fancybox-slide--current").find(".fb-caption").length||$(".fancybox-slide--current").find(".fancybox-image-wrap").append('<div class="fb-caption">'+e+"</div>")}}):$("[data-fancybox-with-title]").fancybox({toolbar:!0,infobar:!1,loop:!0,buttons:["close"],smallBtn:"auto",btnTpl:getBtnTpl()}),$(".show-all-button").on("click",(function(t){t.preventDefault();var e=$(this).data("id");$('tr[data-id="'+e+'"]').toggle()})),$(".orderby-select").on("change",(function(){$("#orderby-form").submit()})),$("#apply-filters").on("click",(function(t){t.preventDefault(),$("#orderby-form").submit()})),$("#apply-filters1").on("click",(function(t){t.preventDefault(),$("#orderby-form1").submit()}
1)),$(".autoplay-video").length){var t=function(){var t=parseInt($(".home-slider").css("width")),e=parseInt($(".home-slider").css("height")),o=e/t;if(console.log(t,e,o),o<.5626){var n=.5626*t;$(".autoplay-video").css("height",n+"px")}else $(".autoplay-video").css("height","100%")};t(),$(".autoplay-video").each((function(){$(this).get(0).play()})),$(window).resize((function(){t()}))}$(".home-image .text").addClass("loaded-text"),$(".search-trigger").click((function(){"overflow:visible !important"==$(".search-over").attr("style")?$(".search-over").attr("style","overflow:hidden"):$(".search-over").attr("style","overflow:visible !important")})),$(document).on("click",".dropdown-toggle",(function(t){t.preventDefault()})),$("select.wpcf7-form-control").select2({minimumResultsForSearch:-1}),$("select.wpcf7-form-control").length&&$("body").addClass("wpcf7-form-indahouse")})),$(".wpcf7-form").on("click",".wpcf7-not-valid-tip",(function(){var t=$(this),e=$(this).parent().find("input");e.removeClass("wpcf7-not-valid"),t.remove(),e.focus()}));var isScrollingOnClick=!1;if($(document).on("click",".pn-ProductNav_Wrapper a",(function(t){t.preventDefault(),isScrollingOnClick=!0;var e=$(this);$(".pn-ProductNav_Wrapper a").attr("aria-selected",!1),e.attr("aria-selected",!0),setTimeout((function(){isScrollingOnClick=!1}),1e3),console.log($(".pn-ProductNav_Wrapper").height(),$(".header").outerHeight());var o=$(".pn-ProductNav_Wrapper").outerHeight()+$(".header").outerHeight(),n=parseInt($($.attr(this,"href")).css("padding-top").replace("px",""));return $("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top-o+n-30},800),!1})),$(".pn-ProductNav_Wrapper").length){var productNavOffcetTop=$(".pn-ProductNav_Wrapper").offset().top;$(window).scroll((function(){var t=$(window).scrollTop();productNavOffcetTop=$(".pn-ProductNav_Wrapper").hasClass("fixedNav")?$(".pn-ProductNav_Wrapper-fake-placeholder").offset().top:$(".pn-ProductNav_Wrapper").offset().top,t+$(".header").outerHeight()>=productNavOffcetTop?($(".pn-ProductNav_Wrapper").addClass("fixedNav"),$(".pn-ProductNav_Wrapper-fake-placeholder").height($(".pn-ProductNav_Wrapper").height()),$(".pn-ProductNav_Wrapper-fake-placeholder").addClass("fixedNav")):($(".pn-ProductNav_Wrapper").removeClass("fixedNav"),$(".pn-ProductNav_Wrapper-fake-placeholder").removeClass("fixedNav")),t>=100&&!isScrollingOnClick?$(".anchor-header").each((function(e){$(this).offset().top<=t+200&&($(".pn-ProductNav_Wrapper a").attr("aria-selected",!1),$(".pn-ProductNav_Wrapper a").eq(e).attr("aria-selected",!0))})):isScrollingOnClick||($(".pn-ProductNav_Wrapper a").attr("aria-selected",!1),$(".pn-ProductNav_Wrapper a:first").attr("aria-selected",!0))})).scroll()}var SETTINGS={navBarTravelling:!1,navBarTravelDirection:"",navBarTravelDistance:150};document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");var pnAdvancerLeft=document.getElementById("pnAdvancerLeft"),pnAdvancerRight=document.getElementById("pnAdvancerRight"),pnProductNav=document.getElementById("pnProductNav"),pnProductNavContents=document.getElementById("pnProductNavContents");pnProductNav&&pnProductNav.setAttribute("data-overflowing",determineOverflow(pnProductNavContents,pnProductNav));var last_known_scroll_position=0,ticking=!1;function doSomething(t){pnProductNav.setAttribute("data-overflowing",determineOverflow(pnProductNavContents,pnProductNav))}$(".pn-ProductNav_Wrapper").length&&$(window).resize((function(){productNavOffcetTop=$(".pn-ProductNav_Wrapper").offset().top,pnProductNav.setAttribute("data-overflowing",determineOverflow(pnProductNavContents,pnProductNav)),$("select.wpcf7-form-control").select2({minimumResultsForSearch:-1}),$("select.wpcf7-form-control").length&&$("body").addClass("wpcf7-form-indahouse")})),$(document).ready((function(){$("input[name='phone']").inputmask("(999) 999-9999")})),$(".wpcf7-form").on("click",".wpcf7-not-valid-tip",(function(){var t=$(this),e=$(this).parent().find("input");e.length||(e=$(this).parent().find("textarea")),e.removeClass("wpcf7-not-valid"),t.remove(),e.focus()})),$(".wpcf7-form").on("click",".wpcf7-not-valid",(function(){var t=$(this);t.removeClass("wpcf7-not-valid"),t.parent().find(".wpcf7-not-valid-tip").remove(),t.focus()})),pnProductNav&&pnProductNav.addEventListener("scroll",(function(){last_known_scroll_position=window.scrollY,ticking||window.requestAnimationFrame((function(){doSomething(last_known_scroll_position),ticking=!1})),ticking=!0}));var totalWidthOfTabs=0,autoScrolling=!1,lastX=$("#pnProductNav").scrollLeft();function stepOnProductTab(t){autoScrolling=!0;var e=[],o=[0],n=[],a=0;$("#pnProductNavContents a").each((function(){var t=$(this),i=parseInt(t.width()+parseInt(t.css("margin-left").replace("px",""))+parseInt(t.css("padding-left").replace("px",""))+parseInt(t.css("padding-right").replace("px","")));e.push(i),a+=i,o.push(a),n.push(parseInt(t.css("margin-left").replace("px","")))}));var i=null,r=$("#pnProductNav").scrollLeft();e.forEach((function(t,e){r>
1=o[e]&&r<=o[e+1]&&(i=e)})),$("#pnProductNav").animate({scrollLeft:o[i+t]+n[i+t]},200),setTimeout((function(){autoScrolling=!1}),300),totalWidthOfTabs=o[o.length-1],console.log(o)}function determineOverflow(t,e){if(!totalWidthOfTabs){var o=0;$("#pnProductNavContents a").each((function(){var t=$(this),e=parseInt(t.width()+parseInt(t.css("margin-left").replace("px",""))+parseInt(t.css("padding-left").replace("px",""))+parseInt(t.css("padding-right").replace("px","")));o+=e})),totalWidthOfTabs=o}var n=$("#pnProductNav").scrollLeft(),a=$("#pnProductNav").scrollLeft()+$("#pnProductNav").width();return console.log("=====>>>>",n,a,$("#pnProductNav").width(),totalWidthOfTabs),$("#pnProductNav").width()>=totalWidthOfTabs?"none":a>=totalWidthOfTabs?"left":0==n?"right":"both"}$(document).ready((function(){$(".pdf_alert_notification").click((function(t){localStorage.getItem("hide_pdf_alerts")||(t.preventDefault(),$.fancybox.open({src:$(this).data("fancybox-target")}))})),$(".fancy-ok").click((function(){$(".hide_pdf_alerts:checkbox:checked").length&&localStorage.setItem("hide_pdf_alerts",!0),$.fancybox.close()})),$(".faq-segment h2").click((function(){$(this).parent().children("div").slideToggle(300),$(this).toggleClass("opened")})),$("#pnProductNav").length&&$("#pnProductNav").scroll((function(){autoScrolling||(clearTimeout($.data(this,"scrollTimer")),$.data(this,"scrollTimer",setTimeout((function(){var t=$("#pnProductNav").scrollLeft(),e=t>lastX?1:0;lastX=t,stepOnProductTab(e)}),300)))}))})),pnAdvancerLeft&&pnAdvancerLeft.addEventListener("click",(function(){!0!==SETTINGS.navBarTravelling&&stepOnProductTab(-1)})),pnAdvancerRight&&pnAdvancerRight.addEventListener("click",(function(){!0!==SETTINGS.navBarTravelling&&stepOnProductTab(1)})),pnProductNavContents&&pnProductNavContents.addEventListener("transitionend",(function(){var t=window.getComputedStyle(pnProductNavContents,null),e=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform"),o=Math.abs(parseInt(e.split(",")[4])||0);pnProductNavContents.style.transform="none",pnProductNavContents.classList.add("pn-ProductNav_Contents-no-transition"),"left"===SETTINGS.navBarTravelDirection?pnProductNav.scrollLeft=pnProductNav.scrollLeft-o:pnProductNav.scrollLeft=pnProductNav.scrollLeft+o,SETTINGS.navBarTravelling=!1}),!1),pnProductNavContents&&pnProductNavContents.addEventListener("click",(function(t){[].slice.call(document.querySelectorAll(".pn-ProductNav_Link")).forEach((function(t){})),t.target.setAttribute("aria-selected","true")})),$(document).ready((function(){if($(".cat-banner").stick_in_parent({offset_top:138}),$(".pn-ProductNav_Wrapper").length&&$("body").addClass("product-page"),$(".close-video-overlay").on("click",(function(){console.log("Close video overlay"),$("#video-inline").html(""),$(".video-overlay").hide()})),$(".video-link").on("click",(function(t){t.preventDefault();var e={action:"get_video",video_url:encodeURIComponent($(this).data("video"))};$.ajax({url:mf_ajax.url,type:"POST",data:e,success:function(t){$("#video-inline").html(t),$(".video-overlay").show(),console.log(t)}})})),$("#categories-links").length&&$("#categories-links").slick({centerMode:!0,centerPadding:"2px",infinite:!0,slidesToShow:5,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".product-belt").length&&$(".product-belt").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:1023,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".filter-overlay").length&&($("#orderby-form1").find("article").eq(0).find("h4").addClass("active"),$("#orderby-form1").find("article").eq(0).find(".toggler").show(),fixDesktopProductIndexHeight(),setTimeout((function(){fixDesktopProductIndexHeight()}),310),$("#orderby-form1").find("article h4").click((function(){setTimeout((function(){fixDesktopProductIndexHeight()}),310)}))),$(".cat-land-top-belt").length&&$(".cat-land-top-belt").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:1025,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".cat-land-bottom-belt").length&&$(".cat-land-bottom-belt").slick({infinite:!0,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1025,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".specifications-table").length&&$(".specifications-table").each((function(){var t=$(this),e=$(this).closest(".specifications-table-holder"),o=[],n=[],a=[],i=[],r={},s=[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],l=[];function d(){var o,a=[];
1if(n.length){n.forEach((function(e){t.find("tbody tr").each((function(t){$(this).find("td").each((function(t){var o=$(this);t==e&&o.hasClass("selected")&&o.attr("data-order-value")&&a.push(JSON.parse(o.attr("data-order-value")))}))}))}));var s=(o=a).shift().filter((function(t){return o.every((function(e){return-1!==e.indexOf(t)}))}));console.log("MATCHED matnrs",s);var l=s[0];e.find(".order-number").first().removeClass("no-order-number"),l||(l="Option Not Available",e.find(".order-number").first().addClass("no-order-number")),e.find(".order-number").first().text(l);var d=$(".wac-current-ppid").text();$.ajax({url:"/wp-content/plugins/wac-finishes/get_finishes.php",data:{ppid:d},type:"GET",success:function(t){$(".currently-selected-order-number").html(t),console.log("Color swatches successfully retrieved for PPID "+d+"!")}}),i.length&&i.forEach((function(e){t.find("tbody tr").eq(0).find("td").eq(e).html(r[e][s[0]])}))}t.on("click",".clickable",(function(){var t=$(".order-number").text(),e=$("table tr").filter('[data-order-number="'+t+'"]');console.log("line",e);var o=e.attr("data-limited-avail");console.log("order number",t),console.log("limited",o),0!=o&&o?$("#mmsta-label").css("display","inline"):($("#mmsta-label").hide(),$("#mmsta-label-mobile").hide())}))}if(t.find("th").each((function(t){2==$(this).data("field-sort")&&o.push(t),"no"===$(this).data("display-only")&&n.push(t),"yes"===$(this).data("field-grouping")&&a.push(t),"yes"===$(this).data("field-autogen")&&(i.push(t),r[t]={})})),console.log("sortBySecondIndexes",o),i.length&&i.forEach((function(e){t.find("tbody tr").each((function(t){var o=$(this);o.find("td").each((function(t){var n=$(this);e==t&&(r[t][o.data("order-number").trim()]=n.html().trim(),n.html(""),n.attr("data-order-value",""),n.removeClass("clickable"),n.attr("class",""))}))}))})),console.log("autogen",i,r),a.length){var c=[];function p(t,e,o){return o.indexOf(t)===e}a.forEach((function(e){t.find("tbody tr").each((function(t){$(this).find("td").each((function(t){var o=$(this);
1t==e&&(c[t]?(c[t].push(o.html().trim()),s[t].hasOwnProperty(o.html().trim())?s[t][o.html().trim()].push(o.attr("data-order-value").trim()):s[t][o.html().trim()]=[o.attr("data-order-value").trim()]):(c[t]=[o.html().trim()],s[t][o.html().trim()]=[o.attr("data-order-value").trim()]))}))}))})),c.forEach((function(t,e){c[e]=c[e].filter(p)})),a.forEach((function(e){t.find("tbody tr").each((function(t){$(this).find("td").each((function(o){var n=$(this);o==e&&(c[o][t]?(n.html(c[o][t]),n.attr("data-order-value",JSON.stringify(s[o][c[o][t]]))):(n.html(""),n.attr("data-order-value",""),n.removeClass("clickable"),n.attr("class","")))}))}))}))}function h(t,e){var n=t.replace('"',"");if(o.length&&-1!=o.indexOf(e)){var a=n.split(" - ");a.length>=2&&(n=a[1],t=a[1])}return Number(n)?Number(n):t}[0,1].forEach((function(e){var o=[];t.find("tbody tr").each((function(t){$(this).find("td").each((function(n){var a=$(this);t!=e||a.html().trim().length||o.push(n)}))})),o.length&&o.forEach((function(o){t.find("tbody tr").each((function(n){$(this).find("td").each((function(a){$(this);0!=n&&n!=e&&a==o&&(t.find("tbody tr").eq(n-1).find("td").eq(a).html(t.find("tbody tr").eq(n).find("td").eq(a).html()),t.find("tbody tr").eq(n-1).find("td").eq(a).attr("data-order-value",t.find("tbody tr").eq(n).find("td").eq(a).attr("data-order-value")))}))}))}))})),n.length&&n.forEach((function(e){t.find("tbody tr").each((function(t){$(this).find("td").each((function(o){var n=$(this);o==e&&(n.addClass("clickable"),0===t&&n.addClass("selected"))}))}))})),t.find("tbody tr").each((function(t){$(this).find("td").each((function(e){var o=$(this);0==t?l.push([{order_value:o.attr("data-order-value").trim(),name:o.html().trim(),reorderby:h(o.html().trim(),e)}]):o.attr("data-order-value").trim().length&&l[e].push({order_value:o.attr("data-order-value").trim(),name:o.html().trim(),reorderby:h(o.html().trim(),e)})}))})),console.log("arrayForReOrderColumns",l),l.forEach((function(t,e){var o,n;l[e].sort((n=1,"-"===(o="reorderby")[0]&&(n=-1,o=o.substr(1)),function(t,e){return-1==n?Number(t[o])?e[o]>t[o]?1:-1:e[o].localeCompare(t[o],void 0,{numeric:!0,sensitivity:"base"}):Number(t[o])?e[o]<t[o]?1:-1:t[o].localeCompare(e[o],void 0,{numeric:!0,sensitivity:"base"})}))})),t.find("tbody tr").each((function(t){$(this).find("td").each((function(e){var o=$(this);l[e][t]&&(o.html(l[e][t].name),o.attr("data-order-value",l[e][t].order_value))}))})),console.log("For Re-Order",l),t.on("click",".clickable",(function(){var e=$
1(this),o=e.data("index");t.find("tbody tr").each((function(){$(this).find("td").each((function(t){t==o&&$(this).removeClass("selected")}))}));$(this).parent().attr("data-limited-avail");e.addClass("selected"),d()})),d()})),$(".sub-menu.level3").each((function(){var t=parseInt($(this).parent().closest(".container").height())+parseInt(68);$(this).attr("style","min-height: "+t+"px !important")})),$(".less-more").click((function(t){t.preventDefault();var e=$(this),o=$(this).parent();e.hasClass("show-more")?(e.hide(),o.find(".show-less").show(),o.find(".hide-li").show()):(e.hide(),o.find(".show-more").show(),o.find(".hide-li").hide())})),$(".kaslider").length){var width=$(window).outerWidth(),desktopCount=5,tabletCount=3,mobileCount=1,$this=$(this),$wrap=$(this).find(".kaslider_wrap"),$track=$(this).find(".kaslider_track"),count=$this.find(".kaslide").length,wrapWidth=$wrap.width(),position=0,clonedBack=!1,animationInProgress=!1;if(width>=1024)var targetCount=desktopCount;else if(width>=768)var targetCount=tabletCount;else var targetCount=mobileCount;console.log($(window).outerWidth(),targetCount);var oneItemWidth=wrapWidth/targetCount,setTrackWidth=oneItemWidth*count;function moveTrack(t,e){if(position+=t,$track.css("transform","translate3d("+position*oneItemWidth+"px, 0px, 0px)"),e&&setTimeout((function(){emulateInfinity()}),310),targetCount!=mobileCount){var o=Math.abs(position),n=parseInt(targetCount/2);$track.find(".kaslide.center-slide-2").removeClass("center-slide-2"),$track.find(".kaslide").eq(o+n-2).addClass("center-slide-2"),$track.find(".kaslide.center-slide-1").removeClass("center-slide-1"),$track.find(".kaslide").eq(o+n-1).addClass("center-slide-1"),$track.find(".kaslide.center-slide").removeClass("center-slide"),$track.find(".kaslide").eq(o+n).addClass("center-slide"),$track.find(".kaslide.center-slide1").removeClass("center-slide1"),$track.find(".kaslide").eq(o+n+1).addClass("center-slide1"),$track.find(".kaslide.center-slide2").removeClass("center-slide2"),$track.find(".kaslide").eq(o+n+2).addClass("center-slide2"),resetSliderSize(),console.log(position,n,o)}}function emulateInfinity(){if(0!=position||clonedBack)0==position?($track.removeClass("animated"),moveTrack(-1*(count-2*targetCount),!1)):-1*position==count-targetCount&&($track.removeClass("animated"),moveTrack(1*(count-2*targetCount),!1));else{$track.removeClass("animated");for(var t=1;t<=targetCount;t++){var e=$track.find(".kaslide").eq(count-t).clone().addClass("cloned");$track.prepend(e),count=$this.find(".kaslide").length,setTrackWidth=oneItemWidth*count+100,moveTrack(-1,!1)}for(t=targetCount;t<2*targetCount;t++){e=$track.find(".kaslide").eq(t).clone().addClass("cloned");$track.append(e),count=$this.find(".kaslide").length,setTrackWidth=oneItemWidth*count+100}clonedBack=!0}$track.width(setTrackWidth),setTimeout((function(){$track.addClass("animated")}),100)}function resetSliderSize(){var t=$(window).outerWidth();if(t>=1024?targetCount!=desktopCount&&(targetCount=desktopCount,moveTrack(0,!0)):t>=768?targetCount!=tabletCount&&(targetCount=tabletCount,moveTrack(0,!0)):targetCount!=mobileCount&&(targetCount=mobileCount,moveTrack(0,!0)),wrapWidth=$wrap.width(),setTrackWidth=(oneItemWidth=wrapWidth/targetCount)*count,$track.width(setTrackWidth+100),$track.css("transform","translate3d("+position*oneItemWidth+"px, 0px, 0px)"),5==targetCount){var e=4,o=Math.round(oneItemWidth)-e,n=Math.round(.25*wrapWidth)-e,a=Math.round(.21*wrapWidth)-e,i=Math.round(.165*wrapWidth)-e;$(".kaslide").width(o),$(".kaslide.center-slide").width(n),$(".kaslide.center-slide1").width(a),$(".kaslide.center-slide2").width(i),$(".kaslide.center-slide-1").width(a),$(".kaslide.center-slide-2").width(i)}else if(3==targetCount){e=4,o=Math.round(oneItemWidth)-e,n=Math.round(.39*wrapWidth)-e,a=Math.round(.305*wrapWidth)-e,i=o;$(".kaslide").width(o),$(".kaslide.center-slide").width(n),$(".kaslide.center-slide1").width(a),$(".kaslide.center-slide2").width(i),$(".kaslide.center-slide-1").width(a),$(".kaslide.center-slide-2").width(i)}else if(1==targetCount){e=4,n=o=Math.round(oneItemWidth)-e,a=o,i=o;$(".kaslide").width(o),$(".kaslide.center-slide").width(n),$(".kaslide.center-slide1").width(a),$(".kaslide.center-slide2").width(i),$(".kaslide.center-slide-1").width(a),$(".kaslide.center-slide-2").width(i)}console.log("SLIDER RESIZE DONE")}
1$track.width(setTrackWidth+100),$(".kaslider-next").click((function(t){t.preventDefault(),animationInProgress||(animationInProgress=!0,moveTrack(-1,!0),setTimeout((function(){animationInProgress=!1}),350))})),$(".kaslider-prev").click((function(t){t.preventDefault(),animationInProgress||(animationInProgress=!0,moveTrack(1,!0),setTimeout((function(){animationInProgress=!1}),350))})),console.log("wrapWidth",wrapWidth),console.log("oneItemWidth",oneItemWidth),console.log("setTrackWidth",setTrackWidth),emulateInfinity(),resetSliderSize(),$(window).resize((function(){resetSliderSize()}))}var f=0,b=[.25,8,300,5,100],d=[["60W PAR16",2e3,50,100,6695,60,8,300,.833333333333333,3600,1434,600,0,11.95,5,1],["12W LED",5e4,150,100,15e3,12,8,300,20.8333333333333,720,0,0,0,0,0,0],["50W PAR20",2500,50,100,6295,50,8,300,1.04166666666667,3e3,763.2,480,0,7.95,5,1],["9W LED",5e4,150,100,15e3,9,8,300,20.8333333333333,540,0,0,0,0,0,0],["75W PAR30",2500,50,100,6295,75,8,300,1.04166666666667,4500,763.2,480,0,7.95,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["50W PAR30",2500,50,100,6295,50,8,300,1.04166666666667,3e3,763.2,480,0,7.95,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["45W PAR38",2500,50,100,6295,45,8,300,1.04166666666667,2700,763.2,480,0,7.95,5,1],["12W LED",5e4,150,100,15e3,12,8,300,20.8333333333333,720,0,0,0,0,0,0],["90W PAR38",2500,50,100,6295,90,8,300,1.04166666666667,54
100,763.2,480,0,7.95,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["75W MR16",2e3,50,100,6295,75,8,300,.833333333333333,4500,954,600,0,7.95,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["50W MR16",2e3,50,100,6195,50,8,300,.833333333333333,3e3,834,600,0,6.95,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["35W MR16",2e3,50,100,6295,35,8,300,.833333333333333,2100,954,600,0,7.95,5,1],["12W LED",5e4,150,100,15e3,12,8,300,20.8333333333333,720,0,0,0,0,0,0],["60W A19",1e3,50,100,5644,60,8,300,.416666666666667,3600,345.6,1200,0,1.44,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["50W PAR20",2e3,50,100,5995,50,8,300,.833333333333333,3e3,594,600,0,4.95,5,1],["12W LED",5e4,150,100,15e3,12,8,300,20.8333333333333,720,0,0,0,0,0,0],["60W BR30",2e3,50,100,6065,60,8,300,.833333333333333,3600,678,600,0,5.65,5,1],["18W LED",5e4,150,100,15e3,18,8,300,20.8333333333333,1080,0,0,0,0,0,0],["60W BR40",2e3,50,100,6185,60,8,300,.833333333333333,3600,822,600,0,6.85,5,1],["12W LED",5e4,150,100,15e3,12,8,300,20.8333333333333,720,0,0,0,0,0,0]],p=[],ts=[];function printout(){$("#result").fadeOut(200),calc();for(var t=0;t<d[f].length;t++)$("span.l0-"+t).text(cV(d[f][t],t)),$("span.l1-"+t).text(cV(d[f+1][t],t));$("#py").text(cV(p[f/2],8));for(var e=v="",o=0,n=ts[f/2];o<n.length;o++)e+=(0==o?"":"<br />")+"Total "+(o+1)+" year"+(0==o?"":"s")+":",v+=(0==o?"":"<br />")+"$ "+cV(n[o],8);$("#tsl").html(e),$("#ts").html(v),$("#result").fadeIn(200)}function cV(t,e){return"string"!=typeof t&&(null==t||isNaN(t)?t="":(4==e||e>
1=8)&&(t=parseFloat(t).toFixed(2),8!=e&&(t=parseFloat(t).toThousand()))),t}function calc(){for(var t=0;t<d.length;t++)if(d[t][3]=b[4],d[t][6]=b[1],d[t][7]=b[2],d[t][14]=b[3],d[t][4]=(d[t][2]+(d[t][13]+d[t][14])*d[t][15])*d[t][3],d[t][8]=d[t][1]/(d[t][6]*d[t][7]),d[t][9]=b[0]*d[t][3]*d[t][5]*d[t][6]*d[t][7]/1e3,d[t][10]=d[t][3]*d[t][13]*d[t][15]/d[t][8],d[t][11]=d[t][3]*d[t][14]*d[t][15]/d[t][8],0==d[t][15]){var e=t-1,o=d[e][4]-d[t][4],n=d[e][9]-d[t][9]+d[e][10]-d[t][10]+d[e][11]-d[t][11];p[e/2]=-o/n;for(var a=[],i=parseInt(d[t][8]),r=0;r<i&&r<10;r++)a[r]=(o+n*(r+1)).toFixed(2);ts[e/2]=a}}function kEvent(){$("#fx").change((function(){f=0|$("#fx option:selected").val(),$("input#i0-2").val(d[f][2]),$("input#i1-2").val(d[f+1][2]),$("input#i0-13").val(d[f][13]),printout()})),$("input.up").change((function(){var t=parseFloat($(this).val()),e=$(this).attr("id").replace("i","").split("-");f=0|$("#fx option:selected").val();var o=parseInt(e[0])+f,n=parseInt(e[1]);isNaN(t)||t<=0?(t=d[o][n],$(this).val(t)):d[o][n]=parseFloat(t)})),$("input.base").change((function(){var t=parseFloat($(this).val()),e=$(this).attr("id").replace("b","");isNaN(t)||t<=0||"1"==e&&t>24||"2"==e&&t>365?(t=b[e],$(this).val(t)):b[e]=parseFloat(t)}))}function initOpt(){var t=$("select#fx");for(var e in t.empty(),$.each(d,(function(e,o){e%2==0&&t.append('<option value="'+e+'"'+(0==e?' selected="selected"':"")+">"+d[e][0]+" vs "+d[e+1][0]+"</option>")})),b)$("#b"+e).val(b[e]);$.each($("input.up"),(function(t,e){2==t?$(e).val(d[0][13]):$(e).val(d[t][2])}))}Number.prototype.toFixed||(Number.prototype.toFixed=function(n){with(Math)return round(Number(this)*pow(10,n))/pow(10,n)}),Number.prototype.toThousand||(Number.prototype.toThousand=function(){return String(this).replace(/(\d{1,3})(?=(\d{3})+(?:$|\D))/g,"$1,")}),$(document).ready((function(){initOpt(),kEvent(),printout(),$("#cal").click((function(){printout()}))}))})),$(document).ready((function(){$("div.ppid-lightbox-video img").click((function(t){let e=$(this).closest(".ppid-lightbox-video").attr("data-video-url")||$(".video-modal").attr("url");if(!e)return;$(".video-modal").first().attr("url",e).html('<iframe src="'+e+'?badge=0&autopause=0&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen="" title="Product video"></iframe>'),$(".video-modal").first().addClass("showVideoModel"),$(".video-background").first().addClass("showOverlay")}))})),$(document).ready((function(){$(".modal-close, .video-background").click((function(){$(".video-modal").removeClass("showVideoModel"),$(".video-modal iframe").remove(),$(".video-background").removeClass("showOverlay")}))})),$("#download-53945 a>div").wrap('<a href="http://ebook.waclighting.com/2021/waclighting/WAC_2021_SUPPLEMENT.pdf" target="blank" />');
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.