define("core/siteRender/styleCollector",["lodash","utils","skins"],function(a,b,c){"use strict";var d=c.skins;var e={};function f(a,b,c){var d=c.styleId&&a.getDataByQuery(c.styleId,b,a.dataTypes.THEME);return{dataItem:c.dataQuery&&a.getDataByQuery(c.dataQuery,b),propertiesItem:c.propertyQuery&&a.getDataByQuery(c.propertyQuery,b,a.dataTypes.PROPERTIES),styleItem:d,structure:c}}function g(b,c){if(c&&!b[c]){b[c]="s"+a.size(b)}}function h(a,b){return a[b]&&d[a[b].skin]}function i(a,b,c){if(a.styleId&&h(b,a.styleId)){g(c,a.styleId)}else if(a.skin&&d[a.skin]){g(c,a.skin)}}function j(a,b,c,d,g){if(a.componentType&&e[a.componentType]){var h=f(c,g,a);e[a.componentType](h,b,c,d,g)}}function k(b,c,d){if(b.modes&&b.modes.overrides){a.forEach(b.modes.overrides,function(a){if(a.styleId&&h(c,a.styleId)){g(d,a.styleId)}})}}function l(c,d,e,f,g,h){i(c,d,f);k(c,d,f);j(c,d,e,f,g);var m=b.dataUtils.getChildrenData(c,!!h);a(m).compact().forEach(function(a){l(a,d,e,f,g)}).commit()}function m(c,d,e,f,g,h){i(c,d,f);j(c,d,e,f,g);var k=b.dataUtils.getChildrenData(c,!!h);a(k).compact().forEach(function(a){m(a,d,e,f,g)}).commit()}function n(a,b){e[a]=b}return{collectStyleIdsFromStructure:m,collectStyleIdsFromFullStructure:l,registerClassBasedStyleCollector:n}});define("core/fonts/FontRuler",["react","reactDOM","utils"],function(a,b,c){"use strict";function d(a){return a&&a.offsetWidth&&a.offsetHeight}function e(a,b){return a.offsetWidth!==b.offsetWidth||a.offsetHeight!==b.offsetHeight}function f(a){return a&&{offsetWidth:a.offsetWidth,offsetHeight:a.offsetHeight}}var g=a.createClass({displayName:"FontRuler",handleFontResize:function(){if(!this.isMounted()){return}if(this.triggeredResize){return}var a=this.trigger;if(!a){a=d(this.contentNodeOrigSize);if(a){var f=b.findDOMNode(this.refs.content);if(!f){return}a=e(f,this.contentNodeOrigSize)}}if(a){if(this.rafID){c.animationFrame.cancel(this.rafID);this.rafID=0}this.triggeredResize=true;this.props.onLoadCallback(this.props.fontFamily)}else if(!this.rafID){this.rafID=c.animationFrame.request(this.updateCurrentSize)}},updateCurrentSize:function(){this.rafID=0;var a=b.findDOMNode(this.refs.wrapper);if(!a){return}var c=b.findDOMNode(this.refs.content);var g=b.findDOMNode(this.refs.innerContent);var h=b.findDOMNode(this.refs.innerWrapper);var i=f(a);a.style.width=i.offsetWidth-1+"px";a.style.height=i.offsetHeight-1+"px";a.scrollLeft=a.scrollWidth-a.clientWidth;a.scrollTop=a.scrollHeight-a.clientHeight;g.style.width=i.offsetWidth+1+"px";g.style.height=i.offsetHeight+1+"px";h.scrollLeft=h.scrollWidth-h.clientWidth;h.scrollTop=h.scrollHeight-h.clientHeight;if(d(c)){if(this.contentNodeOrigSize){this.trigger=e(c,this.contentNodeOrigSize)}else{this.contentNodeOrigSize=f(c)}c.style.fontFamily=this.props.fontFamily+", serif"}},componentDidMount:function(){this.trigger=false;this.triggeredResize=false;this.updateCurrentSize()},componentWillUnmount:function(){if(this.rafID){c.animationFrame.cancel(this.rafID);this.rafID=0}},render:function(){var b=a.DOM.div({ref:"innerContent",refInParent:"innerContent"});var c=a.DOM.div({ref:"innerWrapper",refInParent:"innerWrapper",onScroll:this.handleFontResize,style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},b);var d=a.DOM.div({style:{position:"relative",whiteSpace:"nowrap",fontFamily:"serif"}},c,a.DOM.span({ref:"content",className:"font-ruler-content"}));var e=a.DOM.div({ref:"wrapper",refInParent:"wrapper",onScroll:this.handleFontResize,style:{position:"absolute",overflow:"hidden",fontSize:1200,left:-2e3,visibility:"hidden"}},d);return e}});return g});define("core/fonts/FontRulersContainer",["react","lodash","core/fonts/FontRuler","utils"],function(a,b,c,d){"use strict";var e=30;var f=e*10;var g=a.createFactory(c);var h=a.createClass({displayName:"FontRulersContainer",getInitialState:function(){var a=this.props.siteData;this.invokeCallback=b.debounce(this.invokeCallback,a.browser.firefox||a.os.ios?f:e);return{loadedFonts:[]}},fontLoaded:function(a){var b=this.state.loadedFonts.concat(a);if(this.isMounted()){this.setState({loadedFonts:b});d.fonts.renderedFontsList.set(b)}this.invokeCallback()},invokeCallback:function(){d.performance.finish("font ruler");this.props.onLoadCallback()},componentDidMount:function(){d.performance.startOnce("font ruler")},render:function(){var c=this.props.fontsList;var d=[{key:"fontRulersContainer",style:{overflow:"hidden",visibility:"hidden",maxHeight:0,maxWidth:0,position:"absolute"}},a.DOM.style({dangerouslySetInnerHTML:{__html:'.font-ruler-content::after {content:"@#$%%^&*~IAO"}'}})];b.forEach(c,function(a){if(!b.includes(this.state.loadedFonts,a)){d.push(g({key:a,fontFamily:a,onLoadCallback:this.fontLoaded}))}},this);return a.DOM.div.apply(undefined,d)},hasPendingFonts:function(){return b.difference(this.props.fontsList,this.state.loadedFonts).length>0}});return h});define("core/fonts/fontsLoader",["lodash","react","fonts","core/fonts/FontRulersContainer"],function(a,b,c,d){"use strict";var e=b.createFactory(d);function f(a,b,c,d){return e({fontsList:a,siteData:b,onLoadCallback:c,ref:d,key:d})}function g(b,d,e,f){var g=a.map(b,function(a){return c.fontUtils.getPageUsedFontsList(d,a)});return this.getRulersNode(a.union.apply(a,g),d,e,f)}return{getRulersNode:f,getFontsLoaderNode:g}});define("core/siteRender/WixThemeReact",["zepto","lodash","react","skins","fonts","utils","core/fonts/fontsLoader","reactDOM","experiment"],function(a,b,c,d,e,f,g,h,i){"use strict";var j="testStyles";var k=e.fontUtils;var l=e.fontCss;var m=f.fonts.uploadedFontsUtils;var n=f.cssUtils;var o=d.skinsRenderer;var p=d.skins;var q=i.isOpen("sv_fontsRefactor");function r(a){var b=a.santaBase+"/static/css/mobileIEFix.css";return c.DOM.link({rel:"stylesheet",type:"text/css",href:b})}function s(a,d,e){if(e){d=b.map(d.trim().split("\n"),function(a){var c=a.split("{");var d=c[0].split(",");c[0]=b.map(d,function(a){return e+" "+a});return c.join("{")},this).join("\n")}return c.DOM.style({type:"text/css",key:a,dangerouslySetInnerHTML:{__html:d||""}})}function t(a,b,c){var d="";if(f.stringUtils.startsWith(a,"#")){d=c+":"+a+";"}else{d=c+":rgba("+a+");"}var e="."+b+" {"+d+"}";return e}function u(a,c){var d=[];if(!q){d=b.map(a.THEME_DATA.font,function(b,d){var e=".font_"+d+" {font:"+l.fontToCSSWithColor(b,a.THEME_DATA.color)+"}";return s("font"+d,e,c)});var e=s("color",b.map(a.THEME_DATA.color,function(a,b){return t(a,"color_"+b,"color")+"\n"+t(a,"backcolor_"+b,"background-color")}).join("\n"),c);d.push(e)}else{var f=l.getThemeFontsCss(a.THEME_DATA.font,a.THEME_DATA.color);d.push(s("theme_fonts",f,c));var g=n.getColorsCssString(a.THEME_DATA.color);d.push(s("theme_colors",g,c))}return d}function v(a,c,d,e,f,g){var h=b.get(e,"style.properties")||{};var i=o.createSkinCss(c,h,a.THEME_DATA,d,f);return s(d,i,g)}function w(a,c,d,e){var g=[];b.forEach(b.keys(c),function(b){var f=c[b];var h=a[b];var i=p[h?h.skin:b];if(i){g.push(v(a,i,f,h,d,e))}},this);g.push(v(a,p["wysiwyg.viewer.skins.wixadsskins.WixAdsWebSkin"],"wixAds",null,d,e));g.push(v(a,p["wysiwyg.viewer.skins.MobileAppBannerBasicSkin"],"mobileAppBanner",null,d,e));g.push(v(a,p["skins.viewer.deadcomp.DeadCompPublicSkin"],"deadComp",null,d,e));g.push(v(a,p["wysiwyg.viewer.skins.siteBackgroundSkin"],"siteBackground",null,d,e));g.push(v(a,p["wysiwyg.viewer.skins.PasswordLoginSkin"],"loginDialog",null,d,e));var h=f.constants.POPUP.POPUP_OVERLAY_CONTAINER;g.push(v(a,p[h.SKIN],h.STYLE_ID,null,d,e));return g}function x(a,b){var d=(b?b+" ":"")+"."+j+" {position:absolute; display: none; z-index: "+a+"}";return[c.DOM.style({type:"text/css",key:"testStyle"},d),c.DOM.div({ref:j,className:j})]}function y(a){return/^(font|color)_[0-9]+$/.test(a)?"theme":"value"}return c.createClass({displayName:"WixThemeReact",getInitialState:function(){this.testNodeIndex=0;this.waitingForStylesReady=false;this.registeredUsedFonts=[];return null},render:function(){this.testNodeIndex=(this.testNodeIndex+1)%100;var a=[{key:"theme"}];var b=this.props.themeData;var d=this.props.siteData;var e=this.props.siteAPI;var f=this.props.masterPage.data.document_data.masterPage;if(b.THEME_DATA&&b.THEME_DATA.font){this.registerSkinsFontsUsage();if(d.getBrowser().ie&&!d.isMobileView()){a.push(r(d))}a=a.concat(u(b,this.props.styleRoot),w(b,this.props.loadedStyles,this.props.siteData.mobile,this.props.styleRoot),x(this.testNodeIndex,this.props.styleRoot));var h=e.getRootIdsWhichShouldBeRendered();if(q){a=a.concat(this.getUploadedFontsStyles(h))}if(this.props.shouldRenderPage){a=a.concat(this.getFontsCssLinks(d,f),g.getFontsLoaderNode(h,d,this.waitForStylesReady,"fontsLoader"))}}return c.DOM.div.apply(undefined,a)},componentWillUnmount:function(){this.afterStylesReadyCallback=null;this.waitingForStylesReady=false},registerStylesReadyCallback:function(a){this.afterStylesReadyCallback=a},initWaitForStylesReady:function(){if(!this.waitingForStylesReady){this.waitForStylesReady()}},waitForStylesReady:function(){if(!this.isMounted()){return}var b=h.findDOMNode(this.refs[j]);this.waitingForStylesReady=true;var c=typeof this.afterStylesReadyCallback==="function";if(a(b).css("z-index")==this.testNodeIndex&&c){this.waitingForStylesReady=false;this.afterStylesReadyCallback()}else{f.animationFrame.request(this.waitForStylesReady)}},getFontsCssLinks:function(){var a=this.props.siteData;if(q){var d=a.rendererModel.siteInfo.documentType;var e=k.getCssUrls(d,a.serviceTopology);if(typeof window!=="undefined"){e=b.pick(e,function(a,b){var c=document.getElementById("font_"+b);if(!c){return true}c.removeAttribute("media");return false})}return b.map(e,function(a,b){return c.DOM.link({rel:"stylesheet",type:"text/css",href:a,key:b})})}var f=k.getWixHelveticaUrl(a.serviceTopology);var g=a.rendererModel.siteInfo.documentType==="WixSite"?[f]:[];var h=k.getWixStoredFontsCssUrlsWithParams(a.santaBase,this.getCharacterSets(),a.serviceTopology.scriptsLocationMap.santa);g=g.concat(h);return this.getGoogleFontsLinks().concat(b.map(g,function(a){return c.DOM.link({rel:"stylesheet",type:"text/css",href:a,key:a})}))},getUploadedFontsStyles:function(a){this.uploadedFonts=this.uploadedFonts||[];var c=this;var d=this.props.siteData;b.forEach(a,function(a){c.uploadedFonts.push(k.getPageUsedFontsList(d,a))});if(this.skinsFonts){this.uploadedFonts.push(this.skinsFonts)}var e=b(this.uploadedFonts).flatten().union().filter(function(a){return m.isUploadedFontFamily(a)}).value();var f=m.getUploadedFontFaceStyles(e,this.props.siteData.serviceTopology.mediaRootUrl);return s("uploadedFonts",f)},getGoogleFontsLinks:function(){this.loadedGoogleFontsLinks=this.loadedGoogleFontsLinks||[];this.loadedGoogleFonts=this.loadedGoogleFonts||[];var a=this.props.siteData;var d=b.map(this.props.siteAPI.getRootIdsWhichShouldBeRendered(),k.getPageFontsMetaData.bind(null,a));d.push(k.getMetadata(this.skinsFonts));var e=b.union.apply(b,d);var f=b.filter(e,{provider:"google"});var g=b.difference(f,this.loadedGoogleFonts);this.loadedGoogleFonts=b.union(f,this.loadedGoogleFonts);var h=k.getGoogleFontsUrl(g,this.getCharacterSets());if(h){this.loadedGoogleFontsLinks.push(c.DOM.link({key:"gf_"+this.loadedGoogleFontsLinks.length,rel:"stylesheet",type:"text/css",href:h}))}return this.loadedGoogleFontsLinks},registerSkinFontsUsage:function(a,c,d){this.registerInnerSkinFontsUsage(a,c,d);if(c.params){var e=b.keys(b.omit(c.params,function(a){return a!=="FONT"}));if(b.get(d,"style.properties")){b.forEach(e,function(b){var e="";var f=d.style.properties[b]||c.paramsDefaults[b];var g=y(f);if(g==="value"){e=k.parseFontStr(f).family.toLowerCase()}else if(g==="theme"){e=k.getFontFamilyByStyleId(a,f)}if(e){this.registerSkinFontUsage(e)}},this)}}},registerInnerSkinFontsUsage:function(a,c,d){if(c.exports){b.forEach(c.exports,function(b){if(b.skin&&p[b.skin]){this.registerSkinFontsUsage(a,p[b.skin],d)}},this)}},registerSkinsFontsUsage:function(){var a=this.props.themeData;b.forEach(b.keys(this.props.loadedStyles),function(b){var c=a[b];var d=p[c?c.skin:b];if(d){this.registerSkinFontsUsage(a.THEME_DATA,d,c)}},this)},registerSkinFontUsage:function(a){this.skinsFonts=b.union(this.skinsFonts,[a])},getCharacterSets:function(){return this.props.masterPage.data.document_data.masterPage.characterSets}})});define("core/siteRender/compFactory",["react","lodash","utils"],function(a,b,c){"use strict";var d={};var e={};var f={};var g={};return{getCompClass:function(b){var h=f[b];if(h){return h}var i=d[b];if(!i){c.log.error("Component not implemented: ["+b+"]");return undefined}var j=a.createClass({mixins:[i].concat(e[b])});g[b]=j;h=a.createFactory(j);f[b]=h;return h},getComponentType:function(a){this.getCompClass(a);return g[a]},invalidate:function(a){delete f[a]},extend:function(a,f){if(!d.hasOwnProperty(a)){c.log.error("Trying to extend component ["+a+"] but the component is not defined");return}e[a]=b.union(e[a].concat(f))},register:function(a,b){d[a]=b;e[a]=[];return this}}});define("core/components/animatableMixin",["reactDOM","lodash"],function(a,b){"use strict";function c(a){var b=a.style.display;a.style.display="none";a.offsetHeight;a.style.display=b}return{isAnimatable:true,shouldChildrenUpdate:true,componentWillMount:function(){this._animatableMixin={animationsCounter:0,deferredStates:[]}},componentDidMount:function(){this._animatableMixin.setStateOrig=this.setState},componentWillUnmount:function(){this._animatableMixin.updateOnAnimationEnded=false},animationStarted:function(){if(++this._animatableMixin.animationsCounter===1){this.setState=this.setStateDeferred}if(!this.shouldChildrenUpdate){b(this.refs).filter("isAnimatable").invoke("animationStarted").value()}},animationEnded:function(d){d=d!==false;if(!this.shouldChildrenUpdate){b(this.refs).filter("isAnimatable").invoke("animationEnded",false).value()}var e=this._animatableMixin;if(e.animationsCounter){if(--e.animationsCounter===0){this.setState=e.setStateOrig}}if(d){if(e.deferredStates.length){var f=e.deferredStates;for(var g=0;g(Wix-Logo) Create a site!',topContent:'100s of templates
No coding needed
Start now >>',footerLabel:'
(Wix Logo)
This site was created using
Create your own for FREE >>
',adUrl:"http://www.wix.com/lpviral/en900viral?utm_campaign=vir_wixad_live"}};return{getStructure:function(a){var b=a.isMobileView();var c=b?"wysiwyg.viewer.components.WixAdsMobile":"wysiwyg.viewer.components.WixAdsDesktop";var d="wysiwyg.viewer.skins.wixadsskins.WixAdsWebSkin";return{id:a.WIX_ADS_ID,skin:d,componentType:c,styleId:"wixAds",layout:{position:b?"static":"absolute"}}},getWixAdsComponent:function(e){var f=e.getSiteData();var g=f.isMobileView();var h;if(g){h=f.mobileAdData&&!a.isEmpty(f.mobileAdData.adUrl)?f.mobileAdData:d.mobile}else{h=f.adData&&!a.isEmpty(f.adData.adUrl)?f.adData:d.desktop}var i=this.getStructure(f);var j=i.componentType;var k=c.getCompClass(j);var l=b.componentPropsBuilder.getCompProps(i,e);l.adData=h;return k(l)}}});define("core/siteRender/mobileAppBannerInstantiator",["lodash","santaProps","utils","core/siteRender/compFactory","experiment"],function(a,b,c,d,e){"use strict";var f="wysiwyg.viewer.components.MobileAppBanner";function g(){return{id:"MOBILE_APP_BANNER",skin:"wysiwyg.viewer.skins.MobileAppBannerBasicSkin",componentType:f,styleId:"mobileAppBanner",layout:{position:"static"}}}function h(b){if(!a.isString(b)){return b}return b.replace(/\/+$/,"")}var i=function(a){return h(a.getExternalBaseUrl())+"/app"};var j="wixMobileAppBanner";var k=1e3*60*60*24*14;var l=c.cookieUtils;function m(b){return a.isString(b)&&!a.isEmpty(b)}return{shouldShowMobileAppBanner:function(a){var b=e.isOpen("mobileAppBannerOnMobile");var c=e.isOpen("mobileAppBannerOnDesktop");if(this.isHidden||!b&&!c){return false}if(a.isPageLandingPage(a.getPrimaryPageId())){return false}if(!this.getMobileAppBannerModel(a)){return false}if(this.doesHideBannerCookieExist()){return false}if(a.isMobileView()&&b){return true}if(!a.isMobileView()&&c){return true}return false},getMobileAppBannerModel:function(a){var b=a.getClientSpecMapEntriesByType("mobileapp")[0];if(!b||!m(b.name)||!m(b.iconUrl)){return null}return{appName:b.name,iconUrl:b.iconUrl}},setHideBannerCookie:function(a){var b=(new Date).toGMTString();l.setCookie(j,b,k,a.currentUrl.hostname,a.getMainPagePath(),false);if(!l.getCookie(j)){l.setCookie(j,b,k,a.currentUrl.hostname,undefined,false)}},doesHideBannerCookieExist:function(){return!a.isUndefined(l.getCookie(j))},closeBanner:function(a){var b=a.getSiteData();this.isHidden=true;this.setHideBannerCookie(b);a.forceUpdate()},getMobileAppBannerComponent:function(a){var c=a.getSiteData();if(!this.shouldShowMobileAppBanner(c)){return undefined}var e=b.componentPropsBuilder.getCompProps(g(),a);e.siteData=c;e.bannerModel=this.getMobileAppBannerModel(c);e.appDownloadUrl=i(c);e.closeBanner=this.closeBanner.bind(this,a);var h=d.getCompClass(f);return h(e)}}});define("core/bi/events.json",[],function(){return{SITE_MEMBER_LOGIN_SUCCESS:{eventId:520,adapter:"hed",params:{c1:"userName"}},PAGE_PERFORMANCE_DATA:{eventId:350,adapter:"ugc-viewer",params:{c1:"preClient",c2:"client",c3:"santaVersion",i1:"timeoutSeconds",is_premium:"isPremium",is_wixsite:"isWixSite",dns_time:"dnsTime",response_time:"responseTime",experiment:"experiment",page_id:"pageId"},sampleRatio:1},LOAD_IMAGES_DATA:{eventId:341,adapter:"mlt",params:{c1:"imagePerf"}},LP_BUTTON_CLICK:{eventId:352,adapter:"ugc-viewer",params:{postSignUp:"postSignUp",postLogin:"postLogin",target_url:"targetUrl",button_name:"buttonName",active_fold:"activeFold",total_folds:"totalFolds",text:"text",component_id:"componentId",loginCompName:"loginCompName"},wixSiteSampleRatio:0},IMAGES_DOWNLOAD:{eventId:353,adapter:"ugc-viewer",params:{imagePerf:"imagePerf",kbps:"kbps",ttfb:"ttfb"}},MONOTYPE_FONTS_USED_ON_SITE:{eventId:355,adapter:"ugc-viewer",params:{}},USER_INTERACTION:{eventId:368,adapter:"ugc-viewer",params:{type:"type",time:"time"}},UNSAFE_HTML_IN_TEXT_COMPONENT:{eventId:369,adapter:"ugc-viewer",params:{filtered_content:"filtered_content",component_id:"component_id",component_type:"component_type"}},CLICK_TO_ACTION:{eventId:372,adapter:"ugc-viewer",params:{data:"data",field_type:"field_type",input_type:"input_type"}}}});define("core/bi/events",["core/bi/events.json","lodash","utils"],function(a,b,c){"use strict";var d=c.logger;d.register("core","event",a);return a});define("core/core/siteBI",["lodash","zepto","utils","core/bi/events"],function(a,b,c,d){"use strict";var e=c.logger;var f=c.newrelic;var g=["useHttps"];var h=25;var i=9216;var j=5;var k=2;var l=44;var m=11;if(typeof window==="undefined"){return{init:function(){},send:function(){}}}var n=window.queryUtil&&window.queryUtil.isParameterTrue("isEdited");var o=["navigationStart","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","requestStart","responseStart","responseEnd"];var p=[5,15,30];var q=3;var r=10;var s=window.performance||{};var t=s.timing;t=a.pick(t,o);var u;function v(b){var c=b.rendererModel||b.editorModel||{};return a.reduce(c.runningExperiments,function(a,b,c){var d=g.indexOf(c);return d===-1?a:a+Math.pow(2,d)},0)}function w(b,c){if(uh&&a.startsWith(b.name,f)}).value()}function k(a){var b=a.name.replace(f,"");var c=b.match(/\.([^\/]+).+w_(\d+),h_(\d+),/);if(c){var d=Number(c[2]);var e=Number(c[3]);return{url:b,format:c[1],width:d,height:e,size:d*e}}return{}}function l(b){var c=k(b);var d={start:Math.round(b.startTime),end:Math.round(b.startTime+b.duration),ttfb:Math.round(b.responseStart-b.requestStart),dns:Math.round(b.domainLookupEnd-b.domainLookupStart),ssl:b.secureConnectionStart?Math.round(b.connectEnd-b.secureConnectionStart):0,speed:b.duration>0?Math.round(c.size/b.duration):0,fileSize:b.fileSize,kbps:b.duration>0?Math.round(1e3*b.fileSize/b.duration):0};return a.assign({},c,d)}function m(f){function h(b){return new f(function(d,e){c.ajaxLibrary.ajax({type:"HEAD",url:b.name,success:function(c,e,f){var g=f.getResponseHeader("Content-Length");var h=g&&Math.round(g/1024);d(a.assign(b,{fileSize:h}))},error:function(a,b,c){e(c)}})})}var k=g().map(h);f.all(k).then(function(c){var f=a(c).filter(function(a){return a.fileSize>j}).sortBy("fileSize").takeRight(r).map(l).filter(function(a){return a.kbps<=i}).value();if(f.length){var g=a.reduce(f,function(a,b){return{size:a.size+b.fileSize,duration:a.duration+b.end-b.start,ttfb:a.ttfb+b.ttfb}},{size:0,duration:0,ttfb:0});e.reportBI(b,d.IMAGES_DOWNLOAD,{imagePerf:JSON.stringify(f),kbps:Math.round(1e3*g.size/g.duration),ttfb:Math.round(g.ttfb/f.length)})}},a.noop)}if(window.Promise&&window.Promise.all){m(window.Promise)}else{requirejs(["bluebird"],m,a.noop)}}function z(c){if(!b){return}var f=function(g){b(window).off(".bi");f=a.noop;e.reportBI(c,d.USER_INTERACTION,{type:g})};var g=0;function h(){if(++g>k){f("key")}}var i=0;function j(){if(++i>l){f("mouse"); }}var n=0;function o(){if(++n>m){f("scroll")}}b(window).on({"keydown.bi":h,"mousemove.bi":j,"scroll.bi":o})}function A(){var b=s.getEntriesByType("resource");var c=a.filter(b,function(a){return/\.mp4$/.test(a.name)});c.forEach(function(b){f.addPageAction("videoPerformance",a.pick(b,["name","startTime","requestStart","responseStart","responseEnd"]))})}var B=a.now();return{init:function(b){if(n){return}if(e.shouldSendReport(b,d.USER_INTERACTION)){setTimeout(function(){z(b)},300)}if(!e.shouldSendReport(b)){return}u=Infinity;B=a.now();a.forEach(p,function(a){setTimeout(w.bind(null,b,a),a*1e3)});if(s.getEntriesByName){setTimeout(function(){x(b);y(b)},10500)}},send:function(b){if(!n){if(e.shouldSendReport(b,d.PAGE_PERFORMANCE_DATA)){setTimeout(function(){w(b,Math.round((a.now()-B)/1e3))},300)}if(s.getEntriesByType&&e.shouldSendReport(b,{sampleRatio:1})){setTimeout(function(){A()},3e3)}}}}});define("core/siteRender/WixPopupRoot",["lodash","react","reactDOM","santaProps","core/siteRender/WixPageReact","core/siteRender/blockingLayer"],function(a,b,c,d,e,f){"use strict";var g=b.createFactory(e);var h=b.createFactory(f);function i(a){return a.renderFlags.componentViewMode==="preview"}return b.createClass({displayName:"WixPopupRoot",getInitialState:function(){return{activePopupId:this.props.currentPopupId,activePopupKey:1,animating:false}},shouldComponentUpdate:function(b,c){if(!b.currentPopupId&&this.state.activePopupId&&!this.state.animating){var d=this.props.siteAPI.getSiteAspect("actionsAspect");var e=a.keys(this.refs[this.state.activePopupId].refs);this.setState({animating:true});d.registerComponentsExit(e,function(){if(!b.currentPopupId){this.setState({activePopupId:null,animating:false})}d.handleNavigationComplete()}.bind(this));return false}else if(c.animating&&!b.currentPopupId){return false}return true},componentWillReceiveProps:function(a){if(a.currentPopupId!==this.state.activePopupId){this.setState({activePopupId:a.currentPopupId,activePopupKey:(this.state.activePopupKey||0)+1,animating:false})}},componentDidUpdate:function(){var a=this.state.activePopupId,b;if(a&&i(this.props.siteData)){b=this.props.siteAPI.getRuntimeDal();b.markPopupAsBeenOpened(a)}},render:function(){var a=this.props.siteData;var c=this.state.activePopupId;var e=a.isMobileView();if(c){var f=a.getPageData(c).structure;var i=d.componentPropsBuilder.getCompProps(f,this.props.siteAPI,c,this.props.loadedStyles);i.key=this.state.activePopupKey;var j=[g(i),this.props.blockingPopupLayer?h({siteData:a}):null];var k=a.getSiteWidth();var l=b.DOM.div({id:"POPUPS_WRAPPER",className:"POPUPS_WRAPPER",key:"POPUPS_WRAPPER",style:{minWidth:k,minHeight:a.getScreenHeight(),margin:"0 auto",width:e?k:"auto"},children:j});return b.DOM.div({id:"POPUPS_ROOT",className:e?"POPUPS_ROOT mobile":"POPUPS_ROOT",key:"POPUPS_ROOT",style:{overflow:a.renderFlags.allowSiteOverflow?null:"hidden"},tabIndex:0,children:[l]})}return null},componentDidMount:function(){var a=c.findDOMNode(this);if(a){a.focus()}}})});define("core/siteRender/siteClickHandler",["lodash","zepto","utils","core/bi/events.json"],function(a,b,c,d){"use strict";function e(a){a.stopPropagation();a.preventDefault();return false}function f(a,b){if(a.attr("data-mobile")){var d=c.stringUtils.isTrue(a.attr("data-mobile"));b.setMobileView(d);c.mobileViewportFixer.fixViewportTag(b.getSiteData())}}function g(b,d,e){var f=this.props.siteData;if(!(a.get(f,["rendererModel","runningExperiments","specs.users.NewLoginVelocityTemplateFT"])==="true")){var g=e&&c.stringUtils.startsWith(e,c.linkRenderer.CONSTS.LOGIN_TO_WIX_URL,true);if(g&&f.renderFlags.isExternalNavigationAllowed){this.siteAPI.getSiteAspect("LoginToWix").openLoginToWixForm(e,true,b.target);return true}}var h=c.linkRenderer.isExternalLink(f,e);var i=c.linkRenderer.isRelativeUrl(e);var j=c.linkRenderer.isEmailLink(e);var k=d.attr("target")==="_self";var l=f.renderRealtimeConfig.previewTooltipCallback;var m=!f.renderFlags.isExternalNavigationAllowed&&l&&(h&&k||h&&i||j);if(m){var n=b.target.getBoundingClientRect();l(n,"text_editor_inactive_link_on_preview");return true}return false}function h(a,b,d){var e=a.attr("data-no-physical-url");var f=e||b;return c.wixUrlParser.parseUrl(d,f)}function i(a){return!a.attr("data-no-physical-url")}function j(a){return!!a.attr("data-keep-roots")}function k(b,c){a.assign(b,{pageItemAdditionalData:c.attr("data-page-item-context"),anchorData:c.attr("data-anchor")})}function l(a,b){var c=this.props.siteData;var d=h(a,b,c);if(!d||a.attr("target")==="_blank"){return false}k(d,a);var e=i(a);var f=j(a);this.handleNavigation(d,b,e,f);return true}function m(a,b){if(!b.attr("data-type")){return}a.reportBI(d.CLICK_TO_ACTION,{field_type:b.attr("data-type"),data:b.attr("data-content"),input_type:b.attr("data-auto-recognition")?"auto_recognized":"user_input"})}function n(a){var c=a.target.tagName.toLowerCase()==="a"?b(a.target):b(a.target).parents("a");var d=c.attr("href");m(this.siteAPI,c);f(c,this.siteAPI);var h=g.call(this,a,c,d);if(!h){h=l.call(this,c,d)}if(this.siteAPI.isSelectionSharerVisible()){this.siteAPI.hideSelectionSharer()}return h?e(a):true}return{clickHandler:n}});define("core/siteRender/siteTraversalMixin",["lodash"],function(a){"use strict";function b(a,b){return a[b]&&!a[b].isStub()}function c(b){return a(b).omit("").pick(function(a){return!a.isStub()}).keys().value()}function d(){var d=this.getMasterPage();if(!d){return[]}var e=this.props.siteData;var f=a.get(d,["refs","SITE_PAGES","refs"]);var g=a.get(this,["refs","popupRoot","refs"],{});var h=e.getPrimaryPageId();var i=e.getCurrentPopupId();if(b(f,h)&&(!i||b(g,i))){return a.compact(["masterPage",h,i])}return a.flatten(["masterPage",c(f),c(g)])}function e(){var b=this.props.siteData;if(!this.getMasterPage()){var c=b.getExistingRootNavigationInfo(b.getCurrentUrlPageId());var d=this.siteAPI.getSiteAspect("siteMembers").isPageAllowed(c);if(!d){return[]}}return a.compact(["masterPage",b.getPrimaryPageId(),b.getCurrentPopupId()])}function f(a){var b=this.getPageById(a);var c=b&&b.refs;return c||null}return{getAllRenderedRootIds:d,getRootIdsWhichShouldBeRendered:e,getComponentsByPageId:f}});define("core/components/selectionSharer/selectionSharer",["lodash","react","utils"],function(a,b,c){"use strict";var d=c.socialShareHandler;var e="/static/images/selectionSharerSocialIcons/";var f="facebook.svg";var g="twitter.svg";var h="mail.svg";return b.createClass({displayName:"selectionSharer",getInitialState:function(){return{visible:false,position:null,shareInfo:null}},sharePostWrapper:function(a){var b=this.state.shareInfo;b.url=a;d.handleShareRequest({url:a,service:b.service,title:b.title,storeId:b.storeId,postId:b.postId,hashTags:b.hashTags||"",imageUrl:b.imgSrc,addDeepLinkParam:false,description:b.description},this.props.siteAPI)},show:function(a,b){this.setState({visible:true,position:a,shareInfo:b})},hide:function(){this.setState({visible:false,position:null,shareInfo:null})},isVisible:function(){return this.state.visible},twitterClickHandler:function(){this.hide();var a=this.state.shareInfo;a.service="twitter";a.title=a.description;d.shortenURL(a.url,2e3,this.sharePostWrapper,this.sharePostWrapper.bind(null,a.url))},facebookClickHandler:function(){this.hide();var a=this.state.shareInfo;a.service="facebook";d.shortenURL(a.url,2e3,this.sharePostWrapper,this.sharePostWrapper.bind(null,a.url))},mailClickHandler:function(){this.hide();var a=this.state.shareInfo;a.service="email";a.description=a.description+"\r\n"+"( "+a.url+" )";d.handleShareRequest(a,this.props.siteAPI)},render:function(){if(this.state.visible){var a={position:"absolute",left:this.state.position.x+"px",top:this.state.position.y+"px"};var c=this.props.siteBasePath+e;return b.createElement("div",{className:"selectionSharerContainer",style:a},[b.createElement("img",{key:"selection-sharer-facebook-img",className:"selectionSharerOption",src:c+f,onClick:this.facebookClickHandler}),b.createElement("div",{key:"selection-sharer-first-separator",className:"selectionSharerVerticalSeparator"}),b.createElement("img",{key:"selection-sharer-twitter-img",className:"selectionSharerOption",src:c+g,onClick:this.twitterClickHandler}),b.createElement("div",{key:"selection-sharer-second-separator",className:"selectionSharerVerticalSeparator"}),b.createElement("img",{key:"selection-sharer-mail-img",className:"selectionSharerOption",src:c+h,onClick:this.mailClickHandler})])}return null}})});define("core/siteRender/WixSiteReact",["zepto","lodash","react","reactDOM","santaProps","core/siteRender/styleCollector","core/siteRender/WixThemeReact","core/siteRender/WixPageReact","core/siteRender/wixBackgroundInstantiator","layout","utils","core/siteRender/SiteAPI","core/siteRender/siteAspectsMixin","animations","core/siteRender/siteAspectsDomContainer","core/siteRender/extraSiteHeight","core/siteRender/blockingLayer","core/siteRender/wixAdsInstatiator","core/siteRender/mobileAppBannerInstantiator","mousetrap","core/core/siteBI","core/components/renderDoneMixin","core/siteRender/WixPopupRoot","core/siteRender/siteClickHandler","core/siteRender/siteTraversalMixin","core/components/selectionSharer/selectionSharer","experiment"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A){"use strict";var B=e.componentPropsBuilder;var C={"components.layout.update":true,"renderPlugins.setCompsToShowOnTop":true,"components.layout.updateAndAdjustLayout":true,"siteSegments.layout.update":true,"components.layout.updateDock":true,"components.layout.setDock":true,"components.layout.unDock":true};var D=C.hasOwnProperty.bind(C);var E={"wysiwyg.viewer.components.BoxSlideShow":true,"wysiwyg.viewer.components.StripContainerSlideShow":true,"wysiwyg.viewer.components.StripColumnsContainer":true};var F={"wysiwyg.viewer.components.Column":P};var G={"wysiwyg.viewer.components.Column":P};var H=k.style.MAX_Z_INDEX;var I=c.createFactory(g);var J=c.createFactory(h);var K=c.createFactory(w);var L=c.createFactory(o);var M=c.createFactory(p);var N=c.createFactory(q);var O=k.dataUtils;function P(a){return!a.getSiteData().isMobileView()}function Q(a,c){return b.isFunction(a)?a(c):a}function R(a,b,c){return U(c)||Q(F[a],b)}function S(a,b){return Q(G[a],b)}function T(a,b){return Q(E[a],b)}function U(a){return a==="wysiwyg.viewer.components.Group"}function V(a,c){var d=c.getSiteData();var e=b.last(a);var f=O.getChildrenData(e,d.isMobileView());var g=[e].concat(f);if(a.length>1){var h=a[a.length-2];if(R(e.componentType,c,h.componentType)){g.push(h)}if(S(e.componentType,c)){var i=O.getChildrenData(h,d.isMobileView());g=g.concat(i)}if(T(e.componentType,c)){b.forEach(f,function(a){var b=O.getChildrenData(a,d.isMobileView());g=g.concat(b)})}}return g}var W=function(a,b,c,e,f,g,h){a=a&&b?a.refs[b]:a;a=a&&c?a.refs[c]:a;a=a&&e?a.refs[e]:a;a=a&&f?a.refs[f]:a;a=a&&g?a.refs[g]:a;a=a&&h?a.refs[h]:a;return a&&d.findDOMNode(a)};var X={desktop:k.math.interpolateSegmentsFunction([[0,.6],[360,.8],[720,1],[1440,1.2],[7200,2.8],[9600,3],[1e4,3]]),mobile:k.math.interpolateSegmentsFunction([[0,.5],[360,.7],[720,.9],[1440,1.1],[7200,2.7],[9600,2.9],[1e4,2.9]])};function Y(a,c){var d=this.deletedMeasureMap||this.props.siteData.measureMap;var e=B.getRootProps(this.props.rootId,a,this.props.viewerPrivateServices,c,d);e.structure=b.merge({},e.structure,{layout:{position:this.props.siteRootPosition}});e.ref=this.props.rootId;e.refInParent=e.ref;e.className="SITE_ROOT";e.firstPage=true;delete e.id;e.style={width:this.props.siteData.getSiteWidth()};e.key=(a.getSiteData().isMobileView()?"mobile_":"desktop_")+"siteRoot";return e}function Z(){var a=this;return b.throttle(function(){if(!a.dead&&a.getMasterPage()){a.props.siteData.updateScreenSize();a.forceUpdate()}},500,{leading:false,trailing:true})}function $(){if(window.rendererModel){var a=b(window.rendererModel.runningExperiments).pick(function(a){return a==="new"}).keys().value();t.bind("ctrl+alt+shift+e",function(){window.alert("Active Experiments:\n"+a).join("\n")})}}function _(){var a=this.props.siteData;var c=a.baseVersion||"could not retrieve version!";t.bind("ctrl+alt+shift+v",function(){window.alert("You are running React!\nVersion: "+c)});var d=b.find(a.currentUrl.query,function(a,b){return b.toLowerCase()==="alertversion"});if(d&&(a.isMobileDevice()||a.isTabletDevice())){window.alert("You are running React!\nVersion: "+c)}}function aa(a){if(a.componentDidLayout){a.componentDidLayout.call(a)}if(a.componentDidLayoutAnimations){a.componentDidLayoutAnimations.call(a)}b.forOwn(a.refs,aa)}function ba(a){b.forEach(a,aa)}function ca(a){var c=b.clone(a.getMasterPageData().structure);["children","mobileComponents"].forEach(function(a){var d=b.chain(c[a]).find({id:"PAGES_CONTAINER"}).cloneDeep().value();d.layout.y=0;da(d);c[a]=[d]});return c}function da(a){if(a.layout.anchors){var b={distance:0,locked:true,originalValue:a.layout.height,targetComponent:"masterPage",topToTop:a.layout.height,type:"BOTTOM_PARENT"};while(a.layout.anchors.length){a.layout.anchors.pop()}a.layout.anchors.push(b)}}function ea(a){var c=this.getAspectsComponentStructures();var d=this.props.siteData;var e=b.transform(c,function(a,b){a[b.id]={structure:b,getDomNodeFunc:W.bind(null,this.refs.siteAspectsContainer)}},{},this);var f=this.state.currentUrlPageId;if(!a){return e}e.inner={structure:d.pagesData[f].structure,pageId:f,getDomNodeFunc:W.bind(null,this.getPageById(f))};e.outer={structure:d.getMasterPageData().structure,getDomNodeFunc:W.bind(null,this.refs[this.props.rootId])};var g;var h=d.getViewMode();if(d.isPageLandingPage(f)){e.outer.structure=ca(d);g=b.get(d,["anchorsMap","landingPageMasterPage",h])}else{g=b.get(d,["anchorsMap","defaultMasterPage",h])}if(g){b.set(d,["anchorsMap",d.getMasterPageData().structure.id,h],g)}e.siteBackground={structure:i.getWixBgStructure(),getDomNodeFunc:W.bind(null,this)};var j=this.state.currentPopupId;if(j){e[j]={structure:d.getPageData(j).structure,getDomNodeFunc:W.bind(null,this.refs.popupRoot,j),pageId:j}}if(d.shouldShowWixAds()){var k=r.getStructure(d);e.wixAds={structure:k,getDomNodeFunc:W.bind(null,this)}}return e}function fa(b){var c=a(".hiddenTillReady");if(b.isMobileDevice()){a(".wix-menu-enabled").removeClass("wix-menu-enabled");c.css({display:"none"})}else{c.removeClass("hiddenTillReady")}}function ga(a){return{x:a.pageXOffset||a.scrollX||0,y:a.pageYOffset||a.scrollY||0}}function ha(a,b,c){var d=Math.abs(b-a);var e=c?X.mobile(d):X.desktop(d);return e}function ia(c,e){if(!c){return}var f=b.assign({},e);var g=k.style.getPrefixedTransform();var h=ja(g);f[h]=e[g];if(g!==h){f[g]=""}if(c.hasOwnProperty("getRootStyle")){b.assign(f,c.getRootStyle(f))}a(d.findDOMNode(c)).css(f)}function ja(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})}function ka(a,b){return a.getSiteAspect("siteMembers").isPageAllowed(b)}function la(a,c){var d=b.keys(c);var e=function(d){return b.isEmpty(ma(a,c,d))};return!b.every(d,e)}function ma(a,c,d){var e=b.get(a,d,{});var f=b.get(c,d,{});return k.modes.getModeChanges(e,f)}function na(a,b){var c=a.getSiteData();var d=c.getFocusedRootId()!==b.pageId;var e=c.getFocusedRootId()===a.getCurrentPopupId();if(A.isOpen("sv_platform1")&&d&&!e){a.getSiteAspect("WidgetAspect").loadApps([b.pageId])}}function oa(a,c,d){if(!A.isOpen("sv_partialReLayout")){return null}if(!a.measureMap||b.isEmpty(c)&&b.isEmpty(d)){return null}return b.assign({},d,c)}return c.createClass({displayName:"WixSite",mixins:[m,v,x,y],propTypes:{wixCodeAppApi:c.PropTypes.shape({init:c.PropTypes.func,sendMessage:c.PropTypes.func,registerMessageHandler:c.PropTypes.func,registerMessageModifier:c.PropTypes.func})},getDefaultProps:function(){return{siteRootPosition:"static",scopedRoot:null,rootId:"masterPage",wixCodeAppApi:{init:b.noop,sendMessage:b.noop,registerMessageHandler:b.noop,registerMessageModifier:b.noop}}},getPrimaryPage:function(){var a=this.refs[this.props.rootId];if(this.props.rootId==="masterPage"&&a){var b=this.props.siteData.getPrimaryPageId();a=a.refs.SITE_PAGES.refs[b]}return a},getCurrentPopup:function(){var a=this.props.siteData.getCurrentPopupId();if(a){return k.reactComponentUtils.getRef(this,"popupRoot",a)}return null},getMasterPage:function(){var a=this.refs[this.props.rootId];return a},getPageById:function(a){var b=this.getMasterPage();if(a===this.props.rootId){return b}if(b&&b.refs.SITE_PAGES.refs[a]){return b.refs.SITE_PAGES.refs[a]}return k.reactComponentUtils.getRef(this,"popupRoot",a)},isDomOnly:function(a,c,d,e){return b.every(e,D)&&d.style.position===a.props.style.position&&(!b.has(a,"lastScale")||c.layout.scale===a.lastScale)&&b.isEqual(d.compProp,a.props.compProp)&&d.style.transform===a.props.style.transform},isDomOnlyByMethodNamesAndCompId:function(a,c){var d=this.getPageOfComp(c);var e=d.props.rootId;var f=d.refs[c];var g=O.findHierarchyInStructure(c,this.props.siteData.isMobileView(),this.props.siteData.pagesData[e].structure);var h=b.last(g);var i=B.getCompProps(h,this.siteAPI,e,this.loadedStyles);return this.isDomOnly(f,h,i,a)},updateMultipleComps:function(a,c){this.tempMeasureMap=this.props.siteData.measureMap;var d=[];function e(c){d.push(c);if(d.length===a.length){this.lockedCompIds=b.flatten(d);this.reLayout()}}this.noEnforceAnchors=c;b.forEach(a,this.updateDOMOnlySingleComp.bind(this,e.bind(this)))},updateDOMOnlySingleComp:function(a,c){var d=this.getPageOfComp(c);var f=d.props.rootId;var g=d.refs[c];var h=O.findHierarchyInStructure(c,this.props.siteData.isMobileView(),this.props.siteData.pagesData[f].structure);var i=b.last(h);var j=B.getCompProps(i,this.siteAPI,f,this.loadedStyles);var k=V(h,this.siteAPI);var l=b.pluck(k,"id");ia(g,j.style);var m=b.reject(k,i);var n=this.componentsUpdatedBySingleCompUpdateBehindReactsBack[c]||b.clone(g.props.style);this.componentsUpdatedBySingleCompUpdateBehindReactsBack[c]=n;if(j.style.zIndex===H&&(!n||!n.hasOwnProperty("zIndex"))){this.componentsUpdatedBySingleCompUpdateBehindReactsBack[c]=b.assign(n,{zIndex:""})}b.forEach(m,function(a){ia(d.refs[a.id],e.propsBuilderUtil.getStyle(a.layout,this.siteAPI,a.id))},this);a(l)},getPageOfComp:function(a){var c=b.find(this.siteAPI.getAllRenderedRootIds(),function(b){var c=this.getPageById(b);if(!c){return false}var d=c.refs;return!!d[a]},this);return this.getPageById(c)},updateSingleComp:function(a,c,d){var e=this.props.siteData;e.dataResolver.setReadingFromCache(false);this.tempMeasureMap=e.measureMap;this.deletedMeasureMap=e.measureMap;delete e.measureMap;var f=this.getPageOfComp(a);var g=f.props.rootId;var h=f.refs[a];var i=O.findHierarchyInStructure(a,e.isMobileView(),e.pagesData[g].structure);var j=b.clone(b.last(i));j.layout=b.clone(j.layout);var l=B.getCompProps(j,this.siteAPI,g,this.loadedStyles);e.dataResolver.setReadingFromCache(true);var m=k.style.getPrefixedTransform();var n=ja(m);l.style[n]=l.style[m];this.markInvokedMethodNames(d);var o=[];var p=null;var q=null;function r(){if(p){h.componentWillUpdate=p}if(q){h.componentDidUpdate=q}this.noEnforceAnchors=c;b.forEach(o,function(a){a()});this.lockedCompIds=b.pluck(V(i,this.siteAPI),"id");this.reLayout()}if(this.componentsUpdatedBySingleCompUpdateBehindReactsBack[a]){ia(h,this.componentsUpdatedBySingleCompUpdateBehindReactsBack[a]);delete this.componentsUpdatedBySingleCompUpdateBehindReactsBack[a]}var s={};if(h.componentWillReceiveProps){var t=h.setState;h.setState=function(a,c){b.assign(s,a);if(c){o.push(c)}};h.componentWillReceiveProps(l,h.state);h.setState=t}if(h.componentWillUpdate){p=h.componentWillUpdate;h.componentWillUpdate=function(a,b){p.call(h,l,b)}}var u=["compProp","compData","style","compDesign"];if(h.componentDidUpdate){q=h.componentDidUpdate;var v=b.clone(h.props);b.forEach(u,function(a){v[a]=b.clone(v[a])});h.componentDidUpdate=function(a,b){q.call(h,v,b)}}b.forEach(u,function(a){if(b.has(h.props,a)){b.assign(h.props[a]||{},l[a])}});h.setState(s,r.bind(this))},scrollToAnchor:function(a,b){var c=this.props.getSiteContainer();var d=this.props.siteData.isMobileView();var e=ha(ga(c).y,a.y,d);var f=d?"Quint.easeOut":"Sine.easeInOut";n.animate("BaseScroll",c,e,0,{y:a.y,ease:f,callbacks:{onUpdate:b}})},scrollToTop:function(){this.scrollToAnchor({y:0})},getInitialState:function(){this.loadedStyles=this.loadedStyles||{};this.reLayoutPending=false;this.pendingReLayoutCompsMap={};this.siteAPI=new l(this);this.isBusy=true;this.isChangingUrlPage=true;this.noEnforceAnchors=false;this.siteAPI.reportBeatEvent(7,this.props.siteData.getPrimaryPageId());this.componentsUpdatedBySingleCompUpdateBehindReactsBack={};this.prevActiveModes=k.objectUtils.cloneDeep(this.props.siteData.activeModes);return{}},componentWillMount:function(){var a=this.props.siteData;var b=a.getCurrentUrlPageId();var c=a.getExistingRootNavigationInfo(b);var d=ka(this.siteAPI,c)?b:null;this.setState({currentUrlPageId:d,currentPopupId:null})},_addSiteStylesToLoaded:function(a,c){var d=a.getAllTheme();var e=this.getAspectsComponentStructures();if(c){var g=a.getAllPossiblyRenderedRoots();e=b.reduce(g,function(b,c){b.push(a.pagesData[c].structure);return b},e)}else{e.push(a.getMasterPageData().structure)}b.forEach(e,function(b){var c=a.pagesData[b.id]?b.id:a.MASTER_PAGE_ID;f.collectStyleIdsFromStructure(b,d,a,this.loadedStyles,c,a.isMobileView())},this)},markInvokedMethodNames:function(a){this.invokedMethodNames=b.union(this.invokedMethodNames||[],a)},componentWillUpdate:function(a,c){this.isBusy=true;this.isChangingUrlPage=c.currentUrlPageId!==this.state.currentUrlPageId;b.forEach(this.componentsUpdatedBySingleCompUpdateBehindReactsBack,function(a,b){var c=this._aspectsSiteAPI.getComponentById(b);if(c){ia(c,a)}},this);this.componentsUpdatedBySingleCompUpdateBehindReactsBack={};if(c.noEnforceAnchors&&c.noEnforceAnchors!==this.state.noEnforceAnchors){this.noEnforceAnchors=true}if(c.forceUpdateIndex!==this.state.forceUpdateIndex){this.props.siteData.clearCache();this.tempMeasureMap=this.props.siteData.measureMap;this.deletedMeasureMap=this.props.siteData.measureMap;delete this.props.siteData.measureMap}else{this.markInvokedMethodNames(["*"])}if(la(this.prevActiveModes,a.siteData.activeModes)){this.deletedMeasureMap=this.props.siteData.measureMap;delete this.props.siteData.measureMap}},render:function(){var a=this.props.siteData;var d=a.getExistingRootNavigationInfo(a.getCurrentUrlPageId());var e=ka(this.siteAPI,d);var f=[I({themeData:a.getAllTheme(),siteData:a,masterPage:a.getMasterPageData(),loadedStyles:this.loadedStyles,styleRoot:this.props.scopedRoot?"#"+this.props.scopedRoot:null,ref:"theme",shouldRenderPage:e,siteAPI:this.siteAPI}),s.getMobileAppBannerComponent(this.siteAPI),a.shouldShowWixAds()?r.getWixAdsComponent(this.siteAPI):undefined,L({ref:"siteAspectsContainer",key:"siteAspectsContainer",aspectsCompsFunc:this.getAspectsReactComponents}),c.createElement(z,{ref:"selectionSharer",siteBasePath:a.santaBase,siteAPI:this.siteAPI})];if(a.renderFlags.extraSiteHeight>0&&!a.isMobileView()){f.push(M({siteData:a}))}if(a.renderFlags.blockingLayer){f.push(N({siteData:a}))}if(e){var g=Y.call(this,this.siteAPI,this.loadedStyles);var h=i.getWixBgComponent(this.siteAPI);var j=this.getRootStyle();f.splice(3,0,h,c.DOM.div({className:"SITE_ROOT",key:"SITE_ROOT",id:this.props.scopedRoot?null:"SITE_ROOT",style:j},J(g)));f.splice(5,0,K({currentPopupId:this.state.currentPopupId,siteAPI:this.siteAPI,siteData:a,loadedStyles:this.loadedStyles,ref:"popupRoot",siteRootStyle:j,blockingPopupLayer:a.renderFlags.blockingPopupLayer}))}else{this.siteAPI.getSiteAspect("siteMembers").showDialogOnNextRender(d)}this._addSiteStylesToLoaded(a,e);return c.DOM.div(b.assign({className:this.props.className,id:this.props.scopedRoot?this.props.scopedRoot:null,onClick:this.clickHandler,children:f},this.props.extraEventsHandlers))},getRootStyle:function(){var a={};a.width=this.props.siteData.getSiteWidth();a.paddingBottom=this.props.siteData.getPageBottomMargin();if(this.state.siteRootHidden){a.height=0;a.overflowY="hidden"}return a},onPopState:function(){var a=window.location.href;var b=k.wixUrlParser.parseUrl(this.props.siteData,a);if(b){this.tryToNavigate(b,true)}},onHashChange:function(){var a=k.wixUrlParser.parseUrl(this.props.siteData,window.location.href);if(a&&this.props.siteData.isUsingUrlFormat("slash")){this.tryToNavigate(a)}},isPageExists:function(a){return b.includes(this.props.siteData.getAllPageIds(),a)},navigateIfPossible:function(a,c,d,e){var f=b.get(this.props,"viewerPrivateServices.siteDataAPI");var g=this.siteAPI.getSiteData();if(this.isPageExists(a.pageId)){if(ka(this.siteAPI,a)){var h=g.getDataByQuery(a.pageId);if(!h){return}if(!h.isPopup){this.siteAPI.getSiteAspect("siteMembers").forceCloseDialog()}var i=b.clone(a);i.title=a.title||h.pageUriSEO;var j=k.wixUrlParser.getUrl(g,i);var l=g.isPopupPage(a.pageId)||c;this.siteAPI.startingPageTransition(i);this.props.navigateMethod(this,f,j,i,!l,d,e)}else{this.siteAPI.getSiteAspect("siteMembers").showDialogOnNextRender(a);this.forceUpdate()}}},tryToNavigate:function(a,c,d,e){na(this.siteAPI,a);var f=this.siteAPI.getSiteData();if(A.isOpen("sv_dpages")&&a.routerDefinition&&!a.pageId){this.props.getDynamicPageRealPage(f,a,function(g){b.assign(a,g);if(f.getPrimaryPageId()===a.pageId){this.siteAPI.getSiteAspect("WidgetAspect").stopApps([a.pageId]);this.siteAPI.getSiteAspect("WidgetAspect").loadApps([a.pageId])}this.navigateIfPossible(a,c,d,e)}.bind(this));return}this.navigateIfPossible(a,c,d,e)},handleNavigation:function(a,c,d,e){var f=this.siteAPI;var g=this.props.siteData;if(a.pageId===g.getPrimaryPageId()){if(c!=="#"){var h=b.get(this.props,"viewerPrivateServices.siteDataAPI");this.props.navigateMethod(this,h,c,a,d,e)}if(a.anchorData){var i=function(b){var c=b.ratio===1;if(c){f.getSiteAspect("anchorChangeEvent").setSelectedAnchorAsync(g,a.anchorData,a.pageId,k.constants.ACTIVE_ANCHOR.DELAY_TO_END_SCROLL)}};f.scrollToAnchor(a.anchorData,i.bind(this))}else if(!g.isImageZoom(a)){this.scrollToTop()}}else{this.tryToNavigate(a,!d)}},renderCompsAfterLayout:function(a){this.props.siteData.componentsToRender=b.union(this.props.siteData.componentsToRender,a);if(!b.isEmpty(a)){this.forceUpdate(function(){this.props.siteData.componentsToRender=[]})}},reLayout:function(){var a=this.lockedCompIds&&k.arrayUtils.toTrueObj(this.lockedCompIds);var b=this.props.siteData;var c=b.getExistingRootNavigationInfo(b.getCurrentUrlPageId());var d=ka(this.siteAPI,c);this.updateBodyNodeStyle(b);var e=ea.call(this,d);var f=oa(b,a,this.pendingReLayoutCompsMap);var g=j.reLayout(e,this.siteAPI,this.noEnforceAnchors,a,f);b.measureMap=g.measureMap;b.reLayoutedCompsMap=g.reLayoutedCompsMap;delete this.tempMeasureMap;delete this.lockedCompIds;if(d){this.pendingReLayoutCompsMap={};this.reLayoutPending=false;this.noEnforceAnchors=false;this.renderCompsAfterLayout(g.componentsToRender);this.isBusy=false;var h=this.getMasterPage();var i=[h,this.getPrimaryPage(),this.refs.siteAspectsContainer];var l=this.getCurrentPopup();if(l){i.push(l)}ba(i)}else{this.siteAPI.getSiteAspect("siteMembers").showDialogOnNextRender(c);ba([this.refs.siteAspectsContainer])}this.isBusy=false;var m=this.invokedMethodNames||[];this.invokedMethodNames=[];this.notifyAspects("didLayout",m);if(!this.siteIsReady){this.siteIsReady=true;if(this.siteAPI&&this.siteAPI.setBiMarker){this.siteAPI.setBiMarker("lastTimeStamp")}this.notifyAspects("siteReady")}},registerReLayoutPending:function(a){this.pendingReLayoutCompsMap[a]=true;this.reLayoutPending=true},reLayoutIfPending:function(){if(this.reLayoutPending){this.reLayoutPending=false;this.refs.theme.initWaitForStylesReady()}},updateBodyNodeStyle:function(c){var d=a("body");var e=a("html");if(this.props.siteData.isQaMode()){d.addClass("qa-mode")}if(this.props.siteData.isMobileView()){d.addClass("device-mobile-optimized");e.addClass("device-mobile-optimized")}else if(c.isMobileDevice()||c.isTabletDevice()){d.addClass("device-mobile-non-optimized")}else{d.removeClass("device-mobile-optimized").removeClass("device-mobile-non-optimized");e.removeClass("device-mobile-optimized")}if(this.props.siteData.isMobileDevice()){var f=b.assign({},this.props.siteData.os,this.props.siteData.browser);var g=b(f).keys().filter(function(a){return f[a]===true}).map(function(a){return"device-"+a}).join(" ");e.addClass(g)}var h=d.css("overflow");var i=c.renderFlags.allowSiteOverflow?null:"hidden";if(h!==i){d.css("overflow",i)}},componentDidMount:function(){if(this.props.siteData.isUsingUrlFormat(k.siteConstants.URL_FORMATS.SLASH)){this.siteAPI.reportCurrentPageEvent()}else{this.siteAPI.reportPageEvent(this.props.siteData.currentUrl.full)}this.siteAPI.initFacebookRemarketing();this.siteAPI.initGoogleRemarketing();this.siteAPI.initYandexMetrika();this.siteAPI.setBiMarker("renderEnd");this.registerAspectToEvent("siteReady",function(){this.siteAPI.reportBeatFinish(this.props.siteData.getCurrentUrlPageId());u.send(this.siteAPI.getSiteData());fa(this.props.siteData)}.bind(this));this.registerAspectToEvent("resize",Z.call(this));$.call(this);_.call(this);this.updateTitleAndMetaTags();this.refs.theme.registerStylesReadyCallback(this.reLayout);this.siteAPI.reportBeatEvent(8,this.props.siteData.getPrimaryPageId());this.refs.theme.initWaitForStylesReady()},componentDidUpdate:function(){this.prevActiveModes=k.objectUtils.cloneDeep(this.props.siteData.activeModes);if(this.tempMeasureMap&&!this.props.siteData.measureMap){this.props.siteData.measureMap=this.tempMeasureMap;delete this.deletedMeasureMap;delete this.tempMeasureMap}if(this.isChangingUrlPage){this.siteAPI.setBiMarker("renderEnd");this.siteAPI.reportBeatFinish(this.props.siteData.getCurrentUrlPageId());if(!this.props.siteData.isUsingUrlFormat(k.siteConstants.URL_FORMATS.SLASH)){this.siteAPI.reportPageEvent(this.props.siteData.currentUrl.full)}this.siteAPI.fireGoogleRemarketing();this.siteAPI.reportYandexPageHit(this.props.siteData.currentUrl.full)}this.refs.theme.initWaitForStylesReady()},updateTitleAndMetaTags:function(){if(this.props.updateHeadMethod){this.props.updateHeadMethod(this.props.siteData,this.props.rootId)}},componentWillUnmount:function(){this.dead=true;this.siteAPI.onSiteUnmount()}})});define("core/siteRender/WixSiteHeadRenderer",["lodash","experiment"],function(a,b){"use strict";function c(){this.blankFavicons=null}function d(b){return a.includes(b.rendererModel.premiumFeatures,"AdsFree")}c.prototype={getFavicons:function(a){if(a.isPremiumUser&&a.isPremiumUser()&&d(a)){return this._getPremiumUserFavicon(a)}return this._getDefaultWixFavicon()},createBlankFavicons:function(){if(this.blankFavicons===null){this.blankFavicons=this._createEmptyFaviconElements()}return this.blankFavicons},getPageMetaTags:function(a,b){return this._getMetaTagsForPage(a,b)},_getPremiumUserFavicon:function(a){var b=a.getFavicon();if(b){var c=this._getFaviconMimeType(b);b=a.getMediaFullStaticUrl(b);return this._createFaviconLinkElements(b,c)}return this._createEmptyFaviconElements()},_getDefaultWixFavicon:function(){var a="http://www.wix.com/favicon.ico";var b=this._getFaviconMimeType(a);return this._createFaviconLinkElements(a,b)},_createEmptyFaviconElements:function(){return this._createFaviconLinkElements(null,null)},_createFaviconLinkElements:function(a,b){var c=[];if(a&&b){c.push({rel:"shortcut icon",href:a,type:b});c.push({rel:"apple-touch-icon",href:a,type:b})}return c},_getStaticMediaUrl:function(a){return a.serviceTopology.mediaRootUrl},_getFaviconMimeType:function(a){var b=null;if(a){if(this._isExtension(a,"png")){b="image/png"}else if(this._isExtension(a,"gif")){b="image/gif"}else if(this._isExtension(a,"ico")||this._isExtension(a,"icon")){b="image/x-icon"}else if(this._isExtension(a,"jpg")){b="image/jpg"}}return b},_isExtension:function(a,b){return this._getExtension(a).toLowerCase()===b},_getExtension:function(a){if(a){var b=a.lastIndexOf(".");if(b>=0){return a.substr(b+1)}}return""},_getMetaTagsForPage:function(c,d){var e=c.getPageSEOMetaData(d);var f=[this._getDescriptionSEOMetaTag,this._getKeywordsSEOMetaTag,this._getOgMetaTag];if(b.isOpen("sv_addRobotsIndexingMetaTag")){f.push(this._getRobotsIndexMetaTag);return a(f).map(function(a){return a(e)}).flatten().value(); }return a.reduce(f,function(a,b){return a.concat(b(e))},[])},_getRobotsIndexMetaTag:function(a){if(a&&a.robotIndex){return''}},_getDescriptionSEOMetaTag:function(a){if(a&&a.description){var b=a.description;return['','']}},getGoogleTagManagerScript:function(){var a="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-MDD5C4');";return""},_getKeywordsSEOMetaTag:function(a){if(a&&a.keywords){var b=a.keywords;return['','']}},_getOgMetaTag:function(b){if(b&&b.ogTags){var c=b.ogTags;return a.reduce(c,function(a,b){return a.concat('')},[])}}};return new c});define("core/core/site",["react","lodash","zepto","utils","core/siteRender/WixSiteReact","core/siteRender/WixSiteHeadRenderer","core/core/siteBI","experiment","coreUtils"],function(a,b,c,d,e,f,g,h,i){"use strict";var j=d.urlUtils;var k=a.createFactory(e);var l={PAGE_LOADED_FIRST_RENDER:"page_loaded_first_render",PAGE_LOADED:"page_loaded"};var m={};function n(a,c,d){if(typeof window!=="undefined"&&b.get(window,"history.pushState")&&d){try{window.history.pushState(null,c,a)}catch(a){}}}function o(a,b,c){var e=b.routerDefinition;var f=d.routersBackEndRequests.makeParamObjFromSiteData(a,e,b.innerRoute);d.routersBackEndRequests.getPage(f,function(b){var d={pageId:b.pageId,title:b.title};a.addDynamicPageData(b.pageId,b.pageData,e);c(d)},function(){})}function p(a,c,d){if(typeof window!=="undefined"&&b.get(window,"history.replaceState")&&d){try{window.history.replaceState(null,c,a)}catch(a){}}}function q(a,b){m[a]=m[a]||[];m[a].push(b)}function r(a,c){b.forEach(m[a],function(a){a.apply(null,c)})}function s(a,b,c,e,f,g,h){var i=a.props.siteData;if(i.getCurrentUrlPageId()!==e.pageId){a.siteAPI.reportBeatStart(e.pageId)}if(i.getPrimaryPageId()!==e.pageId&&e.anchorData){var k=a.siteAPI.getSiteAspect("actionsAspect");k.registerNextAnchorScroll(e.anchorData)}var m=true;var o=i.currentUrl.full;var q=function(){r(l.PAGE_LOADED,[a.siteAPI,e]);if(m){m=false;if(c.indexOf("#")===0){i.currentUrl.hash=c}else{i.currentUrl=j.parseUrl(c)}if(c!==o&&i.isUsingUrlFormat(d.siteConstants.URL_FORMATS.SLASH)){a.siteAPI.reportCurrentPageEvent(c)}i.setRootNavigationInfo(e,!g);a.setState({currentUrlPageId:i.getCurrentUrlPageId(),currentPopupId:i.getCurrentPopupId()});if(i.isViewerMode()){if(h){p(c,e.title,h)}else{n(c,e.title,f)}}w(i,e.pageId)}else{a.forceUpdate()}};b.loadPage(e,q);return true}function t(a,c,d){var e="wixSiteProperties";if(h.isOpen("mobileNonOptimizedOverflow")){e+=" mobile-non-optimized-overflow"}return k(b.assign({},d,{className:a.rendererModel.siteInfo.documentType==="WixSite"?e:"noop",siteData:a,viewerPrivateServices:c,rootId:"masterPage",navigateMethod:s,getDynamicPageRealPage:o,updateHeadMethod:v,getSiteContainer:u}))}function u(){return window}function v(a,b){w(a,b);if(!h.isOpen("sv_faviconFromServer")){z(a)}if(a.rendererModel.siteInfo.documentType==="WixSite"){c(C()).append(f.getGoogleTagManagerScript())}}function w(a,b){D(a);y();x(a,b)}function x(a,b){var c=f.getPageMetaTags(a,b);B(c)}function y(){var a=C();c("[name=description]",a).remove();c("[property='og:description']",a).remove();c("[name=keywords]",a).remove();if(h.isOpen("sv_addRobotsIndexingMetaTag")){c("[name=robots]",a).remove()}}var z=b.once(function(a){var d=C();var e=f.getFavicons(a);if(e&&!b.isEmpty(e)){c('[rel="shortcut icon"]',d).remove();c('[rel="apple-touch-icon"]',d).remove();b.forEach(e,A.bind(null,d))}});function A(a,b){var c=document.createElement("link");c.rel=b.rel;c.href=b.href;c.type=b.type;a.appendChild(c)}function B(a){b.forEach(a,function(a){this.append(a)},c(C()))}function C(){return window.document.head}function D(a){window.document.title=a.getCurrentUrlPageTitle()}function E(a,b){if(h.isOpen("sv_dpages")&&i.errorPages.isErrorPage(b.pageId)){return}var c=d.wixUrlParser.getUrl(a,b);if(!b.routerDefinition&&a.isViewerMode()&&c!==a.currentUrl.full){p(c,b.title,true);a.currentUrl=j.parseUrl(c)}}function F(a,b,c,e){function f(f){a.setRootNavigationInfo(f);d.logger.reportBeatEvent(a,6,f.pageId);g.init(a);var j=function(){r(l.PAGE_LOADED_FIRST_RENDER,[a,c.wixCodeAppApi]);var g=d.wixUrlParser.parseUrl(a,a.currentUrl.full);if(g.pageId!==f.pageId){g.pageId=f.pageId;g.title=f.title}if(h.isOpen("sv_dpages")){i.errorPages.setErrorPagesDataItemsIfNeeded(a)}a.setRootNavigationInfo(g);d.mobileViewportFixer.fixViewportTag(a);E(a,g);e(t(a,b,c))};b.siteDataAPI.loadPage(f,j)}var j=d.wixUrlParser.parseUrl(a,a.currentUrl.full);if(h.isOpen("sv_dpages")&&j.routerDefinition){o(a,j,function(a){f(a)});return}f(j);return a}return{renderSite:F,WixSiteReact:e,hooks:{types:l,registerHook:q}}});define("core/siteRender/compRegistrar",["santaProps","core/siteRender/compFactory"],function(a,b){"use strict";return{register:function(c,d){b.register(c,d);if(d.statics&&d.statics.useSantaTypes){a.propsSelectorsFactory.registerComponent(c,d)}return this}}});define("core/core/dataRequirementsChecker",["utils","lodash"],function(a,b){"use strict";var c=a.dataUtils;var d="masterPage";var e={};var f={};var g={};var h={};function i(a,b,c){var d=c.styleId&&a.getDataByQuery(c.styleId,b,a.dataTypes.THEME);return{data:c.dataQuery?a.getDataByQuery(c.dataQuery,b):null,properties:c.propertyQuery?a.getDataByQuery(c.propertyQuery,b,a.dataTypes.PROPERTIES):null,skin:d?d.skin:c.skin,id:c.id,pageId:b}}function j(a,d,g,k){var l=i(a,g,k);var m=b.has(f,k.componentType);if(m){h[k.componentType]=h[k.componentType]||[];h[k.componentType].push(l)}var n=e[k.componentType];var o=n?n(a,l,d):[];var p=c.getChildrenData(k,a.isMobileView());return b.reduce(p,function(b,c){return b.concat(j(a,d,g,c))},o)}function k(a,b,c){if(!c.pageItemId){return[]}var f=b.pagesData[d];var g=f.data.document_data[c.pageItemId];if(!g||g.type!=="PermaLink"){return[]}var h=f.data.document_data[g.dataItemRef.replace(/^#/,"")];if(!h){return[]}var i=f.data.component_properties[g.dataItemRef.replace(/^#/,"")];var j=e["Zoom:"+h.type];if(j){var k={data:h,properties:i};return j(a,k,c)}return[]}function l(a,c){return b(h).map(function(b,d){var e=f[d];return e(a,b,c)}).flatten().value()}function m(a,c){return b(g).map(function(b,d){var e=a.getClientSpecMapEntryByAppDefinitionId(d);if(e){return b(a,e,c)}}).compact().flatten().value()}function n(a,c,e){var f=b.isArray(e)?e:[e];h={};var g=j(a,f[0],d,c.pagesData[d].structure);b.forEach(f,function(b){g=g.concat(j(a,b,b.pageId,c.pagesData[b.pageId].structure),k(a,c,b),l(a,b),m(a,b))});return g}function o(a,c){return b.every(a,function(a){return!b.isEmpty(c.pagesData[a.pageId])})}return{getNeededRequests:function(b,c,d){b.santaBase=b.santaBase||b.serviceTopology.scriptsLocationMap.santa;var e=[d];if(b.isPopupPage(d.pageId)){e.push(b.getExistingRootNavigationInfo(b.getPrimaryPageId()))}if(o(e,c)){return n(b,c,e)}return a.pageRequests(b,c,e)},registerCheckerForCompType:function(a,b){e[a]=b},registerCheckerForAllCompsOfType:function(a,b){f[a]=b},registerCheckerForAppDefId:function(a,b){g[a]=b}}});define("core/core/Touchy",["lodash"],function(a){"use strict";var b={touched:false,moved:false,deltaCoords:{x:0,y:0},evObj:{}};var c=["onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown","onTap"];var d={left:"onSwipeLeft",right:"onSwipeRight",up:"onSwipeUp",down:"onSwipeDown"};function e(a){if(a.touches&&a.touches.length){var b=a.touches[0];return{x:b.pageX,y:b.pageY}}}function f(){this.data={}}f.prototype={onTouchStart:function(c){this.data=a.defaults({touched:true,numOfTouches:c.touches.length,startCoords:e(c),startTime:Date.now(),evObj:a.clone(c)},b)},onTouchMove:function(a){var b=e(a);if(b){if(!this.data.startCoords){this.data.startCoords=b}var c=this.data.startCoords.x-b.x;var d=this.data.startCoords.y-b.y;this.data.moved=true;this.data.deltaCoords={x:c,y:d}}},onTouchEnd:function(b){var c,e;this.data.endTime=Date.now();if(a.isEmpty(b)){return}if(this.isValidSwipe()){c=this.getSwipeDirection(this.data.deltaCoords.x,this.data.deltaCoords.y);e=d[c];if(b[e]){b[e](this.data.evObj)}}else if(this.isValidTap()){if(b.onTap){b.onTap(this.data.evObj)}}},registerTouchEvents:function(b){var d=a.pick(b,c);if(!a.isEmpty(d)){b.onTouchStart=this.onTouchStart.bind(this);b.onTouchMove=this.onTouchMove.bind(this);b.onTouchEnd=this.onTouchEnd.bind(this,d)}},isValidSwipe:function(){return this.data.moved&&this.data.numOfTouches===1&&this.data.endTime-this.data.startTime<500&&(Math.abs(this.data.deltaCoords.x)>100||Math.abs(this.data.deltaCoords.y)>60)},isValidTap:function(){return this.data.touched&&!this.data.moved&&this.data.numOfTouches===1},getSwipeDirection:function(a,b){var c;if(Math.abs(a)>Math.abs(b)){c=a>0?"left":"right"}else{c=b>0?"up":"down"}return c}};return f});define("core/components/fixedPositionRenderPlugin",["lodash"],function(a){"use strict";return function(b,c,d,e){if(b[""]){var f=b[""].style;if(f&&a.get(d,"layout.fixedPosition")){var g=e.renderFlags.renderFixedPositionContainers?50:49;f.zIndex=Math.max(f.zIndex||0,g)}}}});define("core/components/skinBasedComp",["lodash","santaProps","skins","react","utils","core/siteRender/compFactory","core/components/baseCompMixin","core/core/Touchy","core/components/fixedPositionRenderPlugin","experiment"],function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=b.Types;var l=b.propsSelectorsFactory;var m=c.skinsRenderer;var n=c.skins;m.registerRenderPlugin(i);function o(){var b;if(a.isFunction(this.getTransformedCssStates)){var c=this.getTransformedCssStates();b=c!==undefined?c:this.state}else{b=this.state}if(!b){return{}}var d={};var e=[];a.forOwn(b,function(a,b){if(b.lastIndexOf("$",0)===0){e.push(a)}});if(a.isEmpty(e)&&b.hasOwnProperty("cssState")){e=a.values(b.cssState)}if(!a.isEmpty(e)){d["data-state"]=e.join(" ")}return d}function p(a){var b=a.props.skin;var c=n[b];if(!c&&a.getDefaultSkinName){b=a.getDefaultSkinName();c=n[b]}return c}function q(b){a(b).filter(function(b){return a.has(b,"onClick")}).forEach(function(b){b.style=a.assign(b.style||{},{cursor:"pointer"})}).value()}function r(b){if(this.props.structure&&this.props.structure.modes){var c=a.find(this.props.structure.modes.definitions,{type:e.siteConstants.COMP_MODES_TYPES.HOVER});if(c){var d=this.props.siteAPI;if(d){var f=this.props.structure.id;b[""].onMouseEnter=w(d,f,this.props.rootId,c.modeId);b[""].onMouseLeave=x(d,f,this.props.rootId,c.modeId)}}}}function s(){var b=a.get(this,"props.structure.modes.definitions");return a(b).filter({type:"SCROLL"}).sortBy("params.scrollPos").value()}function t(b){var c=this.props.structure.id;var d=this.props.rootId;var e=s.call(this);if(!e.length){return}var f=a.findLast(e,function(a){return a.params.scrollPos<=b.y});var g=this.props.siteAPI.getActiveModes();var h=a.find(e,function(b){return a.get(g,[d,b.modeId])});if(f&&!h){this.props.siteAPI.activateModeById(c,d,f.modeId)}else if(!f&&h){this.props.siteAPI.deactivateModeById(c,d,h.modeId)}else if(f&&h&&f.modeId!==h.modeId){this.props.siteAPI.switchModesByIds(c,d,h.modeId,f.modeId)}}function u(){var a=s.call(this);if(a.length){var b=this.props.siteAPI.getSiteAspect("windowScrollEvent");b.registerToScroll(this);this.onScroll=this.onScroll||t}}function v(){if(a.get(this.props,["structure","modes"])){var b=a.find(this.props.structure.modes.definitions,{type:e.siteConstants.COMP_MODES_TYPES.HOVER});var c=this.props.siteAPI;if(b&&c){var d=a.get(this.props,["compProp","mobileDisplayedModeId"]);var f=this.props.structure.id;if(d){c.activateModeById(f,this.props.rootId,d)}else{c.activateModeById(f,this.props.rootId,b.modeId)}}}}function w(a,b,c,d){return function(){return a.activateModeById(b,c,d)}}function x(a,b,c,d){return function(){return a.deactivateModeById(b,c,d)}}function y(b,c){return a.get(this.santaTypesProps.compTheme,["style","properties",b],c)}function z(){var a=this.getComponentPreviewState();if(a){return{"data-preview":a}}}function A(b){var c=this.getSkinProperties();if(a.isFunction(this.transformRefData)){this.transformRefData(c)}if(this.santaTypesProps.transformSkinProperties){c=this.santaTypesProps.transformSkinProperties(c)}if(!c[""]){c[""]={}}if(this.santaTypesProps.isMobileDevice){q(c)}if(j.isOpen("sv_hoverBox")){if(this.props.siteData&&this.props.siteData.isMobileView()){if(this.props.siteData.isViewerMode()){v.call(this,c)}}else{r.call(this,c)}}if(j.isOpen("dynamicHeader")){u.call(this)}if(j.isOpen("collapseComponent")&&a.get(this.santaTypesProps.compProp,"isCollapsed")&&this.santaTypesProps.renderFlags.componentViewMode!=="editor"){c[""]["data-collapsed"]=true}this.updateRootRefDataStyles(c[""]);a.assign(c[""],o.call(this),z.call(this));if(!b.react||b.react.length===0){c[""]=a.defaults(c[""],c.inlineContent)}return c}function B(b,c,d,e){var f=this.getSkinExports();var g=typeof d==="string"?{skin:f[d].skin,styleId:this.props.styleId+d}:d;var h={siteData:this.props.siteData,siteAPI:this.props.siteAPI,compProp:a.omit(this.props.compProp,"isHidden"),loadedStyles:this.props.loadedStyles,compData:b,refInParent:a.get(b,"id",""),skin:g.skin,styleId:g.styleId,pageId:this.props.pageId,rootId:this.props.rootId,rootNavigationInfo:this.props.rootNavigationInfo,currentUrlPageId:this.props.currentUrlPageId};if(!b&&!a.get(e,"id")){throw new Error("Unable to set child comp id - no data item\\custom id were passed")}h.id=a.get(e,"id")||this.props.id+b.id;if(!b&&!a.get(e,"ref")){throw new Error("Unable to set child comp ref - no data item\\custom ref were passed")}h.ref=a.get(e,"ref")||b.id;h.compDesign=this.props.compDesign;h.structure={componentType:c,styleId:this.props.structure?this.props.structure.styleId:"",skinPart:e&&e.skinPart||h.ref};h=a.merge(h,e);return h}function C(b,c,d,e){var f=this.getSkinExports();var g=typeof d==="string"?{skin:f[d].skin,styleId:this.santaTypesProps.styleId+d}:d;var h={useSantaTypes:true,rootId:this.santaTypesProps.rootId,rootNavigationInfo:this.santaTypesProps.rootNavigationInfo,compProp:a.omit(this.santaTypesProps.compProp,"isHidden"),compData:b,refInParent:a.get(b,"id",""),skin:g.skin,styleId:g.styleId};if(!b&&!a.get(e,"id")){throw new Error("Unable to set child comp id - no data item\\custom id were passed")}h.id=a.get(e,"id")||this.santaTypesProps.id+b.id;if(!b&&!a.get(e,"ref")){throw new Error("Unable to set child comp ref - no data item\\custom ref were passed")}h.ref=a.get(e,"ref")||b.id;h.structure={componentType:c,styleId:this.santaTypesProps.structure?this.santaTypesProps.structure.styleId:"",skinPart:e&&e.skinPart||h.ref};var i=l.getPropTypesForChildComponent(c);return a.assign(a.pick(this.santaTypesProps,a.keys(i)),h,e)}var D={mixins:[g.baseComp],propTypes:{isTouchDevice:k.Device.isTouchDevice,isMobileView:k.isMobileView,isMobileDevice:k.Device.isMobileDevice,isDebugMode:k.isDebugMode,structure:k.Component.structure,id:k.Component.id,key:k.Component.key,ref:k.Component.ref,refInParent:k.Component.refInParent,rootId:k.Component.rootId,rootNavigationInfo:k.Component.rootNavigationInfo,currentUrlPageId:k.Component.currentUrlPageId,styleId:k.Component.styleId,skin:k.Component.skin,style:k.Component.style,compProp:k.Component.compProp,compActions:k.Component.compActions,compTheme:k.Component.theme,renderFlags:k.renderFlags,transformSkinProperties:d.PropTypes.func},renderHelper:function(){var b=p(this);if(!b){var c=this.santaTypesProps.structure&&this.santaTypesProps.structure.componentType||"";e.log.error("Skin ["+this.santaTypesProps.skin+"] not found for comp ["+c+"]");return d.DOM.div()}var f=A.call(this,b);if(this.santaTypesProps.isTouchDevice){var g=new h;a.forEach(f,function(a){g.registerTouchEvents(a)})}return m.renderSkinHTML.call(this,b.react,f,this.santaTypesProps.styleId,this.santaTypesProps.id,this.santaTypesProps.structure,this.santaTypesProps,this.state)},getComponentPreviewState:function(){return a.get(this,["santaTypesProps","renderFlags","componentPreviewStates",this.santaTypesProps.id])},render:function(){this.prevSantaTypesProps=this.santaTypesProps;this.santaTypesProps=this.nextSantaTypesProps||this.santaTypesProps;try{return this.renderHelper()}catch(b){if(this.santaTypesProps.isDebugMode){throw b}e.log.error("Cannot render component",this.constructor.displayName,this.santaTypesProps.id,b);var a={"":{style:this.santaTypesProps.style,"data-dead-comp":true}};return m.renderSkinHTML.call(this,n["skins.viewer.deadcomp.DeadCompPublicSkin"].react,a,"deadComp",this.santaTypesProps.id,this.santaTypesProps.structure,this.santaTypesProps,this.state)}},getSkinExports:function(){var a=p(this);return a&&a.exports},classSet:function(b){return e.classNames(a.reduce(b,function(a,b,c){a[this.styleId+"_"+c]=b;return a},{},this.santaTypesProps))},componentWillUpdate:function(){if(this.santaTypesProps.onComponentWillUpdate){this.santaTypesProps.onComponentWillUpdate()}},getStyleProperty:y,createChildComponent:function a(b,c,d,e){var g=f.getCompClass(c);if(!g){return null}if(this.props.useSantaTypes){return g(C.call(this,b,c,d,e))}return g(B.call(this,b,c,d,e))}};return D});define("core/components/runTimeCompData",["lodash","santaProps","utils"],function(a,b){"use strict";return{propTypes:{setRuntimeCompData:b.Types.DAL.setCompData.isRequired,setRuntimeCompProps:b.Types.DAL.setCompProps.isRequired},updateData:function(a){this.santaTypesProps.setRuntimeCompData(this.props.id,a)},updateProps:function(a){this.santaTypesProps.setRuntimeCompProps(this.props.id,a)}}});define("core/components/compDesignMixin/property",["lodash"],function(a){"use strict";return{keyvalue:function(a,b){return function(c,d){c[a]=b(d);return c}},map:function(b){return function(c,d){return a(b).mapValues(function(a){return a(d)}).merge(c).value()}}}});define("core/components/compDesignMixin/cssToken",[],function(){"use strict";return{KEYWORD:"keyword",LENGTH_OR_PERCENTAGE:"length_or_percentage",COLOR_RGBA:"rgbcolor",BR_WIDTH:"br_width",BORDER_WIDTH:"border_width",BORDER_STYLE:"border_style",BORDER_COLOR:"border_color"}});define("core/components/compDesignMixin/stringify",["lodash","core/components/compDesignMixin/cssToken"],function(a,b){"use strict";var c={value:function(b){return function(c){return a(c).keys().filter(a.partial(a.has,b)).map(function(a){return d[b[a]](c[a],a)}).without("").join(" ")}},join:function(b){return a(b).values().join(" ")},list:function(b){return function(c){return a.map(c,b).join(", ")}}};var d={};d[b.KEYWORD]=function(a,b){if(a){return b}return""};d[b.LENGTH_OR_PERCENTAGE]=function(a){if(a.value===0){return"0"}return a.value.toString()+a.unit};d[b.COLOR_RGBA]=function(a){return"rgba("+a.red+", "+a.green+", "+a.blue+", "+a.alpha+")"};d[b.BR_WIDTH]=function(a){if(typeof a==="string"){return a}return d[b.LENGTH_OR_PERCENTAGE](a)};d[b.BORDER_WIDTH]=c.value({top:b.BR_WIDTH,right:b.BR_WIDTH,bottom:b.BR_WIDTH,left:b.BR_WIDTH});d[b.BORDER_STYLE]=c.join;d[b.BORDER_COLOR]=c.value({top:b.COLOR_RGBA,right:b.COLOR_RGBA,bottom:b.COLOR_RGBA,left:b.COLOR_RGBA});return c});define("core/components/compDesignMixin/cssItem",["core/components/compDesignMixin/property","core/components/compDesignMixin/stringify","core/components/compDesignMixin/cssToken"],function(a,b,c){"use strict";return{cssBoxShadow:a.keyvalue("boxShadow",b.list(b.value({inset:c.KEYWORD,offsetX:c.LENGTH_OR_PERCENTAGE,offsetY:c.LENGTH_OR_PERCENTAGE,blurRadius:c.LENGTH_OR_PERCENTAGE,spreadRadius:c.LENGTH_OR_PERCENTAGE,color:c.COLOR_RGBA}))),cssBorderRadius:a.keyvalue("borderRadius",b.value({topLeft:c.LENGTH_OR_PERCENTAGE,topRight:c.LENGTH_OR_PERCENTAGE,bottomRight:c.LENGTH_OR_PERCENTAGE,bottomLeft:c.LENGTH_OR_PERCENTAGE})),cssBorder:a.map({borderWidth:b.value({width:c.BORDER_WIDTH}),borderStyle:b.value({style:c.BORDER_STYLE}),borderColor:b.value({color:c.BORDER_COLOR})})}});define("core/components/compDesignMixin",["lodash","core/components/compDesignMixin/cssItem"],function(a,b){"use strict";function c(c){c=c||this.props.compDesign;var d=c.cssStyle;return a(d).keys().filter(function(c){return!a.isNull(d[c])&&a.has(b,c)}).reduce(function(a,c){return b[c](a,d[c])},{})}function d(c){c=c||this.props.compDesign;var d=c.cssStyle;return a(d).keys().every(function(c){return a.isNull(d[c])||!a.has(b,c)})}return{renderDesign:c,isEmptyDesign:d}});define("core/components/optionInput",["lodash","core/components/skinBasedComp"],function(a,b){"use strict";var c="toolTip";return{mixins:[b],getInitialState:function(){return this.getCssState(this.props)},componentWillReceiveProps:function(a){this.setState(this.getCssState(a))},getCssState:function(a){return{$enabledState:a.compData.disabled?"disabled":"enabled",$selectState:a.selected?"selected":"unselected"}},onMouseEnter:function(){this.refs[c].showToolTip({},{source:this})},onMouseLeave:function(){this.refs[c].closeToolTip()},createInfoTipChildComponent:function(){return this.createChildComponent({content:this.props.compData.description,id:c},"wysiwyg.common.components.InfoTip",{skin:"wixapps.integration.skins.ecommerce.options.InfoTipSkin",styleId:this.props.loadedStyles["wixapps.integration.skins.ecommerce.options.InfoTipSkin"]},{ref:c,className:this.props.styleId+"tooltip"})}}});define("core/components/skinInfo",["lodash","skins","santaProps"],function(a,b,c){"use strict";return{propTypes:{skin:c.Types.Component.skin,structure:c.Types.Component.structure,theme:c.Types.Component.theme,allTheme:c.Types.Theme.all,themeColor:c.Types.Theme.colors},getParams:function(b,c){var d={};a.forEach(b,function(a){d[a]=this.getParamFromDefaultSkin(a,c)},this);return d},getParamFromDefaultSkin:function(a,b){return this.getParamFromSkin(a,b||this.santaTypesProps.skin)},getParamFromSkin:function(c,d){var e=a.get(this.santaTypesProps.theme,"style.properties")||{};var f=b.skins[d];var g=e[c]||f.paramsDefaults&&f.paramsDefaults[c];if(a.isArray(g)&&g.length>1){e=a.clone(e);e[c]=this.getSumParamValue(c,d)}return b.params.renderParam(c,f,e,this.santaTypesProps.themeColor)},getSumParamValue:function(c,d){var e=this.getSkinExports();var f=b.skins[d].paramsDefaults;var g=f&&f[c];if(!g){var h=e[c];return h?Math.abs(parseInt(h,10))||0:0}if(Array.isArray(g)){return a.sum(g,function(a){return Math.abs(parseInt(this.getParamFromSkin(a,d).value,10))},this)}return Math.abs(parseInt(g,10))||0},getFromExports:function(a){var b=this.getSkinExports();return b&&b[a]||0},getStyleData:function(b,c){c=c||this.santaTypesProps;var d=b||c.structure.styleId;if(d){d=d.replace("#","")}var e=c.allTheme[d];return a.get(e,"style.properties")||{}}}});define("core/core/data/pointers/pointerGeneratorsRegistry",[],function(){"use strict";var a={};var b={};var c={};var d={};return{registerDataAccessPointersGenerator:function(d,e,f){if(f){b[d]=e}else{a[d]=e}c[d]=e},registerPointerType:function(a,b,c,e,f){d[a]={findItemFunction:b,identityCheckFunction:c,isUsingDifferentNameSpaceForFull:e,isExistInFullJson:f}},getRegularJsonGenerators:function(){return a},getBothRegularAndFullJsonGenerators:function(){return b},getAllTypes:function(){return d}}});define("core/core/data/pointers/DataAccessPointers",["lodash","core/core/data/pointers/pointerGeneratorsRegistry"],function(a,b){"use strict";function c(c,d,e){var f=b.getRegularJsonGenerators();a.forEach(f,function(b,f){c[f]=a.mapValues(b,function(a){return a.bind(b,d.getItemInPath,e)})})}function d(c,d){var e=b.getBothRegularAndFullJsonGenerators();a.forEach(e,function(b,e){c[e]=a.mapValues(b,function(a){return d(a,false,b)});c.full[e]=a.mapValues(b,function(a){return d(a,true,b)})})}function e(b){this.full={};var e=b.getBoundCacheInstance(false);var f=b.getBoundCacheInstance(true);var g=function(c,d,g){return function(){var h=a.toArray(arguments);var i=[b.getItemInPath,e].concat(h);var j=[b.fullJsonGetItemInPath,f].concat(h);var k=c.apply(g,i);var l=c.apply(g,j);return d?l:k}};c(this,b,e);d(this,g)}function f(a){if(a){e.call(this,a)}}function g(a){if(a){return{type:a.type,id:a.id}}}f.prototype={getGeneralTheme:function(){},getInnerPointer:function(b,c){var d=g(b);if(d){var e=a.isString(c)?c.split("."):c;d.innerPath=b.innerPath?b.innerPath.concat(e):e}return d},isSamePointer:function(a,b){return a&&b&&a.type===b.type&&a.id===b.id},getInnerPointerPathRoot:function(a){return a.innerPath?a.innerPath[0]:null},getOriginalPointerFromInner:g,getPointerType:function(b){switch(b.type){case"DESKTOP":case"MOBILE":return a.isEmpty(b.innerPath)?"component":"componentStructure";default:return b.type}}};return f});define("core/core/data/pathValidationUtil",["lodash"],function(a){"use strict";function b(b,c,e){if(!a.isArray(b)){throw new Error("path type is not an array - "+b)}if(!d(c,b,e)){throw new Error("path does not exist - "+b)}return true}function c(b,c,d){if(!c){return false}var f=e(b,c,c.length);if(a.isUndefined(f)){return false}return!d||d(f)}function d(b,c,d){if(!c||!a.isArray(c)){return false}var g=c[c.length-1];var h=d?c.length:c.length-1;var i=e(b,c,h);if(a.isUndefined(i)){return false}return d?true:f(g,i)}function e(b,c,d){var e=b;for(var f=0;f2&&a[2]==="data"}function f(a){return h(a)&&a.length>2&&a[2]==="structure"}function g(a){return h(a)&&a.length===2}function h(a){return a&&a.length>0&&a[0]==="pagesData"}function i(b){return a.isEqual(b,["pagesData"])}function j(a){return m.call(this,a)||n.call(this,a)}function k(a){var b=this.pointers.getOriginalPointerFromInner(a);var c=this.displayedCache.getPath(b);return h(c)}function l(a){return this.pointers.getPointerType(a)==="page"}function m(a){return this.pointers.getPointerType(a)==="component"}function n(a){return this.pointers.getPointerType(a)==="componentStructure"}function o(c){return c&&a.includes(b.constants.DATA_TYPES,c.type)}function p(b,c){var d=this.fullCache.getPath(b);if(!d){throw new Error("pointer path does not exist")}if(i(d)){var e=a.get(this.fullJson,d);q.call(this,e,c)}else if(h(d)){s.call(this,b,c)}else{var f=a.get(this.fullJson,d);this.displayedJsonDAL.set(b,f)}}function q(b,c){var d=this.pointers.page.getAllPagesPointer();this.displayedJsonDAL.set(d,{});r.call(this,c,"masterPage");a(b).omit("masterPage").keys().forEach(r.bind(this,c)).value()}function r(a,b){var c=this.pointers.page.getPagePointer(b)||this.pointers.page.getNewPagePointer(b);this.displayedJsonDAL.set(c,{});s.call(this,c,a)}function s(b,c){var e=d(b);var f=this.fullCache.getPath(b);var g=a.take(f,2);var i=a.last(g);var j=a.get(this.fullJson,g);var k=a.get(this.fullJson,f);if(h(f)&&!o(b)){var l=w(k,c,j,e);v.call(this,b,l,g);if(this.pointers.page.isPointerPageType(b)){t.call(this,i)}}else{this.displayedJsonDAL.set(b,k)}}function t(c){var d=this.displayedJsonDAL.jsonData;var e=d.getPageData(c).structure;var f=d.isRootIgnoreBottomBottom(c);var g=a.get(d,["anchorsMap",c,d.getViewMode()]);if(g||b.layoutAnchors.shouldCreateAnchorsForPage(e,d.isMobileView(),f)){this.createPageAnchors(e)}}function u(c,d){var e=c[1];if(f(c)){var h=this.pointers.components.getPage(e,b.constants.VIEW_MODES.DESKTOP);s.call(this,h,d)}else if(g(c)){var j=this.pointers.page.getPagePointer(e)||this.pointers.page.getNewPagePointer(e);s.call(this,j,d)}else if(i(c)){var k=a.get(this.fullJson,c);q.call(this,k,d)}else{var l=a.get(this.fullJson,c);this.displayedJsonDAL.setByPath(c,l)}}function v(b,c,d){if(!l.call(this,b)){this.displayedJsonDAL.set(b,c.structure);var e=d.concat("data");this.displayedJsonDAL.setByPath(e,c.data)}else if(!a.get(this.displayedJsonDAL.jsonData,d)){this.displayedJsonDAL.set(b,c)}else{this.displayedJsonDAL.merge(b,c)}}function w(a,c,d,e){return b.siteRenderPrivateStuff.fullToDisplayedJson.getDisplayedJson(a,c,d,e)}function x(c,d,e,f){var g=f===b.constants.VIEW_MODES.MOBILE;var h=b.layoutAnchors.createPageAnchors(d,e,g);var i=y();a.set(c,["anchorsMap",d.id,f],h);a.set(c,["anchorsMap","defaultMasterPage",f],h);a.set(c,["anchorsMap","landingPageMasterPage",f],i)}function y(){return{PAGES_CONTAINER:[{distance:0,locked:true,originalValue:0,fromComp:"PAGES_CONTAINER",targetComponent:"masterPage",type:"BOTTOM_PARENT"}],SITE_PAGES:[{distance:0,locked:true,originalValue:0,fromComp:"SITE_PAGES",targetComponent:"PAGES_CONTAINER",type:"BOTTOM_PARENT"}]}}function z(a,b,c,d,e){this.fullJson=a;this.displayedJsonDAL=b;this.fullCache=c;this.displayedCache=d;this.pointers=e}z.prototype={onPush:function(a,b,d,e,f){if(!k.call(this,a)){throw new Error(c)}if(j.call(this,a)){var g=this.pointers.getOriginalPointerFromInner(a);p.call(this,g,f);return}this.displayedJsonDAL.push(a,d,e,b)},onMerge:function(a,b){var d=this.pointers.getOriginalPointerFromInner(a);if(!k.call(this,d)){ throw new Error(c)}p.call(this,d,b)},onRemove:function(a,b){if(!k.call(this,a)){throw new Error(c)}if(n.call(this,a)){var d=this.pointers.getOriginalPointerFromInner(a);p.call(this,d,b);return}this.displayedJsonDAL.remove(a)},onSet:function(a,b){var d=this.pointers.getInnerPointerPathRoot(a)==="modes";var e=this.pointers.getOriginalPointerFromInner(a);var f;if(d){var g=this.pointers.full.components.getParent(e);if(g){f=g}else{f=e}}else{f=e}var i=this.fullCache.getPath(f);if(!h(i)){throw new Error(c)}p.call(this,f,b)},onSetByPath:function(a,b){if(!h(a)){throw new Error(c)}u.call(this,a,b)},onRemoveByPath:function(b,d){if(!h(b)){throw new Error(c)}if(!a.isArray(b)||a.isEqual(b,["pagesData"])){throw new Error('path "'+b+'" is invalid or cant be removed')}if(g(b)||e(b)){this.displayedJsonDAL.removeByPath(b,d)}else if(f(b)){u.call(this,b,d)}},onPushByPath:function(b,d,e){if(!h(b)){throw new Error(c)}if(a.isArray(b)&&h(b)){u.call(this,b,e);return}var f=a.isNumber(d)?b.concat(d):b;var g=a.get(this.fullJson,f);this.displayedJsonDAL.pushByPath(b,g,d)},onMergeByPath:function(b,d){if(!h.call(this,b)){throw new Error(c)}if(a.isArray(b)&&h(b)){u.call(this,b,d);return}var e=a.get(this.fullJson,b);this.displayedJsonDAL.mergeByPath(b,e)},onModesChange:function(a,b){p.call(this,a,b)},updateDisplayedRoot:function(a,b,c){var d=w(b,a,b,c);var e=b.structure.id;var f=this.pointers.page.getPagePointer(e)||this.pointers.page.getNewPagePointer(e);this.displayedJsonDAL.set(f,d);return d},createPageAnchors:function(c,d){var e=this.displayedJsonDAL.jsonData;var f=e.getAllTheme();var g=d?b.constants.VIEW_MODES.MOBILE:e.getViewMode();var h=g===b.constants.VIEW_MODES.MOBILE;if(c.id===b.siteConstants.MASTER_PAGE_ID){x(e,c,f,g)}else{var i=b.layoutAnchors.createPageAnchors(c,f,h);a.set(e,["anchorsMap",c.id,g],i)}}};return z});define("core/core/data/DisplayedJsonDal",["lodash","utils","core/core/data/pathValidationUtil"],function(a,b,c){"use strict";var d=b.objectUtils.cloneDeep;function e(a,b,d){return c.validatePathExist(a,b,d)}function f(b,c){var d=[].concat(c);var e=d.pop();var f=a.get(b,d);if(a.isString(e)){delete f[e]}else{f.splice(e,1)}}var g=function(a,b){this.pointersCache=b;this.jsonData=a};g.prototype={get:function(a){var b=this.pointersCache.getPath(a);return this.getByPath(b)},getByPath:function(b){if(b){return d(a.get(this.jsonData,b))}return undefined},set:function(a,b){var c=this.pointersCache.getPath(a,true);this.setByPath(c,b)},setByPath:function(b,c){if(!a.isArray(b)){throw new Error("path type is not an array - "+b)}a.set(this.jsonData,b,d(c))},isExist:function(a){var b=this.pointersCache.getPath(a);return!!b},isPathExist:function(a){return e(this.jsonData,a,true)},merge:function(a,b){if(this.isExist(a)){var c=this.pointersCache.getPath(a);this.mergeByPath(c,b)}},mergeByPath:function(b,c){if(e(this.jsonData,b,true)&&a.isPlainObject(c)){var d=this.getByPath(b);var f=a.assign({},d,c);this.setByPath(b,f);this.pointersCache.resetValidations()}else if(!a.isPlainObject(c)){throw new Error(c+" is not an object")}},push:function(b,c,d,e){if(!this.isExist(b)){throw new Error(JSON.stringify(b)+" path does not exist")}var f=this.pointersCache.getPath(b);var g=this.getByPath(f);if(!a.isUndefined(e)&&!a.isNumber(e)){throw new Error("push index arguments should be a numbert")}e=a.isNumber(e)?e:g.length;this.pushByPath(f,c,e);if(d){var h=f.concat(e);this.pointersCache.setPath(d,h)}},pushByPath:function(b,c,d){var e=this.getByPath(b);d=a.isNumber(d)?d:e.length;if(d>e.length||d<0){throw new Error("Index out of bound")}if(d===0){e.unshift(c)}else{e.splice(d,0,c)}this.setByPath(b,e);this.pointersCache.resetValidations()},remove:function(a){if(!this.isExist(a)){throw new Error(a+" pointer does not exist")}var b=this.pointersCache.getPath(a);this.removeByPath(b)},removeByPath:function(a){if(!a){throw new Error("path is not valid")}f(this.jsonData,a);this.pointersCache.resetValidations()},getKeys:function(a){var b=this.pointersCache.getPath(a);if(!b){return undefined}return this.getKeysByPath(b)},getKeysByPath:function(b){c.validatePath(b,this.jsonData);var d=a.get(this.jsonData,b);if(!a.isPlainObject(d)){throw new Error("Can not get keys of an element that isn't a plain object")}return a.keys(d)}};return g});define("core/core/data/apiSections/documentDataAPI",["lodash","utils"],function(a,b){"use strict";function c(b,c,d,e){var f=b.cache.getBoundCacheInstance(true);var g=b.pointers.full.components.getPage(c,e);var h=g&&b.pointers.full.components.getComponent(d,g);var i=h&&f.getPath(h);return i?a.get(b.fullPagesData,i):null}function d(a,d,e){var f=c(a,d,e,a.siteData.getViewMode());return b.dataUtils.getAllCompsInStructure(f,a.siteData.isMobileView())}function e(b,c,d){var e=b.cache.getBoundCacheInstance(true);var f=e.getPath(b.pointers.getInnerPointer(c,d));return f?a.get(b.fullPagesData,f):null}return function b(c){return{getAllCompsUnderRoot:a.partial(d,c),getFullStructureProperty:a.partial(e,c)}}});define("core/core/data/RuntimeDal",["lodash","utils","experiment"],function(a,b,c){"use strict";var d=["height","width"];var e=b.constants.DATA_TYPES;var f={data:"document_data",props:"component_properties",connections:"connections_data",design:"design_data"};var g={components:{}};var h=["runtime","components"];function i(a){return h.concat([a])}function j(a){return i(a).concat("state")}function k(a){return i(a).concat("overrides")}function l(a){return k(a).concat("props")}function m(a){return k(a).concat("data")}function n(a){return k(a).concat("layout")}function o(a){return k(a).concat("actionsBehaviors")}function p(a){return["runtime","popups",a]}function q(b,c,d){var e=a.get(b,c,d);return a.cloneDeep(e)}function r(b,c){return a.isEqual(c,a.pick(b,a.keys(c)))}function s(){this._compPointers={}}function t(b,c,d,e){this._siteData=b;this._siteDataApi=c;this._pointers=e;this._displayedDal=d;this._changeListeners=[];this._compPointers={};this.snapshotId=0;this._roots=[];if(this._siteDataApi){this._siteDataApi.registerDisplayedJsonUpdateCallback(s.bind(this))}if(this._displayedDal&&!this._displayedDal.isPathExist(h)){this.reset()}a.bindAll(this)}function u(b,c,d,e,f){var g=e(b);var h=a.get(this._siteData,d,{});a.set(this._siteData,d,a.assign({},h,c));if(!r(g,c)){var i={type:f,value:c};v.call(this,b,i)}return++this.snapshotId}function v(b,c){a.forEach(this._changeListeners,function(a){a(b,c)})}function w(a,b,c){var d=B.call(this,a);if(!d){return null}var e=this._displayedDal.get(this._pointers.getInnerPointer(d,b));if(!e){return null}var g=this._pointers.data.getItem(c,e.replace("#",""),z.call(this,d));var h=this._displayedDal.get(g);return this._siteData.resolveData(h,z.call(this,d),f[c])}function x(b){var c=w.call(this,b,"behaviorQuery",e.behaviors);return a.get(c,"items")}function y(a){if(c.isOpen("connectionsData")){var b=B.call(this,a);if(!b){return null}var d=this._siteDataApi.document.getFullStructureProperty(b,"connectionQuery");if(!d){return null}var g=e.connections;var h=z.call(this,b);var i=this._pointers.data.getItem(g,d.replace("#",""),h);var j=this._displayedDal.get(i);var k=this._siteData.resolveData(j,h,f[g]);return k.items}}function z(a){return this._pointers.full.components.getPageOfComponent(a).id}function A(){if(a.isEmpty(this._compPointers)){return}var b=this._siteData.getAllPossiblyRenderedRoots();var c=a.keys(this._compPointers);var d=this._compPointers[c[0]];var e=this._pointers.components.getViewMode(d);if(e!==this._siteData.getViewMode()){this._displayedDal.setByPath(h,{});this._compPointers={}}else if(!a.isEqual(b,this._roots)){var f=this._displayedDal.getKeysByPath(h);var g=a(f).difference(c).map(i).value();a.forEach(g,this._displayedDal.removeByPath,this._displayedDal)}this._roots=b}function B(a){A.call(this);var b=this._compPointers[a];if(b&&this._displayedDal.isExist(b)){return b}C.call(this);return this._compPointers[a]}function C(){this._compPointers=a(this._siteData.getAllPossiblyRenderedRoots()).map(function(a){var b=this._pointers.full.components.getPage(a,this._siteData.getViewMode());return b?[b].concat(this._pointers.full.components.getChildrenRecursively(b)):[]},this).flatten().indexBy("id").value()}a.assign(t.prototype,{registerChangeListener:function(a){this._changeListeners.push(a)},getCompStructure:function(a){var b=B.call(this,a);var c=b&&this._displayedDal.get(b);if(c){c.layout=this.getCompLayout(a)}return c},setCompState:function(b,c){var d=this.getCompState(b);var e=j(b);a.set(this._siteData,e,a.assign({},d,c));if(!r(d,c)){var f={type:"stateChange",value:this.getCompState(b)};v.call(this,b,f)}return++this.snapshotId},removeCompState:function(b){var c=i(b);var d=a.get(this._siteData,c);if(d){delete d.state}},getCompState:function(a){return q(this._siteData,j(a),{})},getCompType:function(a){var b=B.call(this,a);return this._siteDataApi.document.getFullStructureProperty(b,"componentType")},getCompLayout:function(b){var c=B.call(this,b);var d=c&&this._displayedDal.get(this._pointers.getInnerPointer(c,"layout"));var e=q(this._siteData,n(b));return e?a.defaults(e,d):d},updateCompLayout:function(a,b){return u.call(this,a,b,n(a),this.getCompLayout.bind(this),"layoutChange")},getCompData:function(b){var c=w.call(this,b,"dataQuery",e.data);var d=q(this._siteData,m(b));return d?a.defaults(d,c):c},setCompData:function(a,b){return u.call(this,a,b,m(a),this.getCompData.bind(this),"dataChange")},getCompConnections:function(a){return y.call(this,a)||[]},getCompProps:function(b){var c=w.call(this,b,"propertyQuery",e.prop);var d=q(this._siteData,l(b));return d?a.defaults(d,c):c},setCompProps:function(a,b){return u.call(this,a,b,l(a),this.getCompProps.bind(this),"propsChange")},getActionsAndBehaviors:function(a){var b=x.call(this,a)||[];var c=q(this._siteData,o(a),[]);return b.concat(c)},addActionsAndBehaviors:function(b,c){var d=o(b);var e=a.get(this._siteData,d,[]);a.set(this._siteData,d,e.concat(c));return++this.snapshotId},removeActionsAndBehaviors:function(b,c){var d=o(b);var e=a.get(this._siteData,d,[]);a.remove(e,c);a.set(this._siteData,d,e);return++this.snapshotId},getCompName:function(b){var c=this.getCompConnections(b);var d=a.get(c,[0,"type"])==="WixCodeConnectionItem"&&c[0];return d?d.role:b},getBoundingClientRect:function(b){var c=this._siteData.measureMap;if(c){return a.transform(d,function(a,d){a[d]=c[d][b]},{})}return a.pick(this.getCompLayout(b),d)},getPageId:function(a){return z.call(this,B.call(this,a))},getParentId:function(a){var b=B.call(this,a);var c=b&&this._pointers.full.components.getParent(b);return c&&c.id},isDisplayed:function(a){var b=B.call(this,a);return!!b&&this._displayedDal.isExist(b)},hasBeenPopupOpened:function(b){return a.get(this._siteData,p(b),false)},markPopupAsBeenOpened:function(b){a.set(this._siteData,p(b),true)},reset:function(){this._displayedDal.setByPath(["runtime"],g)},getDynamicPageData:function(){return this._siteData.getDynamicPageData()}});return t});define("core/core/SiteDataAPI",["utils","lodash","experiment","core/core/dataRequirementsChecker","core/core/data/pointers/DataAccessPointers","core/core/data/pointers/pointersCache","core/core/data/DisplayedJsonUpdater","core/core/data/DisplayedJsonDal","core/core/data/apiSections/documentDataAPI","core/core/data/RuntimeDal"],function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=a.constants;var l={};function m(a,c){var d={pagesData:a.pagesData};var e=new f(a,a,d);var g=p(a,e);l[a.siteId]=n(a,g,e,d,c);return b.clone(l[a.siteId])}function n(a,c,d,e,f){var g={};g.displayedDal=c.dal;g.pointers=c.pointers;g.cache=d;g.displayedJsonUpdater=o(c,e,d);g.fullPagesData=e;g.siteData=a;g.siteData.pagesData=b.clone(e.pagesData);g.siteDataAPI=new B(g,a.siteId,f);return g}function o(a,b,c){var d=c.getBoundCacheInstance(true);var e=c.getBoundCacheInstance(false);var f=a.dal;var h=a.pointers;return new g(b,f,d,e,h)}function p(a,b){return{dal:new h(a,b.getBoundCacheInstance(false)),pointers:new e(b)}}function q(b){var c=this.siteData;var d=c.isRootIgnoreBottomBottom(b.id);if(a.layoutAnchors.shouldCreateAnchorsForPage(b,c.isMobileView(),d)){this.createPageAnchors(b.id)}}var r=0;function s(a,c,e,f,g,h,i){if(i){g(h)}var j=d.getNeededRequests(c,e,f);var k=b.filter(j,function(a){return b.first(a.destination)==="pagesData"&&a.destination.length===2});h=h||[];h=h.concat(b.map(k,"destination[1]"));if(j.length===0&&!i){c.wixBiSession["dataLoaded"+r++]=b.now();g(h)}else{a.loadBatch(j,s.bind(undefined,a,c,e,f,g,h))}}function t(a,c,d,e){var f=l[a];v.call(this,f,c,d,e);if(b.first(d)!=="pagesData"&&f.dataLoadedCallback){f.dataLoadedCallback(d,e)}}function u(a,d){if(c.isOpen("loadMasterPageFirst")){if(a!=="masterPage"&&!d.siteData.pagesData.masterPage){this.pagesPendingForMasterPage.push(a)}else if(a==="masterPage"){this.createDisplayedPage(a);b.forEach(this.pagesPendingForMasterPage,this.createDisplayedPage,this);this.pagesPendingForMasterPage=[]}else{this.createDisplayedPage(a)}}else{this.createDisplayedPage(a)}}function v(a,c,d,e){if(w(d)){b.set(c,d,e);var f=d[1];u.call(this,f,a)}else{b.set(a.siteData,d,e)}}function w(a){return b.first(a)==="pagesData"&&b.size(a)>1}function x(a){var c=l[this.siteId].pointers.components.getPageOfComponent(a);b.forEach(this._displayedJsonUpdateCallbacks,function(b){b(c.id,a.id)})}function y(a,b,c){var d=l[a.siteId];var e=A(d);var f=d.pointers.components.getPage(c,e);return d.pointers.components.getComponent(b,f)}function z(a,b){var c=a.pointers.components.getPageOfComponent(b);return a.displayedDal.get(c)}function A(a){return a.siteData.isMobileView()?k.VIEW_MODES.MOBILE:k.VIEW_MODES.DESKTOP}function B(c,d,e){c.dataLoadedCallback=null;this.siteId=d;this.siteData=c.siteData;this.store=new a.Store(this.siteData,e);this.store.registerDataLoadedCallback(b.bind(t,this,this.siteId,c.fullPagesData));this.siteData.setStore(this.store);this._displayedJsonUpdateCallbacks=[];this.pagesPendingForMasterPage=[];this.document=i(c);this.runtime=new j(c.siteData,this,c.displayedDal,c.pointers)}B.prototype={registerDataLoadedCallback:function(a){var b=l[this.siteId];b.dataLoadedCallback=a},refreshRenderedRootsData:function(a){var b=l[this.siteId];var c=this.siteData.getFocusedRootId();var d=this.siteData.getExistingRootNavigationInfo(c);s(this.store,b.siteData,b.fullPagesData,d,a)},registerDisplayedJsonUpdateCallback:function(a){this._displayedJsonUpdateCallbacks.push(a)},loadPage:function(a,c){var d=l[this.siteId];function e(a){if(d.dataLoadedCallback){var b=d.fullPagesData.pagesData[a];d.dataLoadedCallback(["pagesData",a],b)}}s(this.store,d.siteData,d.fullPagesData,a,function(d){if(a.pageId&&!b.includes(d,a.pageId)){this.createDisplayedPage(a.pageId)}b.forEach(d,e,this);c()}.bind(this),[])},resetAllActiveModes:function(){var a=b.keys(this.siteData.activeModes);b.forEach(a,function(a){this.siteData.activeModes[a]={}},this);b.forEach(a,function(a){this.createDisplayedPage(a)},this)},deactivateModesInPage:function(a){var c=this.getActiveModes()[a];if(!b.isEmpty(c)){var d=l[this.siteId];d.siteData.activeModes[a]={};this.createDisplayedPage(a);return true}return false},getActiveModes:function(){var a={};b.forEach(this.siteData.activeModes,function(c,d){a[d]=b.omit(c,function(a){return!a})});return a},getPageActiveModes:function(a){return b.omit(this.siteData.activeModes[a],function(a){return!a})},activateModeById:function(a,b,c){var d=this.getActiveModes()[b];if(d&&d[c]){return false}var e=y(this,a,b);this.activateMode(e,c);return true},activateMode:function(a,b){var c=l[this.siteId];var d=c.pointers.full.components.getPageOfComponent(a);if(d&&d.id){var e=this.getActiveModes()[d.id];if(e&&e[b]){return false}this.siteData.activeModes[d.id]=this.siteData.activeModes[d.id]||{};this.siteData.activeModes[d.id][b]=true;this.createDisplayedNode(a);return true}return false},deactivateModeById:function(a,b,c){var d=this.getActiveModes()[b];if(!d||!d[c]){return false}var e=y(this,a,b);return this.deactivateMode(e,c)},deactivateMode:function(a,b){var c=l[this.siteId];var d=c.pointers.full.components.getPageOfComponent(a);if(d&&d.id){var e=this.getActiveModes()[d.id];if(!e||!e[b]){return false}this.siteData.activeModes[d.id][b]=false;this.createDisplayedNode(a);return true}return false},switchModesByIds:function(a,b,c,d){return this.switchModes(a,c,d)},switchModes:function(a,b,c){if(b===c){return false}var d=l[this.siteId];var e=d.pointers.full.components.getPageOfComponent(a);this.siteData.activeModes[e.id]=this.siteData.activeModes[e.id]||{};var f=this.siteData.activeModes[e.id];var g=false;if(!f[c]&&!this.isModeTypeDefault(a,c)){f[c]=true;g=true}if(f[b]){f[b]=false;g=true}if(g){this.createDisplayedNode(a)}return g},isModeTypeDefault:function(c,d){var e=l[this.siteId];var f=e.pointers.componentStructure.getModesDefinitions(c);var g=e.displayedDal.get(f);var h=b.find(g,{modeId:d});return h&&h.type===a.siteConstants.COMP_MODES_TYPES.DEFAULT},updatePageAnchorsIfNeeded:q,createPageAnchors:function(a,b){var c=l[this.siteId];var d=this.siteData.getPageData(a).structure;c.displayedJsonUpdater.createPageAnchors(d,b)},createPageOriginalValuesMap:function(c,d){var e=this.siteData;var f=e.getPageData(c).structure;var g=e.getAllTheme();var h=d?a.constants.VIEW_MODES.MOBILE:e.getViewMode();var i=h===a.constants.VIEW_MODES.MOBILE;var j=a.originalValuesMapGenerator.createOriginalValuesMap(f,g,i);b.set(e,["originalValuesMap",f.id,h],j)},removePageOriginalValues:function(c,d){var e=this.siteData;var f=e.getPageData(c).structure;var g=d?a.constants.VIEW_MODES.MOBILE:e.getViewMode();b.set(e,["originalValuesMap",f.id,g],{})},createChildrenAnchors:function(c,d){var e=this.siteData;var f=e.getViewMode();var g=e.getAllTheme();var h=b.get(e,["pagesData",d,"structure","id"]);var i=a.layoutAnchors.createChildrenAnchors(c,g,e.isMobileView());b.assign(e.anchorsMap[h][f],i)},createDisplayedPage:function(a){var b=l[this.siteId];var c=this.siteData.activeModes;var d=b.fullPagesData.pagesData[a];if(d){c[d.structure.id]=c[d.structure.id]||{};var e=b.siteData.isMobileView();var f=b.displayedJsonUpdater.updateDisplayedRoot(c,d,e);q.call(this,f.structure)}},createDisplayedNode:function(a){var b=l[this.siteId];b.displayedJsonUpdater.onModesChange(a,this.siteData.activeModes);var c=z(b,a);q.call(this,c);b.cache.resetValidations();x.call(this,a)}};return{createSiteDataAPIAndDal:m}});define("core/components/audioMixin",["lodash","utils"],function(a,b){"use strict";return{getInitialState:function(){this.audioAspect=this.props.siteAPI.getSiteAspect("AudioAspect");this.audioObj=null;this.isAudioPlaying=false;this.trackPosition=0;this.isPlayingAllowed=this.props.siteData.renderFlags.isPlayingAllowed},componentWillReceiveProps:function(a){if(this.props.compData.uri!==a.compData.uri){this.clearAudioObject()}var b=this.audioAspect.isCompPlaying(this);if(b){this.setState({$playerState:"playing"})}else if(this.isAudioPlaying){this.setState({$playerState:"pausing"})}},componentDidUpdate:function(){var a=this.audioAspect.isCompPlaying(this);if(this.getDeviceState()!=="mobile"&&this.props.siteData.renderFlags.isPlayingAllowed){if(this.props.siteData.renderFlags.isPlayingAllowed!==this.isPlayingAllowed){this.isPlayingAllowed=this.props.siteData.renderFlags.isPlayingAllowed;var b=this.props.compProp.autoplay||this.props.compData.autoPlay;if(b){this.initiatePlay()}}}else{this.isPlayingAllowed=this.props.siteData.renderFlags.isPlayingAllowed;if(!this.isPlayingAllowed&&a){this.initiatePause()}}},componentDidMount:function(){if(this.getDeviceState()!=="mobile"&&this.autoplay&&this.isPlayingAllowed){this.initiatePlay()}},componentWillUnmount:function(){this.clearAudioObject()},getOrCreateAudioObject:function(){return this.audioObj||this.createAudioObject()},createAudioObject:function(){var a=this;if(!a.props.compData.uri){return false}var b={id:a.props.id,url:this.props.siteData.serviceTopology.staticAudioUrl+"/"+a.props.compData.uri,autoPlay:false,stream:true,multiShot:true,multiShotEvents:true,autoLoad:!a.props.siteData.isMobileView()||!this.isPlayingAllowed,usePolicyFile:false,whileloading:function(){if(typeof a.whileLoadingHandler==="function"){a.whileLoadingHandler(this.duration)}},onfailure:function(){a.failedToLoadAudioFile()},onfinish:function(){a.finishedPlayingAudio(this.id)},onsuspend:function(){a.audioLoadingSuspended(this.id)},onload:function(b){if(!b){a.audioAspect.onHTML5ErrorTryToReloadWithFlash()}}};return this.audioAspect.createAudioObj(b)},clearAudioObject:function(){if(this.audioObj){this.audioObj.pause();this.audioObj=null;this.trackPosition=0;if(this.resetTrackPosition){this.resetTrackPosition()}}},failedToLoadAudioFile:function(a){var c="Failed to load audio file "+a,d="color: #ff9494; font-size: 24px;";b.log.verbose("%c"+c,d);b.log.error(c)},audioLoadingSuspended:function(a){var c="Browser has chosen to stop downloading audio file "+a,d="color: #ff9494; font-size: 24px;";b.log.verbose("%c"+c,d)},playAudio:function(){var a=this,b={volume:a.audioVolume,position:a.trackPosition,whileplaying:function(){a.trackPosition=this.position;if(typeof a.whilePlayingHandler==="function"){a.whilePlayingHandler(this.position)}}};this.setVolume(this.audioVolume);this.audioObj.play(b)},updateAudioObject:function(){this.audioObj=this.getOrCreateAudioObject();if(this.audioAspect.isSoundManagerOnResetup()){this.audioObj=null}if(!this.audioObj){return}if(!this.isAudioPlaying&&this.state.$playerState==="playing"){this.isAudioPlaying=true;this.playAudio()}else if(this.isAudioPlaying&&this.state.$playerState==="pausing"){this.isAudioPlaying=false;this.audioObj.pause()}else if(this.state.$playerState==="repeat"){this.isAudioPlaying=false}},getDeviceState:function(){return this.props.siteData._isMobileView?"mobile":"desktop"},initiatePlay:function(){if(!a.isEmpty(this.props.compData.uri)&&this.props.compData.uri!==""){this.audioAspect.updatePlayingComp(this)}},initiatePause:function(){this.audioAspect.updatePausingComp();this.setState({$playerState:"pausing"})},getAudioDuration:function(){return this.audioObj.duration},seekAudio:function(a){this.trackPosition=a;if(this.isAudioPlaying){this.audioObj.setPosition(a)}else{this.initiatePlay()}},setVolume:function(a){this.audioVolume=a;if(this.isAudioPlaying){this.audioObj.setVolume(a)}},muteAudio:function(){this.audioObj.mute()},unmuteAudio:function(){this.audioObj.unmute()}}});define("core/components/facebookComponentMixin",["lodash","reactDOM"],function(a,b){"use strict";function c(a,b){if(a&&a.height&&a.width&&b&&b.height&&b.width){return a.height!==b.height||a.width!==b.width}return false}return{getInitialState:function(){this.loadScript();this._lastHref=this.getHref(this.props)},loadScript:function(){if(typeof window!=="undefined"&&!window.FB){var a=this.props.siteAPI.getSiteAspect("externalScriptLoader");a.loadScript("FACEBOOK",null,this)}},parseFacebookPluginDomNode:function(){if(a.has(window,"FB.XFBML.parse")){window.FB.XFBML.parse(b.findDOMNode(this))}},componentDidMount:function(){this.parseFacebookPluginDomNode()},componentDidUpdate:function(b){var d=this.getHref(this.props);if(!a.isEqual(b.compData,this.props.compData)||!a.isEqual(b.compProp,this.props.compProp)||c(b.style,this.props.style)||d!==this._lastHref){this.parseFacebookPluginDomNode()}this._lastHref=d}}});define("core/components/twitterComponentMixin",["lodash","utils"],function(a,b){"use strict";var c=["da","de","en","es","fr","hi","it","ja","ko","nl","no","pl","pt","ru","sv","tr"];function d(a,c){if(a==="userLang"){return b.wixUserApi.getLanguage(c.requestModel.cookie,c.currentUrl)}return a}return{getInitialState:function(){return{width:this.props.style.width,height:this.props.style.height}},componentDidMount:function(){window.addEventListener("message",this.processMessage)},componentWillUnmount:function(){window.removeEventListener("message",this.processMessage)},processMessage:function(a){if(a.data&&a.data.type==="twitterSize"&&a.data.compId===this.props.id){this.registerReLayout();this.setState(a.data.size)}},getLanguage:function(){var b=d(this.props.compProp.dataLang,this.props.siteData);return a.includes(c,b)?b:"en"},getSkinProperties:function(){return{"":{style:{width:this.state.width,height:this.state.height}},iframe:{src:this.getIFrameSrc(),width:this.state.width,height:this.state.height}}}}});define("core/components/util/galleryPagingCalculations",["lodash","galleriesCommon"],function(a,b){"use strict";var c=b.utils.matrixCalculations;var d={getNumberOfDisplayedRows:function(a,b,d,e){if(a||e&&e0){e++}return e},getNextPageItemIndex:function(a,b,c,d){var e=a+this.getItemsPerPage(b,c,d);if(e>=d){e=0}return e},getPrevPageItemIndex:function(a,b,c,d){var e=this.getItemsPerPage(b,c,d);var f=a-e;if(f<0){f=(this.getTotalPageCount(b,c,d)-1)*e}return f},getCounterText:function(a,b,c,d){var e=Math.floor(a/this.getItemsPerPage(b,c,d));var f=this.getTotalPageCount(b,c,d);if(!f){f=1}return String(e+1)+"/"+String(f)},getPageItems:function(a,b,c,d){return this.getPageItemsByStartIndex(a,b,this.getItemsPerPage(c,d,a.length))},getPageItemsByStartIndex:function(a,b,c){var d=[];if(c=a.length){c=0}return c},getPrevSlideIndex:function(a,b){var c=b-1;if(c<0){c=a.length-1}return c},getSlidesFromChildrenByStructure:function(b){return a.filter(b,function(a){return f(a)===c||f(a)===e})},getSlidesFromChildrenByProps:function(b){return a.filter(b,function(a){return g(a)===c||g(a)===e})},getShownOnAllSlidesFromChildrenByStructure:function(b){return a.reject(b,function(a){return f(a)===c||f(a)===e})},getShownOnAllSlidesFromChildrenByProps:function(b){return a.reject(b,function(a){return g(a)===c||g(a)===e})},isBoxOrStripSlideShowComponent:function(a){return a===b||a===d},isBoxOrStripSlideShowSlideComponent:function(a){return a===c||a===e},getMatchingChildSlideType:function(a){if(!this.isBoxOrStripSlideShowComponent(a)){throw new Error("invalid comp type, not a box or strip slide show component")}return a===b?c:e}}});define("core/components/mediaZoomWrapperMixin",["lodash","core/components/skinBasedComp"],function(a,b){"use strict";return{mixins:[b],componentWillMount:function(){var a=this.props.siteAPI.getSiteAspect("windowKeyboardEvent");a.registerToEscapeKey(this);var b=this.props.siteAPI.getSiteAspect("windowTouchEvents");b.registerToWindowTouchEvent("touchMove",this);var c=this.getPrevAndNextState();if(c.next){a.registerToArrowRightKey(this)}if(c.prev){a.registerToArrowLeftKey(this)}},componentWillUnmount:function(){this.props.siteAPI.getSiteAspect("windowKeyboardEvent").unRegisterKeys(this);this.props.siteAPI.getSiteAspect("windowTouchEvents").unregisterFromWindowTouchEvent("touchMove",this)},getSkinProperties:function(){var a=this.getChildZoomComponentType();var b=a==="wysiwyg.viewer.components.MobileMediaZoom";return{"":{children:this.createChildComponent(this.props.compData,a,"mediaZoom",{ref:this.props.compData.id,actualNavigateToItemFunc:this.actualNavigateToItem,getBoxDimensionsFunc:this.getBoxDimensions,getChildCompFunc:this.getChildComp,getPrevAndNextStateFunc:this.getPrevAndNextState,isDataChangedFunc:this.isDataChanged,closeFunction:this.props.closeFunction,enableInnerScrolling:this.enableInnerScrolling||false}),style:{width:"100%",height:"100%",position:b?"static":"absolute"}}}},closeMediaZoom:function(){this.refs[this.props.compData.id].closeMediaZoom()},onEscapeKey:function(){this.closeMediaZoom()},onArrowLeftKey:function(){this.refs[this.props.compData.id].clickOnPreviousButton()},onArrowRightKey:function(){this.refs[this.props.compData.id].clickOnNextButton()},onWindowTouchMove:function(a){if(!this.enableInnerScrolling){a.preventDefault();a.stopPropagation()}}}});define("core/components/galleryImageExpandedActionMixin",["lodash","siteUtils"],function(a,b){"use strict";var c=a.map(["SlideShow","Slider","PaginatedGrid","Matrix"],function(a){return"wysiwyg.viewer.components."+a+"Gallery"});function d(a){return{id:a,timeStamp:window.performance?window.performance.now():window.Date.now(),name:"imageExpanded"}}function e(b,d){d=d||[];if(!b){return d}if(a.includes(c,b.componentType)){d.push(b)}a.forEach(b.components,function(a){e(a,d)});return d}function f(b,c,d){var e=b.getDataByQuery(d.dataQuery,c);return a.get(e,"items")}function g(b,c){return a.findIndex(c,function(c){return a.some(c,{id:b})})}return{handleImageExpandedAction:function(){var c=this.props.siteData;var h=this.props.pageId;var i=a.get(this.props,"compData.id")||this.props.id;var j=e(c.pagesData[h].structure);var k=a.map(j,f.bind(null,c,h));var l=g(i,k);if(l!==-1){var m=this.props.siteAPI.getSiteAspect("behaviorsAspect");var n=[{name:b.constants.ACTION_TYPES.ITEM_CLICKED,pageId:h,sourceId:j[l].id,type:"comp"},{name:b.constants.ACTION_TYPES.IMAGE_EXPANDED,pageId:h,sourceId:j[l].id,type:"comp"}];a.map(n,function(a){m.handleAction(a,d(i));return})}}}});define("core/components/util/matrixAnimationManipulation",["lodash"],function(a){"use strict";function b(){return.1}var c={getDefultAnimationValues:function(a,b,c,d){return{sourceNodesArrSorted:[a],destNodesArrSorted:[b],stagger:0,timingFunctionIndex:c,transName:d,sporadicallyRandom:false}},getUpdatedTimingFunctionIndex:function(a,b){if(b>a.length-1){b=0}return b},getCrossFadePossibleTransitionByName:function(a){switch(a){case"crossFadeHorizWave":return this.sortMatrixByRows;case"crossFadeVertWave":return this.sortMatrixByCols;case"seq_crossFade_Diagonal":return this.convertMatrixToDiagonal}},convertArrayToMatrix:function(b,c,d){var e=0;var f=new Array(c);a.times(c,function(c){if(!f[c]){f[c]=[]}a.times(d,function(a){if(e1};case"swipe_vert_All":var m=[c.getMatrixByCols,c.getMatrixByColsReverse];h=c.getUpdatedTimingFunctionIndex(m,h);var n=m[h];return{sourceNodesArrSorted:n.call(c,d,f,g),destNodesArrSorted:n.call(c,e,f,g),stagger:b(),timingFunctionIndex:h,transName:"SlideVertical",sporadicallyRandom:g>1};case"seq_random":var o=["seq_shrink_All","seq_crossFade_All","swipe_horiz_All","swipe_vert_All"];var p=o[Math.floor(Math.random()*o.length)];return this.getSortedArrayAndStagger(p,d,e,f,g,h);case"horizSwipeAllAtOnce":return c.getDefultAnimationValues(d,e,h,"SlideHorizontal");case"vertSwipeAllAtOnce":return c.getDefultAnimationValues(d,e,h,"SlideVertical");case"crossFadeAllAtOnce":return c.getDefultAnimationValues(d,e,h,"CrossFade");case"crossFadeHorizWave":case"crossFadeVertWave":case"seq_crossFade_Diagonal":var q=c.getCrossFadePossibleTransitionByName(a);return{sourceNodesArrSorted:q.call(c,d,f,g),destNodesArrSorted:q.call(c,e,f,g),stagger:.1,timingFunctionIndex:h,transName:"CrossFade"};case"seq_swipe_alternate":var r=[c.getMatrixByRows,c.getMatrixByCols];h=c.getUpdatedTimingFunctionIndex(r,h);return{sourceNodesArrSorted:d,destNodesArrSorted:e,stagger:b(),timingFunctionIndex:h,transName:h===0?"SlideHorizontal":"SlideVertical"}}}};return d});define("core/components/uniquePageIdProviders/singlePostUniquePageIdProvider",["utils","lodash"],function(a,b){"use strict";var c=a.hashUtils,d=a.blogAppPartNames,e="blog";function f(){var a=Array.prototype.slice.call(arguments,0);return c.SHA256.hex_sha256(a.join("/"))}return{isMatched:function(a){return b.some(a.data.document_data,{appPartName:d.SINGLE_POST})},getUniquePageId:function(g,h){if(a.stringUtils.isTrue(b.get(g,["currentUrl","query","draft"]))){return c.SHA256.hex_sha256("editor")}var i=g.pagesData[h],j=b.findWhere(i.data.document_data,{appPartName:d.SINGLE_POST}),k=g.wixapps.blog[j.id][1];return f(g.siteId,e,k)}}});define("core/components/uniquePageIdProviders/uniquePageIdProviders",["core/components/uniquePageIdProviders/singlePostUniquePageIdProvider"],function(){"use strict";return Array.prototype.slice.call(arguments,0)});define("core/components/uniquePageIdMixin",["lodash","core/components/uniquePageIdProviders/uniquePageIdProviders"],function(a,b){"use strict";function c(b,c){return a(b.pagesData.masterPage.structure.children).map(function(b){return a.isArray(b.components)?b.components:b}).flattenDeep().some({id:c})}return{getUniquePageId:function d(){var e;if(c(this.props.siteData,this.props.id)){return this.props.siteData.getExternalBaseUrl()}e=a.find(b,function(a){var b=this.props.rootId;var c=this.props.siteData.pagesData[b];return a.isMatched(c)},this);if(!a.isUndefined(e)){return e.getUniquePageId(this.props.siteData,this.props.rootId)}return this.props.siteData.currentUrl.full}}});define("core/components/bgVideoMixin",["lodash","react","reactDOM"],function(a,b,c){"use strict";return{propType:{structureComponentId:b.PropTypes.string.isRequired,compData:b.PropTypes.object.isRequired},getInitialState:function(){this.videoBackgroundAspect=this.props.siteAPI.getSiteAspect("VideoBackgroundAspect");this.showOnNextTick=false;this.errorMode=false;this.registerToVideoAspect(this.getVideoData());return this.resetVideoStates(this.getVideoData())},registerToVideoAspect:function(a){this.videoBackgroundAspect.registerVideo(this.props.refInParent,this.getStructureComponentId(),a,this.qualityReady,this,a.autoplay)},getStructureComponentId:function(){return this.props.structureComponentId},resetVideoStates:function(a){return{stopped:true,paused:false,ready:false,active:true,loaded:false,playEnded:false,autoPlay:a.autoplay,videoQuality:this.videoBackgroundAspect.getQuality(this.props.refInParent)}},componentDidMount:function(){var a=this.getVideoData();this.registerToVideoAspect(a);this.setPlaybackSpeed(a.playbackSpeed||1);this.registerEvents()},componentWillUnmount:function(){var a=this.getInstance();a.removeEventListener("timeupdate",this.onTimeUpdate);a.removeEventListener("ended",this.onPlayEnded);a.removeEventListener("error",this.onError);a.removeEventListener("stalled",this.onStalled);this.videoBackgroundAspect.unregisterVideo(this.props.refInParent);this.removeVideoSecurely()},componentWillReceiveProps:function(a){var b=a.compData;var c=this.getVideoData();this.setPlaybackSpeed(b.playbackSpeed||1);var d=this.resetOnSourceChanged(b,c);if(d){return}this.resetPlayEnded(b,c);this.resetInitialPlay(b)},resetInitialPlay:function(a){if(a.autoplay!==this.state.autoPlay){this.registerToVideoAspect(a);this.setState({autoPlay:a.autoplay})}},resetPlayEnded:function(a,b){if(a.loop&&!b.loop){this.setState({playEnded:false})}},resetOnSourceChanged:function(a,b){if(a.videoId!==b.videoId){this.stop();this.registerToVideoAspect(a);this.setState(this.resetVideoStates(a));return true}return false},registerEvents:function(){this.getInstance().addEventListener("timeupdate",this.onTimeUpdate,true);this.getInstance().addEventListener("ended",this.onPlayEnded,true);this.getInstance().addEventListener("error",this.onError,true);this.getInstance().addEventListener("stalled",this.onStalled,true)},isLoadNeeded:function(a,b){var c=a.compData;var d=this.getVideoData();return this.errorMode||c.videoId!==d.videoId||!b.videoQuality||this.state.videoQuality.quality!==b.videoQuality.quality||!this.state.active&&b.active},componentDidUpdate:function(a,b){var c=this.getVideoData();if(this.isLoadNeeded(a,b)){this.errorMode=false;this.load()}if(this.getInstance().paused&&(!b.active&&this.state.active)||!this.state.stopped&&!this.state.paused){this.getInstance().play();this.setPlaybackSpeed(c.playbackSpeed||1);this.videoBackgroundAspect.notifyPlayingChanged(this.props.refInParent)}else if(!b.stopped&&this.state.stopped){this.getInstance().pause();this.videoBackgroundAspect.notifyPlayingChanged(this.props.refInParent);if(this.state.active&&this.state.loaded&&this.getInstance().currentTime>0){this.getInstance().currentTime=0}}else if(!b.paused&&this.state.paused){this.getInstance().pause();this.videoBackgroundAspect.notifyPlayingChanged(this.props.refInParent)}if(!b.ready&&this.state.ready){this.showOnNextTick=true}else if(b.ready&&!this.state.ready){this.getInstance().style.visibility="hidden";this.showOnNextTick=false}},notifyPlayingChange:function(){this.videoBackgroundAspect.notifyPlayingChanged(this.props.refInParent)},getInstance:function(){return c.findDOMNode(this.refs.video)},setPlaybackSpeed:function(a){this.getInstance().playbackRate=a},load:function(){var a=this.getInstance();a.load()},removeVideoSecurely:function(){var b=this.getInstance();b.pause();a.forEach(b.children,function(a){if(a.nodeName.toLowerCase()==="source"){a.setAttribute("src","")}});b.load()},kill:function(){if(this.state.active){this.removeVideoSecurely();this.setState({active:false,ready:false,stopped:true,loaded:false})}},play:function(b){var c={};if(!this.state.active){c={active:true,ready:false,stopped:false,pause:false}}else if(this.state.stopped){c={stopped:false,ready:false}}else if(this.state.paused){c={paused:false}}if(!this.state.videoQuality||b&&b.quality!==this.state.videoQuality.quality){c.videoQuality=b}if(!a.isEmpty(c)){this.setState(c)}},stop:function(b){if(!this.state.stopped){this.setState(a.assign({ready:false,stopped:true,paused:false},b?{playEnded:b}:{}))}},pause:function(b){if(!this.state.stopped&&!this.state.paused){this.setState(a.assign({paused:true},b?{playEnded:b}:{}))}},onPlayEnded:function(){this.pause(true)},onError:function(a){if(a.currentTarget.networkState===a.currentTarget.NETWORK_NO_SOURCE){this.errorMode=true}},onStalled:function(a){if(a.currentTarget.readyState===a.currentTarget.HAVE_NOTHING){this.errorMode=true}},onTimeUpdate:function(){if(!this.state.ready&&this.state.active&&!this.state.stopped){this.setState({ready:true,loaded:true});this.getInstance().currentTime=0}if(this.showOnNextTick&&this.getInstance().currentTime){this.showOnNextTick=false;if(this.getInstance().currentTime>0){this.getInstance().style.visibility="visible"}}},isPlaying:function(){return this.state.active&&!this.state.stopped&&!this.state.paused},getVideoData:function(){return this.props.compData},qualityReady:function(a,b){if(b===this.getVideoData().videoId&&(this.errorMode||!this.isPlaying())){this.registerReLayout();this.setState({videoQuality:a,ready:false,loaded:false})}}}});define("core/activities/activity",["utils"],function(a){"use strict";var b=function(){return{additionalInfoUrl:null,summary:""}};var c=function(a){return a.currentUrl.full};var d=function(){return a.guidUtils.getUniqueId()};var e=function(a,b){this._siteData=a;this._fields=b};e.prototype={getParams:function(){return{hs:this._siteData.getHubSecurityToken(),"activity-id":d(),"metasite-id":this._siteData.getMetaSiteId(),svSession:this._siteData.getSvSession(),version:"1.0.0"}},getPayload:function(){return{activityDetails:b(),activityInfo:"activityInfo",activityLocationUrl:c(this._siteData),activityType:"activityType",contactUpdate:{},createdAt:(new Date).toISOString()}},getHost:function(){return this._siteData.currentUrl.host}};return e});define("core/activities/tpaActivity",["lodash","core/activities/activity"],function(a,b){"use strict";var c=function(a,c){b.call(this,a,c)};c.prototype=new b;c.prototype.getParams=function(c){var d=b.prototype.getParams.call(this,c);var e={"application-id":this._fields.appDefinitionId,instance:this._fields.instance};e=a.assign(d,e);return e};c.prototype.getPayload=function(c){var d=b.prototype.getPayload.call(this,c);var e={contactUpdate:this._fields.contactUpdate,activityInfo:this._fields.info,activityType:this._fields.type,activityDetails:this._fields.details};e=a.assign(d,e);return e};return c});define("core/activities/contactFormActivity",["lodash","core/activities/activity","experiment"],function(a,b,c){"use strict";var d=29;var e=function(b){var c="";c+=b.subject?""+b.subject+"":"";if(b.message){c+=b.subject?"
":"";c+=b.message}return{additionalInfoUrl:null,summary:!a.isEmpty(c)?c:"No message was received"}};var f={name:{first:"",last:""},emails:[{tag:"main",email:""}],phones:[{tag:"main",phone:""}],addresses:[{tag:"main",address:""}]};var g={name:"name",email:"emails",phone:"phones",address:"addresses"};var h=function(b,c){return a(b).keys().map(function(a){return{name:c[a],value:b[a]}}).value()};var i=function(a,b){if(c.isOpen("contactFormActivity")){return{subject:a.subject,content:{message:a.message,media:[]},additionalFields:h(a,b)}}var d={fields:[]};Object.keys(a).forEach(function(b){d.fields.push({name:b,value:a[b]})});return d};var j=function(b){var c=a.omit(b,function(a){return!a});var d=a.map(c,function(a,b){return g[b]},this);var e=a.pick(f,d);l(e,c);k(e,c);a.forEach(c,function(b,c){var d=e[g[c]];if(a.isArray(d)){a.first(d)[c]=b}},this);return e};var k=function(a,b){if(!b.phone){b.phone=""}b.phone=b.phone.substring(0,d)};var l=function(a,b){if(!b.name){b.name=""}var c=b.name.split(" ");if(a.name){a.name.first=c[0];a.name.last=c[1]}};var m=function(a,c,d){b.call(this,a,c);this._fieldLabels=d};m.prototype=new b;m.prototype.getParams=function(c){var d=b.prototype.getParams.call(this,c);var e={"component-name":"ContactForm"};e=a.assign(d,e);return e};m.prototype.getPayload=function(d){var f=b.prototype.getPayload.call(this,d);var g=j(this._fields);var h={contactUpdate:g,activityInfo:i(this._fields,this._fieldLabels),activityDetails:e(this._fields),activityType:c.isOpen("contactFormActivity")?"form/contact-form":"contact/contact-form"};h=a.assign(f,h);return h};return m});define("core/activities/subscribeFormActivity",["lodash","core/activities/activity"],function(a,b){"use strict";var c=function(b){var c={fields:[]};Object.keys(b).forEach(function(a){c.fields.push({name:a,value:b[a]})});c.email=b.email;if(b.first||b.last){c.name=a.pick({first:b.first,last:b.last},a.identity)}if(b.phone){c.phone=b.phone}return c};var d=function(a){return{name:{first:a.first||"",last:a.last||""},emails:[{tag:"main",email:a.email||""}],phones:a.phone?[{tag:"main",phone:a.phone||""}]:[],emailSubscriptionPolicy:"RECURRING"}};var e=function(a,c){b.call(this,a,c)};e.prototype=new b;e.prototype.getParams=function(c){var d=b.prototype.getParams.call(this,c);var e={"component-name":"subscribeForm"};e=a.assign(d,e);return e};e.prototype.getPayload=function(e){var f=b.prototype.getPayload.call(this,e);var g={contactUpdate:d(this._fields),activityInfo:c(this._fields),activityType:"contact/subscription-form"};g=a.assign(f,g);return g};return e});define("core/activities/activityTypes",["core/activities/tpaActivity","core/activities/contactFormActivity","core/activities/subscribeFormActivity"],function(a,b,c){"use strict";return{TPAActivity:a,ContactFormActivity:b,SubscribeFormActivity:c}});define("core/activities/activityService",["utils"],function(a){"use strict";var b=a.urlUtils,c=a.ajaxLibrary;var d="/_api/app-integration-bus-web/v1/activities",e="http://wix.com";function f(a,f,g){var h="?"+b.toQueryString(a.getParams()),i=a.getHost()?"http://"+a.getHost():e;i+=d+h;c.ajax({type:"POST",url:i,data:a.getPayload(),dataType:"json",contentType:"application/json",success:f,error:g})}return{reportActivity:f}});define("core/components/transitionGroup",["lodash","react"],function(a,b){"use strict";function c(a){var c={};var d=0;b.Children.forEach(a,function(a){c[a.key||""+d++]=a});return c}var d=b.createClass({displayName:"ReactTransitionGroup",propTypes:{component:b.PropTypes.any,childFactory:b.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.identity}},getInitialState:function(){return{children:c(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={};this.keysToEnter=[];this.keysToLeave=[]},componentDidMount:function(){var a=this.state.children;for(var b in a){if(a[b]){this.performAppear(b)}}},componentWillReceiveProps:function(b){var d=c(b.children);var e=this.state.children;this.setState({children:a.assign({},e,d)});var f;for(f in d){if(d[f]&&!(e&&e.hasOwnProperty(f))&&!this.currentlyTransitioningKeys[f]){this.keysToEnter.push(f)}}for(f in e){if(e[f]&&!(d&&d.hasOwnProperty(f))&&!this.currentlyTransitioningKeys[f]){this.keysToLeave.push(f)}}},componentDidUpdate:function(){var a=this.keysToEnter;this.keysToEnter=[];a.forEach(this.performEnter);var b=this.keysToLeave;this.keysToLeave=[];b.forEach(this.performLeave)},performAppear:function(a){this.currentlyTransitioningKeys[a]=true;var b=this.refs[a];if(b.componentWillAppear){b.componentWillAppear(this._handleDoneAppearing.bind(this,a))}else{this._handleDoneAppearing(a)}},_handleDoneAppearing:function(a){var b=this.refs[a];if(b.componentDidAppear){b.componentDidAppear()}delete this.currentlyTransitioningKeys[a];var d=c(this.props.children);if(!d||!d.hasOwnProperty(a)){this.performLeave(a)}},performEnter:function(a){this.currentlyTransitioningKeys[a]=true;var b=this.refs[a];if(b.componentWillEnter){b.componentWillEnter(this._handleDoneEntering.bind(this,a))}else{this._handleDoneEntering(a)}},_handleDoneEntering:function(a){var b=this.refs[a];if(b.componentDidEnter){b.componentDidEnter()}delete this.currentlyTransitioningKeys[a];var d=c(this.props.children);if(!d||!d.hasOwnProperty(a)){this.performLeave(a)}},performLeave:function(a){this.currentlyTransitioningKeys[a]=true;var b=this.refs[a];if(b.componentWillLeave){b.componentWillLeave(this._handleDoneLeaving.bind(this,a))}else{this._handleDoneLeaving(a)}},_handleDoneLeaving:function(b){var d=this.refs[b];if(d.componentDidLeave){d.componentDidLeave()}delete this.currentlyTransitioningKeys[b];var e=c(this.props.children);if(e&&e.hasOwnProperty(b)){this.performEnter(b)}else{this.setState(function(c){var d=a.assign({},c.children);delete d[b];return{children:d}})}},render:function(){var a=[];for(var c in this.state.children){if(this.state.children[c]){var d=this.state.children[c];a.push(b.cloneElement(this.props.childFactory(d),{ref:c,key:c}))}}return b.createElement(this.props.component,this.props,a)}});return d});define("core/components/wixTransitionItem",["lodash","react","core/components/animatableMixin"],function(a,b,c){"use strict";var d=b.createClass({displayName:"wixTransitionItem",mixins:[c],render:function(){return this.props.children},componentWillEnter:function(a){this.props.onWillEnter(this.props.refInParent,a)},componentWillLeave:function(a){this.props.onWillLeave(this.props.refInParent,a)}});return d});define("core/components/wixTransitionGroup",["lodash","react","reactDOM","zepto","core/components/transitionGroup","core/components/wixTransitionItem","core/components/animationsMixin"],function(a,b,c,d,e,f,g){"use strict";e=b.createFactory(e);function h(b,e){a(b).map(c.findDOMNode).map(d).forEach(function(a){a.attr("data-leaving",e?true:null)}).commit()}var i=b.createClass({displayName:"wixTransitionGroup",mixins:[g],getDefaultProps:function(){return{transition:"CrossFade",transitionDuration:2,reverse:false,transitionCallback:a.noop}},getInitialState:function(){this.leavingChildren={};this.enteringChildren={};return{}},render:function(){return e(a.assign({childFactory:this.childWrapper,component:"div",ref:"group"},a.omit(this.props,"transition")))},childWrapper:function(a){return b.createElement(f,{onWillEnter:this.onWillEnter,onWillLeave:this.onWillLeave,refInParent:a.props.refInParent,ref:a.props.refInParent,key:a.props.refInParent},a)},getInnerRefs:function(b){return a.map(b,function(a){return this.refs.group.refs[a]},this)},flush:function(){if(!a.isEmpty(this.enteringChildren)&&a.size(this.leavingChildren)===a.size(this.enteringChildren)){var b=this.getInnerRefs(a.keys(this.leavingChildren));var c=this.getInnerRefs(a.keys(this.enteringChildren));h(b,true);h(c,false);var d=a.values(this.enteringChildren).concat(a.values(this.leavingChildren));this.leavingChildren={};this.enteringChildren={};var e=a.isFunction(this.props.getTransitionParams)?this.props.getTransitionParams():{};this.transition(b,c,this.props.transition,this.props.transitionDuration,0,a.assign({reverse:this.props.reverse},e),{onComplete:function(){this.props.transitionCallback();a.forEach(d,function(a){a()})}.bind(this)})}},onWillEnter:function(a,b){this.enteringChildren[a]=b;this.flush()},onWillLeave:function(a,b){this.leavingChildren[a]=b;this.flush()}});return i});define("core/components/behaviorHandlers/behaviorHandlersFactory",["lodash","utils"],function(a,b){"use strict";var c={};var d={handle:a.noop};function e(e){if(!a.has(c,e)){b.log.warn("there is no behavior handler for type "+e);return d}return c[e]}function f(a,b){c[a]=b}return{getHandler:e,registerHandler:f}});define("core/components/siteAspects/behaviorsService",["core/components/behaviorHandlers/behaviorHandlersFactory"],function(a){"use strict";function b(b,c,d){d=d||{};a.getHandler(c.type).handle(c,b,d)}return{handleBehavior:b}});define("core/components/socialCompMixin",[],function(){"use strict";return{getSocialUrl:function(a){var b=this.props.compData?this.props.compData.urlFormat:this.props.siteData.getUrlFormat();if(a){return this.props.siteData.getMainPageUrl(b)}return this.props.siteData.getCurrentUrl(b,undefined,b!==this.props.siteData.getUrlFormat())}}});define("core/core/data/pointers/jsonItemsFinders",["utils"],function(a){"use strict";function b(b,c){if(c===a.constants.VIEW_MODES.MOBILE){return b.mobileComponents?"mobileComponents":"components"}return b.children?"children":"components"}function c(a,b){return b.id===a||a==="masterPage"&&b.children}function d(a,e,f,g){if(c(e,a)){return g}var h=b(a,f);var i=a[h];if(!i){return null}var j=null;for(var k=0;kh&&a.isEqual(f.slice(0,h),g)}return false}};d.registerDataAccessPointersGenerator("components",m,true)});define("core/core/data/pointers/componentStructurePointers",["lodash","core/core/data/pointers/DataAccessPointers","core/core/data/pointers/pointerGeneratorsRegistry"],function(a,b,c){"use strict";var d=new b;var e={getModes:function(a,b,c){return d.getInnerPointer(c,["modes"])},getModesDefinitions:function(a,b,c){return d.getInnerPointer(c,["modes","definitions"])},getModesOverrides:function(a,b,c){return d.getInnerPointer(c,["modes","overrides"])}};c.registerDataAccessPointersGenerator("componentStructure",e)});define("core/core/data/pointers/dataPointers",["lodash","utils","core/core/data/pointers/pointerGeneratorsRegistry"],function(a,b,c){"use strict";var d=b.constants;var e="masterPage";var f=d.DATA_TYPES;function g(){return true}function h(b,c,d,e){var f=i(b);var g=d(["pagesData"]);return a.reduce(g,function(a,c,g){var h=j(b,g,f).concat(e.id);if(!a&&d(h)){return h}return a},null)}function i(a){switch(a){case f.data:return"document_data";case f.design:return"design_data";case f.prop:return"component_properties";case f.theme:return"theme_data";case f.behaviors:return"behaviors_data";case f.connections:return"connections_data";default:throw new Error("there is no such data type "+a)}}function j(a,b,c){return["pagesData",b,"data",c||i(a)]}c.registerPointerType(f.data,h.bind(null,f.data),g,false,true);c.registerPointerType(f.prop,h.bind(null,f.prop),g,false,true);c.registerPointerType(f.design,h.bind(null,f.design),g,false,true);c.registerPointerType(f.theme,h.bind(null,f.theme),g,false,true);c.registerPointerType(f.behaviors,h.bind(null,f.behaviors),g,false,true);c.registerPointerType(f.connections,h.bind(null,f.connections),g,false,true);var k={getDataItem:function(a,b,c,d){return this.getItem(a,b,f.data,c,d)},getDataItemWithPredicate:function(b,c,d,e){return a.first(this.getDataItemsWithPredicate(b,c,d,e))},getDataItemsWithPredicate:function(b,c,d,e){var g=e||"masterPage";var h=j(f.data,g);var i=b(h);return a.map(a.filter(i,d),function(a){return this.getDataItem(b,c,a.id,g)},this)},getDesignItem:function(a,b,c,d,e){return this.getItem(a,b,f.design,c,d,e)},getPropertyItem:function(a,b,c,d,e){return this.getItem(a,b,f.prop,c,d,e)},getBehaviorsItem:function(a,b,c,d){return this.getItem(a,b,f.behaviors,c,d)},getConnectionsItem:function(a,b,c,d){return this.getItem(a,b,f.connections,c,d)},getThemeItem:function(a,b,c){return this.getItem(a,b,f.theme,c,e)},getItem:function(a,b,c,d,e,f){var g=j(c,e);g.push(d);return b.getPointer(d,c,g,f)},getDataItemFromMaster:function(a,b,c){return this.getDataItem(a,b,c,e)},getPageIdOfData:function(a,b,c){var d=b.getPath(c);return d[1]}};c.registerDataAccessPointersGenerator("data",k)});define("core/core/data/pointers/generalPointers",["lodash","core/core/data/pointers/pointerGeneratorsRegistry"],function(a,b){"use strict";var c="general";b.registerPointerType(c,a.constant(null),a.constant(true));b.registerPointerType("metadata",a.constant(null),a.constant(true));var d={getAllTheme:{id:"theme",path:["pagesData","masterPage","data","theme_data"]},getOrphanPermanentDataNodes:{id:"orphanPermanentDataNodes",path:["orphanPermanentDataNodes"]},getTextRuntimeOverallBorders:{id:"overallBorders",path:["textRuntimeLayout","overallBorders"]},getDockedRuntimeLayout:{id:"dockedRuntimeLayout",path:["dockedRuntimeLayout"]},getPagesData:{id:"pagesData",path:["pagesData"]},getServiceTopology:{id:"serviceTopology",path:["serviceTopology"]},getDeletedMobileComps:{id:"mobileDeletedCompsMap",path:["mobileDeletedCompsMap"]},getDeletedPagesMapPointer:{id:"deletedPagesMap",path:["deletedPagesMap"]},getUserId:{id:"userId",path:["rendererModel","userId"]},getIsStudioUser:{id:"isStudioUser",path:["documentServicesModel","userInfo","isStudio"]},getEditorData:{id:"editorData",path:["editorData"]},getMobileStructuresPointer:{id:"mobileStructures",path:["mobileStructures"]},getCompsToUpdateAnchors:{id:"compsToUpdateAnchors",path:["compsToUpdateAnchors"]},getRuntimePointer:{id:"runtime",path:["runtime"]},getNeverSaved:{id:"neverSaved",path:["documentServicesModel","neverSaved"]},getPublicUrl:{id:"publicUrl",path:["documentServicesModel","publicUrl"]},getForbiddenPageUriSEOs:{id:"forbiddenPageUriSEOs",path:["urlFormatModel","forbiddenPageUriSEOs"]},getUrlFormat:{id:"urlFormat",path:["urlFormatModel","format"]},getClientSpecMap:{id:"clientSpecMap",path:["rendererModel","clientSpecMap"]},getAutosaveInfo:{id:"autoSaveInfo",path:["documentServicesModel","autoSaveInfo"]},getMetaSiteId:{id:"metaSiteId",path:["rendererModel","metaSiteId"]},getDocumentType:{id:"documentType",path:["rendererModel","siteInfo","documentType"]},getActiveModes:{id:"activeModes",path:["activeModes"]},getContactFormsMetaData:{id:"contactformsMetaData",path:["contactforms_metadata"]},getRootsRenderedInMobileEditor:{id:"rootsRenderedInMobileEditor",path:["rootsRenderedInMobileEditor"]},getRenderFlags:{id:"renderFlags",path:["renderFlags"]},getRoutersPointer:{id:"routers",path:["rendererModel","routers"]}};var e={getRenderFlag:function(a,b,d){return b.getPointer("renderFlags"+d,c,["renderFlags",d])},getRenderRealtimeConfigItem:function(a,b,d){return b.getPointer("renderRealtimeConfig"+d,c,["renderRealtimeConfig",d])}};var f=a(d).mapValues(function(a){return function(b,d){return d.getPointer(a.id,c,a.path)}}).assign(e).value();b.registerDataAccessPointersGenerator(c,f)});define("core/core/data/pointers/platformPointers",["lodash","core/core/data/pointers/pointerGeneratorsRegistry","core/core/data/pointers/DataAccessPointers"],function(a,b,c){"use strict";var d="platform";var e=new c;b.registerPointerType(d,a.constant(null),a.constant(true));var f={getPlatformPointer:function(a,b){return b.getPointer("platform",d,["platform"])},getAppStatePointer:function(a,b){return b.getPointer("appState",d,["platform","appState"])},getControllersStageDataPointer:function(a,b,c){var f=b.getPointer("appManifest",d,["platform","appManifest"]);return e.getInnerPointer(f,[c,"controllersStageData"])},getAppManifestPointer:function(a,b,c){var f=b.getPointer("appManifest",d,["platform","appManifest"]);return e.getInnerPointer(f,[c])}};b.registerDataAccessPointersGenerator(d,f)});define("core/core/data/pointers/pagePointers",["lodash","core/core/data/pointers/pointerGeneratorsRegistry"],function(a,b){"use strict";var c="page";b.registerPointerType(c,function(){return null},function(){return true},false,true);var d={isPointerPageType:function(a,b,d){return d&&d.type===c},getNewPagePointer:function(a,b,d){var e=["pagesData",d];return b.getPointer(d,c,e)},getPagePointer:function(b,d,e){var f=["pagesData",e];var g=b(f);if(a.isUndefined(g)){return null}return d.getPointer(e,c,f)},isExists:function(b,c,d){var e=["pagesData",d];var f=b(e);return!a.isUndefined(f)},getAllPagesPointer:function(a,b){return b.getPointer("all",c,["pagesData"])},getNonDeletedPagesPointers:function(b,d,e){e=a.isUndefined(e)?false:e;var f=["pagesData"];var g=b(f);g=a.pick(g,function(a,b){if(!a){return false}if(!e&&b==="masterPage"){return false}return true});return a.map(g,function(a,b){return d.getPointer(b,c,f.concat(b))})},getPageData:function(a,b,d){var e=["pagesData",d,"data","document_data"];var f=a(e);if(!f){return null}return b.getPointer(d+"_data",c,e)},getPageProperties:function(a,b,d){var e=["pagesData",d,"data","component_properties"];var f=a(e);if(!f){return null}return b.getPointer(d+"_prop",c,e)},getPageDesignData:function(a,b,d){var e=["pagesData",d,"data","design_data"];var f=a(e);if(!f){return null}return b.getPointer(d+"_design",c,e)}};b.registerDataAccessPointersGenerator(c,d)});define("core/core/data/pointers/pointers",["core/core/data/pointers/pointerGeneratorsRegistry","core/core/data/pointers/pointersCache","core/core/data/pointers/DataAccessPointers","core/core/data/pointers/componentPointers","core/core/data/pointers/componentStructurePointers","core/core/data/pointers/dataPointers","core/core/data/pointers/generalPointers","core/core/data/pointers/platformPointers","core/core/data/pointers/pagePointers"],function(a,b,c){"use strict";return{pointerGeneratorsRegistry:a, PointersCache:b,DataAccessPointers:c}});define("core/components/fullScreenOverlay/fullScreenOverlay",["lodash","react"],function(a,b){"use strict";return b.createClass({displayName:"fullScreenOverlay",propTypes:{siteWidth:b.PropTypes.number.isRequired,siteScrollingBlocker:b.PropTypes.object.isRequired,forceBackground:b.PropTypes.func.isRequired,disableForcedBackground:b.PropTypes.func.isRequired,isMobileDevice:b.PropTypes.bool.isRequired,overlayBackgroundOpacity:b.PropTypes.string},statics:{createOverlay:function(c,d){var e=b.createFactory(this);c[""]=a.assign({},c[""],{wrap:[e,d]});return c}},getOverlayBackground:function(){var a=this.props.overlayBackgroundOpacity||1;return"rgba(0, 0, 0, "+a+")"},componentDidMount:function(){this.props.siteScrollingBlocker.setSiteScrollingBlocked(this,true);if(this.props.isMobileDevice){this.props.forceBackground(this.getOverlayBackground())}},componentWillUnmount:function(){this.props.siteScrollingBlocker.setSiteScrollingBlocked(this,false);if(this.props.isMobileDevice){this.props.disableForcedBackground()}},render:function(){return b.createElement("div",null,b.createElement("div",{className:"fullScreenOverlay",key:"fullScreenOverlay"},b.createElement("div",{className:"fullScreenOverlayContent",style:{width:this.props.siteWidth,background:this.getOverlayBackground()},key:"fullScreenOverlayContent"},this.props.children)))}})});define("core/components/compStateMixin",["lodash","santaProps","utils"],function(a,b,c){"use strict";function d(b,d){var e={};var f=a.get(d,"publicState");if(a.isArray(f)){a.forEach(f,function(c){if(a.has(b,c)){e[c]=b[c]}},this)}else{c.log.warn("Component should implement publicState when using compStateMixin");e=b}return e}return{propTypes:{setCompState:b.Types.DAL.setCompState.isRequired,removeCompState:b.Types.DAL.removeCompState.isRequired,id:b.Types.Component.id.isRequired},mixins:[b.santaTypesPropsMixin],componentWillUnmount:function(){this.santaTypesProps.removeCompState(this.santaTypesProps.id)},componentDidMount:function(){this.santaTypesProps.setCompState(this.santaTypesProps.id,d(this.state,this.constructor))},componentDidUpdate:function(){this.santaTypesProps.setCompState(this.santaTypesProps.id,d(this.state,this.constructor))}}});define("core/components/siteAspects/BehaviorsAspect",["lodash","core/components/behaviorHandlers/behaviorHandlersFactory","core/components/siteAspects/behaviorsService","experiment"],function(a,b,c,d){"use strict";var e=["sourceId","type","name"];var f=["targetId","type","name","part"];function g(c){var d=b.getHandler(c.type);if(d.getUniqueIdentifier){return d.getUniqueIdentifier(c)}return a(c).at(f).map(function(b){return a.isPlainObject(b)?a.values(b):b}).join()}function h(b){return a.at(b,e).join(",")}function i(a){return a.type+":"+a.sourceId}function j(b,c,d,e){var f=a(b).map(d).indexBy(e).value();var g=a.keys(f);var h=a.keys(c);var i=a.intersection(g,h);var j=a.difference(g,i);var k=a.difference(h,i);return{map:f,added:j,removed:k}}function k(c,d){var e=j(c,this._registeredBehaviors[d]||{},"behavior",g);this._behaviorsAdded[d]=e.added.concat(this._behaviorsAdded[d]||[]);this._behaviorsRemoved[d]=e.removed.concat(this._behaviorsRemoved[d]||[]);a(this._registeredBehaviors[d]).pick(e.removed).forEach(function(c){var d=b.getHandler(c.type);if(a.has(d,"cancelPreCondition")){d.cancelPreCondition(c,this._aspectSiteAPI)}},this).commit();this._registeredBehaviors[d]=e.map;var f=j(c,this._registeredActions[d]||{},"action",h);this._actionsRemoved[d]=this._actionsRemoved[d]||{};a.assign(this._actionsRemoved[d],a.pick(this._registeredActions[d],f.removed));this._registeredActions[d]=f.map;this._actionsAdded[d]=f.added.concat(this._actionsAdded[d]||[]);this._actionsToBehaviorsMap[d]=a(c).groupBy(function(a){return h(a.action)}).mapValues(function(b){return a(b).map("behavior").map(g).value()}).value();this._behaviorsToActionsMap[d]=a(c).groupBy(function(a){return g(a.behavior)}).mapValues(function(b){return a(b).map("action").map(h).value()}).value()}function l(b,c,d){var e=a(b).pick(c).map(function(b,c){return d===true?b:a.pick(b,d[c])}).values().value();return a.assign.apply(a,[{}].concat(e))}function m(a){var b=this._aspectSiteAPI.getSiteAspect("actionsAspect");return b.needToRunPreConditions(a)}function n(b){this._aspectSiteAPI=b;this._registeredActions={};this._registeredBehaviors={};this._ranOnce={};this._rawBehaviorsForActions={};this._behaviorsAdded={};this._behaviorsRemoved={};this._actionsAdded={};this._actionsRemoved={};this._actionsToBehaviorsMap={};this._behaviorsToActionsMap={};this._behaviorsWaitingToFlush={};this._registeredActionsByTypeSource={};a.bindAll(this);this._aspectSiteAPI.registerToDidLayout(this._handleDidLayout);this._aspectSiteAPI.registerToAddedRenderedRootsDidLayout(this._handleRootsAddedDidLayout);this._aspectSiteAPI.registerToRenderedRootsChange(this._handleRootsChanged)}n.prototype={handleActions:function(c,d){a.forEach(this._actionsToBehaviorsMap,function(e,f){a(e).pick(a.map(c,h)).values().flatten().map(a.get.bind(a,this._registeredBehaviors[f])).groupBy("type").forEach(function(e,f){e=a.filter(e,function(a){var b=g(a);if(a.playOnce&&this._ranOnce[b]){return false}this._ranOnce[b]=true;return true},this);d=a.defaults({},d,{action:"action"});var h=b.getHandler(f);if(a.has(h,"handleMulti")){h.handleMulti(e,this._aspectSiteAPI.getSiteAPI(),d)}else{a.forEach(e,function(a){c=c||[{name:"action"}];d.action=c[0].name;h.handle(a,this._aspectSiteAPI.getSiteAPI(),d)},this)}},this).commit()},this)},handleAction:function(a,b){this.handleActions([a],b)},setBehaviorsForActions:function(c,e){var f=this;var g=this._aspectSiteAPI.getSiteAspect("actionsAspect");c=a(c).reject(function(a){return g.isActionDisabled(a.action.name)}).filter(function(c){var d=b.getHandler(a.get(c,"behavior.type","animation"));return a.isUndefined(d.isEnabled)||d.isEnabled(c.behavior,f._aspectSiteAPI.getSiteAPI())}).map(function(b){return a.defaultsDeep(b,{behavior:{type:"animation",pageId:e},action:{pageId:e}})}).value();this._registeredActionsByTypeSource[e]=a(c).map("action").groupBy(i).value();if(d.isOpen("sv_boxSlideShow")){this._rawBehaviorsForActions[e]=c}else{k.call(this,c,e)}},getActions:function(b,c){return a(this._registeredActionsByTypeSource).map(b+":"+c).flatten().compact().uniq().mapKeys(function(a){return a.name}).value()},_handleDidLayout:function(){var c=this._aspectSiteAPI.getAllRenderedRootIds();if(d.isOpen("sv_boxSlideShow")){a.forEach(c,function(b){var c=this._rawBehaviorsForActions[b];var d=this._aspectSiteAPI.getSiteData().measureMap.top;c=a.filter(c,function(b){var c=b.action.sourceId;var e=b.action.type;var f=b.behavior.type;var g=b.behavior.targetId;var h=e!=="comp"||a.isNumber(d[c]);var i=f==="widget"||f==="site"||a.isNumber(d[g]);return h&&i},this);k.call(this,c,b)},this)}var e=l(this._registeredActions,c,this._actionsAdded);var f=a(this._actionsRemoved).pick(c).values().reduce(a.assign,{});var g=a(this._registeredActions).pick(c).values().reduce(a.assign,{});var h=l(this._registeredBehaviors,c,this._behaviorsAdded);a.forEach(h,function(d,e){var f=a(this._behaviorsToActionsMap).pick(c).values().map(e).compact().flatten().map(a.get.bind(a,g)).every(m,this);if((!d.playOnce||!this._ranOnce[e])&&f){var h=b.getHandler(d.type);if(a.has(h,"handlePreCondition")){h.handlePreCondition(d,this._aspectSiteAPI)}}},this);a.forEach(c,function(a){this._actionsAdded[a]=[];this._actionsRemoved[a]={};this._behaviorsAdded[a]=[];this._behaviorsRemoved[a]=[]},this);if(!a.isEmpty(f)){this._aspectSiteAPI.getSiteAspect("actionsAspect").actionsRemoved(f)}if(!a.isEmpty(e)){this._aspectSiteAPI.getSiteAspect("actionsAspect").actionsAddedLayouted(e)}},_handleRootsChanged:function(b,c){var d=l(this._registeredActions,c,true);a.forEach(c,function(a){this._rawBehaviorsForActions[a]=[];this._registeredActions[a]={};this._registeredBehaviors[a]={};this._behaviorsAdded[a]=[];this._behaviorsRemoved[a]=[];this._actionsAdded[a]=[];this._actionsRemoved[a]={};this._actionsToBehaviorsMap[a]={};this._behaviorsToActionsMap[a]={};this._registeredActionsByTypeSource[a]={}},this);this._aspectSiteAPI.getSiteAspect("actionsAspect").actionsRemoved(d)},_handleRootsAddedDidLayout:function(){},resetBehaviorsRegistration:function(){this._ranOnce={}},registerBehavior:function(b,c){var d=a.get(this._behaviorsWaitingToFlush,b.targetId,[]);a.set(this._behaviorsWaitingToFlush,[b.targetId,d.length],{name:b.name,params:b.params,callback:c})},extractBehaviors:function(a){var b=this._behaviorsWaitingToFlush[a]||[];delete this._behaviorsWaitingToFlush[a];return b},handleBehavior:function(a,b){var d=this._aspectSiteAPI.getSiteAPI();c.handleBehavior(d,a,b)}};return n});define("core/components/siteAspects/animationsAspect",["lodash","reactDOM","animations"],function(a,b,c){"use strict";function d(a){this._aspectSiteAPI=a;this._siteData=a.getSiteData();this._liveSequenceIdsByGroup={}}function e(b){var c=b.targetId||b.sourceId;while(a.isArray(c)){c=c[0]}return this._aspectSiteAPI.getRootOfComponentId(c)||b.pageId}d.prototype.previewAnimation=function(a,b,c,d){var e,f,g;e=this._aspectSiteAPI.getPageById(b);if(e){f=e.sequence();g={props:"clip,opacity,transform,transform-origin",immediateRender:false};f.add(a,c.name,c.duration,c.delay,c.params);f.add(a,"BaseClear",0,0,g);if(d){f.onCompleteAll(d)}return f.execute()}};d.prototype.addAnimationToSequence=function(a,b,c){var d;var f=e.call(this,a);var g=b[f];g.add(a.targetId,a.name,a.params.duration,a.params.delay,a.params,0);if(c){d="clip,opacity,transform";g.add(a.targetId,"BaseClear",0,0,{props:d,immediateRender:false})}return a.targetId};d.prototype.playAnimations=function(b,c,d,f){var g={};var h={};var i=[];a.forEach(c,function(b){var c=e.call(this,b);var f=this._aspectSiteAPI.getPageById(c);var i=b.targetId||b.sourceId;if(a.isString(i)&&!a.get(f,["refs",i])){return}if(!h[c]){h[c]=f.sequence();g[c]=[]}this.addAnimationToSequence(b,h,d);g[c].push(i)},this);var j=1;var k=function(c){j--;this._liveSequenceIdsByGroup[b]=a.reject(this._liveSequenceIdsByGroup[b],{sequenceId:c});if(j===0){f()}}.bind(this);a.forEach(h,function(b,c){if(b.hasAnimations()){j++;b.onCompleteAll(k.bind(this,b.getId()));g[c]=a.compact(g[c]);i.push({parentId:c,sequenceId:b.getId()});b.execute()}},this);k();this._liveSequenceIdsByGroup[b]=this._liveSequenceIdsByGroup[b].concat(i);return g};function f(d,f){a.forEach(d,function(a){var d=c.getProperties(a.name);if(d&&d.hideOnStart){var g=e.call(this,a);var h=this._aspectSiteAPI.getPageById(g);if(h){var i=b.findDOMNode(h.refs[a.targetId||a.sourceId]);if(i){i.style.visibility=f}}}},this)}d.prototype.hideElementsByAnimationType=function(a){f.call(this,a,"hidden")};d.prototype.revertHideElementsByAnimations=function(a){f.call(this,a,"")};d.prototype.previewTransition=function(a,b,c,d,e){var f;if(c==="masterPage"){f=this._aspectSiteAPI.getMasterPage()}else{f=this._aspectSiteAPI.getCurrentPage()}if(f){var g=f.sequence();var h={props:"clip,opacity,transform,transform-origin",immediateRender:false};g.add({sourceRefs:a,destRefs:b},d.name,d.duration,d.delay,d.params);g.add(a.concat(b),"BaseClear",0,0,h);if(e){g.onCompleteAll(e)}return g.execute()}};d.prototype.stopPreviewAnimation=function(b){var c=this._aspectSiteAPI.getAllRenderedRoots();a.forEach(c,function(a){a.stopSequence(b,1)})};d.prototype.stopAndClearAllAnimations=function(){a(this._liveSequenceIdsByGroup).keys().forEach(this.stopAndClearAnimations,this).commit()};d.prototype.stopAndClearAnimations=function(b,c){a.forEach(this._liveSequenceIdsByGroup[b],function(a){var b=this._aspectSiteAPI.getPageById(a.parentId);if(b){b.stopSequence(a.sequenceId,c)}},this);this._liveSequenceIdsByGroup[b]=[]};return d});define("core/components/designDataChangeHandlers/designDataChangeBgBehaviorsHandler",["lodash","utils"],function(a,b){"use strict";var c=b.balataConsts;var d={FadeIn:{type:"animation",defaults:{params:{}}},FadeOut:{type:"animation",defaults:{params:{}}},Scale:{type:"animation",defaults:{params:{scale:1}}}};function e(a,b,c){var d=a.getComponentsByPageId(b);return d[c].refs.balata}function f(c,d,e,f){var g={name:d.name,type:d.type,targetId:[[c,b.balataConsts.BALATA,d.part]],params:a.clone(d.params)||{}};if(!a.isEmpty(e)){a.assign(g.params,e,a.pick(f,a.keys(e)))}return g}function g(b,e){var f=a(e).map("part").uniq().value();var g=a.transform(e,function(b,c){var e=a.get(d,[c.name,"defaults","params"]);b[c.part]=a.assign({},b[c.part],e)},{});var h=a.transform(f,function(d,e){var f=a.get(b,["background",c[e]]);d[e]=a.merge({},g[e],a.pick(f,a.keys(g[e])))},{});return h}function h(a,b){var c=a.getSiteAspect("animationsAspect");c.stopAndClearAnimations(b)}function i(b,e,g,h){var i=b.getSiteAspect("behaviorsAspect");a.forEach(h,function(b){var h=a.get(g,["background",c[b.part]],{});var j=a.get(d,[b.name,"defaults","params"]);i.handleBehavior(f(e,b,j,h),{group:e})})}function j(b,c){var d=[];a.forEach(a.filter(b.behaviors,{trigger:"out"}),function(a){d.push(a)});a.forEach(a.filter(c.behaviors,{trigger:"in"}),function(b){if(!a.find(d,a.pick(b,["type","part","name"]))){d.push(b)}});return d}function k(a,b,c,d){var f=a.getSiteData().getFocusedRootId();var k=e(a,f,b);var l=c||{};var m=j(c,d);h(a,b);i(a,b,d,m);k.setState({transforms:g(l,m)})}function l(a,b,c,d){if(!(c.behaviors||d.behaviors)){return}k(a,b,c,d)}return{handle:l}});define("core/components/siteAspects/DesignDataChangeAspect",["lodash","core/components/designDataChangeHandlers/designDataChangeBgBehaviorsHandler"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this._registeredHandlers={};this.registerHandler("designDataChangeBgBehaviorsHandler",b.handle)}c.prototype={registerHandler:function(a,b){this._registeredHandlers[a]=b},unregisterHandler:function(b){this._registeredHandlers=a.omit(this._registeredHandlers,b)},notify:function(a,b,c){this.propagate(a,b,c)},propagate:function(b,c,d){a.forEach(this._registeredHandlers,function(a){a(this._aspectSiteAPI.getSiteAPI(),b,c,d)},this)}};return c});define("core/components/siteAspects/loginToWixAspect",["react","lodash","utils","core/core/siteAspectsRegistry","core/bi/events"],function(a,b,c,d,e){"use strict";var f={postLogin:"http://www.wix.com/my-account",postSignUp:"http://www.wix.com/new/account"};var g=c.wixUserApi;var h=c.scrollAnchors;function i(a,d){d=b.assign(d||{},{renderMode:"iframe"});var e=c.urlUtils.toQueryString(d);return"//"+a.currentUrl.host+"/signin?"+e}function j(a,b){if(!a){return null}var c=window.pageYOffset+a.getBoundingClientRect().top;var d=h.getActiveAnchor(b,c);var e=a;while(e&&!e.id){e=e.parentNode}return{activeFold:d.index,totalFolds:d.total,text:a.textContent||e.alt||"",componentId:e?e.id:undefined}}function k(){if(!this.iframeFactory){var b=this.queryParams;var c=a.createClass({displayName:"LoginToWixIframe",render:function(){return a.DOM.iframe({src:i(this.props.siteData,b),ref:"iframe",style:{position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",display:"block",zIndex:1e4}})}});this.iframeFactory=a.createFactory(c)}return this.iframeFactory}function l(){var a=this.aspectSiteApi.getSiteAPI().getSiteData();var b=k.call(this);return b({siteData:a,displayForm:this.isLoginToWixShown})}function m(){if(b.isUndefined(this.isWixSite)){this.isWixSite=this.aspectSiteApi.getSiteAPI().getSiteData().isWixSite()}return this.isWixSite}function n(a){this.aspectSiteApi=a;this.isLoginToWixShown=false;this.registeredToMessage=false;this.iframeFactory=null}n.prototype={getReactComponents:function(){if(this.isLoginToWixShown&&m.call(this)){return[l.call(this)]}return null},isLoggedInToWix:function(){var a=this.aspectSiteApi.getSiteAPI().getSiteData();return g.isSessionValid(a.requestModel.cookie)},logout:function(){var a=this.aspectSiteApi.getSiteAPI().getSiteData();g.logout(a);this.aspectSiteApi.forceUpdate()},openLoginToWixForm:function(a,d,g){if(this.isLoginToWixShown){return}this.isWixSite=true;if(!this.registeredToMessage){this.aspectSiteApi.registerToMessage(this.handlePostMessage.bind(this));this.registeredToMessage=true}var h=c.urlUtils.parseUrl(a).query;this.queryParams=d?h:null;this.postLoginUrl=h.postLogin||f.postLogin;this.postSignupUrl=h.postSignUp||f.postSignUp;var i=this.aspectSiteApi.getSiteAPI().getSiteData();var k=j(g,i);if(k){var l=a.indexOf("?");var m={targetUrl:l!==-1?a.substring(0,l):a};b.assign(m,b.pick(h,["postLogin","postSignUp","loginCompName"]),k);this.aspectSiteApi.reportBI(e.LP_BUTTON_CLICK,m)}this.isLoginToWixShown=true;this.aspectSiteApi.scrollSiteTo(0,0);this.aspectSiteApi.forceUpdate()},handlePostMessage:function(a){a=a.data?a:a.originalEvent;var b=this.aspectSiteApi;switch(a.data){case"onLoad":break;case"onPostLogin":window.location.href=this.postLoginUrl;break;case"onPostSignUp":window.location.href=this.postSignupUrl;break;case"onClose":this.isLoginToWixShown=false;setTimeout(function(){b.forceUpdate()},1e3);break;default:break}}};d.registerSiteAspect("LoginToWix",n);return n});define("core/components/siteAspects/parentFrameAspect",["core/core/siteAspectsRegistry","lodash"],function(a,b){"use strict";function c(){var a=this.aspectSiteApi.getSiteAPI().getSiteData().measureMap;var c=b.get(a,"height.masterPage",0);if(!c||c===this.storedHeight){return}this.storedHeight=c;var d;if(window.parent.postMessage){d=window.parent}else if(window.parent.document.postMessage){d=window.parent.document}if(d&&typeof d!=="undefined"){d.postMessage(c,"*")}}function d(a){this.aspectSiteApi=a;this.storedHeight=0;a.registerToDidLayout(c.bind(this))}a.registerSiteAspect("parentFrame",d);return d});define("core/components/siteAspects/vkPostMessageAspect",["core/core/siteAspectsRegistry","lodash"],function(a,b){"use strict";function c(a){var b;try{b=JSON.parse(a.data)}catch(a){return}d.call(this,b.id,b)}function d(a,c){b.forEach(this._registeredCompIds,function(b){if(a===b){var d=this._siteAPI.getComponentById(b);if(!d){delete this._registeredCompIds[b];return}if(d.onVKPostMessage){d.onVKPostMessage(c)}}},this)}var e=function(a){a.registerToMessage(c.bind(this));this._siteAPI=a;this._registeredCompIds={}};e.prototype={registerToPostMessage:function(a){this._registeredCompIds[a.props.id]=a.props.id},unRegisterToPostMessage:function(a){delete this._registeredCompIds[a.props.id]}};a.registerSiteAspect("vkPostMessage",e)});define("core/components/siteAspects/packagePickerAspect",["core/core/siteAspectsRegistry","utils"],function(a,b){"use strict";function c(a){var b=document.getElementsByTagName("iframe");var c=0;var d=b.length;for(;c/sdk.js#xfbml=1&appId=<%= appId %>&version=<%= sdkVersion %>");function i(a){this.siteAPI=a;this.loadedScripts={}}i.prototype={getReactComponents:function(){return c.map(this.loadedScripts,this.getNewScript,this)},loadScript:function(a,b,d){var e=this.loadedScripts[a];var f;var g;if(b){f={callback:b,context:d}}if(e&&f){e.callbacks.push(f)}else{g=this.getScriptDescription.apply(this,arguments);if(c.isFunction(g.actionBefore)){g.actionBefore()}this.loadedScripts[a]={script:g,callbacks:f?[f]:[]}}},unsubscribe:function(a,b){var c=this.loadedScripts[a];var d;if(c){d=c.callbacks;d.some(function(a,c){var e=a.callback===b;if(e){d.splice(c,1);return e}})}},getNewScript:function(b,c){return a.createElement(e,{key:c,ref:c,scriptData:b})},getScriptDescription:function(a,c,d){if(a==="FACEBOOK"){return{NAME:"FacebookSDK",SRC:h({lang:this.getFacebookSdkLanguage(d.props.siteData),sdkVersion:f,appId:g})}}if(a==="GOOGLE"){return{NAME:"GoogleApi",SRC:"//apis.google.com/js/plusone.js",actionBefore:function(){var a=d.props.siteData;window.___gcfg={lang:b.wixUserApi.getLanguage(a.requestModel.cookie,a.currentUrl)}}}}},getFacebookSdkLanguage:function(a){var c={en:"en_US",es:"es_ES",pt:"pt_BR",ru:"ru_RU",fr:"fr_FR",de:"de_DE",ja:"ja_JP",ko:"ko_KR",it:"it_IT",pl:"pl_PL",tr:"tr_TR",nl:"nl_NL",sv:"sv_SE",da:"da_DK",no:"nn_NO"};return c[b.wixUserApi.getLanguage(a.requestModel.cookie,a.currentUrl)]||c.en}};d.registerSiteAspect("externalScriptLoader",i)});define("core/core/SiteMembersAPI",["utils","lodash"],function(a,b){"use strict";var c,d,e,f;var g={POST:"POST",GET:"GET"};var h={login:"/api/member/login",register:"/api/member/register",apply:"/api/member/apply",sendForgotPasswordMail:"/api/member/sendForgotPasswordMail",resetMemberPassword:"/api/member/changePasswordWithMailToken",getMemberDetails:"/api/member",handleOauthToken:"/api/social/token/handle"};var i={};i.initializeData=function(a){f=a.getMetaSiteId();var b=a.getClientSpecMapEntriesByType("sitemembers")[0];d=b&&b.smcollectionId;e=a.serviceTopology.siteMembersUrl;c=a.currentUrl.full};function j(b,c,g,i,j){var l=a.ajaxLibrary;var m="?"+a.urlUtils.toQueryString({collectionId:d,metaSiteId:f});var n=e+h.handleOauthToken+m;var o={svSession:g,token:i,provider:j};var p=k(b,c);l.ajax({type:"POST",url:n,data:o,dataType:"json",jsonp:false,success:p,error:c})}function k(a,b){return function(a,b,c){if(c&&!c.errorCode){a(c)}else{b(c.errorCode)}}.bind(this,a,b)}function l(g,h,i,j,k,l,m){var n=a.ajaxLibrary;var o=e+g;h=b.merge(h||{},{collectionId:d,metaSiteId:f});var p={url:o,type:i,data:h,context:this};if(l){b.merge(p.data,{svSession:l,appUrl:c});if(m){p.data.initiator=m}}b.assign(p.data,{accept:"json"});b.assign(p,{success:function a(b){if(b&&!b.errorCode){j(b)}else{k(b.errorCode)}},error:k});n.get(p)}i.login=function(a,b,c,d,e){l.call(this,h.login,a,g.POST,b,c,d,e)};i.register=function(a,b,c,d,e){l.call(this,h.register,a,g.POST,b,c,d,e)};i.apply=function(a,b,c,d,e){l.call(this,h.apply,a,g.POST,b,c,d,e)};i.sendForgotPasswordMail=function(a,b,c,d){l.call(this,h.sendForgotPasswordMail,{email:a,returnUrl:b},g.POST,c,d)};i.resetMemberPassword=function(a,b,c){l.call(this,h.resetMemberPassword,a,g.POST,b,c)};i.getMemberDetails=function(a,b,c){l.call(this,h.getMemberDetails+"/"+a,null,g.GET,b,c)};i.handleOauthToken=function(a,b,c,d,e){j.call(this,a,b,c,d,e)};return i});define("core/util/translations/siteMembersTranslations",[],{de:{SMResetPass_Reset_Succ:"Sie haben Ihr Passwort erfolgreich zurückgesetzt.",SMResetPassMail_confirmation_title:"Bitte prüfen Sie Ihren Posteingang.",SMResetPassMail_confirmation_msg:"Wir haben Ihnen eine E-Mail mit einem Link geschickt, mit dem Sie Ihr Passwort zurücksetzen können.",siteMembersTranslations_Reset_Password_Sucess_Title:"Ihr Passwort wurde geändert.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Sie sind der Besitzer dieser Website und bei Wix.com angemeldet. Bitte melden Sie sich bei Wix.com ab, um die Mitgliederanmeldung zu testen.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Bitte überprüfen Sie Ihren Posteingang",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Beim Abmelden ist etwas schiefgelaufen. Bitte versuchen Sie es noch einmal.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Abmelden nicht erfolgreich",SMApply_Success1:"Vielen Dank! Ihre Anfrage zur Mitgliederanmeldung wurde versandt und wartet auf Bestätigung.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Wir haben Ihnen einen Link per E-Mail geschickt, mit dem Sie Ihr Passwort zurücksetzen können.",SMApply_Success2:"Der Administrator der Website wird Sie per E-Mail informieren ( {0} ), sobald Ihre Anfrage bestätigt wurde. ",SMContainer_OK:"OK",SMResetPass_Continue:"Fortfahren",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Fehler beim Abmelden"},en:{SMApply_Success2:"The site administrator will notify you via email( {0} ) once your request has been approved ",SMApply_Success1:"Success! Your member login request has been sent and is awaiting approval.",SMContainer_OK:"OK",SMResetPassMail_confirmation_title:"Please check your email",SMResetPassMail_confirmation_msg:"We’ve sent you an email with a link that will allow you to reset your password",SMResetPass_Reset_Succ:"You’ve successfully reset your password.",SMResetPass_Continue:"Continue",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Something went wrong with that logout. Please give it another go.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Logout Unsuccessful",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"You are the owner of this website, and are logged in on Wix.com. Please log out of Wix.com to test the Site Members feature.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Logout failure",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Please Check Your Email",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"We’ve emailed you a link to reset your password.",siteMembersTranslations_Reset_Password_Sucess_Title:"Your password has been changed."},es:{SMResetPass_Reset_Succ:"¡Has restablecido tu contraseña exitosamente!",SMResetPassMail_confirmation_title:"Por favor revisa tu correo",SMResetPassMail_confirmation_msg:"Te hemos enviado un email con un enlace que te permitirá restablecer tu contraseña.",siteMembersTranslations_Reset_Password_Sucess_Title:"Tu contraseña ha cambiado.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Tú eres el dueño de esta página web e iniciaste sesión con Wix.com. Por favor cierra tu sesión en Wix.com para que puedas probar la función Miembros del Sitio.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Por favor revisa tu correo",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Algo falló en el cierre de sesión. Por favor inténtalo de nuevo.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"No se pudo cerrar sesión",SMApply_Success1:"¡Enhorabuena! Tu solicitud de login de miembros fue enviada y su aprobación está pendiente.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Te hemos enviado un email con un enlace para restablecer tu contraseña.",SMApply_Success2:"El administrador de la página web te notificará a través de un email ({0}) una vez que tu solicitud sea aprobada. ",SMContainer_OK:"OK",SMResetPass_Continue:"Continuar",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"El cierre de sesión falló"},fr:{SMResetPass_Reset_Succ:"Vous avez réinitialisé votre mot de passe avec succès",SMResetPassMail_confirmation_title:"Veuillez consulter votre boîte e-mail",SMResetPassMail_confirmation_msg:"Un email avec un lien pour réinitialiser votre mot de passe vous a été envoyé",siteMembersTranslations_Reset_Password_Sucess_Title:"Votre mot de passe a été modifié.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Vous êtes le propriétaire de ce site internet et vous êtes connecté à Wix.com. Veuillez vous déconnecter de Wix.com afin de tester la fonctionnalité Membres du Site.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Veuillez vérifier dans votre boîte e-mail", SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Un problème est survenu lors de la déconnexion. Veuillez réessayer.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Échec Déconnexion",SMApply_Success1:"Bravo ! Votre demande de connexion membre a été envoyée et est actuellement en attente d'approbation.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Nous vous avons envoyé un lien pour réinitialiser votre mot de passe.",SMApply_Success2:"L'administrateur du site vous informera par email ({0}) lorsque votre demande aura été approuvée. ",SMContainer_OK:"OK",SMResetPass_Continue:"Continuer",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Échec déconnexion"},it:{SMResetPass_Reset_Succ:"Hai ripristinato con successo la tua password.",SMResetPassMail_confirmation_title:"Ti preghiamo di controllare la tua email",SMResetPassMail_confirmation_msg:"Ti abbiamo inviato un'email con un link che ti permetterà di ripristinare la tua password",siteMembersTranslations_Reset_Password_Sucess_Title:"La tua password è stata cambiata.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Sei il proprietario di questo sito web e hai effettuato l'accesso a Wix.com. Esci da Wix.com per testare la funzionalità Membri del Sito.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Controlla la tua Mail",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Qualcosa è andato storto durante il logout. Ti preghiamo di riprovare.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Logout Non Riuscito",SMApply_Success1:"Successo! La tua richiesta di login membro è stata inviata ed è in attesa di approvazione.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Ti abbiamo inviato una mail con il link per reimpostare la tua password.",SMApply_Success2:"L'amministratore del sito ti notificherà via email( {0} ) una volta che la tua richiesta è stata accettata ",SMContainer_OK:"OK",SMResetPass_Continue:"Continua",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Fallimento Logout"},ja:{SMResetPass_Reset_Succ:"パスワードがリセットされました!",SMResetPassMail_confirmation_title:"新着メールをご確認ください",SMResetPassMail_confirmation_msg:"メールのリンクをクリックしてパスワードをリセットしてください。",siteMembersTranslations_Reset_Password_Sucess_Title:"パスワードが変更されました",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"あなたはサイト所有者として Wix.com にログインしています。サイト会員機能をテストするには、Wix.com からログアウトしてください。",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"メールをご確認ください",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"ログアウトできませんでした。もう一度お試しください。",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"ログアウトできませんでした",SMApply_Success1:"会員登録の申請を送信しました。",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"パスワード再設定用のリンクをお送りしました。",SMApply_Success2:"会員登録の承認後、サイト管理者から「{0}」に通知メールが送信されます。 ",SMContainer_OK:"OK",SMResetPass_Continue:"続行",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"ログアウトできませんでした"},ko:{SMResetPass_Reset_Succ:"비밀번호가 성공적으로 변경되었습니다.",SMResetPassMail_confirmation_title:"이메일을 확인해 주세요.",SMResetPassMail_confirmation_msg:"비밀번호 재설정 링크가 이메일로 발송되었습니다.",siteMembersTranslations_Reset_Password_Sucess_Title:"비밀번호 재설정 완료!",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"사용자님은 이 사이트 소유자이며 Wix.com에 로그인되어 있습니다. 사이트 회원 기능을 테스트하려면 Wix.com에서 로그아웃해 주세요.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"이메일을 확인하세요!",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"로그아웃에 문제가 발생했습니다. 다시 시도해 주세요.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"로그아웃에 실패했습니다.",SMApply_Success1:"성공적으로 회원가입 요청이 이루어졌습니다! 현재 회원가입 승인을 기다리고 있습니다.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"비밀번호 재설정 링크를 이메일로 발송했습니다.",SMApply_Success2:"회원가입이 승인되면 이메일로 알려드립니다. ",SMContainer_OK:"확인",SMResetPass_Continue:"계속",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"로그아웃 실패"},pl:{SMResetPass_Reset_Succ:"Zresetowanie hasła powiodło się.",SMResetPassMail_confirmation_title:"Sprawdź swój email",SMResetPassMail_confirmation_msg:"Wysłaliśmy email z linkiem, który umożliwi Ci zresetowanie hasła.",siteMembersTranslations_Reset_Password_Sucess_Title:"Twoje hasło zostało zmienione.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Jesteś właścicielem tej witryny i jesteś obecnie zalogowany na Wix.com. Wyloguj się z Wix.com, aby przetestować funkcję Login Członka.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Sprawdź Swój Email",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Coś poszło nie tak przy próbie wylogowania. Spróbuj jeszcze raz.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Wylogowanie Nie Powiodło Się",SMApply_Success1:"Gratulujemy! Twoja prośba o członkostwo została wysłana i czeka na zatwierdzenie.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Wysłaliśmy email z linkiem, który umożliwi ci zresetowanie hasła.",SMApply_Success2:"Administrator powiadomi Cię w emailu,( {0} ) gdy twoja prośba zostanie zatwierdzona. ",SMContainer_OK:"OK",SMResetPass_Continue:"Kontynuuj",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Wylogowanie nie powiodło się"},ru:{SMResetPass_Reset_Succ:"Вы успешно сменили пароль.",SMResetPassMail_confirmation_title:"Пожалуйста, проверьте ваш email",SMResetPassMail_confirmation_msg:"Мы отправили вам ссылку для смены пароля.",siteMembersTranslations_Reset_Password_Sucess_Title:"Пароль успешно изменен.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Чтобы протестировать эту функцию, пожалуйста, выйдите из аккаунта Wix.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Пожалуйста, проверьте ваш email",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Что-то не срослось. Пожалуйста, попробуйте еще раз.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Не получилось выйти",SMApply_Success1:"Отлично! Ваш запрос регистрации отправлен на подтверждение.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Отправили вам ссылку для смены пароля.",SMApply_Success2:"Как только ваш запрос будет подтвержден, администратор сайта отправит вам письмо на {0} ",SMContainer_OK:"OK",SMResetPass_Continue:"Продолжить",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Не удалось выйти"},nl:{SMResetPass_Reset_Succ:"U hebt uw wachtwoord opnieuw ingesteld.",SMResetPassMail_confirmation_title:"Controleer uw e-mailberichten",SMResetPassMail_confirmation_msg:"We hebben u een e-mailbericht gestuurd met een link waarmee u uw wachtwoord opnieuw kunt instellen",siteMembersTranslations_Reset_Password_Sucess_Title:"Uw wachtwoord is gewijzigd.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"U bent de eigenaar van deze website en u bent al ingelogd op Wix.com. Log uit om de functies voor leden van uw website te testen.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Controleer uw e-mailberichten",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Er ging iets fout bij het uitloggen. Probeer het opnieuw.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Uitloggen mislukt",SMApply_Success1:"Uw verzoek om toegang is verzonden en wacht op goedkeuring.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"We hebben u een e-mailbericht gestuurd met een link waarmee u uw wachtwoord opnieuw kunt instellen.",SMApply_Success2:"De administrator van de website zal u een e-mailbericht ( {0} ) sturen zodra uw verzoek is goedgekeurd ",SMContainer_OK:"OK",SMResetPass_Continue:"Doorgaan",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Uitloggen mislukt"},tr:{SMResetPass_Reset_Succ:"Şifrenizi yeniden ayarlama başarılı.",SMResetPassMail_confirmation_title:"Lütfen e-postanızı kontrol edin",SMResetPassMail_confirmation_msg:"Size şifrenizi sıfırlamanızı sağlayacak bir bağlantı içeren bir e-posta gönderdik.",siteMembersTranslations_Reset_Password_Sucess_Title:"Şifreniz değiştirildi.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Bu web sitesinin sahibisiniz ve Wix.com'daki oturumuz açık. Lütfen Site Üyelik özelliğini test etmek için Wix.com oturumunuzu kapatın.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Lütfen E-Postanızı Kontrol Edin",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Bu oturum kapatma işlemiyle ilgili bir hata oluştu. Lütfen daha sonra deneyin.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Oturum Kapatma Başarısız",SMApply_Success1:"Başarılı! Üye girişi talebiniz gönderildi ve onay bekliyor.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Sifrenizi yenilemeniz için size bir e-posta gönderdik.",SMApply_Success2:"Talebiniz onaylandığında site yöneticisi size e-posta( {0} ) yoluyla bildirecektir ",SMContainer_OK:"TAMAM",SMResetPass_Continue:"Devam",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Oturum Kapatma Hatası"},sv:{SMResetPass_Reset_Succ:"Du har återställt ditt lösenord.",SMResetPassMail_confirmation_title:"Kontrollera din e-post",SMResetPassMail_confirmation_msg:"Vi har skickat ett mejl med en länk som gör att du kan återställa ditt lösenord",siteMembersTranslations_Reset_Password_Sucess_Title:"Ditt lösenord har ändrats.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Du äger den här hemsidan och är inloggad på Wix.com. Logga ut från Wix.com för att testa funktionen sidmedlemmar.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Vänligen kontrollera din e-post",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Något gick fel vid utloggningen. Försök igen.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Kunde inte logga ut",SMApply_Success1:"Klart! Din begäran om medlemsinloggning har skickats och väntar på godkännande.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Vi har skickat ett mejl med en länk som gör att du kan återställa ditt lösenord.",SMApply_Success2:"Sidans administratör meddelar dig via e-post ({0}) så fort din begäran har godkänts ",SMContainer_OK:"OK",SMResetPass_Continue:"Fortsätt",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Kunde inte logga ut"},pt:{SMResetPass_Reset_Succ:"Você redefiniu sua senha com sucesso.",SMResetPassMail_confirmation_title:"Por favor, verifique seu email",SMResetPassMail_confirmation_msg:"Enviamos um e-mail com um link que lhe permitirá redefinir sua senha",siteMembersTranslations_Reset_Password_Sucess_Title:"Sua senha foi alterada.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Você é o proprietário deste site, e fez login em Wix.com. Por favor, faça logout do Wix.com para testar o recurso de Membros do Site.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Por favor, verifique seu email.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Algo deu errado com este logout. Por favor, tente novamente.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Falha no Logout",SMApply_Success1:"Seu pedido de login foi enviado com sucesso e aguarda aprovação.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Enviamos um email com o link para redefinir sua senha. ",SMApply_Success2:"O administrador do site irá enviar-lhe uma notificação via email( {0} ) assim que o pedido for aprovado ",SMContainer_OK:"OK",SMResetPass_Continue:"Continuar",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Falha no logout"},no:{SMResetPass_Reset_Succ:"Du har nå tilbakestillt passordet.",SMResetPassMail_confirmation_title:"Vennligst sjekk e-posten din",SMResetPassMail_confirmation_msg:"Vi har sendt deg en e-post med en link som vil tillate deg å nullstille passordet ditt",siteMembersTranslations_Reset_Password_Sucess_Title:"Passordet ditt har blitt endret.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Du er eier av dette nettstedet, og er logget inn på Wix.com. Logg ut av Wix.com for å teste nettstedets medlemmer-funksjonen.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Vennligst sjekk e-posten din",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Noe gikk galt ved utlogging. Gi det et nytt forsøk.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Mislykket utlogging",SMApply_Success1:"Supert! Din forespørsel om medlemsinnlogging er sendt og venter på godkjenning.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Vi har sendt deg en link for å tilbakestille passordet ditt.",SMApply_Success2:"Nettstedets administrator vil varsle deg via e-post( {0} ) med en gang forespørselen din har blitt godkjent ",SMContainer_OK:"OK",SMResetPass_Continue:"Fortsett",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Feil ved utlogging"},da:{SMResetPass_Reset_Succ:"Du har med succes nulstillet din adgangskode.",SMResetPassMail_confirmation_title:"Tjek venligst dine e-mails",SMResetPassMail_confirmation_msg:"Vi har sendt dig en e-mail med et link, som giver dig mulighed for at nulstille din adgangskode",siteMembersTranslations_Reset_Password_Sucess_Title:"Din adgangskode er blevet ændret.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"Du er ejeren af denne hjemmeside, og er logget ind på Wix.com. Venligst log ud af Wix.com for at teste funktionen for hjemmesidemedlemmer.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Kontroller venligst din e-mail",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Noget gik galt ved dit log ud. Prøv venligst igen.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Log ud mislykkedes",SMApply_Success1:"Succes! Din anmodning om medlemslogin er sendt og afventer godkendelse.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"Vi har sendt en link til dig via e-mail for at nulstille adgangskoden.",SMApply_Success2:"Hjemmesideadministratoren vil give dig besked via e-mail( {0} ) når din anmodning er blevet godkendt. ",SMContainer_OK:"OK",SMResetPass_Continue:"Næste",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Fejl ved log ud"},hi:{SMResetPass_Reset_Succ:"You’ve successfully reset your password.",SMResetPassMail_confirmation_title:"कृपया अपनी ई-मेल देखें",SMResetPassMail_confirmation_msg:"हमने आपको ई-मेल से एक लिंक भेजी है जिसके द्वारा आप अपना पासवर्ड दुबारा सेट कर सकेंगे",siteMembersTranslations_Reset_Password_Sucess_Title:"Your password has been changed.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"You are the owner of this website, and are logged in on Wix.com. Please log out of Wix.com to test the Site Members feature.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Please Check Your Email",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Something went wrong with that logout. Please give it another go.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Logout Unsuccessful",SMApply_Success1:"Success! Your member login request has been sent and is awaiting approval.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"We’ve emailed you a link to reset your password.",SMApply_Success2:"The site administrator will notify you via email( {0} ) once your request has been approved ",SMContainer_OK:"OK",SMResetPass_Continue:"Continue",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Logout failure"},zh:{SMResetPass_Reset_Succ:"You’ve successfully reset your password.",SMResetPassMail_confirmation_title:"请查看您的电子邮件",SMResetPassMail_confirmation_msg:"我们已向您发送一封包含链接的电子邮件,供您重置密码。",siteMembersTranslations_Reset_Password_Sucess_Title:"Your password has been changed.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"You are the owner of this website, and are logged in on Wix.com. Please log out of Wix.com to test the Site Members feature.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Please Check Your Email",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Something went wrong with that logout. Please give it another go.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Logout Unsuccessful",SMApply_Success1:"Success! Your member login request has been sent and is awaiting approval.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"We’ve emailed you a link to reset your password.",SMApply_Success2:"The site administrator will notify you via email( {0} ) once your request has been approved ",SMContainer_OK:"OK",SMResetPass_Continue:"Continue",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Logout failure"},cs:{SMResetPass_Reset_Succ:"You’ve successfully reset your password.",SMResetPassMail_confirmation_title:"Please check your email",SMResetPassMail_confirmation_msg:"We’ve sent you an email with a link that will allow you to reset your password",siteMembersTranslations_Reset_Password_Sucess_Title:"Your password has been changed.",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE:"You are the owner of this website, and are logged in on Wix.com. Please log out of Wix.com to test the Site Members feature.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE:"Please Check Your Email",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_IN_PROGRESS:"Something went wrong with that logout. Please give it another go.",SITEMEMBERMANGAGER_LOGOUT_MESSAGES_TITLE:"Logout Unsuccessful",SMApply_Success1:"Success! Your member login request has been sent and is awaiting approval.",siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT:"We’ve emailed you a link to reset your password.",SMApply_Success2:"The site administrator will notify you via email( {0} ) once your request has been approved ",SMContainer_OK:"OK",SMResetPass_Continue:"Continue",SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE:"Logout failure"}});define("core/siteRender/SiteMembersAspect",["lodash","santaProps","utils","core/core/siteAspectsRegistry","core/siteRender/compFactory","core/core/SiteMembersAPI","core/bi/events","core/util/translations/siteMembersTranslations","experiment"],function(a,b,c,d,e,f,g,h,i){"use strict";var j=c.hashUtils;var k=c.cookieUtils;var l=b.componentPropsBuilder;var m=i.isOpen("newLoginScreens")||i.isOpen("smSocialLogin");var n=i.isOpen("smSocialLogin");var o={Login:"login",SignUp:"register",ResetPasswordEmail:"resetPasswordEmail",ResetPasswordNewPassword:"resetPasswordNewPassword",Notification:"notification",Credits:"credits",PasswordProtected:"enterPassword"};var p={SiteOwner:"siteowner",SignUp:"register",ResetPasswordEmail:"resetPasswordEmail",ResetPasswordNewPassword:"resetPasswordNewPassword"};var q={SV_SESSION:"svSession",SM_SESSION:"smSession",WIX_CLIENT:"wixClient"};function r(a,b,c){return{componentType:a,type:"Component",id:b,key:b,skin:c}}function s(){return r("wysiwyg.viewer.components.dialogs.CreditsDialog","creditsDialog","wysiwyg.viewer.skins.dialogs.creditsDialogSkin")}function t(){return r("wysiwyg.viewer.components.dialogs.NotificationDialog","notificationDialog",z())}function u(a){return r("wysiwyg.viewer.components.dialogs.siteMemberDialogs.MemberLoginDialog","memberLoginDialog",A(a))}function v(a){return r("wysiwyg.viewer.components.dialogs.siteMemberDialogs.SignUpDialog","signUpDialog",B(a))}function w(){return r("wysiwyg.viewer.components.dialogs.siteMemberDialogs.RequestPasswordResetDialog","requestResetPasswordDialog",C())}function x(){return r("wysiwyg.viewer.components.dialogs.siteMemberDialogs.ResetPasswordDialog","resetPasswordDialog",D())}function y(){return r("wysiwyg.viewer.components.dialogs.EnterPasswordDialog","enterPasswordDialog",E())}function z(){return F("wysiwyg.viewer.skins.dialogs.notificationDialogSkin","wysiwyg.viewer.skins.dialogs.notificationDialogSkinNew")}function A(a){return G("wysiwyg.viewer.skins.dialogs.siteMembersDialogs.memberLoginDialogSkin","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.memberLoginDialogSkinNew","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.memberLoginDialogSkinSocialMobile",a)}function B(a){return G("wysiwyg.viewer.skins.dialogs.siteMembersDialogs.signUpDialogSkin","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.signUpDialogSkinNew","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.signUpDialogSkinSocialMobile",a)}function C(){return F("wysiwyg.viewer.skins.dialogs.siteMembersDialogs.requestPasswordResetDialogSkin","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.requestPasswordResetDialogSkinNew")}function D(){return F("wysiwyg.viewer.skins.dialogs.siteMembersDialogs.resetPasswordDialogSkin","wysiwyg.viewer.skins.dialogs.siteMembersDialogs.resetPasswordDialogSkinNew")}function E(){return F("wysiwyg.viewer.skins.dialogs.enterPasswordDialogSkin","wysiwyg.viewer.skins.dialogs.enterPasswordDialogSkinNew")}function F(a,b){return m?b:a}function G(a,b,c,d){if(m){return n&&d?c:b}return a}function H(b,c){if(a.isBoolean(c)){return c?o.Login:o.SignUp}var d=b.getDataByQuery("masterPage");var e=a.get(d,["smSettings","smFirstDialogLogin"],false);return e?o.Login:o.SignUp}function I(a,b,c,d){var e=c();var f=K.call(this,e,a,b);d.call(this,f);return J.call(this,e,f)}function J(a,b){b.notClosable=this.notClosable;var c=e.getCompClass(a.componentType);return c(b)}function K(a,b,c){var d=l.getCompProps(a,b,null,c);var e=this.dialogToDisplay;d.language=oa[e]&&oa[e].language||oa[this.siteData.siteId].language;d.onCloseDialogCallback=ca.bind(this);return d}function L(b){b.onSubmitCallback=V.bind(this);var c=oa[o.SignUp]&&oa[o.SignUp].language||null;b.onTokenMessage=W.bind(this);b.onSwitchDialogLinkClick=T.bind(this,o.SignUp,a.noop,c);b.onForgetYourPasswordClick=T.bind(this,o.ResetPasswordEmail,a.noop,c);b.needLoginMessage=this._showDialogMessage}function M(b){b.onSubmitCallback=X.bind(this);var c=oa[o.SignUp]&&oa[o.SignUp].language||null;b.onTokenMessage=W.bind(this);b.onSwitchDialogLinkClick=T.bind(this,o.Login,a.noop,c);b.needLoginMessage=this._showDialogMessage;b.sendClick=ia.bind(this)}function N(b){var c=oa[o.SignUp]&&oa[o.SignUp].language||null;b.onSwitchDialogLinkClick=T.bind(this,o.Login,a.noop,c);b.onSubmitCallback=Y.bind(this)}function O(a,b,c){var d=l.getCompProps(a,b,null,c);d.onSubmitCallback=$.bind(this);d.notClosable=true;return J.call(this,a,d)}function P(a){var b=a.language;switch(this.notifcationToDisplay){case o.SignUp:var c=oa[this.siteData.siteId].siteMember;var d=c.details.email;a.title="";a.description=va(b,"SMApply_Success1")+" "+va(b,"SMApply_Success2").replace("{0}",d);a.buttonText=va(b,"SMContainer_OK");break;case o.ResetPasswordEmail:a.title=va(b,m?"siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE":"SMResetPassMail_confirmation_title");a.description=va(b,m?"siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT":"SMResetPassMail_confirmation_msg");a.buttonText=va(b,"SMContainer_OK");break;case o.ResetPasswordNewPassword:a.title=va(b,m?"siteMembersTranslations_Reset_Password_Sucess_Title":"SMResetPass_Reset_Succ");a.description="";a.buttonText=va(b,m?"SMContainer_OK":"SMResetPass_Continue");a.onButtonClick=T.bind(this,o.Login);break;case"siteowner":a.title=va(b,"SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_TITLE");a.description=va(b,"SITEMEMBERMANGAGER_OWNER_LOGOUT_ACTION_MESSAGE");a.buttonText=va(b,"SMContainer_OK");break;default:break}}function Q(a){a.onSubmitCallback=this.handlePasswordEntered.bind(this,this.nextPageInfo)}function R(a){return j.SHA256.b64_sha256(a)}function S(a,b){var c=a.cookieName||q.SM_SESSION;var d=a.sessionToken;var e=a.rememberMe?a.expirationDate:0;k.setCookie(c,d,e,b.currentUrl.hostname,b.getMainPagePath(),false)}function T(a,b,c){if(b){this.dialogProcessSuccessCallback=b}if(c){oa[a]={language:c}}this.dialogToDisplay=a;this.aspectSiteApi.forceUpdate()}function U(a,b){this.notifcationToDisplay=a;this.dialogToDisplay=o.Notification;if(b){oa[o.Notification]={language:b}}this.aspectSiteApi.forceUpdate()}function V(a,b){delete this.dialogToDisplay;var c=k.getCookie(q.SV_SESSION);var d=null;f.login(a,ea.bind(this,b),b.setErrorMessageByCode,c,d)}function W(a,b,c,d){delete this.dialogToDisplay;var e=k.getCookie(q.SV_SESSION);f.handleOauthToken(ga.bind(this,d,c,b),ha.bind(this,d,c,b),e,a,b)}function X(b,c){var d=this.siteData.rendererModel.clientSpecMap;var e=a.find(d,{type:"sitemembers"});var g=e.collectionType;if(g==="Open"){f.register(b,ja.bind(this,c),c.setErrorMessageByCode)}else if(g==="ApplyForMembership"){f.apply(b,la.bind(this,c.props.language),c.setErrorMessageByCode)}}function Y(a,b){var c=this.siteData.currentUrl.full;f.sendForgotPasswordMail(a.email,c,U.bind(this,p.ResetPasswordEmail,b.props.language),b.setErrorMessageByCode)}function Z(){delete this.siteData.currentUrl.query.forgotPasswordToken;U.call(this,p.ResetPasswordNewPassword)}function $(a,b){f.resetMemberPassword(a,Z.bind(this),b.setErrorMessageByCode)}function _(b,c){return a.includes(b.rendererModel.passwordProtectedPages,c)}function aa(a,b,c){var d=a.getDataByQuery(b.pageId)&&a.getDataByQuery(b.pageId).pageSecurity;if(!d){return{isAllowed:true,defaultDialog:o.ResetPasswordNewPassword}}if(!qa(a,b.pageId)){if(d.passwordDigest){return{isAllowed:false,defaultDialog:o.PasswordProtected,pageSecurity:d}}if(_(a,b.pageId)){return{isAllowed:false,defaultDialog:o.PasswordProtected,pageSecurity:d}}}if(d.requireLogin&&!c){return{isAllowed:false,defaultDialog:H(a),pageSecurity:d}}return{isAllowed:true,defaultDialog:null}}function ba(b){if(a.has(this.siteData.currentUrl.query,"forgotPasswordToken")){return{isAllowed:aa(this.siteData,b,this.isLoggedIn()).isAllowed,defaultDialog:o.ResetPasswordNewPassword}}return aa(this.siteData,b,this.isLoggedIn())}function ca(a,b){this.currentDialog=null;this.dialogToDisplay=null;a.performCloseDialog(function(){this._showDialogMessage=false;a.toggleSocialLoginLoadingState();if(b){if(this.nextPageInfo){this.aspectSiteApi.navigateToPage(this.nextPageInfo)}else{this.aspectSiteApi.forceUpdate()}}else if(this.nextPageInfo&&this.nextPageInfo.pageId===this.siteData.getCurrentUrlPageId()){da.call(this);this.aspectSiteApi.navigateToPage({pageId:this.siteData.getMainPageId()})}else{this.aspectSiteApi.forceUpdate()}}.bind(this))}function da(){this.dontShowDialog=true}function ea(a,b){ka.call(this,a,b,g.SITE_MEMBER_LOGIN_SUCCESS)}function fa(a,b){a.postMessage({src:"wix-social-login",type:b,action:"revoke"},"*")}function ga(a,b,c,d){var e=d.payload.smSession;var f=d.payload.siteMemberDto;if(e){ka.call(this,a,{payload:e})}else{la.call(this,a.props.language,{payload:f})}fa(b,c)}function ha(a,b,c,d){a.setErrorMessageByCode(d);fa(b,c)}function ia(a,b){a.postMessage({src:"wix-social-login",type:b,action:"login"},"*")}function ja(a,b){ka.call(this,a,b)}function ka(b,c,d){S(c.payload,this.siteData);ma.call(this,function(){var e=oa[this.siteData.siteId].siteMember;e.details=c.payload.siteMemberDto;if(a.isFunction(this.dialogProcessSuccessCallback)){this.dialogProcessSuccessCallback(e.details);this.dialogProcessSuccessCallback=null}ca.call(this,b,true);if(d){this.aspectSiteApi.reportBI(d,{userName:e.details.attribute&&e.details.attribute.name||e.details.email})}}.bind(this))}function la(b,c){var d=oa[this.siteData.siteId].siteMember;d.details=c.payload;if(a.isFunction(this.dialogProcessSuccessCallback)){this.dialogProcessSuccessCallback(d.details);this.dialogProcessSuccessCallback=null}U.call(this,p.SignUp,b)}function ma(a){var b=this.aspectSiteApi.getSiteAspect("dynamicClientSpecMap");b.reloadClientSpecMap(a,true)}function na(a,b,c){this._showDialogMessage=true;this.nextPageInfo=a;if(c&&c.passwordDigest){this._passwordDigest=c.passwordDigest}this.dialogToDisplay=b;if(c){if(c.dialogLanguage){oa[b]={language:c.dialogLanguage}}oa[this.siteData.siteId].language="en"}}var oa={};function pa(a){oa[a.siteId]={approvedPasswordPages:[],siteMember:{details:null},language:"en"}}function qa(b,c){return a.includes(oa[b.siteId].approvedPasswordPages,c)}function ra(a){oa[this.siteData.siteId].approvedPasswordPages.push(a)}function sa(a,b,d,e){var f=this.siteData.serviceTopology.protectedPageResolverUrl;var g={password:a,metaSiteId:this.siteData.getMetaSiteId(),siteId:this.siteData.siteId,pageId:b.pageId};c.ajaxLibrary.ajax({type:"POST",url:f,data:g,dataType:"json",cache:false,contentType:"application/json",success:d,error:e})}function ta(a,b,c){var d=R(a);if(d===this._passwordDigest){b(this.nextPageInfo)}else{c()}}function ua(b){this.aspectSiteApi=b;this.siteData=b.getSiteData();this.dialogProcessSuccessCallback=null;pa(this.siteData);f.initializeData(this.siteData);this.dialogToDisplay=a.has(this.siteData.currentUrl.query,"forgotPasswordToken")?o.ResetPasswordNewPassword:null}ua.prototype={dialogToDisplay:null,notifcationToDisplay:null,nextPageInfo:null,_passwordDigest:null,_showDialogMessage:false,getComponentStructures:function(){var a=this.siteData.isMobileView();switch(this.dialogToDisplay){case o.Login:return[u(a)];case o.SignUp:return[v(a)];case o.ResetPasswordEmail:return[w()];case o.ResetPasswordNewPassword:return[x()];case o.Notification:return[t()];case o.Credits:return[s()];case o.PasswordProtected:return[y()];case o.AdminLogin:return[y()];default:return null}},getReactComponents:function(b){if(this.dontShowDialog){this.dontShowDialog=false;return null}var c=this.aspectSiteApi.getSiteAPI();var d=this.siteData.isMobileView();var e,f;switch(this.dialogToDisplay){case o.Login:e=L;f=u.bind(null,d);break;case o.SignUp:e=M;f=v.bind(null,d);break;case o.ResetPasswordEmail:e=N;f=w;break;case o.ResetPasswordNewPassword:var g=x();this.currentDialog=O.call(this,g,c,b);return this.currentDialog;case o.Notification:e=P.bind(this);f=t;break;case o.Credits:e=a.noop;f=s;break;case o.PasswordProtected:e=Q;f=y;break;default:break}this.currentDialog=f&&I.call(this,c,b,f,e);return this.currentDialog},isLoggedIn:function(){return!!this.siteData.getSMToken()},showAuthenticationDialog:function(a,b,c){T.call(this,H(this.siteData,c),a,b)},showCreditsDialog:function(){T.call(this,o.Credits)},getMemberDetails:function(a){var b=oa[this.siteData.siteId].siteMember;if(this.isLoggedIn()&&!b.details){f.getMemberDetails(this.siteData.getSMToken(),function(c){b.details=c.payload;if(a){a(b.details)}this.aspectSiteApi.forceUpdate()}.bind(this),function(){});return null}if(a){a(b.details)}return b.details},isPageAllowed:function(a){if(this.siteData.renderFlags.isPageProtectionEnabled){var b=ba.call(this,a);return b.isAllowed}return true},showDialogOnNextRender:function(a){var b=ba.call(this,a);if(!this.dialogToDisplay&&!b.isAllowed){this.notClosable=a.pageId===this.siteData.getCurrentUrlPageId()&&a.pageId===this.siteData.getMainPageId();na.call(this,a,b.defaultDialog,b.pageSecurity)}},logout:function(a){var b=oa[this.siteData.siteId].siteMember;if(k.getCookie(q.WIX_CLIENT)&&b.details&&b.details.owner){U.call(this,p.SiteOwner,a)}else{k.deleteCookie(q.SM_SESSION,this.siteData.currentUrl.hostname,this.siteData.getMainPagePath());k.deleteCookie(q.SV_SESSION,this.siteData.currentUrl.hostname,this.siteData.getMainPagePath());ma.call(this,function(){b.details=null;this.notifcationToDisplay=null;this.aspectSiteApi.forceUpdate()}.bind(this))}},forceCloseDialog:function(){da.call(this)},handlePasswordEntered:function(b,c,d){var e=function(){d.setErrorMessage("PasswordLogin_Wrong_Password")};var f=function(a){ca.call(this,d,true);ra.call(this,a.pageId);this.aspectSiteApi.navigateToPage(a);this._passwordDigest=null}.bind(this);if(a.isEmpty(c.password)){return d.setErrorMessage("PasswordLogin_Wrong_Password")}if(_(this.siteData,b.pageId)){sa.call(this,c.password,b,function(a){b.jsonUrls=a.payload.urls;f(b)},e)}else{ta.call(this,c.password,f,e)}}};d.registerSiteAspect("siteMembers",ua);function va(a,b){return h[a]?h[a][b]:h.en[b]}});define("core/components/siteAspects/windowFocusEventsAspect",["lodash","core/core/siteAspectsRegistry","utils"],function(a,b,c){"use strict";var d=c.stringUtils;var e=["focus","blur"];var f=function(a){this._aspectSiteAPI=a;this._registerToFocusEvents()};f.prototype={_registerToFocusEvents:function(){this._compsRegistry={};a.forEach(e,function(a){this._compsRegistry[a]={};this._aspectSiteAPI.registerToFocusEvents(a,this.propagateFocusEvent.bind(this,a))},this)},registerToFocusEvent:function(a,b){this._compsRegistry[a][b.props.id]=b.props.id},unregisterFromFocusEvent:function(a,b){delete this._compsRegistry[a][b.props.id]},propagateFocusEvent:function(b){var c=this._compsRegistry[b],e="on"+d.capitalize(b),f;a.forEach(c,function(a){f=this._aspectSiteAPI.getComponentById(a);if(!f){delete this._compsRegistry[b][a]}else if(f[e]){f[e]()}},this)}};b.registerSiteAspect("windowFocusEvents",f)});define("core/components/siteAspects/windowScrollEventAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this._registeredCompIds={};this._prevScrollPosition={x:0,y:0};this._aspectSiteAPI.registerToSiteReady(function(){this._aspectSiteAPI.registerToScroll(this.propagateScrollEvent.bind(this))}.bind(this))}c.prototype={registerToScroll:function(a){this._registeredCompIds[a.props.id]=a.props.id},unregisterToScroll:function(a){delete this._registeredCompIds[a.props.id]; },propagateScrollEvent:function(){var b={x:window.pageXOffset||document.body.scrollLeft,y:window.pageYOffset||document.body.scrollTop};var c=this.getScrollDirection(b);this._prevScrollPosition=b;a.forEach(this._registeredCompIds,function(a){var d=this._aspectSiteAPI.getComponentById(a);if(!d){delete this._registeredCompIds[a]}else if(d.onScroll){d.onScroll(b,c)}},this)},getScrollDirection:function(a){if(a.y!==this._prevScrollPosition.y){if(a.y>this._prevScrollPosition.y){return"DOWN"}return"UP"}if(a.x!==this._prevScrollPosition.x){if(a.x>this._prevScrollPosition.x){return"RIGHT"}return"LEFT"}},getScrollPosition:function(){return{x:window.pageXOffset||document.body.scrollLeft,y:window.pageYOffset||document.body.scrollTop}}};b.registerSiteAspect("windowScrollEvent",c)});define("core/components/siteAspects/windowResizeEventAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this._registeredCompIds={};this._registeredCompIdsOrientation={};this._aspectSiteAPI.registerToResize(this.propagateResizeEvent.bind(this));this._aspectSiteAPI.registerToOrientationChange(this.propagateOrientationEvent.bind(this))}c.prototype={registerToResize:function(a){this._registeredCompIds[a.props.id]=a.props.id},unregisterToResize:function(a){delete this._registeredCompIds[a.props.id]},registerToOrientationChange:function(a){this._registeredCompIdsOrientation[a.props.id]=a.props.id},unregisterToOrientationChange:function(a){delete this._registeredCompIdsOrientation[a.props.id]},propagateResizeEvent:function(){a.forEach(this._registeredCompIds,function(a){var b=this._aspectSiteAPI.getComponentById(a);if(!b){delete this._registeredCompIds[a]}else if(b.onResize){b.onResize()}},this)},propagateOrientationEvent:function(){a.forEach(this._registeredCompIdsOrientation,function(a){var b=this._aspectSiteAPI.getComponentById(a);if(!b){delete this._registeredCompIdsOrientation[a]}else if(b.onOrientationChange){b.onOrientationChange()}},this)}};b.registerSiteAspect("windowResizeEvent",c)});define("core/components/siteAspects/windowClickEventAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";var c=function(a){this._aspectSiteAPI=a;this._aspectSiteAPI.registerToDocumentClick(this.propagateDocumentClickEvent.bind(this));this._registeredCompIds=[]};c.prototype={registerToDocumentClickEvent:function(b){this._registeredCompIds=a.union(this._registeredCompIds,[b])},unRegisterToDocumentClickEvent:function(b){a.pull(this._registeredCompIds,b)},propagateDocumentClickEvent:function(b){var c="onDocumentClick";a.forEach(this._registeredCompIds,function(a){var d=this._aspectSiteAPI.getComponentById(a);if(d&&d[c]){d[c](b)}},this)}};b.registerSiteAspect("windowClickEventAspect",c)});define("core/components/siteAspects/windowKeyboardEventAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";var c={39:"ArrowRight",37:"ArrowLeft",27:"Escape"};function d(a){this._aspectSiteAPI=a;this._aspectSiteAPI.registerToKeyDown(this.propagateKeyboardEvent.bind(this));this._registeredCompIds={Escape:[],ArrowRight:[],ArrowLeft:[]}}d.prototype={registerToEscapeKey:function(a){this._registeredCompIds.Escape.push(a.props.id)},registerToArrowRightKey:function(a){this._registeredCompIds.ArrowRight.push(a.props.id)},registerToArrowLeftKey:function(a){this._registeredCompIds.ArrowLeft.push(a.props.id)},unRegisterKeys:function(b){a.forEach(this._registeredCompIds,function(c,d){this._registeredCompIds[d]=a.without(this._registeredCompIds[d],b.props.id)},this)},propagateKeyboardEvent:function(b){var d=c[b.keyCode||b.which];if(a.isEmpty(this._registeredCompIds[d])){return}var e=a.last(this._registeredCompIds[d]);var f=this._aspectSiteAPI.getComponentById(e);var g="on"+d+"Key";if(!f){this._registeredCompIds[d]=a.without(this._registeredCompIds[d],e)}else if(f[g]){b.preventDefault();f[g]()}}};b.registerSiteAspect("windowKeyboardEvent",d)});define("core/components/siteAspects/MobileActionsMenuAspect",["santaProps","core/core/siteAspectsRegistry","core/siteRender/compFactory"],function(a,b,c){"use strict";function d(a){if(!a.isMobileDevice()||!a.renderFlags.renderMobileActionMenu){return null}var b=a.getSiteMetaData();if(!b||!b.quickActions||!b.quickActions.configuration.quickActionsMenuEnabled){return null}return{id:"MOBILE_ACTIONS_MENU",skin:"wysiwyg.viewer.skins.mobile.MobileActionsMenuSkin",componentType:"wysiwyg.viewer.components.MobileActionsMenu",styleId:"mobileActionsMenu",layout:{position:"static"}}}function e(a){this._siteAspectsSiteAPI=a}e.prototype={getReactComponents:function(b){var e=this._siteAspectsSiteAPI.getSiteData();var f=d(e);if(!f){return null}var g=a.componentPropsBuilder.getCompProps(f,this._siteAspectsSiteAPI.getSiteAPI(),null,b);g.userColorScheme=e.rendererModel.siteMetaData.quickActions.colorScheme;var h=c.getCompClass(f.componentType);return[h(g)]},getComponentStructures:function(){var a=d(this._siteAspectsSiteAPI.getSiteData());return a?[a]:null}};b.registerSiteAspect("mobileActionsMenu",e)});define("core/components/siteAspects/addComponentAspect",["lodash","santaProps","core/core/siteAspectsRegistry","core/siteRender/compFactory"],function(a,b,c,d){"use strict";function e(a){this._aspectSiteAPI=a;this._componentsToRender={}}e.prototype={addComponent:function(a,b,c){this._componentsToRender[a]={structure:b,props:c};this._aspectSiteAPI.forceUpdate()},deleteComponent:function(a){delete this._componentsToRender[a];this._aspectSiteAPI.forceUpdate()},getComponentStructures:function(){return a.pluck(this._componentsToRender,"structure")},getReactComponents:function(c){return a.map(this._componentsToRender,function(e){var f=b.componentPropsBuilder.getCompProps(e.structure,this._aspectSiteAPI.getSiteAPI(),null,c);a.assign(f,e.props);var g=d.getCompClass(e.structure.componentType);return g(f)},this)}};c.registerSiteAspect("addComponent",e)});define("core/components/siteAspects/AudioAspect",["lodash","utils","core/core/siteAspectsRegistry"],function(a,b,c){"use strict";var d=10;var e=d;var f=1.5;var g=10*1e3;function h(b,c){return a.assign({url:j(b.siteAPI.getSiteData().serviceTopology),flashVersion:9,preferFlash:false,useHTML5Audio:true,forceUseGlobalHTML5Audio:false,html5PollingInterval:100,onready:function(){b.soundManagerReady=true}},c||{})}function i(){e=d}function j(a){var c=a.scriptsDomainUrl;if(!b.stringUtils.endsWith(c,"/")){c+="/"}return c+"services/third-party/soundmanager2/V2.97a.20150601/"}function k(a){if(m!==l){a.soundManagerReady=false;a.soundManagerOnResetup=true;a.siteAPI.forceUpdate();m=l;l(a)}}function l(a){var b=h(a,{preferFlash:true,useHTML5Audio:false,onready:function(){a.soundManagerReady=true;a.soundManagerOnResetup=false;a.siteAPI.forceUpdate()}});a.soundManager.destruct();a.soundManager.reset().setup(b);a.soundManager.beginDelayedInit()}var m=function(a){var b=h(a);a.soundManager.setup(b);setTimeout(function(){n(a)},e)};var n=function(a){if(a.soundManager===null){require(["SoundManager"],function(b){a.soundManager=b.getInstance();n(a)})}else if(a.soundManagerReady){a.siteAPI.forceUpdate();i()}else if(g>e){m(a);e*=f}else{i();b.log.verbose("Failed to setup SoundManager.")}};var o=function(a){var b=a.browser;return b&&b.safari===true};function p(a){this.siteAPI=a;this.nowPlayingComp=null;this.soundManagerReady=false;this.soundManagerOnResetup=false;this.soundManager=null;this.shouldForceHTML5Audio=o(a.getSiteData())}p.prototype={loadSoundManagerAPI:function(){n(this)},isSoundManagerReady:function(){return this.soundManagerReady},isSoundManagerOnResetup:function(){return this.soundManagerOnResetup},onHTML5ErrorTryToReloadWithFlash:function(){k(this)},createAudioObj:function(a){if(!this.soundManagerReady){this.loadSoundManagerAPI();return false}if(a.id&&this.soundManager.getSoundById(a.id)){this.soundManager.destroySound(a.id)}return this.soundManager.createSound(a)},isCompPlaying:function(a){return this.nowPlayingComp===a.props.id},updatePlayingComp:function(a){if(!this.soundManagerReady){this.loadSoundManagerAPI()}this.nowPlayingComp=a.props.id;this.siteAPI.forceUpdate()},updatePausingComp:function(){this.nowPlayingComp="";if(this.soundManagerReady){this.siteAPI.forceUpdate()}}};c.registerSiteAspect("AudioAspect",p);return p});define("core/components/actionsAspectActions/bgScrubAction",["lodash","animations","utils","core/components/actionsAspectActions/triggerTypesConsts","experiment"],function(a,b,c,d,e){"use strict";var f=c.balataConsts;var g={BackgroundParallax:[f.BALATA,f.MEDIA],BackgroundReveal:[f.BALATA,f.MEDIA],BackgroundZoom:[f.BALATA,f.MEDIA],BackgroundFadeIn:[f.BALATA],BackgroundBlurIn:[f.BALATA,f.MEDIA],SiteBackgroundParallax:[]};function h(a){this._aspectSiteAPI=a;this._siteData=a.getSiteData();this._behaviors=[];this._isEnabled=false;this._animateOnNextTick=false;this._liveSequenceIds=[];this._currentPageBehaviors=[];this._behaviorsUpdated=false;this._viewportHeightUpdated=false}h.prototype=a.create(Object.prototype,{constructor:h,ACTION_TRIGGERS:[d.PAGE_CHANGED,d.PAGE_RELOADED,d.TRANSITION_ENDED,d.SCROLL,d.RESIZE],ACTION_NAME:"bgScrub",_currentScroll:{x:0,y:0},_currentPopupScroll:{x:0,y:0},shouldEnable:function(){var a=typeof window!=="undefined";var b=this._siteData.isTabletDevice();var c=this._siteData.isMobileDevice();var d=this._siteData.isMobileView();return a&&!b&&!c&&!d},enableAction:function(){if(this._isEnabled){return}this.initiateBehaviors();this._tickerCallback=this._executeActionOnTick.bind(this);b.addTickerEvent(this._tickerCallback);this._isEnabled=true},disableAction:function(){if(!this._isEnabled){return}this._animateOnNextTick=false;b.removeTickerEvent(this._tickerCallback);this._tickerCallback=null;this.stopAndClearAnimations();this._currentPageBehaviors=[];this._isEnabled=false},isEnabled:function(){return this._isEnabled},executeAction:function(){if(a.isEmpty(this._currentPageBehaviors)){return}this.setAnimationsProgress()},setSequenceProgress:function(a,b,d){var e=d.getSequence(a.sequenceId);if(e){e.progress(b)}else{c.log.error("sequence id %s returned no sequence",a.sequenceId)}},setAnimationsProgress:function(){var b=Math.max(this._currentScroll.y,0);a.forEach(this._liveSequenceIds,function(a){if(this.isComponentInViewport(a.compId,a.parentId)){var c=this._viewportHeight+b-a.componentTop;var d=c/a.maxTravel;this.setSequenceProgress(a,d,this.getComponentParent(a.parentId))}},this)},getComponentMeasure:function(b){var c=this._siteData.measureMap||{};var d=a.get(c,["height",b],0);var e=a.get(c,["absoluteTop",b],0);return{height:d,top:e}},setSiteMeasure:function(){this._viewportHeight=this._siteData.getScreenHeight();this._siteHeight=this.getSiteHeight()},initiateBehaviors:function(){this._currentPageBehaviors=this.getCurrentPageBehaviors(this._behaviors,this._siteData.getPrimaryPageId())},getComponentParent:function(a){var b;if(a==="masterPage"){b=this._aspectSiteAPI.getMasterPage()}else if(a==="siteBackground"){b=this._aspectSiteAPI.getComponentById("SITE_BACKGROUND")}else{b=this._aspectSiteAPI.getCurrentPage()}return b},isComponentInViewport:function(a,b){if(c.viewportUtils.isAlwaysInViewport(this._aspectSiteAPI,b)){return true}var d=this._currentScroll;var e=this._aspectSiteAPI.getCurrentPopupId();if(e&&e===this._aspectSiteAPI.getRootOfComponentId(a)){d=this._currentPopupScroll}return c.viewportUtils.isInViewport(this._aspectSiteAPI,d,a)},getSequenceParams:function(){return{suppressReactRendering:false,forgetSequenceOnComplete:false,paused:true}},getCurrentPageBehaviors:function(b,c){return a.filter(b,function(a){return a.action===this.ACTION_NAME&&(a.pageId===c||a.pageId==="masterPage"||a.pageId==="siteBackground")},this)},createSequences:function(){var c=false;this._liveSequenceIds=a.map(this._currentPageBehaviors,function(d){var e;var f=d.pageId==="siteBackground";var h=this.getComponentParent(d.pageId);var i=h.sequence();var j=this.getComponentMeasure(d.targetId);var k=b.getProperties(d.name);var l=k.getMaxTravel||a.noop;var m=l(j,this._viewportHeight,this._siteHeight)||this._viewportHeight;var n=d.params||{};n.browserFlags=this._siteData.browserFlags();n.componentTop=j.top;n.componentHeight=j.height;n.viewPortHeight=this._viewportHeight;e=[[d.targetId].concat(g[d.name])];i.add(e,d.name,d.duration,d.delay,n);c=k.shouldDisableSmoothScrolling;var o=i.execute(this.getSequenceParams());return{path:e,compId:d.targetId,parentId:d.pageId,behaviorName:d.name,componentTop:f?this._viewportHeight:j.top,componentHeight:j.height,maxTravel:m,sequenceId:o}},this);if(e.isOpen("DisableSmoothScrolling")){if(c&&this._siteData.browserFlags().shouldDisableSmoothScrolling){var d=this._aspectSiteAPI.getSiteAspect("mouseWheelOverride");d.overrideMouseWheel()}}},handleTrigger:function(a){if(!this._isEnabled){return}this._currentScroll=this._aspectSiteAPI.getSiteScroll();this._currentPopupScroll=this._aspectSiteAPI.getCurrentPopupScroll();switch(a){case d.PAGE_CHANGED:case d.TRANSITION_ENDED:this.clearAllAndReload(0);this._animateOnNextTick=true;this._behaviorsUpdated=false;break;case d.PAGE_RELOADED:case d.SCROLL:case d.RESIZE:if(this._behaviorsUpdated||this._viewportHeightUpdated){this.clearAllAndReload(0);this._behaviorsUpdated=false;this._viewportHeightUpdated=false}this._animateOnNextTick=true;break}},_shouldForceResizeEvent:function(){if(this._siteData.getScreenHeight()!==this._viewportHeight){this._viewportHeight=this._siteData.getScreenHeight();this._viewportHeightUpdated=true;this.handleTrigger(d.RESIZE)}},_executeActionOnTick:function(){this._shouldForceResizeEvent();if(!this._animateOnNextTick){return}this.executeAction();this._animateOnNextTick=false},clearAllAndReload:function(a){this.stopAndClearAnimations(a);this.initiateBehaviors();this.setSiteMeasure();this.createSequences()},stopAndClearAnimations:function(b){var c=this._aspectSiteAPI.getSiteAspect("mouseWheelOverride");if(c&&c.releaseMouseWheel){c.releaseMouseWheel()}b=a.isNumber(b)?b:1;a.forEach(this._liveSequenceIds,function(a){var c=this.getComponentParent(a.parentId);if(c.getSequence(a.sequenceId)){c.stopSequence(a.sequenceId,b)}},this);this._liveSequenceIds=[]},handleBehaviorsUpdate:function(a){this._behaviors=a;this._behaviorsUpdated=true},getSiteHeight:function(){var b=this._aspectSiteAPI;var c=b.getSiteData().measureMap||{};var d=this._siteData.renderFlags;var e=a.get(c,"height.masterPage",0)+(c.siteMarginBottom||0)+(d.extraSiteHeight||0);return e}});return h});define("core/components/actionsAspectActions/baseAction",["lodash","animations","core/components/actionsAspectActions/triggerTypesConsts"],function(a,b,c){"use strict";function d(b){this._aspectSiteAPI=b;this._siteData=b.getSiteData();this._isEnabled=false;this._triggeredOnce={};a.bindAll(this)}d.prototype=a.create(Object.prototype,{constructor:d,ACTION_TRIGGERS:[],ACTION_NAME:"BASE_ACTION",ACTIONS_SUPPORTED:["BASE_ACTION"],shouldEnable:function(){var a=typeof window!=="undefined";var b=this._siteData.isTabletDevice();var c=this._siteData.isMobileDevice();var d=this._siteData.isMobileView();return a&&!b&&!c&&!d},enableAction:function(){if(this._isEnabled){return}this._triggeredOnce={};this._currentActions={};this._delayActionByTransitionDuration=0;this._executeOnNextTick=[];this.resetActionState();this._tickerCallback=this._executeActionOnTick.bind(this);b.addTickerEvent(this._tickerCallback);this._isEnabled=true},disableAction:function(){if(!this._isEnabled){return}this._executeOnNextTick=[];b.removeTickerEvent(this._tickerCallback);this._tickerCallback=null;this._isEnabled=false;this._delayActionByTransitionDuration=0;this.resetActionState()},isEnabled:function(){return this._isEnabled},triggerActions:function(b,c){var d=this._aspectSiteAPI.getSiteAspect("behaviorsAspect");a.forEach(b,function(a){this._triggeredOnce[a]=true},this);c=a.defaults(c||{},{action:this.ACTION_NAME});return d.handleActions(a(this._currentActions).pick(b).values().value(),c)},registerPageTransitionDuration:function(a){this._delayActionByTransitionDuration=a},handleBehaviorsUpdate:a.noop,executeAction:a.noop,_executeActionOnTick:function(){if(a.isEmpty(this._executeOnNextTick)){return}var b=this._executeOnNextTick;this._executeOnNextTick=[];a.forEach(b,function(a){a()})},executeOnNextTick:function(b){this._executeOnNextTick=a(this._executeActionOnTick).concat([b]).uniq().value()},handleTrigger:function(b){var d=a.toArray(arguments);switch(b){case c.ACTIONS_ADDED_LAYOUTED:d[1]=a.pick(d[1],function(b){return a.includes(this.ACTIONS_SUPPORTED,b.name)},this);a.assign(this._currentActions,d[1]);break;case c.ACTIONS_REMOVED:d[1]=a.pick(d[1],function(b){return a.includes(this.ACTIONS_SUPPORTED,b.name)},this);this._currentActions=a.omit(this._currentActions,a.keys(d[1]));break}if(this._isEnabled){this.handleActionTrigger.apply(this,d)}},handleActionTrigger:function(){throw"Need to implement handleTrigger in specific actions"},resetActionState:function(){throw"Need to implement resetActionState in specific actions"}});return d});define("core/components/actionsAspectActions/loadAction",["lodash","utils","core/components/actionsAspectActions/baseAction","core/components/actionsAspectActions/triggerTypesConsts"],function(a,b,c,d){"use strict";function e(){c.apply(this,arguments)}function f(c){return a.pick(c,function(a){return a.sourceId===b.siteConstants.SITE_STRUCTURE_ID})}e.prototype=a.create(c.prototype,{constructor:e,ACTION_TRIGGERS:[d.SITE_READY,d.PAGE_RELOADED,d.PAGE_CHANGED,d.DID_LAYOUT,d.ACTIONS_REMOVED,d.ACTIONS_ADDED_LAYOUTED],ACTION_NAME:"load",ACTIONS_SUPPORTED:["load"],shouldEnable:a.constant(true),runAction:function(){var b=a(this._currentActions).omit(a.keys(this._triggeredOnce)).keys().value();this.triggerActions(b)},handleActionTrigger:function(b){switch(b){case d.ACTIONS_REMOVED:this._triggeredOnce=a(this._triggeredOnce).omit(a.keys(arguments[1])).omit(a.keys(f(this._currentActions))).value();break;case d.SITE_READY:case d.PAGE_RELOADED:case d.PAGE_CHANGED:case d.DID_LAYOUT:this.executeOnNextTick(this.runAction)}},resetActionState:a.noop});return e});define("core/components/actionsAspectActions/screenInAction",["lodash","utils","core/components/actionsAspectActions/baseAction","core/components/actionsAspectActions/triggerTypesConsts"],function(a,b,c,d){"use strict";var e=.2;var f=15/100;function g(){c.apply(this,arguments);this._currentScroll={x:0,y:0};this._currentPopupScroll={x:0,y:0}}g.prototype=a.create(c.prototype,{constructor:g,ACTION_TRIGGERS:[d.SCROLL,d.RESIZE,d.ACTIONS_ADDED_LAYOUTED,d.ACTIONS_REMOVED,d.DID_LAYOUT],ACTION_NAME:"screenIn",ACTIONS_SUPPORTED:["screenIn"],getComponentParent:function(a){return this._aspectSiteAPI.getPageById(a)},isComponentInViewport:function(a){var c=this._aspectSiteAPI.getCurrentPopupId()===a.pageId?this._currentPopupScroll:this._currentScroll;return b.viewportUtils.isAlwaysInViewport(this._aspectSiteAPI,a.sourceId)||b.viewportUtils.isInViewport(this._aspectSiteAPI,c,a.sourceId,f)||this.isChildOfFixedFooter(a.pageId,a.sourceId)},isChildOfFixedFooter:function(a,b){var c=false;var d=this._aspectSiteAPI.getSiteData().measureMap.custom.SITE_FOOTER;if(a==="masterPage"&&d&&d.isFixedPosition){var e=this._aspectSiteAPI.getMasterPage().refs.SITE_FOOTER;c=this.isDescendantOf(e.props.structure,b)}return c},isDescendantOf:function(b,c){if(!b.components){return false}return a.some(b.components,function(a){if(a.id===c){return true}return this.isDescendantOf(a,c)},this)},runAction:function(){var b=a(this._currentActions).omit(a.keys(this._triggeredOnce)).pick(this.isComponentInViewport).keys().value();this.triggerActions(b)},handleActionTrigger:function(b){this._currentScroll=this._aspectSiteAPI.getSiteScroll();this._currentPopupScroll=this._aspectSiteAPI.getCurrentPopupScroll();switch(b){case d.ACTIONS_REMOVED:this._triggeredOnce=a.omit(this._triggeredOnce,a.keys(a.toArray(arguments)[1]));break;case d.DID_LAYOUT:case d.SCROLL:case d.RESIZE:case d.ACTIONS_ADDED_LAYOUTED:case d.PAGE_CHANGED:var c=Math.max(this._delayActionByTransitionDuration-e,0)*1e3;if(c>0){a.delay(function(){this._delayActionByTransitionDuration=0;this.executeOnNextTick(this.runAction)}.bind(this),c)}else{this.executeOnNextTick(this.runAction)}break}},shouldEnable:function(){var a=typeof window!=="undefined";return a},resetActionState:a.noop});return g});define("core/components/actionsAspectActions/modeChangeAction",["lodash","zepto","utils","animations","core/components/actionsAspectActions/triggerTypesConsts","reactDOM"],function(a,b,c,d,e,f){"use strict";var g={ENTER:c.siteConstants.Animations.Modes.AnimationType.ENTER,LEAVE:c.siteConstants.Animations.Modes.AnimationType.LEAVE,TRANSITION:c.siteConstants.Animations.Modes.AnimationType.TRANSITION};var h={};h[g.ENTER]=g.LEAVE;h[g.LEAVE]=g.ENTER;var i={};i[g.ENTER]="modeIn";i[g.LEAVE]="modeOut";i[g.TRANSITION]="modeChange";var j={"wysiwyg.viewer.components.SiteButton":c.siteConstants.Animations.TransitionType.NO_SCALE,"wysiwyg.viewer.components.WRichText":c.siteConstants.Animations.TransitionType.NO_SCALE};function k(b,c,d){var e=a.get(d,"params.modeIds");switch(d.action){case"modeIn":return b[d.targetId]==="enter"&&a.every(e,function(a){return c[a]===true});case"modeOut":return b[d.targetId]==="leave"&&a.every(e,function(a){return c[a]===false});case"modeChange":return b[d.targetId]==="transition"&&a.every(e,function(b){return!a.isUndefined(c[b])});default:return false}}function l(b,c,d){return a(b).filter(a.partial(k,c,d)).map(function(b){return a.assign({animationType:c[b.targetId]},b)}).indexBy("targetId").value()}function m(a){this._aspectSiteAPI=a;this._siteData=a.getSiteData();this._behaviors=[];this._isEnabled=false;this._animateOnNextTick=false;this._behaviorsById={};this.playingSequences={};this.componentAnimationsInfo={}}m.prototype=a.create(Object.prototype,{constructor:m,ACTION_TRIGGERS:[e.MODE_CHANGED_INIT,e.MODE_CHANGED_EXECUTE],ACTION_NAME:["modeChange","modeIn","modeOut"],shouldEnable:function(){var a=typeof window!=="undefined";var b=this._siteData.isTabletDevice();var c=this._siteData.isMobileDevice();return a&&!b&&!c},enableAction:function(){if(this._isEnabled){return}this._tickerCallback=this._executeActionOnTick.bind(this);d.addTickerEvent(this._tickerCallback);this._isEnabled=true},disableAction:function(){if(!this._isEnabled){return}this._animateOnNextTick=false;d.removeTickerEvent(this._tickerCallback);this._tickerCallback=null;this.stopAndClearAnimations();this.revertHideElementsByAnimationType(this._behaviorsById);this._behaviorsById={};this._isEnabled=false},isEnabled:function(){return this._isEnabled},needToRunPreConditions:function(){return false},_executeActionOnTick:function(){if(!this._animateOnNextTick){return}this._executeAction();this._animateOnNextTick=false},stopAndClearAnimations:function(){this._behaviorsById={};a.forEach(this.playingSequences,function(a,b){var c=this.getComponentPage(a.parentId);c.stopSequence(a.sequence.getId(),1);this.handleSequenceEnded(b,a.parentId,a.type)},this);a.forEach(this.componentAnimationsInfo,function(a,b){a.hasPendingAnimation=false;this.handleSequenceEnded(b,a.pageId,a.type)},this)},_executeAction:function(){if(a.isEmpty(this._behaviorsById)){return}a.assign(this.playingSequences,this.playJsAnimations())},executeAction:function(){this.handleTrigger.apply(this,arguments)},clearPlayedBehaviors:function(b){this._behaviorsById=a.omit(this._behaviorsById,function(a,c){return b[c]})},convertBehaviorTimingFunctionToCSS:function(a){return c.siteConstants.Animations.TimingFunctions[a]},clearCssTransitionFromNode:function(a){a.css({"transition-duration":"","transition-delay":"","transition-timing-function":"","-webkit-transition-timing-function":"","-moz-transition-timing-function":"","-o-transition-timing-function":""})},addCssTransitionToNode:function(a,b){var c=this.convertBehaviorTimingFunctionToCSS(a.params.timingFunction);b.css({"transition-duration":a.duration+"s !important","transition-delay":a.delay+"s !important","transition-timing-function":c+" !important","-webkit-transition-timing-function":c+" !important","-moz-transition-timing-function":c+" !important","-o-transition-timing-function":c+" !important"})},initCssTransitions:function(){var c=a.filter(this._behaviorsById,{animationType:"transition"});if(!c.length){return}a.forEach(c,function(a){var c=a.targetId;var d=b(this.getComponentNode(a.pageId,c));if(!this.componentAnimationsInfo[c].didCssTransitionStartExecuting){this.componentAnimationsInfo[c].didCssTransitionStartExecuting=true;this.addCssTransitionToNode(a,d)}},this)},handleSequenceEnded:function(a,c,d){if(d===g.TRANSITION){this.clearCssTransitionFromNode(b(this.getComponentNode(c,a)))}delete this.playingSequences[a];this.notifyAnimationEnded(a)},playJsAnimations:function(){var b={};var c={};a.forEach(this._behaviorsById,function(a){var d=this.getComponentPage(a.pageId);var e=a.targetId;var f=this.playingSequences[e];var g=f&&h[f.type]===a.animationType;var i=f&&f.type===a.animationType;b[e]=true;if(i){return}if(g){this.reverseAnimation(a);return}if(f){d.stopSequence(f.sequence.id)}c[e]={sequence:d.sequence(),parentId:a.pageId,type:a.animationType};this.addAnimationToSequence(a,this.componentAnimationsInfo[a.targetId],c[a.targetId].sequence)},this);a.forEach(c,this.executeSequenceIfNeeded,this);this.clearPlayedBehaviors(b);return c},reverseAnimation:function(a){var b=a.targetId;var c=this.getComponentPage(a.pageId);var d=this.playingSequences[b];d.type=a.animationType;this.componentAnimationsInfo[b].hasPendingAnimation=false;c.reverseSequence(d.sequence.getId())},executeSequenceIfNeeded:function(a,b){var c=a.sequence;if(c.hasAnimations()){var d=this.componentAnimationsInfo[b].progress;var e=this.handleSequenceEnded.bind(this,b,a.parentId,a.type);this.componentAnimationsInfo[b].hasPendingAnimation=false;c.onCompleteAll(e);c.onReverseAll(e);if(d){c.onInit(function(a){a.progress(1-d)})}c.execute()}},getComponentPage:function(a){var b;if(a==="masterPage"){b=this._aspectSiteAPI.getMasterPage()}else{b=this._aspectSiteAPI.getCurrentPage()}return b},getComponentNode:function(a,b){var c=this.getComponentPage(a);var d=c.refs[b];if(d){return f.findDOMNode(d)}return null},addAnimationToSequence:function(a,b,d){var e=this.getComponentPage(a.pageId);var f=a.targetId;if(!e.refs[f]){return null}var h=e.refs[f].props.structure;var i=a.duration;var k=a.delay;if(a.animationType===g.TRANSITION){var l=b.prevLayout;var m=a.name+(j[h.componentType]||c.siteConstants.Animations.TransitionType.SCALE);d.add(f,m,i,k,{from:l})}else{d.add(f,a.name,i,k,a.params,0)}d.add(f,"BaseClear",0,0,{props:"clip,opacity,transform",immediateRender:false});return f},hideElementsByAnimationType:function(b){a.forEach(b,function(a,b){if(d.getProperties(a.name).hideOnStart){var c=this.getComponentNode(a.pageId,b);c.style.visibility="hidden"}},this)},revertHideElementsByAnimationType:function(b){a.forEach(b,function(b){a.forEach(b,function(a,b){if(d.getProperties(a.name).hideOnStart){var c=this.getComponentNode(a.pageId,b);c.style.visibility=""}},this)},this)},initiateBehaviors:function(b,c,d,e,f){this._behaviorsById=a.assign(this._behaviorsById,c);a.forEach(d,function(a,c){var d=this.componentAnimationsInfo[c]=this.componentAnimationsInfo[c]||{};d.pageId=b;d.type=a;d.hasPendingAnimation=true;d.onComplete=f;if(a===g.TRANSITION){d.prevLayout=e[c]}},this)},handleBehaviorsUpdate:function(a){this._behaviors=a},runJsAnimationsOnNextTick:function(){this._animateOnNextTick=true},notifyAnimationEnded:function(a){if(!this.componentAnimationsInfo[a]||this.componentAnimationsInfo[a].hasPendingAnimation){return}var b={};b[a]=this.componentAnimationsInfo[a].type;var c=this.componentAnimationsInfo[a].onComplete;delete this.componentAnimationsInfo[a];c(b)},handleDidLayout:function(){this._aspectSiteAPI.unRegisterFromDidLayout();this.runJsAnimationsOnNextTick()},handleReverseTransitionAnimations:function(b){var c=a.transform(b,function(a,b,c){if(b===g.TRANSITION){a.push(c)}},[]);var d=a.transform(this.playingSequences,function(a,b,c){if(b.type===g.TRANSITION){a.push(c)}},[]);var e=a.intersection(c,d);a.forEach(e,function(a){var b=this.componentAnimationsInfo[a];var c=this.getComponentPage(b.pageId);var d=this.playingSequences[a].sequence.getId();var e=c.getSequence(d);var f=this.getComponentNode(b.pageId,a);b.progress=e.progress();e.set(f,{clearProps:"clip,opacity,transform"});c.stopSequence(d,1);delete this.playingSequences[a]},this)},handleTrigger:function(b,c){if(!this._isEnabled){if(c&&c.onComplete){c.onComplete(c.componentAnimations)}return}switch(b){case e.MODE_CHANGED_INIT:var d=l(this._behaviors,c.componentAnimations,c.modeChanges);var f=a.pick(c.componentAnimations,a.keys(d));var g=a.omit(c.componentAnimations,a.keys(d));this.initiateBehaviors(c.pageId,d,f,c.transitioningComponentsPrevLayout,c.onComplete);this.handleReverseTransitionAnimations(c.componentAnimations);this.initCssTransitions();c.onComplete(g);break;case e.MODE_CHANGED_EXECUTE:this.hideElementsByAnimationType(this._behaviorsById);this._aspectSiteAPI.registerToDidLayout(this.handleDidLayout.bind(this));break}}});return m});define("core/components/actionsAspectActions/pageTransitionAction",["lodash","animations","utils","core/components/actionsAspectActions/triggerTypesConsts"],function(a,b,c,d){"use strict";function e(a,b){this._aspectSiteAPI=a;this._siteData=a.getSiteData();this._behaviors=b;this._isEnabled=false;this._nextPageTransition={};this._nextPageBGTransition={};this._nextPageInitialScrollData=null}a.assign(e.prototype,{ACTION_TRIGGERS:[d.PAGE_CHANGED],ACTION_NAME:"pageTransition",shouldEnable:function(){var a=typeof window!=="undefined";var b=this._siteData.isTabletDevice();var c=this._siteData.isMobileDevice();var d=this._siteData.isMobileView();return a&&!b&&!c&&!d},enableAction:function(){this._isEnabled=true},disableAction:function(){this._isEnabled=false},isEnabled:function(){return this._isEnabled},executeAction:function(){this.executeTransitions(this._nextPageTransition,this._nextPageBGTransition,this._nextPageInitialScrollData);this._nextPageTransition={};this._nextPageBGTransition={};this._nextPageInitialScrollData=null},handleTrigger:function(b){if(!this._isEnabled&&!a.isEmpty(this._nextPageTransition)){this._nextPageTransition.duration=0;this._nextPageTransition.transitionName="NoTransition"}if(b===d.PAGE_CHANGED){this.executeAction()}},handleBehaviorsUpdate:function(a){this._behaviors=a},registerNextPageTransition:function(a,b,c,d,e,f,g,h){this._nextPageTransition={comp:a,previousRef:b,currentRef:c,transitionName:d,duration:e,delay:f,params:g,callbacks:h}},registerNextBGPageTransition:function(a,b,c,d){this._nextPageBGTransition={comp:a,previousRef:b,currentRef:c,callbacks:d}},registerNextAnchorScroll:function(a){this._nextPageInitialScrollData=a},getNormalizedTransitionDuration:function(a,b){b=b||{};var c=1.2;var d=a;if(b.width){d=a*b.width/b.siteWidth}else if(b.height){d=a*(Math.max(b.height,b.screenHeight)/b.screenHeight)}return Math.min(d,c)},executeTransitions:function(d,e,f){var g=this._aspectSiteAPI;var h=typeof d.params==="function"?d.params():d.params;var i=this.getNormalizedTransitionDuration(d.duration||0,h);var j,k;if(!a.isEmpty(d)){j=d.comp.sequence();k=d.callbacks||{};if(k.onStart){j.onStartAll(k.onStart)}if(k.onInterrupt){j.onInterruptAll(k.onInterrupt)}if(k.onComplete){j.onCompleteAll(k.onComplete)}var l={sourceRefs:d.previousRef,destRefs:d.currentRef};j.add(l,d.transitionName,i,d.delay,h).add([d.previousRef,d.currentRef],"BaseClear",0,0,{props:"opacity,x,y",immediateRender:false}).execute()}if(!a.isEmpty(e)){e.comp.transition(e.previousRef,e.currentRef,d.transitionName,i,d.delay,h,e.callbacks)}var m=g.getSiteData();var n=c.scrollAnchors.calcAnchorScrollToPosition(f,g);f=n.anchorQuery;b.animate("BaseScroll",g.getSiteContainer(),i,d.delay,{x:n.x||0,y:n.y||0,callbacks:{onComplete:function(){var a=this._aspectSiteAPI.getSiteAspect("anchorChangeEvent");if(a){a.setSelectedAnchorAsync(m,f,m.getPrimaryPageId(),c.constants.ACTIVE_ANCHOR.DELAY_TO_END_SCROLL)}}.bind(this)}})}});return e});define("core/components/actionsAspectActions/exitAction",["lodash","animations","core/components/actionsAspectActions/triggerTypesConsts"],function(a,b,c){ "use strict";function d(a){this._aspectSiteAPI=a;this._siteData=a.getSiteData();this._behaviors=[];this._isEnabled=false;this._liveSequenceIds=[];this._animateOnNextTick=false;this._pendingComponentExits=[]}d.prototype=a.create(Object.prototype,{constructor:d,ACTION_TRIGGERS:[c.PAGE_CHANGED,c.PAGE_RELOADED],ACTION_NAME:"exit",shouldEnable:function(){var a=typeof window!=="undefined";var b=this._siteData.isTabletDevice();var c=this._siteData.isMobileDevice();var d=this._siteData.isMobileView();return a&&!b&&!c&&!d},enableAction:function(){if(this._isEnabled){return}this._tickerCallback=this._executeActionOnTick.bind(this);b.addTickerEvent(this._tickerCallback);this._isEnabled=true},disableAction:function(){if(!this._isEnabled){return}this._animateOnNextTick=false;b.removeTickerEvent(this._tickerCallback);this._tickerCallback=null;this.stopAndClearAnimations();var c=a.map(this._pendingComponentExits,"callback");this._pendingComponentExits=[];this._isEnabled=false;a.forEach(c,function(a){a()})},isEnabled:function(){return this._isEnabled},executeAction:function(){if(a.isEmpty(this._pendingComponentExits)){return}var b=this._pendingComponentExits;this._pendingComponentExits=[];a.forEach(b,function(a){this._liveSequenceIds=this._liveSequenceIds.concat(this.playPageAnimations(a.leavingCompIds,a.callback))},this)},playPageAnimations:function(b,c){var d={};var e={};var f=[];var g=a(this._behaviors).filter(function(c){return c.action===this.ACTION_NAME&&a.includes(b,c.sourceId)},this).indexBy("sourceId").value();a.forEach(g,function(a){var b=this.getComponentParent(a.pageId);if(!b.refs[a.sourceId]){return}if(!e[a.pageId]){e[a.pageId]=b.sequence();d[a.pageId]=[]}d[a.pageId].push(this.addAnimationToSequence(a,e))},this);var h=1;function i(){h--;if(h===0){c()}}a.forEach(e,function(b,c){if(b.hasAnimations()){h++;b.onCompleteAll(i);b.onInterruptAll(i);d[c]=a.compact(d[c]);f.push({parentId:c,sequenceId:b.getId()});b.execute()}},this);i();return f},getComponentParent:function(a){return this._aspectSiteAPI.getPageById(a)},addAnimationToSequence:function(a,b){var c=b[a.pageId];c.add(a.targetId,a.name,a.duration,a.delay,a.params,0);c.add(a.targetId,"BaseClear",0,0,{props:"clip,opacity,transform",immediateRender:false});return a.targetId},registerComponentsExit:function(a,b){if(this._isEnabled){this._pendingComponentExits.push({leavingCompIds:a,callback:b});this._animateOnNextTick=true}else{b()}},handleTrigger:function(){},handleBehaviorsUpdate:function(a){this._behaviors=a},_executeActionOnTick:function(){if(!this._animateOnNextTick){return}this.executeAction();this._animateOnNextTick=false},stopAndClearAnimations:function(){a.forEach(this._liveSequenceIds,function(a){var b=this.getComponentParent(a.parentId);if(b){b.stopSequence(a.sequenceId,1)}},this);this._liveSequenceIds=[]}});return d});define("core/components/siteAspects/actionsAspect",["lodash","core/core/siteAspectsRegistry","core/components/actionsAspectActions/bgScrubAction","core/components/actionsAspectActions/loadAction","core/components/actionsAspectActions/screenInAction","core/components/actionsAspectActions/modeChangeAction","core/components/actionsAspectActions/pageTransitionAction","core/components/actionsAspectActions/exitAction","core/components/actionsAspectActions/triggerTypesConsts","experiment"],function(a,b,c,d,e,f,g,h,i,j){"use strict";function k(b){this._aspectSiteAPI=b;this._siteData=b.getSiteData();this._behaviors=[];this._pageTransitionComplete=[];this._isDuringPageTransition=false;this._navigationComplete=[];this._actions={};this._previouslyRegisteredPages=[];this._didFirstLayout=false;this._didPageChange=false;this.registerAction(c);this.registerAction(d);this.registerAction(e);this.registerAction(g);this.registerAction(h);if(j.isOpen("sv_hoverBox")){this.registerAction(f)}this.enableAction("pageTransition");if(a.get(this._siteData,["renderFlags","componentViewMode"],"preview")==="preview"){this.enableAction("bgScrub");this.enableAction("screenIn");this.enableAction("exit");this.enableAction("load");if(j.isOpen("sv_hoverBox")){this.enableAction("modeChange")}}this._registerTriggers();b.registerToAddedRenderedRootsDidLayout(l.bind(this))}k.prototype.previewAnimation=function(a,b,c,d){var e=this._aspectSiteAPI.getPageById(b);var f=e.sequence();var g={props:"clip,opacity,transform,transform-origin",immediateRender:false};f.add(a,c.name,c.duration,c.delay,c.params);f.add(a,"BaseClear",0,0,g);if(d){f.onCompleteAll(d)}return f.execute()};k.prototype.previewTransition=function(a,b,c,d,e){var f;if(c==="masterPage"){f=this._aspectSiteAPI.getMasterPage()}else{f=this._aspectSiteAPI.getCurrentPage()}if(f){var g=f.sequence();var h={props:"clip,opacity,transform,transform-origin",immediateRender:false};g.add({sourceRefs:a,destRefs:b},d.name,d.duration,d.delay,d.params);g.add(a.concat(b),"BaseClear",0,0,h);if(e){g.onCompleteAll(e)}return g.execute()}};k.prototype.stopPreviewAnimation=function(a){var b=this._aspectSiteAPI.getMasterPage();var c=this._aspectSiteAPI.getCurrentPopup()||this._aspectSiteAPI.getCurrentPage();c.stopSequence(a,1);b.stopSequence(a,1)};k.prototype.enableAction=function(a){if(this._actions[a]&&this._actions[a].shouldEnable()){this._actions[a].enableAction()}};k.prototype.isActionDisabled=function(a){return this._actions[a]&&!this._actions[a].isEnabled()};k.prototype.needToRunPreConditions=function(a){var b=a.name;return!this._actions[b]||!this._actions[b].needToRunPreConditions||this._actions[b].needToRunPreConditions(a)};k.prototype.disableAction=function(a){if(this._actions[a]){this._actions[a].disableAction()}};k.prototype.executeAction=function(b,c){var d=a.drop(arguments,2);if(this._actions[b]){var e=this._actions[b];e.executeAction.apply(e,[c].concat(d))}};if(!j.isOpen("sv_hoverBox")){k.prototype.isPageRegistered=function(b){return a.includes(this._previouslyRegisteredPages,b)};k.prototype.setPageAsRegistered=function(a){if(!this.isPageRegistered(a)){this._previouslyRegisteredPages.push(a)}}}k.prototype.registerBehaviors=function(b,c,d){d=a.isString(d)?JSON.parse(d):d;d=a.map(d,function(d){return a.assign({},d,{pageId:c,sourceId:b,targetId:d&&d.targetId||b})});this.unRegisterBehaviors(b,d,false);this._behaviors=this._behaviors.concat(d);this._propagateBehaviorsUpdate(this._behaviors)};k.prototype.unRegisterBehaviors=function(b,c,d){d=d!==false;a.forEach(c,function(c){this._behaviors=a.reject(this._behaviors,{sourceId:b,action:c&&c.action,name:c&&c.name})},this);if(d){this._propagateBehaviorsUpdate(this._behaviors)}};k.prototype.resetBehaviorsRegistration=function(){this._previouslyRegisteredPages=[];this._behaviors=[];this._propagateBehaviorsUpdate(this._behaviors)};k.prototype.registerNextPageTransition=function(a,b,c,d,e,f,g,h){this._isDuringPageTransition=true;this._actions.pageTransition.registerNextPageTransition(a,b,c,d,e,f,g,h);this._actions.screenIn.registerPageTransitionDuration(e)};k.prototype.registerPageTransitionComplete=function(b){if(a.isFunction(b)){this._pageTransitionComplete.push(b)}};k.prototype.handlePageTransitionComplete=function(b,c){this._aspectSiteAPI.endingPageTransition();this._isDuringPageTransition=false;a.forEach(this._pageTransitionComplete,function(a){a(b,c)});this._pageTransitionComplete=[];this.handleNavigationComplete()};function l(b){if(a.some(b,this._siteData.isPopupPage,this._siteData)){this.handleNavigationComplete()}}k.prototype.registerNavigationComplete=function(b){if(a.isFunction(b)){this._navigationComplete.push(b)}};k.prototype.handleNavigationComplete=function(){if(this._isDuringPageTransition){return}this._aspectSiteAPI.endingPageTransition();a.forEach(this._navigationComplete,function(a){a()});this._navigationComplete=[]};k.prototype.registerNextBGPageTransition=function(a,b,c,d){this._actions.pageTransition.registerNextBGPageTransition(a,b,c,d)};k.prototype.registerNextAnchorScroll=function(a){this._actions.pageTransition.registerNextAnchorScroll(a)};k.prototype.registerComponentsExit=function(a,b){this._actions.exit.registerComponentsExit(a,b)};k.prototype.registerAction=function(b){var c=new b(this._aspectSiteAPI);var d=[].concat(c.ACTION_NAME);a.forEach(d,function(a){if(this._actions[a]){throw new Error("Action "+a+" already registered")}if(!a){throw new Error("Action missing it's ACTION_NAME parameter, cannot register it")}this._actions[a]=c},this)};k.prototype._propagateTrigger=function(b){var c=arguments;a.forEach(this._actions,function(d){if(a.includes(d.ACTION_TRIGGERS,b)){d.handleTrigger.apply(d,c)}})};k.prototype._propagatePageChangeTriggerAfterLayout=function(){if(this._didPageChange||!this._didFirstLayout){var a=this._aspectSiteAPI.getSiteData();var b=a.getExistingRootNavigationInfo(a.getPrimaryPageId());var c=this._aspectSiteAPI.getSiteAspect("siteMembers").isPageAllowed(b);if(c){this._propagateTrigger(i.PAGE_CHANGED)}}this._didPageChange=false;this._propagateTrigger(i.DID_LAYOUT)};k.prototype._enablePageChangeTransitionsAfterLayout=function(){if(!this._didFirstLayout){this._didFirstLayout=true}else{this._didPageChange=true}};k.prototype.reloadPageAnimations=function(){this._propagateTrigger(i.PAGE_RELOADED)};k.prototype._propagateBehaviorsUpdate=function(b){a.forEach(this._actions,function(c){c.handleBehaviorsUpdate(a.cloneDeep(b))})};k.prototype._registerTriggers=function(){this._aspectSiteAPI.registerToSiteReady(this._propagateTrigger.bind(this,i.SITE_READY));this.registerPageTransitionComplete(this._propagateTrigger.bind(this,i.TRANSITION_ENDED));this._aspectSiteAPI.registerToUrlPageChange(this._enablePageChangeTransitionsAfterLayout.bind(this));this._aspectSiteAPI.registerToSiteReady(this._enablePageChangeTransitionsAfterLayout.bind(this));this._aspectSiteAPI.registerToDidLayout(this._propagatePageChangeTriggerAfterLayout.bind(this));this._aspectSiteAPI.registerToScroll(this._propagateTrigger.bind(this,i.SCROLL));this._aspectSiteAPI.registerToResize(this._propagateTrigger.bind(this,i.RESIZE));if(j.isOpen("sv_hoverBox")){this._aspectSiteAPI.registerToModeChange(this._propagateTrigger.bind(this,i.MODE_CHANGED_INIT));this._aspectSiteAPI.registerToModeChange(this._propagateTrigger.bind(this,i.MODE_CHANGED_EXECUTE))}};k.prototype.actionsRemoved=function(a){this._propagateTrigger(i.ACTIONS_REMOVED,a)};k.prototype.actionsAddedLayouted=function(a){this._propagateTrigger(i.ACTIONS_ADDED_LAYOUTED,a)};b.registerSiteAspect("actionsAspect",k)});define("core/components/siteAspects/DynamicClientSpecMapAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";var c=typeof window!=="undefined";function d(a){var b=a.replace(/\/$/,"")+"/_api/dynamicmodel";if(c){b=b.replace(/^[^:]+:/,window.location.protocol)}return b}var e=true;function f(a,b,c){var f="error";var g={url:d(a.getExternalBaseUrl()),destination:["dynamicClientSpecMapLoaded"],force:c,cache:e,syncCache:true,transformFunc:function(){return true},callback:function(c,d){f="success";if(d.clientSpecMap){a.rendererModel.clientSpecMap=d.clientSpecMap}if(d.svSession){a.pubSvSession(d.svSession)}if(d.hs){a.setHubSecurityToken(d.hs)}if(d.ctToken){a.setCTToken(d.ctToken)}if(b){b(d)}}};a.store.loadBatch([g],function(){if(f==="error"){b({status:f})}});e=false}function g(a){var b=a.getSiteData();this.reloadClientSpecMap=function(a,c){if(b&&b.isViewerMode()){f(b,a,c)}}}b.registerSiteAspect("dynamicClientSpecMap",g)});define("core/components/siteAspects/dynamicColorsAspect",["core/core/siteAspectsRegistry","lodash"],function(a,b){"use strict";function c(a){var c=this.aspectSiteAPI.getSiteData().measureMap;if(c){return{top:c.absoluteTop[a],left:b.get(c,"custom["+a+"].backgroundLeft",0)+c.absoluteLeft[a],height:c.height[a],width:b.get(c,"custom["+a+"].backgroundWidth",c.width[a])}}return{}}function d(a,c){return!b.isEqual(b.pick(a,"height","top","left","width"),c)}function e(a){var e=c.call(this,a.id);if(d(a,e)){b.assign(a,e);a.isDirty=true}}function f(){b.forEach(this.colorElementInfo,e,this)}function g(a){b.forEach(a,function(a){delete a.isDirty})}function h(a){b.forEach(this.observers,function(b){b(a)},this)}function i(){f.call(this);var a=b.filter(this.colorElementInfo,"isDirty");if(a.length){h.call(this,a);g(a)}}function j(a){this.aspectSiteAPI=a;this.colorElementInfo={};this.observers=[];a.registerToDidLayout(i.bind(this))}j.prototype={updateInformation:function(a,c){var d=this.colorElementInfo[a];var f=b.assign({id:a},d,c);e.call(this,f);if(!b.isEqual(f,d)){this.colorElementInfo[a]=f;h.call(this,[f]);g([f])}},getInformation:function(a){if(a){return b.cloneDeep(this.colorElementInfo[a])}return b.cloneDeep(this.colorElementInfo)},registerObserver:function(a){this.observers.push(a)},unregisterObserver:function(a){b.pull(this.observers,a)}};a.registerSiteAspect("dynamicColorElements",j)});define("core/components/siteAspects/VideoBackgroundAspect",["lodash","utils","core/core/siteAspectsRegistry","animations"],function(a,b,c,d){"use strict";var e="1080p";var f=5e3;var g={IN_PROCESS:"in_process",PLAYING_PREVIEW:"playing_preview",IDLE:"idle",NO_VIDEO:"no_video"};function h(b){var c=a.find(b,{quality:e});if(!c){var d=a.last(b);if(parseInt(d.quality,10)0){clearTimeout(b.timerInterval);var e=this.loadDummyVideo.bind(this,c,b.testingQuality);b.timerInterval=setTimeout(e,d)}else{b.qualities=a.filter(b.qualities,{quality:b.readyQuality.quality})}}}function k(b){var c=a.now()-b.timeStamp;if(c>b.duration*4){return 0}var d=c>b.duration&&c<=b.duration*2?4:8;return Math.max(f,b.duration/d)}function l(a){this.siteAPI=a;this.isEnabled=true;this.playingChangeList=[];this.notifyQualityReadyList=[];this.shouldPlayOnNextTick=false;this.currentScroll={x:0,y:0};this.currentPopupScroll={x:0,y:0};this.registerdVideoComponents=[];this.videoAvailabilityCollection=[];a.registerToDidLayout(this.playOnDidLayout.bind(this));a.registerToScroll(this.playOnNextTick.bind(this));a.registerToVisibilityChange(this.togglePlayStateByVisibility.bind(this));if(typeof window!=="undefined"){this._tickerCallback=this.playOnTick.bind(this);d.addTickerEvent(this._tickerCallback)}}l.prototype=a.create(Object.prototype,{constructor:l,playOnNextTick:function(){this.shouldPlayOnNextTick=this.isEnabled;this.currentScroll=this.siteAPI.getSiteScroll();this.currentPopupScroll=this.siteAPI.getCurrentPopupScroll()},playOnDidLayout:function(){if(!this.isEnabled){return}var b=this.siteAPI.getSiteData();var c=b.getFocusedRootId();var d=b.getExistingRootNavigationInfo(b.getPrimaryPageId());var e=a.isEmpty(d)?false:this.siteAPI.getSiteAspect("siteMembers").isPageAllowed(d);if(e&&c){this.togglePlayStateByVisibility()}},playOnTick:function(){if(!this.shouldPlayOnNextTick){return}this.shouldPlayOnNextTick=false;this.playAll()},togglePlayStateByVisibility:function(){var a=this.siteAPI.getVisibilityState();if(a.hidden){this.shouldPlayOnNextTick=false;this.pauseAll()}else{this.playOnNextTick()}},playAll:function(b){var c=this.getCurrentPageVideos();a.forEach(c,function(a){if(this.shouldPlay(b,a)){this.play(a.compId,!b)}else{this.pause(a.compId)}},this)},shouldPlay:function(a,b){return b.registerToPlay&&!b.compInstance.state.playEnded},play:function(b,c){var d=a.find(this.registerdVideoComponents,{compId:b});if(a.isEmpty(d)){return}var e=this.getQuality(b);if(this.isComponentInViewport(d.structureComponentId)){d.compInstance.play(e,c)}else{d.compInstance.pause()}},stopAll:function(){var b=this.getCurrentPageVideos();a.forEach(b,function(a){this.stop(a.compId)},this)},stop:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});if(c){c.compInstance.stop()}},pauseAll:function(){var b=this.getCurrentPageVideos();a.forEach(b,function(a){this.pause(a.compId)},this)},pause:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});if(c){c.compInstance.pause()}},enableVideoPlayback:function(a){this.isEnabled=true;if(!a){this.playAll(true)}},disableVideoPlayback:function(a){this.isEnabled=false;this.shouldPlayOnNextTick=false;if(!a){this.stopAll()}},getQuality:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});var d=a.find(this.videoAvailabilityCollection,{videoId:c.videoId});return d.readyQuality||d.testingQuality},loadDummyVideo:function(a,c){b.ajaxLibrary.ajax({url:i(a,c,this.siteAPI),type:"HEAD",success:this._canPlay.bind(this,a),error:this._onError.bind(this,a)})},getReadyState:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});if(a.isEmpty(c)){return g.NO_VIDEO}return this.getVideoReadyState(c.videoId)},getVideoReadyState:function(b){var c=a.find(this.videoAvailabilityCollection,{videoId:b});if(!c||!c.readyQuality){return g.IN_PROCESS}else if(h(c.qualities).quality===c.readyQuality.quality){return g.IDLE}return g.PLAYING_PREVIEW},getCurrentPageVideos:function(){return this.registerdVideoComponents},isPlaying:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});return c&&c.compInstance&&c.compInstance.isPlaying()},isComponentInViewport:function(a){var c=this.currentScroll;var d=this.siteAPI.getCurrentPopupId();if(d&&d===this.siteAPI.getRootOfComponentId(a)){c=this.currentPopupScroll}return b.viewportUtils.isAlwaysInViewport(this.siteAPI,a)||b.viewportUtils.isInViewport(this.siteAPI,c,a)},_onError:function(b){var c=a.find(this.videoAvailabilityCollection,{videoId:b});if(c){var d=c.testingQuality.quality;var e=a.findIndex(c.qualities,{quality:d});var f=e-1;if(f>=0&&!this._isNextQualityReady(f,c)){c.testingQuality=c.qualities[f];this.loadDummyVideo(b,c.testingQuality)}else{j.call(this,c,b)}}},_isNextQualityReady:function(a,b){return b.readyQuality&&b.readyQuality.quality===b.qualities[a].quality},_canPlay:function(b){var c=a.find(this.videoAvailabilityCollection,{videoId:b});if(c){c.readyQuality=c.testingQuality;var d=a.filter(this.registerdVideoComponents,{videoId:b});if(this.getVideoReadyState(b)!==g.IDLE){j.call(this,c,b)}this.notifyQualityReady(c.readyQuality,b);a.forEach(d,function(a){this.notifyPlayingChanged(a.compId)},this)}},unregisterToQualityAvailability:function(b){var c=a.find(this.registerdVideoComponents,{compId:b});if(c){var d=a.find(this.videoAvailabilityCollection,{videoId:c.videoId});if(typeof window!=="undefined"&&!a.isEmpty(d)){if(d.compCount===1&&this.getVideoReadyState(d.videoId)!==g.IDLE){clearInterval(d.timerInterval);this.videoAvailabilityCollection=a.reject(this.videoAvailabilityCollection,"videoId",c.videoId)}else{d.compCount--}}}},registerToQualityAvailability:function(b){var c=b.videoData;var d=a.find(this.videoAvailabilityCollection,{videoId:b.videoId});if(a.isEmpty(d)){d={videoId:b.videoId,readyQuality:null,testingQuality:h(c.qualities),qualities:c.qualities,timeStamp:(new Date).getTime(),duration:c.duration*1e3,compCount:1,timerInterval:0};this.videoAvailabilityCollection.push(d);this.loadDummyVideo(b.videoId,d.testingQuality)}else{d.compCount++}},registerVideo:function(b,c,d,e,f,g){var h={compId:b,structureComponentId:c,videoId:d.videoId,videoData:d,compInstance:f,registerToPlay:g};if(a.find(this.registerdVideoComponents,{compId:b})){this.unregisterVideo(b)}this.registerdVideoComponents.push(h);this.registerToQualityAvailability(h);this.registerToQualityReady(b,h.videoId,e)},unregisterVideo:function(b){this.unregisterToQualityAvailability(b);this.registerdVideoComponents=a.reject(this.registerdVideoComponents,"compId",b);this.unregisterToQualityReady(b)},registerToQualityReady:function(a,b,c){this.notifyQualityReadyList.push({id:a,videoId:b,callback:c})},registerToPlayingChange:function(a,b){this.playingChangeList.push({id:a,callback:b})},unregisterToQualityReady:function(b){this.notifyQualityReadyList=a.reject(this.notifyQualityReadyList,"id",b)},unregisterToPlayingChange:function(b){this.playingChangeList=a.reject(this.playingChangeList,"id",b)},notifyPlayingChanged:function(b){var c=a.find(this.playingChangeList,{id:b});if(c&&c.callback){c.callback(this.isPlaying(b))}},notifyQualityReady:function(b,c){var d=a.filter(this.notifyQualityReadyList,{videoId:c});a.forEach(d,function(a){if(a.callback){a.callback(b,a.videoId)}})},willUnmount:function(){d.removeTickerEvent(this._tickerCallback);if(typeof window!=="undefined"){a.forEach(this.videoAvailabilityCollection,function(a){clearTimeout(a.timerInterval)})}}});c.registerSiteAspect("VideoBackgroundAspect",l);return l});define("core/components/siteAspects/touchEventsAspect",["lodash","core/core/siteAspectsRegistry","utils"],function(a,b,c){"use strict";var d=c.stringUtils;var e={};var f=["touchstart","touchmove","touchend","touchcancel"];var g;function h(a){g=a;i()}function i(){f.forEach(function(a){e[a]={};g.registerToWindowTouchEvent(a,j)},this)}function j(b){var c=b.type.slice("touch".length);var f="WindowTouch"+d.capitalize(c);var h=e[b.type];var i="on"+f;var j;a.forEach(h,function(a){j=g.getComponentById(a);if(!j){delete h[a]}else if(j[i]){j[i](b)}},this)}h.prototype={registerToWindowTouchEvent:function(a,b){e[a.toLowerCase()][b.props.id]=b.props.id},unregisterFromWindowTouchEvent:function(a,b){delete e[a.toLowerCase()][b.props.id]}};b.registerSiteAspect("windowTouchEvents",h)});define("core/components/siteAspects/anchorLinkChangeEventAspect",["lodash","utils","core/core/siteAspectsRegistry"],function(a,b,c){"use strict";function d(a){this._aspectSiteAPI=a;this._registeredCompCallbacks={};this._activeAnchor=null;a.registerToScroll(this.onScroll.bind(this))}function e(c,d,e){e=e||c.getPrimaryPageId();var f=b.scrollAnchors.getPageAnchors(c,e);var g=b.scrollAnchors.getSortedAnchorsByY(c,f);return a.find(g,"id",d.replace("#",""))}function f(a,b,c){if(b){var d=e(a,b,c);if(d){this._activeAnchor={activeAnchorComp:d};this.propagateAnchorChangeEvent()}}}d.prototype={registerToAnchorChange:function(a){if(a.onAnchorChange){this._registeredCompCallbacks[a.props.id]=a.onAnchorChange}},unregisterToAnchorChange:function(a){delete this._registeredCompCallbacks[a.props.id]},onScroll:function(){if(!a.isEmpty(this._registeredCompCallbacks)){var c=this._aspectSiteAPI.getSiteData();var d=window.pageYOffset||(c.isMobileView()?document.scrollTop:document.body.scrollTop);var e=b.scrollAnchors.getActiveAnchor(c,d);if(this._activeAnchor===null&&!!e||this._activeAnchor&&e&&this._activeAnchor.activeAnchorComp.id!==e.activeAnchorComp.id){this._activeAnchor=e;this.propagateAnchorChangeEvent()}}},setSelectedAnchorAsync:function(a,b,c,d){if(b){b=b.replace("#","");setTimeout(f.bind(this,a,b,c),d)}},getActiveAnchor:function(){return this._activeAnchor},propagateAnchorChangeEvent:function(){a.forEach(this._registeredCompCallbacks,function(a){a(this._activeAnchor)},this)}};c.registerSiteAspect("anchorChangeEvent",d)});define("core/components/siteAspects/siteScrollingBlockerAspect",["core/core/siteAspectsRegistry","lodash","zepto"],function(a,b,c){"use strict";function d(){this._blockersList=[]}function e(){return!!b.size(this._blockersList)}function f(){this._scrollCorrection=window.scrollY;c("html").addClass("blockSiteScrolling").css({marginTop:-Math.max(.5,this._scrollCorrection)+"px"})}function g(){c("html").removeClass("blockSiteScrolling").css({marginTop:""});window.scrollTo(0,this._scrollCorrection)}function h(a,c){var d=b.first(this._blockersList);this._blockersList=c?b(this._blockersList).concat(a).uniq().value():b.without(this._blockersList,a);var e=b.first(this._blockersList);if(d===e){return}(e?f:g).call(this)}d.prototype.setSiteScrollingBlocked=h;d.prototype.isSiteScrollingBlocked=e;a.registerSiteAspect("siteScrollingBlocker",d)});define("core/components/siteAspects/SlideShowComponentAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this.callbacks=[]}c.prototype={reportSlideChange:function(a){this._aspectSiteAPI.notifyAspects("slideChange",a);var b=this.callbacks.shift();if(b){b()}},registerOnSlideChangeComplete:function(a){if(a){this.callbacks.push(a)}}};b.registerSiteAspect("SlideShowComponentAspect",c);return c});define("core/components/siteAspects/FormManagerAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this.siteAPI=a;this._formsPerPage={}}c.prototype={registerCompToForm:function(b,c){var d=this.siteAPI.getSiteData().getPrimaryPageId();var e=this.getFormOfComp(d,b);if(e){this.unRegisterCompFromForm(b,e.formName)}if(!a.has(this._formsPerPage,d)){this._formsPerPage[d]={};this._formsPerPage[d][c]=[]}else if(!a.has(this._formsPerPage,[d,b])){this._formsPerPage[d][c]=[]}this._formsPerPage[d][c].push(b)},unRegisterCompFromForm:function(b,c){var d=this.siteAPI.getSiteData().getPrimaryPageId();if(!a.has(this._formsPerPage,d)){return}if(!a.has(this._formsPerPage,[d,c])){return}var e=this._formsPerPage[d][c];if(!a.includes(e,b)){return}if(e.length===1){delete this._formsPerPage[d][c];return}var f=e.indexOf(b);e.splice(f,1);this._forms[d][c]=e},getCompsOnForm:function(b){var c=this.siteAPI.getSiteData().getPrimaryPageId();if(!a.has(this._formsPerPage,c)){return}if(!a.has(this._formsPerPage,[c,b])){return}return this._formsPerPage[c][b]},getFormOfComp:function(b,c){for(var d in this._formsPerPage[b]){if(this._formsPerPage[b].hasOwnProperty(d)){var e=this._formsPerPage[b][d];if(a.includes(e,c)){return d}}}return null},isFormExistOnPage:function(b){var c=this.siteAPI.getSiteData().getPrimaryPageId();if(!a.has(this._formsPerPage,c)){return false}if(!a.has(this._formsPerPage,[c,b])){return false}return true}};b.registerSiteAspect("FormManagerAspect",c);return c});define("core/components/siteAspects/RadioGroupsAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(){this.radioGroups={}}c.prototype={setRadioGroup:function(a,b){this.removeRadioFromGroup(a);if(b){var c=this.radioGroups[b];this.radioGroups[b]=c||{children:[]};var d=this.radioGroups[b].children;this.radioGroups[b].children=d.concat([a])}},removeRadioFromGroup:function(b){var c=a.findKey(this.radioGroups,function(c){return a.includes(c.children,b)});if(c){if(this.radioGroups[c].selected===b){delete this.radioGroups[c].value}a.pull(this.radioGroups[c].children,b)}},getRadioGroup:function(a){return this.radioGroups[a]},setRadioGroupValue:function(b,c){var d=a.findKey(this.radioGroups,function(c){return a.includes(c.children,b)});if(d){this.radioGroups[d].value=c;this.radioGroups[d].selected=b}}};b.registerSiteAspect("radioGroups",c);return c});define("core/components/siteAspects/mouseWheelOverrideAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this._isOverride=false}function d(a){if(typeof window==="undefined"){return}a.preventDefault();window.scrollBy(0,-a.wheelDelta/2)}c.prototype={overrideMouseWheel:function(){var a=document.body;if(this._isOverride){return}if(a.onwheel!==undefined){a.addEventListener("wheel",d)}else if(a.onmousewheel!==undefined){a.addEventListener("mousewheel",d)}else{return}this._isOverride=true},releaseMouseWheel:function(){var a=document.body;a.removeEventListener("wheel",d);a.removeEventListener("mousewheel",d);this._isOverride=false},isOverride:function(){return this._isOverride}};b.registerSiteAspect("mouseWheelOverride",c)});define("core/components/siteAspects/svSessionChangeEventAspect",["lodash","core/core/siteAspectsRegistry"],function(a,b){"use strict";function c(a){this._aspectSiteAPI=a;this._registeredComps={};a.registerToSvSessionChange(this.notifySessionChanged.bind(this))}c.prototype={registerToSessionChanged:function(a){this._registeredComps[a.props.id]=a},unRegisterToSessionChanged:function(a){delete this._registeredComps[a.props.id]},notifySessionChanged:function(b){a.forEach(this._registeredComps,function(a){a.sendPostMessage({intent:"addEventListener",eventType:"SESSION_CHANGED",params:{userSession:b}})},this)}};b.registerSiteAspect("svSessionChangeEvent",c)});define("core/components/siteAspects/aspectsCollector",["core/core/siteAspectsRegistry","core/components/siteAspects/BehaviorsAspect","core/components/siteAspects/animationsAspect","core/components/siteAspects/DesignDataChangeAspect","core/components/siteAspects/loginToWixAspect","core/components/siteAspects/parentFrameAspect","core/components/siteAspects/vkPostMessageAspect","core/components/siteAspects/packagePickerAspect","core/core/pageItemAspect","core/core/nonPageItemZoomAspect","core/components/siteAspects/externalScriptLoaderAspect","core/siteRender/SiteMembersAspect","core/components/siteAspects/windowFocusEventsAspect","core/components/siteAspects/windowScrollEventAspect","core/components/siteAspects/windowResizeEventAspect","core/components/siteAspects/windowClickEventAspect","core/components/siteAspects/windowKeyboardEventAspect","core/components/siteAspects/MobileActionsMenuAspect","core/components/siteAspects/addComponentAspect","core/components/siteAspects/AudioAspect","core/components/siteAspects/actionsAspect","core/components/siteAspects/DynamicClientSpecMapAspect","core/components/siteAspects/dynamicColorsAspect","core/components/siteAspects/VideoBackgroundAspect","core/components/siteAspects/touchEventsAspect","core/components/siteAspects/anchorLinkChangeEventAspect","core/components/siteAspects/siteScrollingBlockerAspect","core/components/siteAspects/SlideShowComponentAspect","core/components/siteAspects/FormManagerAspect","core/components/siteAspects/RadioGroupsAspect","core/components/siteAspects/mouseWheelOverrideAspect","core/components/siteAspects/svSessionChangeEventAspect"],function(a,b,c,d){"use strict";a.registerSiteAspect("behaviorsAspect",b);a.registerSiteAspect("animationsAspect",c);a.registerSiteAspect("designDataChangeAspect",d)});define("core/components/behaviorHandlers/prefetchPagesBehaviorHandler",["lodash"],function(a){"use strict";var b=function(b,c){var d=c.getSiteData();var e=d.getPagesDataItems();var f=b.params.prefetchFilters;var g=a(e).filter(function(b){return a.every(f,function(c,d){return a.includes(c,b[d])})}).map("id").value();if(a.isEmpty(g)){return}var h=c.getSiteDataAPI();var i=0;a.forEach(g,function(a){var b={pageId:a};h.loadPage(b,function(){++i;if(i===g.length){d.addPrefetchPages(g);c.forceUpdate()}})})};var c=function(){return true};return{prefetchPages:b,isEnabled:c}});define("core/components/behaviorHandlers/siteBehaviorHandler",["lodash","utils","core/components/behaviorHandlers/prefetchPagesBehaviorHandler"],function(a,b,c){"use strict";function d(){function a(a){return a.renderFlags.componentViewMode==="editor"}function b(a,b){var c=a.getRuntimeDal();return c.hasBeenPopupOpened(b)}function c(c,d,e){var f=e.targetId;if(c.isZoomOpened()){return false}if(a(d)){return false}if(b(c,f)||c.isPopupOpened()){return false}if(d.isMobileView()){return Boolean(e.params.openInMobile)}return Boolean(e.params.openInDesktop)}function d(a){return 1e3*(a.params.delay||0)}var e;return function a(b,f){clearTimeout(e);var g=f.getSiteData();if(!c(f,g,b)){return}e=setTimeout(function a(d){var e=g.getPrimaryPageId()!==d;if(e){return}if(c(f,g,b)){f.openPopupPage(b.targetId)}},d(b),g.getPrimaryPageId())}}function e(){return true}function f(){return{default:function a(c){b.log.error("Invalid behavior",c)},openPopup:d(),prefetchPages:c.prefetchPages}}function g(){return{default:function a(c){b.log.error("Invalid behavior",c)},openPopup:e,prefetchPages:c.isEnabled}}var h;var i;return{handle:function a(b,c){h=h||f();var d=h[b.name]||h.default;d(b,c)},isEnabled:function(a,b){i=i||g();var c=i[a.name]||i.default;return c(b)}}});define("core/siteRender/siteBehaviorsRegistrar",["core/components/behaviorHandlers/behaviorHandlersFactory","core/components/behaviorHandlers/siteBehaviorHandler"],function(a,b){"use strict";a.registerHandler("site",b)});define("core/core/siteHooks/pageLoadHooks",["experiment","core/core/site"],function(a,b){"use strict";b.hooks.registerHook(b.hooks.types.PAGE_LOADED_FIRST_RENDER,function(b,c){if(a.isOpen("sv_platform1")&&!b.rendererModel.previewMode){c.preInitWidgets(b,b.currentUrl.full); }});b.hooks.registerHook(b.hooks.types.PAGE_LOADED,function(b,c){var d=b.getSiteData();var e=d.getFocusedRootId()!==c.pageId;var f=d.getFocusedRootId()!==b.getCurrentPopupId();var g=a.isOpen("sv_dpages")&&c.routerDefinition;if(a.isOpen("sv_platform1")&&(e||!e&&g)&&f){b.getSiteAspect("WidgetAspect").initApps([c.pageId])}})});define("core",["utils","core/core/site","core/siteRender/compFactory","core/siteRender/compRegistrar","core/siteRender/styleCollector","core/core/dataRequirementsChecker","core/core/siteAspectsRegistry","core/components/animationsMixin","core/components/baseCompMixin","core/components/skinBasedComp","core/components/runTimeCompData","core/components/compDesignMixin","core/components/optionInput","core/components/skinInfo","core/core/SiteDataAPI","core/siteRender/SiteAPI","core/core/data/RuntimeDal","core/components/audioMixin","core/components/facebookComponentMixin","core/components/twitterComponentMixin","core/components/util/galleryPagingCalculations","core/components/util/boxSlideShowCommon","core/components/mediaZoomWrapperMixin","core/components/galleryImageExpandedActionMixin","core/components/util/matrixAnimationManipulation","core/components/uniquePageIdMixin","core/components/bgVideoMixin","core/siteRender/WixSiteHeadRenderer","core/activities/activityTypes","core/activities/activityService","core/siteRender/SiteAspectsSiteAPI","core/bi/events","core/components/renderDoneMixin","core/components/wixTransitionGroup","core/components/wixTransitionItem","core/components/behaviorHandlers/behaviorHandlersFactory","core/components/siteAspects/behaviorsService","core/components/socialCompMixin","core/core/data/pointers/pointers","core/siteRender/WixSiteReact","core/components/fullScreenOverlay/fullScreenOverlay","core/bi/errors","core/components/compStateMixin","core/components/siteAspects/aspectsCollector","core/components/siteAspects/AudioAspect","core/siteRender/siteBehaviorsRegistrar","core/core/siteHooks/pageLoadHooks"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q){"use strict";return{SiteData:a.SiteData,SiteDataAPI:o,SiteAPI:p,RuntimeDal:q,MobileDeviceAnalyzer:a.MobileDeviceAnalyzer,renderer:b,WixSiteHeadRenderer:B,compFactory:c,compRegistrar:d,styleCollector:e,dataRequirementsChecker:f,siteAspectsRegistry:g,compMixins:{intervalsMixin:a.timerMixins.intervalsMixin,timeoutsMixin:a.timerMixins.timeoutsMixin,skinBasedComp:j,runTimeCompData:k,animationsMixin:h,optionInput:m,skinInfo:n,audioMixin:r,facebookComponentMixin:s,twitterComponentMixin:t,mediaZoomWrapperMixin:w,galleryImageExpandedActionMixin:x,baseCompMixin:i.baseComp,postMessageCompMixin:a.postMessageCompMixin,uniquePageIdMixin:z,bgVideoMixin:A,renderDoneMixin:G,socialCompMixin:L,compDesignMixin:l,compStateMixin:Q},componentUtils:{fullScreenOverlay:O,galleryPagingCalculations:u,matrixAnimationManipulation:y,boxSlideShowCommon:v},activityTypes:C,activityService:D,SiteAspectsSiteAPI:E,behaviorHandlersFactory:J,behaviorsService:K,wixTransitionGroup:H,wixTransitionItem:I,biEvents:F,DataAccessPointers:M.DataAccessPointers,PointersCache:M.PointersCache,pointerGeneratorsRegistry:M.pointerGeneratorsRegistry,forTests:{WixSiteReact:N},errors:P}});