window._hzlang = window._hzlang || {};
window.hzmr = window.hzmr || [];
/************* Start jmoduleLoader.js for locale en-GB **************/
try {HZ.utils.loadJukwaaModule=function(t,e){HZ.utils.StylesheetLoader.load(t.css),t.ctx&&(HZ.ctx=$.extend(!0,{},HZ.ctx,t.ctx),HZ.ctx.rid=HZ.utils.Logger&&HZ.utils.Logger.pageRequestId?HZ.utils.Logger.pageRequestId:null),HZ.utils.ScriptLoader.load(t.js,e,!0)};

window.hzmr.push("jmoduleLoader:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End jmoduleLoader.js  **************/
/************* Start consents.js for locale en-GB **************/
try {HZ.ns("HZ.modules.Consents"),HZ.modules.Consents=new function(){var s=this;this.init=function(n){this.setSensitiveActionFlags((n=n||{}).saf||0),this.setConsentCountryCode(n.consentCountryCode||""),this.setConsentLanguageCode(n.consentLanguageCode||""),n.showVisitorBanner&&this.fetchWebModule()},this.setConsentLanguageCode=function(n){this.consentLanguageCode=n},this.getConsentLanguageCode=function(){return this.consentLanguageCode},this.setConsentCountryCode=function(n){this.consentCountryCode=n},this.getConsentCountryCode=function(){return this.consentCountryCode},this.setSensitiveActionFlags=function(n){this.sensitiveActionFlags=n},this.getSensitiveActionFlags=function(){return this.sensitiveActionFlags},this.assertSensitiveActions=function(n){var e=[];if(n&&n.length)for(var t=0;t<n.length;t++)s.assertSensitiveAction(n[t])||e.push(n[t]);return e},this.assertSensitiveAction=function(n){return!!(parseInt(n,10)&this.getSensitiveActionFlags())},this.registerConsents=function(n){return this.handleConsentAjax("submitConsents",n).then(function(n){n&&n.sensitiveActionFlags&&s.setSensitiveActionFlags(n.sensitiveActionFlags)},function(){})},this.getConsentsForUserTypes=function(n){return this.handleConsentAjax("getConsentsForUserTypes",n)},this.getConsentsForSensitiveActions=function(n){return this.handleConsentAjax("getConsentsForSensitiveActions",n)},this.handleConsentAjax=function(e,n,t){n={action:e,c2:1,consentsData:n};return"j"===HZ.utils.Logger.env?n._csrf=HZ.data.CSRFToken:n.__ct=HZ.data.CSRFToken,t&&t.webModuleRequest&&(n.wm=1),$.ajax({url:n.wm?"/j/ajax/consentsWebModule":"/j/ajax/consents",method:"POST",data:n}).done(function(n){return n}).fail(function(n){console.error(n),HZ.utils&&HZ.utils.Logger&&HZ.utils.Logger.logCountInTSDB&&HZ.utils.Logger.logCountInTSDB("tracking","consent_ajax_error_"+e)})},this.fetchWebModule=function(){return this.handleConsentAjax(null,null,{webModuleRequest:!0}).then(function(n){HZ.utils.loadJukwaaModule(n,s.loadModule)})},this.loadModule=function(){var n,e;HZ&&HZ.WebModule&&(e="consentsWebModule",n=document.getElementById("hz-consents"),HZ.WebModule.render(e,n,{isPageReloadRequired:!0}),e=HZ.WebModule.getModule(e),s.webModule=new e)}};

window.hzmr.push("consents:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End consents.js  **************/
/************* Start filterRenderer.js for locale en-GB **************/
try {HZ.navigation.Utils=new function(){function e(e){e.stopPropagation();var t=$(e.target).closest(".sidebar"),i=$(t).find(".sidebar-header .toggle"),o=$(t).find(".sidebar-body"),e=Math.floor(o.height()/200*300),e=Math.min(e,800);i.hasClass("more-icon")?(i.addClass("down-icon").removeClass("more-icon"),o.slideDown(e,function(){t.removeClass("state-collapsed")})):i.hasClass("down-icon")&&(i.addClass("more-icon").removeClass("down-icon"),o.slideUp(e,function(){t.addClass("state-collapsed")}))}this.expandBox=function(e){$("#"+e+" .hidden").removeClass("hidden"),$("#"+e+"More").hide()},this.handleMetroAreaChanged=function(e){var t=document.getElementById("metroAreaSelector"),e=e,t=""!==(t=t.options[t.selectedIndex].value)?"/"+t:"";0<e.indexOf("/_3_")?e=e.replace("/_3_",t):0<e.indexOf("/_19_")?e=e.replace("/_19_",t):e+=t,document.location=e},this.handlePriceFilterChanged=function(e,t){var i=e?$(e.target):$(this).parents(".price-filter-form"),e=i.find(".fromPrice").val(),i=i.find(".toPrice").val();""!=e&&!$.isNumeric(e)||""!=i&&!$.isNumeric(i)||""!=e&&""!=i&&(e=parseInt(e,10),(i=parseInt(i,10))<e)?window.location.reload():(e=Math.max(0,e),""!=i&&(i=Math.max(0,i)),document.location=t.replace(/XXXXX/,e).replace(/YYYYY/,i))},this.attachTickBudgetBox=function(){$(document).ready(function(){$(".filter-budget").on("click","li",function(e){e=$(e.currentTarget);e.hasClass("selected")?e.removeClass("selected"):(e.addClass("selected"),e.siblings().removeClass("selected"))})})},this.attachMultiSelectionToList=function(){$(document).ready(function(){$(".multiselect").on("click","a",function(e){e=$(e.currentTarget).parent(".sidebar-item");e.hasClass("selected")?e.removeClass("selected"):e.addClass("selected")})})},this.initSidebarToggle=function(){$(document).ready(function(){$(".sidebar-header").click(e),$(".sidebar-header .toggle").click(e),$(".sidebar-icon.info-icon").hover(function(){var e=$(this);e.tipBubble({content:e.attr("tooltip-data"),id:"sidebar-tooltip",width:100,offsetX:5,offsetY:16,borderColor:"#ccc",showCloseBtn:!1,position:"absolute",attachTo:"body",fadeDuration:0})},function(){$(this).tipBubble("hide")})})},this.init=function(){this.initSidebarToggle(),this.attachMultiSelectionToList()}};

window.hzmr.push("filterRenderer:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End filterRenderer.js  **************/
/************* Start hzGtm.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),HZ.utils.Gtm=new function(){var e={enabled:!1,visitMonth:null,refId:null},i=null;this.init=function(t){i=$.extend({},e,t)},this.pushData=function(t,e,n){var a;i.enabled&&(e=e||t,(a={}).event=t,a.ecomm_pagetype=e,a.visit_month=i.visitMonth,i.refId?a.m_refid=i.refId:a.m_refid="",n&&$.extend(a,n),"undefined"==typeof dataLayer&&(dataLayer=[]),dataLayer.push(a),HZ.utils.Logger.logCountInTSDB("gtm_data",t+"."+e,1,"data"))}};

window.hzmr.push("hzGtm:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End hzGtm.js  **************/
/************* Start standardFooter.js for locale en-GB **************/
try {$(document).ready(function(){var t=$("#siteSelector");t.length&&t.on("change",function(){var t=$(this).find(":selected"),e=t.attr("objid"),t=t.text(),t={scopeId:"site-redirection-footer",compId:"standard-footer",objId:e,currentSiteId:HZ.utils.Config.currentSiteId,anchorText:t};HZ.utils.Logger.sendEventLogLightweight(HZ.utils.Logger.EVENT_TYPE_USER_CLICK,t)}),$(".footer-global-site").on("click",function(t){t.preventDefault(),t.stopPropagation();t=$(this).data("params");t&&HZ.utils.Html.postToUrl(t.actionUrl,t.params)})});

window.hzmr.push("standardFooter:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End standardFooter.js  **************/
/************* Start scrollToTop.js for locale en-GB **************/
try {HZ.ns("HZ.StickyFooterActions"),HZ.StickyFooterActions=function(){},HZ.StickyFooterActions.prototype={init:function(o){this.el=document.getElementById("stickyFooterActions"),this.$el=$(this.el),this.attachEvents(),this.currentScrollPosition=$(window).scrollTop(),350<this.currentScrollPosition&&this.$el.removeClass("hide-actions")},attachEvents:function(){$(window).on("scroll.stickyFooterActions",$.throttle(250,this.handleScroll.bind(this)))},detachEvents:function(){$(window).off(".stickyFooterActions")},handleScroll:function(o){var t=$(window).scrollTop();t>this.currentScrollPosition&&350<t?this.$el.removeClass("hide-actions"):t<=350&&this.$el.addClass("hide-actions"),this.currentScrollPosition=t}},HZ.ns("HZ.modules.ScrollToTop"),HZ.modules.ScrollToTop=function(){function o(o){$("body,html").animate({scrollTop:0},500,"swing")}function t(){var o=!0;if(n||0!==n.length){var t=document.body.clientHeight,i=document.body.scrollHeight;return i&&i/t<1.5?(n.hide(),o=!1):n.show(),o}}var n;return $(document).ready(function(){(n=$("#ScrollToTopContainer")).on("click",o),n.hasClass("show-action")||t()||window.setTimeout(t,2500)}),this}();

window.hzmr.push("scrollToTop:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End scrollToTop.js  **************/
/************* Start extracting text for addToIdeabookDialog.js for locale en-GB **************/
(function(){var _hzxt={"Please enter a value for your zip code.":"Please enter a value for your postcode.","Create New":"Type New Ideabook Name Here","Add notes, What do you like about this photo?":"Add notes. What do you like about this photo?","Shared With You":"Shared with You","Search For Ideabook":"Search for Ideabook","Zip Code":"Postcode","The colors displayed on-screen may not match {mft} color standards":"The colours displayed on-screen may not match {mft} colour standards","Remodel your dream home from start to finish:":"Design your dream home from start to finish:"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for addToIdeabookDialog.js  **************/
/************* Start addToIdeabookDialog.js for locale en-GB **************/
try {HZ.ns("HZ.spaceActions"),HZ.spaceActions.AddToIdeabookDialog=new function(){var r,n,v=1,m=4,d=7,b=8,f=10,y=11,i=[],c=!1,k=[],l=!1,s=!1,u=!1,S=null,I=null,h=null,g=null,w=null,p=null,C=null,H=null,T=null,Z=null,t=null,P=null,_=!0,x=!1,A=!1,L=!1,e=!1,D=[],G=[],E=null,z=null,O=!1,o=null,a=!1,j=_hgt("Photo Added"),M=!0,U=1,B=3,R="aticfp",N="aticlpw",F="atici",W="atictp",Y="atitm",V="atitb",K="aticcp";this.init=function(e){S=e},this.setColorPalette=function(e,a,t){I=e,h=a,g=t,j=_hgt("Palette Added")},this.setDelegate=function(e){t=e},this.setTrustPilotReview=function(e){A=e},this.setGalleries=function(e){var a;if(H={},(C=e).recent&&0<C.recent.length)for(var t in C.recent)a=C.recent[t],H[a.id]=a;if(C.own&&0<C.own.length)for(var t in C.own)a=C.own[t],H[a.id]=a;if(C.shared&&0<C.shared.length)for(var t in C.shared)a=C.shared[t],H[a.id]=a},this.setImageId=function(e){w=e},this.getGalleries=function(){return C},this.setUserName=function(e){0},this.setShowIdeabookConfirm=function(e){_=e},this.setWelcomeScreen=function(e){c=e},this.setLastGalleryId=function(e){T=e,H&&H[T]&&(E=H[T])},this.setWishListIdeabookId=function(e){0},this.getLastGalleryId=function(){return T},this.setDefaultGalleryTitle=function(e){0},this.setUserId=function(e){o=e},this.setOnSuccess=function(e){P=e},this.setMultipleSelection=function(e){M=e};function q(e){if(ke(""),O)return!1;var a=$("#newGalleryInput").val();return te(a),!1}function J(e){var a=$(this).val(),t=$(".create-gallery-btn");if(""==a?t.hide():t.show(),13===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1}function Q(e){var a=$(this).val();if(13===e.keyCode)return e.preventDefault(),e.stopPropagation(),O||te(a),!1}function X(){$(this).toggleClass("selected"),n.checked=!n.checked}var ee=function(e){HZ.ui.AjaxThrobber.setInCall(!1),O=!1;var a,t=$(".create-gallery-btn"),o=$("#newGalleryInput");"true"==e.success?(a={title:e.galleryName,id:e.galleryId,isPrivate:e.isPrivate,isFeatured:e.isFeatured},se({title:a.title,id:a.id},$("#gallerySelectComboBox .own-galleries-list"),!0,!0,!0,!0),D.push(a),C.own.push(a),H[a.id]=a):ke(e.error),$("#newAddToMyGalleryForm").click(),t.hide(),o.val("")},ae=function(t){var o=null;return $.each(H,function(e,a){a.title&&a.title.toLowerCase()===t.toLowerCase()&&(o=e)}),o},te=function(e){var a;""!=e&&(null==(a=ae(e))?(O=!0,HZ.ui.AjaxThrobber.setInCall(!0),HZ.ajaz.Services.newGallery(e,"",!1,null,ee)):(z.comboSelect("hasOption",{value:a})&&(z.comboSelect("setHasTakenAction",{hasTakenAction:!0}),z.comboSelect("addAdditionalSelectedOptions",{value:a})),z.comboSelect("toggleDropdown")))};this.handleNewGalleryNameKeyupMobile=function(e){var a=$(".new-gallery"),t=a.find(".create-gallery");""==a.find("#newGalleryInput").val()?t.hide():t.show()},this.handleNewGalleryNameKeydownMobile=function(e){var a=$(".new-gallery"),t=a.find("#newGalleryInput"),o=t.val(),a=a.find(".create-gallery");e&&13==e.keyCode&&(e.preventDefault()&&e.stopPropagation(),O||(te(o),t.val(""),a.hide()))};this.getDialogTemplate=function(){var e=$("<div id='newAddToIdeabookDialog_0' style='display:none;'><div class='modal-header'>"+_hgt("Save to Ideabook")+"</div><div class='modal-body'><form id='newAddToMyGalleryForm' name='addToMyGalleryForm' action='javascript:;'><div class='chooseGallery form-horizontal row'><div class='addImageWrapper'><img class='dialogImage' src=''></div><div class='addRightContent'><div class='hzp-comboselect' id='gallerySelectComboBox'><div class='hzp-comboselect-trigger'><button class='btn btn-default btn-block dropdown-toggle hzp-comboselect-trigger-button'>"+_hgt("Select an ideabook")+"</button>"+(HZ.utils.Config.isResponsive?"<span class='hzi-font hzi-MH-Close close-comboselect-menu'></span>":"")+"</div><div class='hzp-comboselect-combo dropdown-menu'><div class='hzp-comboselect-search'><span class='hzp-comboselect-search-icon hzi-font hzi-Search'></span><input class='hzp-comboselect-search-input' type='text' autocomplete='off' /><div class='hzp-comboselect-no-result'>"+_hgt("Could not find any ideabooks matching search phrase")+"</div></div><div class='hzp-comboselect-select'><div class='own-galleries'><div class='gallery-group-name text-s text-dt-m text-bold mbs mtm'>"+_hgt("Your Ideabooks")+"</div><ul class='own-galleries-list list-unstyled'></ul></div><div class='shared-galleries'><div class='gallery-group-name text-s text-dt-m text-bold mbs mtm'>"+_hgt("Shared With You")+"</div><ul class='shared-galleries-list list-unstyled'></ul></div></div>"+(HZ.utils.Config.isResponsive?"<li class='new-gallery'><div class='new-gallery-action'><span class='hzi-font hzi-Add-Selection'></span><input id='newGalleryInput' type='text' onkeydown ='HZ.spaceActions.AddToIdeabookDialog.handleNewGalleryNameKeydownMobile.call(this, event);' onkeyup='HZ.spaceActions.AddToIdeabookDialog.handleNewGalleryNameKeyupMobile.call(this, event);' placeholder='"+_hgt("Create New")+"'/><button class='create-gallery create-gallery-action-btn btn btn-primary text-bold' style='display: none;'>"+_hgt("Create")+"</button></div></li>":"<li class='new-gallery'><span class='hzi-font hzi-Add-Selection'></span><input id='newGalleryInput' type='text' /><button class='create-gallery-btn btn btn-primary text-bold' type='button' style='display:none;'>"+_hgt("Create")+"</button></li>")+"</div></div><div class='add-comment'><textarea class='form-control' id='gallerySpaceComments' name='gallerySpaceComments'></textarea><div class='comment-privacy hidden'><a class='comment-privacy-control' href='javascript:void(0);'><span class='add-white-box hzi-font hzi-Check-Sidenav'></span><span class='comment-privacy-text text-xs text-dt-xs'>"+_hgt("Make comment private")+"</span></a></div><label class='checkbox-inline hidden' for='gallerySpaceCommentsPrivacy'><input id='gallerySpaceCommentsPrivacy' name='gallerySpaceCommentsPrivacy' type='checkbox' />"+_hgt("Make Comment Private")+"</label></div>"+(HZ.utils.Config.isResponsive?"<div class='add-comment-placeholder'></div>":"")+"</div><div class='col-xs-12'><div class='addToGalleryFormError alert-warning'></div></div></div></form></div><div class='modal-footer'></div></div>");return e.find(".hzp-comboselect-search-input").attr("placeholder",_hgt("Search For Ideabook")),e.find("#newGalleryInput").attr("placeholder",_hgt("Create New")),e.find("#gallerySpaceComments").attr("placeholder",_hgt("Add notes, What do you like about this photo?")),e},this.getView=function(){var e,a,t,o;Z||(Z=$("<div id='addToIdeabookDialog'></div>").append("<div id='newAddToIdeabookDialog_5' style='display:none;'><div class='modal-header'>"+_hgt("Save to Ideabook")+"</div><div class='modal-body'><div class='hzLoadingDlgThrobber'></div><div class='hzLoadingDlgMessage'>"+_hgt("Loading your ideabooks...")+"</div></div></div></div>").append(this.getDialogTemplate()).append("<div id='newAddToIdeabookDialog_"+d+"' style='display:none;' scopeid='share_ideabook'><div class='modal-header'>"+j+"</div><div class='modal-body'><div class='form-horizontal row' id='collaborateSection'><div class='addImageWrapper'><img class='dialogImage' src=''></div><div class='addRightContent'><div class='header-5 text-bold top mbxl collaborate-form-header'></div><div id='collaborateBody'></div></div><div class='col-xs-12'><div class='addToGalleryFormError alert-warning'></div></div></div></div><div class='modal-footer'><a class='text-muted collaborate-cancel pull-left' href='javascript:void(0);'>"+_hgt("No, thanks")+"</a></div></div>").append("<div id='newAddToIdeabookDialog_"+v+"' style='display:none;' scopeid='new_confirm'><div class='modal-header'>"+j+"</div><div class='modal-body'><div class='row'><div class='addImageWrapper'><img class='dialogImage'></div><div class='addRightContent'><div id='ideabookCompletedMsg' class='addToIdeabookCompletedMsg text-bold text-l mbm top'></div><div class='confirm-cta header-5'><a id='addToIdeabookCTAMsg' class='colorLink trackMe' compid='pro_banner' href='"+HZ.utils.Links.getPageUrl("professionals#")+"'><span class='hzi-font hzi-Pro-Fill'></span>"+_hgt("Ready to Renovate? Find a local Pro")+"<span class='more-icon'></span></a></div></div><div class='col-xs-12'><div class='addToGalleryFormError alert-warning'></div></div></div></div><div class='modal-footer'></div></div>").append("<div id='newAddToIdeabookDialog_"+m+"' style='display:none;'><div class='modal-header'>"+j+"</div><div class='modal-body'><div class='row'><div id='trustPilotConfirmImage' class='addImageWrapper'><img class='dialogImage'></div><div class='addRightContent'><div id='trustPilotIdeabookCompletedMsg' class='addToIdeabookCompletedMsg text-bold text-l mbm top'></div><div class='confirm-cta header-5'><a id='trustPilotCTAMsg' class='colorLink' href='javascript:;' target='_blank'><span class='hzi-font hzi-Heart'></span>"+_hgt("Love Houzz? Write a review about us")+"<span class='more-icon'></span></a></div></div><div class='col-xs-12'><div class='addToGalleryFormError alert-warning'></div></div></div></div><div class='modal-footer'></div></div>"),$("body").append(Z),e=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Cancel"),"",$.proxy(ye,this)),a=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Save to Ideabook"),"",$.proxy(pe,this),!1,!1,"trackMe","compid=add_ideabook"),$("#newAddToIdeabookDialog_0 .modal-footer",Z).append(HZ.ui.AjaxThrobber.getThrobber()).append(e).append(a),e=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Share"),"",$.proxy(ue,this),!1,!1,"trackMe collaborate-send","compid=send_share_ideabook"),$(".collaborate-cancel").click($.proxy(ye,this)),$("#newAddToIdeabookDialog_"+d+" .modal-footer",Z).append(HZ.ui.AjaxThrobber.getThrobber()).append(e),a=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Email{contextEmailVerb}",{contextEmailVerb:""}),"hzEmailSpace",fe,!1,!1,"trackMe","compid=send_email"),e=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Done"),"",$.proxy(ye,this),!1,!1,"trackMe","compid=cancel_old_confirm"),$("#newAddToIdeabookDialog_"+v+" .modal-footer",Z).append(e).append(a),e=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("No Thanks"),"",$.proxy(ye,this)),a=$("<a id='trustPilotReview' class='hzBtn primary' href='javascript:;' target='_blank'>"+_hgt("Review Houzz")+"</a>"),$("#newAddToIdeabookDialog_"+m+" .modal-footer",Z).append(e).append(a),r=$("#gallerySpaceComments")[0],n=$("#gallerySpaceCommentsPrivacy")[0],HZ.utils.Config.isResponsive?(a=$(".new-gallery"),t=a.find("#newGalleryInput"),(o=a.find(".create-gallery")).on("click",function(){var e=$("#newGalleryInput").val();O||(te(e),t.val(""),o.hide())})):($("#newGalleryInput").keydown(Q).keyup(J),$(".create-gallery-btn").click(q)),$(".comment-privacy-control").click(X),M||Z.addClass("single-selection-enabled"),ie()),c&&($("label[for='existingGalleryRadio']").innerHTML=_hgt("Create New Ideabook")+":",$("#newGalleryControl").addClass("extra-bottom-margin"));var l,i=HZ.utils.Config.isResponsive?S?HZ.utils.Links.getSpaceImageUrl(S,120,120):HZ.utils.Links.getImageUrl(w,120,120):S?HZ.utils.Links.getSpaceImageUrl(S,250,250):HZ.utils.Links.getImageUrl(w,250,250),s=Z.find(".dialogImage");return s&&(Z.find(".mftDisclaimer").remove(),I?(l=$("<div class='mftDisclaimer col-xs-12 mbs'><i>"+_hgt("The colors displayed on-screen may not match {mft} color standards",{mft:this.getPaletteManufacturer()})+"</i></div>"),Z.find(".chooseGallery").prepend(l),s.attr("src",this.getPaletteImgUrl())):(s.removeAttr("src"),(l=new Image).src=i,l.onload=function(){s.attr("src",i)})),Z},this.getPaletteImgUrl=function(){return $.isNumeric(g)?HZ.utils.Links.getGenerateColorPaletteImageLink(I,g):HZ.utils.Links.getGenerateColorPaletteImageLink(I,h)},this.getPaletteManufacturer=function(){var e,a=HZ.utils.ColorPicker.getPaintManufacturerDisplayName(h);return HZ.lb.Utils&&(e=HZ.lb.Utils.ColorPicker.getColorPickerAd(S),(e=HZ.lb.Utils.ColorPicker.getConfig(e))&&e.hasOwnProperty("advDisplayName")&&(a=e.advDisplayName)),a},this.viewLoaded=function(){var a;ke(""),r.value="",n.checked=!1,D=[],$(".comment-privacy-control").removeClass("selected"),HZ.ui.AjaxThrobber.setInCall(!1),C?(e?E&&z.comboSelect("setSelectedOptions",{value:E.id}):this.updateGalleriesComboBox(),ge(0),r.focus()):(ge(5),a=this,HZ.ajaz.Services.getMyGalleries(!1,function(e){e.galleries&&(a.setGalleries(e.galleries),a.updateGalleriesComboBox(),ge(0),window.setTimeout(function(){r.focus()},0))})),e=!0,$(".modal-dialog").addClass("add-collaborate-diag")},this.viewUnloaded=function(){$(".modal-dialog").removeClass("add-collaborate-diag"),$("html").off("click.dropdown.data-api")};var oe=function(){return z.comboSelect("getSelectedOptionValues")},le=function(){0===oe().length&&E&&(z.comboSelect("hasOption",{value:E.id})?z.comboSelect("setSelectedOptions",{value:E.id}):E=null)},ie=function(){var e={clearSelectionsOnOpen:!0,multipleSelection:M},a={clearSelectionsOnOpen:!0,hasSearch:!1,multipleSelection:M};HZ.utils.Config.isResponsive?(z=$("#gallerySelectComboBox").comboSelect(a)).on("combo-select-dropdown-open",function(){var e=$(this);e.find(".hzp-comboselect-trigger").addClass("opened"),""!=e.find("#newGalleryInput").val()?e.find(".create-gallery").show():e.find(".create-gallery").hide()}).on("combo-select-dropdown-close",function(){le(),$(this).find(".hzp-comboselect-trigger").removeClass("opened")}).on("click",".close-comboselect-menu",function(){z.comboSelect("toggleDropdown")}):(z=$("#gallerySelectComboBox").comboSelect(e)).on("combo-select-dropdown-open",function(){z.find("#newGalleryInput").val("").trigger("keyup")}).on("combo-select-dropdown-close",function(){le(),Z&&Z.find("#gallerySpaceComments").length&&Z.find("#gallerySpaceComments").focus()});var t=z.find(".own-galleries"),o=z.find(".shared-galleries"),l=".hzp-comboselect-search-no-match";z.on("combo-select-search",function(){0===t.find(".own-galleries-list").children().not(l).length?t.hide():t.show(),0===o.find(".shared-galleries-list").children().not(l).length?o.hide():o.show()}),z.on("combo-select-search-no-result",function(){t.hide(),o.hide()})},se=function(e,a,t,o,l,i){var s=e.featured?" ("+_hgt("Featured")+")":"",r=E&&E.id===e.id,n=e.isPrivate?" gallery-private":"",s=$("<li class='hzp-comboselect-option "+n+"' data-value='"+e.id+"' tabindex='0'><span class='hzp-comboselect-option-check hzi-font hzi-Check-Sidenav'></span>"+e.title+s+"</li>");s.data("gallery",e),t||r?a.prepend(s):a.append(s),(r||o)&&(i&&z.comboSelect("setHasTakenAction",{hasTakenAction:!0}),z.comboSelect("addAdditionalSelectedOptions",{value:e.id})),l&&$("#gallerySelectComboBox .select").animate({scrollTop:0},500)};this.updateGalleriesComboBox=function(){var e=$("#gallerySelectComboBox"),a=e.find(".hzp-comboselect-trigger-button"),t=e.find(".hzp-comboselect-select"),o=t.find(".own-galleries"),l=o.find(".own-galleries-list"),e=t.find(".shared-galleries"),i=e.find(".shared-galleries-list"),s=C.recent||[],r=C.own||[],n=C.shared||[],t=s.concat(r).concat(n),d={};l.empty(),i.empty(),T&&H[T]?(E=H[T],a.text(E.title)):t.length?(E=t[0],a.text(E.title)):a.text(_hgt("Select an ideabook"));var c={},u={};if($.each(r,function(e,a){c[a.id]=1}),$.each(n,function(e,a){u[a.id]=1}),0<s.length){o.show(),e.show();for(var h=0;h<s.length;h++){var g=s[h],p=!0;E&&(g.id==E.id||d[g.id])||(c[g.id]?(se(g,l,p),d[g.id]=!0):u[g.id]&&(se(g,i,p),d[g.id]=!0))}}else o.hide(),e.hide();if(0<r.length){o.show();for(h=0;h<r.length;h++){g=r[h],p=E&&g.id===E.id;d[g.id]||(d[g.id]=!0,se(g,l,p))}}else o.hide();if(0<n.length){e.show();for(h=0;h<n.length;h++){g=n[h],p=E&&g.id===E.id;d[g.id]||(d[g.id]=!0,se(g,i,p))}}else e.hide()};var re=function(e){var a=$("#newAddToIdeabookDialog_"+d+" .addImageWrapper"),t=o?HZ.utils.Links.getUserImageUrl(o,0):null;a.find(".addImageWrapper-inner").remove(),a.append("<div class='addImageWrapper-inner'><div class='collaborate-meta text-left'><div class='one-line text-bold'>"+e+"</div><div class='one-line text-m text-dt-s'>"+_hgt("1 photo")+"</div></div>"+(t?"<div class='user-image'><img src='"+t+"' class='hz-user-image user-small-thumb' /></div>":"")+"</div>")},ne=function(e,a,t){var o={hasOwnerRow:!1,hasSaveWarning:!1,hasPrivacySettings:!1,galleryId:a,isFromCreateFlow:!0},l=$(".collaborate-send"),a=$("#collaborateBody"),o=HZ.galleries.ShareGalleryComponent.getShareGalleryComponent(t,o);$(".collaborate-form-header").empty().append(_hgt("Get feedback from family, friends, and pros")),re(e),a.empty().append(o),ge(d),HZ.utils.Logger.sendEventLog(HZ.shareGallery.events.POST_IDEABOOK_COLLABORATE),l.addClass("disabled"),$.each(G,function(e,a){HZ.events.unsubscribeById(a)}),(G=[]).push(HZ.events.subscribe(this,HZ.galleries.ShareGalleryComponent.publicShareGalleryEvents.ADD_NEW_COLLABORATOR_SUCCESS,function(){l.removeClass("disabled")}),HZ.events.subscribe(this,HZ.galleries.ShareGalleryComponent.publicShareGalleryEvents.SHARE_GALLERY_COMPONENT_IS_FETCHING_DATA,function(){HZ.ui.AjaxThrobber.setInCall(!0)}),HZ.events.subscribe(this,HZ.galleries.ShareGalleryComponent.publicShareGalleryEvents.SHARE_GALLERY_COMPONENT_DATA_FETCH_COMPLETE,function(){HZ.ui.AjaxThrobber.setInCall(!1)}))},de=function(a,t){$("#collaborateBody");HZ.ui.AjaxThrobber.setInCall(!1),HZ.ajaz.Services.initShareGallery(t,function(e){"true"==e.success&&ne(a,t,e)})},ce=function(e,a){var t=e.title,o=e.id;L||HZ&&HZ.galleries&&HZ.galleries.ShareGalleryComponent?(de.call(this,t,o),a&&ke(ve(a))):(HZ.ui.AjaxThrobber.setInCall(!0),HZ.utils.ResourceLoader.requireCollaborateResources(function(){L=!0,de.call(this,t,o),a&&ke(ve(a))}.bind(this)))},ue=function(){if(a)return!1;HZ.ui.AjaxThrobber.setInCall(!0),HZ.galleries.ShareGalleryComponent.hasCollaboratorsToAdd()?(a=!0,HZ.galleries.ShareGalleryComponent.savePermissions(he)):(HZ.ui.AjaxThrobber.setInCall(!1),ke(_hgt("You have not selected any users to add as collaborators to this ideabook")))},he=function(e){HZ.ui.AjaxThrobber.setInCall(!1),a=!1,"true"==e.success?(ye(),HZ.ui.yamdi.Common.alert(_hgt("Invites Sent"),_hgt("Ideabook has been successfully shared."))):ke(e.error)};function ge(e){var a="newAddToIdeabookDialog_"+e;Z.children().each(function(e){this.style.display=this.id==a?"block":"none"}),t.center()}function pe(){var e;if(!HZ.ui.AjaxThrobber.isInCall()){if(e=z.comboSelect("getSelectedOptionValues"),ke(""),0==e.length&&!E)return ke(_hgt("Please select an ideabook"));HZ.ui.AjaxThrobber.setInCall(!0),i.length<=0&&be();var a=n.checked?U:B,t=r.value;if(null!==I){var o=h;return $.isNumeric(g)&&(o=g),void(1<e.length?HZ.ajaz.Services.saveColorPaletteMulti(S,I,o,JSON.stringify(e),a,t,$.proxy(me,this)):1==e.length?HZ.ajaz.Services.saveColorPalette(S,I,o,e[0],t,a,null,$.proxy(me,this)):E&&HZ.ajaz.Services.saveColorPalette(S,I,o,E.id,t,a,null,$.proxy(me,this)))}1<e.length?HZ.ajaz.Services.addToGalleries(S,JSON.stringify(e),a,t,$.proxy(me,this)):1==e.length?HZ.ajaz.Services.addToGallery(S,null,e[0],a,t,$.proxy(me,this)):E&&HZ.ajaz.Services.addToGallery(S,null,E.id,a,t,$.proxy(me,this))}}this.switchDialogToProWizard=function(){var e=HZ.professionals.ProSearchWidget.getSearchDialog("save_to_ideabook",!1);HZ.ui.Yamdi.switchDialog(e)};var ve=function(e){var t=$("<div>");return $.each(e,function(e,a){t.append($("<div class='gallery-error'>"+a+"</div>"))}),t.html()};function me(e){var t,o,a;HZ.ui.AjaxThrobber.setInCall(!1),"true"==e.success?(!1===HZ.lb.Config.ideaBookTipAlreadyShown&&("function"==typeof showIdeaBookTip&&showIdeaBookTip(),HZ.ajaz.Services.setVisitorProperty(HZ.ajaz.Services.VISITOR_PROPERTY_IDEABOOK_TIP_PHOTO_SAVED,"true")),void 0!==(p=e).galleryIds&&(t=e.galleryIds),(o=void 0!==e.galleryId?e.galleryId:o)&&0!=o?this.setLastGalleryId(e.galleryId):t&&t.length&&this.setLastGalleryId(t[0]),(a=$(D).filter(function(e,a){return t?-1!=$.inArray(parseInt(a.id),t):o?a.id==o:void 0}))&&1==a.length?ce.call(this,a[0],e.galleryErrors):(l=!(!e.hasOwnProperty("localProData")||$.isEmptyObject(e.localProData))&&(k=e.localProData,!0),s=!(!e.hasOwnProperty("organicContactLocalProsData")||$.isEmptyObject(e.organicContactLocalProsData))&&(e.organicContactLocalProsData,!0),e.proServiceSuggestionData&&(u=!0),e.showProWizardLaunchCTA&&(x=e.showProWizardLaunchCTA),c&&P?(P(),HZ.ajaz.Services.setVisitorProperty(HZ.ajaz.Services.VISITOR_PROPERTY_IDEABOOK_TIP_PHOTO_SAVED,"true")):_?(function(a,e){var t,o=a.galleryTitle,l=a.galleryIds,i=a.galleryId,s=HZ.utils.Links.getGalleryLink(i),r=[],n=$("#addToIdeabookCTAMsg"),d=$("#trustPilotCTAMsg");l&&(r=$.map(l,function(e){return H[e]}));e!=v&&e!=m&&e!=f||(r=$.map(r,function(e){return"<a class='colorLink trackMe' class='add-to-gallery-link' href='"+HZ.utils.Links.getGalleryLink(e.id)+"'>"+e.title+"</a>"}).join(", "),t=o&&I?"<b>"+_hgt("This palette has been added to:")+'</b><br/><a class="colorLink trackMe text-bold" compid="confirm_color_palette" id="addToIdeabookGalleryLink" href="'+HZ.utils.Links.getGalleryLink(i)+'">'+o+"</a><br/></br/>":o?"<b>"+_hgt("This photo has been added to:")+'</b><br/><a class="colorLink trackMe text-bold" compid="confirm_gallery_name" id="addToIdeabookGalleryLink" href="'+HZ.utils.Links.getGalleryLink(i)+'">'+o+"</a><br/></br/>":l&&I?"<b>"+_hgt("This palette has been added to:")+"</b><br/>"+r:l?"<b>"+_hgt("This photo has been added to:")+"</b><br/>"+r:I?_hgt("This palette has been added to <t1>your ideabook</t1>.",{t1:{tag:"a",attr:{href:s,class:"colorLink",id:"addToIdeabookGalleryLink"}}})+"<br/><br/>":_hgt("This photo has been added to <t1>your ideabook</t1>.",{t1:{tag:"a",attr:{href:s,class:"colorLink",id:"addToIdeabookGalleryLink"}}})+"<br/><br/>");switch(e){case f:var c=new HZ.postSaveDialogs.LocalProsContact;c.init();var u=S?HZ.utils.Links.getSpaceImageUrl(S,80,80):HZ.utils.Links.getImageUrl(w,80,80),u=c.getLocalProsContactDialog(u,t);HZ.ui.Yamdi.switchDialog(u);break;case b:var h=new HZ.email.PostIdeabookConfirmContactProDialog;k.galleryUrl=s,k.galleryName=o,h.prepare(k),HZ.ui.Yamdi.switchDialog(h),HZ.utils.Logger.sendEventLog(K);break;case v:$("#ideabookCompletedMsg").empty().append(t),HZ.utils.Logger.sendEventLog(F),!0===a.isProduct?(n.hide(),$("#hzEmailSpace").val(_hgt("Email this Product"))):(g="javascript:HZ.spaceActions.AddToIdeabookDialog.switchDialogToProWizard();","new"==x?(h=_hgt("Ready to start a project? Click here"),n.addClass("new").html("<span class='hzi-font hzi-Project-Match-Toolset'></span>"+h+"<span class='more-icon'></span>").attr("href","javascript:;").attr("onclick",g).unbind("mousedown").bind("mousedown",function(){HZ.utils.Logger.sendEventLog(N)}).show()):("current"==x?n.addClass("current").attr("href","javascript:;").attr("onclick",g).unbind("mousedown").bind("mousedown",function(){HZ.utils.Logger.sendEventLog(N)}):n.attr("target","_blank").unbind("mousedown").bind("mousedown",function(){HZ.utils.Logger.sendEventLog(R)})).show(),$("#hzEmailSpace").val(_hgt("Email this Photo"))),ge(e),I=null;break;case y:var g=new HZ.ProServiceDialogs.QuestionnaireDialog;if(g.init(),a.proServiceSuggestionData&&a.proServiceSuggestionData.questions)try{var p=JSON.parse(a.proServiceSuggestionData.questions);p&&0<p.length&&HZ.ui.Yamdi.switchDialog(g.getDialog({questions:p,galleryLink:s,galleryName:a.galleryTitle,professionalTypeId:a.proServiceSuggestionData.professionalTypeId,serviceName:a.proServiceSuggestionData.serviceName,questionnaireId:a.proServiceSuggestionData.questionnaireId}))}catch(e){}break;case m:HZ.ui.AjaxThrobber.setInCall(!0),$("#trustPilotIdeabookCompletedMsg").empty().append(t),HZ.utils.Logger.sendEventLog(W),HZ.ajaz.Services.getTrustPilotUrl(HZ.TrustPilot.Settings.getTrustPilotUrl,function(e){e.hasOwnProperty("trustPilotUrl")&&(HZ.data.CurrentSessionUser.trustPilotImps=1,be(),d.attr("href",e.trustPilotUrl),$("#trustPilotReview").click(function(){$(this).attr("href",e.trustPilotUrl),HZ.ajaz.Services.setTrustPilotUserPreference(HZ.TrustPilot.Settings.setTrustPilotUserPreference,function(e){}),HZ.utils.Logger.sendEventLog(V),ye()})),d.unbind("mousedown").bind("mousedown",function(){HZ.utils.Logger.sendEventLog(Y),HZ.ajaz.Services.setTrustPilotUserPreference(HZ.TrustPilot.Settings.setTrustPilotUserPreference,function(e){})}).show(),$("#addToIdeabookGalleryLink").attr("href",s),HZ.ui.AjaxThrobber.setInCall(!1),ge(m),a.galleryErrors&&ke(ve(a.galleryErrors))},{type:"GET"}),I=null}}(e,function(){var e=Math.floor(100*Math.random()),a=i[e],e=!1;a===m&&(A||HZ.data.CurrentSessionUser.hasOwnProperty("trustPilotImps"))&&(e=!0);u?a=y:l?a=b:s?a=f:e&&(a=v);return a}()),e.galleryErrors&&ke(ve(e.galleryErrors))):ye())):e.houseError?ke(e.houseError):e.galleryErrors?ke(ve(e.galleryErrors)):ke(e.error)}function be(){for(var e=[99,1],a=[v,m],t=i.length=0,o=e.length;t<o;t++)for(var l=0;l<e[t];l++)i.push(a[t])}function fe(){var e,a,t;p&&p.spaceId&&p.spaceTitle&&(e=p.spaceId,a=p.spaceTitle,t=!0===p.isProduct?HZ.sendEmail.texts.DEFAULT_MESSAGE_PRODUCT:HZ.sendEmail.texts.DEFAULT_MESSAGE_SPACE,HZ.dialogs.EmailDialog.prepare({type:HZ.sendEmail.types.SPACE,referenceId:e,subject:a,message:t,event:HZ.sendEmail.events.ADDTOIBK}),HZ.ui.Yamdi.switchDialog(HZ.dialogs.EmailDialog))}function ye(){I=null,t&&t.hide(null)}function ke(e){var a=$(".addToGalleryFormError");a.empty().append(e),e?a.show():a.hide()}this.showStatus=function(e){ke(e)},this.hideStatus=function(){ke("")}};

window.hzmr.push("addToIdeabookDialog:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End addToIdeabookDialog.js  **************/
/************* Start extracting text for saveBasicProfileDialog.js for locale en-GB **************/
(function(){var _hzxt={"Please enter a value for your zip code.":"Please enter a value for your postcode.","Zip Code":"Postcode"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for saveBasicProfileDialog.js  **************/
/************* Start saveBasicProfileDialog.js for locale en-GB **************/
try {HZ.ns("HZ.dialogs"),HZ.dialogs.saveBasicProfileDialog=function(){HZ.dialogs.saveBasicProfileDialog.superclass.constructor.call(this);var r=this,t=!1,n=null;this.prepare=function(i,a,o,e,l,s){l&&(t=l),s&&(n=s);o=$("<div id='saveBasicProfileDialog'><div class='row'><div class='col-xs-offset-2 col-xs-8 form-group basic-profile-dialog__form-group'><label for='basic-profile-dialog__first-name'>"+_hgt("First Name ")+"<small>"+_hgt("(publicly displayed)")+"</small></label><input type='text' class='form-control basic-profile-dialog__input' id='basic-profile-dialog__first-name' name='firstName' placeholder='"+_hgt("First Name")+"' value="+(a||"")+"></div></div><div class='row'><div class='col-xs-offset-2 col-xs-8 user-input form-group basic-profile-dialog__form-group'><label for='basic-profile-dialog__last-name'>"+_hgt("Last Name ")+" <small>"+_hgt("(publicly displayed)")+"</small></label><input type='text' class='form-control basic-profile-dialog__input' id='basic-profile-dialog__last-name' name='lastName' placeholder='"+_hgt("Last Name")+"' value="+(o||"")+"></div></div><div class='row'><div class='col-xs-offset-2 col-xs-8 form-group basic-profile-dialog__form-group'><label for='basic-profile-dialog__zip'>"+_hgt("Zip Code")+"</label><input type='text' class='form-control basic-profile-dialog__input' id='basic-profile-dialog__zip' name='zip' value='"+(e||"")+"'></div></div></div>"),e=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Continue"),"",this.saveBasicProfileInfo);r.init({title:i,body:o,controls:[e],onViewLoaded:p})},this.saveBasicProfileInfo=function(){var o=$("#basic-profile-dialog__first-name"),e=$("#basic-profile-dialog__last-name"),l=$("#basic-profile-dialog__zip"),i=o.val(),a=e.val(),s=l.val();i?s?(HZ.ui.AjaxThrobber.setInCall(!0),HZ.ajaz.Services.saveBasicProfile(i,a,s,function(i){if(HZ.ui.AjaxThrobber.setInCall(!1),"true"==i.success)t?HZ.ui.Yamdi.hideAll():window.location.href=n;else if($.isEmptyObject(i.errors))HZ.ui.yamdi.Common.alert("Error!",_hgt("An unexpected error has occurred. Please refresh this page and continue."));else for(var a in i.errors)"firstName"==a?c(o,i.errors.firstName):"lastName"==a?c(e,i.errors.lastName):"zipCode"==a&&c(l,i.errors.zipCode)})):c(l,_hgt("Please enter a value for your zip code.")):c(o,_hgt("Can you try another first name? We are sorry for the inconvenience."))};var p=function(){var i=$("#basic-profile-dialog__first-name");i.on("focus",function(){l(i)}),$zipCode=$("#basic-profile-dialog__zip"),$zipCode.on("focus",function(){l($zipCode)})},c=function(i,a){var o,e;a?(l(i),o=$("<div class='basic-profile-dialog__error-tip'><span class='outer-tip'></span><span class='inner-tip'></span><span class='tooltip-text'>"+a+"</span></div>"),e=i.position(),a=i.height(),o.css({left:e.left,top:a+e.top+5}),i.addClass("basic-profile-dialog__input--error"),i.parents(".basic-profile-dialog__form-group").append(o)):l(i)},l=function(i){i.parents(".basic-profile-dialog__form-group").find(".basic-profile-dialog__error-tip").remove(),i.removeClass("basic-profile-dialog__input--error")}},HZ.extend(HZ.dialogs.saveBasicProfileDialog,HZ.ui.yamdi.Dialog);

window.hzmr.push("saveBasicProfileDialog:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End saveBasicProfileDialog.js  **************/
/************* Start marketplaceListingUtils.js for locale en-GB **************/
try {HZ.ns("HZ.utils.Marketplace"),HZ.utils.Marketplace.ListingUtils={PROMOTION_MODULE_DISCOUNT_THRESHOLD:.03,getSpaceVendorListing:function(e,t){var i,n=null;return e&&(i=e.id,t?(e=HZ.data.SpaceListingIds.get(i))&&-1!==e.indexOf(t)&&(n=HZ.data.ListingsInfo.get(t)):n=HZ.utils.Marketplace.getPreferredVendorListing(i)),n},getSpacePreferredVendorListing:function(e){var t=null;return t=e?HZ.utils.Marketplace.getPreferredVendorListing(e.id):t},isBuyableAndAvailable:function(e){return e&&e.buyable&&e.avail},isDiscountThresholdMet:function(e,t){var i=!1;return i=e<t?t-t*this.PROMOTION_MODULE_DISCOUNT_THRESHOLD>e:i},isTile:function(e){return e&&e.sbb}};

window.hzmr.push("marketplaceListingUtils:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End marketplaceListingUtils.js  **************/
/************* Start extracting text for productMainButton.js for locale en-GB **************/
(function(){var _hzxt={"Join the Houzz Trade Program":"Join the Houzz Trade Programme","Add to Cart":"Add to Basket"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for productMainButton.js  **************/
/************* Start productMainButton.js for locale en-GB **************/
try {HZ.ns("HZ.modules"),HZ.modules.ProductMainButton=new function(){var a=null,e=null,i=null,r=null,s=null,l=null,o=null,n=!1;this.init=function(t){t&&(t.hasOwnProperty("isPhone")?t.isPhone:HZ.utils.Config.isResponsive,e=t.hasOwnProperty("isDesktop")?!0===t.isDesktop:!HZ.utils.Config.isResponsive,t.hasOwnProperty("scopeId")&&(i=t.scopeId),t.hasOwnProperty("spaceId")&&(r=t.spaceId),t.hasOwnProperty("vendorListingId")&&(s=t.vendorListingId),t.hasOwnProperty("sampleVendorListingId")&&(l=t.sampleVendorListingId),t.hasOwnProperty("signUpSourceLinks")&&(o=t.signUpSourceLinks),t.hasOwnProperty("isInlineWithQuantity")&&(n=t.isInlineWithQuantity))},this.setMountNode=function(t){(a=t).on("click",".btn-add-to-cart",this.handleAddToCartClick.bind(this)),a.on("click",".btn-add-sample-to-cart",this.handleAddSampleToCartClick.bind(this)),a.on("click",".btn-check-availability",this.handleCheckAvailabilityClick.bind(this)),a.on("click",".btn-visit-store",this.handleVisitStoreClick.bind(this))},this.updateView=function(t,e){var i=HZ.data.Spaces.get(t),n=HZ.utils.Marketplace.ListingUtils.getSpaceVendorListing(i,e);i&&(r=i.id,t=HZ.data.ProductsInfo.get(r),e=null,n&&(s=n.lid,e=HZ.data.Users.get(n.vid),n.hasOwnProperty("sbbSampleVlid")&&(l=n.sbbSampleVlid)),a&&a.empty().append(this.renderMainProductButton(i,t,n,e)))},this.renderMainProductButton=function(t,e,i,n){var a=null;return t&&t.prod&&(e=e||HZ.data.ProductsInfo.get(t.id),i||e&&e.mp&&(i=HZ.data.ListingsInfo.get(e.plid)),(e||i)&&(a=e&&e.mp||i&&i.mpListing?(i&&!n&&(n=HZ.data.Users.get(i.vid)),this.renderMarketplaceProductButton(i,n)):this.renderExternalProductButton(t,e,i,n))),a},this.renderMarketplaceProductButton=function(t){var e,i,n,a,s,r,l,o=null;return t&&(e=t.buyable,i=t.avail,n=t.activeMPListing,s=t.itx,l=!(a=!(r=null)),(r=HZ.data.CurrentSessionUser?HZ.data.CurrentSessionUser.getUserId():r)&&(l=!!HZ.data.Users.get(r).p),r=t.isut,o=i&&n?s&&!r&&l?this.renderJoinTradeButton():(l=t.pending,this.renderAddToCartButton(a=!e||l?!1:a)):this.renderAddToWishListButton(),t.hasOwnProperty("sbbSamplePrice")&&(o+=this.renderBuySampleButton(t.sbbSamplePrice))),o},this.renderJoinTradeButton=function(){return HZ.utils.Html.template('<a target="_blank" href="%linkUrl%" compid="joinTradeButton" class="btn btn-primary btn-lg btn-block header-3 ptl pbm mb0 btn-join-trade %className%"%scopeIdAttr%>%label%</a>',{linkUrl:HZ.utils.Links.getPageUrl("trade-program"),scopeIdAttr:this.renderScopeIdAttr(),label:_hgt("Join the Houzz Trade Program"),className:this.getMarketPlaceButtonExtraClassNames()})},this.renderBuySampleButton=function(t){t=_hgt("Buy Sample - {samplePrice}",{samplePrice:t});return HZ.utils.Html.template('<button compid="addSampleToCart" class="btn btn-lg btn-block btn-primary-outline btn-add-sample-to-cart mts"%scopeId%>%label%</button>',{label:t,scopeId:this.renderScopeIdAttr()})},this.renderAddToCartButton=function(t){return HZ.utils.Html.template('<button compid="addToCart" class="btn btn-primary btn-lg btn-block btn-add-to-cart%className%"%disabledAttr%%scopeIdAttr%><i class="icon icon-font icon-shopping_cart mrs"></i> <span class="btn-label">%label%</span></button>',{disabledAttr:t?"":" disabled",scopeIdAttr:this.renderScopeIdAttr(),label:_hgt("Add to Cart"),className:this.getMarketPlaceButtonExtraClassNames()})},this.renderAddToWishListButton=function(){return HZ.utils.Html.template('<button compid="availabilityNotification" class="btn btn-primary btn-lg btn-block btn-check-availability%className%"%scopeIdAttr%>%label%</button>',{scopeIdAttr:this.renderScopeIdAttr(),label:_hgt("Check Availability"),className:this.getMarketPlaceButtonExtraClassNames()})},this.getMarketPlaceButtonExtraClassNames=function(){var t="";return t=e||!HZ.utils.Config.isResponsive?n||HZ.lb.Config.isMainProdBtnQuantityInline?" header-5 ptm pbm mt0 mb0":" header-3 ptl pbm mb0":t},this.renderExternalProductButton=function(t,e,i,n){var a,s,r,l=null;return t&&(a=!(r=HZ.data.SpaceListingIds.get(t.id))||1===r.length,s=t.hasOwnProperty("tl"),r=(r=HZ.data.PPCAds.get(t.id))&&r.isPPCProduct,i=i?!i.discon:!!e&&e.av,n=!!(e=n||HZ.data.Users.get(t.ow))&&e.mpv,r||s&&a?i?(t=t.srct,!i||n&&(2===t||8===t)||(i=!HZ.data.CurrentSessionUser,n=HZ.utils.User.isHiddenUser(e),t=_hgt("Visit Store"),e=null,e=i&&!n?"btn btn-primary btn-lg btn-block header-3 ptl pbm mb0 btn-visit-store btn-visit-store--visitor":"btn btn-primary btn-lg btn-visit-store",l=HZ.utils.Html.template('<button compid="visitStore" class="%className%"%scopeIdAttr%>%label%</button>',{label:t,className:e,scopeIdAttr:this.renderScopeIdAttr()}))):l=_hgt("Currently not available"):l=""),l},this.renderScopeIdAttr=function(){return i?HZ.utils.Html.template(' scopeid="%scopeId%"',{scopeId:i}):""},this.handleAddToCartClick=function(t){var e=$("#qtySelector").val()||1;e&&r&&s&&HZ.cart.Actions.addItem(r,s,e)},this.handleAddSampleToCartClick=function(t){r&&l&&HZ.cart.Actions.addItem(r,l,1)},this.handleCheckAvailabilityClick=function(t){var e;HZ.data.CurrentSessionUser?(HZ.ui.yamdi.Common.loading(_hgt("Loading")),HZ.ajaz.Services.Cart.addToWishList(r,HZ.module.AvailabilityNotification.handleAddToWishListResponse)):(e=null,e=o&&o.hasOwnProperty("checkAvailability")?o.checkAvailability.sourceLink:75,HZ.auth.Manager.signup(e))},this.handleVisitStoreClick=function(t){var e,i,n,a=HZ.data.Spaces.get(r),s=HZ.data.PPCAds.get(r);s&&s.isPPCProduct&&s.ppcProductUrl?window.open(s.ppcProductUrl):HZ.data.CurrentSessionUser?(e=a.tl)&&window.open(e):(n=i=null,s=HZ.utils.Links.getSpaceLink(r),a=null,a=o&&o.hasOwnProperty("visitStore")?(i=(e=o.visitStore).sourceLink,n=e.messageId,e.options):(i=68,n=6,{rtEvent:"visitstore_lb_click"}),HZ.auth.Manager.signup(i,n,s,null,a))}};

window.hzmr.push("productMainButton:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productMainButton.js  **************/
/************* Start productBadge.js for locale en-GB **************/
try {HZ.ns("HZ.modules.ProductBadge"),HZ.modules.ProductBadge=new function(){this.config={},this.addConfig=function(e,r){this.config[e]=r},this.renderBadge=function(e){var r=["product-badge-label","text-xs","text-bold"];r.push(e.className);e=e.label;return'<div class="product-badge"><span class="'+r.join(" ")+'">'+e+"</span></div>"},this.renderFromCountryBadge=function(e,r){var t=[],a=[],s=[];Array.isArray(this.config.supportedCountryFlags)&&(t=this.config.supportedCountryFlags),Array.isArray(this.config.europeanCountryCodes)&&(a=this.config.europeanCountryCodes),Array.isArray(this.config.countryNameWhiteList)&&(s=this.config.countryNameWhiteList);var n="";return Array.isArray(a)&&-1!==a.indexOf(e)&&(a=e,Array.isArray(t)&&-1===t.indexOf(e)&&(a="other"),r=_hgt("Houzz {importCountry}",{importCountry:r}),Array.isArray(s)&&-1===s.indexOf(e)&&(r=_hgt("Houzz Europe"),a="EU"),r='<i class="'+["country-flag","country-flag--"+a].join(" ")+'"></i>&nbsp;'+r,n=HZ.modules.ProductBadge.renderBadge({label:r,className:"product-badge-label--imported"})),n},this.renderTradeExclusiveBadge=function(e){return this.renderBadge({label:e,className:"product-badge-label--trade"})},this.renderExclusiveBadge=function(){return this.renderBadge({label:_hgt("Houzz Exclusive"),className:"product-badge-label--exclusive"})},this.renderBestSellerBadge=function(){return this.renderBadge({label:_hgt("Best Seller"),className:"product-badge-label--bestseller"})}};

window.hzmr.push("productBadge:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productBadge.js  **************/
/************* Start productDocumentRenderer.js for locale en-GB **************/
try {HZ.ns("HZ.modules"),HZ.modules.ProductDocumentRenderer=new function(){var e=null;this.setMountNode=function(t){e=t},this.updateView=function(t){t&&e&&e.empty().append(this.renderProductDocumentHtml(t))},this.renderProductDocumentHtml=function(t){var e,n=$('<ul class="list-unstyled  product-doc-list"></ul>');if(t&&t.productDocuments){var o,c=JSON.parse(t.productDocuments);for(o in c){var u=c[o],u=$(HZ.utils.Html.template('<li><a class="text-primary product-document-link" href="%LINK%" target="_blank"><i class="product-document-icon hzi-font hzi-Document text-s"></i>&nbsp;%NAME%</a></li>',{NAME:o,LINK:u}));n.append(u)}}return n.children().length&&(e=$('<div class="productDocument"><header class="section-header"><h2 class="sectionTitle text-m text-bold">Product Documentation</h2></header></div>')).append(n),e}};

window.hzmr.push("productDocumentRenderer:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productDocumentRenderer.js  **************/
/************* Start newPostSignup.js for locale en-GB **************/
try {HZ.ns("HZ.signup"),HZ.signup.newPostSignup=new function(){this.init=function(i,s){HZ.OmniLogAPI.userTypeChooserFlowStarted();var e=$("<div/>",{id:"signup-success",class:"dialog",scopeId:"signup-success"}),d="<div id='header'><h1 class='header-2'>"+_hgt("Which describes you best?")+"</h1></div><div id='body'><div class='row'><div id='homeowner' class='col-sm-6 trackMe' compId='homeowner'><div class='wrapper'><div class='icon'></div><div class='title header-5'>"+_hgt("Homeowner")+"</div><div class='description'>"+_hgt("I am a homeowner or interested in home design.")+"</div></div></div><div id='pro' class='col-sm-6 trackMe' compId='pro'><div class='wrapper'><div class='icon'></div><div class='title header-5'>"+_hgt("Professional")+"</div><div class='description'>"+_hgt("I offer home improvement services or sell home products.")+"</div></div></div></div></div>";return e.html(d),e.find("#homeowner").on("click",function(){i()}),e.find("#pro").on("click",function(){s()}),e}};

window.hzmr.push("newPostSignup:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End newPostSignup.js  **************/
/************* Start hoverCard.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),HZ.utils.HoverCard=new function(){var j,B,i={},a={useWiderFollowCell:0,cardContentWidth:414,statCardWidth:86,reviewCardWidth:86,ajazTimeout:300,dropDownTimeout:500};function A(t){return HZ.utils.Html.escapeHtmlEntities(t).replace(/'/g,"&apos;")}function e(t,a,r){var e={},o=$(this);r&&"true"==r.success&&(r=r.userDetail,e[t]={},e[t][a]=r,i=$.extend(!0,i,e),d(r,o,t,a))}function o(){$("#hzHoverCardContainer:visible").hide()}function r(t){var a,r=$(this);"mouseenter"==t.type?(a=$("#hzHoverCardContainer").data("dropDownTimer"),clearTimeout(a),$("#hzHoverCardContainer").removeData("dropDownTimer"),a=setTimeout(function(){var t=r.attr("data-type"),a=r.attr("data-id");t&&a&&(i&&i[t]&&i[t][a]?d(i[t][a],r,t,a):HZ.ajaz.Services.getHoverCardData(t,a,$.proxy(e,r,t,a))),$("#hzHoverCardContainer").removeData("ajazTimer")},j.ajazTimeout),$("#hzHoverCardContainer").data("ajazTimer",a)):"mouseleave"==t.type&&(clearTimeout($("#hzHoverCardContainer").data("ajazTimer")),$("#hzHoverCardContainer").data("dropDownTimer",setTimeout(function(){$("#hzHoverCardContainer").removeData("dropDownTimer"),o()},j.dropDownTimeout)))}var n=function(t,a,r,e){var o,i,n="",s="profLink",d="",l="",v="",c="",u="",m="",h="",C="",p="",w="",T="",E="",L=t.isPro,k=t.uname,O=t.name,H=t.pic,f=t.link,g=t.loc,R=t.allowFollow,z=t.isFollower,D=t.galCount,P=t.projCount,_=t.cmtCount,S=t.reviewRating,b=t.numReview,F=t.reviewLink,I=t.proType,N=t.galLink,U=t.prjLink,W=t.publicGallery,M=t.publicProject;B=j.cardContentWidth,e.pTrk&&e.pTrkParam&&(f="#",n="rel='nofollow'",d=e.pTrk,s=e.pTrkParam),e.gTrk&&e.gTrkParam&&(N="#",p="onmousedown='"+e.gTrk+"' id='"+e.gTrkParam+"'"),e.prjTrk&&e.prjTrkParam&&(U="#",w="onmousedown='"+e.prjTrk+"' id='"+e.prjTrkParam+"'"),1==R&&(j.useWiderFollowCell&&(B+=30,E="wider-card"),1==z?(o="hzBtn followBtn--hoverCard following",i=_hgt("Following")):0==z&&(o="hzBtn followBtn--hoverCard",i=_hgt("Follow")),r=HZ.data.CurrentSessionUser?'HZ.actions.Follow.updateFollow(this,{u: "'+k+'"}); HZ.utils.HoverCard.toggleFollowStatus("'+a+'", "'+r+'"); return false;':HZ.auth?"HZ.auth.Manager.signup(10, null, window.location.href); return false;":'window.location.href="'+j.followRedirectLink+'"; return false;',v="<div class='hzFollowBtnWrapper'>"+("<input id='followButton_"+k+"' type='button' class='"+o+"' value='"+A(i)+"' onclick='"+r+"'/>")+"</div>",r=t.followersCount,t=t.followersLink,0<r&&(c="<div class='statCard'><a target='_blank' href='"+t+"'><div class='counter'>"+r+"</div><div class='itemName'>"+_hgtp("Followers","Follower","Followers",r)+"</div></a></div>")),""==c&&(B-=j.statCardWidth),v="<div class='statCard followStatCard "+E+"'>"+v+"</div>",W&&(u="<div class='statCard'><a target='_blank' href='"+N+"' "+p+"><div class='counter'>"+D+"</div><div class='itemName'>"+_hgtp("Ideabooks","Ideabook","Ideabooks",D)+"</div></a></div>"),0<P&&M?m="<div class='statCard'><a target='_blank' href='"+U+"' "+w+"><div class='counter'>"+P+"</div><div class='itemName'>"+_hgtp("Projects","Project","Projects",P)+"</div></a></div>":B-=j.statCardWidth;_="<div class='statCard'><div class='counter'>"+_+"</div><div class='itemName'>"+_hgtp("Comments","Comment{context_comment_as_a_noun}","Comments",_,{context_comment_as_a_noun:""})+"</div></div>",C=1==L?(I&&"Not specified"!=I&&(l=I),g&&(0<l.length&&(l+=" | "),l+=g),l=l&&"<div class='hzHoverCardLoc'>"+A(l)+"</div>",I="<div class='counter'>"+b+"</div><div class='itemName'>"+_hgtp("Reviews","Review","Reviews",b)+"</div>",e.rTrk&&e.rTrkParam&&(F="#",T="onmousedown='"+e.rTrk+"' id='"+e.rTrkParam+"'"),0<b&&(h="<div class='classification counter'><div class='cover'></div><div class='progress' style='width: "+2*S+"%'></div></div>"),HZ.utils.Html.template("<div class='hzHoverCard hbs'>\n\t\t<div class='hzHoverCardContent'>\n\t\t\t<div class='upper'>\n\t\t\t\t<a target='_blank' href='%PROFILELINK%' %REL% id='%ID%' class='user-thumb-link' onmousedown='%MOUSEDOWN%'><img class='hzHoverCardUserThumb hz-user-image' src='%USERTHUMB%'/></a>\n\t\t\t\t<div class='basic-info'>\n\t\t\t\t\t<div class='hzHoverCardUserName'>\n\t\t\t\t\t\t<a target='_blank' class='nameLink hz-username' href='%PROFILELINK%' %REL% id='%ID%' onmousedown='%MOUSEDOWN%'>%USERNAME%</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t%REVIEW_STARS%\n\t\t\t\t\t%PRODESC%\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t%FOLLOW%\n\t\t\t%FOLLOWERS%\n\t\t\t%PROCARD%\n\t\t\t%IDEABOOK%\n\t\t\t%PROJECT%\n\t\t\t%COMMENT%\n\t\t\t<div class='hzHCClearFix'></div>\n\t\t</div>\n\t\t</div>",{USERNAME:O,PROFILELINK:f,REL:n,MOUSEDOWN:d,ID:s,USERTHUMB:H,PRODESC:l,REVIEW_STARS:h,FOLLOW:v,FOLLOWERS:c,PROJECT:m,COMMENT:_,PROCARD:"<div class='statCard reviewCard'><a target='_blank' href='"+F+"' "+T+">"+I+"</a></div>"})):(g&&(l+=g),l=l&&"<div class='hzHoverCardLoc'>"+l+"</div>",C=HZ.utils.Html.template("<div class='hzHoverCard hbs'>\n\t\t<div class='hzHoverCardContent'>\n\t\t\t<div class='upper'>\n\t\t\t\t<a target='_blank' href='%PROFILELINK%' %REL% id='%ID%' class='user-thumb-link' onmousedown='%MOUSEDOWN%'><img class='hzHoverCardUserThumb hz-user-image' src='%USERTHUMB%'/></a>\n\t\t\t\t<div class='basic-info'>\n\t\t\t\t\t<div class='hzHoverCardUserName'>\n\t\t\t\t\t\t<a target='_blank' class='nameLink hz-username' href='%PROFILELINK%' %REL% id='%ID%' onmousedown='%MOUSEDOWN%'>%USERNAME%</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t</div>\n\t\t\t%FOLLOW%\n\t\t\t%FOLLOWERS%\n\t\t\t%IDEABOOK%\n\t\t\t%PROJECT%\n\t\t\t%COMMENT%\n\t\t\t%NO_PUBLIC_GALLERY%\n\t\t\t<div class='hzHCClearFix'></div>\n\t\t</div>\n\t\t</div>",{USERNAME:O,PROFILELINK:f,USERTHUMB:H,USERDESC:l,FOLLOW:v,FOLLOWERS:c,IDEABOOK:u,PROJECT:m,COMMENT:_,NO_PUBLIC_GALLERY:"%NO_PUBLIC_GALLERY%"}),HZ.utils.Html.template(C,{NO_PUBLIC_GALLERY:W?"":"<div class='statCard'></div>"})),C=$(C);return C.find(".statCard").last().addClass("lastCard"),C},s=function(t){return{pTrk:t.attr("ptrk"),pTrkParam:t.attr("ptrk-param"),gTrk:t.attr("gtrk"),gTrkParam:t.attr("gtrk-param"),prjTrk:t.attr("prjtrk"),prjTrkParam:t.attr("prjtrk-param"),rTrk:t.attr("rtrk"),rTrkParam:t.attr("rtrk-param")}},d=function(t,a,r,e){var o=n(t,r,e,s(a)),i=$(".houzz-header"),t=$(".houzz-header-secondary"),r=80;(i.length||t.length)&&(r=i.height()+t.height()),e=a.offset().top-$(document).scrollTop(),i=$(window).height()-e-a.height(),t=a.offset().left-$(document).scrollLeft(),e=110+r<e||i<=e?"south":"north",e+=$(window).width()-t-a.outerWidth()<t?" right":"",(o=$(o)).css("width",B),o.data("srcElement",a),0<a.closest("body").length&&a.tipBubble({content:o,borderColor:"#CCC",point:e,attachTo:"body",id:"hzHoverCardContainer",showCloseBtn:!1,width:B,fadeDuration:1})};this.toggleFollowStatus=function(t,a){i&&i[t]&&i[t][a]&&(i[t][a].isFollower=1-i[t][a].isFollower)},this.init=function(t){j=$.extend({},a,t||{}),HZ.data.CurrentSessionUser,$("body").on("mouseenter mouseleave",".hzHouzzer",r),$("body").on("mouseenter","#hzHoverCardContainer",function(){clearTimeout($("#hzHoverCardContainer").data("dropDownTimer"))}).on("mouseleave","#hzHoverCardContainer",function(){$(this).data("dropDownTimer",setTimeout(function(){o()},j.dropDownTimeout))}),$("#lbImage, #lbInfoScroller").on("mousewheel DOMMouseScroll",function(){clearTimeout($("#hzHoverCardContainer").data("ajazTimer")),clearTimeout($("#hzHoverCardContainer").data("dropDownTimer")),o()})}};

window.hzmr.push("hoverCard:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End hoverCard.js  **************/
/************* Start followButton.js for locale en-GB **************/
try {HZ.ns("HZ.actions.Follow"),HZ.actions.Follow=new function(){function t(o,l){var e=o.find("i");if((l=$.trim(l))==_hgt("Follow"))o.removeClass("following unfollow"),e.removeClass("hzi-Following2 hzi-Unfollow").addClass("hzi-Follow");else if(l==_hgt("Unfollow"))o.removeClass("following").addClass("unfollow"),e.removeClass("hzi-Follow hzi-Following2").addClass("hzi-Unfollow");else{if(l!=_hgt("Following"))return;o.removeClass("unfollow").addClass("following"),e.removeClass("hzi-Follow hzi-Unfollow").addClass("hzi-Following2")}o.is("input")?o.attr("value",l):(o.contents().last().replaceWith(l),o.attr("title",l))}var o=this;this.updateFollow=function(n,o){var s,l,n=$(n);o&&(s=n.hasClass("following")||n.hasClass("unfollow")?"u":"f",o.u&&(l=o.u)),s&&l&&HZ.ajaz.Services.updateFollow(s,l,function(o){var l,e;l=s,e=n,"true"==(o=o).success?t(e,"f"==l?_hgt("Following"):_hgt("Follow")):2==o.error?HZ.auth.Manager.signup(10,30):(l=_hgt("Follow operation failed."),1==o.error&&(l=_hgt("The user you are trying to follow has disabled this feature.")),4==o.error&&(l=_hgt("To follow other people, you need to allow others to follow you. You can update your privacy settings on Edit Profile page.")),alert(l))})},this.updateFollowBtn=function(o,l){(o.hasClass("following")||o.hasClass("unfollow"))&&t(o,l?_hgt("Unfollow"):_hgt("Following"))},this.handleSignup=function(o){HZ.ajaz.Services.setVisitorProperty("postSignupFollowedUsername",o.followedUsername,function(){HZ.auth.Manager.signup(10,o.messageId,window.location.href,null,{sourceUser:o.followedUsername})})},$("body").on("mouseenter",".followBtn",function(){o.updateFollowBtn($(this),!0)}).on("mouseleave",".followBtn",function(){o.updateFollowBtn($(this),!1)})};

window.hzmr.push("followButton:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End followButton.js  **************/
/************* Start fontSmoothing.js for locale en-GB **************/
try {var TypeHelpers=new function(){var n=this;n.hasSmoothing=function(){if(void 0!==screen.fontSmoothingEnabled)return screen.fontSmoothingEnabled;try{var t=document.createElement("canvas");t.width="35",t.height="35",t.style.display="none",document.body.appendChild(t);var e=t.getContext("2d");e.textBaseline="top",e.font="32px Arial",e.fillStyle="black",e.strokeStyle="black",e.fillText("O",0,0);for(var n=8;n<=32;n++)for(var a=1;a<=32;a++){var o=e.getImageData(a,n,1,1).data[3];if(255!=o&&0!=o)return!0}return!1}catch(t){return null}},n.insertClasses=function(){var t=n.hasSmoothing(),e=document.getElementsByTagName("html")[0];e.className+=1==t?" hasFontSmoothing-true":0==t?" hasFontSmoothing-false":" hasFontSmoothing-unknown"}};

window.hzmr.push("fontSmoothing:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End fontSmoothing.js  **************/
/************* Start jquery-ui-1.10.3.custom.widget-only.js for locale en-GB **************/
try {!function(d,h){var i=0,r=Array.prototype.slice,n=d.cleanData;d.cleanData=function(t){for(var e,i=0;null!=(e=t[i]);i++)try{d(e).triggerHandler("remove")}catch(t){}n(t)},d.widget=function(t,i,e){var n,s,o,a,r={},u=t.split(".")[0];t=t.split(".")[1],n=u+"-"+t,e||(e=i,i=d.Widget),d.expr[":"][n.toLowerCase()]=function(t){return!!d.data(t,n)},d[u]=d[u]||{},s=d[u][t],o=d[u][t]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),h):new o(t,e)},d.extend(o,s,{version:e.version,_proto:d.extend({},e),_childConstructors:[]}),(a=new i).options=d.widget.extend({},a.options),d.each(e,function(e,n){return d.isFunction(n)?r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:r[e]=n,h;function s(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}}),o.prototype=d.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix:t},r,{constructor:o,namespace:u,widgetName:t,widgetFullName:n}),s?(d.each(s._childConstructors,function(t,e){var i=e.prototype;d.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete s._childConstructors):i._childConstructors.push(o),d.widget.bridge(t,o)},d.widget.extend=function(t){for(var e,i,n=r.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&i!==h&&(t[e]=d.isPlainObject(i)?d.isPlainObject(t[e])?d.widget.extend({},t[e],i):d.widget.extend({},i):i);return t},d.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;d.fn[o]=function(i){var t="string"==typeof i,n=r.call(arguments,1),s=this;return i=!t&&n.length?d.widget.extend.apply(null,[i].concat(n)):i,t?this.each(function(){var t,e=d.data(this,a);return e?d.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&t!==h?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):h:d.error("no such method '"+i+"' for "+o+" widget instance"):d.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):this.each(function(){var t=d.data(this,a);t?t.option(i||{})._init():d.data(this,a,new e(i,this))}),s}},d.Widget=function(){},d.Widget._childConstructors=[],d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=d(e||this.defaultElement||this)[0],this.element=d(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=d.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=d(),this.hoverable=d(),this.focusable=d(),e!==this&&(d.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=d(e.style?e.ownerDocument:e.document||e),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:d.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return d.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=d.widget.extend({},this.options[t]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),e===h)return n[t]===h?null:n[t];n[t]=e}else{if(e===h)return this.options[t]===h?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(s,o,t){var a,r=this;"boolean"!=typeof s&&(t=o,o=s,s=!1),t?(o=a=d(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),d.each(t,function(t,e){function i(){return s||!0!==r.options.disabled&&!d(this).hasClass("ui-state-disabled")?("string"==typeof e?r[e]:e).apply(r,arguments):h}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||d.guid++);var n=t.match(/^(\w+)\s*(.*)$/),t=n[1]+r.eventNamespace,n=n[2];n?a.delegate(n,t,i):o.bind(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){d(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){d(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){d(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){d(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=d.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(d.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},d.each({show:"fadeIn",hide:"fadeOut"},function(o,a){d.Widget.prototype["_"+o]=function(e,t,i){var n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:o,s=!d.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=i,t.delay&&e.delay(t.delay),s&&d.effects&&d.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){d(this)[o](),i&&i.call(e[0]),t()})}})}(jQuery);

window.hzmr.push("jquery-ui-1.10.3.custom.widget-only:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End jquery-ui-1.10.3.custom.widget-only.js  **************/
/************* Start extracting text for flagContent.js for locale en-GB **************/
(function(){var _hzxt={"Miscategorized":"Miscategorised"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for flagContent.js  **************/
/************* Start flagContent.js for locale en-GB **************/
try {HZ.ns("HZ.flag"),HZ.flag.flagDialogInstance=null,HZ.flag.FlagDialog=function(){HZ.flag.FlagDialog.superclass.constructor.call(this);var i=this;this.prepare=function(){var t=_hgt("Report Comment"),e=_hgt("Why are you reporting this comment?"),a=$('<div id="report-dialog"><form action="javascript:;"><div class="why-report text-bold mbm">'+e+'</div>\n\t\t\t\t\t<ul id="report-type-list" class="list-unstyled">\n\t\t\t\t\t\t<li class="report-type-item radio"><label><input type="radio" name="report-type" class="report-type" value="spam" id="report-spam"/>'+_hgt("Spam")+'</label></li>\n\t\t\t\t\t\t<li class="report-type-item radio"><label><input type="radio" name="report-type" class="report-type" value="abuse" id="report-abuse"/>'+_hgt("Inappropriate or abusive")+'</label></li>\n\t\t\t\t\t\t<li class="report-type-item report-type-item--question-only radio"><label><input type="radio" name="report-type" class="report-type" value="miscategorized" id="report-miscategorized"/>'+_hgt("Miscategorized")+'</label></li>\n\t\t\t\t\t\t<li class="report-type-item radio"><label><input type="radio" name="report-type" class="report-type" value="dislike" id="report-dislike"/>'+_hgt("I just don't like it")+"</label></li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t</form></div>"),l=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Cancel"),"flagCancelBtn"),e=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Submit"),"flagConfirmBtn"),e=[HZ.ui.AjaxThrobber.getThrobber(),l,e];i.init({title:t,body:a,controls:e,onViewLoaded:o}),i.hideStatus()};var o=function(){HZ.ui.AjaxThrobber.setInCall(!1),$(".report-type").prop("checked",!1),i.hideStatus()};this.bindButtonHandler=function(a){var t=$("#flagConfirmBtn"),e=$("#flagCancelBtn");t.unbind("click").bind("click",function(t){var e;i.hideStatus(),a?(HZ.ui.AjaxThrobber.setInCall(!0),void 0===(e=$(".report-type:checked").val())?(i.showStatus(_hgt("Please select one of the options.")),HZ.ui.AjaxThrobber.setInCall(!1)):a(t,e)):HZ.ui.yamdi.Common.hideAllDialogs()}),e.unbind("click").one("click",function(t){HZ.ui.yamdi.Common.hideAllDialogs()})}},HZ.extend(HZ.flag.FlagDialog,HZ.ui.yamdi.Dialog),HZ.flag.ShowFlagDialog=function(t){var e=void 0===t||void 0===t.isComment||t.isComment,t=void 0!==t&&void 0!==t.okCallback?t.okCallback:null;null===HZ.flag.flagDialogInstance&&(HZ.flag.flagDialogInstance=new HZ.flag.FlagDialog,HZ.flag.flagDialogInstance.prepare()),e?(HZ.flag.flagDialogInstance.setTitle(_hgt("Report Comment")),HZ.flag.flagDialogInstance.getBody().find(".why-report").text(_hgt("Why are you reporting this comment?")),HZ.flag.flagDialogInstance.getBody().find(".report-type-item--question-only").css("display","none")):(HZ.flag.flagDialogInstance.setTitle(_hgt("Report Post")),HZ.flag.flagDialogInstance.getBody().find(".why-report").text(_hgt("Why are you reporting this post?")),HZ.flag.flagDialogInstance.getBody().find(".report-type-item--question-only").css("display","block")),HZ.ui.Yamdi.show(HZ.flag.flagDialogInstance),HZ.flag.flagDialogInstance.bindButtonHandler(t)};

window.hzmr.push("flagContent:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End flagContent.js  **************/
/************* Start feedComments.js for locale en-GB **************/
try {!function(d){d.widget("hz.feedComments",{objectId:null,objectType:null,commentCount:null,fbShareable:null,clearRecentCommentsOnFirstLoad:!1,isProductQuestion:!1,isGetCommentsCalled:!1,$cachedMoreComments:d(),cachedCommentCount:null,options:{source:null,dataName:"hz",loaderClass:"loader",loaderHideClass:"loaderHide",commentsToggleClass:"commentsToggle",editCommentSelector:".editCommentDiv",commentBodyInput:"textarea.commentBody",slideDuration:400,selectors:{commentable:".feedComments",comment:".comment",moreComments:".moreComments",loadedCount:".moreComments .loadedCount",remainingCount:".moreComments .remainingCount",commentCount:".moreComments .commentCount",addCommentForm:".addComment form",lastCommentInput:".addComment form input[name='lastCommentId']",bodyInput:".addComment form textarea[name='body']",seeMoreComments:"a.seeMoreComments",commentsContainer:".commentsContainer",addComment:".addComment",submitButton:".addComment form .submitAddComment",addCommentExtra:".addComment .addCommentExtra",fileInputs:".fileInputs",editErrorMessage:".editCommentDiv .commentError",errorMessage:".addComment .commentError"}},_findObject:function(e){e=this.element.find(e);return 0<e.length?e:null},_initElements:function(){for(var e in this.elements=new Object,this.options.selectors){var t=this.options.selectors[e];this.elements[e]=this._findObject(t)}},_create:function(){this.objectId=null,this.objectType=null,this.topCommentId=null,this.lastCommentId=0,this.commentCount=null,this.numCommentsLoaded=null,this.executing=!1;var e=this._getAndValidateData(this.element,this.options.dataName,["id","type","cc","crc","ipq"]);this.objectId=e.id,this.objectType=e.type,this.commentCount=e.cc,this.fbShareable=e.fbs,this.clearRecentCommentsOnFirstLoad=e.crc,this.isProductQuestion=e.ipq,this._initElements(),null!=this.elements.bodyInput&&(this.elements.bodyInput.css("resize","none").css("height","1em").autosize(),void 0!==HZ.modules&&void 0!==HZ.modules.SpacePreview&&HZ.modules.SpacePreview.init(this.elements.bodyInput)),this._updateCommentsEvent()},_showLoader:function(e){this.$loadRestoreElement=d(e),this.$loadRestoreElement.addClass(this.options.loaderHideClass).after(d("<div class='"+this.options.loaderClass+"'></div>"))},_hideLoader:function(){this.$loadRestoreElement.siblings("."+this.options.loaderClass).hide().remove(),this.$loadRestoreElement.removeClass(this.options.loaderHideClass)},_initCommentsToggle:function(){this.elements.seeMoreComments.addClass(this.options.commentsToggleClass).text(_hgt("Hide comments"))},_updateCommentsEvent:function(e){var t;void 0!==e&&null!=e&&(this.commentCount=e),void 0===this.elements&&this._initElements(),this.elements.comments=this._findObject(this.options.selectors.comment),this.numCommentsLoaded=null!=this.elements.comments?this.elements.comments.length:0,this.numCommentsRemaining=this.commentCount-this.numCommentsLoaded,0<this.numCommentsLoaded&&(t=this.elements.comments.first(),e=this._getAndValidateData(t,this.options.dataName,["id"]),this.topCommentId=e.id,t=this.elements.comments.last(),e=this._getAndValidateData(t,this.options.dataName,["id"]),this.lastCommentId=e.id),null!=this.elements.moreComments&&this.numCommentsLoaded>=this.commentCount&&this._initCommentsToggle(),null!=this.elements.loadedCount&&this.elements.loadedCount.html(this.numCommentsLoaded),null!=this.elements.remainingCount&&this.elements.remainingCount.text(this.numCommentsRemaining)},_getAndValidateData:function(e,t,n){var o,s=e.data(t);if(void 0===s)throw"incompatible element, no data";for(o in n)if(n.hasOwnProperty(o)){var i=n[o];if(i instanceof Array){var m,a=!1;for(m in i)if(void 0!==s[i[m]]){a=!0;break}if(!a)throw"incompatible element, required attribute not found"}else if(void 0===s[i])throw"incompatible element, required attribute not found: "+i}return s},deleteClick:function(t){HZ.ui.yamdi.Common.confirm(_hgt("Delete a comment"),_hgt("Are you sure you want to delete this comment?"),_hgt("Delete Comment"),d.proxy(function(){var e;this.executing||(this.executing=!0,this.$commentToDelete=d(t.target).closest(this.options.selectors.comment),e=this.$commentToDelete.data("hz").id,HZ.ajaz.Services.deleteComment(this.objectType,this.objectId,e,d.proxy(this._deleteAjaxHandler,this)))},this),null,null,function(){d(document).trigger("keyboardHandlerRequired",{source:this,event:t})},function(){d(document).trigger("keyboardHandlerReleased",{source:this,event:t})})},_deleteAjaxHandler:function(t){"true"==t.success&&this.$commentToDelete.slideUp(this.options.slideDuration,d.proxy(function(){var e=t.commentCount;this.$commentToDelete.remove(),this._updateCommentsEvent(e),HZ.globalComments&&(e={commentId:(e=this.$commentToDelete.data("hz")).id,translation:null,language:e.lang},HZ.globalComments.removeComments([e]))},this)),HZ.ui.yamdi.Common.hideAllDialogs(),this.executing=!1,this._notifyObservers()},editClick:function(e){var m=d(e.target).closest(this.options.selectors.comment).find(this.options.editCommentSelector).first().clone();this.$commentToUpdate=d(e.target).closest(this.options.selectors.comment),HZ.ui.yamdi.Common.confirm(_hgt("Edit comment"),m,_hgt("Submit"),d.proxy(function(){var e,t,n,o,s,i;this.executing||(this.executing=!0,e=m.find("form [name='objectType']").val(),t=m.find("form [name='objectId']").val(),n=m.find("form [name='commentId']").val(),o=d.trim(m.find("form [name='body']").val()),i=m.find("form [name='privacy']"),s=d(i).prop("checked")?d(i).val():null,i=m.find("form [name='isHtml']").val(),m.find(this.options.commentBodyInput).attr("disabled","true"),HZ.ajaz.Services.updateComment(e,t,n,o,s,this.options.source,i,d.proxy(this._editCommentAjaxHandler,this)))},this),null,null,function(){d(document).trigger("keyboardHandlerRequired",{source:this,event:e})},function(){d(document).trigger("keyboardHandlerReleased",{source:this,event:e})})},flagClick:function(e){var n,t=d(e.currentTarget),o=t.closest(this.options.selectors.comment),s=t.closest(this.options.selectors.commentable),i=o.data("hz").id,e=s.data("hz").type,m=(s.data("hz").ipq,e===HZ.ajaz.ContentFlag.COMMENTABLE_GALLERY?HZ.ajaz.ContentFlag.COMMENT:HZ.ajaz.ContentFlag.ANSWER),a=this;o.hasClass("flaggedComment")?(this._showLoader(t.parents(".flag-message")),HZ.ajaz.ContentFlag.removeFlag(m,i,function(e){var t,n;"true"==e.success?(n=function(){o.removeClass("flaggedComment"),a._hideLoader()},UIHelper.isIE8||UIHelper.isIE7||UIHelper.isIE6?(o.css({"max-height":"10000px"}),n()):o.animate({"max-height":"10000px"},"slow",n),void 0!==e.as&&(t=e.as,n=o.find(".admin-controls"),e=o.find(".hz-spam-control"),0===t?(o.removeClass("isolated rejected"),n.removeClass("active"),e.text("")):1===t?(o.removeClass("rejected").addClass("isolated"),n.addClass("active"),e.text("("+_hgt("Pending")+")")):2===t?(o.removeClass("isolated rejected"),n.removeClass("active"),e.text("")):4===t&&(o.addClass("isolated rejected"),n.addClass("active"),e.text("("+_hgt("Rejected")+")")))):a._hideLoader()})):HZ.flag.ShowFlagDialog({okCallback:function(e,t){HZ.ajaz.ContentFlag.addFlag(m,i,t,n,function(e){HZ.ui.AjaxThrobber.setInCall(!1),"true"===e.success?(HZ.ui.yamdi.Common.hideAllDialogs(),o.addClass("flaggedComment")):HZ.flag.flagDialogInstance.showStatus(e.error)})},isComment:!0})},_editCommentAjaxHandler:function(e){"true"==e.success&&e.comments&&((e=d(e.comments)).hide(),this.$commentToUpdate.replaceWith(e),e.fadeIn()),HZ.ui.yamdi.Common.hideAllDialogs(),this.executing=!1,this._notifyObservers()},_toggleCommentsContainer:function(){this.elements.commentsContainer.is(":visible")?(this.elements.commentsContainer.slideUp(this.options.slideDuration),this.elements.seeMoreComments.text(_hgt("Show comments"))):this._showCommentsContainer(),this._notifyObservers()},_showCommentsContainer:function(){this.elements.commentsContainer.is(":visible")||(this.elements.commentsContainer.slideDown(this.options.slideDuration),this.elements.seeMoreComments.text(_hgt("Hide comments")))},showMoreClick:function(e){var t,n,o;d(e.target).hasClass(this.options.commentsToggleClass)?this._toggleCommentsContainer():this.executing||(this.executing=!0,this.isGetCommentsCalled?this._showCachedMoreComments():(this._showLoader(e.currentTarget),this.clearRecentCommentsOnFirstLoad&&this._clearRecentCommentsPreAjax(),t=this.topCommentId,n=[],o=null,e=this.element.closest(".feedItem").length,HZ.globalComments&&(n=HZ.globalComments.getSelectedLanguages(),o=this.numCommentsRemaining),HZ.ajaz.Services.getComments(this.objectType,this.objectId,o,t,null,this.options.source,n,e,d.proxy(this._showMoreAjaxHandler,this))))},cachedCommentsExist:function(){return this.isGetCommentsCalled},getComments:function(){this.executing||(this.executing=!0,this.isGetCommentsCalled=!0,HZ.ajaz.Services.getComments(this.objectType,this.objectId,this.numCommentsRemaining,this.topCommentId,null,this.options.source,HZ.globalComments?HZ.globalComments.getSelectedLanguages():[],this.element.closest(".feedItem").length,d.proxy(this._onGetComments,this)))},_onGetComments:function(e){var t;e.comments&&(t=d(d("<div>").html(e.comments).text()).hide().prependTo(this.elements.commentsContainer),this.$cachedMoreComments=t,this.cachedCommentCount=e.commentCount,HZ.globalComments&&(t=d.map(t,function(e,t){e=d(e).data("hz");return{commentId:e.id,translation:null,language:e.lang}}),HZ.globalComments.setComments(t,!1),HZ.globalComments.toggleTranslateAllButton(),this.elements.seeMoreComments[0].dispatchEvent(new Event("gc-showMoreComments")))),this.executing=!1},_showCachedMoreComments:function(){this._showLoader(this.elements.seeMoreComments),this.clearRecentCommentsOnFirstLoad&&this._clearRecentCommentsPreAjax(),this.$cachedMoreComments.length?(this._updateCommentsEvent(this.cachedCommentCount),this.$cachedMoreComments.slideDown(this.options.slideDuration,d.proxy(function(){void 0!==HZ.feedComments&&void 0!==HZ.feedComments.Peekable&&void 0!==HZ.feedComments.Peekable.peekableHandler&&this.$cachedMoreComments.find(".commentBodyContent.comment-peekable").each(HZ.feedComments.Peekable.peekableHandler),this._hideLoader(),this.executing=!1},this)),HZ.globalComments&&HZ.globalComments.toggleTranslateAllButton()):(this._updateCommentsEvent(0),this._hideLoader(),this.executing=!1),HZ.globalComments&&(HZ.globalComments.enableSelectAllLanguagesView(),this.elements.moreComments.hide()),this.isGetCommentsCalled=!1},_clearRecentCommentsPreAjax:function(){this.topCommentId=4294967295},_clearRecentCommentsPostAjax:function(){this.elements.commentsContainer.empty(),this.clearRecentCommentsOnFirstLoad=!1},_showMoreAjaxHandler:function(e){var t;e.comments?(this.clearRecentCommentsOnFirstLoad&&this._clearRecentCommentsPostAjax(),(t=d(d("<div>").html(e.comments).text())).hide(),this.elements.commentsContainer.prepend(t),e=e.commentCount,this._updateCommentsEvent(e),t.slideDown(this.options.slideDuration,d.proxy(function(){void 0!==HZ.feedComments&&void 0!==HZ.feedComments.Peekable&&void 0!==HZ.feedComments.Peekable.peekableHandler&&t.find(".commentBodyContent.comment-peekable").each(HZ.feedComments.Peekable.peekableHandler),this._hideLoader(),this.executing=!1},this)),HZ.globalComments&&(e=d.map(t,function(e,t){e=d(e).data("hz");return{commentId:e.id,translation:null,language:e.lang}}),HZ.globalComments.setComments(e,!1),HZ.globalComments.toggleTranslateAllButton(),this.elements.seeMoreComments[0].dispatchEvent(new Event("gc-showMoreComments")))):(this._updateCommentsEvent(0),this._hideLoader(),this.executing=!1),HZ.globalComments&&(HZ.globalComments.enableSelectAllLanguagesView(),this.elements.moreComments.hide())},_addCommentKeypress:function(e){13!=(e.keyCode||e.which)||e.shiftKey||(e.preventDefault(),this.submitAddComment(e))},validateAddComment:function(){return!this.executing&&(""!=d.trim(this.elements.bodyInput.val())&&(this.executing=!0,this.elements.bodyInput.attr("disabled","true"),!0))},updateLastCommentFormInput:function(){null!=this.lastCommentId&&this.elements.lastCommentInput.val(this.lastCommentId)},submitAddComment:function(e){var t,n,o,s;HZ.feedComments.requireLoggedIn(69)&&(this.executing||(t=this.elements.bodyInput.attr("placeholder"),o=d.trim(this.elements.bodyInput.val()),n=parseInt(this.elements.bodyInput.attr("maxlength"),10)||1e4,""!=o&&o!==t?n<(o=o.length)?(s=_hgt("Your post is {numOfCharsToDelete} too long, posts can be up to {lengthLimit} characters. Please make it a little shorter and try again.",{lengthLimit:n,numOfCharsToDelete:_hgtp("","1 character","{n} characters",o-n,{n:o-n})}),this.elements.errorMessage.text(s).slideDown(this.options.slideDuration)):(!this.options.source||0==(s=this.elements.addCommentForm.find("input[name='source']")).length&&(s=d("<input type='hidden' name='source' value='"+this.options.source+"'/>"),this.elements.addCommentForm.append(s)),d.proxy(function(){this.executing=!0,this.updateLastCommentFormInput();var e={success:d.proxy(function(e,t,n,o){e=d.parseJSON(d(e).text());this._addCommentAjaxHandler(e);e=this.elements.addComment.find("textarea.add-comment-rte");e.data("hz-addCommentRte")&&e.addCommentRte("destroy")},this),error:d.proxy(function(e,t,n){this._addCommentAjaxHandler(n)},this)};if(HZ.globalComments){var t=HZ.globalComments.getSelectedLanguages(),n=this.elements.addCommentForm.find("input[name=preferredLanguages]");-1==d.inArray("other",t)&&t.push("other"),n.length?n.val(t.join(",")):(n=d('<input type="hidden" name="preferredLanguages" value="'+t.join(",")+'">'),this.elements.addCommentForm.append(n));n=this.elements.addCommentForm.find("input[name=lastCommentId]");if(n.length){for(var o,s=0;s<t.length;s++){var i=t[s],i=HZ.globalComments.getLastCommentIdByLanguage(i),i=parseInt(i)||null;(!o||o<i)&&(o=i)}n.val(o||n.val())}}n=this.elements.addCommentForm.find("input[name=isReferrerGalleryFeed]");n.length?n.val(1):d('<input type="hidden" name="isReferrerGalleryFeed">').val(1).appendTo(this.elements.addCommentForm),this.elements.addCommentForm.ajaxSubmit(e),this.elements.addCommentForm.find("input, textarea, button, select").attr("readonly","true"),this._showLoader(this.elements.submitButton),this._showCommentsContainer()},this)()):this.elements.errorMessage.text(_hgt("Please enter your comment.")).slideDown(this.options.slideDuration)))},_addCommentAjaxHandler:function(e){var t;e&&"true"==e.success?((t=d(e.comments)).hide(),this.elements.commentsContainer.append(t),this.elements.addCommentForm.get(0).reset(),this.elements.addCommentExtra.hide(),this.elements.addComment.find(".hzProIndicator").hide(),null!=this.elements.fileInputs&&(this.elements.fileInputs[0].innerHTML=this.elements.fileInputs[0].innerHTML,this.elements.fileInputs.hide().find("input").hide().first().show()),this.elements.addCommentForm.find(".attachment-previews").empty(),void 0!==HZ.modules&&void 0!==HZ.modules.SpacePreview&&HZ.modules.SpacePreview&&HZ.modules.SpacePreview.clearCache&&HZ.modules.SpacePreview.clearCache(this.elements.bodyInput),this.elements.bodyInput.trigger("autosize"),this.elements.bodyInput.trigger("reset"),this.elements.errorMessage.hide(),e=e.commentCount,this._updateCommentsEvent(e),t.fadeIn((this.options.slideDuration,d.proxy(function(){void 0!==HZ.feedComments&&void 0!==HZ.feedComments.Peekable&&void 0!==HZ.feedComments.Peekable.peekableHandler&&t.find(".commentBodyContent.comment-peekable").each(HZ.feedComments.Peekable.peekableHandler)},this))),HZ.globalComments&&(e=d.map(t,function(e,t){e=d(e).data("hz");return{commentId:e.id,translation:null,language:e.lang}}),HZ.globalComments.setComments(e,!0))):HZ.ui.yamdi.Common.alert(_hgt("Unable to add comment"),_hgt("Unable to add comment.  Please reload the page and try again.")),this.executing=!1,this.elements.addCommentForm.find("input, textarea, button, select").removeAttr("readonly"),this._hideLoader(),this._notifyObservers()},_notifyObservers:function(){this.options.contentChangedHandler&&this.options.contentChangedHandler()}})}(jQuery),HZ.ns("HZ.feedComments"),HZ.feedComments=new function(){var t={source:null,feedContainer:".feedContainer",feedInfo:".feedInfo",feedActions:".feedActions"},o="hz-feedComments",s=".feedComments",i="span.commentButton",m=".addComment form textarea[name='body']",a=".addComment",d=".fileInputs",l=".addCommentExtra",r=".submitAddComment",c=".moreComments a",h=".comment .deleteComment",u=".comment .editComment",C=".addComment .link--addPhoto",g=".addComment .addCommentFileInput",f=".hzProIndicator.hzProfileCompleted.hzProView",p=".comment .flagComment, .comment .unflag";this.init=function(e){function n(){$(".add-comment-rte").each(function(e,t){$(t).data("hz-addCommentRte")&&$(t).addCommentRte("destroy")}),$(".edit-comment-rte").each(function(e,t){$(t).data("hz-editCommentRte")&&$(t).editCommentRte("destroy")})}var o=!1;if(!e.source)throw"source attribute required";config={},$.extend(config,t,e),null==$(config.feedContainer).data("feedCommentsConfig")&&($(config.feedContainer).data("feedCommentsConfig",config),$(m).initPlaceHolders(),$(config.feedContainer).on("mouseover",f,function(e){$(this).tipBubble({id:"proIndicatorHelp",content:_hgt("This pro has a complete profile."),point:"north",width:"auto",offsetY:4,position:"absolute",attachTo:"body",showCloseBtn:!1})}).on("mouseout",f,function(){$(this).tipBubble("hide")}),$(config.feedContainer).on("click",i,function(e){var t=$(this).closest(config.feedInfo),n=t.parents(".feedItem").find(s);HZ.feedComments.requireLoggedIn(69)&&0!=t.length&&0!=n.length&&(n.show(),void 0!==HZ.feedComments&&void 0!==HZ.feedComments.Peekable&&void 0!==HZ.feedComments.Peekable.peekableHandler&&n.find(".commentBodyContent.comment-peekable").each(HZ.feedComments.Peekable.peekableHandler),n.find(m).focus())}),$(config.feedContainer).on("focus",m,function(e){$(document).trigger("keyboardHandlerRequired",{source:this,event:e});b(this,config);var t=$(this).parents(s).find(l);t.is(":visible")||t.show(),$(this).parents(a).find(".hzProIndicator").show(),n(),$(this).prop("disabled",!0).closest(".addComment").find(".link--addPhoto").hide(),o?$(this).addCommentRte({onFocus:function(){$(document).trigger("keyboardHandlerRequired",{source:this,event:e})},onBlur:function(){HZ.ui.Yamdi.isShowing()||$(document).trigger("keyboardHandlerReleased",{source:this,event:e})}}).prop("disabled",!1):HZ.utils.ResourceLoader.requireCommentRichTextEditorResources($.proxy(function(){$(this).addCommentRte({onFocus:function(){$(document).trigger("keyboardHandlerRequired",{source:this,event:e})},onBlur:function(){HZ.ui.Yamdi.isShowing()||$(document).trigger("keyboardHandlerReleased",{source:this,event:e})}}).prop("disabled",!1),o=!0},this))}),$(config.feedContainer).on("blur",m,function(e){$(document).trigger("keyboardHandlerReleased",{source:this,event:e})}),$(config.feedContainer).on("click",r,function(e){b(this,config).submitAddComment(e)}),$(config.feedContainer).on("click",c,function(e){b(this,config).showMoreClick(e)}),$(config.feedContainer).on("click",h,function(e){e.preventDefault(),b(this,config).deleteClick(e)}),$(config.feedContainer).on("click",u,function(e){n();var t=$(this).closest(".comment").find("textarea.edit-comment-rte");t.length?o?t.editCommentRte({onFocus:function(){$(document).trigger("keyboardHandlerRequired",{source:this,event:e})},onBlur:function(){HZ.ui.Yamdi.isShowing()||$(document).trigger("keyboardHandlerReleased",{source:this,event:e})}}):HZ.utils.ResourceLoader.requireCommentRichTextEditorResources(function(){t.editCommentRte({onFocus:function(){$(document).trigger("keyboardHandlerRequired",{source:this,event:e})},onBlur:function(){HZ.ui.Yamdi.isShowing()||$(document).trigger("keyboardHandlerReleased",{source:this,event:e})}}),o=!0}):b(this,config).editClick(e)}),$(config.feedContainer).on("click",p,function(e){e.preventDefault(),b(this,config).flagClick(e)}),$(config.feedContainer).on("click",C,function(e){HZ.feedComments.requireLoggedIn(69)&&((e=$(e.currentTarget).parents(a).find(d)).is(":visible")||(e.show(),UIHelper.isMSIE||e.find("input.addCommentFileInput").first().click()))}),$(config.feedContainer).on("change",g,function(e){$(this).next("input.addCommentFileInput").css("display","block")}))},this.requireLoggedIn=function(e){return null!=HZ.data.CurrentSessionUser||(HZ.auth.Manager.signup(e),!1)},this.getFeedCommentsWidget=function(e){return b(e,config)};var b=function(e,t){var n=null,e=$(e).closest(s);return n=null==(n=e.data(o))?e.feedComments({source:t.source}).data(o):n}};

window.hzmr.push("feedComments:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End feedComments.js  **************/
/************* Start jquery.form.min.js for locale en-GB **************/
try {!function(F){"use strict";function a(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),F(this).ajaxSubmit(t))}function r(e){var t=e.target,a=F(t);if(!a.is("[type=submit],[type=image]")){var r=a.closest("[type=submit]");if(0===r.length)return;t=r[0]}var n=this;"image"==(n.clk=t).type&&(void 0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeof F.fn.offset?(a=a.offset(),n.clk_x=e.pageX-a.left,n.clk_y=e.pageY-a.top):(n.clk_x=e.pageX-t.offsetLeft,n.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}function O(){var e;F.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}var h={};h.fileapi=void 0!==F("<input type='file'/>").get(0).files,h.formdata=void 0!==window.FormData,F.fn.ajaxSubmit=function(A){function e(e){for(var a=new FormData,t=0;t<e.length;t++)a.append(e[t].name,e[t].value);if(A.extraData)for(var r=function(e){for(var t,a=F.param(e).split("&"),r=a.length,n=[],i=0;i<r;i++)a[i]=a[i].replace(/\+/g," "),t=a[i].split("="),n.push([decodeURIComponent(t[0]),decodeURIComponent(t[1])]);return n}(A.extraData),t=0;t<r.length;t++)r[t]&&a.append(r[t][0],r[t][1]);A.data=null;var n=F.extend(!0,{},F.ajaxSettings,A,{contentType:!1,processData:!1,cache:!1,type:E||"POST"});A.uploadProgress&&(n.xhr=function(){var e=jQuery.ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",function(e){var t=0,a=e.loaded||e.position,r=e.total;e.lengthComputable&&(t=Math.ceil(a/r*100)),A.uploadProgress(e,a,r,t)},!1),e}),n.data=null;var i=n.beforeSend;return n.beforeSend=function(e,t){t.data=a,i&&i.call(this,e,t)},F.ajax(n)}function t(e){function l(e){return e.contentWindow?e.contentWindow.document:e.contentDocument||e.document}function t(){var e=L.attr("target"),t=L.attr("action");i.setAttribute("target",n),E||i.setAttribute("method","POST"),t!=f.url&&i.setAttribute("action",f.url),f.skipEncodingOverride||E&&!/post/i.test(E)||L.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),f.timeout&&(g=setTimeout(function(){v=!0,c(b)},f.timeout));var a=[];try{if(f.extraData)for(var r in f.extraData)f.extraData.hasOwnProperty(r)&&(F.isPlainObject(f.extraData[r])&&f.extraData[r].hasOwnProperty("name")&&f.extraData[r].hasOwnProperty("value")?a.push(F('<input type="hidden" name="'+f.extraData[r].name+'">').val(f.extraData[r].value).appendTo(i)[0]):a.push(F('<input type="hidden" name="'+r+'">').val(f.extraData[r]).appendTo(i)[0]));f.iframeTarget||(d.appendTo("body"),p.attachEvent?p.attachEvent("onload",c):p.addEventListener("load",c,!1)),setTimeout(function e(){try{var t=l(p).readyState;O("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){O("Server abort: ",e," (",e.name,")"),c(y),g&&clearTimeout(g),g=void 0}},15);try{i.submit()}catch(e){document.createElement("form").submit.apply(i)}}finally{i.setAttribute("action",t),e?i.setAttribute("target",e):L.removeAttr("target"),F(a).remove()}}function c(t){if(!h.aborted&&!w){try{j=l(p)}catch(e){O("cannot access response document: ",e),t=y}if(t===b&&h)return h.abort("timeout"),void x.reject(h,"timeout");if(t==y&&h)return h.abort("server abort"),void x.reject(h,"error","server abort");if(j&&j.location.href!=f.iframeSrc||v){p.detachEvent?p.detachEvent("onload",c):p.removeEventListener("load",c,!1);var a,t="success";try{if(v)throw"timeout";var e="xml"==f.dataType||j.XMLDocument||F.isXMLDoc(j);if(O("isXml="+e),!e&&window.opera&&(null===j.body||!j.body.innerHTML)&&--S)return O("requeing onLoad callback, DOM not available"),void setTimeout(c,250);var r=j.body||j.documentElement;h.responseText=r?r.innerHTML:null,h.responseXML=j.XMLDocument||j,e&&(f.dataType="xml"),h.getResponseHeader=function(e){return{"content-type":f.dataType}[e]},r&&(h.status=Number(r.getAttribute("status"))||h.status,h.statusText=r.getAttribute("statusText")||h.statusText);var n,i,o,s=(f.dataType||"").toLowerCase(),u=/(json|script|text)/.test(s);u||f.textarea?(n=j.getElementsByTagName("textarea")[0])?(h.responseText=n.value,h.status=Number(n.getAttribute("status"))||h.status,h.statusText=n.getAttribute("statusText")||h.statusText):u&&(i=j.getElementsByTagName("pre")[0],o=j.getElementsByTagName("body")[0],i?h.responseText=i.textContent||i.innerText:o&&(h.responseText=o.textContent||o.innerText)):"xml"==s&&!h.responseXML&&h.responseText&&(h.responseXML=k(h.responseText));try{T=D(h,s,f)}catch(e){t="parsererror",h.error=a=e||t}}catch(e){O("error caught: ",e),t="error",h.error=a=e||t}h.aborted&&(O("upload aborted"),t=null),"success"===(t=h.status?200<=h.status&&h.status<300||304===h.status?"success":"error":t)?(f.success&&f.success.call(f.context,T,"success",h),x.resolve(h.responseText,"success",h),m&&F.event.trigger("ajaxSuccess",[h,f])):t&&(void 0===a&&(a=h.statusText),f.error&&f.error.call(f.context,h,t,a),x.reject(h,"error",a),m&&F.event.trigger("ajaxError",[h,f,a])),m&&F.event.trigger("ajaxComplete",[h,f]),m&&!--F.active&&F.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,h,t),w=!0,f.timeout&&clearTimeout(g),setTimeout(function(){f.iframeTarget||d.remove(),h.responseXML=null},100)}}}var a,r,f,m,n,d,p,h,v,g,i=L[0],o=!!F.fn.prop,x=F.Deferred();if(e)for(r=0;r<M.length;r++)a=F(M[r]),o?a.prop("disabled",!1):a.removeAttr("disabled");if((f=F.extend(!0,{},F.ajaxSettings,A)).context=f.context||f,n="jqFormIO"+(new Date).getTime(),f.iframeTarget?(s=(d=F(f.iframeTarget)).attr("name"))?n=s:d.attr("name",n):(d=F('<iframe name="'+n+'" src="'+f.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=d[0],h={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";O("aborting upload... "+t),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",f.iframeSrc),h.error=t,f.error&&f.error.call(f.context,h,t,e),m&&F.event.trigger("ajaxError",[h,f,t]),f.complete&&f.complete.call(f.context,h,t)}},(m=f.global)&&0==F.active++&&F.event.trigger("ajaxStart"),m&&F.event.trigger("ajaxSend",[h,f]),f.beforeSend&&!1===f.beforeSend.call(f.context,h,f))return f.global&&F.active--,x.reject(),x;if(h.aborted)return x.reject(),x;(e=i.clk)&&(s=e.name)&&!e.disabled&&(f.extraData=f.extraData||{},f.extraData[s]=e.value,"image"==e.type&&(f.extraData[s+".x"]=i.clk_x,f.extraData[s+".y"]=i.clk_y));var b=1,y=2,e=F("meta[name=csrf-token]").attr("content"),s=F("meta[name=csrf-param]").attr("content");s&&e&&(f.extraData=f.extraData||{},f.extraData[s]=e),f.forceSync?t():setTimeout(t,10);var T,j,w,S=50,k=F.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},u=F.parseJSON||function(e){return window.eval("("+e+")")},D=function(e,t,a){var r=e.getResponseHeader("content-type")||"",n="xml"===t||!t&&0<=r.indexOf("xml"),e=n?e.responseXML:e.responseText;return n&&"parsererror"===e.documentElement.nodeName&&F.error&&F.error("parsererror"),"string"==typeof(e=a&&a.dataFilter?a.dataFilter(e,t):e)&&("json"===t||!t&&0<=r.indexOf("json")?e=u(e):("script"===t||!t&&0<=r.indexOf("javascript"))&&F.globalEval(e)),e};return x}if(!this.length)return O("ajaxSubmit: skipping submit process - no element selected"),this;var E,L=this;"function"==typeof A&&(A={success:A}),E=this.attr("method"),r=(r=(r="string"==typeof(a=this.attr("action"))?F.trim(a):"")||window.location.href||"")&&(r.match(/^([^#]+)/)||[])[1],A=F.extend(!0,{url:r,success:F.ajaxSettings.success,type:E||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},A);var a={};if(this.trigger("form-pre-serialize",[this,A,a]),a.veto)return O("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(A.beforeSerialize&&!1===A.beforeSerialize(this,A))return O("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var r=A.traditional;void 0===r&&(r=F.ajaxSettings.traditional);var M=[],n=this.formToArray(A.semantic,M);if(A.data&&(A.extraData=A.data,u=F.param(A.data,r)),A.beforeSubmit&&!1===A.beforeSubmit(n,this,A))return O("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[n,this,A,a]),a.veto)return O("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;a=F.param(n,r);u&&(a=a?a+"&"+u:u),"GET"==A.type.toUpperCase()?(A.url+=(0<=A.url.indexOf("?")?"&":"?")+a,A.data=null):A.data=a;var i,o=[];A.resetForm&&o.push(function(){L.resetForm()}),A.clearForm&&o.push(function(){L.clearForm(A.includeHidden)}),!A.dataType&&A.target?(i=A.success||function(){},o.push(function(e){var t=A.replaceTarget?"replaceWith":"html";F(A.target)[t](e).each(i,arguments)})):A.success&&o.push(A.success),A.success=function(e,t,a){for(var r=A.context||this,n=0,i=o.length;n<i;n++)o[n].apply(r,[e,t,a||L,L])};var s,r=0<F('input[type=file]:enabled[value!=""]',this).length,u="multipart/form-data",a=L.attr("enctype")==u||L.attr("encoding")==u,u=h.fileapi&&h.formdata;O("fileAPI :"+u),!1!==A.iframe&&(A.iframe||(r||a)&&!u)?A.closeKeepAlive?F.get(A.closeKeepAlive,function(){s=t(n)}):s=t(n):s=(r||a)&&u?e(n):F.ajax(A),L.removeData("jqxhr").data("jqxhr",s);for(var l=0;l<M.length;l++)M[l]=null;return this.trigger("form-submit-notify",[this,A]),this},F.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&F.isFunction(F.fn.on),e.delegation||0!==this.length)return e.delegation?(F(document).off("submit.form-plugin",this.selector,a).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,e,a).on("click.form-plugin",this.selector,e,r),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,a).bind("click.form-plugin",e,r);var t={s:this.selector,c:this.context};return!F.isReady&&t.s?(O("DOM not ready, queuing ajaxForm"),F(function(){F(t.s,t.c).ajaxForm(e)})):O("terminating; zero elements found by selector"+(F.isReady?"":" (DOM not ready)")),this},F.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},F.fn.formToArray=function(e,t){var a=[];if(0===this.length)return a;var r,n,i,o,s,u,l,c,f,m=this[0],d=e?m.getElementsByTagName("*"):m.elements;if(!d)return a;for(r=0,s=d.length;r<s;r++)if(f=(o=d[r]).name)if(e&&m.clk&&"image"==o.type)o.disabled||m.clk!=o||(a.push({name:f,value:F(o).val(),type:o.type}),a.push({name:f+".x",value:m.clk_x},{name:f+".y",value:m.clk_y}));else if((i=F.fieldValue(o,!0))&&i.constructor==Array)for(t&&t.push(o),n=0,u=i.length;n<u;n++)a.push({name:f,value:i[n]});else if(h.fileapi&&"file"==o.type&&!o.disabled){t&&t.push(o);var p=o.files;if(p.length)for(n=0;n<p.length;n++)a.push({name:f,value:p[n],type:o.type});else a.push({name:f,value:"",type:o.type})}else null!=i&&(t&&t.push(o),a.push({name:f,value:i,type:o.type,required:o.required}));return e||!m.clk||(f=(c=(l=F(m.clk))[0]).name)&&!c.disabled&&"image"==c.type&&(a.push({name:f,value:l.val()}),a.push({name:f+".x",value:m.clk_x},{name:f+".y",value:m.clk_y})),a},F.fn.formSerialize=function(e){return F.param(this.formToArray(e))},F.fn.fieldSerialize=function(n){var i=[];return this.each(function(){var e=this.name;if(e){var t=F.fieldValue(this,n);if(t&&t.constructor==Array)for(var a=0,r=t.length;a<r;a++)i.push({name:e,value:t[a]});else null!=t&&i.push({name:this.name,value:t})}}),F.param(i)},F.fn.fieldValue=function(e){for(var t=[],a=0,r=this.length;a<r;a++){var n=this[a],n=F.fieldValue(n,e);null==n||n.constructor==Array&&!n.length||(n.constructor==Array?F.merge(t,n):t.push(n))}return t},F.fieldValue=function(e,t){var a=e.name,r=e.type,n=e.tagName.toLowerCase();if((t=void 0===t?!0:t)&&(!a||e.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!e.checked||("submit"==r||"image"==r)&&e.form&&e.form.clk!=e||"select"==n&&-1==e.selectedIndex))return null;if("select"!=n)return F(e).val();n=e.selectedIndex;if(n<0)return null;for(var i=[],o=e.options,s="select-one"==r,u=s?n+1:o.length,l=s?n:0;l<u;l++){var c=o[l];if(c.selected){var f=(f=c.value)||(c.attributes&&c.attributes.value&&!c.attributes.value.specified?c.text:c.value);if(s)return f;i.push(f)}}return i},F.fn.clearForm=function(e){return this.each(function(){F("input,select,textarea",this).clearFields(e)})},F.fn.clearFields=F.fn.clearInputs=function(a){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();r.test(e)||"textarea"==t?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==t?this.selectedIndex=-1:"file"==e?/MSIE/.test(navigator.userAgent)?F(this).replaceWith(F(this).clone()):F(this).val(""):a&&(!0===a&&/hidden/.test(e)||"string"==typeof a&&F(this).is(a))&&(this.value="")})},F.fn.resetForm=function(){return this.each(function(){"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset()})},F.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},F.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var e=this.type;"checkbox"==e||"radio"==e?this.checked=t:"option"==this.tagName.toLowerCase()&&(e=F(this).parent("select"),t&&e[0]&&"select-one"==e[0].type&&e.find("option").selected(!1),this.selected=t)})},F.fn.ajaxSubmit.debug=!1}(jQuery);

window.hzmr.push("jquery.form.min:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End jquery.form.min.js  **************/
/************* Start spacePreview.js for locale en-GB **************/
try {HZ.ns("HZ.modules"),HZ.modules.SpacePreview=new function(){var u=new RegExp("https?://(?:www\\.)?(?:mytest|houzztest|houzz2?|stghouzz)\\.[A-Za-z\\./]*/("+HZ.utils.Config.spaceCommand+"|"+HZ.utils.Config.photoCommand+"|"+HZ.utils.Config.productCommand+"|"+HZ.utils.Config.galleryCommand+"|projects)/(\\d+)(?=(?:\\D|$))[/\\?=&\\+%\\w-#]*","g");this.init=function(e){var t,a;void 0!==e&&e.length&&((t=e.parents(".bubble--post").length?$('<div class="generatedPhotoCtn clearfix"></div>').insertAfter(e.parents(".bubble--post")):$('<div class="generatedPhotoCtn clearfix"></div>').insertAfter(e)).data("urlToId",{}),e.data("preview",{analyzing:!1}),""!==e.val()&&i(e,t),a=function(){var a=$(this).data("preview");!(!a||!a.analyzing)&&a.analyzing||i(e,t)},e.bind("keyup.linkConverter",$.debounce(700,a)).bind("change.linkConverter",a).bind("paste.linkConverter",function(){setTimeout(a,0)}).bind("reset",a),t.on("click",".removeThumb",function(a){n($(this),e,t)}))};var i=function(a,e){var t=[],i=[],n=[],d=a.data("preview");d&&(d.analyzing=!0),a.data("preview",d);for(var o,d=a.val(),r=e.data("urlToId"),s=(t=null===(t=d.match(u))?[]:t).length,l=0;l<s;l++)void 0===r[o=t[l]]&&i.push(o);for(o in r)r.hasOwnProperty(o)&&-1===$.inArray(o,t)&&n.push(o);n.length&&c(e,n),i.length?h(t,a,e):a.data("preview",{analyzing:!1})},h=function(a,i,n){var d,o,r,s=0,a=a.join(" "),l=$("#questionsGuidelines");a?HZ.ajaz.Services.getMinimalSpaceData(a,function(a){var e,t;a&&"true"===a.success&&a.spaces&&a.images&&(e=HZ.data.Spaces.getCollection(),t=HZ.data.Images.getCollection(),$.extend(!0,e,a.spaces),$.extend(!0,t,a.images),HZ.data.Spaces.addAll(e),HZ.data.Images.addAll(t),function(a){var e,t,i="";for(e in a)a.hasOwnProperty(e)&&(d=a[e],(o=HZ.data.Spaces.get(d))&&o.iids&&o.iids[0]&&(r=o.iids[0],o=HZ.data.Images.get(r),s=(s=o?o.ts:s)||"0000",t=HZ.utils.Links.getStaticImageUrlHost()+r+"_5-"+s+"/home-design.jpg",i+='<div class="houseThumbnail" data-id="'+d+'"><img width="75px" height="55px" src="'+t+'"/><a href="javascript:;" class="removeThumb"></a></div>'));i?n.html(i).show():n.html("").hide(),i&&0<l.length&&l.hide()}(a.urlToId),n.data("urlToId",a.urlToId)),i.data("preview",{analyzing:!1})}):i.data("preview",{analyzing:!1})},c=function(a,e){for(var t=a.data("urlToId"),i=e.length,n=0;n<i;n++){var d=e[n],o=t[d];a.find("[data-id="+o+"]").remove(),delete t[d]}""==a.html()&&a.hide(),a.data("urlToId",t)},n=function(a,e,t){var i,n,d=t.data("urlToId"),o=a.closest(".houseThumbnail"),r=o.attr("data-id");for(n in d)d.hasOwnProperty(n)&&d[n]===r&&(o.hide().remove(),i=e.val().replace(n,""),e.val(i),delete d[n]);""==t.html()&&t.hide(),t.data("urlToId",d)}};

window.hzmr.push("spacePreview:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End spacePreview.js  **************/
/************* Start zoomable.js for locale en-GB **************/
try {HZ.ns("HZ.modules.Zoomable"),HZ.modules.Zoomable=new function(){var e,t;this.init=function(){$("body").off("click.photoViewer",".js-enlarge").on("click.photoViewer",".js-enlarge",e)},e=function(e){void 0===t&&(t=new HZ.dialogs.PhotoViewer).prepare(),t.showImage(this),e.preventDefault()}},HZ.ns("HZ.dialogs.PhotoViewer"),HZ.dialogs.PhotoViewer=function(){var $body,$imgThumbDiv,shouldShowImgInfo,imageObj,zoomCallback,zoomIndex,imageArr,imgNatureWidth,imgNatureHeight;HZ.dialogs.PhotoViewer.superclass.constructor.call(this);var DIALOG_FRAME_PADDING=15,IMAGE_INFO_DIV_HEIGHT=30,PHOTO_VIEWER_MARGIN=.025,IMAGE_DIV_MIN_HEIGHT=190;this.prepare=function(){var i,e;$body=$('<div id="photoViewer"><div class="hzLoadingDlgThrobber"></div><div class="photo-viewer__img-thumb text-center"></div><div class="photo-viewer__img-info text-l text-right hidden"></div><div id="photoViewerClose"><a id="photoViewerCloseBtn" href="javascript:;"><i class="hzi-font hzi-CloseX"></i></a></div><div id="imgAlt"></div></div>'),$imgThumbDiv=$body.find(".photo-viewer__img-thumb"),e={title:"",body:$body,controls:[],hideDialogOnBgClick:!0,dialogClassName:"dialogFrame-equalPadding dialogFrame-bodyOnly",onViewUnloaded:onViewUnloaded},(i=this).init(e),this.getView().find("#photoViewerCloseBtn").unbind("click.photoViewer").bind("click.photoViewer",function(){i.getDelegate().hide(i)}),this.getView().find(".photo-viewer__img-thumb").unbind("click.photoViewer").bind("click.photoViewer",function(){i.getDelegate().hide(i)}),this.getView().find("#imgAlt").bind("click",function(e){var t=$(e.target),e=t.attr("data-index"),e=$(imageArr[e]).attr("data-zoomsrc");i.showImage(imageObj,e),t.parent().find(".selected").removeClass("selected").end(),t.addClass("selected")})},this.showImage=function(e,t){var i,o,a=this,r=t||getSrc(e),n=$(e).attr("data-pin-no-hover"),d=$(e).attr("onmousedown"),s=$(e).attr("ondragstart"),l=$(e).attr("onselectstart"),t=$(e).attr("oncontextmenu");if(r&&(shouldShowImgInfo=!1,(e=$(e).parent()).is("a")&&(i=e.attr("href"))&&/^(https?|ftp):\/\/[^\s\/$.?#].[^\s]*$/.test(i)&&(shouldShowImgInfo=!0,o=/(houzz|gardenweb)/i.test(i)),window.lightbox&&window.lightbox.isShowing()?window.lightbox.showDialog(this):HZ.ui.Yamdi.show(this),showThrobber(),(imageObj=new Image).onload=function(){hideThrobber(),imgNatureWidth=imageObj.width,imgNatureHeight=imageObj.height,$imgThumbDiv.empty().append(imageObj),shouldShowImgInfo&&$body.find(".photo-viewer__img-info").empty().append('<a href="'+i+'" class="colorLink one-line" target="_blank">'+(o?_hgt("Visit Page")+'<span class="more-icon"></span>':i)+"</a>").removeClass("hidden"),a.handleResize(),$(window).on("resize.photoViewer",$.throttle(250,$.proxy(a.handleResize,a)))},imageObj.src=r,void 0!==n&&imageObj.setAttribute("data-pin-no-hover",n),void 0!==d&&imageObj.setAttribute("onmousedown",d),void 0!==s&&imageObj.setAttribute("ondragstart",s),void 0!==l&&imageObj.setAttribute("onselectstart",l),void 0!==t&&imageObj.setAttribute("oncontextmenu","event.preventDefault();return false;"),!$body.closest(".modal").hasClass("altZoom")&&imageArr&&imageArr.length)){if(1<imageArr.length){for(var h="",m=0;m<imageArr.length;m++)h+="<img class='"+(m==zoomIndex?"selected":"")+"' data-index='"+m+"' src='"+$(imageArr[m]).attr("src")+"' />";$body.find("#imgAlt").append(h),a.handleResize()}$body.closest(".modal").addClass("altZoom")}};var showThrobber=function(){$body.find(".hzLoadingDlgThrobber").removeClass("hidden")},hideThrobber=function(){$body.find(".hzLoadingDlgThrobber").addClass("hidden")},getSrc=function(e){var t=$(e),i=t.attr("src");return!1===t.hasClass("img-external")&&(e=/_[0-9]{1,2}((?:-(?:\S)+)?.jpg)/,t.attr("data-callback")&&(zoomCallback=t.attr("data-callback")),t.attr("data-zoomindex")?(zoomIndex=t.attr("data-zoomindex"),imageArr=t.siblings(),i=$(imageArr[zoomIndex]).attr("data-zoomsrc")):t.data("imgurl")?(i=t.data("imgurl"),t.data("alt-target")&&(imageArr=$(t.data("alt-target")))):i=e.test(i)?i.replace(e,"_9$1"):i.replace(/-w(\d+)-h(\d+)-/,function(e,t,i){var o=630,a=parseInt(t,10),t=parseInt(i,10),i=a/t;return Math.max(a,t)==a?(a=o,t=parseInt(o/i,10)):(t=o,a=parseInt(o*i,10)),"-w"+a+"-h"+t+"-"})),i},onViewUnloaded=function(){imageObj=null,imgNatureWidth=null,imgNatureHeight=null,$imgThumbDiv.empty().css({width:"auto",height:"auto"}),$body.find(".photo-viewer__img-info").empty().addClass("hidden"),$body.find("#imgAlt").empty(),$body.closest(".modal").removeClass("altZoom"),$(window).off("resize.photoViewer"),zoomCallback&&eval(zoomCallback)(),$(".hbs .modal-dialog").css({"margin-top":"","margin-bottom":"",width:""})};this.handleResize=function(){var e,t,i,o,a;void 0!==imageObj&&(a=UIHelper.getScreenBounds(),e=Math.floor(a.w*(1-2*PHOTO_VIEWER_MARGIN)-2*DIALOG_FRAME_PADDING-2),t=Math.floor(a.h*(1-2*PHOTO_VIEWER_MARGIN)-2*DIALOG_FRAME_PADDING-2),shouldShowImgInfo&&(t-=IMAGE_INFO_DIV_HEIGHT),i=imgNatureWidth/imgNatureHeight,o=Math.min(e,imgNatureWidth),t<(a=Math.floor(o/i))&&(a=Math.min(t,imgNatureHeight),o=Math.floor(a*i)),UIHelper.setBounds(imageObj,{x:"auto",y:"auto",w:o,h:a}),UIHelper.setBounds($imgThumbDiv[0],{x:"auto",y:"auto",w:Math.max(o,Math.min(e,Math.floor(i*IMAGE_DIV_MIN_HEIGHT))),h:Math.max(a,IMAGE_DIV_MIN_HEIGHT)}),$(imageObj).css({position:"relative",top:a<IMAGE_DIV_MIN_HEIGHT?"50%":0,"margin-top":a<IMAGE_DIV_MIN_HEIGHT?-Math.floor(a/2):0}),HZ.ui.Yamdi.center(),$(".hbs .modal-dialog").css({"margin-top":"0","margin-bottom":"0",width:Math.max(o,Math.min(e,Math.floor(i*IMAGE_DIV_MIN_HEIGHT)))+30}))}},HZ.extend(HZ.dialogs.PhotoViewer,HZ.ui.yamdi.Dialog),$(document).ready(function(){HZ.modules.Zoomable.init()});

window.hzmr.push("zoomable:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End zoomable.js  **************/
/************* Start like.js for locale en-GB **************/
try {HZ.ns("HZ.like"),HZ.like.LikeDialog=function(){HZ.like.LikeDialog.superclass.constructor.call(this);var t,i=this;this.prepare=function(){var e=$('<div id="hzlikeListContainer"><ul></ul></div>');t=e.find("ul");e={title:_hgt("People who like this"),body:e,onViewLoaded:n};i.init(e)},this.appendToLikeList=function(e){t.append(e)};var n=function(){t.empty()}},HZ.extend(HZ.like.LikeDialog,HZ.ui.yamdi.Dialog),HZ.like.Like=new function(){function c(e){switch(parseInt(e,10)){case m.typeQuestion:return _hgt("Like this discussion");case m.typeIbk:return _hgt("Like this ideabook");case m.typeAnswer:case m.typeComment:return _hgt("Like this comment");case m.typeReview:return _hgt("Like this review");case m.typeVendorListing:return _hgt("Like this product");default:return _hgt("Like this item")}}function d(e){return parseInt(e,10)!==m.typeVendorListing?_hgt("Reject this item"):_hgt("Reject this product")}var C,m,h=this,t={typeQuestion:5,typeIbk:1,typeAnswer:6,typeComment:9,typeReview:20,typeVendorListing:93,isCobrand:!1,likeAction:"like",unlikeAction:"unlike",dislikeAction:"dislike",unDislikeAction:"undislike",showlikeAction:"showlikes",likeButtonLabel:_hgt("Like"),likeButtonIngLabel:_hgt("Liked"),dislikeButtonLabel:_hgt("Reject"),dislikeButtonIngLabel:_hgt("Rejected"),likeIconClass:"icon-thumb_outline",unlikeIconClass:"icon-close",likeIconIngClass:"icon-thumb_solid button-icon-liked",buttonLikeClassSelector:".button-like",buttonDisLikeClassSelector:".button-dislike"};function i(e,t){var d=$(t),h=d.attr("data-object-type"),p=d.attr("data-object-id"),L=d.attr("data-action-only"),b=!1;h&&p||(t=d.parents(".hzBtn"),h=t.attr("loty"),p=t.attr("loid"),b="true"===t.attr("lncb"));parseInt(d.attr("data-self"),10);e==m.showlikeAction&&HZ.ui.Yamdi.show(C);var f=e;e==m.unDislikeAction&&(e=m.dislikeAction),HZ.ajaz.Like.like(e,p,h,function(e){var t=d.parents(".likeContainer");if(e&&"true"==e.success){var i=e.numberOfLikes,n=t.find(".hz-showlike"),s="",l=e.userList;if(f==m.likeAction)d.addClass("unlike").removeClass("like").attr("title",_hgt("Unlike")).find(".hz-likeAction").remove(),d.find(".hz-like").attr("aria-label",_hgt("Unlike this comment")),d.find(".hz-like").addClass("hz-liked icon-thumb_solid").removeClass("hz-like icon-thumb_outline"),"0"!==L||b||(s=_hgtp("You like this.","You and 1 other person like this.","You and {countOfOtherLikes} people like this.",i-1,{countOfOtherLikes:i-1}),0==n.length&&(n=$('<a class="hz-showlike" data-object-type="'+h+'" data-object-id="'+p+'" title="'+s+'" href="#"></a>'),t.append(n)),n.html(_hgtp("","1 Like","{numOfLikes} Likes",i,{numOfLikes:i})));else if(f==m.unlikeAction)d.addClass("like").removeClass("unlike").attr("title",_hgt("Like")),d.find(".hz-liked").attr("aria-label",_hgt("Like this comment")),d.find(".hz-liked").addClass("hz-like icon-thumb_outline").removeClass("hz-liked icon-thumb_solid"),b||(0==i||"1"===L?(n.remove(),d.append('<span class="like-btn-label hz-likeAction" aria-label="'+_hgt("No likes yet")+'">'+_hgt("Like")+"</span>")):0<i&&(s=_hgtp("","1 person likes this.","{countOfLikes} people like this.",i,{countOfLikes:i}),n.attr("title",s),n.html(_hgtp("","1 Like","{numOfLikes} Likes",i,{numOfLikes:i}))));else if(f==m.dislikeAction)d.addClass("undislike").removeClass("dislike").attr("title",_hgt("Cancel")).find(".hz-likeAction").remove();else if(f==m.unDislikeAction)d.addClass("dislike").removeClass("undislike").attr("title",_hgt("Like"));else if(f==m.showlikeAction)for(var o=l.length,a=0;a<o;a++){var r=$("<li></li>"),k=l[a],u=k.link,c=k.userName,k=k.userImage,k=$("<a class='likeUserImg hz-user-image' href='"+u+"'><img width='40' height='40' src='"+k+"'/></a>"),c=$("<div class='likeUserTextInfo'><a class='colorLink' href='"+u+"'>"+c+"</a></div><div style='clear:both'></div>");r.append(k).append(c),a==o-1&&r.addClass("last-like"),C.appendToLikeList(r),HZ.ui.Yamdi.center()}}else f==m.showlikeAction&&(HZ.ui.Yamdi.hide(C),e=_hgt("Cannot get the list of people who like this.<br/>{error}<br/>Please try it later.",{error:e.error}),HZ.ui.yamdi.Common.alert(_hgt("Internal Error"),e))})}this.init=function(e){e&&(m=$.extend({},t,e)),HZ.data.CurrentSessionUser?($(document).on("click","span.like",function(e){i(m.likeAction,this),e.preventDefault()}),$(document).on("click","span.unlike",function(e){i(m.unlikeAction,this),e.preventDefault()}),$(document).on("click","span.dislike",function(e){i(m.dislikeAction,this),e.preventDefault()}),$(document).on("click","span.undislike",function(e){i(m.unDislikeAction,this),e.preventDefault()})):$(document).on("click","span.like,span.unlike",function(e){HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Like.SOURCE_LINK_LIKE,null,window.location.href):window.location.href=m.likeRedirectLink,e.preventDefault()}),(C=new HZ.like.LikeDialog).prepare();e=$(".button-like");$(document).on("click","a.hz-showlike",function(e){e.preventDefault(),!HZ.data.CurrentSessionUser&&m.isCobrand?HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Like.SOURCE_LINK_LIKE,null,window.location.href):window.location.href=m.likeRedirectLink:i(m.showlikeAction,this)}),e.length&&($(document).on("click",".button-like .counter-bubble",function(e){e.stopImmediatePropagation(),e.preventDefault();!HZ.data.CurrentSessionUser&&m.isCobrand?HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Like.SOURCE_LINK_LIKE,null,window.location.href):window.location.href=m.likeRedirectLink:i(m.showlikeAction,this)}),$(document).on("click",m.buttonLikeClassSelector,function(e){HZ.data.CurrentSessionUser?h.updateLikes(this):(HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Like.SOURCE_LINK_LIKE,null,window.location.href):window.location.href=m.likeRedirectLink,e.preventDefault())}),$(document).on("click",m.buttonDisLikeClassSelector,function(e){HZ.data.CurrentSessionUser?h.updateLikes(this):(HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Like.SOURCE_LINK_LIKE,null,window.location.href):window.location.href=m.likeRedirectLink,e.preventDefault())}),$(document).on("mouseover",m.buttonLikeClassSelector,function(){$(this).attr("lop")!=m.unlikeAction&&$(this).attr("lop")!=m.unDislikeActionlikeAction||HZ.like.Like.updateLikeBtn($(this),!0)}).on("mouseout",m.buttonLikeClassSelector,function(){$(this).attr("lop")!=m.unlikeAction&&$(this).attr("lop")!=m.unDislikeActionlikeAction||h.updateLikeBtn($(this),!1)}),$(document).on("mouseover",m.buttonDisLikeClassSelector,function(){$(this).attr("lop")!=m.unlikeAction&&$(this).attr("lop")!=m.unDislikeActionlikeAction||HZ.like.Like.updateLikeBtn($(this),!0)}).on("mouseout",m.buttonDisLikeClassSelector,function(){$(this).attr("lop")!=m.unlikeAction&&$(this).attr("lop")!=m.unDislikeActionlikeAction||h.updateLikeBtn($(this),!1)}),$(document).on("mouseover",".button-like .counter-bubble",function(e){var t=$(this).parents(".button-like");"unlike"==t.attr("lop")&&(h.updateLikeBtn(t,!1),e.stopImmediatePropagation())}).on("mouseout",".button-like .counter-bubble",function(){var e=$(this).parents(".button-like");"unlike"==e.attr("lop")&&h.updateLikeBtn(e,!0)}))},this.updateLikes=function(e){$btn=$(e);var a=$btn.attr("lop"),r=$btn.attr("loty"),k=$btn.attr("loid"),u="true"===$btn.attr("lncb"),e=a;e==m.unDislikeAction&&(e=m.unlikeAction);HZ.ajaz.Like.like(e,k,r,function(e){var t,i,n,s,l,o;e&&"true"==e.success&&(l=$(m.buttonDisLikeClassSelector+'[loid*="'+k+'"]'),t=$(m.buttonLikeClassSelector+'[loid*="'+k+'"]'),i=$btn.find(".button-icon"),n=$btn.find(".button-label"),s=$btn.find(".counter-bubble"),a==m.likeAction?($btn.addClass("hz-liked"),n.text(m.likeButtonIngLabel),$btn.attr("title",function(e){switch(parseInt(e,10)){case m.typeQuestion:return _hgt("Stop liking this discussion");case m.typeIbk:return _hgt("Stop liking this ideabook");case m.typeAnswer:case m.typeComment:return _hgt("Stop liking this comment");case m.typeReview:return _hgt("Stop liking this review");case m.typeVendorListing:return _hgt("Stop liking this product");default:return _hgt("Stop liking this item")}}(r)),$btn.attr("lop",m.unlikeAction),i.removeClass(m.likeIconClass).addClass(m.likeIconIngClass),h.updateDisLikeButtonClassWhenLike(l,r),u||(0<s.length?(s.text(e.formattedLikeCount||parseInt(s[0].innerHTML,10)+1),o=_hgtp("","You and 1 other person like this.","You and {countOfOtherLikes} people like this.",e.numberOfLikes-1,{countOfOtherLikes:e.numberOfLikes-1}),s.attr("title",o)):(s=$('<span title="'+_hgt("You like this.")+'" class="counter-bubble">1</span>'),$btn.append(s)))):a==m.unlikeAction?($btn.removeClass("hz-liked"),n.text(m.likeButtonLabel),$btn.attr("title",c(r)),$btn.attr("lop",m.likeAction),u||0<s.length&&((l=e.formattedLikeCount||parseInt(s[0].innerHTML,10)-1)<1?s.remove():(s.text(l),o=_hgtp("","1 person likes this.","{countOfLikes} people like this.",e.numberOfLikes,{countOfLikes:e.numberOfLikes}),s.attr("title",o))),i.removeClass(m.likeIconIngClass).removeClass(m.unlikeIconClass).addClass(m.likeIconClass)):a==m.dislikeAction?($btn.addClass("hz-liked"),n.text(m.dislikeButtonLabel),$btn.attr("title",parseInt(r,10)!==m.typeVendorListing?_hgt("Stop rejecting this item"):_hgt("Stop rejecting this product")),$btn.attr("lop",m.unDislikeAction),i.removeClass(m.likeIconClass).addClass(m.likeIconIngClass),h.updateLikeButtonClassWhenDislike(t,r)):a==m.unDislikeAction&&($btn.removeClass("hz-liked"),n.text(m.dislikeButtonLabel),$btn.attr("title",d(r)),$btn.attr("lop",m.dislikeAction),i.removeClass(m.likeIconIngClass).removeClass(m.unlikeIconClass).addClass(m.likeIconClass)))})},this.updateLikeBtn=function(e,t){e=$(e).find(".button-icon");t?e.removeClass(m.likeIconIngClass).addClass(m.unlikeIconClass):e.removeClass(m.unlikeIconClass).addClass(m.likeIconIngClass)},this.updateLikeButtonClassWhenDislike=function(e,t){var i=e.find(".button-icon"),n=e.find(".button-label");e.removeClass("hz-liked"),n.text(m.dislikeButtonLabel),e.attr("title",c(t)),e.attr("lop",m.likeAction),i.removeClass(m.likeIconIngClass).removeClass(m.unlikeIconClass).addClass(m.likeIconClass)},this.updateDisLikeButtonClassWhenLike=function(e,t){var i=e.find(".button-icon"),n=e.find(".button-label");e.removeClass("hz-liked"),n.text(m.dislikeButtonLabel),e.attr("title",d(t)),e.attr("lop",m.dislikeAction),i.removeClass(m.likeIconIngClass).removeClass(m.unlikeIconClass).addClass(m.likeIconClass)}};

window.hzmr.push("like:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End like.js  **************/
/************* Start clipping.js for locale en-GB **************/
try {HZ.ns("HZ.clipping"),void 0===HZ.clipping.Clip&&(HZ.clipping.Clip=new function(){var c,t;function n(n,i){var l=$(i),t=l.attr("data-object-type"),i=l.attr("data-object-id");t&&i||(t=l.parents(".hzBtn").attr("loty"),i=l.parents(".hzBtn").attr("loid")),HZ.ajaz.Clipping.clip(n,i,t,function(i){var t=l.parents(".clipContainer");i&&"true"==i.success&&(n==c.clipAction?(l.addClass("unclip").removeClass("clip").attr("title",_hgt("Bookmarked")),l.find(".hz-clip").addClass("hz-unclip hzi-Bookmarked-Circle").removeClass("hz-clip hzi-Bookmark-Circle"),t.find(".hz-clips").text(_hgt("Bookmarked"))):n==c.unclipAction&&(l.addClass("clip").removeClass("unclip").attr("title",_hgt("Bookmark")),l.find(".hz-unclip").addClass("hz-clip hzi-Bookmark-Circle").removeClass("hz-unclip hzi-Bookmarked-Circle"),t.find(".hz-clips").text(_hgt("Bookmark"))))})}t={typeAnswer:6,typeComment:9,clipAction:"clip",unclipAction:"unclip",clipTitle:"Bookmark",unclipTitle:"Bookmarked"},this.init=function(i){i&&(c=$.extend({},t,i))},this.executeClip=function(i){HZ.data.CurrentSessionUser?n($(i).parents(".clipContainer").find(".hz-clips").text()==c.unclipTitle?c.unclipAction:c.clipAction,i):HZ.auth?HZ.auth.Manager.signup(HZ.ajaz.Clipping.SOURCE_LINK_CLIPPING,null,window.location.href):window.location.href=c.clipRedirectLink}});

window.hzmr.push("clipping:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End clipping.js  **************/
/************* Start saveToUniversalGallery.js for locale en-GB **************/
try {HZ.ns("HZ.modules.SaveToUniversalGallery"),HZ.modules.SaveToUniversalGallery=new function(){var a="saveToUniversalGalleryModule",i=1,s=2,o=3,n=5,t=6,l=13,d=this;this.isModuleLoaded=!1,this.isInitialized=!1,this.init=function(){d.isInitialized=!0,HZ.data.CurrentSessionUser&&$.ajax({url:"/j/saveToUniversalGalleryModule",method:"POST",data:{__ct:HZ.data.CSRFToken}}).done(function(e){HZ.utils.loadJukwaaModule(e,d.loadModule)}).fail(function(e){})},this.loadModule=function(){var e;HZ&&HZ.WebModule&&(d.isModuleLoaded=!0,e=document.getElementById("save-to-universal-gallery-module"),HZ.WebModule.render("saveToUniversalGalleryModule",e),$(document).trigger(a))},this.save=function(e,i){HZ.data.CurrentSessionUser?("number"!=typeof e&&(e=Number(e)),$(document).trigger("dialogOpened.saveToUniversalGallery"),d.isModuleLoaded||!d.isInitialized?this.openSaveDialog(e,i):$(document).bind(a,function(){this.openSaveDialog(e,i)}.bind(this))):HZ.auth.Manager.signup(HZ.modules.SaveToUniversalGallery.signupSource,HZ.modules.SaveToUniversalGallery.signUpMessageId,window.location.href)},this.openSaveDialog=function(e,i){i={objectId:e,objectType:i};$(document).trigger("JUKWAA_OPEN_SAVE_TO_UNIVERSAL_GALLERY_DIALOG",i)},this.onClose=function(){$(document).trigger("dialogClosed.saveToUniversalGallery")},this.saveSpace=function(e){this.save(e,o)},this.saveProduct=function(e){this.save(e,l)},this.saveGallery=function(e){this.save(e,i)},this.saveProfessional=function(e){this.save(e,s)},this.saveDiscussion=function(e){this.save(e,n)},this.saveComment=function(e){this.save(e,t)}};

window.hzmr.push("saveToUniversalGallery:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End saveToUniversalGallery.js  **************/
/************* Start extracting text for contactDialog.js for locale en-GB **************/
(function(){var _hzxt={"I understand that Houzz will help me coordinate with pros via phone.":"I understand that Houzz will help me coordinate with professionals over the phone.","By clicking \"Send\" I acknowledge and agree to the creation of an account and to the <t1>Terms of Use<\/t1> and <t2>Privacy Policy<\/t2>":"By clicking \"Send\" I acknowledge and agree to the creation of an account, to the <t1>Terms of Use<\/t1> and <t2>Privacy Policy<\/t2>, and consent to receive marketing communications from Houzz.","I confirm this is a personal project inquiry and not a promotional message or solicitation.":"I confirm this is a personal project enquiry and not a promotional message or solicitation.","The colors displayed on-screen may not match %brandName% color standards":"The colours displayed on-screen may not match Crown colour standards","Update your Yahoo contact list to lookup your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you.":"Update your Yahoo contact list to look up your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you.","Update your Outlook contact list to lookup your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you.":"Update your Outlook contact list to look up your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you.","To (enter recipient emails, separated by commas)":"To (enter recipient email addresses, separated by commas)","To (enter recipient emails, separated by commas):":"To (enter recipient email addresses, separated by commas):","Ok":"OK","Enter your zip code (required)":"Enter your postcode (required)","I love this @{mft} Paint color palette! Create your own @Houzz":"I love this @{mft} paint colour palette! Create your own @HouzzUK","Zip Code":"Postcode","Enter your zip code":"Enter your postcode","The colors displayed on-screen may not match %mft% color standards":"The colours displayed on-screen may not match Crown colour standards","Phone Number":"Phone No. (include country code, e.g. +44)","Share color palette":"Share colour palette","Enter your city, state":"Enter your city, county"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for contactDialog.js  **************/
/************* Start contactDialog.js for locale en-GB **************/
try {HZ.ns("HZ.email"),HZ.email.ContactDialog=function(){var g,f,i,v,b,s,y,E,H,C,o=HZ.utils.Html.template,l=null,r="pro_contact_request_sent",c="pro_contact_unthenticated_phone_number";this.attachUploadInitialized=!1,this.IvyIntegration=null,this.applySettings=function(e){E=e},this.getSettings=function(){return E},this.getToFld=function(){return g},this.getNameFld=function(){return b},this.getSubjectFld=function(){return f},this.getMessageFld=function(){return i},this.getEmailFld=function(){return v},this.getSendBtn=function(){return y},this.getCancelBtn=function(){return s};function n(){HZ.ui.AjaxThrobber.setInCall(!1),HZ.ui.Yamdi.hide(this)}this.getConsentsForUserTypes=function(){return l=null,HZ.modules.Consents.getConsentsForUserTypes({userTypes:["CONTACT_PRO"]}).done(function(e){e&&e[0]&&(l=e[0])})},this.registerConsentsWhenNeeded=function(){return HZ.utils.Config.isConsentCheckingEnabled&&l&&l.consentTakingItems?this.registerAcceptedConsents():(new $.Deferred).resolve().promise()},this.registerAcceptedConsents=function(){var e=[],t=this.getBody().find("input.contact-dialog-consent-checkbox"),s=l.consentTakingItems;t.each(function(e,t){var a=$(t),i=parseInt(a.data("consent-id"),10),t=$.grep(s,function(e){return e.consentId===i})[0];t&&(t.isChecked=a.is(":checked"))});for(var a=0;a<s.length;a++){var i=s[a];e.push({consentId:i.consentId,consented:i.isChecked?"APPROVE":"DENY",userConsentCauseFlags:1})}return e.length?HZ.modules.Consents.registerConsents({userConsents:e}):(new $.Deferred).resolve().promise()},this.createAndUpdateContactOptionList=function(e,t){for(var a=0;a<e.length;a++){var i=e[a],s=this.getBody().find(".confirmProMessage[data-consent-id="+i.consentId+"]");s.length?i.isHidden?s.closest(".controls").remove():s.prop("checked",i.isChecked):i.isHidden||this.getBody().find(".proMessageDisclaimer").prepend($(o(t||'<div class="controls"><label class="checkbox"><input type="checkbox" class="confirmProMessage contact-dialog-consent-checkbox" %checked% data-consent-id="%consentId%"/> %optionName%</label></div>',{optionName:i.contents,consentId:i.consentId,checked:i.isChecked?"checked":""})))}};function d(){var t=this;HZ.utils.Logger.logCountInTSDB("tracking","contact_dialog_submit"),HZ.ui.AjaxThrobber.setInCall(!0),HZ.ui.InputButtonUtils.disableButton(y),form.trigger("beforeSubmit.email");var a=E.maxAttachmentFiles?this.getForm():null,e=E.event||"",i=E.isDealerLocationEmail,s="undefined"!=typeof grecaptcha?grecaptcha.getResponse(recaptchaWidgetId):"",o=E.type,l=g.val(),n=C.val(),r=f.val(),c=this.getMessageBody(),d=E.staticMessageData&&E.staticMessageData.s&&this.getForm().find(".hz-appendStaticMessage").prop("checked"),p=E.generateColorPaletteImageLink,h=E.colorPaletteShareLink,u={};if(u[HZ.sendEmail.params.to]=l,u[HZ.sendEmail.params.subject]=r,u[HZ.sendEmail.params.message]=c,u[HZ.sendEmail.params.isVisitor]=!HZ.data.CurrentSessionUser,u[HZ.sendEmail.params.phone]=n,u[HZ.sendEmail.params.event]=e,u[HZ.sendEmail.params.type]=o,u[HZ.sendEmail.params.captchaResponse]=s,u[HZ.sendEmail.params.referenceId]=E.referenceId,u[HZ.sendEmail.params.replyToId]=E.replyToId,u[HZ.sendEmail.params.shareLink]=h,u[HZ.sendEmail.params.shareImageUrl]=p,u[HZ.sendEmail.params.isDealerLocation]=i,u[HZ.sendEmail.params.signupSourceLink]=E.sourceLink,u[HZ.sendEmail.params.entryType]=E.contactProEntryType,E.allowShare){if(Z.call(this))return t.registerConsentsWhenNeeded().always(function(){HZ.ajaz.Services.sendShareEmail(u,$.proxy(_,t))}),!1}else if(v.length){if(Z.call(this)){var m=v.val(),i=b.val();return u[HZ.sendEmail.params.from]=m,i=i||"",E.signupOnSend?HZ.ajaz.Services.inlineSignup(m,!0,i,E.sourceLink,null,function(e){"true"==e.success?(e.redirectUrl&&(H=e.redirectUrl),HZ.ui.AjaxThrobber.setInCall(!0),t.registerConsentsWhenNeeded().always(function(){HZ.ajaz.Services.sendEmail(u,a,$.proxy(_,t))})):E.sourceLink==HZ.utils.Config.contactProAutoRegisterSourceLink?e.error==HZ.utils.Config.userEmailExists&&t.registerConsentsWhenNeeded().always(function(){HZ.ajaz.Services.sendGuestEmail(u,$.proxy(_,t)),HZ.utils.Logger.sendEventLogLightweight(HZ.utils.Config.eventContactproAutoRegisterEmailExists,{})}):HZ.auth.Manager.login({source:E.sourceLink,screen:"signin",email:m})}):t.registerConsentsWhenNeeded().always(function(){HZ.ajaz.Services.sendGuestEmail(u,$.proxy(_,t))}),!1}}else if(Z.call(this))return d&&E.staticMessageData.et,t.registerConsentsWhenNeeded().always(function(){HZ.ajaz.Services.sendEmail(u,a,$.proxy(_,t))}),!1}function _(e){var t,a,i,s,o,l="",n=C.val();HZ.ui.AjaxThrobber.setInCall(!1),"true"===e.success?(t=E.type==HZ.sendEmail.types.PRO_REPLY,this.onSubmitSuccess&&"function"==typeof this.onSubmitSuccess&&this.onSubmitSuccess.call(this,{isSponsoredPro:!!e.isSponsoredPro}),l=E.type==HZ.sendEmail.types.PRO||t||E.type==HZ.sendEmail.types.MP||E.type==HZ.sendEmail.types.MP_SELLER||E.type==HZ.sendEmail.types.MP_BUYER||E.type==HZ.sendEmail.types.USER||E.type==HZ.sendEmail.types.USER_REPLY?HZ.sendEmail.texts.CONFIRM_MESSAGE_SENT:HZ.sendEmail.texts.CONFIRM_EMAIL_SENT,HZ.ui.yamdi.Common.hideAllDialogs(),H?(a=new HZ.ui.yamdi.Dialog,i=_hgt("Please set a password:"),s=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Not Now"),"pwd-dialog__btn--later",function(){HZ.ui.yamdi.Common.hideAllDialogs(),window.location.reload()},null,null,"trackMe mtm","compId='pwdDialogLater'"),o=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Submit"),"pwd-dialog__btn--submit",function(){var e,t=$("#pwd-dialog__pwd").val();!t||t.length<HZ.utils.Config.minPasswordLength?(e=$('<div class="error-tooltip"><span class="outer-tip"></span><span class="inner-tip"></span><span class="tooltip-text">'+_hgt("Passwords need to contain at least 8 characters.")+"</span></div>"),$(".pwd-dialog__prompt").append(e)):HZ.ajaz.Services.updateAutoRegisterPassword(t,function(e){"true"==e.success?window.location.href=H:e.error==HZ.utils.Config.errorPasswordResetExpired?window.location.href=HZ.utils.Config.forgotPasswordUrl:(HZ.ui.yamdi.Common.hideAllDialogs(),HZ.ui.yamdi.Common.alert(_hgt("Set password error!"),e.errorMessage))})},!0,null,"trackMe","compId='pwdDialogSubmit'"),i=$("<div class='pwd-dialog'><p class='pwd-dialog__prompt'>"+i+"</p><label for='pwd-dialog__pwd'>"+_hgt("Password")+"</label><input type='password' class='pwd-dialog__input' id='pwd-dialog__pwd' name='pwd' placeholder='"+_hgt("Minimum 8 characters")+"'></div>"),o={title:_hgt("Email sent successfully!"),body:i,controls:[s,o],dialogClassName:"pwdDialog",onViewLoaded:function(){$("#pwd-dialog__pwd").focus()},onViewUnloaded:function(){}},a.init(o),HZ.ui.Yamdi.show(a)):!HZ.data.CurrentSessionUser&&HZ.utils.Config.contactProAutoRegisterEnabled&&E.sourceLink==HZ.utils.Config.contactProAutoRegisterSourceLink?HZ.ui.yamdi.Common.compel("",l,_hgt("Ok"),function(){location.reload()}):E.showEstimationUpsell&&""!==E.professionalInquiryId&&t?(this.IvyIntegration||(this.IvyIntegration=new HZ.dialogs.IvyIntegration),this.IvyIntegration.showMessageReplyEntryPoint(E.professionalInquiryId)):HZ.ui.yamdi.Common.alert("",l),E.onSuccess&&E.onSuccess(),HZ.utils.Logger.sendEventLogLightweight(r,{phone:n}),HZ.utils.Logger.logCountInTSDB("tracking",r)):e.error==HZ.ajaz.Services.sendEmail.ERROR_RECOVERABLE?("function"==typeof onRecaptchaLoadCallback&&onRecaptchaLoadCallback(),this.showError(e.errorMessage)):n&&e.error==HZ.ajaz.Services.sendEmail.PHONE_VALIDATION_FAILURE?(HZ.utils.Logger.sendEventLogLightweight(c,{phone:n}),HZ.utils.Logger.logCountInTSDB("tracking",c),this.showError(HZ.sendEmail.texts.ERROR_INVALID_PHONE)):(HZ.ui.yamdi.Common.hideAllDialogs(),HZ.ui.yamdi.Common.alert(_hgt("Send message error!"),e.errorMessage))}function Z(){var e=g.val(),t=f.val(),a=this.getMessageBody();return""==$.trim(e)?(this.showError(HZ.sendEmail.texts.ERROR_EMAIL_ADDRESSES_EMPTY),!1):""==$.trim(t)?(this.showError(HZ.sendEmail.texts.ERROR_SUBJECT_EMPTY),!1):""==$.trim(a)?(this.showError(HZ.sendEmail.texts.ERROR_MESSAGE_EMPTY),!1):form.find(".zipFldGrp").is(":visible")&&!$.trim(form.find(".zipFldGrp .controls input").val())?(this.showError(HZ.sendEmail.texts.ERROR_NO_ZIP),!1):form.find(".locationFldGrp").is(":visible")&&!$.trim(form.find(".locationFldGrp .controls input").val())?(this.showError(HZ.sendEmail.texts.ERROR_TEXT_LOCATION_EMPTY),!1):form.find(".nameFldGrp").is(":visible")&&!form.find(".nameFldGrp .controls input").val()?(this.showError(HZ.sendEmail.texts.ERROR_NO_CONTACT_NAME),!1):form.find(".phoneFldGrp").is(":visible")&&!$.trim(C.val())?(this.showError(HZ.sendEmail.texts.ERROR_NO_PHONE),!1):!(this.validateMore&&"function"==typeof this.validateMore&&!this.validateMore.call(this))}function p(e){var i=null;e.bind("input",function(){var e=$(this);e.css("height","auto");var t,a=this.scrollHeight+2;null===i&&(t=this,i=(t=$(t).parents(".modal-dialog")).length?window.innerHeight-t.height():window.innerHeight),a>this.clientHeight&&(a=Math.max(Math.min(a,i),this.clientHeight),e.css("height",a+"px"))}),$(window).bind("resize",function(){i=null})}this.resetFooter=function(){HZ.ui.AjaxThrobber.setInCall(!1),HZ.ui.InputButtonUtils.enableButton(y)},this.showError=function(e){this.showStatus(e),this.resetFooter()},function(){var e="contactDialog";this.DIALOG_CLASSNAME&&(e=this.DIALOG_CLASSNAME);var t=_hgt("Send a Message");this.DIALOG_TITLE&&(t=this.DIALOG_TITLE);var a=$(this.FORM_TEMPLATE);s=HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Cancel"),"hzContactDlgCancelBtn",$.proxy(n,this),null,null,"trackMe","compId='contactDlgCancel'"),y=HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Send"),"hzContactDlgSendBtn",null,!0,null,"trackMe","compId='contactDlgSend'");e={title:t,body:a,controls:[HZ.ui.AjaxThrobber.getThrobber(),s,y],dialogClassName:e,onViewLoaded:$.proxy(this.onViewLoaded,this),onViewUnloaded:$.proxy(this.onViewUnloaded,this)};HZ.email.ContactDialog.superclass.constructor.call(this),this.init(e),form=this.getForm(),g=form.find(".hz-toFld"),f=form.find(".hz-subjectFld"),i=form.find(".hz-messageFld"),v=form.find(".hz-emailFld"),b=form.find(".hz-nameFld"),C=form.find(".phoneFldGrp .controls input"),form.find("[placeholder]").initPlaceHolders({saveEvent:"beforeSubmit.email"}),form.bind("submit",$.proxy(d,this)),p(i)}.call(this)},HZ.extend(HZ.email.ContactDialog,HZ.ui.yamdi.Dialog),$.extend(!0,HZ.email.ContactDialog.prototype,{DEFAULT_OPTIONS:{type:null,referenceId:null,toUserName:"",subject:"",message:"",replyToId:null,event:null,maxAttachmentFiles:0},ATTACH_BUTTON_TEMPLATE:'<a class="hzBtn noFrameButton addImageButton" href="javascript:;" title="%buttonTitle%"><span class="button-icon buttonIconAttach"></span><span class="text-m text-dt-s label colorLink">%buttonTitle%</span></a>',ATTACH_TEMPLATE:'<div class="hz-attach"><input type="file" name="attach1" accept="image/*" class="span-sm-6"/><input type="file" name="attach2" accept="image/*" class="span-sm-6"/><input type="file" name="attach3" accept="image/*" class="span-sm-6"/><input type="file" name="attach4" accept="image/*" class="span-sm-6"/></div>',FORM_TEMPLATE:'<fieldset class="row-fluid"><label>'+_hgt("To (enter recipient emails, separated by commas)")+'</label><textarea type="text" class="hz-toFld span-xs-12 form-control" rows="2"/><label>'+_hgt("Subject")+'</label><input type="text" class="hz-subjectFld span-xs-12 form-control" value="" placeholder="'+_hgt("Enter subject")+'"/><label>'+_hgt("Message")+'</label><textarea rows="5" class="hz-messageFld span-xs-12 form-control" placeholder="'+_hgt("Enter your message here")+'"/></fieldset>',validateMore:function(){return!0},getMessageBody:function(){return this.getMessageFld().val()},onSubmitSuccess:null,prepare:function(e){var t=this;this.applySettings($.extend(!0,{},this.DEFAULT_OPTIONS,e)),e=this.getSettings(),this.getToFld().val(e.toUserName),this.getSubjectFld().val(e.subject),this.getMessageFld().val(e.message),e.maxAttachmentFiles?this.attachUploadInitialized?this.getForm().find(".addImageButton").length||($(HZ.utils.Html.template(this.ATTACH_BUTTON_TEMPLATE,{buttonTitle:_hgt("Attach Images")})).insertAfter(this.getMessageFld()),t.enableAttachment()):($(HZ.utils.Html.template(this.ATTACH_BUTTON_TEMPLATE,{buttonTitle:_hgt("Attach Images")})).insertAfter(this.getMessageFld()),HZ.utils.ResourceLoader.requireResources([{type:HZ.utils.ResourceLoader.JS,file:"jquery.form.min"}],function(){t.enableAttachment()})):t.disableAttachment()},enableAttachment:function(){var e,t=this.getForm().find(".hz-attach"),a=this;0===t.length&&(e=this.getForm().find(".addImageButton"),t=$(this.ATTACH_TEMPLATE).insertAfter(e),e.on("click",function(){t.is(":visible")||(t.show(),UIHelper.isMSIE||t.find("input:first").click(),a.recenter())})),this.attachUploadInitialized=!0},disableAttachment:function(){var e=this.getForm().find(".addImageButton, .hz-attach");e.length&&e.remove()},onViewLoaded:function(){HZ.ui.InputButtonUtils.enableButton(this.getSendBtn()),this.getForm().find("[placeholder]").initPlaceHolders("refresh")},onViewUnloaded:function(){this.resetForm(),this.getForm().find(".hz-attach").hide(),this.hideStatus()}}),HZ.email.ContactProDialog=function(){var e,t,p={type:HZ.sendEmail.types.PRO};this.DEFAULT_OPTIONS={toUserName:"",toUserDisplayName:"",subject:"",message:"",useZipCode:!1,isShortForm:!1},e=_hgt("Enter your zip code (required)"),t=_hgt("Enter your contact phone number (required)"),this.FORM_TEMPLATE='<fieldset class="row-fluid"><div class="control-group fromDisplayEmailGrp"><label class="control-label">'+_hgt("From")+'</label><div class="controls"></div></div><div class="control-group" id="toUserNameField"><label class="control-label">'+_hgt("To")+'</label><div class="controls toDisplayName"></div><input type="hidden" class="hz-toFld" value=""/></div><div class="control-group" id="subjectField"><label class="control-label">'+_hgt("Subject")+'</label><div class="controls"><input type="text" class="hz-subjectFld span-xs-12 form-control" value="" placeholder="'+_hgt("Enter subject")+'"/></div></div><div class="control-group nameFldGrp"><label class="control-label name-label">'+_hgt("Name")+'</label><div class="controls"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+_hgt("Enter your name (required)")+'"/></div></div><div class="control-group phoneFldGrp"><label class="control-label phone-label">'+_hgt("Phone Number")+'</label><div class="controls"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+t+'"/></div></div><div class="control-group locationFldGrp"><label class="control-label location-label">'+_hgt("Location")+'</label><div class="controls"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+_hgt("Enter your city, state")+'"/></div></div><div class="control-group zipFldGrp"><label class="control-label zip-label">'+_hgt("Zip Code")+'</label><div class="controls"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+e+'"/></div></div><div class="control-group dealerFldGrp mbs"><label class="control-label dealer-label">'+_hgt("To:")+'</label><div class="controls"><select class="form-control dealer-select"></select></div></div><div class="control-group"><label class="control-label">'+_hgt("Message")+'</label><div class="controls"><textarea class="hz-messageFld span-xs-12 form-control" rows="4" value="" placeholder="'+_hgt("Enter your message here")+'"/></div></div><div id="contact-dialog-contact-options"></div><div class="proMessageDisclaimer control-group"><div class="controls"><label class="checkbox"><input type="checkbox" class="confirmProMessage confirmNonSolicitation"/>'+_hgt("I confirm this is a personal project inquiry and not a promotional message or solicitation.")+'</label></div><div class="auto-signup-consent"></div></div></fieldset>',this.prepare=function(e){var t=$.extend(!0,{},p,this.DEFAULT_OPTIONS,e),a=this.getForm();t.askForName=HZ.utils.Config.nameTestEnabled,t.useZipCode=HZ.utils.Config.zipCodeTestEnabled,t.contactProEntryType=HZ.utils.Config.contactProEntryType,HZ.email.ContactProDialog.superclass.prepare.call(this,t),$(a).attr("scopeId","ContactProDialog"),a.find(".toDisplayName").html(t.toUserDisplayName);var i,s;HZ.data.CurrentSessionUser&&t.type!=HZ.sendEmail.types.MP&&t.type!=HZ.sendEmail.types.USER&&t.type!=HZ.sendEmail.types.USER_REPLY?(a.find(".fromDisplayEmailGrp").show(),(e=HZ.data.CurrentSessionUser.getEmailAddress())?a.find(".fromDisplayEmailGrp").find(".controls").html(e):HZ.ajaz.Services.User.getCurrentSessionUserExtraData(function(e){var t;"true"==e.success&&(HZ.data.CurrentSessionUser.setExtra(e.userEmail,e.phoneNumber,e.zipCode),a.find(".fromDisplayEmailGrp").find(".controls").html(e.userEmail),t=e.phoneNumber,e=e.zipCode,a.find(".phoneFldGrp").length&&t&&a.find(".phoneFldGrp").find(".controls input").val(t),a.find(".zipFldGrp").length&&e&&a.find(".zipFldGrp").find(".controls input").val(e))})):a.find(".fromDisplayEmailGrp").hide(),t.askForName&&HZ.data.CurrentSessionUser&&(s=HZ.data.CurrentSessionUser.getUserName(),i=HZ.data.CurrentSessionUser.getLoginName(),s&&s!=i&&a.find(".nameFldGrp").find(".controls input").val(s)),HZ.data.CurrentSessionUser&&(i=HZ.data.CurrentSessionUser.getPhoneNumber(),s=HZ.data.CurrentSessionUser.getZipCode(),a.find(".phoneFldGrp").length&&i&&a.find(".phoneFldGrp").find(".controls input").val(i),a.find(".zipFldGrp").length&&s&&a.find(".zipFldGrp").find(".controls input").val(s)),t.type==HZ.sendEmail.types.PRO_REPLY||t.type==HZ.sendEmail.types.MP||t.type==HZ.sendEmail.types.USER||t.type==HZ.sendEmail.types.USER_REPLY?(a.find(".proMessageDisclaimer").hide(),a.find(".phoneFldGrp").hide(),a.find(".locationFldGrp").hide(),a.find(".zipFldGrp").hide(),a.find(".nameFldGrp").hide()):(a.find(".proMessageDisclaimer").show(),a.find(".phoneFldGrp").show(),t.askForName||a.find(".nameFldGrp").hide(),(t.useZipCode?a.find(".locationFldGrp"):a.find(".zipFldGrp")).hide(),t.isShortForm&&(a.find("#toUserNameField").hide(),a.find("#subjectField").hide(),a.find(".name-label").hide(),a.find(".phone-label").hide(),a.find(".location-label").hide(),a.find(".zip-label").hide(),a.find(".modal-header").html(_hgt("Contact {pro}",{pro:t.toUserDisplayName}))));var o=this;if(t.locationData&&t.locationData.length&&t.type==HZ.sendEmail.types.PRO)if($.map(t.locationData,function(e){if(e.email)return e}).length){var l=a.find(".dealer-select");l.empty(),l.append($("<option value='"+t.toUserName+"'>"+t.toUserDisplayName+" ("+_hgt("Main Location")+")</option>"));for(var n=0;n<t.locationData.length;n++){var r=t.locationData[n],c=$("<option>");r.email&&(c.attr("value",r.email),r.dealerName?c.text(r.dealerName):c.text(r.email),l.append(c),0==n&&l.val(c.val()),r.email==t.defaultEmailToPopulate&&l.val(c.val()))}function d(){o.getToFld().val(l.val()),l.val()==t.toUserName?delete o.getSettings().isDealerLocationEmail:o.getSettings().isDealerLocationEmail=!0}l.on("change",d),d()}else a.find(".dealerFldGrp").hide();else a.find(".dealerFldGrp").hide()},this.validateMore=function(){var e=this.getForm().find(".confirmProMessage.confirmNonSolicitation");return""==$.trim(this.getMessageFld().val())?(this.showError(HZ.sendEmail.texts.ERROR_MESSAGE_EMPTY),!1):!e.is(":visible")||!e.is(":not(:checked)")||(this.showError(HZ.sendEmail.texts.ERROR_PRO_CONFIRM_INQUIRY_NOT_AGREE),!1)},this.getMessageBody=function(){var e,t,a,i=this.getSettings(),s=this.getForm(),o="";return s.find(".phoneFldGrp").is(":visible")&&(e="[name]"+s.find(".nameFldGrp .controls input").val()+"[/name]",t=s.find(".phoneFldGrp .controls input").val(),a=s.find(".locationFldGrp .controls input").val(),s="[zip]"+s.find(".zipFldGrp .controls input").val()+"[/zip]",""!=$.trim(t)&&(o=_hgt("Contact Phone Number: {phoneNumber}",{phoneNumber:t})+"\n"),i.useZipCode?""!=$.trim(s)&&(o=o+_hgt("Project Location: {zipCode}",{zipCode:s})+"\n"):""!=$.trim(a)&&(o=o+_hgt("Project Location: {location}",{location:a})+"\n"),""!=$.trim(e)&&(o=o+_hgt("Contact Name: {name}",{name:e})+"\n"),""!=$.trim(o)&&(o+="\n")),o+=this.getMessageFld().val()},this.onSubmitSuccess=function(e){try{window.ga("send","event","ContactProDialog","contactSuccess")}catch(e){console.warn(e)}var t=this.getSettings(),a="",a=e.isSponsoredPro?"pro_contact_plus":"pro_contact_organic",t={hasaccount:HZ.data.CurrentSessionUser?"y":"n",pro_username:t.toUserName};HZ.utils.Gtm.pushData(a,a,t)},this.onViewLoaded=function(){var t=this;HZ.utils.Config.isConsentCheckingEnabled&&t.getConsentsForUserTypes().done(function(e){e&&e[0]&&(e=e[0],t.createAndUpdateContactOptionList(e.consentTakingItems),HZ.utils.Config.isConsentCheckingEnabled&&"US"===HZ.modules.Consents.getConsentCountryCode()&&t.getBody().find(".proMessageDisclaimer").find(".auto-signup-consent").text(_hgt("I understand that Houzz will help me coordinate with pros via phone.")))}),HZ.email.ContactProDialog.superclass.onViewLoaded.call(this)},function(){HZ.email.ContactProDialog.superclass.constructor.call(this)}.call(this)},HZ.extend(HZ.email.ContactProDialog,HZ.email.ContactDialog),HZ.email.GuestContactProDialog=function(){var r={type:HZ.sendEmail.types.PRO};this.DEFAULT_OPTIONS={toUserName:"",toUserDisplayName:"",subject:"",message:"",useZipCode:!1,isShortForm:!1};var e={tag:"a",attr:{href:HZ.utils.Config.termsOfUseUrl,target:"_new",class:"colorLink"}},t={tag:"a",attr:{href:HZ.utils.Config.privacyPolicyUrl,target:"_new",class:"colorLink"}};this.FORM_TEMPLATE='<fieldset class="row-fluid condensed-layout"><input type="hidden" class="hz-toFld" value=""/><input type="hidden" class="hz-subjectFld" value="" placeholder="'+_hgt("Enter subject")+'"/><div class="control-group"><label class="control-label">'+_hgt("From")+'</label><div class="controls"><input type="text" class="hz-emailFld span-xs-12" value="" placeholder="'+_hgt("Enter your email")+'"/></div><div style="clear:both;"></div></div><div class="control-group nameFldGrp"><label class="control-label name-label">'+_hgt("Name")+'</label><div class="controls"><input type="text" class="span-xs-12" value="" placeholder="'+_hgt("Enter your name")+'"/></div><div style="clear:both;"></div></div><div class="control-group phoneFldGrp"><label class="control-label phone-label">'+_hgt("Phone #")+'</label><div class="controls"><input type="text" class="span-xs-12" value="" placeholder="'+_hgt("Enter your contact phone number")+'"/></div><div style="clear:both;"></div></div><div class="control-group locationFldGrp"><label class="control-label location-label">'+_hgt("Location")+'</label><div class="controls"><input class="span-xs-12" type="text" value="" placeholder="'+_hgt("Enter your city, state")+'"/></div><div style="clear:both;"></div></div><div class="control-group zipFldGrp"><label class="control-label zip-label">'+_hgt("Zip Code")+'</label><div class="controls"><input class="span-xs-12" type="text" value="" placeholder="'+_hgt("Enter your zip code")+'"/></div><div style="clear:both;"></div></div><div class="control-group dealerFldGrp mbs"><label class="control-label dealer-label">'+_hgt("To:")+'</label><div class="controls"><select class="form-control dealer-select"></select></div></div><div class="control-group"><label class="control-label">'+_hgt("Message")+'</label><div class="controls"><textarea rows="4" value="" class="form-control hz-messageFld span-xs-12" placeholder="'+_hgt("Enter your message here")+'"/></div><div style="clear:both;"></div></div><div id="recaptchaDiv"></div><div class="proMessageDisclaimer control-group"><div class="controls"><label class="checkbox"><input type="checkbox" class="confirmProMessage confirmNonSolicitation"/>'+_hgt("I confirm this is a personal project inquiry and not a promotional message or solicitation.")+'<span class="disclaimer">'+(HZ.utils.Config.isConsentCheckingEnabled?"":_hgt('By clicking "Send" I acknowledge and agree to the creation of an account and to the <t1>Terms of Use</t1> and <t2>Privacy Policy</t2>',{t1:e,t2:t}))+'</span></label></div><div class="auto-signup-consent"></div></div></fieldset>',this.prepare=function(e){var t=$.extend(!0,{},r,this.DEFAULT_OPTIONS,e),e=this.getForm();t.askForName=HZ.utils.Config.nameTestEnabled,t.useZipCode=HZ.utils.Config.zipCodeTestEnabled,t.signupOnSend=HZ.utils.Config.contactProAutoRegisterEnabled,t.sourceLink=HZ.utils.Config.contactProAutoRegisterSourceLink,t.contactProEntryType=HZ.utils.Config.contactProEntryType,this.applySettings(t),t.isShortForm&&(this.DIALOG_TITLE=_hgt("Contact {pro}",{pro:t.toUserDisplayName})),HZ.email.GuestContactProDialog.superclass.prepare.call(this,t),$(e).attr("scopeId","GuestContactProDialog"),e.find(".toDisplayName").html(t.toUserDisplayName),t.type==HZ.sendEmail.types.PRO_REPLY||t.type==HZ.sendEmail.types.MP?e.find(".proMessageDisclaimer").hide():e.find(".proMessageDisclaimer").show(),t.askForName||e.find(".nameFldGrp").hide(),(t.useZipCode?e.find(".locationFldGrp"):e.find(".zipFldGrp")).hide(),t.isShortForm&&(e.find(".row-fluid.condensed-layout").removeClass("condensed-layout"),e.find(".name-label").hide(),e.find(".phone-label").hide(),e.find(".location-label").hide(),e.find(".zip-label").hide(),e.find(".modal-header").html(_hgt("Contact {pro}",{pro:t.toUserDisplayName}))),t.signupOnSend||e.find(".disclaimer").hide();var a=this;if(t.type==HZ.sendEmail.types.PRO)if(t.locationData&&t.locationData.length)if($.map(t.locationData,function(e){if(e.email)return e}).length){var i=e.find(".dealer-select");i.empty(),i.append($("<option value='"+t.toUserName+"'>"+t.toUserDisplayName+" ("+_hgt("Main Location")+")</option>"));for(var s=0;s<t.locationData.length;s++){var o=t.locationData[s],l=$("<option>");o.email&&(l.attr("value",o.email),o.dealerName?l.text(o.dealerName):l.text(o.email),i.append(l),0==s&&i.val(l.val()),o.email==t.defaultEmailToPopulate&&i.val(l.val()))}function n(){a.getToFld().val(i.val()),i.val()==t.toUserName?delete a.getSettings().isDealerLocationEmail:a.getSettings().isDealerLocationEmail=!0}i.on("change",n),n()}else e.find(".dealerFldGrp").hide();else e.find(".dealerFldGrp").hide()},onRecaptchaLoadCallback=function(){var e="recaptchaDiv";if("undefined"!=typeof grecaptcha){try{"undefined"!=typeof recaptchaWidgetId&&grecaptcha.reset(recaptchaWidgetId)}catch(e){}$("#"+e).is(":empty")&&(recaptchaWidgetId=grecaptcha.render(e,{sitekey:HZ.utils.Config.recaptchaPublicKey}))}},this.onViewLoaded=function(){var i=this;HZ.utils.Config.isConsentCheckingEnabled&&i.getConsentsForUserTypes().done(function(e){var t,a;e&&e[0]&&(t=e[0],a=i.getBody().find(".proMessageDisclaimer"),e=t.contents,a.find(".auto-signup-consent").html(e),i.createAndUpdateContactOptionList(t.consentTakingItems))}),HZ.utils.Config.contactProAutoRegisterEnabled||HZ.data.CurrentSessionUser||("undefined"==typeof grecaptcha?$.getScript("https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit&hl="+HZ.utils.Config.language):onRecaptchaLoadCallback())},this.onViewUnloaded=function(){this.resetForm(),this.resetFooter(),this.hideStatus(),"undefined"!=typeof grecaptcha&&grecaptcha.reset(recaptchaWidgetId)},this.validateMore=function(){var e=this.getForm(),t=e.find(".confirmProMessage.confirmNonSolicitation"),e=e.find(".hz-emailFld").val();if(""==$.trim(this.getMessageFld().val()))return this.showError(HZ.sendEmail.texts.ERROR_MESSAGE_EMPTY),!1;if(t.is(":visible")&&t.is(":not(:checked)"))return this.showError(HZ.sendEmail.texts.ERROR_PRO_CONFIRM_INQUIRY_NOT_AGREE),!1;if(!UIHelper.validateEmail(e,!0))return this.showError(HZ.sendEmail.texts.ERROR_INVALID_FROM_EMAIL_ADDRESS),!1;t=this.getSettings();return this.getSubjectFld().val(t.subject+" from "+e),this.getSubjectFld().val(_hgt("{emailSubject} from {senderEmailAddress}",{emailSubject:t.subject,senderEmailAddress:e})),!0},this.getMessageBody=function(){var e=this.getSettings(),t=this.getForm(),a="[name]"+t.find(".nameFldGrp .controls input").val()+"[/name]",i=t.find(".phoneFldGrp .controls input").val(),s=t.find(".locationFldGrp .controls input").val(),o="[zip]"+t.find(".zipFldGrp .controls input").val()+"[/zip]",t="";return""!=$.trim(i)&&(t=_hgt("Contact Phone Number: {phoneNumber}",{phoneNumber:i})+"\n"),e.useZipCode?""!=$.trim(o)&&(t=t+_hgt("Project Location: {zipCode}",{zipCode:o})+"\n"):""!=$.trim(s)&&(t=t+_hgt("Project Location: {location}",{location:s})+"\n"),""!=$.trim(a)&&(t=t+_hgt("Contact Name: {name}",{name:a})+"\n"),""!=$.trim(t)&&(t+="\n"),t+=this.getMessageFld().val()},this.onSubmitSuccess=function(e){try{window.ga("send","event","GuestContactProDialog","contactSuccess")}catch(e){console.warn(e)}var t=this.getSettings(),a={hasaccount:HZ.data.CurrentSessionUser?"y":"n",pro_username:t.toUserName},t="",t=e.isSponsoredPro?"pro_contact_plus":"pro_contact_organic";HZ.utils.Gtm.pushData(t,t,a)},function(){HZ.email.GuestContactProDialog.superclass.constructor.call(this)}.call(this)},HZ.extend(HZ.email.GuestContactProDialog,HZ.email.ContactDialog),HZ.email.PostIdeabookConfirmContactProDialog=function(){var s={type:HZ.sendEmail.types.PRO};this.DEFAULT_OPTIONS={toUserName:"",toUserDisplayName:"",subject:"",message:"",useZipCode:!1},this.DIALOG_TITLE=_hgt("Saved!"),this.FORM_TEMPLATE="<div class='related-pros-info clearfix'><div id='proUpsellMsg' class='pro-screen-text'></div><div id='proInfo' class=''></div><div id='proContactForm' class=''><fieldset class=\"row-fluid\"><div class=\"control-group fromDisplayEmailGrp\"><label class=\"control-label\">"+_hgt("From")+'</label><div id="fromEmailField" class="controls"></div></div><div class="control-group" id="toUserNameField"><label class="control-label">'+_hgt("To")+'</label><div class="controls toDisplayName"></div><input type="hidden" class="hz-toFld" value=""/></div><div class="control-group" id="subjectField"><label class="control-label">'+_hgt("Subject")+'</label><div class="controls"><input type="text" class="hz-subjectFld span-xs-12 form-control" value="" placeholder="'+_hgt("Enter subject")+'"/></div></div><div class="control-group phoneFldGrp"><div class="controls" comp_id="phone"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+_hgt("Enter your contact phone number")+'"/></div></div><div class="control-group zipFldGrp"><div class="controls" comp_id="zip"><input type="text" class="span-xs-12 form-control" value="" placeholder="'+_hgt("Enter your zip code")+'"/></div></div><div class="control-group"><label class="control-label">'+_hgt("Message")+'</label><div class="controls" comp_id="message"><textarea class="hz-messageFld span-xs-12 form-control" rows="4" value="" placeholder="'+_hgt("Enter your message here")+'"/></div></div><div class="proMessageDisclaimer"><label class="checkbox"><input type="checkbox" class="confirmProMessage confirmNonSolicitation"/>'+_hgt("I confirm this is a personal project inquiry and not a promotional message or solicitation.")+"</label></div></fieldset></div></div>",this.prepare=function(e){var t=$.extend(!0,{},s,this.DEFAULT_OPTIONS,e),a=this.getForm(),i="",e=_hgt("Go to <t1>{galleryName}</t1>.",{galleryName:t.galleryName,t1:{tag:"a",attr:{href:t.galleryUrl,class:"colorLink trackMe",compId:"ideabook"}}});a.find(".modal-footer").prepend("<span id='goToIdeabook'>"+e+"</span>"),i+="<div class='pro-content-container' compId='pro_container'><div class='top-pro-cover'><a href='' class='trackMe'><img data-no-pin-hover='true' src='"+t.coverImageUrl+"' width='250' height='230'></a></div><div class='bottom-pro-details'><div id='proThumb' itemprop='image'><img data-no-pin-hover='true' class='photo hz-user-image' src='"+t.userThumbUrl+"' width='40' height='40'/></div><div id='textDetails'><div class='pro-name'><a class='trackMe' href='"+t.userLink+"'><b>"+t.toUserDisplayName+"</b></a></div>"+t.ratingHtml+"<b>"+t.shortDescription+"</b></div></div></div>",a.find("#proInfo").append(i),a.find("#proUpsellMsg").html(t.proUpsellMsg),t.useZipCode=HZ.utils.Config.zipCodeTestEnabled,HZ.email.ContactProDialog.superclass.prepare.call(this,t),$(a).attr("scopeId","IdeabookContactProDialog"),a.find(".toDisplayName").html(t.toUserDisplayName);HZ.data.CurrentSessionUser&&t.type!=HZ.sendEmail.types.MP&&t.type!=HZ.sendEmail.types.USER&&t.type!=HZ.sendEmail.types.USER_REPLY?(a.find(".fromDisplayEmailGrp").show(),(t=HZ.data.CurrentSessionUser.getEmailAddress())?a.find(".fromDisplayEmailGrp").find(".controls").html(t):HZ.ajaz.Services.User.getCurrentSessionUserExtraData(function(e){"true"==e.success&&(HZ.data.CurrentSessionUser.setExtra(e.userEmail,e.phoneNumber,e.zipCode),a.find(".fromDisplayEmailGrp").find(".controls").html(e.userEmail))})):a.find(".fromDisplayEmailGrp").hide(),a.find("#toUserNameField").hide(),a.find("#subjectField").hide(),$(".modal-dialog").addClass("post-ideabook-save-pro-contact")},this.validateMore=function(){var e=this.getForm().find(".confirmProMessage.confirmNonSolicitation");return""==$.trim(this.getMessageFld().val())?(this.showError(HZ.sendEmail.texts.ERROR_MESSAGE_EMPTY),!1):!e.is(":visible")||!e.is(":not(:checked)")||(this.showError(HZ.sendEmail.texts.ERROR_PRO_CONFIRM_INQUIRY_NOT_AGREE),!1)},this.getMessageBody=function(){var e,t,a=this.getSettings(),i=this.getForm(),s="";return i.find(".phoneFldGrp").is(":visible")&&(e=i.find(".phoneFldGrp .controls input").val(),t=i.find(".locationFldGrp .controls input").val(),i="[zip]"+i.find(".zipFldGrp .controls input").val()+"[/zip]",""!=$.trim(e)&&(s=_hgt("Contact Phone Number: {phoneNumber}",{phoneNumber:e})+"\n"),a.useZipCode?""!=$.trim(i)&&(s=s+_hgt("Project Location: {zipCode}",{zipCode:i})+"\n"):""!=$.trim(t)&&(s=s+_hgt("Project Location: {location}",{location:t})+"\n"),""!=$.trim(s)&&(s+="\n")),s+=this.getMessageFld().val()},this.onSubmitSuccess=function(){try{window.ga("send","event","ContactProDialog","contactSuccess")}catch(e){console.warn(e)}},function(){HZ.email.PostIdeabookConfirmContactProDialog.superclass.constructor.call(this)}.call(this)},HZ.extend(HZ.email.PostIdeabookConfirmContactProDialog,HZ.email.ContactDialog),HZ.email.EmailDialog=function(){var a=null,o=!1,n=!1,r=!1,l=!1,c="";this.DEFAULT_OPTIONS={title:null,type:null,referenceId:null,subject:"",message:"",event:HZ.sendEmail.events.BTN,useAddressBook:!0,disableTitle:!1};var e={tag:"a",attr:{href:HZ.utils.Config.termsOfUseUrl,target:"_new",class:"colorLink"}},t={tag:"a",attr:{href:HZ.utils.Config.privacyPolicyUrl,target:"_new",class:"colorLink"}};function d(e){var t;a||((a=new HZ.ui.yamdi.Dialog).init({dialogClassName:"contactsLoadingDlg",controls:[]}),t='<div class="hzLoadingDlgThrobber"></div><div class="hzLoadingDlgMessage">'+_hgt("Loading...")+"</div>",a.setTitle(""),a.setBody(t)),HZ.ui.Yamdi.switchDialog(a),HZ.utils.ResourceLoader.requireAddressBookResources(function(){HZ.addressBook.Contacts.load(e,function(){o=!0,c=HZ.addressBook.Contacts.getEmailProvider();var e=HZ.dialogs.EmailDialog;HZ.addressBook.Contacts.isUpsellRequired()&&(e=HZ.addressBook.Dialogs.getUpsellDialog(function(e){e?h():HZ.ui.Yamdi.switchDialog(HZ.dialogs.EmailDialog)})),HZ.ui.Yamdi.switchDialog(e)})})}function p(e,t){var a,i,s,o,l;n||(t.useAddressBook?($("#upsellTip").hover(function(){var e=function(){var e="";switch(c){case HZ.utils.Config.appTypeYahoo:e=r?_hgt("Update your Yahoo contact list to lookup your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you."):_hgt("By importing your Yahoo contact list, you can look up your friends by name and auto-complete their email addresses when you send them messages. Houzz will not use your contact list to send any messages other than those directed by you.");break;case HZ.utils.Config.appTypeOutlook:e=r?_hgt("Update your Outlook contact list to lookup your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you."):_hgt("By importing your Outlook contact list, you can look up your friends by name and auto-complete their email addresses when you send them messages. Houzz will not use your contact list to send any messages other than those directed by you.");break;default:case HZ.utils.Config.appTypeGoogle:e=r?_hgt("Update your Gmail contact list to lookup your recently emailed friends by name.  Houzz will not use your contact list to send any messages other than those directed by you."):_hgt("By importing your Gmail contact list, you can look up your friends by name and auto-complete their email addresses when you send them messages. Houzz will not use your contact list to send any messages other than those directed by you.")}return e}();$("#upsellTip").tipBubble({content:e,point:"north",width:200,position:"absolute",showCloseBtn:!1})},function(){$("#upsellTip").tipBubble("hide")}),$("#upsellLine a:first").click(function(){h()})):$("#upsellLine").css("display","none"),t.title&&e.find(".modal-header").html(t.title),t.disableTitle&&e.find(".hz-subjectFld").prop("disabled",!0),t.staticMessageData&&t.staticMessageData.s&&(e.find("#appendStaticMessage").removeClass("hidden"),e.find("#appendStaticMessage .hz-appendStaticMessage").prop("checked","checked"),e.find("#appendStaticMessage label").append(t.staticMessageData.ml),e.find("#appendStaticMessage .hz-staticMessage").html(t.staticMessageData.mc)),t.signupOnSend?(e.find(".hz-subjectFld").hide(),e.find("#subjectLabel").hide(),e.find(".hz-messageFld").hide(),e.find("#messageLabel").hide(),e.find(".modal-header").html(_hgt("Email Photo"))):(i=(a=e).find(".hz-emailFld"),s=a.find("#fromLabel"),o=a.find("#emailDialogEmailFromName"),l=a.find("#fromNameLabel"),a=a.find(".disclaimer"),i&&(i.hide(),s.hide()),o&&(o.hide(),l.hide()),a&&a.hide()),t.type==HZ.sendEmail.types.TRADE_EMAIL&&(e=(e=e).find("#tradeDisclaimer"),tradeDisclaimer&&e.show()),n=!0)}function h(){switch(c){case HZ.utils.Config.appTypeYahoo:HZ.externalContacts.api.requestAuth(c,HZ.ajaz.Contacts.YAHOO_CONTACTS_SCOPE,function(e){d(!0)});break;case HZ.utils.Config.appTypeOutlook:HZ.externalContacts.api.requestAuth(c,HZ.ajaz.Contacts.OUTLOOK_CONTACTS_SCOPE,function(e){d(!0)});break;default:case HZ.utils.Config.appTypeGoogle:HZ.externalContacts.api.requestAuth(c,HZ.ajaz.Contacts.GOOGLE_CONTACTS_SCOPE,function(e){d(!0)})}}this.FORM_TEMPLATE='<fieldset class="row-fluid"><label id="toLabel">'+_hgt("To")+'</label><div id="emailDialogAddressBook"></div><textarea class="hz-toFld span-xs-12 form-control" autofocus="autofocus" rows="2" id="emailDialogEmailInput" placeholder="'+_hgt("Separate multiple emails with commas")+'" /><div id="upsellLine">'+_hgt("<t1>Import my Gmail contact list</t1>&nbsp;(<t2>why?</t2>)",{t1:{tag:"a",attr:{href:"javascript:;",class:"colorLink"}},t2:{tag:"a",attr:{id:"upsellTip",href:"javascript:;",class:"colorLink"}}})+'</div><label id="fromLabel">'+_hgt("From")+'</label><input id="emailDialogEmailFromInput" type="text" class="hz-emailFld span-xs-12" value="" placeholder="'+_hgt("Your email address")+'"/><label id="fromNameLabel">'+_hgt("Name")+'</label><input id="emailDialogEmailFromName" type="text" class="hz-nameFld span-xs-12" value="" placeholder="'+_hgt("Your name")+'"/><label id="subjectLabel">'+_hgt("Subject")+'</label><input type="text" class="hz-subjectFld span-xs-12" value="" placeholder="'+_hgt("Enter subject")+'"/><label id="messageLabel">'+_hgt("Message")+'</label><textarea rows="5" class="form-control hz-messageFld span-xs-12" placeholder="'+_hgt("Enter your message here")+'"/><div id="appendStaticMessage" class="hidden"><label><input class="hz-appendStaticMessage" type="checkbox" /></label><div class="hz-staticMessage"></div></div><div class="disclaimer">'+_hgt('By clicking "Send" I acknowledge and agree to the creation of an account and to the <t1>Terms of Use</t1> and <t2>Privacy Policy</t2>',{t1:e,t2:t})+'</div><div id="tradeDisclaimer" class="disclaimer-text" style="display: none;">'+_hgt("By sending this message, you confirm that you have the consent of each recipient to send the message and each recipient is a US resident.")+'</div><div id="shareRecaptchaDiv"></div></fieldset>',this.validateMore=function(){var e=this.getSettings(),t=this.getForm().find(".hz-toFld").val();if(!UIHelper.validateEmail(t,!0))return this.showError(HZ.sendEmail.texts.ERROR_INVALID_TO_EMAIL_ADDRESSES),!1;t=this.getForm().find(".hz-emailFld").val();return!(e.signupOnSend&&!UIHelper.validateEmail(t,!1))||(this.showError(HZ.sendEmail.texts.ERROR_INVALID_FROM_EMAIL_ADDRESS),!1)},this.prepare=function(e){HZ.email.EmailDialog.superclass.prepare.call(this,e);e=$.extend(!0,{},this.DEFAULT_OPTIONS,e);e.sourceLink=HZ.utils.Config.emailPhotoAutoRegisterSourceLink,e.useAddressBook=e.useAddressBook&&HZ.utils.Config.emailShareAbImportEnabled,this.applySettings(e)},onRecaptchaLoadCallback=function(){var e="shareRecaptchaDiv";if("undefined"!=typeof grecaptcha){try{"undefined"!=typeof recaptchaWidgetId&&grecaptcha.reset(recaptchaWidgetId)}catch(e){}$("#"+e).is(":empty")&&(recaptchaWidgetId=grecaptcha.render(e,{sitekey:HZ.utils.Config.recaptchaPublicKey}))}},this.onViewUnloaded=function(){"undefined"!=typeof grecaptcha&&grecaptcha.reset(recaptchaWidgetId),this.getSettings().useAddressBook&&o&&l&&$("#emailDialogAddressBook").clearAddressBookInput(),$("#emailDialogEmailInput").val("")},this.onViewLoaded=function(){var e=this.getSettings(),t=$("#emailDialogEmailInput"),a=$("#emailDialogEmailFromInput"),i=$("#emailDialogEmailFromName");e.signupOnSend||HZ.data.CurrentSessionUser||("undefined"==typeof grecaptcha?$.getScript("https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit&hl="+HZ.utils.Config.language):onRecaptchaLoadCallback());var s;!e.useAddressBook||o?(p(this.getForm(),e),HZ.email.EmailDialog.superclass.onViewLoaded.call(this),e.useAddressBook?(s=HZ.addressBook.Contacts.getContacts(),r=s&&0<s.length,this.getSubjectFld().val(e.subject),this.getMessageFld().val(e.message),!l&&r?(t.height("64px"),$("#emailDialogAddressBook").addressBook({input:t,showAddressBook:!1}),l=!0,$("#emailDialogEmailInput_tag").focus()):this.getToFld().focus(),$("#upsellLine a:first").text(function(){var e="";switch(c){case HZ.utils.Config.appTypeYahoo:e=r?_hgt("Update my Yahoo contact list"):_hgt("Import my Yahoo contact list");break;case HZ.utils.Config.appTypeOutlook:e=r?_hgt("Update my Outlook contact list"):_hgt("Import my Outlook contact list");break;default:case HZ.utils.Config.appTypeGoogle:e=r?_hgt("Update my Gmail contact list"):_hgt("Import my Gmail contact list")}return e}())):this.getToFld().focus(),t.on("blur",function(){HZ.utils.Logger.sendEventLogLightweight(HZ.utils.Config.eventToAddressEntered,{to:!!t.val()})}),a.on("blur",function(){HZ.utils.Logger.sendEventLogLightweight(HZ.utils.Config.eventFromAddressEntered,{from:!!a.val()})}),i.on("blur",function(){HZ.utils.Logger.sendEventLogLightweight(HZ.utils.Config.eventFromNameEntered,{name:!!i.val()})})):d(!1)},function(){HZ.email.EmailDialog.superclass.constructor.call(this)}.call(this)},HZ.extend(HZ.email.EmailDialog,HZ.email.ContactDialog),HZ.ns("HZ.dialogs"),HZ.dialogs.EmailDialog=new HZ.email.EmailDialog,HZ.email.ShareColorPaletteDialog=function(){this.DEFAULT_OPTIONS={type:null,referenceId:null,subject:"",message:"",event:HZ.sendEmail.events.SHARECP,scopeId:"",allowShare:!0,mft:"",colorPaletteShareLink:"",generateColorPaletteImageLink:""},this.DIALOG_CLASSNAME="shareColorPaletteDialog",this.DIALOG_TITLE=_hgt("Share color palette"),this.FORM_TEMPLATE="<div id='shareColorPaletteDialog' class='trackMe'><div class='mftDisclaimer'><i>"+_hgt("The colors displayed on-screen may not match %brandName% color standards")+"</i></div><div class='socialShareBtnsContainer'><a href='javascript:;' compid='fbShare' class='fb-share' onclick='HZ.dialogs.ShareColorPaletteDialog.generateFbShareEvent();'><div class='socialShareBtn facebook'></div></a><a href='javascript:;' compid='twShare' class='tw-share' onclick='HZ.dialogs.ShareColorPaletteDialog.generateTwShareEvent();'><div class='socialShareBtn twitter'></div></a><a href='javascript:;' compid='gShare' class='g-share' onclick='HZ.dialogs.ShareColorPaletteDialog.generateGShareEvent();'><div class='socialShareBtn plusone'></div></a></div><div class='sectionDivider text-bold'><span><i>"+_hgt("or email this to a friend")+"</i></span></div><form id='emailColorPaletteForm' name='emailColorPaletteForm' action='javascript:;'><textarea type='text' rows='1' class='form-control hz-toFld' id='emailDialogEmailInput' placeholder='"+_hgt("To (enter recipient emails, separated by commas)")+"'></textarea><label>"+_hgt("Subject")+"</label><input type='text' class='hz-subjectFld' id='emailDialogSubjectInput'><label>"+_hgt("Message")+"</label><textarea class='form-control hz-messageFld' id='emailDialogMessageInput' rows='5'></textarea></form></div>",this.validateMore=function(){var e=this.getForm().find("#emailDialogEmailInput").val();return!!UIHelper.validateEmail(e,!0)||(this.showError(HZ.sendEmail.texts.ERROR_INVALID_TO_EMAIL_ADDRESSES),!1)},this.prepare=function(e){HZ.email.ShareColorPaletteDialog.superclass.prepare.call(this,e);e=this.getSettings();this.applySettings(e)},this.onViewUnloaded=function(){this.getSettings()},this.onViewLoaded=function(){var e=this.getSettings();$("#shareColorPaletteDialog").attr("objid",e.referenceId).attr("scopeid",e.scopeId);e=$(".mftDisclaimer i").html().replace("%brandName%",this.getPaletteManufacturer());$(".mftDisclaimer i").html(e),HZ.email.ShareColorPaletteDialog.superclass.onViewLoaded.call(this),this.getToFld().focus()},this.getPaletteManufacturer=function(){var e=this.getSettings(),t=HZ.utils.ColorPicker.getPaintManufacturerDisplayName(e.mft);return HZ.lb.Utils&&(e=HZ.lb.Utils.ColorPicker.getColorPickerAd(e.referenceId),(e=HZ.lb.Utils.ColorPicker.getConfig(e))&&e.hasOwnProperty("advDisplayName")&&(t=e.advDisplayName)),t},this.generateFbShareEvent=function(){var e=this.getSettings(),t="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.colorPaletteShareLink),e=HZ.ui.Utils.getCenteredPopupPosition(611,368);window.open(t,"fbwindow","width=611, height=368, left="+e.left+", top="+e.top+", toolbar=0, location=0, menubar=0, scrollbars=0")},this.generateTwShareEvent=function(){var e=this.getSettings(),t=_hgt("I love this @{mft} Paint color palette! Create your own @Houzz",{mft:this.getPaletteManufacturer()}),t=encodeURIComponent(t),e="https://twitter.com/share?url="+encodeURIComponent(e.colorPaletteShareLink)+"&text="+t,t=HZ.ui.Utils.getCenteredPopupPosition(550,380);window.open(e,"fbwindow","width=550, height=380, left="+t.left+", top="+t.top+", toolbar=0, location=0, menubar=0, scrollbars=0")},this.generateGShareEvent=function(){var e=this.getSettings(),t="https://plus.google.com/share?url="+encodeURIComponent(e.colorPaletteShareLink),e=HZ.ui.Utils.getCenteredPopupPosition(600,600);window.open(t,"fbwindow","width=600, height=600, left="+e.left+", top="+e.top+", toolbar=0, location=0, menubar=0, scrollbars=1, resizeable=1")},function(){HZ.email.ShareColorPaletteDialog.superclass.constructor.call(this)}.call(this)},HZ.extend(HZ.email.ShareColorPaletteDialog,HZ.email.ContactDialog),HZ.ns("HZ.dialogs"),HZ.dialogs.ShareColorPaletteDialog=new HZ.email.ShareColorPaletteDialog;

window.hzmr.push("contactDialog:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End contactDialog.js  **************/
/************* Start rateStarsLabels.js for locale en-GB **************/
try {HZ.ns("HZ.reviews"),HZ.reviews.RateStarsLabels=function(){var e;return{getInstance:function(){return e=e||{initRatingLables:function(e,t,a){t.data("selectedValue",-1),e.on("paint update",null,{labelNode:t,descriptions:a},$.proxy(this.onRateEvent,this))},onRateEvent:function(e,t){var a=(t=t||{value:-1}).value,n=-1==a?"":e.data.descriptions[a-1],l=e.data.labelNode;l.finish(),l.find('[data-value="'+a+'"]').length||l.fadeOut(10,function(){switch(l.html('<span data-value="'+a+'">'+n+"</span>").fadeIn(10),e.type){case"update":l.data("selectedValue",a);break;case"paint":a!=l.data("selectedValue")&&(-1==l.data("selectedValue")?l.data("selectedValue",a):l.delay(2e3).fadeOut({duration:10,complete:function(){l.html("")}}))}})}}},RATING_LABELS:[_hgt("Very poor"),_hgt("Poor"),_hgt("Average"),_hgt("Good"),_hgt("Excellent")]}}();

window.hzmr.push("rateStarsLabels:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End rateStarsLabels.js  **************/
/************* Start jquery.rateStars.js for locale en-GB **************/
try {!function(c){c.fn.rating=function(){var a;function e(a,t){var n=c(a).find("[data-value="+t+"]");n.removeClass("rating-star-icon--empty"),n.prevAll("[data-value]").removeClass("rating-star-icon--empty"),n.nextAll("[data-value]").addClass("rating-star-icon--empty"),c(a).trigger("paint",{value:t})}function r(a){c(a).find("[data-value]").addClass("rating-star-icon--empty")}function i(a,t){t===a.data("empty-value")?a.siblings(".rating-clear").hide():a.siblings(".rating-clear").show(),a.val(t).trigger("change")}for(a=this.length-1;0<=a;a--){for(var t=c(this[a]),n=t.attr("max")||5,s=t.attr("min")||0,l=t.data("clearable")||null,u="",o=s;o<=n;o++)u+=['<span class="rating-star-icon rating-star-icon--empty icon-font icon-star " data-value="',o,'"></span>'].join("");l&&(u+=[' <a class="rating-clear" style="display:none;" href="javascript:void">','<span class="icon-remove"></span> ',l,"</a>"].join(""));l=t.clone(!0).addClass("hidden").data("max",n).data("min",s),s=['<div class="rating-input">',u,"</div>"].join(""),s=c(s);t.replaceWith(s.append(l)),s.trigger("ready")}c(".rating-input").on("mouseenter","[data-value]",function(){var a=c(this);e(a.closest(".rating-input"),a.data("value"))}).on("mouseleave","[data-value]",function(){var a=c(this),t=a.siblings("input"),n=t.val(),i=t.data("min"),t=t.data("max");i<=n&&n<=t?e(a.closest(".rating-input"),n):r(a.closest(".rating-input"))}).on("click","[data-value]",function(a){var t=c(this),n=t.data("value");return i(t.siblings("input"),n),t.closest(".rating-input").trigger("update",{value:n}),a.preventDefault(),!1}).on("click",".rating-clear",function(a){var t=c(this),n=t.siblings("input");return i(n,n.data("empty-value")),r(t.closest(".rating-input")),a.preventDefault(),!1}).on("reset",function(a){var t=c(this).find("input");t.val(t.data("empty-value")),r(this),c(this).trigger("paint")}).each(function(){var a=c(this).find("input"),t=a.val(),n=a.data("min"),i=a.data("max");""!==t&&n<=+t&&+t<=i?(e(this,t),c(this).find(".rating-clear").show()):(a.val(a.data("empty-value")),r(this))})},c(function(){0<c("input.rating[type=number]").length&&c("input.rating[type=number]").rating()})}(jQuery);

window.hzmr.push("jquery.rateStars:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End jquery.rateStars.js  **************/
/************* Start makkariSDK.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Omnilog=t():(e.Omnilog=e.Omnilog||{},e.Omnilog["makkari-sdk"]=t())}(self,()=>{return n={316:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.logError=void 0;var a=o(338),l=n(o(144)),c="/j/ajax/client-error-light";function u(e,t,o,n,i,r){"function"==typeof t&&n instanceof e?t(o,n,i,r):console.log("OmniLogSDK ".concat(o," Error: ").concat(n.message))}t.logError=function(e,t,o,n){try{if("undefined"==typeof window)return;var i={type:e},r=encodeURIComponent(JSON.stringify(i));(0,l.default)("".concat(((0,a.isTestingEnv)(o)?"".concat("https://www.stghouzz.com"):"".concat("https://www.houzz.com")).concat(c),"?p=").concat(r)),console.log("OmniLogSDK ".concat(e," Error: ").concat(t.message))}catch(e){}},t.default=function(a,l,c){return void 0===l&&(l=t.logError),void 0===c&&(c=Error),function(e,t,o){var r=o.value;return o.value=function(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=(null===(e=null==this?void 0:this.OmnilogHelper)||void 0===e?void 0:e.getEnvironment())||"";try{var i=r.apply(this,t);return i&&"function"==typeof i.then&&"function"==typeof i.catch?i.catch(function(e){u(c,l,a,e,n,t)}):i}catch(e){u(c,l,a,e,n,t)}},o}}},642:function(e,t,o){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var o={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]]);return o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});function a(e,t){return"function"!=typeof(null==e?void 0:e.getAttribute)||(t.position=void 0!==t.position?t.position:function(e,t){for(var o=0;o<t.length;o++){var n=parseInt((null==e?void 0:e.getAttribute(t[o]))||"",10);if(!isNaN(n))return n}}(e,["posId","data-posid","data-pos-id"]),t.elementType=t.elementType||e.getAttribute("role")||e.nodeName||void 0,t.elementLabel=t.elementLabel||e.getAttribute("label")||e.getAttribute("aria-label")||void 0,t.entityType=t.entityType||e.getAttribute("entityType")||e.getAttribute("data-entity-type")||void 0,t.entityId=t.entityId||e.getAttribute("objId")||e.getAttribute("data-objid")||e.getAttribute("entityId")||e.getAttribute("data-entity-id")||void 0,t.campaignId=t.campaignId||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||void 0,t.campaignToken=t.campaignToken||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||e.getAttribute("campaignToken")||e.getAttribute("data-campaign-token")||void 0,t.creativeId=t.creativeId||e.getAttribute("creativeId")||e.getAttribute("data-creative-id")||void 0,t.section=t.section||e.getAttribute("section")||e.getAttribute("data-section")||void 0,t.component=t.component||e.getAttribute("component")||e.getAttribute("data-component")||void 0,t.compId=t.compId||e.getAttribute("compId")||e.getAttribute("data-compid")||void 0,t.l1Section=t.section||e.getAttribute("data-section")||void 0,t.l2Container=t.l2Container||t.container||e.getAttribute("data-container")||void 0,t.l3Component=t.component||e.getAttribute("data-component")||void 0,t.cta=t.cta||e.getAttribute("data-cta")||void 0,t.extraInfo=t.extraInfo||e.getAttribute("data-extra-info")||void 0),t}function c(){return r.default.getLocalStorage()}var u=o(924),r=i(o(670)),s=o(304),E="persisted_evt_src",d="transient_evt_src",I={trackingInfo:null,eventSource:null},S=function(o){return o?(Object.keys(o).forEach(function(e){var t=o[e];return t&&"object"==typeof t&&S(t)||!t&&delete o[e]}),o):{}},_={setEventSource:function(e){try{var t,o,n,i,r,a=c();a&&e&&"object"==typeof e&&(t=e.experience,o=e.parentFlow,n=e.activeFlow,i=l(e,["experience","parentFlow","activeFlow"]),r={experience:t,parentFlow:o,activeFlow:n},a.set(d,i,10),a.set(E,r))}catch(e){}},updateEventSource:function(e){var t;e&&(t=_.getEventSource()||{},_.setEventSource(Object.assign({},t,e)))},getEventSource:function(){var e=c(),t=e.get(E)||{},e=e.get(d)||{},e=n(n({},t),e);return S(e)},getEventSourceFromTargetElement:function(e,t){return e?a(e,t):{}},collectEventSourceFromDOM:function(e){var t={};if(!e)return t;try{for(var o=e;o;)t=o?a(o,t):t,o=o.parentNode}catch(e){}return!t.component&&t.compId&&(t.component=t.compId),t},getTrackingInfoAndSetEventSource:function(e,r){if(!e)return I;var t=function(e){var t;if("function"!=typeof(null==e?void 0:e.getAttribute))return I;var o={compId:null,posId:null,scopeId:null,objId:null,anchorText:null,eventType:r||u.UIEvents.ELEMENT_CLICKED,hasTrackMe:!1},n={};try{for(var i=e;i;)o.compId=o.compId||i.getAttribute("compId")||i.getAttribute("data-compid"),o.scopeId=o.scopeId||i.getAttribute("scopeId")||i.getAttribute("data-scopeid"),o.objId=o.objId||i.getAttribute("objId")||i.getAttribute("data-objid"),o.posId=o.posId||i.getAttribute("posId")||i.getAttribute("data-posid"),o.anchorText=o.anchorText||(null===(t=null==i?void 0:i.innerText)||void 0===t?void 0:t.replace(/[\s:]/g,"").substring(0,30)),o.hasTrackMe=o.hasTrackMe||i.classList.contains("hz-track-me")||i.classList.contains("trackMe"),o.eventType=o.eventType||i.getAttribute("data-event-name")||i.getAttribute("data-event-type"),n=a(i,n),i=i.parentElement;return o.eventType&&Object.values(u.UIEvents).includes(o.eventType),{trackingInfo:o,eventSource:n}}catch(e){return I}}(e)||{},o=t.trackingInfo,e=t.eventSource,t=void 0===e?{}:e;if(o&&t){e=s.ExperienceUtils.getExperience()||null;e&&(t.experience=e);e=s.FlowUtils.getParentFlow();e&&(t.parentFlow=e);e=s.FlowUtils.getActiveFlow();return e&&(t.activeFlow=e),_.setEventSource(t),{trackingInfo:o,eventSource:t}}return I}};t.default=_},924:(e,t)=>{"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.OmnilogError=t.DeviceType=t.OmnilogLocalStorageKey=t.RouterNSProductMap=t.IdentityEventType=t.ViewMode=t.DeviceOrientation=t.EventInitiator=t.TestBotType=t.UIEvents=t.Channel=t.ComponentOsType=t.ComponentType=t.ComponentName=t.ComponentDetailedType=t.OmnilogStatusCodes=t.OmnilogHeaders=t.OmniLoggerConst=t.OmniLoggerEventNames=void 0,(o=t.OmniLoggerEventNames||(t.OmniLoggerEventNames={})).EXPERIENCE_LOADED="Experience Loaded",o.EXPERIENCE_UNLOADED="Experience Unloaded",o.OMNILOG_EVENT="omnilog",o.TEST_REGISTERED="Tests Registered",o.SESSION_STARTED="Session Started",o.USER_ATTRIBUTE_UPDATED="User Attribute Updated",(t.OmniLoggerConst||(t.OmniLoggerConst={})).OMNILOG_TOKEN_HEADER_NAME="X-HZ-OMNILOG-TOKEN",(o=t.OmnilogHeaders||(t.OmnilogHeaders={})).EXTERNAL_SESSION_ID_HEADER="x-ol-ext-session-id",o.SESSION_ID_HEADER="x-ol-session-id",o.EXTERNAL_DEVICE_ID_HEADER="x-ol-ext-device-id",o.EXPERIENCE_ID_HEADER="x-ol-exp-id",o.EXPERIENCE_NAME_HEADER="x-ol-exp-name",o.FLOW_ID_HEADER="x-ol-flow-id",o.FLOW_NAME_HEADER="x-ol-flow-name",o.FLOW_STEP_NAME_HEADER="x-ol-step-name",o.PRODUCT_HEADER="x-ol-product",o.PRODUCT_VARIANT_HEADER="x-ol-product-variant",o.MID_HEADER="x-ol-mid",(o=t.OmnilogStatusCodes||(t.OmnilogStatusCodes={}))[o.STATUS_CODE_SUCCESS=1]="STATUS_CODE_SUCCESS",o[o.STATUS_CODE_FAILURE=-1]="STATUS_CODE_FAILURE",(o=t.ComponentDetailedType||(t.ComponentDetailedType={}))[o.C2_LEGACY_WEB=101]="C2_LEGACY_WEB",o[o.JUWKAA_ISOMORHPIC_JS_WEB=102]="JUWKAA_ISOMORHPIC_JS_WEB",o[o.SITE_DESIGNER_LEGACY_WEB=103]="SITE_DESIGNER_LEGACY_WEB",o[o.SITE_DESIGNER_ISOMORPHIC_JS_WEB=104]="SITE_DESIGNER_ISOMORPHIC_JS_WEB",o[o.IVY_LEGACY_WEB=105]="IVY_LEGACY_WEB",o[o.IVY_ISOMORPHIC_JS_WEB=106]="IVY_ISOMORPHIC_JS_WEB",o[o.CONX_LEGACY_WEB=107]="CONX_LEGACY_WEB",o[o.WINDOWS_MOBILE_APP=110]="WINDOWS_MOBILE_APP",o[o.PRO_SITES_WEB=112]="PRO_SITES_WEB",o[o.HOUZZ_PRO_CLIPPER=151]="HOUZZ_PRO_CLIPPER",o[o.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",o[o.HOUZZ_IOS_MOBILE_APP=201]="HOUZZ_IOS_MOBILE_APP",o[o.HOUZZ_ANDROID_MOBILE_APP=202]="HOUZZ_ANDROID_MOBILE_APP",o[o.HOUZZ_PRO_IOS_MOBILE_APP=251]="HOUZZ_PRO_IOS_MOBILE_APP",o[o.HOUZZ_PRO_ANDROID_MOBILE_APP=252]="HOUZZ_PRO_ANDROID_MOBILE_APP",o[o.C2_WEB_SERVER=301]="C2_WEB_SERVER",o[o.JUKWAA_WEB_SERVER=302]="JUKWAA_WEB_SERVER",o[o.GRAPHQL_SERVER=303]="GRAPHQL_SERVER",o[o.C2_SERVICE=304]="C2_SERVICE",o[o.IDENTITY_SERVICE=305]="IDENTITY_SERVICE",o[o.AD_SERVER=306]="AD_SERVER",o[o.BATCH=307]="BATCH",o[o.CONX_SERVER=308]="CONX_SERVER",o[o.PRO_SITES_WEB_SERVER=312]="PRO_SITES_WEB_SERVER",o[o.IVY_SERVICE_SERVER=315]="IVY_SERVICE_SERVER",o[o.EPN=401]="EPN",o[o.SALESFORCE=501]="SALESFORCE",o[o.BLUESHIFT=502]="BLUESHIFT",o[o.ELOQUA=503]="ELOQUA",o[o.UNKNOWN=-1]="UNKNOWN",(o=t.ComponentName||(t.ComponentName={})).JUKWAA_WEB="Jukwaa Web Client",o.PRO_SITES_WEB="Pro Site Web Client",o.SITE_DESIGNER_WEB="Site Designer Web Client",o.GRAPHQL_SERVER="Graphql Server",o.GRAPHQL_HOUZZ_PRO_SERVER="GraphQL Houzz Pro Server",o.JUKWAA_WEB_SERVER="Jukwaa Web Server",o.PRO_SITES_WEB_SERVER="Pro Site Web Server",o.SITE_DESIGNER_WEB_SERVER="Site Designer Web Server",o.IVY_SERVICE_SERVER="Ivy Service Server",o.GMAIL_CRM_CHROME_EXTENSION="Gmail CRM Chrome Extension",o.PRODUCT_CLIPPER_CHROME_EXTENSION="Product Clipper Chrome Extension",o.IMAGE_CLIPPER_CHROME_EXTENSION="Image Clipper Chrome Extension",o.HOUZZ_PRO_CLIPPER="Houzz Pro Clipper",(o=t.ComponentType||(t.ComponentType={}))[o.CLIENT_BROWSER=100]="CLIENT_BROWSER",o[o.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",o[o.SERVER_WEB=300]="SERVER_WEB",o[o.SERVER_OFFLINE=400]="SERVER_OFFLINE",o[o.SERVER_SERVICE=500]="SERVER_SERVICE",(o=t.ComponentOsType||(t.ComponentOsType={}))[o.LINUX=1]="LINUX",o[o.WINDOWS=2]="WINDOWS",o[o.OSX=3]="OSX",o[o.IOS=4]="IOS",o[o.ANDROID=5]="ANDROID",o[o.OTHER=6]="OTHER",(o=t.Channel||(t.Channel={})).DIRECT="Direct",o.EMAIL="Email",o.PAID="Paid",o.SEARCH="Search",o.SOCIAL="Social",o.PARTNER="Partner",o.INTERNAL="Internal",o.REFERRAL="Referral",o[o.UNKNOWN=100]="UNKNOWN",(o=t.UIEvents||(t.UIEvents={})).ELEMENT_CLICKED="Element Clicked",o.ELEMENT_FOCUSED="Element Focused",o.ELEMENT_BLURRED="Element Blurred",o.ELEMENT_SCROLLED="Element Scrolled",o.ELEMENT_VIEWED="Element Viewed",o.ELEMENT_EXPANDED="Element Expanded",o.ELEMENT_COLLAPSED="Element Collapsed",o.INPUT_CHANGED="Input Changed",o.MEDIA_PLAYED="Media Played",o.MEDIA_PAUSED="Media Paused",o.MEDIA_PLAY_COMPLETED="Media Play Completed",o.MEDIA_TIME_CHANGED="Media Time Changed",o.MEDIA_RESTARTED="Media Restarted",o.FORM_SUBMITTED="Form Submitted",(o=t.TestBotType||(t.TestBotType={}))[o.NONE=0]="NONE",o[o.AUTOMATION=1]="AUTOMATION",o[o.MANUAL=4]="MANUAL",o[o.BATCH=16]="BATCH",o[o.HOUZZ_STAFF=32]="HOUZZ_STAFF",o[o.ANALYTICAL_BOT=64]="ANALYTICAL_BOT",(o=t.EventInitiator||(t.EventInitiator={}))[o.USER_SERVER=0]="USER_SERVER",o[o.USER_CLIENT=1]="USER_CLIENT",o[o.APPLICATION_SERVER=2]="APPLICATION_SERVER",o[o.APPLICATION_CLIENT=3]="APPLICATION_CLIENT",o[o.PRO_AI_ASSIST_USER_SERVER=4]="PRO_AI_ASSIST_USER_SERVER",o[o.PRO_AI_ASSIST_USER_CLIENT=5]="PRO_AI_ASSIST_USER_CLIENT",o[o.PRO_AI_ASSIST_APPLICATION_SERVER=6]="PRO_AI_ASSIST_APPLICATION_SERVER",o[o.PRO_AI_ASSIST_APPLICATION_CLIENT=7]="PRO_AI_ASSIST_APPLICATION_CLIENT",(o=t.DeviceOrientation||(t.DeviceOrientation={}))[o.PORTRAIT=1]="PORTRAIT",o[o.LANDSCAPE=2]="LANDSCAPE",(o=t.ViewMode||(t.ViewMode={})).STANDALONE="Standalone",o.DEFAULT="Default",o.LIGHTBOX="Lightbox",o.QUICKVIEW="Quick View",(o=t.IdentityEventType||(t.IdentityEventType={})).LOGIN="login",o.LOGOUT="logout",o.MODIFY="modify",t.RouterNSProductMap={HOUZZ:"Houzz",PRO_SOLUTIONS:"Houzz Pro",UNKNOWN:"UNKNOWN"},(o=t.OmnilogLocalStorageKey||(t.OmnilogLocalStorageKey={})).ActiveExperience="OMNILOG_ACTIVE_EXPERIENCE",o.FlowStack="OMNILOG_FLOW_STACK",o.ParentFlow="OMNILOG_PARENT_FLOW",o.LogoutCount="OMNILOG_LOGOUT_COUNT",(o=t.DeviceType||(t.DeviceType={}))[o.NONE=0]="NONE",o[o.DESKTOP=1]="DESKTOP",o[o.TABLET=2]="TABLET",o[o.SMARTPHONE=3]="SMARTPHONE",o[o.SMART_TV=4]="SMART_TV",o[o.OTHER=5]="OTHER",(t=t.OmnilogError||(t.OmnilogError={})).INIT="omnilog.init",t.CALL_MAKKARI_API="omnilog.callMakkariApi",t.EXPERIENCE_LOADED="omnilog.experienceLoaded",t.EXPERIENCE_UNLOADED="omnilog.experienceUnLoaded",t.SEND_INTERACTION_EVENT="omnilog.sendInteractionEvent",t.SEND_OUTCOME_EVENT="omnilog.sendOutcomeEvent",t.SEND_IDENTITY_EVENT="omnilog.sendIdentityEvent",t.FLOW_STARTED="omnilog.flowStarted",t.FLOW_STEP_LOADED="omnilog.flowStepLoaded",t.FLOW_STEP_COMPLETED="omnilog.flowStepCompleted",t.FLOW_COMPLETED="omnilog.flowCompleted",t.FLOW_STEP_UNLOADED="omnilog.flowStepUnloaded",t.DUPLICATE_EXPERIENCE="omnilog.duplicate_experience",t.BUILD_CLIENT_TOKEN="omnilog.buildClientToken",t.LOG_ERROR="omnilog.log_error"},304:function(e,i,t){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.IdentityUtils=i.UserAttributeUtils=i.ExperienceUtils=i.FlowUtils=void 0;var r=t(924),a=n(t(670)),l=t(214),c=n(t(345)),t=n(t(642));i.FlowUtils={init:function(){i.FlowUtils.setFlowStack([])},getStorage:function(){return a.default.getSessionStorage()},getParentFlow:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.ParentFlow)||null},setParentFlow:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ParentFlow,e)},getFlowStack:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.FlowStack)||[]},setFlowStack:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.FlowStack,e)},pushToFlowStack:function(e){var t=i.FlowUtils.getFlowStack()||[];t.unshift(e),i.FlowUtils.setFlowStack(t)},popFlowStack:function(){var e=i.FlowUtils.getFlowStack()||[],t=e.shift();return i.FlowUtils.setFlowStack(e),t},resetFlows:function(){i.FlowUtils.setFlowStack([]),i.FlowUtils.setParentFlow(null)},getActiveFlow:function(){var e=i.FlowUtils.getFlowStack();return 0<(null==e?void 0:e.length)?e[0]:null},updateActiveFlow:function(e,t){var o;0!==i.FlowUtils.getFlowStack().length&&((o=i.FlowUtils.popFlowStack())&&(o[e]=t),i.FlowUtils.pushToFlowStack(o))}},i.ExperienceUtils={getStorage:function(){return a.default.getSessionStorage()},setActiveExperience:function(e){var t=i.ExperienceUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ActiveExperience,e)},getExperience:function(){return i.ExperienceUtils.getStorage().get(r.OmnilogLocalStorageKey.ActiveExperience)}},i.UserAttributeUtils={getSetUaDetails:function(e,t,o){if(e&&t)return{user_attribute_set:JSON.stringify([{name:e,value:t,expiration:o||null}])}},getUnsetUaDetails:function(e){if(e)return{user_attribute_unset:JSON.stringify([e])}}},i.IdentityUtils={getLogoutCount:function(){return parseInt(a.default.getLocalStorage().get(r.OmnilogLocalStorageKey.LogoutCount),10)||0},updateLogoutCount:function(){a.default.getLocalStorage().set(r.OmnilogLocalStorageKey.LogoutCount,i.IdentityUtils.getLogoutCount()+1)},getClientIdModifier:function(){var e=i.IdentityUtils.getLogoutCount();if(!e)return null;var t="".concat(e);if(e<1e3)for(var o=4-t.length,n=0;n<o;n++)t="0".concat(t);return t}};var u=o(o({getProductInfo:function(e,t){var o=u.getProductInfoByRoutingDescriptor(t)||{},n=o.product,t=o.productVariant,o=e&&(0,l.getProductInfo)()||{},e=o.product,o=o.productVariant;return{product:n||e||r.RouterNSProductMap.UNKNOWN,productVariant:t||o||r.RouterNSProductMap.UNKNOWN}},getClientEventTokenFromRequestHeaders:function(e){var t=null;return e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]&&((t={}).experienceId=e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER],t.experienceName=e[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER],t.externalDeviceId=e[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER],t.externalSessionId=e[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER],t.sessionId=e[r.OmnilogHeaders.SESSION_ID_HEADER],t.flowId=e[r.OmnilogHeaders.FLOW_ID_HEADER],t.flowName=e[r.OmnilogHeaders.FLOW_NAME_HEADER],t.stepName=e[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER],t.product=e[r.OmnilogHeaders.PRODUCT_HEADER],t.productVariant=e[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER],t.mid=e[r.OmnilogHeaders.MID_HEADER]),t},getInfoFromClientToken:function(e){if(!e)return{};var t=e.experienceId,o=e.experienceName,n=e.flowId,i=e.flowName,r=e.stepName,a=e.flowStep;return{experience:{experienceInstanceId:t,experienceName:o,product:e.product,productVariant:e.productVariant},activeFlow:{flowId:n,flowName:i,stepName:r,flowStep:a},session:{sessionId:e.sessionId,externalSessionId:e.externalSessionId}}},buildClientTokenHeader:function(e){if(!e)return null;var t={};return e.experienceName&&(t[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER]=e.experienceName),e.experienceId&&(t[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]=e.experienceId),e.externalDeviceId&&(t[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER]=e.externalDeviceId),e.externalSessionId&&(t[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER]=e.externalSessionId),e.sessionId&&(t[r.OmnilogHeaders.SESSION_ID_HEADER]=e.sessionId),e.flowId&&(t[r.OmnilogHeaders.FLOW_ID_HEADER]=e.flowId),e.flowName&&(t[r.OmnilogHeaders.FLOW_NAME_HEADER]=e.flowName),e.stepName&&(t[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER]=e.stepName),e.product&&(t[r.OmnilogHeaders.PRODUCT_HEADER]=e.product),e.productVariant&&(t[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER]=e.productVariant),e.mid&&(t[r.OmnilogHeaders.MID_HEADER]=e.mid),t}},t.default),{FlowUtils:i.FlowUtils,ExperienceUtils:i.ExperienceUtils,UserAttributeUtils:i.UserAttributeUtils,IdentityUtils:i.IdentityUtils,getTestRegisteredEventDetails:function(e){return void 0===e&&(e={}),{test_selections:JSON.stringify(e)}},isNull:function(e){return null==e},countryCodeMapping:function(e){return e===c.default["co.uk"].countryCode?"UK":e},getProductInfoByRoutingDescriptor:function(e){var t=e||{},o=t.namespace,e=void 0===o?"":o,o=t.siteName,t=void 0===o?"":o,o=r.RouterNSProductMap[e];if(!o)return null;e=u.countryCodeMapping(t.replace("".concat(e,"_"),""));return e?{product:o,productVariant:"".concat(o," ").concat(e)}:null},stringifyIfExist:function(e){return u.isNull(e)?e:JSON.stringify(e)},getViewPortDimensions:function(){var e=document.documentElement||{};return{viewportWidth:Math.max(e.clientWidth||0,window.innerWidth||0)||null,viewportHeight:Math.max(e.clientHeight||0,window.innerHeight||0)||null}}});i.default=u},27:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGGER_NAMESPACE=t.MAKKARI_API_ENDPOINT=t.MAKKARI_DEVICE_STORAGE_KEY=void 0,t.MAKKARI_DEVICE_STORAGE_KEY="makkari_device",t.MAKKARI_API_ENDPOINT="/j/cdp-api",t.LOGGER_NAMESPACE="makkariDebug"},658:function(e,t,o){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n,a=o(924),l=o(27),s=o(214),E=o(338),i=o(316);function d(e){(0,s.log)("MakkariSDK onSuccess::",e)}function I(e,t){(0,s.log)("MakkariSDK onError::",e,t)}function S(e,t,o,n){(0,s.sendFallbackTracking)(o),(0,i.logError)(a.OmnilogError.CALL_MAKKARI_API,e,n)}c.getInstance=function(){var e;return"undefined"!=typeof window&&(null!==(e=null===window||void 0===window?void 0:window.HZ)&&void 0!==e&&e.Makkari?n=window.HZ.Makkari:(n=new c,null!==window&&void 0!==window&&window.HZ&&(window.HZ.Makkari=n))),n},c.prototype.init=function(e,t,o,n){(0,s.log)("MakkariSDK init");var i=n||{},r=i.enableXhrTransport,a=i.enablePostMethod,n=void 0!==a&&a,a=i.authToken,i=i.environment;this.enableXhrTransport=void 0!==r&&r,this.enablePostMethod=n,this.authToken=a,this.environment=i},c.prototype.getDeviceId=function(){var e=(0,s.getDevice)();return null==e?void 0:e.deviceId},c.prototype.getMid=function(){var e;return null===(e=this.identity)||void 0===e?void 0:e.mId},c.prototype.getIdentity=function(e,t,o){(0,s.log)("MakkariSDK getIdentity");var n=(0,s.normalizeUserIdentities)(e);this.callMakkariApi("".concat(l.MAKKARI_API_ENDPOINT,"/identify"),"POST",r({},n),function(e){void 0===e&&(e={}),"function"==typeof t&&t(r({input:n},e))},o)},c.prototype.getIdentityInput=function(){return this.identity?this.identity.input:""},c.prototype.sendEvent=function(e,t){void 0===t&&(t={}),(0,s.log)("MakkariSDK sendEvent::",e),this.callMakkariApi("".concat(l.MAKKARI_API_ENDPOINT,"/events"),"POST",{event:e},t.onSuccess,t.onError)},c.prototype.getProductInfo=function(){return(0,s.getProductInfo)()},c.prototype.sendIdentityEvent=function(e,t,o,n){(0,s.log)("MakkariSDK sendIdentityEvent::",e,this.identity);var i=null,t=(0,s.normalizeUserIdentities)(t);if(e===a.IdentityEventType.LOGIN)i="login";else{if(e!==a.IdentityEventType.LOGOUT)return void(0,s.log)("MakkariSDK sendIdentityEvent:: unsupported eventType ".concat(e));i="logout",this.identity&&this.identity.mId&&(i="".concat(this.identity.mId,"/logout")),t=this.getIdentityInput()}this.callMakkariApi("".concat(l.MAKKARI_API_ENDPOINT,"/user/").concat(i),"POST",r({},t),o,n)},c.prototype.callMakkariApi=function(e,t,o,n,i){var r,a=this,l="function"==typeof n?n:d,c="function"==typeof i?i:I,n=(0,s.getEventHost)((0,E.isTestingEnv)(this.environment));if((0,s.isHouzzHost)()&&this.enableXhrTransport&&this.enablePostMethod){i={"Content-Type":"application/json; charset=utf-8"};i["x-makkari-jwt-token"]=this.authToken||(null===(r=null===(r=s._global.HZ)||void 0===r?void 0:r.ctx)||void 0===r?void 0:r.makkariToken),i["x-makkari-c2-token"]=null===(r=null===(r=s._global.HZ)||void 0===r?void 0:r.data)||void 0===r?void 0:r.CSRFToken,fetch("".concat(n).concat(e),{method:t,body:JSON.stringify(o),headers:i,keepalive:!0}).then(function(e){if(e.ok)return e.json();var t=new Error("Makkari API call failed: incorrect HTTP status code returned");throw t.statusText=e.statusText,t}).then(function(e){l(e)}).catch(function(e){S(e,0,o,a.environment),c(e.statusText,e.message)})}else if((0,s.isHouzzHost)()&&this.enableXhrTransport){var u=encodeURIComponent(JSON.stringify(o));fetch("".concat(n).concat(e,"?p=").concat(u),{method:"get",keepalive:!0}).then(function(e){if(e.ok)return e.json();var t=new Error("Makkari API call failed: incorrect HTTP status code returned");throw t.statusText=e.statusText,t}).then(function(e){l(e)}).catch(function(e){S(e,0,o,a.environment),c(e.statusText,e.message)})}else try{u=encodeURIComponent(JSON.stringify(o)),s._global.$.ajax({url:"".concat(n).concat(e,"?p=").concat(u),dataType:"jsonp",success:l,error:function(e,t,o){c(t,o)}})}catch(e){S(e,0,o,this.environment),c(e)}},o=c;function c(){(0,s.log)("MakkariSDK constructed"),this.enableXhrTransport=!1,this.enablePostMethod=!1,this.authToken="",this.environment=""}t.default=o},214:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendFallbackTracking=t.getEventHost=t.normalizeUserIdentities=t.isHouzzHost=t.getProductInfo=t.getDevice=t.uuidv4=t._global=t.log=void 0;var i=n(o(670)),l=o(924),c=n(o(304)),u=n(o(345)),r=o(27);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}t.log=function(){},t._global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},t.uuidv4=a,t.getDevice=function(){var e=i.default.getLocalStorage();try{var t=e.get(r.MAKKARI_DEVICE_STORAGE_KEY);if(t)return t;var o={deviceId:a()};return e.set(r.MAKKARI_DEVICE_STORAGE_KEY,o),o}catch(e){}},t.getProductInfo=function(){if(document.location&&document.location.hostname)return function(e){var t=e?e.split("."):[],o=t.length,n=l.RouterNSProductMap.UNKNOWN,i=l.RouterNSProductMap.UNKNOWN;if(o<2)return{product:n,productVariant:i};"www"===t[0]?n=l.RouterNSProductMap.HOUZZ:"pro"===t[0]&&(n=l.RouterNSProductMap.PRO_SOLUTIONS);var r=o-1,a=null,e=t[r],o=u.default;return(a=o[e]||0<=r-1&&o[e=t[r-1]+"."+t[r]]?o[e]:a)&&(a=c.default.countryCodeMapping(a.countryCode),i="".concat(n," ").concat(a)),{product:n,productVariant:i}}(document.location.hostname)},t.isHouzzHost=function(){var e=document.location.host.split("."),t=-1!==["www","pro"].indexOf(e[0]),e=-1!==["houzz","houzz2","stghouzz","houzzdev"].indexOf(e[1]);return t&&e},t.normalizeUserIdentities=function(e){return{user_id:e?e.customerid:null,user_name:e?e.other:null,visitor_id:e?e.other2:null}},t.getEventHost=function(e){return e?"https://evt.stghouzz.com":"https://evt.houzz.com"},t.sendFallbackTracking=function(e){}},670:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(150);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var c=(l(S,[{key:"setData",value:function(e,t,o,n){return!(!e||!t||(e[t]=o,n&&(o=Date.now(),e[t+r.CONSTS.EXPIRE_KEY]=o+1e3*Math.abs(n)),0))}},{key:"setNS",value:function(e,t,o,n){return!(!e||!n)&&(this.data[n]||(this.data[n]={}),this.setData(this.data[n],e,t,o))}},{key:"set",value:function(e,t,o){return this.setData(this.data,e,t,o)}},{key:"deleteNS",value:function(e){e&&this.data[e]&&delete this.data[e]}},{key:"getNS",value:function(e,t){return e&&t&&this.data[t]?this.getFromData(this.data[t],e):null}},{key:"getFromData",value:function(e,t){if(!e||!t)return null;var o=e[t],n=e[t+r.CONSTS.EXPIRE_KEY];return n&&Date.now()>=n?(delete e[t],delete e[t+r.CONSTS.EXPIRE_KEY],null):o}},{key:"get",value:function(e){return this.getFromData(this.data,e)}},{key:"remove",value:function(e){var t=this.namespace?this.data[this.namespace]:this.data,o=t[e];return delete t[e],delete t[e+r.CONSTS.EXPIRE_KEY],o}}]),S),u=(l(I,[{key:"get",value:function(e){var t=window.sessionStorage.getItem(e),o=window.sessionStorage.getItem(e+r.CONSTS.EXPIRE_KEY),n=null;if(o){var i=Date.now();try{if(i>=JSON.parse(o))return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),n}catch(t){return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),n}}try{n=JSON.parse(t)}catch(e){n=t}return n}},{key:"remove",value:function(e){var t=this.get(e);return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}},{key:"set",value:function(e,t,o){if(t&&"object"===n(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.sessionStorage.setItem(e,t),o&&(t=Date.now(),window.sessionStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}}]),I),s=(l(d,[{key:"isExpired",value:function(e){var t=window.localStorage.getItem(e+r.CONSTS.EXPIRE_KEY);if(t){var o=Date.now();try{if(o>=JSON.parse(t))return!0}catch(e){return!0}}}},{key:"get",value:function(e){var t=window.localStorage.getItem(e),o=null;if(this.isExpired(e))return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),o;try{o=JSON.parse(t)}catch(e){o=t}return o}},{key:"set",value:function(e,t,o){if(t&&"object"===n(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.localStorage.setItem(e,t),o&&(t=Date.now(),window.localStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}},{key:"remove",value:function(e){var t=this.get(e);return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}}]),d),o=(l(E,[{key:"verifyStorageSupport",value:function(){try{window.localStorage.setItem("hz",1),window.localStorage.removeItem("hz"),this.isLocalStorageSupported=!0}catch(e){}try{window.sessionStorage.setItem("hz",1),window.sessionStorage.removeItem("hz"),this.isSessionStorageSupported=!0}catch(e){}}},{key:"getSessionStorage",value:function(){return this.isSessionStorageSupported?(null===this.sessionStorage&&(this.sessionStorage=new u),this.sessionStorage):this.getInMemoryStorage()}},{key:"getLocalStorage",value:function(){return this.isLocalStorageSupported?(null===this.localStorage&&(this.localStorage=new s),this.localStorage):this.getInMemoryStorage()}},{key:"getInMemoryStorage",value:function(){return this.fallbackStorage}}]),new E);function E(){i(this,E),this.isSessionStorageSupported=!1,this.isLocalStorageSupported=!1,this.sessionStorage=null,this.localStorage=null,this.fallbackStorage=new c,this.verifyStorageSupport()}function d(){i(this,d)}function I(){i(this,I)}function S(){i(this,S),this.data={}}t.default=o},345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={com:{ccTLD:"us",domain:"com",locale:"en-US",countryCode:"US",countryNativeName:"United States",timeZone:"America/Los_Angeles",siteId:"101",localeId:"1001",seoLang:"en",commonAvailableInCountryCodes:["US","CA"]},"co.uk":{ccTLD:"uk",domain:"co.uk",locale:"en-GB",countryCode:"GB",countryNativeName:"United Kingdom",timeZone:"Europe/London",siteId:"102",localeId:"1002",seoLang:"en-gb",commonAvailableInCountryCodes:["GB"]},"com.au":{ccTLD:"au",domain:"com.au",locale:"en-AU",countryCode:"AU",countryNativeName:"Australia",timeZone:"Australia/ACT",siteId:"103",localeId:"1003",seoLang:"en-au",commonAvailableInCountryCodes:["AU"]},de:{ccTLD:"de",domain:"de",locale:"de-DE",countryCode:"DE",countryNativeName:"Deutschland",timeZone:"Europe/Berlin",siteId:"104",localeId:"1004",seoLang:"de",commonAvailableInCountryCodes:["DE","AT"]},fr:{ccTLD:"fr",domain:"fr",locale:"fr-FR",countryCode:"FR",countryNativeName:"France",timeZone:"Europe/Paris",siteId:"105",localeId:"1005",seoLang:"fr",commonAvailableInCountryCodes:["FR","BE"]},ru:{ccTLD:"ru",domain:"ru",locale:"ru-RU",countryCode:"RU",countryNativeName:"Россия",timeZone:"Europe/Moscow",siteId:"106",localeId:"1006",seoLang:"ru",commonAvailableInCountryCodes:["RU"]},jp:{ccTLD:"jp",domain:"jp",locale:"ja-JP",countryCode:"JP",countryNativeName:"日本",timeZone:"Asia/Tokyo",siteId:"107",localeId:"1007",seoLang:"ja",commonAvailableInCountryCodes:["JP"]},it:{ccTLD:"it",domain:"it",locale:"it-IT",countryCode:"IT",countryNativeName:"Italia",timeZone:"Europe/Rome",siteId:"108",localeId:"1008",seoLang:"it",commonAvailableInCountryCodes:["IT"]},es:{ccTLD:"es",domain:"es",locale:"es-ES",countryCode:"ES",countryNativeName:"España",timeZone:"Europe/Madrid",siteId:"109",localeId:"1009",seoLang:"es",commonAvailableInCountryCodes:["ES"]},dk:{ccTLD:"dk",domain:"dk",locale:"da-DK",countryCode:"DK",countryNativeName:"Danmark",timeZone:"Europe/Copenhagen",siteId:"110",localeId:"1010",seoLang:"da",commonAvailableInCountryCodes:["DK"]},no:{ccTLD:"no",domain:"no",locale:"nb-NO",countryCode:"NO",countryNativeName:"Norway",timeZone:"Europe/Oslo",siteId:"111",localeId:"1011",seoLang:"nb",commonAvailableInCountryCodes:["NO"]},fi:{ccTLD:"fi",domain:"fi",locale:"fi-FI",countryCode:"FI",countryNativeName:"Suomi",timeZone:"Europe/Helsinki",siteId:"112",localeId:"1012",seoLang:"fi",commonAvailableInCountryCodes:["FI"]},se:{ccTLD:"se",domain:"se",locale:"sv-SE",countryCode:"SE",countryNativeName:"Sverige",timeZone:"Europe/Stockholm",siteId:"113",localeId:"1013",seoLang:"sv",commonAvailableInCountryCodes:["SE"]},ie:{ccTLD:"ie",domain:"ie",locale:"en-IE",countryCode:"IE",countryNativeName:"Ireland",timeZone:"Europe/Dublin",siteId:"114",localeId:"1014",seoLang:"en-ie",commonAvailableInCountryCodes:["IE"]},"co.nz":{ccTLD:"nz",domain:"co.nz",locale:"en-NZ",countryCode:"NZ",countryNativeName:"New Zealand",timeZone:"Pacific/Auckland",siteId:"115",localeId:"1015",seoLang:"en-nz",commonAvailableInCountryCodes:["NZ"]},"com.sg":{ccTLD:"sg",domain:"com.sg",locale:"en-SG",countryCode:"SG",countryNativeName:"Singapore",timeZone:"Asia/Singapore",siteId:"116",localeId:"1016",seoLang:"en-sg",commonAvailableInCountryCodes:["SG"]},in:{ccTLD:"in",domain:"in",locale:"en-IN",countryCode:"IN",countryNativeName:"India",timeZone:"Asia/Calcutta",siteId:"117",localeId:"1017",seoLang:"en-in",commonAvailableInCountryCodes:["IN"]},nl:{ccTLD:"nl",domain:"nl",locale:"nl-NL",countryCode:"NL",countryNativeName:"Netherlands",timeZone:"Europe/Amsterdam",siteId:"118",localeId:"1018",seoLang:"nl",commonAvailableInCountryCodes:["NL"]},at:{ccTLD:"at",domain:"at",locale:"de-AT",countryCode:"AT",countryNativeName:"Austria",timeZone:"Europe/Vienna",siteId:"119",localeId:"1019",seoLang:"de-at",commonAvailableInCountryCodes:["AT"]}}},150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTS=void 0,t.CONSTS={EXPIRE_KEY:"_expires"}},338:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isTestingEnv=n._global=void 0,n._global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},n.isTestingEnv=function(e){var t,o=!0;return o="production"===(e=e||(null!==(t=null===(t=null===n._global||void 0===n._global?void 0:n._global.HZ)||void 0===t?void 0:t.ctx)&&void 0!==t&&t.env?n._global.HZ.ctx.env:null!==(t=null===(t=null===(t=null===n._global||void 0===n._global?void 0:n._global.HZ)||void 0===t?void 0:t.utils)||void 0===t?void 0:t.OmnilogData)&&void 0!==t&&t.environment?n._global.HZ.utils.OmnilogData.environment:""))||"prod"===e?!1:o}},144:function(e,t){void 0===(t=function(e,t){"use strict";function E(t){try{delete window[t]}catch(e){window[t]=void 0}}function d(e){e=document.getElementById(e);e&&document.getElementsByTagName("head")[0].removeChild(e)}t.exports=function(r){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],l=r,c=a.timeout||5e3,u=a.jsonpCallback||"callback",s=void 0;return new Promise(function(t,e){var o=a.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),n=u+"_"+o;window[o]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),s&&clearTimeout(s),d(n),E(o)},l+=-1===l.indexOf("?")?"?":"&";var i=document.createElement("script");i.setAttribute("src",""+l+u+"="+o),a.charset&&i.setAttribute("charset",a.charset),a.nonce&&i.setAttribute("nonce",a.nonce),a.referrerPolicy&&i.setAttribute("referrerPolicy",a.referrerPolicy),i.id=n,document.getElementsByTagName("head")[0].appendChild(i),s=setTimeout(function(){e(new Error("JSONP request to "+r+" timed out")),E(o),d(n),window[o]=function(){E(o)}},c),i.onerror=function(){e(new Error("JSONP request to "+r+" failed")),E(o),d(n),s&&clearTimeout(s)}})}}.apply(t,[t,e]))||(e.exports=t)}},i={},function e(t){var o=i[t];if(void 0!==o)return o.exports;o=i[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.exports}(658);var n,i}),HZ.utils.MakkariSDK=window.Omnilog["makkari-sdk"].default;

window.hzmr.push("makkariSDK:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End makkariSDK.js  **************/
/************* Start omnilogSessionUtils.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Omnilog=t():(e.Omnilog=e.Omnilog||{},e.Omnilog["omnilog-session-utils"]=t())}(self,()=>(()=>{"use strict";var n={924:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OmnilogError=t.DeviceType=t.OmnilogLocalStorageKey=t.RouterNSProductMap=t.IdentityEventType=t.ViewMode=t.DeviceOrientation=t.EventInitiator=t.TestBotType=t.UIEvents=t.Channel=t.ComponentOsType=t.ComponentType=t.ComponentName=t.ComponentDetailedType=t.OmnilogStatusCodes=t.OmnilogHeaders=t.OmniLoggerConst=t.OmniLoggerEventNames=void 0,(n=t.OmniLoggerEventNames||(t.OmniLoggerEventNames={})).EXPERIENCE_LOADED="Experience Loaded",n.EXPERIENCE_UNLOADED="Experience Unloaded",n.OMNILOG_EVENT="omnilog",n.TEST_REGISTERED="Tests Registered",n.SESSION_STARTED="Session Started",n.USER_ATTRIBUTE_UPDATED="User Attribute Updated",(t.OmniLoggerConst||(t.OmniLoggerConst={})).OMNILOG_TOKEN_HEADER_NAME="X-HZ-OMNILOG-TOKEN",(n=t.OmnilogHeaders||(t.OmnilogHeaders={})).EXTERNAL_SESSION_ID_HEADER="x-ol-ext-session-id",n.SESSION_ID_HEADER="x-ol-session-id",n.EXTERNAL_DEVICE_ID_HEADER="x-ol-ext-device-id",n.EXPERIENCE_ID_HEADER="x-ol-exp-id",n.EXPERIENCE_NAME_HEADER="x-ol-exp-name",n.FLOW_ID_HEADER="x-ol-flow-id",n.FLOW_NAME_HEADER="x-ol-flow-name",n.FLOW_STEP_NAME_HEADER="x-ol-step-name",n.PRODUCT_HEADER="x-ol-product",n.PRODUCT_VARIANT_HEADER="x-ol-product-variant",n.MID_HEADER="x-ol-mid",(n=t.OmnilogStatusCodes||(t.OmnilogStatusCodes={}))[n.STATUS_CODE_SUCCESS=1]="STATUS_CODE_SUCCESS",n[n.STATUS_CODE_FAILURE=-1]="STATUS_CODE_FAILURE",(n=t.ComponentDetailedType||(t.ComponentDetailedType={}))[n.C2_LEGACY_WEB=101]="C2_LEGACY_WEB",n[n.JUWKAA_ISOMORHPIC_JS_WEB=102]="JUWKAA_ISOMORHPIC_JS_WEB",n[n.SITE_DESIGNER_LEGACY_WEB=103]="SITE_DESIGNER_LEGACY_WEB",n[n.SITE_DESIGNER_ISOMORPHIC_JS_WEB=104]="SITE_DESIGNER_ISOMORPHIC_JS_WEB",n[n.IVY_LEGACY_WEB=105]="IVY_LEGACY_WEB",n[n.IVY_ISOMORPHIC_JS_WEB=106]="IVY_ISOMORPHIC_JS_WEB",n[n.CONX_LEGACY_WEB=107]="CONX_LEGACY_WEB",n[n.WINDOWS_MOBILE_APP=110]="WINDOWS_MOBILE_APP",n[n.PRO_SITES_WEB=112]="PRO_SITES_WEB",n[n.HOUZZ_PRO_CLIPPER=151]="HOUZZ_PRO_CLIPPER",n[n.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",n[n.HOUZZ_IOS_MOBILE_APP=201]="HOUZZ_IOS_MOBILE_APP",n[n.HOUZZ_ANDROID_MOBILE_APP=202]="HOUZZ_ANDROID_MOBILE_APP",n[n.HOUZZ_PRO_IOS_MOBILE_APP=251]="HOUZZ_PRO_IOS_MOBILE_APP",n[n.HOUZZ_PRO_ANDROID_MOBILE_APP=252]="HOUZZ_PRO_ANDROID_MOBILE_APP",n[n.C2_WEB_SERVER=301]="C2_WEB_SERVER",n[n.JUKWAA_WEB_SERVER=302]="JUKWAA_WEB_SERVER",n[n.GRAPHQL_SERVER=303]="GRAPHQL_SERVER",n[n.C2_SERVICE=304]="C2_SERVICE",n[n.IDENTITY_SERVICE=305]="IDENTITY_SERVICE",n[n.AD_SERVER=306]="AD_SERVER",n[n.BATCH=307]="BATCH",n[n.CONX_SERVER=308]="CONX_SERVER",n[n.PRO_SITES_WEB_SERVER=312]="PRO_SITES_WEB_SERVER",n[n.IVY_SERVICE_SERVER=315]="IVY_SERVICE_SERVER",n[n.EPN=401]="EPN",n[n.SALESFORCE=501]="SALESFORCE",n[n.BLUESHIFT=502]="BLUESHIFT",n[n.ELOQUA=503]="ELOQUA",n[n.UNKNOWN=-1]="UNKNOWN",(n=t.ComponentName||(t.ComponentName={})).JUKWAA_WEB="Jukwaa Web Client",n.PRO_SITES_WEB="Pro Site Web Client",n.SITE_DESIGNER_WEB="Site Designer Web Client",n.GRAPHQL_SERVER="Graphql Server",n.GRAPHQL_HOUZZ_PRO_SERVER="GraphQL Houzz Pro Server",n.JUKWAA_WEB_SERVER="Jukwaa Web Server",n.PRO_SITES_WEB_SERVER="Pro Site Web Server",n.SITE_DESIGNER_WEB_SERVER="Site Designer Web Server",n.IVY_SERVICE_SERVER="Ivy Service Server",n.GMAIL_CRM_CHROME_EXTENSION="Gmail CRM Chrome Extension",n.PRODUCT_CLIPPER_CHROME_EXTENSION="Product Clipper Chrome Extension",n.IMAGE_CLIPPER_CHROME_EXTENSION="Image Clipper Chrome Extension",n.HOUZZ_PRO_CLIPPER="Houzz Pro Clipper",(n=t.ComponentType||(t.ComponentType={}))[n.CLIENT_BROWSER=100]="CLIENT_BROWSER",n[n.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",n[n.SERVER_WEB=300]="SERVER_WEB",n[n.SERVER_OFFLINE=400]="SERVER_OFFLINE",n[n.SERVER_SERVICE=500]="SERVER_SERVICE",(n=t.ComponentOsType||(t.ComponentOsType={}))[n.LINUX=1]="LINUX",n[n.WINDOWS=2]="WINDOWS",n[n.OSX=3]="OSX",n[n.IOS=4]="IOS",n[n.ANDROID=5]="ANDROID",n[n.OTHER=6]="OTHER",(n=t.Channel||(t.Channel={})).DIRECT="Direct",n.EMAIL="Email",n.PAID="Paid",n.SEARCH="Search",n.SOCIAL="Social",n.PARTNER="Partner",n.INTERNAL="Internal",n.REFERRAL="Referral",n[n.UNKNOWN=100]="UNKNOWN",(n=t.UIEvents||(t.UIEvents={})).ELEMENT_CLICKED="Element Clicked",n.ELEMENT_FOCUSED="Element Focused",n.ELEMENT_BLURRED="Element Blurred",n.ELEMENT_SCROLLED="Element Scrolled",n.ELEMENT_VIEWED="Element Viewed",n.ELEMENT_EXPANDED="Element Expanded",n.ELEMENT_COLLAPSED="Element Collapsed",n.INPUT_CHANGED="Input Changed",n.MEDIA_PLAYED="Media Played",n.MEDIA_PAUSED="Media Paused",n.MEDIA_PLAY_COMPLETED="Media Play Completed",n.MEDIA_TIME_CHANGED="Media Time Changed",n.MEDIA_RESTARTED="Media Restarted",n.FORM_SUBMITTED="Form Submitted",(n=t.TestBotType||(t.TestBotType={}))[n.NONE=0]="NONE",n[n.AUTOMATION=1]="AUTOMATION",n[n.MANUAL=4]="MANUAL",n[n.BATCH=16]="BATCH",n[n.HOUZZ_STAFF=32]="HOUZZ_STAFF",n[n.ANALYTICAL_BOT=64]="ANALYTICAL_BOT",(n=t.EventInitiator||(t.EventInitiator={}))[n.USER_SERVER=0]="USER_SERVER",n[n.USER_CLIENT=1]="USER_CLIENT",n[n.APPLICATION_SERVER=2]="APPLICATION_SERVER",n[n.APPLICATION_CLIENT=3]="APPLICATION_CLIENT",n[n.PRO_AI_ASSIST_USER_SERVER=4]="PRO_AI_ASSIST_USER_SERVER",n[n.PRO_AI_ASSIST_USER_CLIENT=5]="PRO_AI_ASSIST_USER_CLIENT",n[n.PRO_AI_ASSIST_APPLICATION_SERVER=6]="PRO_AI_ASSIST_APPLICATION_SERVER",n[n.PRO_AI_ASSIST_APPLICATION_CLIENT=7]="PRO_AI_ASSIST_APPLICATION_CLIENT",(n=t.DeviceOrientation||(t.DeviceOrientation={}))[n.PORTRAIT=1]="PORTRAIT",n[n.LANDSCAPE=2]="LANDSCAPE",(n=t.ViewMode||(t.ViewMode={})).STANDALONE="Standalone",n.DEFAULT="Default",n.LIGHTBOX="Lightbox",n.QUICKVIEW="Quick View",(n=t.IdentityEventType||(t.IdentityEventType={})).LOGIN="login",n.LOGOUT="logout",n.MODIFY="modify",t.RouterNSProductMap={HOUZZ:"Houzz",PRO_SOLUTIONS:"Houzz Pro",UNKNOWN:"UNKNOWN"},(n=t.OmnilogLocalStorageKey||(t.OmnilogLocalStorageKey={})).ActiveExperience="OMNILOG_ACTIVE_EXPERIENCE",n.FlowStack="OMNILOG_FLOW_STACK",n.ParentFlow="OMNILOG_PARENT_FLOW",n.LogoutCount="OMNILOG_LOGOUT_COUNT",(n=t.DeviceType||(t.DeviceType={}))[n.NONE=0]="NONE",n[n.DESKTOP=1]="DESKTOP",n[n.TABLET=2]="TABLET",n[n.SMARTPHONE=3]="SMARTPHONE",n[n.SMART_TV=4]="SMART_TV",n[n.OTHER=5]="OTHER",(t=t.OmnilogError||(t.OmnilogError={})).INIT="omnilog.init",t.CALL_MAKKARI_API="omnilog.callMakkariApi",t.EXPERIENCE_LOADED="omnilog.experienceLoaded",t.EXPERIENCE_UNLOADED="omnilog.experienceUnLoaded",t.SEND_INTERACTION_EVENT="omnilog.sendInteractionEvent",t.SEND_OUTCOME_EVENT="omnilog.sendOutcomeEvent",t.SEND_IDENTITY_EVENT="omnilog.sendIdentityEvent",t.FLOW_STARTED="omnilog.flowStarted",t.FLOW_STEP_LOADED="omnilog.flowStepLoaded",t.FLOW_STEP_COMPLETED="omnilog.flowStepCompleted",t.FLOW_COMPLETED="omnilog.flowCompleted",t.FLOW_STEP_UNLOADED="omnilog.flowStepUnloaded",t.DUPLICATE_EXPERIENCE="omnilog.duplicate_experience",t.BUILD_CLIENT_TOKEN="omnilog.buildClientToken",t.LOG_ERROR="omnilog.log_error"},84:function(e,t,n){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTestBotType=t.getSessionId=t.getExtSessionId=void 0;function i(e){return e?{utm_source:(e=new URL(e).searchParams).get("utm_source"),utm_campaign:e.get("utm_campaign"),utm_term:e.get("utm_term"),utm_content:e.get("utm_content"),utm_medium:e.get("utm_medium"),m_refid:e.get("m_refid")}:null}function s(e){return!!(!(e=e.lastActiveTime)||e<0||isNaN(e))||Date.now()-e>r}function E(e,t,n,o){var r=Date.now(),e={sessionId:(0,S.v4)(),sessionStartTime:r,lastActiveTime:r,channel:n||R(e,t),campaign:o||f(e)};return c.default.getLocalStorage().set(g,e),e}function l(){try{var e=A();return e?(e.lastActiveTime=Date.now(),void c.default.getLocalStorage().set(g,e)):void 0}catch(e){}}var u=n(924),c=o(n(670)),S=n(614),_=o(n(851)),g="OMNILOG_SESSION",r=18e5,d=/refid=([^&]+)/,m=/-ocnt-/,I=/ptr-|ptr_|partners_/,O=/-ptr-mpl/,p={hostname:"",pathname:"",searchParams:""},R=function(e,t){var n=null,o=new URL(e).searchParams,r=t?new URL(t):p,a=r.hostname,i=r.pathname,s=r.searchParams,r=a+("/"===i?"":i),i=new RegExp(_.default.houzz).test(a);new RegExp(_.default.unknown).test(r)?n=null:new RegExp(_.default.social).test(r)?n=u.Channel.SOCIAL:new RegExp(_.default.email).test(r)?n=u.Channel.EMAIL:new RegExp(_.default.search).test(r)&&(n=u.Channel.SEARCH);a=s.toString(),r=o.toString();if(new RegExp(d).test(a)||new RegExp(d).test(r)){s="",o=a.match(d),r=r.match(d);return Array.isArray(o)&&0<o.length?s=o[1]:Array.isArray(r)&&0<r.length&&(s=r[1]),new RegExp(m).test(s)?u.Channel.SOCIAL:new RegExp(I).test(s)&&!new RegExp(O).test(s)?u.Channel.PARTNER:u.Channel.PAID}return(n===u.Channel.SEARCH||n===u.Channel.EMAIL||null===n)&&new RegExp(/\/nllc\/|source=gmail/).test(a)||new RegExp(/utm_medium=email|source=marketing_email|lsmr=Email/).test(e)?u.Channel.EMAIL:null===n?t?i?u.Channel.INTERNAL:u.Channel.REFERRAL:u.Channel.DIRECT:n},f=function(e){if(!e)return null;e=new RegExp("[?&]utm_campaign(=([^&#]*)|&|#|$)").exec(e);return e&&e[2]?e[2]:null},A=function(){return c.default.getLocalStorage().get(g)};t.getExtSessionId=function(){var e=A();return(null==e?void 0:e.sessionId)||""},t.getSessionId=function(){var e=A();return(null==e?void 0:e.sessionId)||""},t.getTestBotType=function(){if("undefined"!=typeof document){var e=document.cookie||"";return-1!==e.indexOf("tt=automation")?u.TestBotType.AUTOMATION:-1!==e.indexOf("tt=manual")?u.TestBotType.MANUAL:void 0}},t.default={OMNILOG_SESSION_STORAGE_KEY:g,SESSION_EXPIRE_IN_MS:r,isSessionTimedOut:s,computeChannel:R,computeCampaign:f,getSession:A,updateSession:function(e,t){if(e){var n=A();if(!n)return{session:E(e,t),isContinued:!1};var o=s(n),r=R(e,t),a=f(e),i=n.channel,n=n.campaign;return o&&r===u.Channel.INTERNAL?{session:E("","",i),isContinued:!0}:(o||r!==u.Channel.INTERNAL)&&(o||null!==r&&r!==i||null!==a&&a!=n)?{session:E(e,t),isContinued:!1}:void l()}},buildNewSession:E,getSessionStartEventDetails:function(e,t,n,o){var r=i(e);return a(a({session_channel:n.channel},r),{is_continued_session:o,url:e,referrer_url:t})},parseUtmQueries:i,shouldFireNewSession:function(e,t,n){if(s(e))return!0;var o=e.channel,r=e.campaign;try{var a=R(t,n);if(null!==a&&a!==o)return!0;var i=f(t);return null!==i&&i!=r}catch(e){return!1}},getExtSessionId:t.getExtSessionId,getSessionId:t.getSessionId}},670:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(150);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var E=(s(g,[{key:"setData",value:function(e,t,n,o){return!(!e||!t||(e[t]=n,o&&(n=Date.now(),e[t+a.CONSTS.EXPIRE_KEY]=n+1e3*Math.abs(o)),0))}},{key:"setNS",value:function(e,t,n,o){return!(!e||!o)&&(this.data[o]||(this.data[o]={}),this.setData(this.data[o],e,t,n))}},{key:"set",value:function(e,t,n){return this.setData(this.data,e,t,n)}},{key:"deleteNS",value:function(e){e&&this.data[e]&&delete this.data[e]}},{key:"getNS",value:function(e,t){return e&&t&&this.data[t]?this.getFromData(this.data[t],e):null}},{key:"getFromData",value:function(e,t){if(!e||!t)return null;var n=e[t],o=e[t+a.CONSTS.EXPIRE_KEY];return o&&Date.now()>=o?(delete e[t],delete e[t+a.CONSTS.EXPIRE_KEY],null):n}},{key:"get",value:function(e){return this.getFromData(this.data,e)}},{key:"remove",value:function(e){var t=this.namespace?this.data[this.namespace]:this.data,n=t[e];return delete t[e],delete t[e+a.CONSTS.EXPIRE_KEY],n}}]),g),l=(s(_,[{key:"get",value:function(e){var t=window.sessionStorage.getItem(e),n=window.sessionStorage.getItem(e+a.CONSTS.EXPIRE_KEY),o=null;if(n){var r=Date.now();try{if(r>=JSON.parse(n))return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),o}catch(t){return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),o}}try{o=JSON.parse(t)}catch(e){o=t}return o}},{key:"remove",value:function(e){var t=this.get(e);return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),t}},{key:"set",value:function(e,t,n){if(t&&"object"===o(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.sessionStorage.setItem(e,t),n&&(t=Date.now(),window.sessionStorage.setItem(e+a.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(n))),!0}}]),_),u=(s(S,[{key:"isExpired",value:function(e){var t=window.localStorage.getItem(e+a.CONSTS.EXPIRE_KEY);if(t){var n=Date.now();try{if(n>=JSON.parse(t))return!0}catch(e){return!0}}}},{key:"get",value:function(e){var t=window.localStorage.getItem(e),n=null;if(this.isExpired(e))return window.localStorage.removeItem(e),window.localStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),n;try{n=JSON.parse(t)}catch(e){n=t}return n}},{key:"set",value:function(e,t,n){if(t&&"object"===o(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.localStorage.setItem(e,t),n&&(t=Date.now(),window.localStorage.setItem(e+a.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(n))),!0}},{key:"remove",value:function(e){var t=this.get(e);return window.localStorage.removeItem(e),window.localStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),t}}]),S),n=(s(c,[{key:"verifyStorageSupport",value:function(){try{window.localStorage.setItem("hz",1),window.localStorage.removeItem("hz"),this.isLocalStorageSupported=!0}catch(e){}try{window.sessionStorage.setItem("hz",1),window.sessionStorage.removeItem("hz"),this.isSessionStorageSupported=!0}catch(e){}}},{key:"getSessionStorage",value:function(){return this.isSessionStorageSupported?(null===this.sessionStorage&&(this.sessionStorage=new l),this.sessionStorage):this.getInMemoryStorage()}},{key:"getLocalStorage",value:function(){return this.isLocalStorageSupported?(null===this.localStorage&&(this.localStorage=new u),this.localStorage):this.getInMemoryStorage()}},{key:"getInMemoryStorage",value:function(){return this.fallbackStorage}}]),new c);function c(){r(this,c),this.isSessionStorageSupported=!1,this.isLocalStorageSupported=!1,this.sessionStorage=null,this.localStorage=null,this.fallbackStorage=new E,this.verifyStorageSupport()}function S(){r(this,S)}function _(){r(this,_)}function g(){r(this,g),this.data={}}t.default=n},150:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTS=void 0,t.CONSTS={EXPIRE_KEY:"_expires"}},614:(e,t,n)=>{var o;n.r(t),n.d(t,{NIL:()=>L,parse:()=>m,stringify:()=>c,v1:()=>l,v3:()=>N,v4:()=>C,v5:()=>y,validate:()=>i,version:()=>P});var r=new Uint8Array(16);function u(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(r)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,i=function(e){return"string"==typeof e&&a.test(e)};for(var s=[],E=0;E<256;++E)s.push((E+256).toString(16).substr(1));const c=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!i(t))throw TypeError("Stringified UUID is invalid");return t};var S,_,g=0,d=0;const l=function(e,t,n){var o=t&&n||0,r=t||new Array(16),a=(e=e||{}).node||S,i=void 0!==e.clockseq?e.clockseq:_;null!=a&&null!=i||(E=e.random||(e.rng||u)(),null==a&&(a=S=[1|E[0],E[1],E[2],E[3],E[4],E[5]]),null==i&&(i=_=16383&(E[6]<<8|E[7])));var s=void 0!==e.msecs?e.msecs:Date.now(),n=void 0!==e.nsecs?e.nsecs:d+1,E=s-g+(n-d)/1e4;if(E<0&&void 0===e.clockseq&&(i=i+1&16383),1e4<=(n=(E<0||g<s)&&void 0===e.nsecs?0:n))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=s,_=i;n=(1e4*(268435455&(s+=122192928e5))+(d=n))%4294967296;r[o++]=n>>>24&255,r[o++]=n>>>16&255,r[o++]=n>>>8&255,r[o++]=255&n;s=s/4294967296*1e4&268435455;r[o++]=s>>>8&255,r[o++]=255&s,r[o++]=s>>>24&15|16,r[o++]=s>>>16&255,r[o++]=i>>>8|128,r[o++]=255&i;for(var l=0;l<6;++l)r[o+l]=a[l];return t||c(r)},m=function(e){if(!i(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function I(e,i,s){function t(e,t,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),16!==(t="string"==typeof t?m(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var r=new Uint8Array(16+e.length);if(r.set(t),r.set(e,t.length),(r=s(r))[6]=15&r[6]|i,r[8]=63&r[8]|128,n){o=o||0;for(var a=0;a<16;++a)n[o+a]=r[a];return n}return c(r)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function O(e){return 14+(e+64>>>9<<4)+1}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function R(e,t,n,o,r,a){return p((a=p(p(t,e),p(o,a)))<<r|a>>>32-r,n)}function f(e,t,n,o,r,a,i){return R(t&n|~t&o,e,t,r,a,i)}function A(e,t,n,o,r,a,i){return R(t&o|n&~o,e,t,r,a,i)}function T(e,t,n,o,r,a,i){return R(t^n^o,e,t,r,a,i)}function h(e,t,n,o,r,a,i){return R(n^(t|~o),e,t,r,a,i)}const N=I("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,o="0123456789abcdef",r=0;r<n;r+=8){var a=e[r>>5]>>>r%32&255,a=parseInt(o.charAt(a>>>4&15)+o.charAt(15&a),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[O(t)-1]=t;for(var n=1732584193,o=-271733879,r=-1732584194,a=271733878,i=0;i<e.length;i+=16){var s=n,E=o,l=r,u=a,n=f(n,o,r,a,e[i],7,-680876936),a=f(a,n,o,r,e[i+1],12,-389564586),r=f(r,a,n,o,e[i+2],17,606105819),o=f(o,r,a,n,e[i+3],22,-1044525330);n=f(n,o,r,a,e[i+4],7,-176418897),a=f(a,n,o,r,e[i+5],12,1200080426),r=f(r,a,n,o,e[i+6],17,-1473231341),o=f(o,r,a,n,e[i+7],22,-45705983),n=f(n,o,r,a,e[i+8],7,1770035416),a=f(a,n,o,r,e[i+9],12,-1958414417),r=f(r,a,n,o,e[i+10],17,-42063),o=f(o,r,a,n,e[i+11],22,-1990404162),n=f(n,o,r,a,e[i+12],7,1804603682),a=f(a,n,o,r,e[i+13],12,-40341101),r=f(r,a,n,o,e[i+14],17,-1502002290),n=A(n,o=f(o,r,a,n,e[i+15],22,1236535329),r,a,e[i+1],5,-165796510),a=A(a,n,o,r,e[i+6],9,-1069501632),r=A(r,a,n,o,e[i+11],14,643717713),o=A(o,r,a,n,e[i],20,-373897302),n=A(n,o,r,a,e[i+5],5,-701558691),a=A(a,n,o,r,e[i+10],9,38016083),r=A(r,a,n,o,e[i+15],14,-660478335),o=A(o,r,a,n,e[i+4],20,-405537848),n=A(n,o,r,a,e[i+9],5,568446438),a=A(a,n,o,r,e[i+14],9,-1019803690),r=A(r,a,n,o,e[i+3],14,-187363961),o=A(o,r,a,n,e[i+8],20,1163531501),n=A(n,o,r,a,e[i+13],5,-1444681467),a=A(a,n,o,r,e[i+2],9,-51403784),r=A(r,a,n,o,e[i+7],14,1735328473),n=T(n,o=A(o,r,a,n,e[i+12],20,-1926607734),r,a,e[i+5],4,-378558),a=T(a,n,o,r,e[i+8],11,-2022574463),r=T(r,a,n,o,e[i+11],16,1839030562),o=T(o,r,a,n,e[i+14],23,-35309556),n=T(n,o,r,a,e[i+1],4,-1530992060),a=T(a,n,o,r,e[i+4],11,1272893353),r=T(r,a,n,o,e[i+7],16,-155497632),o=T(o,r,a,n,e[i+10],23,-1094730640),n=T(n,o,r,a,e[i+13],4,681279174),a=T(a,n,o,r,e[i],11,-358537222),r=T(r,a,n,o,e[i+3],16,-722521979),o=T(o,r,a,n,e[i+6],23,76029189),n=T(n,o,r,a,e[i+9],4,-640364487),a=T(a,n,o,r,e[i+12],11,-421815835),r=T(r,a,n,o,e[i+15],16,530742520),n=h(n,o=T(o,r,a,n,e[i+2],23,-995338651),r,a,e[i],6,-198630844),a=h(a,n,o,r,e[i+7],10,1126891415),r=h(r,a,n,o,e[i+14],15,-1416354905),o=h(o,r,a,n,e[i+5],21,-57434055),n=h(n,o,r,a,e[i+12],6,1700485571),a=h(a,n,o,r,e[i+3],10,-1894986606),r=h(r,a,n,o,e[i+10],15,-1051523),o=h(o,r,a,n,e[i+1],21,-2054922799),n=h(n,o,r,a,e[i+8],6,1873313359),a=h(a,n,o,r,e[i+15],10,-30611744),r=h(r,a,n,o,e[i+6],15,-1560198380),o=h(o,r,a,n,e[i+13],21,1309151649),n=h(n,o,r,a,e[i+4],6,-145523070),a=h(a,n,o,r,e[i+11],10,-1120210379),r=h(r,a,n,o,e[i+2],15,718787259),o=h(o,r,a,n,e[i+9],21,-343485551),n=p(n,s),o=p(o,E),r=p(r,l),a=p(a,u)}return[n,o,r,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(O(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))}),C=function(e,t,n){var o=(e=e||{}).random||(e.rng||u)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return c(o)};function v(e,t){return e<<t|e>>>32-t}const y=I("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var r=0;r<o.length;++r)e.push(o.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i),E=0;E<i;++E){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*E+4*u]<<24|e[64*E+4*u+1]<<16|e[64*E+4*u+2]<<8|e[64*E+4*u+3];s[E]=l}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var c=0;c<i;++c){for(var S=new Uint32Array(80),_=0;_<16;++_)S[_]=s[c][_];for(var g=16;g<80;++g)S[g]=v(S[g-3]^S[g-8]^S[g-14]^S[g-16],1);for(var d=n[0],m=n[1],I=n[2],O=n[3],p=n[4],R=0;R<80;++R)var f=Math.floor(R/20),f=v(d,5)+function(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o}}(f,m,I,O)+p+t[f]+S[R]>>>0,p=O,O=I,I=v(m,30)>>>0,m=d,d=f;n[0]=n[0]+d>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+I>>>0,n[3]=n[3]+O>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),L="00000000-0000-0000-0000-000000000000",P=function(e){if(!i(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},851:e=>{e.exports=JSON.parse('{"unknown":"(?:(?:(?:finance|news|eurosport|sports|astrology|travel|answers|screen|weather|messenger|games|movies|cars|omg|lifestyle)\\\\.yahoo|(?:accounts|keep|support|drive|groups|developers|maps|sites)\\\\.google|maps\\\\.yandex)\\\\.com|maps\\\\.yandex\\\\.(?:ru|ua|by)|(?:shopping|match)\\\\.yahoo\\\\.net|groups\\\\.google\\\\.co\\\\.uk|n\\\\.maps\\\\.yandex\\\\.ru)","search":"(?:www\\\\.(?:google\\\\.(?:com(?:|\\\\.af|\\\\.ar|\\\\.au|\\\\.bd|\\\\.bh|\\\\.bn|\\\\.bo|\\\\.br|\\\\.co|\\\\.cu|\\\\.do|\\\\.ec|\\\\.eg|\\\\.et|\\\\.fj|\\\\.gh|\\\\.gt|\\\\.hk|\\\\.jm|\\\\.kw|\\\\.lb|\\\\.ly|\\\\.mt|\\\\.mx|\\\\.my|\\\\.ng|\\\\.ni|\\\\.np|\\\\.om|\\\\.pa|\\\\.pe|\\\\.ph|\\\\.pk|\\\\.pr|\\\\.py|\\\\.qa|\\\\.sa|\\\\.sg|\\\\.sv|\\\\.tr|\\\\.tw|\\\\.ua|\\\\.uy|\\\\.vn)|co\\\\.(?:cr|id|il|in|jp|ke|kr|ls|ma|nz|th|tz|uk|uz|ve|za|zw)|am|as|at|az|ba|be|bg|bs|by|de|dk|dz|ee|es|fi|fr|ge|gg|gr|hn|hr|hu|ie|it|je|jo|kg|kz|li|lk|lt|lu|lv|md|mn|mu|mw|nl|no|pl|pt|ro|rs|ru|rw|se|si|sk|sn|tn|tt|ae|vg|ca|cd|cat|ch|ci|cl|cm|cz)|(?:so|gigablast|dogpile|yandex|amazon|baidu|qwant|ask|bing|cnn|search)\\\\.com|yandex\\\\.(?:ru|ua|by)|goyellow\\\\.de|bing\\\\.com\\\\/images\\\\/search|startsiden\\\\.no)|google\\\\.(?:com(?:\\\\/imgres||\\\\.af|\\\\.ar|\\\\.au|\\\\.bd|\\\\.bh|\\\\.bn|\\\\.bo|\\\\.br|\\\\.co|\\\\.cu|\\\\.do|\\\\.ec|\\\\.eg|\\\\.et|\\\\.fj|\\\\.gh|\\\\.gt|\\\\.hk|\\\\.jm|\\\\.kw|\\\\.lb|\\\\.ly|\\\\.mt|\\\\.mx|\\\\.my|\\\\.ng|\\\\.ni|\\\\.np|\\\\.om|\\\\.pa|\\\\.pe|\\\\.ph|\\\\.pk|\\\\.pr|\\\\.py|\\\\.qa|\\\\.sa|\\\\.sg|\\\\.sv|\\\\.tr|\\\\.tw|\\\\.ua|\\\\.uy|\\\\.vn)|co\\\\.(?:uk\\\\/imgres|cr|id|il|in|jp|ke|kr|ls|ma|nz|th|tz|ve|za|zw|uk|uz)|ca\\\\/imgres|am|as|at|az|ba|be|bg|bs|by|de|dk|dz|ee|es|fi|fr|ge|gg|gr|hn|hr|hu|ie|it|je|jo|kg|kz|li|lk|lt|lu|lv|md|mn|mu|mw|nl|no|pl|pt|ro|rs|ru|rw|se|si|sk|sn|tt|ae|vg|tn|ca|cd|cat|ch|ci|cl|cm|cz)|(?:(?:(?:(?:imag|)es\\\\.||ar\\\\.|au\\\\.|br\\\\.|ca\\\\.|de\\\\.|dk\\\\.|fr\\\\.|hk\\\\.|in\\\\.|it\\\\.|mx\\\\.|nz\\\\.|qc\\\\.|ru\\\\.|se\\\\.|uk\\\\.|us\\\\.)search\\\\.||ca\\\\.|us\\\\.)yahoo|search\\\\.(?:nifty|aol|bt|tb\\\\.ask|avg|naver)|(?:tieba|m)\\\\.baidu|dogpile|webcrawler|yandex|amazon|lycos|lite\\\\.qwant|news\\\\.google|duckduckgo|ask|bing)\\\\.com|search\\\\.(?:(?:earthlink|ukr|daum)\\\\.net|(?:goo\\\\.ne|yahoo\\\\.co)\\\\.jp|aol\\\\.co\\\\.uk|seznam\\\\.cz)|(?:(?:|link\\\\.)2gis|(?:|go\\\\.)mail|yandex|nova\\\\.rambler)\\\\.ru|suche\\\\.(?:(?:aol|web|t\\\\-online)\\\\.de|gmx\\\\.net)|yandex\\\\.(?:ua|by)|(?:recherche\\\\.aol|lemoteur\\\\.orange)\\\\.fr|(?:cgi\\\\.search\\\\.biglobe\\\\.ne|websearch\\\\.rakuten\\\\.co)\\\\.jp|(?:so\\\\.|)m\\\\.sm\\\\.cn|ricerca\\\\.virgilio\\\\.it|meta\\\\.ua|ecosia\\\\.org|bing\\\\.com\\\\/images\\\\/search|com\\\\.google\\\\.android\\\\.googlequicksearchbox)","email":"(?:mail\\\\.(?:(?:zoho|qq|aol|yandex|google|yahoo)\\\\.com|yandex\\\\.(?:ru|kz|ua|by)|yahoo\\\\.(?:co\\\\.(?:uk|jp)|net)|ukr\\\\.net|rambler\\\\.ru)|(?:inbox(?:|\\\\.google)|email\\\\.telstra|outlook\\\\.live)\\\\.com|webmail\\\\.(?:(?:iinet\\\\.net|optusnet\\\\.com)\\\\.au|freenet\\\\.de)|(?:e|touch|click)\\\\.mail\\\\.ru|email\\\\.seznam\\\\.cz|orange\\\\.fr\\\\/webmail|com\\\\.google\\\\.android\\\\.gm)","paid":"(?:(?:(?:www\\\\.||partner\\\\.)googleadservices|paid\\\\.outbrain|imasdk\\\\.googleapis|tpc\\\\.googlesyndication)\\\\.com|googleads\\\\.g\\\\.doubleclick\\\\.net)","social":"(?:pinterest\\\\.(?:com(?:|\\\\.au|\\\\.mx)|co\\\\.(?:uk|kr)|fr|de|es|ru|it|jp|pt|ph|at|nz|se|dk|ca|cl|ch)|(?:(?:|m\\\\.|l\\\\.|lm\\\\.)facebook|(?:|l\\\\.)instagram|(?:m|away)\\\\.vk|github|quora|vk|twitter|web\\\\.skype|linkedin|getpocket|douban|youtube|reddit|t\\\\.umblr)\\\\.com|com\\\\.(?:(?:twitter|instagram|linkedin)\\\\.android|pinterest|google\\\\.android\\\\.talk|facebook\\\\.katana|slack)|forums\\\\.whirlpool\\\\.net\\\\.au|ok\\\\.ru|t\\\\.co|lnkd\\\\.in|disq\\\\.us|youtu\\\\.be|org\\\\.telegram\\\\.messenger)","houzz":"(?:houzz\\\\.(?:com(?:|\\\\.au|\\\\.sg)|co\\\\.(?:uk|nz)|de|fr|ru|jp|it|es|dk|se|ie|in)|(?:gardenweb|checkout\\\\.stripe)\\\\.com)"}')}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;t=o[e]={exports:{}};return n[e].call(t.exports,t,t.exports,r),t.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(84)})()),HZ.utils.OmnilogSessionUtils=window.Omnilog["omnilog-session-utils"].default;

window.hzmr.push("omnilogSessionUtils:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End omnilogSessionUtils.js  **************/
/************* Start browserStorageUtils.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["browser-storage"]=t():(e.Omnilog=e.Omnilog||{},e.Omnilog["browser-storage"]=t())}(window,function(){return r={},n.m=o={1:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(2);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var u=(s(g,[{key:"setData",value:function(e,t,o,r){return!(!e||!t||(e[t]=o,r&&(o=Date.now(),e[t+a.CONSTS.EXPIRE_KEY]=o+1e3*Math.abs(r)),0))}},{key:"setNS",value:function(e,t,o,r){return!(!e||!r)&&(this.data[r]||(this.data[r]={}),this.setData(this.data[r],e,t,o))}},{key:"set",value:function(e,t,o){return this.setData(this.data,e,t,o)}},{key:"deleteNS",value:function(e){e&&this.data[e]&&delete this.data[e]}},{key:"getNS",value:function(e,t){return e&&t&&this.data[t]?this.getFromData(this.data[t],e):null}},{key:"getFromData",value:function(e,t){if(!e||!t)return null;var o=e[t],r=e[t+a.CONSTS.EXPIRE_KEY];return r&&Date.now()>=r?(delete e[t],delete e[t+a.CONSTS.EXPIRE_KEY],null):o}},{key:"get",value:function(e){return this.getFromData(this.data,e)}},{key:"remove",value:function(e){var t=this.namespace?this.data[this.namespace]:this.data,o=t[e];return delete t[e],delete t[e+a.CONSTS.EXPIRE_KEY],o}}]),g),l=(s(d,[{key:"get",value:function(e){var t=window.sessionStorage.getItem(e),o=window.sessionStorage.getItem(e+a.CONSTS.EXPIRE_KEY),r=null;if(o){var n=Date.now();try{if(n>=JSON.parse(o))return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),r}catch(t){return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),r}}try{r=JSON.parse(t)}catch(e){r=t}return r}},{key:"remove",value:function(e){var t=this.get(e);return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),t}},{key:"set",value:function(e,t,o){if(t&&"object"===r(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.sessionStorage.setItem(e,t),o&&(t=Date.now(),window.sessionStorage.setItem(e+a.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}}]),d),c=(s(f,[{key:"isExpired",value:function(e){var t=window.localStorage.getItem(e+a.CONSTS.EXPIRE_KEY);if(t){var o=Date.now();try{if(o>=JSON.parse(t))return!0}catch(e){return!0}}}},{key:"get",value:function(e){var t=window.localStorage.getItem(e),o=null;if(this.isExpired(e))return window.localStorage.removeItem(e),window.localStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),o;try{o=JSON.parse(t)}catch(e){o=t}return o}},{key:"set",value:function(e,t,o){if(t&&"object"===r(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.localStorage.setItem(e,t),o&&(t=Date.now(),window.localStorage.setItem(e+a.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}},{key:"remove",value:function(e){var t=this.get(e);return window.localStorage.removeItem(e),window.localStorage.removeItem(e+a.CONSTS.EXPIRE_KEY),t}}]),f),o=(s(S,[{key:"verifyStorageSupport",value:function(){try{window.localStorage.setItem("hz",1),window.localStorage.removeItem("hz"),this.isLocalStorageSupported=!0}catch(e){}try{window.sessionStorage.setItem("hz",1),window.sessionStorage.removeItem("hz"),this.isSessionStorageSupported=!0}catch(e){}}},{key:"getSessionStorage",value:function(){return this.isSessionStorageSupported?(null===this.sessionStorage&&(this.sessionStorage=new l),this.sessionStorage):this.getInMemoryStorage()}},{key:"getLocalStorage",value:function(){return this.isLocalStorageSupported?(null===this.localStorage&&(this.localStorage=new c),this.localStorage):this.getInMemoryStorage()}},{key:"getInMemoryStorage",value:function(){return this.fallbackStorage}}]),new S);function S(){n(this,S),this.isSessionStorageSupported=!1,this.isLocalStorageSupported=!1,this.sessionStorage=null,this.localStorage=null,this.fallbackStorage=new u,this.verifyStorageSupport()}function f(){n(this,f)}function d(){n(this,d)}function g(){n(this,g),this.data={}}t.default=o},19:function(e,t,o){e.exports=o(1)},2:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTS=void 0,t.CONSTS={EXPIRE_KEY:"_expires"}}},n.c=r,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19);function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,r}),HZ.utils.BrowserStorageUtils=window.Omnilog["browser-storage"];

window.hzmr.push("browserStorageUtils:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End browserStorageUtils.js  **************/
/************* Start omnilogTrackingUtils.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Omnilog=t():(e.Omnilog=e.Omnilog||{},e.Omnilog["omnilog-tracking-utils"]=t())}(self,()=>(()=>{"use strict";var n={642:function(e,t,o){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var o={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]]);return o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});function a(e,t){return"function"!=typeof(null==e?void 0:e.getAttribute)||(t.position=void 0!==t.position?t.position:function(e,t){for(var o=0;o<t.length;o++){var n=parseInt((null==e?void 0:e.getAttribute(t[o]))||"",10);if(!isNaN(n))return n}}(e,["posId","data-posid","data-pos-id"]),t.elementType=t.elementType||e.getAttribute("role")||e.nodeName||void 0,t.elementLabel=t.elementLabel||e.getAttribute("label")||e.getAttribute("aria-label")||void 0,t.entityType=t.entityType||e.getAttribute("entityType")||e.getAttribute("data-entity-type")||void 0,t.entityId=t.entityId||e.getAttribute("objId")||e.getAttribute("data-objid")||e.getAttribute("entityId")||e.getAttribute("data-entity-id")||void 0,t.campaignId=t.campaignId||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||void 0,t.campaignToken=t.campaignToken||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||e.getAttribute("campaignToken")||e.getAttribute("data-campaign-token")||void 0,t.creativeId=t.creativeId||e.getAttribute("creativeId")||e.getAttribute("data-creative-id")||void 0,t.section=t.section||e.getAttribute("section")||e.getAttribute("data-section")||void 0,t.component=t.component||e.getAttribute("component")||e.getAttribute("data-component")||void 0,t.compId=t.compId||e.getAttribute("compId")||e.getAttribute("data-compid")||void 0,t.l1Section=t.section||e.getAttribute("data-section")||void 0,t.l2Container=t.l2Container||t.container||e.getAttribute("data-container")||void 0,t.l3Component=t.component||e.getAttribute("data-component")||void 0,t.cta=t.cta||e.getAttribute("data-cta")||void 0,t.extraInfo=t.extraInfo||e.getAttribute("data-extra-info")||void 0),t}function E(){return r.default.getLocalStorage()}var c=o(924),r=i(o(670)),u=o(304),s="persisted_evt_src",d="transient_evt_src",I={trackingInfo:null,eventSource:null},S=function(o){return o?(Object.keys(o).forEach(function(e){var t=o[e];return t&&"object"==typeof t&&S(t)||!t&&delete o[e]}),o):{}},_={setEventSource:function(e){try{var t,o,n,i,r,a=E();a&&e&&"object"==typeof e&&(t=e.experience,o=e.parentFlow,n=e.activeFlow,i=l(e,["experience","parentFlow","activeFlow"]),r={experience:t,parentFlow:o,activeFlow:n},a.set(d,i,10),a.set(s,r))}catch(e){}},updateEventSource:function(e){var t;e&&(t=_.getEventSource()||{},_.setEventSource(Object.assign({},t,e)))},getEventSource:function(){var e=E(),t=e.get(s)||{},e=e.get(d)||{},e=n(n({},t),e);return S(e)},getEventSourceFromTargetElement:function(e,t){return e?a(e,t):{}},collectEventSourceFromDOM:function(e){var t={};if(!e)return t;try{for(var o=e;o;)t=o?a(o,t):t,o=o.parentNode}catch(e){}return!t.component&&t.compId&&(t.component=t.compId),t},getTrackingInfoAndSetEventSource:function(e,r){if(!e)return I;var t=function(e){var t;if("function"!=typeof(null==e?void 0:e.getAttribute))return I;var o={compId:null,posId:null,scopeId:null,objId:null,anchorText:null,eventType:r||c.UIEvents.ELEMENT_CLICKED,hasTrackMe:!1},n={};try{for(var i=e;i;)o.compId=o.compId||i.getAttribute("compId")||i.getAttribute("data-compid"),o.scopeId=o.scopeId||i.getAttribute("scopeId")||i.getAttribute("data-scopeid"),o.objId=o.objId||i.getAttribute("objId")||i.getAttribute("data-objid"),o.posId=o.posId||i.getAttribute("posId")||i.getAttribute("data-posid"),o.anchorText=o.anchorText||(null===(t=null==i?void 0:i.innerText)||void 0===t?void 0:t.replace(/[\s:]/g,"").substring(0,30)),o.hasTrackMe=o.hasTrackMe||i.classList.contains("hz-track-me")||i.classList.contains("trackMe"),o.eventType=o.eventType||i.getAttribute("data-event-name")||i.getAttribute("data-event-type"),n=a(i,n),i=i.parentElement;return o.eventType&&Object.values(c.UIEvents).includes(o.eventType),{trackingInfo:o,eventSource:n}}catch(e){return I}}(e)||{},o=t.trackingInfo,e=t.eventSource,t=void 0===e?{}:e;if(o&&t){e=u.ExperienceUtils.getExperience()||null;e&&(t.experience=e);e=u.FlowUtils.getParentFlow();e&&(t.parentFlow=e);e=u.FlowUtils.getActiveFlow();return e&&(t.activeFlow=e),_.setEventSource(t),{trackingInfo:o,eventSource:t}}return I}};t.default=_},924:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.OmnilogError=t.DeviceType=t.OmnilogLocalStorageKey=t.RouterNSProductMap=t.IdentityEventType=t.ViewMode=t.DeviceOrientation=t.EventInitiator=t.TestBotType=t.UIEvents=t.Channel=t.ComponentOsType=t.ComponentType=t.ComponentName=t.ComponentDetailedType=t.OmnilogStatusCodes=t.OmnilogHeaders=t.OmniLoggerConst=t.OmniLoggerEventNames=void 0,(o=t.OmniLoggerEventNames||(t.OmniLoggerEventNames={})).EXPERIENCE_LOADED="Experience Loaded",o.EXPERIENCE_UNLOADED="Experience Unloaded",o.OMNILOG_EVENT="omnilog",o.TEST_REGISTERED="Tests Registered",o.SESSION_STARTED="Session Started",o.USER_ATTRIBUTE_UPDATED="User Attribute Updated",(t.OmniLoggerConst||(t.OmniLoggerConst={})).OMNILOG_TOKEN_HEADER_NAME="X-HZ-OMNILOG-TOKEN",(o=t.OmnilogHeaders||(t.OmnilogHeaders={})).EXTERNAL_SESSION_ID_HEADER="x-ol-ext-session-id",o.SESSION_ID_HEADER="x-ol-session-id",o.EXTERNAL_DEVICE_ID_HEADER="x-ol-ext-device-id",o.EXPERIENCE_ID_HEADER="x-ol-exp-id",o.EXPERIENCE_NAME_HEADER="x-ol-exp-name",o.FLOW_ID_HEADER="x-ol-flow-id",o.FLOW_NAME_HEADER="x-ol-flow-name",o.FLOW_STEP_NAME_HEADER="x-ol-step-name",o.PRODUCT_HEADER="x-ol-product",o.PRODUCT_VARIANT_HEADER="x-ol-product-variant",o.MID_HEADER="x-ol-mid",(o=t.OmnilogStatusCodes||(t.OmnilogStatusCodes={}))[o.STATUS_CODE_SUCCESS=1]="STATUS_CODE_SUCCESS",o[o.STATUS_CODE_FAILURE=-1]="STATUS_CODE_FAILURE",(o=t.ComponentDetailedType||(t.ComponentDetailedType={}))[o.C2_LEGACY_WEB=101]="C2_LEGACY_WEB",o[o.JUWKAA_ISOMORHPIC_JS_WEB=102]="JUWKAA_ISOMORHPIC_JS_WEB",o[o.SITE_DESIGNER_LEGACY_WEB=103]="SITE_DESIGNER_LEGACY_WEB",o[o.SITE_DESIGNER_ISOMORPHIC_JS_WEB=104]="SITE_DESIGNER_ISOMORPHIC_JS_WEB",o[o.IVY_LEGACY_WEB=105]="IVY_LEGACY_WEB",o[o.IVY_ISOMORPHIC_JS_WEB=106]="IVY_ISOMORPHIC_JS_WEB",o[o.CONX_LEGACY_WEB=107]="CONX_LEGACY_WEB",o[o.WINDOWS_MOBILE_APP=110]="WINDOWS_MOBILE_APP",o[o.PRO_SITES_WEB=112]="PRO_SITES_WEB",o[o.HOUZZ_PRO_CLIPPER=151]="HOUZZ_PRO_CLIPPER",o[o.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",o[o.HOUZZ_IOS_MOBILE_APP=201]="HOUZZ_IOS_MOBILE_APP",o[o.HOUZZ_ANDROID_MOBILE_APP=202]="HOUZZ_ANDROID_MOBILE_APP",o[o.HOUZZ_PRO_IOS_MOBILE_APP=251]="HOUZZ_PRO_IOS_MOBILE_APP",o[o.HOUZZ_PRO_ANDROID_MOBILE_APP=252]="HOUZZ_PRO_ANDROID_MOBILE_APP",o[o.C2_WEB_SERVER=301]="C2_WEB_SERVER",o[o.JUKWAA_WEB_SERVER=302]="JUKWAA_WEB_SERVER",o[o.GRAPHQL_SERVER=303]="GRAPHQL_SERVER",o[o.C2_SERVICE=304]="C2_SERVICE",o[o.IDENTITY_SERVICE=305]="IDENTITY_SERVICE",o[o.AD_SERVER=306]="AD_SERVER",o[o.BATCH=307]="BATCH",o[o.CONX_SERVER=308]="CONX_SERVER",o[o.PRO_SITES_WEB_SERVER=312]="PRO_SITES_WEB_SERVER",o[o.IVY_SERVICE_SERVER=315]="IVY_SERVICE_SERVER",o[o.EPN=401]="EPN",o[o.SALESFORCE=501]="SALESFORCE",o[o.BLUESHIFT=502]="BLUESHIFT",o[o.ELOQUA=503]="ELOQUA",o[o.UNKNOWN=-1]="UNKNOWN",(o=t.ComponentName||(t.ComponentName={})).JUKWAA_WEB="Jukwaa Web Client",o.PRO_SITES_WEB="Pro Site Web Client",o.SITE_DESIGNER_WEB="Site Designer Web Client",o.GRAPHQL_SERVER="Graphql Server",o.GRAPHQL_HOUZZ_PRO_SERVER="GraphQL Houzz Pro Server",o.JUKWAA_WEB_SERVER="Jukwaa Web Server",o.PRO_SITES_WEB_SERVER="Pro Site Web Server",o.SITE_DESIGNER_WEB_SERVER="Site Designer Web Server",o.IVY_SERVICE_SERVER="Ivy Service Server",o.GMAIL_CRM_CHROME_EXTENSION="Gmail CRM Chrome Extension",o.PRODUCT_CLIPPER_CHROME_EXTENSION="Product Clipper Chrome Extension",o.IMAGE_CLIPPER_CHROME_EXTENSION="Image Clipper Chrome Extension",o.HOUZZ_PRO_CLIPPER="Houzz Pro Clipper",(o=t.ComponentType||(t.ComponentType={}))[o.CLIENT_BROWSER=100]="CLIENT_BROWSER",o[o.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",o[o.SERVER_WEB=300]="SERVER_WEB",o[o.SERVER_OFFLINE=400]="SERVER_OFFLINE",o[o.SERVER_SERVICE=500]="SERVER_SERVICE",(o=t.ComponentOsType||(t.ComponentOsType={}))[o.LINUX=1]="LINUX",o[o.WINDOWS=2]="WINDOWS",o[o.OSX=3]="OSX",o[o.IOS=4]="IOS",o[o.ANDROID=5]="ANDROID",o[o.OTHER=6]="OTHER",(o=t.Channel||(t.Channel={})).DIRECT="Direct",o.EMAIL="Email",o.PAID="Paid",o.SEARCH="Search",o.SOCIAL="Social",o.PARTNER="Partner",o.INTERNAL="Internal",o.REFERRAL="Referral",o[o.UNKNOWN=100]="UNKNOWN",(o=t.UIEvents||(t.UIEvents={})).ELEMENT_CLICKED="Element Clicked",o.ELEMENT_FOCUSED="Element Focused",o.ELEMENT_BLURRED="Element Blurred",o.ELEMENT_SCROLLED="Element Scrolled",o.ELEMENT_VIEWED="Element Viewed",o.ELEMENT_EXPANDED="Element Expanded",o.ELEMENT_COLLAPSED="Element Collapsed",o.INPUT_CHANGED="Input Changed",o.MEDIA_PLAYED="Media Played",o.MEDIA_PAUSED="Media Paused",o.MEDIA_PLAY_COMPLETED="Media Play Completed",o.MEDIA_TIME_CHANGED="Media Time Changed",o.MEDIA_RESTARTED="Media Restarted",o.FORM_SUBMITTED="Form Submitted",(o=t.TestBotType||(t.TestBotType={}))[o.NONE=0]="NONE",o[o.AUTOMATION=1]="AUTOMATION",o[o.MANUAL=4]="MANUAL",o[o.BATCH=16]="BATCH",o[o.HOUZZ_STAFF=32]="HOUZZ_STAFF",o[o.ANALYTICAL_BOT=64]="ANALYTICAL_BOT",(o=t.EventInitiator||(t.EventInitiator={}))[o.USER_SERVER=0]="USER_SERVER",o[o.USER_CLIENT=1]="USER_CLIENT",o[o.APPLICATION_SERVER=2]="APPLICATION_SERVER",o[o.APPLICATION_CLIENT=3]="APPLICATION_CLIENT",o[o.PRO_AI_ASSIST_USER_SERVER=4]="PRO_AI_ASSIST_USER_SERVER",o[o.PRO_AI_ASSIST_USER_CLIENT=5]="PRO_AI_ASSIST_USER_CLIENT",o[o.PRO_AI_ASSIST_APPLICATION_SERVER=6]="PRO_AI_ASSIST_APPLICATION_SERVER",o[o.PRO_AI_ASSIST_APPLICATION_CLIENT=7]="PRO_AI_ASSIST_APPLICATION_CLIENT",(o=t.DeviceOrientation||(t.DeviceOrientation={}))[o.PORTRAIT=1]="PORTRAIT",o[o.LANDSCAPE=2]="LANDSCAPE",(o=t.ViewMode||(t.ViewMode={})).STANDALONE="Standalone",o.DEFAULT="Default",o.LIGHTBOX="Lightbox",o.QUICKVIEW="Quick View",(o=t.IdentityEventType||(t.IdentityEventType={})).LOGIN="login",o.LOGOUT="logout",o.MODIFY="modify",t.RouterNSProductMap={HOUZZ:"Houzz",PRO_SOLUTIONS:"Houzz Pro",UNKNOWN:"UNKNOWN"},(o=t.OmnilogLocalStorageKey||(t.OmnilogLocalStorageKey={})).ActiveExperience="OMNILOG_ACTIVE_EXPERIENCE",o.FlowStack="OMNILOG_FLOW_STACK",o.ParentFlow="OMNILOG_PARENT_FLOW",o.LogoutCount="OMNILOG_LOGOUT_COUNT",(o=t.DeviceType||(t.DeviceType={}))[o.NONE=0]="NONE",o[o.DESKTOP=1]="DESKTOP",o[o.TABLET=2]="TABLET",o[o.SMARTPHONE=3]="SMARTPHONE",o[o.SMART_TV=4]="SMART_TV",o[o.OTHER=5]="OTHER",(t=t.OmnilogError||(t.OmnilogError={})).INIT="omnilog.init",t.CALL_MAKKARI_API="omnilog.callMakkariApi",t.EXPERIENCE_LOADED="omnilog.experienceLoaded",t.EXPERIENCE_UNLOADED="omnilog.experienceUnLoaded",t.SEND_INTERACTION_EVENT="omnilog.sendInteractionEvent",t.SEND_OUTCOME_EVENT="omnilog.sendOutcomeEvent",t.SEND_IDENTITY_EVENT="omnilog.sendIdentityEvent",t.FLOW_STARTED="omnilog.flowStarted",t.FLOW_STEP_LOADED="omnilog.flowStepLoaded",t.FLOW_STEP_COMPLETED="omnilog.flowStepCompleted",t.FLOW_COMPLETED="omnilog.flowCompleted",t.FLOW_STEP_UNLOADED="omnilog.flowStepUnloaded",t.DUPLICATE_EXPERIENCE="omnilog.duplicate_experience",t.BUILD_CLIENT_TOKEN="omnilog.buildClientToken",t.LOG_ERROR="omnilog.log_error"},304:function(e,i,t){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.IdentityUtils=i.UserAttributeUtils=i.ExperienceUtils=i.FlowUtils=void 0;var r=t(924),a=n(t(670)),l=t(214),E=n(t(345)),t=n(t(642));i.FlowUtils={init:function(){i.FlowUtils.setFlowStack([])},getStorage:function(){return a.default.getSessionStorage()},getParentFlow:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.ParentFlow)||null},setParentFlow:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ParentFlow,e)},getFlowStack:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.FlowStack)||[]},setFlowStack:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.FlowStack,e)},pushToFlowStack:function(e){var t=i.FlowUtils.getFlowStack()||[];t.unshift(e),i.FlowUtils.setFlowStack(t)},popFlowStack:function(){var e=i.FlowUtils.getFlowStack()||[],t=e.shift();return i.FlowUtils.setFlowStack(e),t},resetFlows:function(){i.FlowUtils.setFlowStack([]),i.FlowUtils.setParentFlow(null)},getActiveFlow:function(){var e=i.FlowUtils.getFlowStack();return 0<(null==e?void 0:e.length)?e[0]:null},updateActiveFlow:function(e,t){var o;0!==i.FlowUtils.getFlowStack().length&&((o=i.FlowUtils.popFlowStack())&&(o[e]=t),i.FlowUtils.pushToFlowStack(o))}},i.ExperienceUtils={getStorage:function(){return a.default.getSessionStorage()},setActiveExperience:function(e){var t=i.ExperienceUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ActiveExperience,e)},getExperience:function(){return i.ExperienceUtils.getStorage().get(r.OmnilogLocalStorageKey.ActiveExperience)}},i.UserAttributeUtils={getSetUaDetails:function(e,t,o){if(e&&t)return{user_attribute_set:JSON.stringify([{name:e,value:t,expiration:o||null}])}},getUnsetUaDetails:function(e){if(e)return{user_attribute_unset:JSON.stringify([e])}}},i.IdentityUtils={getLogoutCount:function(){return parseInt(a.default.getLocalStorage().get(r.OmnilogLocalStorageKey.LogoutCount),10)||0},updateLogoutCount:function(){a.default.getLocalStorage().set(r.OmnilogLocalStorageKey.LogoutCount,i.IdentityUtils.getLogoutCount()+1)},getClientIdModifier:function(){var e=i.IdentityUtils.getLogoutCount();if(!e)return null;var t="".concat(e);if(e<1e3)for(var o=4-t.length,n=0;n<o;n++)t="0".concat(t);return t}};var c=o(o({getProductInfo:function(e,t){var o=c.getProductInfoByRoutingDescriptor(t)||{},n=o.product,t=o.productVariant,o=e&&(0,l.getProductInfo)()||{},e=o.product,o=o.productVariant;return{product:n||e||r.RouterNSProductMap.UNKNOWN,productVariant:t||o||r.RouterNSProductMap.UNKNOWN}},getClientEventTokenFromRequestHeaders:function(e){var t=null;return e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]&&((t={}).experienceId=e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER],t.experienceName=e[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER],t.externalDeviceId=e[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER],t.externalSessionId=e[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER],t.sessionId=e[r.OmnilogHeaders.SESSION_ID_HEADER],t.flowId=e[r.OmnilogHeaders.FLOW_ID_HEADER],t.flowName=e[r.OmnilogHeaders.FLOW_NAME_HEADER],t.stepName=e[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER],t.product=e[r.OmnilogHeaders.PRODUCT_HEADER],t.productVariant=e[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER],t.mid=e[r.OmnilogHeaders.MID_HEADER]),t},getInfoFromClientToken:function(e){if(!e)return{};var t=e.experienceId,o=e.experienceName,n=e.flowId,i=e.flowName,r=e.stepName,a=e.flowStep;return{experience:{experienceInstanceId:t,experienceName:o,product:e.product,productVariant:e.productVariant},activeFlow:{flowId:n,flowName:i,stepName:r,flowStep:a},session:{sessionId:e.sessionId,externalSessionId:e.externalSessionId}}},buildClientTokenHeader:function(e){if(!e)return null;var t={};return e.experienceName&&(t[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER]=e.experienceName),e.experienceId&&(t[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]=e.experienceId),e.externalDeviceId&&(t[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER]=e.externalDeviceId),e.externalSessionId&&(t[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER]=e.externalSessionId),e.sessionId&&(t[r.OmnilogHeaders.SESSION_ID_HEADER]=e.sessionId),e.flowId&&(t[r.OmnilogHeaders.FLOW_ID_HEADER]=e.flowId),e.flowName&&(t[r.OmnilogHeaders.FLOW_NAME_HEADER]=e.flowName),e.stepName&&(t[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER]=e.stepName),e.product&&(t[r.OmnilogHeaders.PRODUCT_HEADER]=e.product),e.productVariant&&(t[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER]=e.productVariant),e.mid&&(t[r.OmnilogHeaders.MID_HEADER]=e.mid),t}},t.default),{FlowUtils:i.FlowUtils,ExperienceUtils:i.ExperienceUtils,UserAttributeUtils:i.UserAttributeUtils,IdentityUtils:i.IdentityUtils,getTestRegisteredEventDetails:function(e){return void 0===e&&(e={}),{test_selections:JSON.stringify(e)}},isNull:function(e){return null==e},countryCodeMapping:function(e){return e===E.default["co.uk"].countryCode?"UK":e},getProductInfoByRoutingDescriptor:function(e){var t=e||{},o=t.namespace,e=void 0===o?"":o,o=t.siteName,t=void 0===o?"":o,o=r.RouterNSProductMap[e];if(!o)return null;e=c.countryCodeMapping(t.replace("".concat(e,"_"),""));return e?{product:o,productVariant:"".concat(o," ").concat(e)}:null},stringifyIfExist:function(e){return c.isNull(e)?e:JSON.stringify(e)},getViewPortDimensions:function(){var e=document.documentElement||{};return{viewportWidth:Math.max(e.clientWidth||0,window.innerWidth||0)||null,viewportHeight:Math.max(e.clientHeight||0,window.innerHeight||0)||null}}});i.default=c},27:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LOGGER_NAMESPACE=t.MAKKARI_API_ENDPOINT=t.MAKKARI_DEVICE_STORAGE_KEY=void 0,t.MAKKARI_DEVICE_STORAGE_KEY="makkari_device",t.MAKKARI_API_ENDPOINT="/j/cdp-api",t.LOGGER_NAMESPACE="makkariDebug"},214:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendFallbackTracking=t.getEventHost=t.normalizeUserIdentities=t.isHouzzHost=t.getProductInfo=t.getDevice=t.uuidv4=t._global=t.log=void 0;var i=n(o(670)),l=o(924),E=n(o(304)),c=n(o(345)),r=o(27);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}t.log=function(){},t._global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},t.uuidv4=a,t.getDevice=function(){var e=i.default.getLocalStorage();try{var t=e.get(r.MAKKARI_DEVICE_STORAGE_KEY);if(t)return t;var o={deviceId:a()};return e.set(r.MAKKARI_DEVICE_STORAGE_KEY,o),o}catch(e){}},t.getProductInfo=function(){if(document.location&&document.location.hostname)return function(e){var t=e?e.split("."):[],o=t.length,n=l.RouterNSProductMap.UNKNOWN,i=l.RouterNSProductMap.UNKNOWN;if(o<2)return{product:n,productVariant:i};"www"===t[0]?n=l.RouterNSProductMap.HOUZZ:"pro"===t[0]&&(n=l.RouterNSProductMap.PRO_SOLUTIONS);var r=o-1,a=null,e=t[r],o=c.default;return(a=o[e]||0<=r-1&&o[e=t[r-1]+"."+t[r]]?o[e]:a)&&(a=E.default.countryCodeMapping(a.countryCode),i="".concat(n," ").concat(a)),{product:n,productVariant:i}}(document.location.hostname)},t.isHouzzHost=function(){var e=document.location.host.split("."),t=-1!==["www","pro"].indexOf(e[0]),e=-1!==["houzz","houzz2","stghouzz","houzzdev"].indexOf(e[1]);return t&&e},t.normalizeUserIdentities=function(e){return{user_id:e?e.customerid:null,user_name:e?e.other:null,visitor_id:e?e.other2:null}},t.getEventHost=function(e){return e?"https://evt.stghouzz.com":"https://evt.houzz.com"},t.sendFallbackTracking=function(e){}},670:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(150);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var E=(l(S,[{key:"setData",value:function(e,t,o,n){return!(!e||!t||(e[t]=o,n&&(o=Date.now(),e[t+r.CONSTS.EXPIRE_KEY]=o+1e3*Math.abs(n)),0))}},{key:"setNS",value:function(e,t,o,n){return!(!e||!n)&&(this.data[n]||(this.data[n]={}),this.setData(this.data[n],e,t,o))}},{key:"set",value:function(e,t,o){return this.setData(this.data,e,t,o)}},{key:"deleteNS",value:function(e){e&&this.data[e]&&delete this.data[e]}},{key:"getNS",value:function(e,t){return e&&t&&this.data[t]?this.getFromData(this.data[t],e):null}},{key:"getFromData",value:function(e,t){if(!e||!t)return null;var o=e[t],n=e[t+r.CONSTS.EXPIRE_KEY];return n&&Date.now()>=n?(delete e[t],delete e[t+r.CONSTS.EXPIRE_KEY],null):o}},{key:"get",value:function(e){return this.getFromData(this.data,e)}},{key:"remove",value:function(e){var t=this.namespace?this.data[this.namespace]:this.data,o=t[e];return delete t[e],delete t[e+r.CONSTS.EXPIRE_KEY],o}}]),S),c=(l(I,[{key:"get",value:function(e){var t=window.sessionStorage.getItem(e),o=window.sessionStorage.getItem(e+r.CONSTS.EXPIRE_KEY),n=null;if(o){var i=Date.now();try{if(i>=JSON.parse(o))return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),n}catch(t){return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),n}}try{n=JSON.parse(t)}catch(e){n=t}return n}},{key:"remove",value:function(e){var t=this.get(e);return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}},{key:"set",value:function(e,t,o){if(t&&"object"===n(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.sessionStorage.setItem(e,t),o&&(t=Date.now(),window.sessionStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}}]),I),u=(l(d,[{key:"isExpired",value:function(e){var t=window.localStorage.getItem(e+r.CONSTS.EXPIRE_KEY);if(t){var o=Date.now();try{if(o>=JSON.parse(t))return!0}catch(e){return!0}}}},{key:"get",value:function(e){var t=window.localStorage.getItem(e),o=null;if(this.isExpired(e))return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),o;try{o=JSON.parse(t)}catch(e){o=t}return o}},{key:"set",value:function(e,t,o){if(t&&"object"===n(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.localStorage.setItem(e,t),o&&(t=Date.now(),window.localStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(o))),!0}},{key:"remove",value:function(e){var t=this.get(e);return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}}]),d),o=(l(s,[{key:"verifyStorageSupport",value:function(){try{window.localStorage.setItem("hz",1),window.localStorage.removeItem("hz"),this.isLocalStorageSupported=!0}catch(e){}try{window.sessionStorage.setItem("hz",1),window.sessionStorage.removeItem("hz"),this.isSessionStorageSupported=!0}catch(e){}}},{key:"getSessionStorage",value:function(){return this.isSessionStorageSupported?(null===this.sessionStorage&&(this.sessionStorage=new c),this.sessionStorage):this.getInMemoryStorage()}},{key:"getLocalStorage",value:function(){return this.isLocalStorageSupported?(null===this.localStorage&&(this.localStorage=new u),this.localStorage):this.getInMemoryStorage()}},{key:"getInMemoryStorage",value:function(){return this.fallbackStorage}}]),new s);function s(){i(this,s),this.isSessionStorageSupported=!1,this.isLocalStorageSupported=!1,this.sessionStorage=null,this.localStorage=null,this.fallbackStorage=new E,this.verifyStorageSupport()}function d(){i(this,d)}function I(){i(this,I)}function S(){i(this,S),this.data={}}t.default=o},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={com:{ccTLD:"us",domain:"com",locale:"en-US",countryCode:"US",countryNativeName:"United States",timeZone:"America/Los_Angeles",siteId:"101",localeId:"1001",seoLang:"en",commonAvailableInCountryCodes:["US","CA"]},"co.uk":{ccTLD:"uk",domain:"co.uk",locale:"en-GB",countryCode:"GB",countryNativeName:"United Kingdom",timeZone:"Europe/London",siteId:"102",localeId:"1002",seoLang:"en-gb",commonAvailableInCountryCodes:["GB"]},"com.au":{ccTLD:"au",domain:"com.au",locale:"en-AU",countryCode:"AU",countryNativeName:"Australia",timeZone:"Australia/ACT",siteId:"103",localeId:"1003",seoLang:"en-au",commonAvailableInCountryCodes:["AU"]},de:{ccTLD:"de",domain:"de",locale:"de-DE",countryCode:"DE",countryNativeName:"Deutschland",timeZone:"Europe/Berlin",siteId:"104",localeId:"1004",seoLang:"de",commonAvailableInCountryCodes:["DE","AT"]},fr:{ccTLD:"fr",domain:"fr",locale:"fr-FR",countryCode:"FR",countryNativeName:"France",timeZone:"Europe/Paris",siteId:"105",localeId:"1005",seoLang:"fr",commonAvailableInCountryCodes:["FR","BE"]},ru:{ccTLD:"ru",domain:"ru",locale:"ru-RU",countryCode:"RU",countryNativeName:"Россия",timeZone:"Europe/Moscow",siteId:"106",localeId:"1006",seoLang:"ru",commonAvailableInCountryCodes:["RU"]},jp:{ccTLD:"jp",domain:"jp",locale:"ja-JP",countryCode:"JP",countryNativeName:"日本",timeZone:"Asia/Tokyo",siteId:"107",localeId:"1007",seoLang:"ja",commonAvailableInCountryCodes:["JP"]},it:{ccTLD:"it",domain:"it",locale:"it-IT",countryCode:"IT",countryNativeName:"Italia",timeZone:"Europe/Rome",siteId:"108",localeId:"1008",seoLang:"it",commonAvailableInCountryCodes:["IT"]},es:{ccTLD:"es",domain:"es",locale:"es-ES",countryCode:"ES",countryNativeName:"España",timeZone:"Europe/Madrid",siteId:"109",localeId:"1009",seoLang:"es",commonAvailableInCountryCodes:["ES"]},dk:{ccTLD:"dk",domain:"dk",locale:"da-DK",countryCode:"DK",countryNativeName:"Danmark",timeZone:"Europe/Copenhagen",siteId:"110",localeId:"1010",seoLang:"da",commonAvailableInCountryCodes:["DK"]},no:{ccTLD:"no",domain:"no",locale:"nb-NO",countryCode:"NO",countryNativeName:"Norway",timeZone:"Europe/Oslo",siteId:"111",localeId:"1011",seoLang:"nb",commonAvailableInCountryCodes:["NO"]},fi:{ccTLD:"fi",domain:"fi",locale:"fi-FI",countryCode:"FI",countryNativeName:"Suomi",timeZone:"Europe/Helsinki",siteId:"112",localeId:"1012",seoLang:"fi",commonAvailableInCountryCodes:["FI"]},se:{ccTLD:"se",domain:"se",locale:"sv-SE",countryCode:"SE",countryNativeName:"Sverige",timeZone:"Europe/Stockholm",siteId:"113",localeId:"1013",seoLang:"sv",commonAvailableInCountryCodes:["SE"]},ie:{ccTLD:"ie",domain:"ie",locale:"en-IE",countryCode:"IE",countryNativeName:"Ireland",timeZone:"Europe/Dublin",siteId:"114",localeId:"1014",seoLang:"en-ie",commonAvailableInCountryCodes:["IE"]},"co.nz":{ccTLD:"nz",domain:"co.nz",locale:"en-NZ",countryCode:"NZ",countryNativeName:"New Zealand",timeZone:"Pacific/Auckland",siteId:"115",localeId:"1015",seoLang:"en-nz",commonAvailableInCountryCodes:["NZ"]},"com.sg":{ccTLD:"sg",domain:"com.sg",locale:"en-SG",countryCode:"SG",countryNativeName:"Singapore",timeZone:"Asia/Singapore",siteId:"116",localeId:"1016",seoLang:"en-sg",commonAvailableInCountryCodes:["SG"]},in:{ccTLD:"in",domain:"in",locale:"en-IN",countryCode:"IN",countryNativeName:"India",timeZone:"Asia/Calcutta",siteId:"117",localeId:"1017",seoLang:"en-in",commonAvailableInCountryCodes:["IN"]},nl:{ccTLD:"nl",domain:"nl",locale:"nl-NL",countryCode:"NL",countryNativeName:"Netherlands",timeZone:"Europe/Amsterdam",siteId:"118",localeId:"1018",seoLang:"nl",commonAvailableInCountryCodes:["NL"]},at:{ccTLD:"at",domain:"at",locale:"de-AT",countryCode:"AT",countryNativeName:"Austria",timeZone:"Europe/Vienna",siteId:"119",localeId:"1019",seoLang:"de-at",commonAvailableInCountryCodes:["AT"]}}},150:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTS=void 0,t.CONSTS={EXPIRE_KEY:"_expires"}}},i={};return function e(t){var o=i[t];if(void 0!==o)return o.exports;o=i[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.exports}(304)})()),HZ.utils.OmnilogTrackingUtils=window.Omnilog["omnilog-tracking-utils"].default;

window.hzmr.push("omnilogTrackingUtils:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End omnilogTrackingUtils.js  **************/
/************* Start omnilogSDK.js for locale en-GB **************/
try {HZ.ns("HZ.utils"),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Omnilog=t():(e.Omnilog=e.Omnilog||{},e.Omnilog["omnilog-sdk"]=t())}(self,()=>(()=>{var n={337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DummyIdentityUtils=t.DummyUserAttributeUtils=t.DummySessionUtils=t.DummyRequestUtils=t.DummyFlowUtils=t.DummyExpUtils=t.DummyOmnilogHelper=void 0;var o=n(924);t.DummyOmnilogHelper={getRequestId:function(){return""},getRoutingDescriptor:function(){return{siteName:"",namespace:"",environment:"",name:""}},getActiveUser:function(){return null},getDeviceType:function(){return o.DeviceType.NONE},sendEvent:function(e,t){},sendIdentityEvent:function(e,t,n){},initialize:function(){},getExtDeviceId:function(){return null},getAdminUserId:function(){return null},getDeviceOrientation:function(){},getEnvironment:function(){return""},getViewContext:function(){return{}},getComponent:function(){return{type:o.ComponentType.CLIENT_BROWSER,detailedType:o.ComponentDetailedType.JUWKAA_ISOMORHPIC_JS_WEB,componentName:"Jukwaa Web"}},getDebugUtil:function(){return{sendDebugLog:function(){}}},getMid:function(){return null},getIdentityInput:function(){return null},getChannel:function(){return o.Channel.UNKNOWN},getProductInfo:function(){return{}},getClientInfo:function(){return{clientId:"NO_CLIENT_ID",xClientId:"NO_CLIENT_ID",extClientId:"",clientComponentType:o.ComponentDetailedType.JUWKAA_ISOMORHPIC_JS_WEB,visitorId:"NO_CLIENT_ID",xVisitorId:"NO_CLIENT_ID"}},getClientIp:function(){return""},abTestForOmnilog:function(){return{}},getHouzzProTeamId:function(){return""},getHouzzProTeamManagerUserId:function(){return""},getClientUrl:function(){return""},getFullRequestUrl:function(){return""},getReferer:function(){return""},getRegisteredAbTests:function(){return null},isProAIAssist:function(){return!1}},t.DummyExpUtils={getStorage:function(){},setActiveExperience:function(){},getExperience:function(){}},t.DummyFlowUtils={init:function(){},getStorage:function(){},setParentFlow:function(){},getParentFlow:function(){return null},getFlowStack:function(){return[]},setFlowStack:function(){},pushToFlowStack:function(){},popFlowStack:function(){return null},resetFlows:function(){},getActiveFlow:function(){return null},updateActiveFlow:function(e,t){}},t.DummyRequestUtils={getToken:function(){return null}},t.DummySessionUtils={getSession:function(){return null},getSessionId:function(){return""},getExtSessionId:function(){return""},updateSession:function(){return null}},t.DummyUserAttributeUtils={getSetUaDetails:function(e,t,n){},getUnsetUaDetails:function(e){}},t.DummyIdentityUtils={getLogoutCount:function(){return 0},updateLogoutCount:function(){},getClientIdModifier:function(){return null}}},316:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.logError=void 0;var a=n(338),s=o(n(144)),l="/j/ajax/client-error-light";function u(e,t,n,o,i,r){"function"==typeof t&&o instanceof e?t(n,o,i,r):console.log("OmniLogSDK ".concat(n," Error: ").concat(o.message))}t.logError=function(e,t,n,o){try{if("undefined"==typeof window)return;var i={type:e},r=encodeURIComponent(JSON.stringify(i));(0,s.default)("".concat(((0,a.isTestingEnv)(n)?"".concat("https://www.stghouzz.com"):"".concat("https://www.houzz.com")).concat(l),"?p=").concat(r)),console.log("OmniLogSDK ".concat(e," Error: ").concat(t.message))}catch(e){}},t.default=function(a,s,l){return void 0===s&&(s=t.logError),void 0===l&&(l=Error),function(e,t,n){var r=n.value;return n.value=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=(null===(e=null==this?void 0:this.OmnilogHelper)||void 0===e?void 0:e.getEnvironment())||"";try{var i=r.apply(this,t);return i&&"function"==typeof i.then&&"function"==typeof i.catch?i.catch(function(e){u(l,s,a,e,o,t)}):i}catch(e){u(l,s,a,e,o,t)}},n}}},642:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});function a(e,t){return"function"!=typeof(null==e?void 0:e.getAttribute)||(t.position=void 0!==t.position?t.position:function(e,t){for(var n=0;n<t.length;n++){var o=parseInt((null==e?void 0:e.getAttribute(t[n]))||"",10);if(!isNaN(o))return o}}(e,["posId","data-posid","data-pos-id"]),t.elementType=t.elementType||e.getAttribute("role")||e.nodeName||void 0,t.elementLabel=t.elementLabel||e.getAttribute("label")||e.getAttribute("aria-label")||void 0,t.entityType=t.entityType||e.getAttribute("entityType")||e.getAttribute("data-entity-type")||void 0,t.entityId=t.entityId||e.getAttribute("objId")||e.getAttribute("data-objid")||e.getAttribute("entityId")||e.getAttribute("data-entity-id")||void 0,t.campaignId=t.campaignId||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||void 0,t.campaignToken=t.campaignToken||e.getAttribute("campaignId")||e.getAttribute("data-campaign-id")||e.getAttribute("campaignToken")||e.getAttribute("data-campaign-token")||void 0,t.creativeId=t.creativeId||e.getAttribute("creativeId")||e.getAttribute("data-creative-id")||void 0,t.section=t.section||e.getAttribute("section")||e.getAttribute("data-section")||void 0,t.component=t.component||e.getAttribute("component")||e.getAttribute("data-component")||void 0,t.compId=t.compId||e.getAttribute("compId")||e.getAttribute("data-compid")||void 0,t.l1Section=t.section||e.getAttribute("data-section")||void 0,t.l2Container=t.l2Container||t.container||e.getAttribute("data-container")||void 0,t.l3Component=t.component||e.getAttribute("data-component")||void 0,t.cta=t.cta||e.getAttribute("data-cta")||void 0,t.extraInfo=t.extraInfo||e.getAttribute("data-extra-info")||void 0),t}function l(){return r.default.getLocalStorage()}var u=n(924),r=i(n(670)),c=n(304),d="persisted_evt_src",p="transient_evt_src",E={trackingInfo:null,eventSource:null},g=function(n){return n?(Object.keys(n).forEach(function(e){var t=n[e];return t&&"object"==typeof t&&g(t)||!t&&delete n[e]}),n):{}},m={setEventSource:function(e){try{var t,n,o,i,r,a=l();a&&e&&"object"==typeof e&&(t=e.experience,n=e.parentFlow,o=e.activeFlow,i=s(e,["experience","parentFlow","activeFlow"]),r={experience:t,parentFlow:n,activeFlow:o},a.set(p,i,10),a.set(d,r))}catch(e){}},updateEventSource:function(e){var t;e&&(t=m.getEventSource()||{},m.setEventSource(Object.assign({},t,e)))},getEventSource:function(){var e=l(),t=e.get(d)||{},e=e.get(p)||{},e=o(o({},t),e);return g(e)},getEventSourceFromTargetElement:function(e,t){return e?a(e,t):{}},collectEventSourceFromDOM:function(e){var t={};if(!e)return t;try{for(var n=e;n;)t=n?a(n,t):t,n=n.parentNode}catch(e){}return!t.component&&t.compId&&(t.component=t.compId),t},getTrackingInfoAndSetEventSource:function(e,r){if(!e)return E;var t=function(e){var t;if("function"!=typeof(null==e?void 0:e.getAttribute))return E;var n={compId:null,posId:null,scopeId:null,objId:null,anchorText:null,eventType:r||u.UIEvents.ELEMENT_CLICKED,hasTrackMe:!1},o={};try{for(var i=e;i;)n.compId=n.compId||i.getAttribute("compId")||i.getAttribute("data-compid"),n.scopeId=n.scopeId||i.getAttribute("scopeId")||i.getAttribute("data-scopeid"),n.objId=n.objId||i.getAttribute("objId")||i.getAttribute("data-objid"),n.posId=n.posId||i.getAttribute("posId")||i.getAttribute("data-posid"),n.anchorText=n.anchorText||(null===(t=null==i?void 0:i.innerText)||void 0===t?void 0:t.replace(/[\s:]/g,"").substring(0,30)),n.hasTrackMe=n.hasTrackMe||i.classList.contains("hz-track-me")||i.classList.contains("trackMe"),n.eventType=n.eventType||i.getAttribute("data-event-name")||i.getAttribute("data-event-type"),o=a(i,o),i=i.parentElement;return n.eventType&&Object.values(u.UIEvents).includes(n.eventType),{trackingInfo:n,eventSource:o}}catch(e){return E}}(e)||{},n=t.trackingInfo,e=t.eventSource,t=void 0===e?{}:e;if(n&&t){e=c.ExperienceUtils.getExperience()||null;e&&(t.experience=e);e=c.FlowUtils.getParentFlow();e&&(t.parentFlow=e);e=c.FlowUtils.getActiveFlow();return e&&(t.activeFlow=e),m.setEventSource(t),{trackingInfo:n,eventSource:t}}return E}};t.default=m},924:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OmnilogError=t.DeviceType=t.OmnilogLocalStorageKey=t.RouterNSProductMap=t.IdentityEventType=t.ViewMode=t.DeviceOrientation=t.EventInitiator=t.TestBotType=t.UIEvents=t.Channel=t.ComponentOsType=t.ComponentType=t.ComponentName=t.ComponentDetailedType=t.OmnilogStatusCodes=t.OmnilogHeaders=t.OmniLoggerConst=t.OmniLoggerEventNames=void 0,(n=t.OmniLoggerEventNames||(t.OmniLoggerEventNames={})).EXPERIENCE_LOADED="Experience Loaded",n.EXPERIENCE_UNLOADED="Experience Unloaded",n.OMNILOG_EVENT="omnilog",n.TEST_REGISTERED="Tests Registered",n.SESSION_STARTED="Session Started",n.USER_ATTRIBUTE_UPDATED="User Attribute Updated",(t.OmniLoggerConst||(t.OmniLoggerConst={})).OMNILOG_TOKEN_HEADER_NAME="X-HZ-OMNILOG-TOKEN",(n=t.OmnilogHeaders||(t.OmnilogHeaders={})).EXTERNAL_SESSION_ID_HEADER="x-ol-ext-session-id",n.SESSION_ID_HEADER="x-ol-session-id",n.EXTERNAL_DEVICE_ID_HEADER="x-ol-ext-device-id",n.EXPERIENCE_ID_HEADER="x-ol-exp-id",n.EXPERIENCE_NAME_HEADER="x-ol-exp-name",n.FLOW_ID_HEADER="x-ol-flow-id",n.FLOW_NAME_HEADER="x-ol-flow-name",n.FLOW_STEP_NAME_HEADER="x-ol-step-name",n.PRODUCT_HEADER="x-ol-product",n.PRODUCT_VARIANT_HEADER="x-ol-product-variant",n.MID_HEADER="x-ol-mid",(n=t.OmnilogStatusCodes||(t.OmnilogStatusCodes={}))[n.STATUS_CODE_SUCCESS=1]="STATUS_CODE_SUCCESS",n[n.STATUS_CODE_FAILURE=-1]="STATUS_CODE_FAILURE",(n=t.ComponentDetailedType||(t.ComponentDetailedType={}))[n.C2_LEGACY_WEB=101]="C2_LEGACY_WEB",n[n.JUWKAA_ISOMORHPIC_JS_WEB=102]="JUWKAA_ISOMORHPIC_JS_WEB",n[n.SITE_DESIGNER_LEGACY_WEB=103]="SITE_DESIGNER_LEGACY_WEB",n[n.SITE_DESIGNER_ISOMORPHIC_JS_WEB=104]="SITE_DESIGNER_ISOMORPHIC_JS_WEB",n[n.IVY_LEGACY_WEB=105]="IVY_LEGACY_WEB",n[n.IVY_ISOMORPHIC_JS_WEB=106]="IVY_ISOMORPHIC_JS_WEB",n[n.CONX_LEGACY_WEB=107]="CONX_LEGACY_WEB",n[n.WINDOWS_MOBILE_APP=110]="WINDOWS_MOBILE_APP",n[n.PRO_SITES_WEB=112]="PRO_SITES_WEB",n[n.HOUZZ_PRO_CLIPPER=151]="HOUZZ_PRO_CLIPPER",n[n.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",n[n.HOUZZ_IOS_MOBILE_APP=201]="HOUZZ_IOS_MOBILE_APP",n[n.HOUZZ_ANDROID_MOBILE_APP=202]="HOUZZ_ANDROID_MOBILE_APP",n[n.HOUZZ_PRO_IOS_MOBILE_APP=251]="HOUZZ_PRO_IOS_MOBILE_APP",n[n.HOUZZ_PRO_ANDROID_MOBILE_APP=252]="HOUZZ_PRO_ANDROID_MOBILE_APP",n[n.C2_WEB_SERVER=301]="C2_WEB_SERVER",n[n.JUKWAA_WEB_SERVER=302]="JUKWAA_WEB_SERVER",n[n.GRAPHQL_SERVER=303]="GRAPHQL_SERVER",n[n.C2_SERVICE=304]="C2_SERVICE",n[n.IDENTITY_SERVICE=305]="IDENTITY_SERVICE",n[n.AD_SERVER=306]="AD_SERVER",n[n.BATCH=307]="BATCH",n[n.CONX_SERVER=308]="CONX_SERVER",n[n.PRO_SITES_WEB_SERVER=312]="PRO_SITES_WEB_SERVER",n[n.IVY_SERVICE_SERVER=315]="IVY_SERVICE_SERVER",n[n.EPN=401]="EPN",n[n.SALESFORCE=501]="SALESFORCE",n[n.BLUESHIFT=502]="BLUESHIFT",n[n.ELOQUA=503]="ELOQUA",n[n.UNKNOWN=-1]="UNKNOWN",(n=t.ComponentName||(t.ComponentName={})).JUKWAA_WEB="Jukwaa Web Client",n.PRO_SITES_WEB="Pro Site Web Client",n.SITE_DESIGNER_WEB="Site Designer Web Client",n.GRAPHQL_SERVER="Graphql Server",n.GRAPHQL_HOUZZ_PRO_SERVER="GraphQL Houzz Pro Server",n.JUKWAA_WEB_SERVER="Jukwaa Web Server",n.PRO_SITES_WEB_SERVER="Pro Site Web Server",n.SITE_DESIGNER_WEB_SERVER="Site Designer Web Server",n.IVY_SERVICE_SERVER="Ivy Service Server",n.GMAIL_CRM_CHROME_EXTENSION="Gmail CRM Chrome Extension",n.PRODUCT_CLIPPER_CHROME_EXTENSION="Product Clipper Chrome Extension",n.IMAGE_CLIPPER_CHROME_EXTENSION="Image Clipper Chrome Extension",n.HOUZZ_PRO_CLIPPER="Houzz Pro Clipper",(n=t.ComponentType||(t.ComponentType={}))[n.CLIENT_BROWSER=100]="CLIENT_BROWSER",n[n.CLIENT_MOBILE_APP=200]="CLIENT_MOBILE_APP",n[n.SERVER_WEB=300]="SERVER_WEB",n[n.SERVER_OFFLINE=400]="SERVER_OFFLINE",n[n.SERVER_SERVICE=500]="SERVER_SERVICE",(n=t.ComponentOsType||(t.ComponentOsType={}))[n.LINUX=1]="LINUX",n[n.WINDOWS=2]="WINDOWS",n[n.OSX=3]="OSX",n[n.IOS=4]="IOS",n[n.ANDROID=5]="ANDROID",n[n.OTHER=6]="OTHER",(n=t.Channel||(t.Channel={})).DIRECT="Direct",n.EMAIL="Email",n.PAID="Paid",n.SEARCH="Search",n.SOCIAL="Social",n.PARTNER="Partner",n.INTERNAL="Internal",n.REFERRAL="Referral",n[n.UNKNOWN=100]="UNKNOWN",(n=t.UIEvents||(t.UIEvents={})).ELEMENT_CLICKED="Element Clicked",n.ELEMENT_FOCUSED="Element Focused",n.ELEMENT_BLURRED="Element Blurred",n.ELEMENT_SCROLLED="Element Scrolled",n.ELEMENT_VIEWED="Element Viewed",n.ELEMENT_EXPANDED="Element Expanded",n.ELEMENT_COLLAPSED="Element Collapsed",n.INPUT_CHANGED="Input Changed",n.MEDIA_PLAYED="Media Played",n.MEDIA_PAUSED="Media Paused",n.MEDIA_PLAY_COMPLETED="Media Play Completed",n.MEDIA_TIME_CHANGED="Media Time Changed",n.MEDIA_RESTARTED="Media Restarted",n.FORM_SUBMITTED="Form Submitted",(n=t.TestBotType||(t.TestBotType={}))[n.NONE=0]="NONE",n[n.AUTOMATION=1]="AUTOMATION",n[n.MANUAL=4]="MANUAL",n[n.BATCH=16]="BATCH",n[n.HOUZZ_STAFF=32]="HOUZZ_STAFF",n[n.ANALYTICAL_BOT=64]="ANALYTICAL_BOT",(n=t.EventInitiator||(t.EventInitiator={}))[n.USER_SERVER=0]="USER_SERVER",n[n.USER_CLIENT=1]="USER_CLIENT",n[n.APPLICATION_SERVER=2]="APPLICATION_SERVER",n[n.APPLICATION_CLIENT=3]="APPLICATION_CLIENT",n[n.PRO_AI_ASSIST_USER_SERVER=4]="PRO_AI_ASSIST_USER_SERVER",n[n.PRO_AI_ASSIST_USER_CLIENT=5]="PRO_AI_ASSIST_USER_CLIENT",n[n.PRO_AI_ASSIST_APPLICATION_SERVER=6]="PRO_AI_ASSIST_APPLICATION_SERVER",n[n.PRO_AI_ASSIST_APPLICATION_CLIENT=7]="PRO_AI_ASSIST_APPLICATION_CLIENT",(n=t.DeviceOrientation||(t.DeviceOrientation={}))[n.PORTRAIT=1]="PORTRAIT",n[n.LANDSCAPE=2]="LANDSCAPE",(n=t.ViewMode||(t.ViewMode={})).STANDALONE="Standalone",n.DEFAULT="Default",n.LIGHTBOX="Lightbox",n.QUICKVIEW="Quick View",(n=t.IdentityEventType||(t.IdentityEventType={})).LOGIN="login",n.LOGOUT="logout",n.MODIFY="modify",t.RouterNSProductMap={HOUZZ:"Houzz",PRO_SOLUTIONS:"Houzz Pro",UNKNOWN:"UNKNOWN"},(n=t.OmnilogLocalStorageKey||(t.OmnilogLocalStorageKey={})).ActiveExperience="OMNILOG_ACTIVE_EXPERIENCE",n.FlowStack="OMNILOG_FLOW_STACK",n.ParentFlow="OMNILOG_PARENT_FLOW",n.LogoutCount="OMNILOG_LOGOUT_COUNT",(n=t.DeviceType||(t.DeviceType={}))[n.NONE=0]="NONE",n[n.DESKTOP=1]="DESKTOP",n[n.TABLET=2]="TABLET",n[n.SMARTPHONE=3]="SMARTPHONE",n[n.SMART_TV=4]="SMART_TV",n[n.OTHER=5]="OTHER",(t=t.OmnilogError||(t.OmnilogError={})).INIT="omnilog.init",t.CALL_MAKKARI_API="omnilog.callMakkariApi",t.EXPERIENCE_LOADED="omnilog.experienceLoaded",t.EXPERIENCE_UNLOADED="omnilog.experienceUnLoaded",t.SEND_INTERACTION_EVENT="omnilog.sendInteractionEvent",t.SEND_OUTCOME_EVENT="omnilog.sendOutcomeEvent",t.SEND_IDENTITY_EVENT="omnilog.sendIdentityEvent",t.FLOW_STARTED="omnilog.flowStarted",t.FLOW_STEP_LOADED="omnilog.flowStepLoaded",t.FLOW_STEP_COMPLETED="omnilog.flowStepCompleted",t.FLOW_COMPLETED="omnilog.flowCompleted",t.FLOW_STEP_UNLOADED="omnilog.flowStepUnloaded",t.DUPLICATE_EXPERIENCE="omnilog.duplicate_experience",t.BUILD_CLIENT_TOKEN="omnilog.buildClientToken",t.LOG_ERROR="omnilog.log_error"},639:function(e,t,n){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){e[o=void 0===o?n:o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},l=this&&this.__rest||function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||((o=o||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=n(924),p=n(614),E=c(n(304)),g=a(n(84)),m=n(337),f=c(n(935)),n=c(n(316)),I=function(){return"undefined"==typeof window},n=(v.getInstance=function(e){return v.omnilogInstance=!v.omnilogInstance?new v(e):v.omnilogInstance},v.prototype.init=function(e){e=(e||{}).OmnilogHelper;if(!this.OmnilogHelper&&!e)throw new Error("All clients of omnilog have to initialize OmnilogSDK with an OmnilogHelper util object... ");e&&(this.OmnilogHelper=e),this.OmnilogHelper.getChannel()!==d.Channel.INTERNAL&&this.teardown(),"function"==typeof this.OmnilogHelper.initialize&&this.OmnilogHelper.initialize({}),this.buildSessionStartEventAndPushQueue(),this.registeredABTests={},this.registerABTests(this.OmnilogHelper.getRegisteredAbTests()||{}),this.sentABTests={},setInterval(this.resetSentABTests.bind(this),6e4),this.isInitialized=!0},v.prototype.resetSentABTests=function(){this.sentABTests={}},v.prototype.setActiveExperience=function(e){this.ExperienceUtils.setActiveExperience(e)},v.prototype.resetExperience=function(){this.experienceTracker={},I()||(this.ExperienceUtils.setActiveExperience(null),E.default.updateEventSource({experience:null}))},v.prototype.buildExperience=function(e,t,n,o){var i="";o&&o.experienceId&&(i=o.experienceId);var r=(t=void 0===t?{}:t)||{},a=r.name,s=r.experienceArgumentsJson,l=this.OmnilogHelper.getProductInfo(t)||{},o=l.product,r=l.productVariant,t=this.OmnilogHelper.getEnvironment()?this.OmnilogHelper.getEnvironment().toUpperCase():"",l=(this.OmnilogHelper.getViewContext()||{}).viewMode,l={experienceInstanceId:n||(0,p.v4)(),product:o||"Houzz",productVariant:r||"Houzz US",environment:t,experienceName:e||a,experienceArgumentsJson:s,globalDirectivesJson:void 0,viewMode:l||d.ViewMode.DEFAULT};return i&&(l.referrerExperienceInstanceId=i),l},v.prototype.getExperience=function(){if(I()){var e=this.RequestUtils.getToken();return e?E.default.getInfoFromClientToken(e).experience:null}return this.ExperienceUtils.getExperience()},v.prototype.getEventQueue=function(){return this.eventQueue},v.prototype.isEligibleForSend=function(e){this.OmnilogHelper.getDebugUtil();var t=this.OmnilogHelper.getRequestId();if(e===d.OmniLoggerEventNames.EXPERIENCE_LOADED){if(this.experienceTracker[t])return!1;this.experienceTracker[t]=this.getExperience()||{}}else(new Date).getTime(),e===this.lastEventName&&this.lastEventTimestamp;return!0},v.prototype.experienceLoaded=function(e,t,n,o,i){void 0===t&&(t={}),I()||(n=n||this.OmnilogHelper.getRoutingDescriptor(),i=Object.assign({},E.default.getEventSource(),i||{}),this.setActiveExperience(this.buildExperience(e,n,o,i)),this.resetFlows(),this.sendEvent(d.OmniLoggerEventNames.EXPERIENCE_LOADED,t,i))},v.prototype.experienceUnLoaded=function(e,t,n,o,i){void 0===t&&(t={}),n=n||this.OmnilogHelper.getRoutingDescriptor(),this.setActiveExperience(this.buildExperience(e,n,o,i)),this.sendEvent(d.OmniLoggerEventNames.EXPERIENCE_UNLOADED,t,i)},v.prototype.sendInteractionEvent=function(e,t,n){var o,i;!I()&&Object.values(d.UIEvents).includes(e)&&t&&(o=n||E.default.collectEventSourceFromDOM(t)||{},(i=this.getExperience()||{}).experienceInstanceId&&(o.experienceId=i.experienceInstanceId),i.experienceName&&(o.experienceName=i.experienceName),t=(n=this.getFlowInfo()||{}).flowId,i=n.flowName,n=n.stepName,t&&(o.flowId=t),i&&(o.flowName=i),n&&(o.stepName=n),this.sendEvent(e,{},o))},v.prototype.sendOutcomeEvent=function(e,t,n,o){this.sendEvent(e,s(s({},t),{status_code:n,status_message:o}))},v.prototype.getEventData=function(e,t,n,o){var i=this.getFlowInfo(),r=i||{},a=(r.flowId,r.flowName,r.stepName,t||{}),r=a.eventInitiator,t=l(a,["eventInitiator"]);n=I()?void 0:this.getEventSource(n);a=I()?void 0:this.getClientState(),n=s(s({timestamp:Date.now(),eventId:(0,p.v4)(),eventInitiator:void 0!==r?r:function(e,t,n){var o=!!t.getToken(),t=!n&&!o,n=!I(),o=!1;try{o=e.isProAIAssist()}catch(e){}return(n?1:0)|(t?2:0)|(o?4:0)}(this.OmnilogHelper,this.RequestUtils,n),eventName:e,clientState:a},o),{eventSource:n});return i&&(n.flowInfo=i),t&&(n.eventDetails=t),n},v.prototype.getClientState=function(){if(!I()){var e=E.default.getViewPortDimensions()||{},t=e.viewportWidth,n=e.viewportHeight,e=null;return n&&!isNaN(n)&&null!==window&&void 0!==window&&window.scrollY&&(e=window.scrollY/n),{orientation:this.OmnilogHelper.getDeviceOrientation()||void 0,scrollAmount:e||void 0,viewportWidth:t,viewportHeight:n,url:this.OmnilogHelper.getClientUrl()}}},v.prototype.getEventSource=function(e){if(void 0===e&&(e={}),I())return{};var t=E.default.getEventSource(),n=this.getFlowInfo()||{},o=n.flowId,i=n.flowName,r=n.stepName,a=t.experience||{},n=a.experienceInstanceId,a=a.experienceName;return delete(e=s(s({},t),e)).activeFlow,delete e.parentFlow,delete e.experience,o&&(e.flowId=o),i&&(e.flowName=i),r&&(e.stepName=r),n&&!e.experienceId&&(e.experienceId=n),a&&!e.experienceName&&(e.experienceName=a),e},v.prototype.getSessionContext=function(){var e=this.OmnilogHelper.getClientInfo(),t=e.clientId,n=e.clientIdModifier,o=e.xClientId,i=e.extClientId,r=e.clientComponentType,a=void 0===r?d.ComponentDetailedType.UNKNOWN:r,s=e.userAgent,l=e.visitorId,r=e.xVisitorId,e=e.botIndicator,u=!I()&&(null===(u=this.SessionUtils.getSession())||void 0===u?void 0:u.sessionStartTime)||-1,r={clientId:t,xClientId:o,extClientId:i,clientComponentType:a,userAgent:s,visitorId:l,xVisitorId:r,botIndicator:e||(0,g.getTestBotType)()||void 0,clientIdModifier:n||this.IdentityUtils.getClientIdModifier()||void 0},e=this.OmnilogHelper.getActiveUser(),c=this.OmnilogHelper.abTestForOmnilog()||{},n=JSON.stringify(Array.from(Object.keys(c),function(e){return"".concat(e,": ").concat(c[e])}));return{activeUserName:null==e?void 0:e.userName,activeUserType:null==e?void 0:e.userType,activeUserId:null==e?void 0:e.userId,administrativeUserId:this.OmnilogHelper.getAdminUserId()||void 0,clientInfo:r,sessionId:this.getSessionId(),extSessionId:this.getExtSessionId(),sessionStartTime:u,mid:this.OmnilogHelper.getMid()||void 0,abBuckets:n,houzzProTeamId:this.OmnilogHelper.getHouzzProTeamId()||void 0,houzzProTeamManagerUserId:this.OmnilogHelper.getHouzzProTeamManagerUserId()||void 0}},v.prototype.getSessionId=function(){if(I()){var e=this.RequestUtils.getToken();return e&&(null===(e=E.default.getInfoFromClientToken(e).session)||void 0===e?void 0:e.sessionId)||""}return this.SessionUtils.getSessionId()},v.prototype.getExtSessionId=function(){if(I()){var e=this.RequestUtils.getToken();return e&&(null===(e=E.default.getInfoFromClientToken(e).session)||void 0===e?void 0:e.externalSessionId)||""}return this.SessionUtils.getExtSessionId()},v.prototype.getDebugInfo=function(){var e=this.OmnilogHelper.getMid(),t=this.OmnilogHelper.getMid();if(!e||!t||"".concat(e)!=="".concat(t))return{mid:e||"NO_MID",mpid:t||"NO_MPID",identifyInput:this.OmnilogHelper.getIdentityInput()}},v.prototype.getComponent=function(){var e=this.OmnilogHelper.getComponent(),t=e.detailedType,n=e.componentName,o=e.serviceName,e=e.serverIp,n=o?"".concat(n," (").concat(o,")"):n;return{type:I()?d.ComponentType.SERVER_WEB:d.ComponentType.CLIENT_BROWSER,detailedType:t||d.ComponentDetailedType.JUWKAA_ISOMORHPIC_JS_WEB,componentName:n||d.ComponentName.JUKWAA_WEB,device:{deviceType:this.OmnilogHelper.getDeviceType()},serverIp:e}},v.prototype.getClientRequest=function(){return{requestId:this.OmnilogHelper.getRequestId()||"NO_REQUEST",clientIp:this.OmnilogHelper.getClientIp()||"NO_IP"}},v.prototype.sendEvent=function(e,t,n,o){this.isInitialized||this.init(),this.isEligibleForSend(e)&&(this.buildSessionStartEventAndPushQueue(),n=[this.getEventData(e,t,n,o)],o=this.getEventQueue(),this.eventQueue=[],this.pushABTestEvent(n),n=this.buildOmniLogRecord(u(u([],o,!0),n,!0)),this.OmnilogHelper.sendEvent(e,n),this.lastEventTimestamp=(new Date).getTime(),this.lastEventName=e)},v.prototype.sendIdentityEvent=function(e,t,n,o){this.sendEvent(e,t),this.OmnilogHelper.sendIdentityEvent(e,t,n,o),e===d.IdentityEventType.LOGOUT&&this.IdentityUtils.updateLogoutCount()},v.prototype.generateFlowId=function(){return(0,p.v4)()},v.prototype.getActiveFlow=function(){if(I()){var e=this.RequestUtils.getToken();return e?E.default.getInfoFromClientToken(e).activeFlow:void 0}return this.FlowUtils.getActiveFlow()},v.prototype.setActiveFlow=function(e){return this.FlowUtils.pushToFlowStack(e)},v.prototype.setParentFlow=function(e){this.FlowUtils.setParentFlow(e)},v.prototype.getParentFlow=function(){return I()?this.getActiveFlow():this.FlowUtils.getParentFlow()},v.prototype.pushToFlowStack=function(e){this.FlowUtils.pushToFlowStack(e)},v.prototype.popFlowStack=function(){if(!I())return this.FlowUtils.popFlowStack()},v.prototype.flowStarted=function(e,t){var n,o=this.getParentFlow();o&&o.flowName===e||(n={flowName:e,flowStep:0,flowId:"",stepName:""},this.getActiveFlow()&&o||(n.flowId=this.generateFlowId(),this.setParentFlow(n)),this.setActiveFlow(n),this.sendEvent("".concat(e," - Started"),t))},v.prototype.flowStepLoaded=function(e,t,n){e&&t&&(this.sendEvent("".concat(e," - ").concat(t," - Loaded"),n),this.FlowUtils.updateActiveFlow("stepName",t))},v.prototype.flowStepCompleted=function(e,t,n){e&&t&&(this.sendEvent("".concat(e," - ").concat(t," - Completed"),n),(n=this.getActiveFlow())&&this.FlowUtils.updateActiveFlow("flowStep",n.flowStep+1))},v.prototype.flowCompleted=function(e,t){this.sendEvent("".concat(e," - Completed"),t),this.popFlowStack(),this.FlowUtils.getFlowStack().length||this.resetFlows()},v.prototype.flowAbandoned=function(){this.popFlowStack(),this.FlowUtils.getFlowStack().length||this.resetFlows()},v.prototype.flowStepUnloaded=function(e,t,n){void 0===n&&(n={}),this.sendEvent("".concat(e," - ").concat(t," - Unloaded"),n)},v.prototype.resetFlows=function(){I()||(this.FlowUtils.resetFlows(),E.default.updateEventSource({parentFlow:null,activeFlow:null}))},v.prototype.teardown=function(){I()||(this.resetFlows(),this.resetExperience())},v.prototype.buildOmniLogRecord=function(e){return{protocol:{logVersion:1.2,componentTimestamp:Date.now(),sdkVersion:f.default.version},component:this.getComponent(),session:this.getSessionContext(),logEntries:[{clientRequest:this.getClientRequest(),experience:this.getExperience(),events:e}],debug:this.getDebugInfo()}},v.prototype.getFlowInfo=function(){var e=this.getActiveFlow(),t=this.getParentFlow(),n=(e||{}).stepName,e=t||{},t=e.flowName,e=e.flowId;return t&&e?{flowId:e,flowName:t,stepName:n}:null},v.prototype.buildClientToken=function(){if(!I()){var e={},t=this.ExperienceUtils.getExperience()||{},n=t.experienceName,o=t.experienceInstanceId,i=this.OmnilogHelper.getRoutingDescriptor(),r=this.OmnilogHelper.getProductInfo(i),a=r.product,s=r.productVariant,t=(this.FlowUtils.getActiveFlow()||{}).stepName,i=this.FlowUtils.getParentFlow();return i&&(i=(r=i||{}).flowName,r=r.flowId,e.flowId=r,e.flowName=i,e.stepName=t),e.experienceId=o,e.experienceName=n,e.externalDeviceId=this.OmnilogHelper.getExtDeviceId(),e.externalSessionId="".concat(!I()&&(null===(n=this.SessionUtils.getSession())||void 0===n?void 0:n.sessionStartTime)||-1),e.sessionId=this.SessionUtils.getSessionId(),e.product=a||null,e.productVariant=s||null,e.mid=this.OmnilogHelper.getMid(),e}},v.prototype.registerABTests=function(e){(e=void 0===e?{}:e)&&"object"==typeof e&&0!==Object.keys(e).length&&(this.registeredABTests=s(s({},this.registeredABTests),e))},v.prototype.setUserAttribute=function(e,t,n){this.sendEvent(d.OmniLoggerEventNames.USER_ATTRIBUTE_UPDATED,this.UserAttributeUtils.getSetUaDetails(e,t,n))},v.prototype.unsetUserAttribute=function(e){this.sendEvent(d.OmniLoggerEventNames.USER_ATTRIBUTE_UPDATED,this.UserAttributeUtils.getUnsetUaDetails(e))},v.prototype.getRegisteredAbTests=function(){var n=this;try{return Object.keys(this.registeredABTests).reduce(function(e,t){return n.sentABTests[t]!==n.registeredABTests[t]&&(e[t]=n.registeredABTests[t]),e},{})}catch(n){return{}}},v.prototype.pushABTestEvent=function(e){var t=this.getRegisteredAbTests();0<Object.keys(t).length&&(t=this.getEventData(d.OmniLoggerEventNames.TEST_REGISTERED,E.default.getTestRegisteredEventDetails(t)),e.push(t)),this.sentABTests=s(s({},this.sentABTests),this.registeredABTests),this.registeredABTests={}},v.prototype.buildSessionStartEventAndPushQueue=function(){var e=this.updateSession()||{},t=e.session,n=e.isContinued,o=void 0!==n&&n;t&&(e=this.OmnilogHelper.getFullRequestUrl(),n=this.OmnilogHelper.getReferer(),o=g.default.getSessionStartEventDetails(e,n,t,o),o=this.getEventData(d.OmniLoggerEventNames.SESSION_STARTED,o),this.eventQueue.push(o))},v.prototype.updateSession=function(){return I()?void 0:this.SessionUtils.updateSession(this.OmnilogHelper.getFullRequestUrl(),this.OmnilogHelper.getReferer())},r([(v.omnilogInstance=null,n.default)(d.OmnilogError.INIT)],v.prototype,"init",null),r([(0,n.default)(d.OmnilogError.EXPERIENCE_LOADED)],v.prototype,"experienceLoaded",null),r([(0,n.default)(d.OmnilogError.EXPERIENCE_UNLOADED)],v.prototype,"experienceUnLoaded",null),r([(0,n.default)(d.OmnilogError.SEND_INTERACTION_EVENT)],v.prototype,"sendInteractionEvent",null),r([(0,n.default)(d.OmnilogError.SEND_OUTCOME_EVENT)],v.prototype,"sendOutcomeEvent",null),r([(0,n.default)(d.OmnilogError.SEND_IDENTITY_EVENT)],v.prototype,"sendIdentityEvent",null),r([(0,n.default)(d.OmnilogError.FLOW_STARTED)],v.prototype,"flowStarted",null),r([(0,n.default)(d.OmnilogError.FLOW_STEP_LOADED)],v.prototype,"flowStepLoaded",null),r([(0,n.default)(d.OmnilogError.FLOW_STEP_COMPLETED)],v.prototype,"flowStepCompleted",null),r([(0,n.default)(d.OmnilogError.FLOW_COMPLETED)],v.prototype,"flowCompleted",null),r([(0,n.default)(d.OmnilogError.FLOW_STEP_UNLOADED)],v.prototype,"flowStepUnloaded",null),r([(0,n.default)(d.OmnilogError.BUILD_CLIENT_TOKEN)],v.prototype,"buildClientToken",null),v);function v(e){this.eventQueue=[],this.isInitialized=!1,this.experienceTracker={},this.lastEventTimestamp=0,this.lastEventName=null,this.registeredABTests={},this.sentABTests={},this.userAttributeEvents=[];var t=e.OmnilogHelper,n=e.ExperienceUtils,o=e.FlowUtils,i=e.SessionUtils,r=e.RequestUtils,a=e.UserAttributeUtils,e=e.IdentityUtils;this.OmnilogHelper=t||m.DummyOmnilogHelper,this.ExperienceUtils=n||m.DummyExpUtils,this.FlowUtils=o||m.DummyFlowUtils,this.RequestUtils=r||m.DummyRequestUtils,this.SessionUtils=i||m.DummySessionUtils,this.UserAttributeUtils=a||m.DummyUserAttributeUtils,this.IdentityUtils=e||m.DummyIdentityUtils,this.FlowUtils.init()}t.default=n},84:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTestBotType=t.getSessionId=t.getExtSessionId=void 0;function a(e){return e?{utm_source:(e=new URL(e).searchParams).get("utm_source"),utm_campaign:e.get("utm_campaign"),utm_term:e.get("utm_term"),utm_content:e.get("utm_content"),utm_medium:e.get("utm_medium"),m_refid:e.get("m_refid")}:null}function s(e){return!!(!(e=e.lastActiveTime)||e<0||isNaN(e))||Date.now()-e>i}function l(e,t,n,o){var i=Date.now(),e={sessionId:(0,p.v4)(),sessionStartTime:i,lastActiveTime:i,channel:n||_(e,t),campaign:o||h(e)};return d.default.getLocalStorage().set(g,e),e}function u(){try{var e=O();return e?(e.lastActiveTime=Date.now(),void d.default.getLocalStorage().set(g,e)):void 0}catch(e){}}var c=n(924),d=o(n(670)),p=n(614),E=o(n(851)),g="OMNILOG_SESSION",i=18e5,m=/refid=([^&]+)/,f=/-ocnt-/,I=/ptr-|ptr_|partners_/,v=/-ptr-mpl/,S={hostname:"",pathname:"",searchParams:""},_=function(e,t){var n=null,o=new URL(e).searchParams,i=t?new URL(t):S,r=i.hostname,a=i.pathname,s=i.searchParams,i=r+("/"===a?"":a),a=new RegExp(E.default.houzz).test(r);new RegExp(E.default.unknown).test(i)?n=null:new RegExp(E.default.social).test(i)?n=c.Channel.SOCIAL:new RegExp(E.default.email).test(i)?n=c.Channel.EMAIL:new RegExp(E.default.search).test(i)&&(n=c.Channel.SEARCH);r=s.toString(),i=o.toString();if(new RegExp(m).test(r)||new RegExp(m).test(i)){s="",o=r.match(m),i=i.match(m);return Array.isArray(o)&&0<o.length?s=o[1]:Array.isArray(i)&&0<i.length&&(s=i[1]),new RegExp(f).test(s)?c.Channel.SOCIAL:new RegExp(I).test(s)&&!new RegExp(v).test(s)?c.Channel.PARTNER:c.Channel.PAID}return(n===c.Channel.SEARCH||n===c.Channel.EMAIL||null===n)&&new RegExp(/\/nllc\/|source=gmail/).test(r)||new RegExp(/utm_medium=email|source=marketing_email|lsmr=Email/).test(e)?c.Channel.EMAIL:null===n?t?a?c.Channel.INTERNAL:c.Channel.REFERRAL:c.Channel.DIRECT:n},h=function(e){if(!e)return null;e=new RegExp("[?&]utm_campaign(=([^&#]*)|&|#|$)").exec(e);return e&&e[2]?e[2]:null},O=function(){return d.default.getLocalStorage().get(g)};t.getExtSessionId=function(){var e=O();return(null==e?void 0:e.sessionId)||""},t.getSessionId=function(){var e=O();return(null==e?void 0:e.sessionId)||""},t.getTestBotType=function(){if("undefined"!=typeof document){var e=document.cookie||"";return-1!==e.indexOf("tt=automation")?c.TestBotType.AUTOMATION:-1!==e.indexOf("tt=manual")?c.TestBotType.MANUAL:void 0}},t.default={OMNILOG_SESSION_STORAGE_KEY:g,SESSION_EXPIRE_IN_MS:i,isSessionTimedOut:s,computeChannel:_,computeCampaign:h,getSession:O,updateSession:function(e,t){if(e){var n=O();if(!n)return{session:l(e,t),isContinued:!1};var o=s(n),i=_(e,t),r=h(e),a=n.channel,n=n.campaign;return o&&i===c.Channel.INTERNAL?{session:l("","",a),isContinued:!0}:(o||i!==c.Channel.INTERNAL)&&(o||null!==i&&i!==a||null!==r&&r!=n)?{session:l(e,t),isContinued:!1}:void u()}},buildNewSession:l,getSessionStartEventDetails:function(e,t,n,o){var i=a(e);return r(r({session_channel:n.channel},i),{is_continued_session:o,url:e,referrer_url:t})},parseUtmQueries:a,shouldFireNewSession:function(e,t,n){if(s(e))return!0;var o=e.channel,i=e.campaign;try{var r=_(t,n);if(null!==r&&r!==o)return!0;var a=h(t);return null!==a&&a!=i}catch(e){return!1}},getExtSessionId:t.getExtSessionId,getSessionId:t.getSessionId}},304:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.IdentityUtils=i.UserAttributeUtils=i.ExperienceUtils=i.FlowUtils=void 0;var r=t(924),a=o(t(670)),s=t(214),l=o(t(345)),t=o(t(642));i.FlowUtils={init:function(){i.FlowUtils.setFlowStack([])},getStorage:function(){return a.default.getSessionStorage()},getParentFlow:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.ParentFlow)||null},setParentFlow:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ParentFlow,e)},getFlowStack:function(){return i.FlowUtils.getStorage().get(r.OmnilogLocalStorageKey.FlowStack)||[]},setFlowStack:function(e){var t=i.FlowUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.FlowStack,e)},pushToFlowStack:function(e){var t=i.FlowUtils.getFlowStack()||[];t.unshift(e),i.FlowUtils.setFlowStack(t)},popFlowStack:function(){var e=i.FlowUtils.getFlowStack()||[],t=e.shift();return i.FlowUtils.setFlowStack(e),t},resetFlows:function(){i.FlowUtils.setFlowStack([]),i.FlowUtils.setParentFlow(null)},getActiveFlow:function(){var e=i.FlowUtils.getFlowStack();return 0<(null==e?void 0:e.length)?e[0]:null},updateActiveFlow:function(e,t){var n;0!==i.FlowUtils.getFlowStack().length&&((n=i.FlowUtils.popFlowStack())&&(n[e]=t),i.FlowUtils.pushToFlowStack(n))}},i.ExperienceUtils={getStorage:function(){return a.default.getSessionStorage()},setActiveExperience:function(e){var t=i.ExperienceUtils.getStorage();t&&t.set(r.OmnilogLocalStorageKey.ActiveExperience,e)},getExperience:function(){return i.ExperienceUtils.getStorage().get(r.OmnilogLocalStorageKey.ActiveExperience)}},i.UserAttributeUtils={getSetUaDetails:function(e,t,n){if(e&&t)return{user_attribute_set:JSON.stringify([{name:e,value:t,expiration:n||null}])}},getUnsetUaDetails:function(e){if(e)return{user_attribute_unset:JSON.stringify([e])}}},i.IdentityUtils={getLogoutCount:function(){return parseInt(a.default.getLocalStorage().get(r.OmnilogLocalStorageKey.LogoutCount),10)||0},updateLogoutCount:function(){a.default.getLocalStorage().set(r.OmnilogLocalStorageKey.LogoutCount,i.IdentityUtils.getLogoutCount()+1)},getClientIdModifier:function(){var e=i.IdentityUtils.getLogoutCount();if(!e)return null;var t="".concat(e);if(e<1e3)for(var n=4-t.length,o=0;o<n;o++)t="0".concat(t);return t}};var u=n(n({getProductInfo:function(e,t){var n=u.getProductInfoByRoutingDescriptor(t)||{},o=n.product,t=n.productVariant,n=e&&(0,s.getProductInfo)()||{},e=n.product,n=n.productVariant;return{product:o||e||r.RouterNSProductMap.UNKNOWN,productVariant:t||n||r.RouterNSProductMap.UNKNOWN}},getClientEventTokenFromRequestHeaders:function(e){var t=null;return e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]&&((t={}).experienceId=e[r.OmnilogHeaders.EXPERIENCE_ID_HEADER],t.experienceName=e[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER],t.externalDeviceId=e[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER],t.externalSessionId=e[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER],t.sessionId=e[r.OmnilogHeaders.SESSION_ID_HEADER],t.flowId=e[r.OmnilogHeaders.FLOW_ID_HEADER],t.flowName=e[r.OmnilogHeaders.FLOW_NAME_HEADER],t.stepName=e[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER],t.product=e[r.OmnilogHeaders.PRODUCT_HEADER],t.productVariant=e[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER],t.mid=e[r.OmnilogHeaders.MID_HEADER]),t},getInfoFromClientToken:function(e){if(!e)return{};var t=e.experienceId,n=e.experienceName,o=e.flowId,i=e.flowName,r=e.stepName,a=e.flowStep;return{experience:{experienceInstanceId:t,experienceName:n,product:e.product,productVariant:e.productVariant},activeFlow:{flowId:o,flowName:i,stepName:r,flowStep:a},session:{sessionId:e.sessionId,externalSessionId:e.externalSessionId}}},buildClientTokenHeader:function(e){if(!e)return null;var t={};return e.experienceName&&(t[r.OmnilogHeaders.EXPERIENCE_NAME_HEADER]=e.experienceName),e.experienceId&&(t[r.OmnilogHeaders.EXPERIENCE_ID_HEADER]=e.experienceId),e.externalDeviceId&&(t[r.OmnilogHeaders.EXTERNAL_DEVICE_ID_HEADER]=e.externalDeviceId),e.externalSessionId&&(t[r.OmnilogHeaders.EXTERNAL_SESSION_ID_HEADER]=e.externalSessionId),e.sessionId&&(t[r.OmnilogHeaders.SESSION_ID_HEADER]=e.sessionId),e.flowId&&(t[r.OmnilogHeaders.FLOW_ID_HEADER]=e.flowId),e.flowName&&(t[r.OmnilogHeaders.FLOW_NAME_HEADER]=e.flowName),e.stepName&&(t[r.OmnilogHeaders.FLOW_STEP_NAME_HEADER]=e.stepName),e.product&&(t[r.OmnilogHeaders.PRODUCT_HEADER]=e.product),e.productVariant&&(t[r.OmnilogHeaders.PRODUCT_VARIANT_HEADER]=e.productVariant),e.mid&&(t[r.OmnilogHeaders.MID_HEADER]=e.mid),t}},t.default),{FlowUtils:i.FlowUtils,ExperienceUtils:i.ExperienceUtils,UserAttributeUtils:i.UserAttributeUtils,IdentityUtils:i.IdentityUtils,getTestRegisteredEventDetails:function(e){return void 0===e&&(e={}),{test_selections:JSON.stringify(e)}},isNull:function(e){return null==e},countryCodeMapping:function(e){return e===l.default["co.uk"].countryCode?"UK":e},getProductInfoByRoutingDescriptor:function(e){var t=e||{},n=t.namespace,e=void 0===n?"":n,n=t.siteName,t=void 0===n?"":n,n=r.RouterNSProductMap[e];if(!n)return null;e=u.countryCodeMapping(t.replace("".concat(e,"_"),""));return e?{product:n,productVariant:"".concat(n," ").concat(e)}:null},stringifyIfExist:function(e){return u.isNull(e)?e:JSON.stringify(e)},getViewPortDimensions:function(){var e=document.documentElement||{};return{viewportWidth:Math.max(e.clientWidth||0,window.innerWidth||0)||null,viewportHeight:Math.max(e.clientHeight||0,window.innerHeight||0)||null}}});i.default=u},27:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGGER_NAMESPACE=t.MAKKARI_API_ENDPOINT=t.MAKKARI_DEVICE_STORAGE_KEY=void 0,t.MAKKARI_DEVICE_STORAGE_KEY="makkari_device",t.MAKKARI_API_ENDPOINT="/j/cdp-api",t.LOGGER_NAMESPACE="makkariDebug"},214:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendFallbackTracking=t.getEventHost=t.normalizeUserIdentities=t.isHouzzHost=t.getProductInfo=t.getDevice=t.uuidv4=t._global=t.log=void 0;var i=o(n(670)),s=n(924),l=o(n(304)),u=o(n(345)),r=n(27);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}t.log=function(){},t._global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},t.uuidv4=a,t.getDevice=function(){var e=i.default.getLocalStorage();try{var t=e.get(r.MAKKARI_DEVICE_STORAGE_KEY);if(t)return t;var n={deviceId:a()};return e.set(r.MAKKARI_DEVICE_STORAGE_KEY,n),n}catch(e){}},t.getProductInfo=function(){if(document.location&&document.location.hostname)return function(e){var t=e?e.split("."):[],n=t.length,o=s.RouterNSProductMap.UNKNOWN,i=s.RouterNSProductMap.UNKNOWN;if(n<2)return{product:o,productVariant:i};"www"===t[0]?o=s.RouterNSProductMap.HOUZZ:"pro"===t[0]&&(o=s.RouterNSProductMap.PRO_SOLUTIONS);var r=n-1,a=null,e=t[r],n=u.default;return(a=n[e]||0<=r-1&&n[e=t[r-1]+"."+t[r]]?n[e]:a)&&(a=l.default.countryCodeMapping(a.countryCode),i="".concat(o," ").concat(a)),{product:o,productVariant:i}}(document.location.hostname)},t.isHouzzHost=function(){var e=document.location.host.split("."),t=-1!==["www","pro"].indexOf(e[0]),e=-1!==["houzz","houzz2","stghouzz","houzzdev"].indexOf(e[1]);return t&&e},t.normalizeUserIdentities=function(e){return{user_id:e?e.customerid:null,user_name:e?e.other:null,visitor_id:e?e.other2:null}},t.getEventHost=function(e){return e?"https://evt.stghouzz.com":"https://evt.houzz.com"},t.sendFallbackTracking=function(e){}},670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(150);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=(s(g,[{key:"setData",value:function(e,t,n,o){return!(!e||!t||(e[t]=n,o&&(n=Date.now(),e[t+r.CONSTS.EXPIRE_KEY]=n+1e3*Math.abs(o)),0))}},{key:"setNS",value:function(e,t,n,o){return!(!e||!o)&&(this.data[o]||(this.data[o]={}),this.setData(this.data[o],e,t,n))}},{key:"set",value:function(e,t,n){return this.setData(this.data,e,t,n)}},{key:"deleteNS",value:function(e){e&&this.data[e]&&delete this.data[e]}},{key:"getNS",value:function(e,t){return e&&t&&this.data[t]?this.getFromData(this.data[t],e):null}},{key:"getFromData",value:function(e,t){if(!e||!t)return null;var n=e[t],o=e[t+r.CONSTS.EXPIRE_KEY];return o&&Date.now()>=o?(delete e[t],delete e[t+r.CONSTS.EXPIRE_KEY],null):n}},{key:"get",value:function(e){return this.getFromData(this.data,e)}},{key:"remove",value:function(e){var t=this.namespace?this.data[this.namespace]:this.data,n=t[e];return delete t[e],delete t[e+r.CONSTS.EXPIRE_KEY],n}}]),g),u=(s(E,[{key:"get",value:function(e){var t=window.sessionStorage.getItem(e),n=window.sessionStorage.getItem(e+r.CONSTS.EXPIRE_KEY),o=null;if(n){var i=Date.now();try{if(i>=JSON.parse(n))return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),o}catch(t){return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),o}}try{o=JSON.parse(t)}catch(e){o=t}return o}},{key:"remove",value:function(e){var t=this.get(e);return window.sessionStorage.removeItem(e),window.sessionStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}},{key:"set",value:function(e,t,n){if(t&&"object"===o(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.sessionStorage.setItem(e,t),n&&(t=Date.now(),window.sessionStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(n))),!0}}]),E),c=(s(p,[{key:"isExpired",value:function(e){var t=window.localStorage.getItem(e+r.CONSTS.EXPIRE_KEY);if(t){var n=Date.now();try{if(n>=JSON.parse(t))return!0}catch(e){return!0}}}},{key:"get",value:function(e){var t=window.localStorage.getItem(e),n=null;if(this.isExpired(e))return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),n;try{n=JSON.parse(t)}catch(e){n=t}return n}},{key:"set",value:function(e,t,n){if(t&&"object"===o(t))try{t=JSON.stringify(t)}catch(e){return!1}return window.localStorage.setItem(e,t),n&&(t=Date.now(),window.localStorage.setItem(e+r.CONSTS.EXPIRE_KEY,t+1e3*Math.abs(n))),!0}},{key:"remove",value:function(e){var t=this.get(e);return window.localStorage.removeItem(e),window.localStorage.removeItem(e+r.CONSTS.EXPIRE_KEY),t}}]),p),n=(s(d,[{key:"verifyStorageSupport",value:function(){try{window.localStorage.setItem("hz",1),window.localStorage.removeItem("hz"),this.isLocalStorageSupported=!0}catch(e){}try{window.sessionStorage.setItem("hz",1),window.sessionStorage.removeItem("hz"),this.isSessionStorageSupported=!0}catch(e){}}},{key:"getSessionStorage",value:function(){return this.isSessionStorageSupported?(null===this.sessionStorage&&(this.sessionStorage=new u),this.sessionStorage):this.getInMemoryStorage()}},{key:"getLocalStorage",value:function(){return this.isLocalStorageSupported?(null===this.localStorage&&(this.localStorage=new c),this.localStorage):this.getInMemoryStorage()}},{key:"getInMemoryStorage",value:function(){return this.fallbackStorage}}]),new d);function d(){i(this,d),this.isSessionStorageSupported=!1,this.isLocalStorageSupported=!1,this.sessionStorage=null,this.localStorage=null,this.fallbackStorage=new l,this.verifyStorageSupport()}function p(){i(this,p)}function E(){i(this,E)}function g(){i(this,g),this.data={}}t.default=n},345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={com:{ccTLD:"us",domain:"com",locale:"en-US",countryCode:"US",countryNativeName:"United States",timeZone:"America/Los_Angeles",siteId:"101",localeId:"1001",seoLang:"en",commonAvailableInCountryCodes:["US","CA"]},"co.uk":{ccTLD:"uk",domain:"co.uk",locale:"en-GB",countryCode:"GB",countryNativeName:"United Kingdom",timeZone:"Europe/London",siteId:"102",localeId:"1002",seoLang:"en-gb",commonAvailableInCountryCodes:["GB"]},"com.au":{ccTLD:"au",domain:"com.au",locale:"en-AU",countryCode:"AU",countryNativeName:"Australia",timeZone:"Australia/ACT",siteId:"103",localeId:"1003",seoLang:"en-au",commonAvailableInCountryCodes:["AU"]},de:{ccTLD:"de",domain:"de",locale:"de-DE",countryCode:"DE",countryNativeName:"Deutschland",timeZone:"Europe/Berlin",siteId:"104",localeId:"1004",seoLang:"de",commonAvailableInCountryCodes:["DE","AT"]},fr:{ccTLD:"fr",domain:"fr",locale:"fr-FR",countryCode:"FR",countryNativeName:"France",timeZone:"Europe/Paris",siteId:"105",localeId:"1005",seoLang:"fr",commonAvailableInCountryCodes:["FR","BE"]},ru:{ccTLD:"ru",domain:"ru",locale:"ru-RU",countryCode:"RU",countryNativeName:"Россия",timeZone:"Europe/Moscow",siteId:"106",localeId:"1006",seoLang:"ru",commonAvailableInCountryCodes:["RU"]},jp:{ccTLD:"jp",domain:"jp",locale:"ja-JP",countryCode:"JP",countryNativeName:"日本",timeZone:"Asia/Tokyo",siteId:"107",localeId:"1007",seoLang:"ja",commonAvailableInCountryCodes:["JP"]},it:{ccTLD:"it",domain:"it",locale:"it-IT",countryCode:"IT",countryNativeName:"Italia",timeZone:"Europe/Rome",siteId:"108",localeId:"1008",seoLang:"it",commonAvailableInCountryCodes:["IT"]},es:{ccTLD:"es",domain:"es",locale:"es-ES",countryCode:"ES",countryNativeName:"España",timeZone:"Europe/Madrid",siteId:"109",localeId:"1009",seoLang:"es",commonAvailableInCountryCodes:["ES"]},dk:{ccTLD:"dk",domain:"dk",locale:"da-DK",countryCode:"DK",countryNativeName:"Danmark",timeZone:"Europe/Copenhagen",siteId:"110",localeId:"1010",seoLang:"da",commonAvailableInCountryCodes:["DK"]},no:{ccTLD:"no",domain:"no",locale:"nb-NO",countryCode:"NO",countryNativeName:"Norway",timeZone:"Europe/Oslo",siteId:"111",localeId:"1011",seoLang:"nb",commonAvailableInCountryCodes:["NO"]},fi:{ccTLD:"fi",domain:"fi",locale:"fi-FI",countryCode:"FI",countryNativeName:"Suomi",timeZone:"Europe/Helsinki",siteId:"112",localeId:"1012",seoLang:"fi",commonAvailableInCountryCodes:["FI"]},se:{ccTLD:"se",domain:"se",locale:"sv-SE",countryCode:"SE",countryNativeName:"Sverige",timeZone:"Europe/Stockholm",siteId:"113",localeId:"1013",seoLang:"sv",commonAvailableInCountryCodes:["SE"]},ie:{ccTLD:"ie",domain:"ie",locale:"en-IE",countryCode:"IE",countryNativeName:"Ireland",timeZone:"Europe/Dublin",siteId:"114",localeId:"1014",seoLang:"en-ie",commonAvailableInCountryCodes:["IE"]},"co.nz":{ccTLD:"nz",domain:"co.nz",locale:"en-NZ",countryCode:"NZ",countryNativeName:"New Zealand",timeZone:"Pacific/Auckland",siteId:"115",localeId:"1015",seoLang:"en-nz",commonAvailableInCountryCodes:["NZ"]},"com.sg":{ccTLD:"sg",domain:"com.sg",locale:"en-SG",countryCode:"SG",countryNativeName:"Singapore",timeZone:"Asia/Singapore",siteId:"116",localeId:"1016",seoLang:"en-sg",commonAvailableInCountryCodes:["SG"]},in:{ccTLD:"in",domain:"in",locale:"en-IN",countryCode:"IN",countryNativeName:"India",timeZone:"Asia/Calcutta",siteId:"117",localeId:"1017",seoLang:"en-in",commonAvailableInCountryCodes:["IN"]},nl:{ccTLD:"nl",domain:"nl",locale:"nl-NL",countryCode:"NL",countryNativeName:"Netherlands",timeZone:"Europe/Amsterdam",siteId:"118",localeId:"1018",seoLang:"nl",commonAvailableInCountryCodes:["NL"]},at:{ccTLD:"at",domain:"at",locale:"de-AT",countryCode:"AT",countryNativeName:"Austria",timeZone:"Europe/Vienna",siteId:"119",localeId:"1019",seoLang:"de-at",commonAvailableInCountryCodes:["AT"]}}},150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTS=void 0,t.CONSTS={EXPIRE_KEY:"_expires"}},338:(e,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isTestingEnv=o._global=void 0,o._global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},o.isTestingEnv=function(e){var t,n=!0;return n="production"===(e=e||(null!==(t=null===(t=null===o._global||void 0===o._global?void 0:o._global.HZ)||void 0===t?void 0:t.ctx)&&void 0!==t&&t.env?o._global.HZ.ctx.env:null!==(t=null===(t=null===(t=null===o._global||void 0===o._global?void 0:o._global.HZ)||void 0===t?void 0:t.utils)||void 0===t?void 0:t.OmnilogData)&&void 0!==t&&t.environment?o._global.HZ.utils.OmnilogData.environment:""))||"prod"===e?!1:n}},144:function(e,t){void 0===(t=function(e,t){"use strict";function d(t){try{delete window[t]}catch(e){window[t]=void 0}}function p(e){e=document.getElementById(e);e&&document.getElementsByTagName("head")[0].removeChild(e)}t.exports=function(r){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=r,l=a.timeout||5e3,u=a.jsonpCallback||"callback",c=void 0;return new Promise(function(t,e){var n=a.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),o=u+"_"+n;window[n]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),c&&clearTimeout(c),p(o),d(n)},s+=-1===s.indexOf("?")?"?":"&";var i=document.createElement("script");i.setAttribute("src",""+s+u+"="+n),a.charset&&i.setAttribute("charset",a.charset),a.nonce&&i.setAttribute("nonce",a.nonce),a.referrerPolicy&&i.setAttribute("referrerPolicy",a.referrerPolicy),i.id=o,document.getElementsByTagName("head")[0].appendChild(i),c=setTimeout(function(){e(new Error("JSONP request to "+r+" timed out")),d(n),p(o),window[n]=function(){d(n)}},l),i.onerror=function(){e(new Error("JSONP request to "+r+" failed")),d(n),p(o),c&&clearTimeout(c)}})}}.apply(t,[t,e]))||(e.exports=t)},614:(e,t,n)=>{"use strict";var o;n.r(t),n.d(t,{NIL:()=>C,parse:()=>f,stringify:()=>d,v1:()=>u,v3:()=>T,v4:()=>N,v5:()=>R,validate:()=>a,version:()=>D});var i=new Uint8Array(16);function c(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(e){return"string"==typeof e&&r.test(e)};for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));const d=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!a(t))throw TypeError("Stringified UUID is invalid");return t};var p,E,g=0,m=0;const u=function(e,t,n){var o=t&&n||0,i=t||new Array(16),r=(e=e||{}).node||p,a=void 0!==e.clockseq?e.clockseq:E;null!=r&&null!=a||(l=e.random||(e.rng||c)(),null==r&&(r=p=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==a&&(a=E=16383&(l[6]<<8|l[7])));var s=void 0!==e.msecs?e.msecs:Date.now(),n=void 0!==e.nsecs?e.nsecs:m+1,l=s-g+(n-m)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),1e4<=(n=(l<0||g<s)&&void 0===e.nsecs?0:n))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=s,E=a;n=(1e4*(268435455&(s+=122192928e5))+(m=n))%4294967296;i[o++]=n>>>24&255,i[o++]=n>>>16&255,i[o++]=n>>>8&255,i[o++]=255&n;s=s/4294967296*1e4&268435455;i[o++]=s>>>8&255,i[o++]=255&s,i[o++]=s>>>24&15|16,i[o++]=s>>>16&255,i[o++]=a>>>8|128,i[o++]=255&a;for(var u=0;u<6;++u)i[o+u]=r[u];return t||d(i)},f=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function I(e,a,s){function t(e,t,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),16!==(t="string"==typeof t?f(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=s(i))[6]=15&i[6]|a,i[8]=63&i[8]|128,n){o=o||0;for(var r=0;r<16;++r)n[o+r]=i[r];return n}return d(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function v(e){return 14+(e+64>>>9<<4)+1}function S(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,o,i,r){return S((r=S(S(t,e),S(o,r)))<<i|r>>>32-i,n)}function h(e,t,n,o,i,r,a){return _(t&n|~t&o,e,t,i,r,a)}function O(e,t,n,o,i,r,a){return _(t&o|n&~o,e,t,i,r,a)}function y(e,t,n,o,i,r,a){return _(t^n^o,e,t,i,r,a)}function A(e,t,n,o,i,r,a){return _(n^(t|~o),e,t,i,r,a)}const T=I("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,o="0123456789abcdef",i=0;i<n;i+=8){var r=e[i>>5]>>>i%32&255,r=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var n=1732584193,o=-271733879,i=-1732584194,r=271733878,a=0;a<e.length;a+=16){var s=n,l=o,u=i,c=r,n=h(n,o,i,r,e[a],7,-680876936),r=h(r,n,o,i,e[a+1],12,-389564586),i=h(i,r,n,o,e[a+2],17,606105819),o=h(o,i,r,n,e[a+3],22,-1044525330);n=h(n,o,i,r,e[a+4],7,-176418897),r=h(r,n,o,i,e[a+5],12,1200080426),i=h(i,r,n,o,e[a+6],17,-1473231341),o=h(o,i,r,n,e[a+7],22,-45705983),n=h(n,o,i,r,e[a+8],7,1770035416),r=h(r,n,o,i,e[a+9],12,-1958414417),i=h(i,r,n,o,e[a+10],17,-42063),o=h(o,i,r,n,e[a+11],22,-1990404162),n=h(n,o,i,r,e[a+12],7,1804603682),r=h(r,n,o,i,e[a+13],12,-40341101),i=h(i,r,n,o,e[a+14],17,-1502002290),n=O(n,o=h(o,i,r,n,e[a+15],22,1236535329),i,r,e[a+1],5,-165796510),r=O(r,n,o,i,e[a+6],9,-1069501632),i=O(i,r,n,o,e[a+11],14,643717713),o=O(o,i,r,n,e[a],20,-373897302),n=O(n,o,i,r,e[a+5],5,-701558691),r=O(r,n,o,i,e[a+10],9,38016083),i=O(i,r,n,o,e[a+15],14,-660478335),o=O(o,i,r,n,e[a+4],20,-405537848),n=O(n,o,i,r,e[a+9],5,568446438),r=O(r,n,o,i,e[a+14],9,-1019803690),i=O(i,r,n,o,e[a+3],14,-187363961),o=O(o,i,r,n,e[a+8],20,1163531501),n=O(n,o,i,r,e[a+13],5,-1444681467),r=O(r,n,o,i,e[a+2],9,-51403784),i=O(i,r,n,o,e[a+7],14,1735328473),n=y(n,o=O(o,i,r,n,e[a+12],20,-1926607734),i,r,e[a+5],4,-378558),r=y(r,n,o,i,e[a+8],11,-2022574463),i=y(i,r,n,o,e[a+11],16,1839030562),o=y(o,i,r,n,e[a+14],23,-35309556),n=y(n,o,i,r,e[a+1],4,-1530992060),r=y(r,n,o,i,e[a+4],11,1272893353),i=y(i,r,n,o,e[a+7],16,-155497632),o=y(o,i,r,n,e[a+10],23,-1094730640),n=y(n,o,i,r,e[a+13],4,681279174),r=y(r,n,o,i,e[a],11,-358537222),i=y(i,r,n,o,e[a+3],16,-722521979),o=y(o,i,r,n,e[a+6],23,76029189),n=y(n,o,i,r,e[a+9],4,-640364487),r=y(r,n,o,i,e[a+12],11,-421815835),i=y(i,r,n,o,e[a+15],16,530742520),n=A(n,o=y(o,i,r,n,e[a+2],23,-995338651),i,r,e[a],6,-198630844),r=A(r,n,o,i,e[a+7],10,1126891415),i=A(i,r,n,o,e[a+14],15,-1416354905),o=A(o,i,r,n,e[a+5],21,-57434055),n=A(n,o,i,r,e[a+12],6,1700485571),r=A(r,n,o,i,e[a+3],10,-1894986606),i=A(i,r,n,o,e[a+10],15,-1051523),o=A(o,i,r,n,e[a+1],21,-2054922799),n=A(n,o,i,r,e[a+8],6,1873313359),r=A(r,n,o,i,e[a+15],10,-30611744),i=A(i,r,n,o,e[a+6],15,-1560198380),o=A(o,i,r,n,e[a+13],21,1309151649),n=A(n,o,i,r,e[a+4],6,-145523070),r=A(r,n,o,i,e[a+11],10,-1120210379),i=A(i,r,n,o,e[a+2],15,718787259),o=A(o,i,r,n,e[a+9],21,-343485551),n=S(n,s),o=S(o,l),i=S(i,u),r=S(r,c)}return[n,o,i,r]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(v(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))}),N=function(e,t,n){var o=(e=e||{}).random||(e.rng||c)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return d(o)};function w(e,t){return e<<t|e>>>32-t}const R=I("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var i=0;i<o.length;++i)e.push(o.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var r=e.length/4+2,a=Math.ceil(r/16),s=new Array(a),l=0;l<a;++l){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];s[l]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var p=new Uint32Array(80),E=0;E<16;++E)p[E]=s[d][E];for(var g=16;g<80;++g)p[g]=w(p[g-3]^p[g-8]^p[g-14]^p[g-16],1);for(var m=n[0],f=n[1],I=n[2],v=n[3],S=n[4],_=0;_<80;++_)var h=Math.floor(_/20),h=w(m,5)+function(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o}}(h,f,I,v)+S+t[h]+p[_]>>>0,S=v,v=I,I=w(f,30)>>>0,f=m,m=h;n[0]=n[0]+m>>>0,n[1]=n[1]+f>>>0,n[2]=n[2]+I>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+S>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),C="00000000-0000-0000-0000-000000000000",D=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},851:e=>{"use strict";e.exports=JSON.parse('{"unknown":"(?:(?:(?:finance|news|eurosport|sports|astrology|travel|answers|screen|weather|messenger|games|movies|cars|omg|lifestyle)\\\\.yahoo|(?:accounts|keep|support|drive|groups|developers|maps|sites)\\\\.google|maps\\\\.yandex)\\\\.com|maps\\\\.yandex\\\\.(?:ru|ua|by)|(?:shopping|match)\\\\.yahoo\\\\.net|groups\\\\.google\\\\.co\\\\.uk|n\\\\.maps\\\\.yandex\\\\.ru)","search":"(?:www\\\\.(?:google\\\\.(?:com(?:|\\\\.af|\\\\.ar|\\\\.au|\\\\.bd|\\\\.bh|\\\\.bn|\\\\.bo|\\\\.br|\\\\.co|\\\\.cu|\\\\.do|\\\\.ec|\\\\.eg|\\\\.et|\\\\.fj|\\\\.gh|\\\\.gt|\\\\.hk|\\\\.jm|\\\\.kw|\\\\.lb|\\\\.ly|\\\\.mt|\\\\.mx|\\\\.my|\\\\.ng|\\\\.ni|\\\\.np|\\\\.om|\\\\.pa|\\\\.pe|\\\\.ph|\\\\.pk|\\\\.pr|\\\\.py|\\\\.qa|\\\\.sa|\\\\.sg|\\\\.sv|\\\\.tr|\\\\.tw|\\\\.ua|\\\\.uy|\\\\.vn)|co\\\\.(?:cr|id|il|in|jp|ke|kr|ls|ma|nz|th|tz|uk|uz|ve|za|zw)|am|as|at|az|ba|be|bg|bs|by|de|dk|dz|ee|es|fi|fr|ge|gg|gr|hn|hr|hu|ie|it|je|jo|kg|kz|li|lk|lt|lu|lv|md|mn|mu|mw|nl|no|pl|pt|ro|rs|ru|rw|se|si|sk|sn|tn|tt|ae|vg|ca|cd|cat|ch|ci|cl|cm|cz)|(?:so|gigablast|dogpile|yandex|amazon|baidu|qwant|ask|bing|cnn|search)\\\\.com|yandex\\\\.(?:ru|ua|by)|goyellow\\\\.de|bing\\\\.com\\\\/images\\\\/search|startsiden\\\\.no)|google\\\\.(?:com(?:\\\\/imgres||\\\\.af|\\\\.ar|\\\\.au|\\\\.bd|\\\\.bh|\\\\.bn|\\\\.bo|\\\\.br|\\\\.co|\\\\.cu|\\\\.do|\\\\.ec|\\\\.eg|\\\\.et|\\\\.fj|\\\\.gh|\\\\.gt|\\\\.hk|\\\\.jm|\\\\.kw|\\\\.lb|\\\\.ly|\\\\.mt|\\\\.mx|\\\\.my|\\\\.ng|\\\\.ni|\\\\.np|\\\\.om|\\\\.pa|\\\\.pe|\\\\.ph|\\\\.pk|\\\\.pr|\\\\.py|\\\\.qa|\\\\.sa|\\\\.sg|\\\\.sv|\\\\.tr|\\\\.tw|\\\\.ua|\\\\.uy|\\\\.vn)|co\\\\.(?:uk\\\\/imgres|cr|id|il|in|jp|ke|kr|ls|ma|nz|th|tz|ve|za|zw|uk|uz)|ca\\\\/imgres|am|as|at|az|ba|be|bg|bs|by|de|dk|dz|ee|es|fi|fr|ge|gg|gr|hn|hr|hu|ie|it|je|jo|kg|kz|li|lk|lt|lu|lv|md|mn|mu|mw|nl|no|pl|pt|ro|rs|ru|rw|se|si|sk|sn|tt|ae|vg|tn|ca|cd|cat|ch|ci|cl|cm|cz)|(?:(?:(?:(?:imag|)es\\\\.||ar\\\\.|au\\\\.|br\\\\.|ca\\\\.|de\\\\.|dk\\\\.|fr\\\\.|hk\\\\.|in\\\\.|it\\\\.|mx\\\\.|nz\\\\.|qc\\\\.|ru\\\\.|se\\\\.|uk\\\\.|us\\\\.)search\\\\.||ca\\\\.|us\\\\.)yahoo|search\\\\.(?:nifty|aol|bt|tb\\\\.ask|avg|naver)|(?:tieba|m)\\\\.baidu|dogpile|webcrawler|yandex|amazon|lycos|lite\\\\.qwant|news\\\\.google|duckduckgo|ask|bing)\\\\.com|search\\\\.(?:(?:earthlink|ukr|daum)\\\\.net|(?:goo\\\\.ne|yahoo\\\\.co)\\\\.jp|aol\\\\.co\\\\.uk|seznam\\\\.cz)|(?:(?:|link\\\\.)2gis|(?:|go\\\\.)mail|yandex|nova\\\\.rambler)\\\\.ru|suche\\\\.(?:(?:aol|web|t\\\\-online)\\\\.de|gmx\\\\.net)|yandex\\\\.(?:ua|by)|(?:recherche\\\\.aol|lemoteur\\\\.orange)\\\\.fr|(?:cgi\\\\.search\\\\.biglobe\\\\.ne|websearch\\\\.rakuten\\\\.co)\\\\.jp|(?:so\\\\.|)m\\\\.sm\\\\.cn|ricerca\\\\.virgilio\\\\.it|meta\\\\.ua|ecosia\\\\.org|bing\\\\.com\\\\/images\\\\/search|com\\\\.google\\\\.android\\\\.googlequicksearchbox)","email":"(?:mail\\\\.(?:(?:zoho|qq|aol|yandex|google|yahoo)\\\\.com|yandex\\\\.(?:ru|kz|ua|by)|yahoo\\\\.(?:co\\\\.(?:uk|jp)|net)|ukr\\\\.net|rambler\\\\.ru)|(?:inbox(?:|\\\\.google)|email\\\\.telstra|outlook\\\\.live)\\\\.com|webmail\\\\.(?:(?:iinet\\\\.net|optusnet\\\\.com)\\\\.au|freenet\\\\.de)|(?:e|touch|click)\\\\.mail\\\\.ru|email\\\\.seznam\\\\.cz|orange\\\\.fr\\\\/webmail|com\\\\.google\\\\.android\\\\.gm)","paid":"(?:(?:(?:www\\\\.||partner\\\\.)googleadservices|paid\\\\.outbrain|imasdk\\\\.googleapis|tpc\\\\.googlesyndication)\\\\.com|googleads\\\\.g\\\\.doubleclick\\\\.net)","social":"(?:pinterest\\\\.(?:com(?:|\\\\.au|\\\\.mx)|co\\\\.(?:uk|kr)|fr|de|es|ru|it|jp|pt|ph|at|nz|se|dk|ca|cl|ch)|(?:(?:|m\\\\.|l\\\\.|lm\\\\.)facebook|(?:|l\\\\.)instagram|(?:m|away)\\\\.vk|github|quora|vk|twitter|web\\\\.skype|linkedin|getpocket|douban|youtube|reddit|t\\\\.umblr)\\\\.com|com\\\\.(?:(?:twitter|instagram|linkedin)\\\\.android|pinterest|google\\\\.android\\\\.talk|facebook\\\\.katana|slack)|forums\\\\.whirlpool\\\\.net\\\\.au|ok\\\\.ru|t\\\\.co|lnkd\\\\.in|disq\\\\.us|youtu\\\\.be|org\\\\.telegram\\\\.messenger)","houzz":"(?:houzz\\\\.(?:com(?:|\\\\.au|\\\\.sg)|co\\\\.(?:uk|nz)|de|fr|ru|jp|it|es|dk|se|ie|in)|(?:gardenweb|checkout\\\\.stripe)\\\\.com)"}')},935:e=>{"use strict";e.exports={version:"2.0.62"}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;t=o[e]={exports:{}};return n[e].call(t.exports,t,t.exports,i),t.exports}return i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(924),i(639)})()),HZ.utils.OmnilogSDK=window.Omnilog["omnilog-sdk"].default;

window.hzmr.push("omnilogSDK:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End omnilogSDK.js  **************/
/************* Start omnilogClientSDK.js for locale en-GB **************/
try {HZ.ns("HZ.utils");var REFERRER_AUTH_STORAGE_KEY="ja",PORTRAIT=1,LANDSCAPE=2,COMPONENT_TYPE_CLIENT_BROWSER=100,COMPONENT_DETAILED_TYPE_C2_WEB=101,OMNILOG_EVENT="omnilog",isMakkariXhrTransportEnabled=!0,isMakkariPostEnabled=!0,makkariInstance=null;function initMakkariInstance(){HZ.utils.OmnilogData.isMakkariEnabled&&HZ.utils.MakkariSDK&&(makkariInstance=HZ.utils.MakkariSDK.getInstance())}var OmnilogTrackingUtils=HZ.utils.OmnilogTrackingUtils,OmnilogHelper={getClientId:function(){return HZ.utils.OmnilogData.visitorId},getXClientId:function(){return HZ.utils.OmnilogData.visitorIdXs},getRequestId:function(){return HZ.utils.Logger.pageRequestId},getRoutingDescriptor:function(){return{}},getActiveUser:function(){return HZ.utils.OmnilogData.activeUserName?{userName:HZ.utils.OmnilogData.activeUserName,userType:HZ.utils.OmnilogData.activeUserType,userId:HZ.utils.OmnilogData.activeUserId}:null},getAdminUserId:function(){return HZ.utils.OmnilogData.administrativeUserId},getDeviceType:function(){return HZ.utils.OmnilogData.deviceType},getDeviceOrientation:function(){return HZ.utils.OmnilogData.isMobile?PORTRAIT:LANDSCAPE},sendEvent:function(t,n){makkariInstance?makkariInstance.sendEvent(n):HZ.utils.OmnilogData&&HZ.utils.OmnilogData.loggingEndpoint?HZ.utils.Logger.sendOmniLogEvent(OMNILOG_EVENT,n,HZ.utils.OmnilogData.loggingEndpoint):HZ.utils.Logger.sendEventLogLightweight(OMNILOG_EVENT,n)},sendIdentityEvent:function(t,n,i,e){makkariInstance&&makkariInstance.sendIdentityEvent(t,n,i,e)},getEventSource:function(t){try{return HZ.utils.OmnilogTrackingUtils&&HZ.utils.BrowserStorageUtils?t?HZ.utils.OmnilogTrackingUtils.getEventSourceFromEventTarget(t):HZ.utils.OmnilogTrackingUtils.getEventSource():{}}catch(t){return console.log(t),{}}},getViewPortDimensions:function(){return{viewportWidth:0,viewportHeight:0}},initialize:function(t){var n;HZ.utils.OmnilogData&&(makkariInstance||initMakkariInstance(),n={customerid:HZ.utils.OmnilogData.activeUserId?HZ.utils.OmnilogData.activeUserId+"":null,other:HZ.utils.OmnilogData.activeUserName,other2:HZ.utils.OmnilogData.visitorId},makkariInstance&&makkariInstance.init(n,function(){},function(){},{enableXhrTransport:isMakkariXhrTransportEnabled,enablePostMethod:isMakkariPostEnabled}))},shouldEnableEventQueue:function(){return!0},getEnvironment:function(){return HZ.utils.OmnilogData.environment},getExtDeviceId:function(){if(makkariInstance)return makkariInstance.getDeviceId()},getViewContext:function(){return{viewMode:"Default"}},getComponent:function(){return{type:COMPONENT_TYPE_CLIENT_BROWSER,detailedType:COMPONENT_DETAILED_TYPE_C2_WEB,componentName:"C2 Web"}},getDebugUtil:function(){return{sendDebugLog:function(){}}},updateEventSource:function(t){HZ.utils.OmnilogTrackingUtils&&HZ.utils.OmnilogTrackingUtils.updateEventSource(t)},getMid:function(){try{if(makkariInstance)return makkariInstance.getMid();if(window.mParticle&&window.mParticle.Identity)return window.mParticle.Identity.getCurrentUser().getMPID()}catch(t){return""}},getMPid:function(){return""},getIdentityInput:function(){return null},getChannel:function(){return"Internal"},getProductInfo:function(t){try{return HZ.utils.OmnilogTrackingUtils&&"function"==typeof HZ.utils.OmnilogTrackingUtils.getProductInfo?HZ.utils.OmnilogTrackingUtils.getProductInfo(!0,t):{}}catch(t){return console.log(t),{}}},getClientInfo:function(){try{var t=HZ.utils.OmnilogData.visitorId||"NO_CLIENT_ID";return{clientId:t,xClientId:HZ.utils.OmnilogData.visitorIdXs||t||"NO_CLIENT_ID",extClientId:"",clientComponentType:101,userAgent:navigator&&navigator.userAgent?navigator.userAgent:""}}catch(t){return console.log(t),{}}},abTestForOmnilog:function(){return{}},getClientIp:function(){return HZ.utils.OmnilogData.clientIp},getHouzzProTeamId:function(){return null},getHouzzProTeamManagerUserId:function(){return null},getClientUrl:function(){return isMakkariXhrTransportEnabled&&isMakkariPostEnabled&&window.location.href},getFullRequestUrl:function(){return window.location.href},getReferer:function(){return document.referrer},getRegisteredAbTests:function(){return{}},isProAIAssist:function(){return!1}};Object.keys(OmnilogHelper).forEach(function(t){var n=OmnilogHelper[t];OmnilogHelper[t]=function(){var t=Array.prototype.slice.call(arguments);try{return n.apply(OmnilogHelper,t)}catch(t){console.log(t)}}});var omnilogInstance=HZ.utils.OmnilogSDK.getInstance({OmnilogHelper:OmnilogHelper,ExperienceUtils:HZ.utils.OmnilogTrackingUtils.ExperienceUtils,FlowUtils:HZ.utils.OmnilogTrackingUtils.FlowUtils,SessionUtils:HZ.utils.OmnilogSessionUtils});HZ.utils.OmnilogClientSDK=omnilogInstance;

window.hzmr.push("omnilogClientSDK:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End omnilogClientSDK.js  **************/
/************* Start availabilityNotification.js for locale en-GB **************/
try {HZ.ns("HZ.module"),HZ.module.AvailabilityNotification=new function(){var a=_hgt("Check Availability"),i=_hgt("We're sorry, but an unexpected error has occurred. Please try again later."),s="<div class='row'><div class='col-xs-12 header-6 text-center'>%TITLE%</div></div><div class='row'><div class='col-xs-12 text-center'><img src='%IMG_SRC%'></div></div><div class='row'><div class='col-xs-12 text-center'><p>%MESSAGE%</p></div></div>";this.handleAddToWishListResponse=function(e){!function(e){{var t;e&&"true"===e.success?(t={tag:"a",attr:{href:HZ.utils.Links.getGalleryLink(e.wishListGalleryId),target:"_blank",class:"colorLink"}},t=HZ.utils.Html.template(s,{TITLE:e.added?_hgt("This product has already been added to your <t1>Wish List</t1> and you'll be emailed when it's back in stock.",{t1:t}):_hgt("We'll email you when this product is back in stock!"),IMG_SRC:HZ.utils.Links.getSpaceImageUrl(e.spaceId,200,200),MESSAGE:e.added?HZ.data.Spaces.get(e.spaceId).t:_hgt("To help you keep track of {productName}, we've added it to your <t1>Wish List</t1>",{productName:HZ.data.Spaces.get(e.spaceId).t,t1:t})}),HZ.ui.yamdi.Common.hideAllDialogs(),HZ.ui.yamdi.Common.alert(_hgt("We'll let you know"),t)):(HZ.ui.yamdi.Common.hideAllDialogs(),HZ.ui.yamdi.Common.alert(a,e.error||i))}}(e)}};

window.hzmr.push("availabilityNotification:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End availabilityNotification.js  **************/
/************* Start extracting text for productListingInfoRenderer.js for locale en-GB **************/
(function(){var _hzxt={"Most products on Houzz ship for free. To confirm whether an item has free shipping, simply look for the \"Free Shipping!\"":"Most products on Houzz are shipped for free. To confirm whether an item has free shipping, simply look for the \"Free Shipping!\"","Note: Free shipping is not available to AK, HI, PR or Canada. Some exclusions apply.":"Note: Free shipping is not available to The Highlands, Aberdeen, Dundee, Perth, Inverness and remote areas in Scotland. Some exclusions apply."};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for productListingInfoRenderer.js  **************/
/************* Start productListingInfoRenderer.js for locale en-GB **************/
try {HZ.ns("HZ.listingInfo"),HZ.listingInfo.Renderer=new function(){var _,f,E,S,I,m,b=101===HZ.utils.Config.currentSiteId||102===HZ.utils.Config.currentSiteId,T=null,t=_hgt("Buy from this Seller"),C=(_hgt("View Return Policy"),_hgt("Visit Store")),R=_hgt("Top Seller"),O=_hgt("Show Additional Sellers"),L=null,N=["SE","DK","DE","AU","RU","US","SG","IE","IT","FR","ES","GB","JP","IN","NZ","CA"],v='<li class="listing %SELECTED_CLASS%" objid="%OBJ_ID%" posid="%POS_ID%"><p class="product-price"><span class="text-xl text-bold">%PRICE%</span></p><p class="text-bold">%VENDOR_NAME% <span class="vendor-rate mrs">%VENDOR_RATE%</span><span class="shipping text-gray-lighter text-unbold text-m">%SHIPPING_COST%</span></p>'+(b?"":'<p><a class="return-policy text-primary"vendorId="%VENDOR_ID%" hid="%SPACE_ID%" href="javascript:;">%VENDOR_POLICIES%<span class="more-icon"></span></a></p>')+'<p class="lead-time">%LEAD_TIME%</p>%SHIPPING_RESTRICTION%%IMPORT_MESSAGE%%NON_RETURNABLE%<a class="btn btn-primary buy-button" data-listing-id="%LISTING_ID%" data-space-id="%SPACE_ID%" href="javascript:;">'+t+"</a></li>",H=0,P=0,A=[],D=[];this.setMountNode=function(t){T=t},this.updateView=function(t,e,i,s,n){var l=HZ.data.ProductsInfo.get(t);L=l?l.plid:-1,H=t,P=e,A=[],D=[];var a=HZ.data.ListingsInfo.get(e),o=a&&a.mpListing;(HZ.data.SpaceListingIds.get(t)||[]).forEach(function(t){var i=HZ.data.ListingsInfo.get(t);i&&t!=e&&(i.mpListing?A.push(i):i.ppcUrl&&D.push(i))}),S=A.length,I=D.length,m=S+I;var p="header-4",r=n?'<i class="hzi-font hz-panel__toggle"></i>':"";i&&(p="sectionTitle text-m text-bold");var c,d,h,u=_hgt("Shipping and Returns"),g=S||o?u:_hgt("Seller Information");T&&(l=$(T).empty(),t=$('<div class="curMpListing"></div>'),o&&(i=HZ.utils.Links.getPageUrl("return-policy"),u=_hgt("Return Policy"),d=$('<h2 class="'+p+'"><span class="header-content">'+g+"</span>"+r+"</h2>").appendTo(t),b&&t.append('<a target="_blank" class="text-primary return-policy-link" href="'+i+'">'+u+'<span class="more-icon"></span></a>'),$('<ul class="list-unstyled listings" compid="ven_lst_cur"></ul>').appendTo(t).append(this.renderListing(a,o,0)),l.append(t),n&&d.click(function(){$(".seller-shipping-info-collapse").toggleClass("seller-shipping-info-collapse--expanded")})),0<m&&(d=$('<div class="otherListings"></div>'),0<S&&(c=_hgtp("","Also available from this seller on Houzz","Also available from these sellers on Houzz",S),$('<h2 class="'+p+' mpp collapsed">'+c+"</h2>").appendTo(d),_=$(this.renderListingGroup(A,!0)).appendTo(d),h=3,(h=$.isNumeric(s)?s:h)<S&&(s=$('<button class="btn btn-secondary btn-block">'+O+"</button>"),(s=3!=h?$('<a href="javascript:;" class="colorLink text-bold moreListings">'+O+'<span class="more-icon"></span></a>'):s).appendTo(d),s.click(function(){_.removeClass("collapsed"),$(this).remove()}))),0<I&&(c=_hgtp("","Available from this External Website","Available from {numberOfWebsites} External Websites",I,{numberOfWebsites:I}),f=$('<h2 class="'+p+' ppc collapsed">'+c+'<i class="more-icon"></i></h2>'),(f=3!=h?$('<a href="javascript:;" class="colorLink text-bold ppc collapsed">'+c+'<i class="more-icon"></i></a>'):f).appendTo(d),E=$(this.renderListingGroup(D,!1)).appendTo(d),f.click(function(){f.add(E).toggleClass("collapsed")})),l.append(d)))},this.renderListingGroup=function(t,e){var s;return t&&(s=$('<ul class="list-unstyled listings trackMe" compid="ven_lst_grp"></ul>').addClass(e?"mpp":"ppc").addClass("collapsed"),t.forEach(function(t,i){s.append(this.renderListing(t,e,i))}.bind(this))),s},this.renderListing=function(t,i,e){var s,n,l,a,o,p,r,c,d,h,u,g,_,f,E,S,I,m=L==t.lid;return t&&(t.avail||m)&&(s=t.lid,I=H,n=HZ.data.Spaces.get(I),l=HZ.data.ProductsInfo.get(I),a=s==P,o=HZ.data.Users.get(t.vid),p=t.useShippingCalculator,i?(r=t.vfs||!1,E=t.fs,c=t.efs,d=t.ret,h=t.fsm,f=i=u="",p||(m?b&&(u=r&&HZ.lb.Config.isTradePro?_hgt("- Pay one shipping fee of {shippingCost} for all items from {manufacturer}.",{shippingCost:t.shpc,manufacturer:l.manuName}):E?_hgt(" - Free Shipping!"):c?_hgt("Free Shipping over {freeShippingMinimum} for <t1>eligible</t1> products",{freeShippingMinimum:h,t1:{tag:"span",attr:{class:"highlighted"}}}):_hgt("+{shippingCost} Shipping",{shippingCost:t.shpc}),(E||c)&&(i=HZ.utils.Html.template("<p>%NOTE%</p>",{NOTE:_hgt("Note: Free shipping is not available to AK, HI, PR or Canada. Some exclusions apply.")})),d||(f=HZ.utils.Html.template('<p class="text-muted">%NOTE%</p>',{NOTE:_hgt("Non-Returnable. <t1></t1>",{t1:{tag:"span",attr:{class:"listing__non-returnable hzi-font hzi-Info text-l"}}})}))):u=E?_hgt(" - Free Shipping!"):_hgt("+{shippingCost} Shipping",{shippingCost:t.shpc})),E="",t.hasOwnProperty("ifcc")&&t.ifcc.length&&(g=t.ifcc.toUpperCase(),-1===N.indexOf(g)&&(g="other"),_=t.ifc,E=HZ.utils.Html.template('<span class="country-flag country-flag--%COUNTRY_CODE%"></span> %IMPORT_MESSAGE%',{COUNTRY_CODE:g,IMPORT_MESSAGE:_hgt("Shipped from {importCountry}",{importCountry:_})})),g=!t.dv&&o&&o.topsell?R:"",_=HZ.utils.Links.getSoldByLink(t.vid),m=HZ.utils.Html.template('<a target="_blank" href="%LINK_URL%" title="%TITLE_ATTR%">%LINK_TEXT%</a>',{LINK_URL:_,TITLE_ATTR:"",LINK_TEXT:o?m?_hgt("Sold by {vendorName}",{vendorName:o.d}):o.d:""}),m=t.dv?"Sold by Houzz":m,f={SELECTED_CLASS:a?"current":"",PRICE:t.p,SHIPPING_COST:u,VENDOR_NAME:m,VENDOR_RATE:g,LEAD_TIME:t.ltime,VENDOR_ID:t.vid,SPACE_ID:H,VENDOR_POLICIES:_hgt("View Return Policy"),SHIPPING_RESTRICTION:i,NON_RETURNABLE:f,IMPORT_MESSAGE:E,POS_ID:e,OBJ_ID:t.vid},(E=$(HZ.utils.Html.template(v,f))).on("click",".buy-button",{listingId:s,spaceId:I},this.handleBuyClick.bind(this)).on("click",".return-policy",HZ.module.ReturnPolicy.handleReturnPolicyClick),(I=E.find("span.highlighted")).length&&(S=_hgt('Most products on Houzz ship for free. To confirm whether an item has free shipping, simply look for the "Free Shipping!"'),I.on("click",function(){var t=$(this);t.tipBubble({id:"eligible-free-tooltip",content:HZ.utils.Html.template('<div class="product-seller-tooltip__body"><p class="product-seller-tooltip__message mb0">%TOOLTIP_MESSAGE%</p></div>',{TOOLTIP_MESSAGE:S}),point:"north",offsetX:-Math.round(t.position().left)+(HZ.utils.Config.isResponsive?10:-44),offsetY:0,width:"278px",position:"absolute",showCloseBtn:!0,borderColor:"#ccc",fadeDuration:0})})),(I=E.find(".listing__non-returnable")).length&&I.hover(function(){$(this).tipBubble({content:_hgt("This product cannot be returned."),point:"south",id:"sidebar-return-tooltip",width:200,offsetX:-18,offsetY:2,borderColor:"#ccc",showCloseBtn:!1,position:"absolute",fadeDuration:0,bubblePadding:"4px"})},function(){$(this).tipBubble("hide")})):(f={SELECTED_CLASS:a?"current":"",PRICE:t.p,VENDOR_NAME:o.d,VISIT_STORE_URL:t.ppcUrl||n.tl,VISIT_MESSAGE:a?"":C,POS_ID:e,OBJ_ID:t.vid},E=$(HZ.utils.Html.template('<li class="listing %SELECTED_CLASS%" objid="%OBJ_ID%" posid="%POS_ID%"><p class="text-bold">%VENDOR_NAME%</p><p class="price"><span class="product-price text-xl text-bold">%PRICE%</span></p><a class="btn btn-primary visit-store-button" href="%VISIT_STORE_URL%" target="_blank">%VISIT_MESSAGE%</a></li>',f)))),E},this.handleBuyClick=function(t){t=t.data;HZ.cart.Actions.addItem(t.spaceId,t.listingId,1)}};

window.hzmr.push("productListingInfoRenderer:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productListingInfoRenderer.js  **************/
/************* Start productQuantityRenderer.js for locale en-GB **************/
try {HZ.ns("HZ.productQuantity"),HZ.productQuantity.Renderer=new function(){var n,s=null,o=null,l=null,i=null,r='<div class="%CONTAINER_CLASSES%"><label for="qtySelector" class="%LABEL_CLASSES%">%QUANTITY_LABEL%</label><select id="qtySelector" class="form-control">%QTY_OPTIONS%</select></div>',c='<div class="qty-comment %CLASS%">%QTY_COMMENT%</div>',u='<option value="%QTY%">%QTY_LABEL%</option>',p='<div class="soldByBox__form"><div class="one-line"><label for="coverageInput" class="text-bold">%COVERAGE_LABEL%</label><span class="input-container"><input id="coverageInput" class="coverage-input" type="number" min="0.01" step="0.01" max="2500" value="%COVERAGE_AREA%"/><span class="coverage-unit text-muted text-xs">%UNIT%</span></span></div><div class="one-line mtm">%QUANTITY%</div></div>',d='<div class="soldByBox__calculations" id="coverageCalculations"><p class="text-m mbs coverage-string">%COVERAGE%</p><p class="text-bold text-xl mb0 coverage-price">%PRICE%</p></div>',g='<p class="text-s text-muted mtm coverage-ten-percent custom-cb"><input type="checkbox" id="coverageToggle" checked/><label for="coverageToggle" class="custom-cb-label mb0">%LABEL% </label> <span class="sold-by-box--tt-trigger text-primary">%WHY_LABEL%</span></p>';this.setMountNode=function(t){n=t},this.refresh=function(){n&&this.updateView(l,i)},this.updateView=function(t,e){var a=HZ.data.ListingsInfo.get(e);l=t,i=e,n.empty(),n.append(this.getQuantityHtml(a)),s&&s.destroy(),o&&o.destroy(),HZ.QtySelector&&((e=document.getElementById("qtySelector"))&&"SELECT"===e.nodeName.toUpperCase()&&$(e).customDropdown(),(s=new HZ.QtySelector).init(e),a&&a.sbb&&(a={spaceId:t,listingId:a.lid,unit:a.sbbUnit,area:a.sbbCoverage,qtySelector:s,coverageInput:document.getElementById("coverageInput"),calculationsEl:document.getElementById("coverageCalculations"),percentToggle:document.getElementById("coverageToggle")},o=new HZ.QtySelector.BoxSelector(a),s.addChangeListener(function(t,e){o.calculate(t).done(function(t){"external"!==e.type&&o.updateCoverageInput(t.coverage)})})))},this.getQuantityHtml=function(t){var e=$("<div>"),a="",n="",s=!!t&&t.avail;return!!t&&t.buyable&&(s?(s=parseInt(t.q,10),t.sbb?(e.append(this.getBoxQuantityNode(t)),e.append($(HZ.utils.Html.template(g,{LABEL:_hgt("Add 10% for waste."),WHY_LABEL:_hgt("Why?")})))):(s<10?a=_hgt("Only {quantity} Left!",{quantity:s}):HZ.lb.Config.alwaysShowQtyStr&&(a=_hgt("10 or more in stock")),this.getQuantityDropdownNode(s,null).appendTo(e))):(a=_hgt("Sold Out"),n="sold-out")),a&&e.append($(HZ.utils.Html.template(c,{QTY_COMMENT:a,CLASS:n}))),e.html()},this.getBoxQuantityNode=function(t){var e,a=$('<div id="soldByBox"/>').addClass("soldByBox__container"),n=parseInt(t.q,10),s=t.sbbUnitStr,n=this.getQuantityDropdownNode(n,s),n=$("<div/>").append(n),n=$(HZ.utils.Html.template(p,{QUANTITY:n.html(),COVERAGE_LABEL:_hgt("Covers:"),UNIT:t.sbbUnit,COVERAGE_AREA:t.sbbCoverage})),o={coverage:t.sbbCoverage,unit:t.sbbUnit,t1:{tag:"span",attr:{class:"text-bold"}}};switch(s){case"box":e=_hgt("1 box, covers <t1>{coverage} {unit}</t1>",o);break;case"sheet":e=_hgt("1 sheet, covers <t1>{coverage} {unit}</t1>",o);break;case"piece":e=_hgt("1 piece, covers <t1>{coverage} {unit}</t1>",o);break;case"roll":e=_hgt("1 roll, covers <t1>{coverage} {unit}</t1>",o)}t=$(HZ.utils.Html.template(d,{COVERAGE:e,PRICE:_hgt("Total: {price}",{price:t.sbbBoxPrice})}));return a.append(n,t),a},this.getQuantityDropdownNode=function(t,e){var a,n=Math.min(t,9),s=[],o=_hgt("Quantity:"),l="",i="";null===e&&HZ.lb.Config.isMainProdBtnQuantityInline&&(e="qty");for(var c=1;c<=n;c++){switch(e){case"box":a=_hgtp("0 boxes","1 box","{quantity} boxes",c,{quantity:c});break;case"sheet":a=_hgtp("0 sheets","1 sheet","{quantity} sheets",c,{quantity:c});break;case"piece":a=_hgtp("0 pieces","1 piece","{quantity} pieces",c,{quantity:c});break;case"roll":a=_hgtp("0 rolls","1 roll","{quantity} rolls",c,{quantity:c});break;case"qty":a=_hgt("Quantity: {quantity}",{quantity:c}),o="";break;default:a=c,l="form-inline"}s.push(HZ.utils.Html.template(u,{QTY:c,QTY_LABEL:a}))}if(e&&(i="text-bold"),9<t){switch(e){case"box":a=_hgt("{maxQuantity}+ boxes",{maxQuantity:10});break;case"sheet":a=_hgt("{maxQuantity}+ sheets",{maxQuantity:10});break;case"piece":a=_hgt("{maxQuantity}+ pieces",{maxQuantity:10});break;case"roll":a=_hgt("{maxQuantity}+ rolls",{maxQuantity:10});break;default:a="10+"}s.push(HZ.utils.Html.template(u,{QTY:"10+",QTY_LABEL:a}))}return $(HZ.utils.Html.template(r,{CONTAINER_CLASSES:l,LABEL_CLASSES:i,QUANTITY_LABEL:o,QTY_OPTIONS:s.join("")}))}};

window.hzmr.push("productQuantityRenderer:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productQuantityRenderer.js  **************/
/************* Start extracting text for productRenderer.js for locale en-GB **************/
(function(){var _hzxt={"MSRP:":"RRP:"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for productRenderer.js  **************/
/************* Start productRenderer.js for locale en-GB **************/
try {HZ.ns("HZ.modules"),HZ.modules.ProductRenderer=new function(){this.renderTradePriceBadge=function(e){return'<span class="text-xs text-bold trade-badge">'+e+"</span>"},this.renderProductBadge=function(e,r){var s=null,t=e&&e.hasOwnProperty("ifcc")&&e.ifcc.length,a=e&&e.hasOwnProperty("itx")&&!0===e.itx,d=e&&e.hasOwnProperty("tradeExclusiveBadge")?e.tradeExclusiveBadge:null,n=r&&r.hasOwnProperty("bstslr")&&!0===r.bstslr,l=r&&r.hasOwnProperty("excl")&&!0===r.excl;return t?(t=e.ifcc.toUpperCase(),s=HZ.modules.ProductBadge.renderFromCountryBadge(t,e.ifc)):a?s=HZ.modules.ProductBadge.renderTradeExclusiveBadge(d):r&&(n?s=HZ.modules.ProductBadge.renderBestSellerBadge():l&&(s=HZ.modules.ProductBadge.renderExclusiveBadge())),s},this.renderSavings=function(e){e=e&&e.hasOwnProperty("itp")&&!0===e.itp?e.tas||"":e&&e.pasf?e.pasf:"";return HZ.utils.Html.template('<div class="col-xs-12"><span class="text-primary">%savings%</span></div>',{savings:e})}};

window.hzmr.push("productRenderer:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productRenderer.js  **************/
/************* Start extracting text for viewSpace.js for locale en-GB **************/
(function(){var _hzxt={"Add to Cart":"Add to Basket"};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for viewSpace.js  **************/
/************* Start viewSpace.js for locale en-GB **************/
try {var imageTagsObj,delayPopupTimeout;function imageTag(){}function ImageTags(){this.imageTags=null,this.imageTagsDiv=null,this.spaceId=-1,this.width=0,this.height=0,this.scale=1,this.displayState=!0,this.toggleState=!1,this.init=function(e,a,t,i){this.imageTags=new Array,this.imageTagsDiv=document.getElementById("imageTagsDiv"),this.imageTagsBoundsDiv=document.getElementById("imageTagsBoundsDiv"),this.spaceId=e,this.width=a,this.height=t,this.scale=i},this.getImageTag=function(e){return this.imageTags[e]},this.getImageTagByProductSpaceId=function(e){for(var a=0;a<this.imageTags.length;a++)if(this.imageTags[a].targetSpaceId==e)return this.imageTags[a];return null},this.addImageTag=function(e,a,t,i,s,n,g,d,o,l,r,m,u,c){var h=new imageTag;h.imageTagId=e,h.vendorName=a,h.link=t,h.comments=i,h.x=s,h.y=n,h.type=g,h.targetSpaceId=d,h.canEdit=o,h.canDelete=l,h.boundX=r,h.boundY=m,h.boundWidth=u,h.boundHeight=c;c=this.imageTags.length;return this.imageTags.push(h),c},this.findImageTag=function(e){for(var a=0;a<this.imageTags.length;a++)if(this.imageTags[a].imageTagId==e)return a},this.updateImageTag=function(e,a,t,i,s,n,g,d){e=this.findImageTag(e),e=this.imageTags[e];e.vendorName=a,e.link=t,e.comments=i,e.x=s,e.y=n,e.type=g,e.targetSpaceId=d,this.clearImageTags(),this.showImageTags()},this.deleteImageTag=function(e){e=this.findImageTag(e);this.imageTags.splice(e,1),this.clearImageTags(),this.showImageTags()},this.addImageTagHTML=function(e){var a,t,i,s=this.imageTags[e];null!=this.imageTagsDiv&&(t=this.scale*s.x-18,i=this.scale*s.y-5,this.imageTagsDiv.innerHTML+="<div id='imageTag"+e+"' class='imageTag animate' style='left:"+t+"px;top:"+i+"px' onmouseout=imageTagOnMouseOut(event) onmouseover='imageTagOnMouseOver("+e+")'><i class='hzi-font hzi-Tag'></i></div>",this.imageTagsDiv.style.display="block"),null!=this.imageTagsBoundsDiv&&s.boundWidth&&s.boundHeight&&(a=this.scale*s.boundWidth,t=this.scale*s.boundHeight,i=this.scale*s.boundX-a/2,s=this.scale*s.boundY-t/2,this.imageTagsBoundsDiv.innerHTML+="<div id='imageTagBound"+e+"' class='imageTagBound' style='left:"+i+"px;top:"+s+"px;width:"+a+"px;height:"+t+"px;' onmouseout=imageTagOnMouseOut(event) onmouseover='imageTagOnMouseOver("+e+")'></div>",this.imageTagsBoundsDiv.style.display="block")},this.hasTags=function(){return null!=this.imageTagsDiv&&""!=this.imageTagsDiv.innerHTML},this.clearImageTags=function(){null!=this.imageTagsDiv&&(this.imageTagsDiv.innerHTML="",this.imageTagsDiv.style.display="none"),null!=this.imageTagsBoundsDiv&&(this.imageTagsBoundsDiv.innerHTML="",this.imageTagsBoundsDiv.style.display="none")},this.resetImageTags=function(){this.imageTags=new Array,null!=this.imageTagsDiv&&(this.imageTagsDiv.innerHTML="")},this.showImageTags=function(e){if(0!=this.displayState){var a;if(0==this.hasTags())for(this.clearImageTags(),a=0;a<this.imageTags.length;a++)this.addImageTagHTML(a);null!=this.imageTagsDiv&&(this.imageTagsDiv.style.display="block",this.toggleState=!0),null!=this.hideTimeout&&clearTimeout(this.hideTimeout),this.hideTimeout=null!=e?setTimeout("imageTagsObj.hideImageTags()",e):null}},this.hideImageTags=function(){null!=this.imageTagsDiv&&(this.imageTagsDiv.style.display="none",this.toggleState=!1),null!=this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},this.enableImageTags=function(){this.displayState=!0,this.showImageTags()},this.disableImageTags=function(){this.displayState=!1,this.hideImageTags()},this.getSpaceId=function(){return this.spaceId}}function enableImageTags(){null!=imageTagsObj&&imageTagsObj.enableImageTags(),ImageTagsUI.enableTagsUI(),document.getElementById("imageTagPopup").style.display="none";var e=document.getElementById("mainImage");$(".addImageTagGuide").length&&(e.style.cursor="crosshair")}function disableImageTags(){null!=imageTagsObj&&imageTagsObj.disableImageTags(),ImageTagsUI.disableTagsUI(),document.getElementById("mainImage").style.cursor="default"}function imageTagOnMouseOver(e){var a;clearTimeout(delayPopupTimeout),ImageTagsUI.dismiss(),ImageTagsUI.isEditing()||(a=imageTagsObj.getImageTag(e),ImageTagsUI.setCurrentImageTag(a),ImageTagsUI.setScreen("view"),ImageTagsUI.show(),$("#imageTagBound"+e).length&&$("#imageTagBound"+e).addClass("active"))}function imageTagOnMouseOut(e){ImageTagsUI.isEditing()||0!=isMouseReallyOut(e,"imageTagPopup")&&(ImageTagsUI.allowDelay()?delayPopupTimeout=setTimeout(function(){ImageTagsUI.dismiss(),hideActiveTagBound()},100):(ImageTagsUI.dismiss(),hideActiveTagBound()))}function imageTagPopupOnMouseOver(){clearTimeout(delayPopupTimeout)}function imageTagPopupOnMouseOut(e){ImageTagsUI.isEditing()||0!=isMouseReallyOut(e,"imageTagPopup")&&(ImageTagsUI.dismiss(),hideActiveTagBound())}function hideActiveTagBound(){$(".imageTagBound.active").length&&$(".imageTagBound.active").removeClass("active")}function onImageMouseOut(e,a){0!=isMouseReallyOut(a,e.name)&&(e.className="viewImage",window.imageTagsObj&&imageTagsObj.hideImageTags())}function initImageTags(e,a,t,i){(imageTagsObj=new ImageTags).init(e,a,t,i)}function updateImageTags(e){if(imageTagsObj.getSpaceId()==e){var a=HZ.data.ImageTags.get(e);if(a){imageTagsObj.resetImageTags();for(var t=0;t<a.length;t++){var i=a[t];i.edit="true"==i.edit||!0===i.edit,i.delete="true"==i.delete||!0===i.delete;var s,n,g,d=$("<div>"+i.c+"</div>").text();imageTagsObj.addImageTag(i.tid,i.v,i.l,d,i.x,i.y,i.t,i.sid,i.edit,i.delete,i.boundX,i.boundY,i.boundWidth,i.boundHeight),!i.sid||(s=HZ.data.Spaces.get(i.sid))&&(g=s.iids[0],(n=HZ.data.Images.get(g))[g]&&(n=n[g]),d=s.ow,(g=HZ.data.Users.get(d))[d]&&(g=g[d]),g={spaceId:i.sid,title:s.t,comments:s.c,link:s.l,linkId:"",width:n.w,height:n.h,price:s.price,available:s.mp,professionalId:s.ow,professionalName:g.d,isAdvertiseSpace:!1,buttonText:_hgt("Visit Store __MORE")},productsObj.addProduct(g))}imageTagsObj.showImageTags()}}}HZ.ns("HZ.viewSpace"),HZ.viewSpace.ViewSpaceRenderer=new function(){var r;this.handleThumbClicked=function(e){var a,t,i=$(e.target);i.attr("i")&&(a=i.attr("i"),t=r.iids[a],t=HZ.data.Images.get(t),function(e,a,t){var i=$(t.target);this.setMainImage(e,a,function(){i.addClass("loaded")})}.call(HZ.viewSpace.ViewSpaceRenderer,t,a,e),$(".altImagesDiv").find(".selected").removeClass("selected"),i.addClass("selected"))},this.updateView=function(e){var a=$(".altImagesDiv");r=HZ.data.Spaces.get(e),a.empty();var t,i,s,n=64;if($(".altImagesDiv").closest(".altImagesDivWrap").length&&(n=45,$(".altImagesDiv").closest(".productImage").css({"min-height":r.iids.length*(n+8)})),r.prod&&1<r.iids.length){for(var g=0;g<r.iids.length;g++)i=HZ.data.Images.get(r.iids[g]),(i=$("<img />")).attr("i",g).attr("width",n).attr("height",n).attr("src",HZ.utils.Links.getSpaceImageUrl(e,n,n,i.bg,i.ts,g)),a.append(i);$(".altImagesDiv").find("img:first-child").addClass("selected")}r.prod&&1<=r.iids.length&&(HZ.viewSpace.PhotoZoom.updateSpaceId(e),$("#stickyCta").length&&(t=$("#stickyCta .product-image img"),s=HZ.data.Spaces.get(e).iids[0],i=HZ.data.Images.get(s),s=HZ.utils.Links.getSpaceImageUrl(e,t.attr("width"),t.attr("height"),i.bg,i.ts,0),t.attr("src",s)))},this.setMainImage=function(e,a,t){var i=$("#mainImage"),s="0px ",n={w:e.w,h:e.h},g=HZ.ui.Utils.getBoundRect(n,{w:640,h:640});s+=(640-g.w)/2+"px",i.length&&i.attr("src",HZ.utils.Links.getSpaceImageUrl(r.id,g.w,g.h,e.bg,e.ts,a)).load(function(){i.attr("width",g.w).attr("height",g.h).css("padding",s),t&&t.call()});var d,o,l=$("#mainImage2");l.length&&(d=l.width(),o=l.height(),l.attr("src",HZ.utils.Links.getSpaceImageUrl(r.id,d,o,e.bg,e.ts,a)).load(function(){l.attr("width",d).attr("height",o),t&&t.call()}))}},HZ.ns("HZ.productVariation"),HZ.productVariation.ViewSpaceRenderer=new function(){var c='<dt class="key">%LABEL%</dt><dd class="value">%VALUE%</dd>',h='<dt class="key">'+_hgt("Sold By")+'</dt><dd class="value"><span class="vendorName"><a target="_blank" href="%VALUE1%" class="colorLink">%VALUE2%</a>&nbsp;</span></dd>',p='<dt class="key">'+_hgt("Sold By")+'</dt><dd class="value"><span class="vendorName">%VALUE%</span></dd>',T='<dt class="key">'+_hgt("Manufactured By")+'</dt><dd class="value"><span class="productManufacturer">%VALUE%</span></dd>',I="swlabel",v="swvalue";this.updateView=function(e,a){var t=HZ.data.Spaces.get(e),i=HZ.data.ProductsInfo.get(e),s=HZ.data.SpaceListingIds.get(e),n=s&&-1!==s.indexOf(HZ.productVariation.Manager.getVendorListingId())?HZ.productVariation.Manager.getVendorListingId():i.plid,g=($("#availabilityNotificationBtn"),HZ.data.ListingsInfo.get(n)),d=g&&g.sbb,o=HZ.lb.Config.isMainProdBtnQuantityInline;HZ.modules.ProductPriceRenderer.updateView(e,n),HZ.modules.ProductMainButton.updateView(e,n),HZ.modules.ProductDocumentRenderer.updateView(i),HZ.listingInfo.Renderer.updateView(e,n,!1,null,a);var l=t.iids[0],r=HZ.data.Images.get(l);$("#hzProductInfo h1").html(t.t);var m=$(".mpQtyBox"),s=$(".qtyAlert"),l=$(".product-main-button-mount");l.removeClass("col-xs-7 col-lg-8 col-xs-12"),m.removeClass("col-lg-4 col-xs-5 col-xs-12 mpQtyBox--inline mpQtyBox--padded mtl"),s.empty(),(g.pending||g.buyable)&&g.avail?(m.addClass("inStock"),d?(m.detach().insertAfter($("#vlPrices")),l.addClass("col-xs-12")):(m.toggleClass("mpQtyBox--padded col-lg-4 col-xs-5",o).toggleClass("mpQtyBox--inline",!o),g.q<10&&s.html(_hgt("Only {remainingStockQuantity} left!",{remainingStockQuantity:g.q})),l.addClass("col-xs-7 col-lg-8"),o&&0===l.prev().length&&l.before(m.detach()))):(m.toggleClass("nonBuyableParent",!g.buyable),m.removeClass("inStock").addClass("col-xs-12"),l.addClass("col-xs-12")),HZ.productQuantity.Renderer.updateView(e,n);d=g.pl,s=d?g.plink:"",o=g.pdd,m=$(".buyBox .mp-promo"),l=$(".buyBox  .mp-promo-discount");d?(m.find(".mp-promo-name").html(d).attr("href",s),m.find(".mp-promo-value").html(o),u=g.pasf,l.html(u),l.show(),m.removeClass("hide").show()):(m.hide(),l.hide()),$("#vlPrices").show();n=g.hasOwnProperty("ntdcm")?g.ntdcm:"";l.after(n);var d=$(".shipping-info-link"),s=$(".product-shipping_message"),o="",u=_hgt("Shipping & Seller Information<t1></t1>",{t1:{tag:"span",attr:{class:"more-icon"}}}),m=g.fs,l=g.efs,n=g.fsm;101===HZ.utils.Config.currentSiteId?m?u=_hgt("Free Shipping and 30-Day Returns<t1></t1>",{t1:{tag:"span",attr:{class:"more-icon"}}}):l&&(u=_hgt("Free Shipping over {minimum} and 30-Day Returns<t1></t1>",{minimum:n,t1:{tag:"span",attr:{class:"more-icon"}}})):m&&(o=_hgt("Free Shipping!")),d.html(u),s.html(o),i&&i.manu?($(".productManufacturer").html(i.manu),$(".productManufacturer").show()):$(".productManufacturer").hide();o=t.c;o||i&&(o=i.desc),o=o||t.desc,a?$("#hzProductInfo .description .hz-product-description-content").html(o):$("#hzProductInfo .description").css("height","").peekable("setContent",o),g.ltime?$("#hzProductInfo .leadTime").html(g.ltime).show():$("#hzProductInfo .leadTime").hide(),t.c&&i.desc?($("#hzProductInfo .vendorDesc").show(),$("#hzProductInfo .descContent").peekable("setContent",i.desc)):($("#hzProductInfo .descContent").peekable("setContent",""),$("#hzProductInfo .vendorDesc").hide()),$("#hzProductInfo .returnPolicyLink").attr("hid",t.id),$(".pre-sales-phone-product-id").text(t.id),function(e,i,a){var t,s,n,g,d=$("#hzProductInfo dl.hzAttributes");{var o;d.empty(),i&&i.manu&&(l=i.manuId,o=l?HZ.utils.Links.getManufacturerLink(i):"",l=o?HZ.data.Users.get(l).d:i.manu+"&nbsp;",n=o?'<a target="_blank" href="'+o+'" class="colorLink">'+l+"</a>":l,d.append(HZ.utils.Html.template(T,{VALUE:n})))}{var l;a&&a.vid&&HZ.data.Users.get(a.vid)?(l=a.vid,t=HZ.data.Users.get(l).d,l=HZ.utils.Links.getMarketplaceVendorBrowseProductLink(l),a.dv?d.append(HZ.utils.Html.template(p,{VALUE:"Houzz"})):d.append(HZ.utils.Html.template(h,{VALUE1:l,VALUE2:t}))):(t=d.find(".vendorName").html()||"&nbsp;",a.dv?d.append(HZ.utils.Html.template(p,{VALUE:"Houzz"})):d.append(HZ.utils.Html.template(p,{VALUE:t})))}i&&(s=i[I],n=i[v],s&&n&&(g=HZ.utils.Html.template(c,{LABEL:s,VALUE:n}),d.append(g)),HZ.data.ProductAttributes.forEach(function(e){var a=e.unit,t=e.key;"dimensions"!==a&&"weight"!==a&&"s"!==t&&(s=e.label,null!==(n=i[t])&&(g=HZ.utils.Html.template(c,{LABEL:s,VALUE:n}),d.append(g)))}),void 0!==i.assembly&&d.append(HZ.utils.Html.template(c,{LABEL:_hgt("Assembly Required"),VALUE:i.assembly?_hgt("Yes"):_hgt("No")})));a=HZ.utils.Styles.getStyleName(e.s),(t=HZ.data.Categories.getCategoryById(e.cat))&&4!==parseInt(t.categoryId)&&d.append(HZ.utils.Html.template(c,{LABEL:"Category",VALUE:UIHelper.ucwords(t.name)}));a&&d.append(HZ.utils.Html.template(c,{LABEL:"Style",VALUE:UIHelper.ucwords(a)}));e.ma&&d.append(HZ.utils.Html.template(c,{LABEL:"Location",VALUE:UIHelper.ucwords(e.ma)}));d.peekable("refresh")}(t,i,g),HZ.viewSpace.ViewSpaceRenderer.updateView(t.id),HZ.viewSpace.ViewSpaceRenderer.setMainImage(r,0),HZ.data.CurrentSessionUser&&($("#addToIdeabookBtn").unbind("click").bind("click",function(){showAddToMyGalleryForm(e)}),$("#askQuestionBtn").unbind("click").bind("click",function(){showPostToForumForm(e,1)}),(HZ.houseUtils.Permissions.hasPermission(t,HZ.houseUtils.Permissions.CAN_BURY_HOUSE)||HZ.houseUtils.Permissions.hasPermission(t,HZ.houseUtils.Permissions.CAN_FEATURE_HOUSE))&&(0<(t=$("#burySpaceLink, #unburySpaceLink, #featureSpaceLink, #unfeatureSpaceLink")).length&&t.remove(),$(".admin-controls").empty(),0===(t=$("#refreshSpaceLink")).length&&(t=$('<a id="refreshSpaceLink" class="colorLink viewSpaceLinkBtn" href="">Refresh to bury/feature</a>')),$(".admin-controls").append(t),t.attr("href",HZ.utils.Links.getSpaceLink(e))))}},$(document).ready(function(){$("#viewSpaceUserActions").on("click",".promote, .touch-promote, .save-button, .email-button",function(){HZ.spaceActions.handleButtonClick($(this),config)});var e,t=null;function a(){$(".recommendedItem").each(function(){var e=$(this).find(".recommendedSpace").height();e<280&&(e=280),$(this).find(".recommendedDetails").height(e)})}$("#moreKeywords").peekable(),HZ.message.Bus.subscribe(HZ.message.Messages.LIGHTBOX_UNLOAD,"viewSpaceLBEdit",function(){return t?window.location.href=HZ.utils.Links.getSpaceLink(t):HZ.productVariation.Manager.setRenderer(HZ.productVariation.ViewSpaceRenderer),!1}),HZ.message.Bus.subscribe(HZ.message.Messages.PHOTO_UPDATED,"viewSpaceLBEdit",function(e,a){t=a.spaceId}),HZ.message.Bus.subscribe(HZ.message.Messages.PHOTO_REMOVED,"viewSpaceLBEdit",function(e,a){t=a.spaceId}),$(".recommendedItems").length&&(a(),$(window).resize(function(){clearTimeout(e),e=setTimeout(a,100)})),$(".spaces-grid").each(function(e,a){$(a).find(".space-meta").equalizeHeights()}),HZ.ns("HZ.reviews"),HZ.reviews.ProductReviewsUIManager&&HZ.reviews.ProductReviewsUIManager.getInstance().initFocusReviews(),$(".questionsMore.loadMoreBtn").click(function(){$("#moreQuestionsContainer").removeClass("hidden")})});

window.hzmr.push("viewSpace:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End viewSpace.js  **************/
/************* Start productZoom.js for locale en-GB **************/
try {HZ.ns("HZ.viewSpace"),HZ.viewSpace.PhotoZoom=new function(){var i,l,m,o,t,d,r,s,a,h=1200,n=!1;this.init=function(e){a=t=!(n=!0),i=e.spaceId,(m=$(e.imageViewLayer)).click(this.handleZoomClick.bind(this)),$(e.image),(o=$(e.zoomBtn)).click(this.handleZoomClick.bind(this)),l=$(e.hrImage)},this.updateSpaceId=function(e){i=e,this.forceResetZoom()},this.handleZoomClick=function(e){e.stopPropagation(),this.setZoomMode(!t)},this.setZoomMode=function(e){(t=e)?($(".altImagesDiv img").length&&m.addClass("withAltImgs").parent().addClass("withAltImgs"),m.on("mousemove",this.handleZoomMouseMove.bind(this)),this.setFollowMouse(!0),m.addClass("zoom").parent().addClass("zoom"),this.loadHiResImage(),!a&&$(".altImagesDiv .selected").length&&(a=!0,$(".altImagesDiv").click(this.forceResetZoom.bind(this)))):this.resetZoom()},this.forceResetZoom=function(){t=!1,this.resetZoom()},this.resetZoom=function(){n&&(m.removeClass("zoom").removeClass("withAltImgs").parent().removeClass("zoom").removeClass("withAltImgs"),o.removeClass("active").find(".hzi-zoom-out").removeClass("hzi-zoom-out").addClass("hzi-zoom-icon"),$(l).removeClass("active").addClass("inactive"),m.off("mousemove"),this.setFollowMouse(!1))},this.loadHiResImage=function(){var e=$(".altImagesDiv .selected").length?$(".altImagesDiv .selected").attr("i"):0,t=this.getImageUrl(i,e);HZ.lb.Utils.loadImage(t,this.handleHiResImageLoadComplete.bind(this,t,e))},this.getImageUrl=function(e,t){var i=HZ.data.Spaces.get(e).iids[t],o=HZ.data.Images.get(i),s=m.width(),a=m.height();return m.width()!=m.height()?m.width()>m.height()?(s=h,a=m.height()*h/m.width()):(a=h,s=m.width()*h/m.height()):(i=Math.min(o.w,o.h),s=i=Math.min(i,h),a=i),HZ.utils.Links.getSpaceImageUrl(e,Math.floor(s),Math.floor(a),1,o.ts,t)},this.handleHiResImageLoadComplete=function(e,t){$(l).removeClass("inactive").addClass("active").css({"background-image":"url("+e+")",widht:m.width(),height:m.height()}),o.addClass("active").find(".hzi-zoom-icon").removeClass("hzi-zoom-icon").addClass("hzi-zoom-out"),m.addClass("zoom").parent().addClass("zoom")},this.setFollowMouse=function(e){e?(clearInterval(s),s=setInterval(this.moveZoomedImage.bind(this),20)):clearInterval(s)},this.moveZoomedImage=function(){var e=$(l).css("transform-origin").split(" "),t=parseInt(e[0]),i=parseInt(e[1]),o=0,s=0,a=m.width(),h=m.height(),n=m.width(),e=m.height(),t=t+(o-50+d/n*(a+100)-t)/10,i=i+(s-50+r/e*(h+100)-i)/10;$(l).css({"transform-origin":t+"px "+i+"px"})},this.resetTransformOrigin=function(){$(l).css({"transform-origin":"50% 50%"});var e=0,t=0,i=m.width(),o=m.height();d=e+i/2,r=t+o/2},this.handleZoomMouseMove=function(e){d=e.clientX-m.offset().left,r=e.clientY-m.offset().top},this.handleImageDivClick=function(e){t?this.setZoomMode(!1):this.handleImageDivClick(e)}};

window.hzmr.push("productZoom:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End productZoom.js  **************/
/************* Start qtySelector.js for locale en-GB **************/
try {HZ.ns("HZ.QtySelector"),HZ.QtySelector=function(){var c=10,a=/^0+/,e=/[^0-9]/g,h="fake-dd",n="defVal",u=null;function t(){this.$container=null,this.$selectContainer=null,this._showMobileDialog=!0,this._changeCallbacks=[]}return t.prototype.init=function(t,e){t=$(t);t.is("select")?(this.$select=t,this.$select.data(n,this.$select.val()),this.$select.on("change.qty",this.handleSelectChange.bind(this))):t.is("input[type=text]")&&(this.$input=t,this.addInputDataAndEvents())},t.prototype.destroy=function(){this._changeCallbacks=[],this.$select&&this.$select.off(".qty"),this.$input&&this.$input.off(".qty")},t.prototype.addChangeListener=function(t){this._changeCallbacks.push(t)},t.prototype.handleSelectChange=function(t,e){var i;this.$selectContainer||(this.$selectContainer=this.$select.parent(),this.$container=this.$selectContainer.parent()),"10+"===this.$select.val()?(i=this.buildInput(),document.activeElement.blur(),this.$selectContainer.detach(),this.$container.append(i).css("marginRight",0),this.$input[0].focus()):(this.$select.data(n,this.$select.val()),e=e||{type:"select"},this.callChangeCallbacks(this.$select.val(),e))},t.prototype.updateQuantity=function(t){var e;this.$selectContainer||(this.$selectContainer=this.$select.parent(),this.$container=this.$selectContainer.parent()),!this.$input&&t<c?(this.$select.val(t),this.$select.trigger("change",{type:"external"})):(this.$input||(e=this.buildInput(),this.$selectContainer.detach(),this.$container.append(e).css("marginRight",0)),this.$input.val(t),this.callChangeCallbacks(this.$input.val(),{type:"external"}))},t.prototype.callChangeCallbacks=function(t,e){for(var i=0,a=this._changeCallbacks.length;i<a;i++)this._changeCallbacks[i](t,e)},t.prototype.handleBlur=function(t){var e=this.$input.val(),i=this.$input[0].defaultValue;HZ.events&&HZ.events.publish("quantity:stop"),""===e&&(this.$input.val(i||c),this.$input.trigger("change"),e=this.$input.val()),"0"!==e&&this.$input.val(e.replace(a,"")),this.$input[0].defaultValue=this.$input.val(),this.callChangeCallbacks(this.$input.val(),{type:"input"})},t.prototype.handleFocus=function(t){var e=this.$input;if(HZ.utils.Config.isResponsive&&this._showMobileDialog&&parseInt(e.val())<c)return this.prepareDialog(e),t.preventDefault(),!1;HZ.QtySelector.utils.highlightInput(e),HZ.events&&HZ.events.publish("quantity:start")},t.prototype.handleKeydown=function(t){var e=t.which;return t.isShift||!HZ.QtySelector.utils.isAllowedKey(e)&&!HZ.QtySelector.utils.isNumber(e)?(t.preventDefault(),!1):("0"===this.$input.val()&&9!==e&&this.$input.val(""),!0)},t.prototype.handlePaste=function(t){window.setTimeout(function(){var t=this.$input.val();this.$input.val(t.replace(e,""))}.bind(this))},t.prototype.buildInput=function(){var t=this.$selectContainer.outerWidth(),e=this.$select.attr("id"),i=this.$select.attr("class"),a=this.$select.data(n),t=$("<input>").attr({type:"text",id:e}).val(a).addClass(i).css({width:t});return t[0].defaultValue=a,this.$input=t,this.addInputDataAndEvents(),t},t.prototype.disable=function(){var t=this.$input||this.$select;t&&(t.prop("disabled",!0),t===this.$select&&this.$select.parent().addClass("disabled"))},t.prototype.enable=function(){var t=this.$input||this.$select;t&&(t.prop("disabled",!1),t===this.$select&&this.$select.parent().removeClass("disabled"))},t.prototype.addInputDataAndEvents=function(){this.$input.on("keydown.qty",this.handleKeydown.bind(this)).on("paste.qty",this.handlePaste.bind(this)).on("focus.qty",this.handleFocus.bind(this)).on("blur.qty",this.handleBlur.bind(this)).attr({maxlength:4,pattern:"\\d*"}),this.$input.val()||this.$input.val(c),HZ.utils.Config.isResponsive&&this.$input.val()<c&&this.$input.addClass(h)},t.prototype.prepareDialog=function(o){var t='<label class="option"><input %CHECKED% type="radio" value="%VAL%" name="%NAME%"><span class="radio-text text-l">%DISPLAY%</span></label>',e=parseInt(o.val());u||(n=[HZ.ui.InputButtonUtils.createSecondaryInputButton(_hgt("Cancel"),"hzConfirmDlgCancelBtn",function(){HZ.ui.Yamdi.hide()})],(u=new HZ.ui.yamdi.Dialog).init({dialogClassName:"mobileQuantityDlg",controls:n,sidebarMode:"sidebar-skinny"}));for(var i="",a=o.attr("id")+"-rad",n=parseInt(o.data("max-quantity"),10)||c,s=Math.min(n+1,c),l=1;l<s;l++)i+=HZ.utils.Html.template(t,{CHECKED:e===l?"checked":"",VAL:l,DISPLAY:l,NAME:a});c<=n&&(i+=HZ.utils.Html.template(t,{CHECKED:"",VAL:"10+",DISPLAY:"10+",NAME:a}));var r=function(t){var e=$(t.currentTarget).val(),i=o.data("cart-id"),a=o.data("item-id"),n=o.data("gift-card-id"),s=o.data("warranty-cart-id"),l=o.data("warranty-item-id");"10+"===e?(t=o[0].defaultValue,this._showMobileDialog=!1,o.val(t).removeClass(h).focus(),$("html,body").animate({scrollTop:o.offset().top-40}),o.trigger("change")):(o.val(e),HZ.events&&i&&a?HZ.events.publish("cart:update",i,a,n,s,l):o.trigger("change")),HZ.ui.Yamdi.hide()};u.setTitle(_hgt("Quantity:")),u.setViewLoaded(function(){var t=u.getBody().find("input[type=radio]");t.filter(":checked").focus(),t.on("change.qtySelector",r.bind(this))}.bind(this)),u.setViewUnloaded(function(){u.getBody().find("input[type=radio]").off(".qtySelector")}),u.setBody(i),HZ.ui.Yamdi.show(u)},t}(),HZ.QtySelector.BoxSelector=function(){function t(t){this.cache={},this.sid=t.spaceId,this.lid=t.listingId,this.unit=t.unit,this.area=t.area,this.qtySelector=t.qtySelector,this.coverageInput=t.coverageInput,this.calculationsEl=t.calculationsEl,this.percentToggle=t.percentToggle,this.addEvents()}return t.prototype.destroy=function(){this.$input&&this.$input.off(".boxSelector")},t.prototype.addEvents=function(){var t=$(this.coverageInput);t.on("input.boxSelector",$.debounce(1e3,this.handleCoverageChange.bind(this))).on("focus.boxSelector",this.handleFocus.bind(this)).on("blur.boxSelector",this.handleBlur.bind(this)).attr({maxlength:4,pattern:"\\d*.\\d{0,2}"}),this.$input=t},t.prototype.handleCoverageChange=function(t){var e=parseFloat(this.coverageInput.value,10);!!this.percentToggle&&this.percentToggle.checked&&(e+=.1*e);e=Math.ceil(e/this.area);this.qtySelector.updateQuantity(e)},t.prototype.handleFocus=function(){HZ.events&&HZ.events.publish("quantity:start")},t.prototype.handleBlur=function(){HZ.events&&HZ.events.publish("quantity:stop")},t.prototype.disable=function(){this.coverageInput.disabled=!0,$(this.coverageInput.parentNode).addClass("disabled"),this.qtySelector.disable()},t.prototype.enable=function(){this.coverageInput.disabled=!1,$(this.coverageInput.parentNode).removeClass("disabled"),this.qtySelector.enable()},t.prototype.calculate=function(a){if(this.cache[a])return this.render(this.cache[a]),$.Deferred().resolve(this.cache[a]);var n=this;return this.disable(),HZ.ajaz.Tile.calculate(a,this.sid,this.lid,function(t){var e=t.coverage,i=t.totalPrice,t=t.unitString,t={quantity:parseInt(a,10),coverage:e,totalPrice:i,unitString:t};return n.enable(),n.render(t),n.cache[a]=t})},t.prototype.render=function(t){var e="",i={quantity:t.quantity,totalArea:t.coverage,unit:this.unit,t1:{tag:"span",attr:{class:"text-bold"}}};switch(t.unitString){case"box":e=_hgtp("--","1 box, covers <t1>{totalArea} {unit}</t1>","{quantity} boxes, covers <t1>{totalArea} {unit}</t1>",t.quantity,i);break;case"sheet":e=_hgtp("--","1 sheet, covers <t1>{totalArea} {unit}</t1>","{quantity} sheets, covers <t1>{totalArea} {unit}</t1>",t.quantity,i);break;case"piece":e=_hgtp("--","1 piece, covers <t1>{totalArea} {unit}</t1>","{quantity} pieces, covers <t1>{totalArea} {unit}</t1>",t.quantity,i);break;case"roll":e=_hgtp("--","1 roll, covers <t1>{totalArea} {unit}</t1>","{quantity} roll, covers <t1>{totalArea} {unit}</t1>",t.quantity,i)}var a=_hgt("Total: {totalPrice}",{totalPrice:t.totalPrice}),n=$(this.calculationsEl).find(".coverage-string"),s=$(this.calculationsEl).find(".coverage-price");n.html(e),s.text(a)},t.prototype.updateCoverageInput=function(t){this.coverageInput.value=t},t}(),HZ.QtySelector.utils={isNumber:function(t){return 48<=t&&t<=57||96<=t&&t<=105},isAllowedKey:function(t){return-1<[8,9,37,39].indexOf(t)},highlightInput:function(t,e){window.setTimeout(function(){t.select(),t[0].setSelectionRange(0,9999),e&&e()},0)}};

window.hzmr.push("qtySelector:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End qtySelector.js  **************/
/************* Start extracting text for soldByBox.js for locale en-GB **************/
(function(){var _hzxt={"Got it!":"OK!","Due to cuts, breaks and other waste when installing your tile, you should multiply the square footage of your area by 10% and purchase enough tile to cover this amount.":"Due to cuts, breaks and other waste when installing your tiles, you should multiply the square footage of your area by 10% and purchase enough tiles to cover this amount."};for(var a in _hzxt){window._hzlang[a]=_hzxt[a];}})();
/*************  End extracting text for soldByBox.js  **************/
/************* Start soldByBox.js for locale en-GB **************/
try {$(function(){var i=null;$("body").on("click",".sold-by-box--tt-trigger",function(){var t,o,l;i||(l=[HZ.ui.InputButtonUtils.createPrimaryInputButton(_hgt("Got it!"),"hzSoldByBoxDlgOKBtn",HZ.ui.yamdi.Common.hideAllDialogs,!1,!1,"large")],(i=new HZ.ui.yamdi.Dialog).init({dialogClassName:"soldByBoxDlg",controls:l,hideDialogOnBgClick:!0}),i.setTitle(_hgt("Buy 10% More for Waste")),i.setBody((t=$("<div/>"),o=$('<div class="sbb-dlg__image"/>'),l=$('<p class="text-l pll prl"/>').text(_hgt("Due to cuts, breaks and other waste when installing your tile, you should multiply the square footage of your area by 10% and purchase enough tile to cover this amount.")),t.append(o,l),t))),HZ.ui.Yamdi.show(i)})});

window.hzmr.push("soldByBox:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End soldByBox.js  **************/
/************* Start imageTag2.js for locale en-GB **************/
try {var TYPE_VALUE_PRODUCT_SIMILAR=3,TYPE_VALUE_PRODUCT_EXACT=2,TYPE_VALUE_PRIVATE_COMMENT=1,TYPE_VALUE_INFO=0,productsObj={products:{},addProduct:function(e){e.linkId&&HZ.viewSpace.urlObfuscatorFn&&(e.link=HZ.viewSpace.urlObfuscatorFn(e.linkId)),this.products[e.spaceId]=e},getProductBySpaceId:function(e){return this.products[e]}};function getImageTagButtonHTML(e,t,i,a,n,s){n="button class='hzBtn "+a+" "+(i=i||"imageTagPopupButton")+"' type='button' "+(n=n||"");return n+=' onclick="'+t+'"',"<"+(n+=">"+(s=s||"")+e+"</button>")}var ImageTagsUI={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3,rootContainer:null,screens:{},currentImageTag:null,currentSpace:null,currentScreen:null,tagPosition:null,dismissCallback:null,hideTimeout:null,scale:null,displayState:!0,init:function(e,t){this.rootContainer=e,this.rootContainer.innerHTML='<div class="imageTagPopupContainer" oncontextmenu="ImageTagsUI.handleEvent(event)" style="position:relative;top:0;left:0;opacity:1;"><div id="imageTagPopupType"></div><div id="imageTagPopupTitle"></div><div id="imageTagPopupBody"></div></div>',this.imageTagType=document.getElementById("imageTagPopupType"),this.imageTagTitle=document.getElementById("imageTagPopupTitle"),this.imageTagBody=document.getElementById("imageTagPopupBody"),this.scale=t},allowDelay:function(){return!0},isEditing:function(){return!!this.currentScreen&&(null==this.currentScreen.isEditing||this.currentScreen.isEditing)},handleEvent:function(e){return(e=e||window.event).cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),!1},addScreen:function(e,t){(this.screens[e]=t).delegate=this},setScreen:function(e){this.rootContainer&&(e=this.screens[e],(this.currentScreen=e).getType&&(this.imageTagType.innerHTML=e.getType()),e.getTitle?this.imageTagTitle.innerHTML=e.getTitle():this.imageTagTitle.innerHTML="",this.imageTagBody.innerHTML=e.getContent(),this.updateElementsPosition(),e.onShow&&e.onShow())},dismiss:function(){this.dismissCallback&&this.dismissCallback(),this.triggerHide()},triggerHide:function(){this.resetHideTimeout(),this.hideTimeout=setTimeout(hitch(this,this._hide),50)},resetHideTimeout:function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},setCurrentImageTag:function(e){this.rootContainer&&null!=e&&(300<(this.currentImageTag=e).x*this.scale?this.tagPosition=this.TOP_RIGHT:this.tagPosition=this.TOP_LEFT)},initNewImageTag:function(e,t){this.setCurrentImageTag({x:e,y:t,imageTagId:0,type:"",targetSpaceId:"",vendorName:"",comments:"",link:""})},updateElementsPosition:function(){if(null!=this.currentImageTag){var e,t,i=this.currentScreen.getWidth(),a=this.currentImageTag.x*this.scale,n=this.currentImageTag.y*this.scale,s=this.rootContainer.style;this.scale,this.currentImageTag.type;if(s.width=i+"px",this.currentScreen.requiresScreenCenter)this.imageTagTitle.style.paddingLeft="12px";else{switch(this.tagPosition){case this.TOP_LEFT:e=a+20,t=n+4;break;case this.TOP_RIGHT:e=a-i-20,t=n+4}s.left=e+"px",s.top=t+"px"}getElementPosition(this.rootContainer);this.isEditing()&&UIHelper.showModalLayer()}},show:function(){this.rootContainer&&null!=imageTag&&0!=this.displayState&&(this.resetHideTimeout(),this.rootContainer.style.display="block",this.updateElementsPosition())},_hide:function(){this.resetHideTimeout(),UIHelper.hideModalLayer(),this.rootContainer.style.display="none",this.setScreen("view")},disableTagsUI:function(){this.displayState=!1,this.rootContainer&&(this.rootContainer.style.display="none")},enableTagsUI:function(){this.displayState=!0,this.rootContainer&&(this.rootContainer.style.display="block")}};function addHrefToURL(e,t){var i=[/(https?:\/\/([-\w\.]+)+(:\d+)?(\/([-\w/_\.]*(\?\S+)?)?)?)/g,/([wW]{3}\.([-\w\.]+)+(:\d+)?(\/([-\w/_\.]*(\?\S+)?)?)?)/g],a="<a href='$1'>$1</a>";t&&(a="<a href='$1' target='_blank'>$1</a>");for(var n=0;n<2;n++)if(newText=e.replace(i[n],a),newText!=e)return newText;return e}var imageTagsViewScreen={getWidth:function(){return 300},allowDirectProductLinks:!1,isEditing:!1,getType:function(){var e=this.delegate.currentImageTag;if(e.type==TYPE_VALUE_PRODUCT_SIMILAR){e=productsObj.getProductBySpaceId(e.targetSpaceId);if(e.price&&e.available)return"<div class='similar'>"+_hgt("Similar Product on Houzz")+"</div>"}return""},getTitle:function(){var e=this.delegate.currentImageTag;if(e.type!=TYPE_VALUE_PRODUCT_EXACT&&e.type!=TYPE_VALUE_PRODUCT_SIMILAR)return n=e.vendorName?"<div class='imageTagPopupNoteTitle'>"+e.vendorName+"</div>":"&nbsp;";var t=productsObj.getProductBySpaceId(e.targetSpaceId),i=UIHelper.getImageSize(t,0),a="<a class='imageTagPopupProductImage' href='"+HZ.utils.Links.getSpaceLink(t.spaceId)+"'><img src='"+HZ.utils.Links.getSpaceImageThumbUrl(t.spaceId,0)+"' width='"+Math.round(i.w)+"' height='"+Math.round(i.h)+"'></a>",n="<div class='imageTagPopupProductTitle'><a href='"+HZ.utils.Links.getSpaceLink(t.spaceId)+"'>"+t.title+"</a></div>",s="";t.price&&""!=t.price&&(t.link&&this.allowDirectProductLinks?s=getImageTagButtonHTML(t.price,"imageTagsViewScreen.priceAction()","imageTagPopupPriceLinked imageTagPopupButton imageTagPopupButtonNoMargin","primary"):t.available&&(s="<div class='imageTagPopupPriceNotLinked'>"+t.price+"<i class='hzi-font hzi-Tag'></i></div><div class='imageTagPopupBuyBtn'><a href='"+HZ.utils.Links.getSpaceLink(t.spaceId)+"' class='hzBtn primary'>"+_hgt("Buy on Houzz")+"</a></div>"));var e="";t.professionalId&&t.professionalName&&t.isAdvertiseSpace&&(o=HZ.utils.Links.getProfessionalLinkByProId(t.professionalId),e="<div class='imageTagPopupProfessional'>"+_hgt("by <t1>{sellerName}</t1>",{sellerName:t.professionalName,t1:{tag:"a",attr:{href:o}}})+"</a></div>");var i="",o=_hgt("Go to Site");t.isAdvertiseSpace&&(o=t.buttonText),t.price&&""!=t.price||!this.allowDirectProductLinks||!t.link?t.price&&t.available||(i="<div class='imageTagPopupBottom'><a class='colorLink' href='javascript:;' onclick='imageTagsViewScreen.openProduct()'>"+_hgt("More Info")+"<span class='more-icon'></span></a></div>"):i="<div class='imageTagPopupBottom'><a class='colorLink' href='javascript:;' onclick='imageTagsViewScreen.visitStore()'>"+o+"</a></div>";return a+"<div class='titleWrap'>"+n+s+e+i+"</div><div style='clear:both'></div>"},getContent:function(){var e=this.delegate.currentImageTag,t="";return e.type!=TYPE_VALUE_PRODUCT_EXACT&&e.type!=TYPE_VALUE_PRODUCT_SIMILAR&&(t+="<div class='imageTagPopupComment'>"+return2br(addHrefToURL(e.comments))+"</div>"+(e.type==TYPE_VALUE_PRIVATE_COMMENT?"<div class='imageTagPopupPrivateComment'>("+_hgt("private comment")+")</div>":"")),(e.canEdit||e.canDelete)&&(t+="<div class='imageTagPopupActions'>",e.canEdit&&e.type!=TYPE_VALUE_PRODUCT_EXACT&&e.type!=TYPE_VALUE_PRODUCT_SIMILAR&&!UIHelper.isMobileDevice&&(t+=getImageTagButtonHTML(_hgt("Edit Tag"),"","","primary","lb-edit-tag data-id='"+e.imageTagId+"'","<i class='hzi-font hzi-Edit'></i>")),e.canDelete&&(t+=getImageTagButtonHTML(_hgt("Delete Tag"),"imageTagsViewScreen.deleteAction()","","secondary",null,"<i class='hzi-font hzi-Delete-Comment'></i>")),t+="</div>"),t},editAction:function(){ImageTagsUI.dismiss()},deleteAction:function(){var e=_hgt("Delete Tag"),t=_hgt("Are you sure you want to delete this tag?"),i=$.proxy(function(){HZ.ajaz.Services.ImageTags.deleteImageTag(this.delegate.currentImageTag,this.deleteActionCallback)},this);ImageTagsUI.dismiss(),HZ.ui.yamdi.Common.areYouSure(e,t,_hgt("OK"),i,_hgt("Cancel"),function(){HZ.ui.yamdi.Common.hideAllDialogs()})},deleteActionCallback:function(e){imageTagsObj.deleteImageTag(e.imageTagId),ImageTagsUI.dismiss(),HZ.ui.yamdi.Common.hideAllDialogs()},visitStore:function(){var e=productsObj.getProductBySpaceId(this.delegate.currentImageTag.targetSpaceId);e&&window.open(e.link,"_blank","")},openProduct:function(){document.location=HZ.utils.Links.getSpaceLink(this.delegate.currentImageTag.targetSpaceId)},priceAction:function(){var e=productsObj.getProductBySpaceId(this.delegate.currentImageTag.targetSpaceId);e&&window.open(e.link,"_blank","")}};ImageTagsUI.addScreen("view",imageTagsViewScreen);var imageTagsHighlightProductScreen={getWidth:function(){return 212},isEditing:!1,getTitle:function(){var e=this.delegate.currentImageTag;if(e.type==TYPE_VALUE_PRODUCT_EXACT||e.type==TYPE_VALUE_PRODUCT_SIMILAR)return productsObj.getProductBySpaceId(e.targetSpaceId).title},getContent:function(){return""}};ImageTagsUI.addScreen("highlightProduct",imageTagsHighlightProductScreen);

window.hzmr.push("imageTag2:28992994");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End imageTag2.js  **************/
